1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.ac" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810am__isrc 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845build 846build_cpu 847build_vendor 848build_os 849host 850host_cpu 851host_vendor 852host_os 853GREP 854EGREP 855LN_S 856ECHO 857AR 858RANLIB 859CPP 860CXX 861CXXFLAGS 862ac_ct_CXX 863CXXDEPMODE 864am__fastdepCXX_TRUE 865am__fastdepCXX_FALSE 866CXXCPP 867F77 868FFLAGS 869ac_ct_F77 870LIBTOOL 871global_top_auxdir 872LIBOBJS 873LTLIBOBJS' 874ac_subst_files='' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881LIBS 882CPPFLAGS 883CPP 884CXX 885CXXFLAGS 886CCC 887CXXCPP 888F77 889FFLAGS' 890 891 892# Initialize some variables set by options. 893ac_init_help= 894ac_init_version=false 895# The variables have the same names as the options, with 896# dashes changed to underlines. 897cache_file=/dev/null 898exec_prefix=NONE 899no_create= 900no_recursion= 901prefix=NONE 902program_prefix=NONE 903program_suffix=NONE 904program_transform_name=s,x,x, 905silent= 906site= 907srcdir= 908verbose= 909x_includes=NONE 910x_libraries=NONE 911 912# Installation directory options. 913# These are left unexpanded so users can "make install exec_prefix=/foo" 914# and all the variables that are supposed to be based on exec_prefix 915# by default will actually change. 916# Use braces instead of parens because sh, perl, etc. also accept them. 917# (The list follows the same order as the GNU Coding Standards.) 918bindir='${exec_prefix}/bin' 919sbindir='${exec_prefix}/sbin' 920libexecdir='${exec_prefix}/libexec' 921datarootdir='${prefix}/share' 922datadir='${datarootdir}' 923sysconfdir='${prefix}/etc' 924sharedstatedir='${prefix}/com' 925localstatedir='${prefix}/var' 926includedir='${prefix}/include' 927oldincludedir='/usr/include' 928docdir='${datarootdir}/doc/${PACKAGE}' 929infodir='${datarootdir}/info' 930htmldir='${docdir}' 931dvidir='${docdir}' 932pdfdir='${docdir}' 933psdir='${docdir}' 934libdir='${exec_prefix}/lib' 935localedir='${datarootdir}/locale' 936mandir='${datarootdir}/man' 937 938ac_prev= 939ac_dashdash= 940for ac_option 941do 942 # If the previous option needs an argument, assign it. 943 if test -n "$ac_prev"; then 944 eval $ac_prev=\$ac_option 945 ac_prev= 946 continue 947 fi 948 949 case $ac_option in 950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 951 *) ac_optarg=yes ;; 952 esac 953 954 # Accept the important Cygnus configure options, so we can diagnose typos. 955 956 case $ac_dashdash$ac_option in 957 --) 958 ac_dashdash=yes ;; 959 960 -bindir | --bindir | --bindi | --bind | --bin | --bi) 961 ac_prev=bindir ;; 962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 963 bindir=$ac_optarg ;; 964 965 -build | --build | --buil | --bui | --bu) 966 ac_prev=build_alias ;; 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 968 build_alias=$ac_optarg ;; 969 970 -cache-file | --cache-file | --cache-fil | --cache-fi \ 971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 972 ac_prev=cache_file ;; 973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 975 cache_file=$ac_optarg ;; 976 977 --config-cache | -C) 978 cache_file=config.cache ;; 979 980 -datadir | --datadir | --datadi | --datad) 981 ac_prev=datadir ;; 982 -datadir=* | --datadir=* | --datadi=* | --datad=*) 983 datadir=$ac_optarg ;; 984 985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 986 | --dataroo | --dataro | --datar) 987 ac_prev=datarootdir ;; 988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 990 datarootdir=$ac_optarg ;; 991 992 -disable-* | --disable-*) 993 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 997 { (exit 1); exit 1; }; } 998 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 999 eval enable_$ac_feature=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1016 { (exit 1); exit 1; }; } 1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1018 eval enable_$ac_feature=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 { echo "$as_me: error: invalid package name: $ac_package" >&2 1213 { (exit 1); exit 1; }; } 1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1215 eval with_$ac_package=\$ac_optarg ;; 1216 1217 -without-* | --without-*) 1218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 1222 { (exit 1); exit 1; }; } 1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1224 eval with_$ac_package=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) { echo "$as_me: error: unrecognized option: $ac_option 1245Try \`$0 --help' for more information." >&2 1246 { (exit 1); exit 1; }; } 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1253 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1254 { (exit 1); exit 1; }; } 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 { echo "$as_me: error: missing argument to $ac_option" >&2 1272 { (exit 1); exit 1; }; } 1273fi 1274 1275# Be sure to have absolute directory names. 1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1277 datadir sysconfdir sharedstatedir localstatedir includedir \ 1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1279 libdir localedir mandir 1280do 1281 eval ac_val=\$$ac_var 1282 case $ac_val in 1283 [\\/$]* | ?:[\\/]* ) continue;; 1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1285 esac 1286 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1287 { (exit 1); exit 1; }; } 1288done 1289 1290# There might be people who depend on the old broken behavior: `$host' 1291# used to hold the argument of --host etc. 1292# FIXME: To remove some day. 1293build=$build_alias 1294host=$host_alias 1295target=$target_alias 1296 1297# FIXME: To remove some day. 1298if test "x$host_alias" != x; then 1299 if test "x$build_alias" = x; then 1300 cross_compiling=maybe 1301 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1302 If a cross compiler is detected then cross compile mode will be used." >&2 1303 elif test "x$build_alias" != "x$host_alias"; then 1304 cross_compiling=yes 1305 fi 1306fi 1307 1308ac_tool_prefix= 1309test -n "$host_alias" && ac_tool_prefix=$host_alias- 1310 1311test "$silent" = yes && exec 6>/dev/null 1312 1313 1314ac_pwd=`pwd` && test -n "$ac_pwd" && 1315ac_ls_di=`ls -di .` && 1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1317 { echo "$as_me: error: Working directory cannot be determined" >&2 1318 { (exit 1); exit 1; }; } 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 { echo "$as_me: error: pwd does not report name of working directory" >&2 1321 { (exit 1); exit 1; }; } 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$0" || 1329$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$0" : 'X\(//\)[^/]' \| \ 1331 X"$0" : 'X\(//\)$' \| \ 1332 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1333echo X"$0" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1361 { (exit 1); exit 1; }; } 1362fi 1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1364ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1366 { (exit 1); exit 1; }; } 1367 pwd)` 1368# When building in place, set srcdir=. 1369if test "$ac_abs_confdir" = "$ac_pwd"; then 1370 srcdir=. 1371fi 1372# Remove unnecessary trailing slashes from srcdir. 1373# Double slashes in file names in object file debugging info 1374# mess up M-x gdb in Emacs. 1375case $srcdir in 1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1377esac 1378for ac_var in $ac_precious_vars; do 1379 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_env_${ac_var}_value=\$${ac_var} 1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1383done 1384 1385# 1386# Report the --help message. 1387# 1388if test "$ac_init_help" = "long"; then 1389 # Omit some internal or obsolete options to make the list less imposing. 1390 # This message is too long to be a string in the A/UX 3.1 sh. 1391 cat <<_ACEOF 1392\`configure' configures this package to adapt to many kinds of systems. 1393 1394Usage: $0 [OPTION]... [VAR=VALUE]... 1395 1396To assign environment variables (e.g., CC, CFLAGS...), specify them as 1397VAR=VALUE. See below for descriptions of some of the useful variables. 1398 1399Defaults for the options are specified in brackets. 1400 1401Configuration: 1402 -h, --help display this help and exit 1403 --help=short display options specific to this package 1404 --help=recursive display the short help of all the included packages 1405 -V, --version display version information and exit 1406 -q, --quiet, --silent do not print \`checking...' messages 1407 --cache-file=FILE cache test results in FILE [disabled] 1408 -C, --config-cache alias for \`--cache-file=config.cache' 1409 -n, --no-create do not create output files 1410 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1411 1412Installation directories: 1413 --prefix=PREFIX install architecture-independent files in PREFIX 1414 [$ac_default_prefix] 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1416 [PREFIX] 1417 1418By default, \`make install' will install all the files in 1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1420an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1421for instance \`--prefix=\$HOME'. 1422 1423For better control, use the options below. 1424 1425Fine tuning of the installation directories: 1426 --bindir=DIR user executables [EPREFIX/bin] 1427 --sbindir=DIR system admin executables [EPREFIX/sbin] 1428 --libexecdir=DIR program executables [EPREFIX/libexec] 1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1432 --libdir=DIR object code libraries [EPREFIX/lib] 1433 --includedir=DIR C header files [PREFIX/include] 1434 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1437 --infodir=DIR info documentation [DATAROOTDIR/info] 1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1439 --mandir=DIR man documentation [DATAROOTDIR/man] 1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445_ACEOF 1446 1447 cat <<\_ACEOF 1448 1449Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 1462 cat <<\_ACEOF 1463 1464Optional Features: 1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1467 --disable-dependency-tracking speeds up one-time build 1468 --enable-dependency-tracking do not reject slow dependency extractors 1469 --enable-shared[=PKGS] build shared libraries [default=yes] 1470 --enable-static[=PKGS] build static libraries [default=yes] 1471 --enable-fast-install[=PKGS] 1472 optimize for fast installation [default=yes] 1473 --disable-libtool-lock avoid locking (might break parallel builds) 1474 1475Optional Packages: 1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1479 --with-pic try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-tags[=TAGS] include additional configurations [automatic] 1482 1483Some influential environment variables: 1484 CC C compiler command 1485 CFLAGS C compiler flags 1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1487 nonstandard directory <lib dir> 1488 LIBS libraries to pass to the linker, e.g. -l<library> 1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1490 you have headers in a nonstandard directory <include dir> 1491 CPP C preprocessor 1492 CXX C++ compiler command 1493 CXXFLAGS C++ compiler flags 1494 CXXCPP C++ preprocessor 1495 F77 Fortran 77 compiler command 1496 FFLAGS Fortran 77 compiler flags 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501_ACEOF 1502ac_status=$? 1503fi 1504 1505if test "$ac_init_help" = "recursive"; then 1506 # If there are subdirs, report their specific --help. 1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1508 test -d "$ac_dir" || continue 1509 ac_builddir=. 1510 1511case "$ac_dir" in 1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513*) 1514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1515 # A ".." for each directory in $ac_dir_suffix. 1516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1517 case $ac_top_builddir_sub in 1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1520 esac ;; 1521esac 1522ac_abs_top_builddir=$ac_pwd 1523ac_abs_builddir=$ac_pwd$ac_dir_suffix 1524# for backward compatibility: 1525ac_top_builddir=$ac_top_build_prefix 1526 1527case $srcdir in 1528 .) # We are building in place. 1529 ac_srcdir=. 1530 ac_top_srcdir=$ac_top_builddir_sub 1531 ac_abs_top_srcdir=$ac_pwd ;; 1532 [\\/]* | ?:[\\/]* ) # Absolute name. 1533 ac_srcdir=$srcdir$ac_dir_suffix; 1534 ac_top_srcdir=$srcdir 1535 ac_abs_top_srcdir=$srcdir ;; 1536 *) # Relative name. 1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1538 ac_top_srcdir=$ac_top_build_prefix$srcdir 1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1540esac 1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1542 1543 cd "$ac_dir" || { ac_status=$?; continue; } 1544 # Check for guested configure. 1545 if test -f "$ac_srcdir/configure.gnu"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1548 elif test -f "$ac_srcdir/configure"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure" --help=recursive 1551 else 1552 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1553 fi || ac_status=$? 1554 cd "$ac_pwd" || { ac_status=$?; break; } 1555 done 1556fi 1557 1558test -n "$ac_init_help" && exit $ac_status 1559if $ac_init_version; then 1560 cat <<\_ACEOF 1561configure 1562generated by GNU Autoconf 2.61 1563 1564Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15652002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1566This configure script is free software; the Free Software Foundation 1567gives unlimited permission to copy, distribute and modify it. 1568_ACEOF 1569 exit 1570fi 1571cat >config.log <<_ACEOF 1572This file contains any messages produced by compilers while 1573running configure, to aid debugging if configure makes a mistake. 1574 1575It was created by $as_me, which was 1576generated by GNU Autoconf 2.61. Invocation command line was 1577 1578 $ $0 $@ 1579 1580_ACEOF 1581exec 5>>config.log 1582{ 1583cat <<_ASUNAME 1584## --------- ## 1585## Platform. ## 1586## --------- ## 1587 1588hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1589uname -m = `(uname -m) 2>/dev/null || echo unknown` 1590uname -r = `(uname -r) 2>/dev/null || echo unknown` 1591uname -s = `(uname -s) 2>/dev/null || echo unknown` 1592uname -v = `(uname -v) 2>/dev/null || echo unknown` 1593 1594/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1595/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1596 1597/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1598/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1599/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1600/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1601/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1602/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1603/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1604 1605_ASUNAME 1606 1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1608for as_dir in $PATH 1609do 1610 IFS=$as_save_IFS 1611 test -z "$as_dir" && as_dir=. 1612 echo "PATH: $as_dir" 1613done 1614IFS=$as_save_IFS 1615 1616} >&5 1617 1618cat >&5 <<_ACEOF 1619 1620 1621## ----------- ## 1622## Core tests. ## 1623## ----------- ## 1624 1625_ACEOF 1626 1627 1628# Keep a trace of the command line. 1629# Strip out --no-create and --no-recursion so they do not pile up. 1630# Strip out --silent because we don't want to record it for future runs. 1631# Also quote any args containing shell meta-characters. 1632# Make two passes to allow for proper duplicate-argument suppression. 1633ac_configure_args= 1634ac_configure_args0= 1635ac_configure_args1= 1636ac_must_keep_next=false 1637for ac_pass in 1 2 1638do 1639 for ac_arg 1640 do 1641 case $ac_arg in 1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1644 | -silent | --silent | --silen | --sile | --sil) 1645 continue ;; 1646 *\'*) 1647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1648 esac 1649 case $ac_pass in 1650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1651 2) 1652 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1653 if test $ac_must_keep_next = true; then 1654 ac_must_keep_next=false # Got value, back to normal. 1655 else 1656 case $ac_arg in 1657 *=* | --config-cache | -C | -disable-* | --disable-* \ 1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1660 | -with-* | --with-* | -without-* | --without-* | --x) 1661 case "$ac_configure_args0 " in 1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1663 esac 1664 ;; 1665 -* ) ac_must_keep_next=true ;; 1666 esac 1667 fi 1668 ac_configure_args="$ac_configure_args '$ac_arg'" 1669 ;; 1670 esac 1671 done 1672done 1673$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1674$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1675 1676# When interrupted or exit'd, cleanup temporary files, and complete 1677# config.log. We remove comments because anyway the quotes in there 1678# would cause problems or look ugly. 1679# WARNING: Use '\'' to represent an apostrophe within the trap. 1680# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1681trap 'exit_status=$? 1682 # Save into config.log some information that might help in debugging. 1683 { 1684 echo 1685 1686 cat <<\_ASBOX 1687## ---------------- ## 1688## Cache variables. ## 1689## ---------------- ## 1690_ASBOX 1691 echo 1692 # The following way of writing the cache mishandles newlines in values, 1693( 1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1695 eval ac_val=\$$ac_var 1696 case $ac_val in #( 1697 *${as_nl}*) 1698 case $ac_var in #( 1699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1700echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1701 esac 1702 case $ac_var in #( 1703 _ | IFS | as_nl) ;; #( 1704 *) $as_unset $ac_var ;; 1705 esac ;; 1706 esac 1707 done 1708 (set) 2>&1 | 1709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1710 *${as_nl}ac_space=\ *) 1711 sed -n \ 1712 "s/'\''/'\''\\\\'\'''\''/g; 1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1714 ;; #( 1715 *) 1716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1717 ;; 1718 esac | 1719 sort 1720) 1721 echo 1722 1723 cat <<\_ASBOX 1724## ----------------- ## 1725## Output variables. ## 1726## ----------------- ## 1727_ASBOX 1728 echo 1729 for ac_var in $ac_subst_vars 1730 do 1731 eval ac_val=\$$ac_var 1732 case $ac_val in 1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1734 esac 1735 echo "$ac_var='\''$ac_val'\''" 1736 done | sort 1737 echo 1738 1739 if test -n "$ac_subst_files"; then 1740 cat <<\_ASBOX 1741## ------------------- ## 1742## File substitutions. ## 1743## ------------------- ## 1744_ASBOX 1745 echo 1746 for ac_var in $ac_subst_files 1747 do 1748 eval ac_val=\$$ac_var 1749 case $ac_val in 1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1751 esac 1752 echo "$ac_var='\''$ac_val'\''" 1753 done | sort 1754 echo 1755 fi 1756 1757 if test -s confdefs.h; then 1758 cat <<\_ASBOX 1759## ----------- ## 1760## confdefs.h. ## 1761## ----------- ## 1762_ASBOX 1763 echo 1764 cat confdefs.h 1765 echo 1766 fi 1767 test "$ac_signal" != 0 && 1768 echo "$as_me: caught signal $ac_signal" 1769 echo "$as_me: exit $exit_status" 1770 } >&5 1771 rm -f core *.core core.conftest.* && 1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1773 exit $exit_status 1774' 0 1775for ac_signal in 1 2 13 15; do 1776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1777done 1778ac_signal=0 1779 1780# confdefs.h avoids OS command line length limits that DEFS can exceed. 1781rm -f -r conftest* confdefs.h 1782 1783# Predefined preprocessor variables. 1784 1785cat >>confdefs.h <<_ACEOF 1786#define PACKAGE_NAME "$PACKAGE_NAME" 1787_ACEOF 1788 1789 1790cat >>confdefs.h <<_ACEOF 1791#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1792_ACEOF 1793 1794 1795cat >>confdefs.h <<_ACEOF 1796#define PACKAGE_VERSION "$PACKAGE_VERSION" 1797_ACEOF 1798 1799 1800cat >>confdefs.h <<_ACEOF 1801#define PACKAGE_STRING "$PACKAGE_STRING" 1802_ACEOF 1803 1804 1805cat >>confdefs.h <<_ACEOF 1806#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1807_ACEOF 1808 1809 1810# Let the site file select an alternate cache file if it wants to. 1811# Prefer explicitly selected file to automatically selected ones. 1812if test -n "$CONFIG_SITE"; then 1813 set x "$CONFIG_SITE" 1814elif test "x$prefix" != xNONE; then 1815 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1816else 1817 set x "$ac_default_prefix/share/config.site" \ 1818 "$ac_default_prefix/etc/config.site" 1819fi 1820shift 1821for ac_site_file 1822do 1823 if test -r "$ac_site_file"; then 1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1825echo "$as_me: loading site script $ac_site_file" >&6;} 1826 sed 's/^/| /' "$ac_site_file" >&5 1827 . "$ac_site_file" 1828 fi 1829done 1830 1831if test -r "$cache_file"; then 1832 # Some versions of bash will fail to source /dev/null (special 1833 # files actually), so we avoid doing that. 1834 if test -f "$cache_file"; then 1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1836echo "$as_me: loading cache $cache_file" >&6;} 1837 case $cache_file in 1838 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1839 *) . "./$cache_file";; 1840 esac 1841 fi 1842else 1843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1844echo "$as_me: creating cache $cache_file" >&6;} 1845 >$cache_file 1846fi 1847 1848# Check that the precious variables saved in the cache have kept the same 1849# value. 1850ac_cache_corrupted=false 1851for ac_var in $ac_precious_vars; do 1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1853 eval ac_new_set=\$ac_env_${ac_var}_set 1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1855 eval ac_new_val=\$ac_env_${ac_var}_value 1856 case $ac_old_set,$ac_new_set in 1857 set,) 1858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1859echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1860 ac_cache_corrupted=: ;; 1861 ,set) 1862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1863echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1864 ac_cache_corrupted=: ;; 1865 ,);; 1866 *) 1867 if test "x$ac_old_val" != "x$ac_new_val"; then 1868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1869echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1871echo "$as_me: former value: $ac_old_val" >&2;} 1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1873echo "$as_me: current value: $ac_new_val" >&2;} 1874 ac_cache_corrupted=: 1875 fi;; 1876 esac 1877 # Pass precious variables to config.status. 1878 if test "$ac_new_set" = set; then 1879 case $ac_new_val in 1880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 *) ac_arg=$ac_var=$ac_new_val ;; 1882 esac 1883 case " $ac_configure_args " in 1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1886 esac 1887 fi 1888done 1889if $ac_cache_corrupted; then 1890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1891echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1893echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1894 { (exit 1); exit 1; }; } 1895fi 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913ac_ext=c 1914ac_cpp='$CPP $CPPFLAGS' 1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1917ac_compiler_gnu=$ac_cv_c_compiler_gnu 1918 1919 1920ac_aux_dir= 1921for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do 1922 if test -f "$ac_dir/install-sh"; then 1923 ac_aux_dir=$ac_dir 1924 ac_install_sh="$ac_aux_dir/install-sh -c" 1925 break 1926 elif test -f "$ac_dir/install.sh"; then 1927 ac_aux_dir=$ac_dir 1928 ac_install_sh="$ac_aux_dir/install.sh -c" 1929 break 1930 elif test -f "$ac_dir/shtool"; then 1931 ac_aux_dir=$ac_dir 1932 ac_install_sh="$ac_aux_dir/shtool install -c" 1933 break 1934 fi 1935done 1936if test -z "$ac_aux_dir"; then 1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 1938echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} 1939 { (exit 1); exit 1; }; } 1940fi 1941 1942# These three variables are undocumented and unsupported, 1943# and are intended to be withdrawn in a future Autoconf release. 1944# They can cause serious problems if a builder's source tree is in a directory 1945# whose full name contains unusual characters. 1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1949 1950 1951am__api_version='1.10' 1952 1953# Find a good install program. We prefer a C program (faster), 1954# so one script is as good as another. But avoid the broken or 1955# incompatible versions: 1956# SysV /etc/install, /usr/sbin/install 1957# SunOS /usr/etc/install 1958# IRIX /sbin/install 1959# AIX /bin/install 1960# AmigaOS /C/install, which installs bootblocks on floppy discs 1961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1962# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1964# OS/2's system install, which has a completely different semantic 1965# ./install, which can be erroneously created by make from ./install.sh. 1966{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1968if test -z "$INSTALL"; then 1969if test "${ac_cv_path_install+set}" = set; then 1970 echo $ECHO_N "(cached) $ECHO_C" >&6 1971else 1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1973for as_dir in $PATH 1974do 1975 IFS=$as_save_IFS 1976 test -z "$as_dir" && as_dir=. 1977 # Account for people who put trailing slashes in PATH elements. 1978case $as_dir/ in 1979 ./ | .// | /cC/* | \ 1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1982 /usr/ucb/* ) ;; 1983 *) 1984 # OSF1 and SCO ODT 3.0 have their own names for install. 1985 # Don't use installbsd from OSF since it installs stuff as root 1986 # by default. 1987 for ac_prog in ginstall scoinst install; do 1988 for ac_exec_ext in '' $ac_executable_extensions; do 1989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1990 if test $ac_prog = install && 1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1992 # AIX install. It has an incompatible calling convention. 1993 : 1994 elif test $ac_prog = install && 1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1996 # program-specific install script used by HP pwplus--don't use. 1997 : 1998 else 1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2000 break 3 2001 fi 2002 fi 2003 done 2004 done 2005 ;; 2006esac 2007done 2008IFS=$as_save_IFS 2009 2010 2011fi 2012 if test "${ac_cv_path_install+set}" = set; then 2013 INSTALL=$ac_cv_path_install 2014 else 2015 # As a last resort, use the slow shell script. Don't cache a 2016 # value for INSTALL within a source directory, because that will 2017 # break other packages using the cache if that directory is 2018 # removed, or if the value is a relative name. 2019 INSTALL=$ac_install_sh 2020 fi 2021fi 2022{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2023echo "${ECHO_T}$INSTALL" >&6; } 2024 2025# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2026# It thinks the first close brace ends the variable substitution. 2027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2028 2029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2030 2031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2032 2033{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2034echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2035# Just in case 2036sleep 1 2037echo timestamp > conftest.file 2038# Do `set' in a subshell so we don't clobber the current shell's 2039# arguments. Must try -L first in case configure is actually a 2040# symlink; some systems play weird games with the mod time of symlinks 2041# (eg FreeBSD returns the mod time of the symlink's containing 2042# directory). 2043if ( 2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2045 if test "$*" = "X"; then 2046 # -L didn't work. 2047 set X `ls -t $srcdir/configure conftest.file` 2048 fi 2049 rm -f conftest.file 2050 if test "$*" != "X $srcdir/configure conftest.file" \ 2051 && test "$*" != "X conftest.file $srcdir/configure"; then 2052 2053 # If neither matched, then we have a broken ls. This can happen 2054 # if, for instance, CONFIG_SHELL is bash and it inherits a 2055 # broken ls alias from the environment. This has actually 2056 # happened. Such a system could not be considered "sane". 2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2058alias in your environment" >&5 2059echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2060alias in your environment" >&2;} 2061 { (exit 1); exit 1; }; } 2062 fi 2063 2064 test "$2" = conftest.file 2065 ) 2066then 2067 # Ok. 2068 : 2069else 2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2071Check your system clock" >&5 2072echo "$as_me: error: newly created file is older than distributed files! 2073Check your system clock" >&2;} 2074 { (exit 1); exit 1; }; } 2075fi 2076{ echo "$as_me:$LINENO: result: yes" >&5 2077echo "${ECHO_T}yes" >&6; } 2078test "$program_prefix" != NONE && 2079 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2080# Use a double $ so make ignores it. 2081test "$program_suffix" != NONE && 2082 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2083# Double any \ or $. echo might interpret backslashes. 2084# By default was `s,x,x', remove it if useless. 2085cat <<\_ACEOF >conftest.sed 2086s/[\\$]/&&/g;s/;s,x,x,$// 2087_ACEOF 2088program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2089rm -f conftest.sed 2090 2091# expand $ac_aux_dir to an absolute path 2092am_aux_dir=`cd $ac_aux_dir && pwd` 2093 2094test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2095# Use eval to expand $SHELL 2096if eval "$MISSING --run true"; then 2097 am_missing_run="$MISSING --run " 2098else 2099 am_missing_run= 2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2101echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2102fi 2103 2104{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2105echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2106if test -z "$MKDIR_P"; then 2107 if test "${ac_cv_path_mkdir+set}" = set; then 2108 echo $ECHO_N "(cached) $ECHO_C" >&6 2109else 2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2112do 2113 IFS=$as_save_IFS 2114 test -z "$as_dir" && as_dir=. 2115 for ac_prog in mkdir gmkdir; do 2116 for ac_exec_ext in '' $ac_executable_extensions; do 2117 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2118 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2119 'mkdir (GNU coreutils) '* | \ 2120 'mkdir (coreutils) '* | \ 2121 'mkdir (fileutils) '4.1*) 2122 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2123 break 3;; 2124 esac 2125 done 2126 done 2127done 2128IFS=$as_save_IFS 2129 2130fi 2131 2132 if test "${ac_cv_path_mkdir+set}" = set; then 2133 MKDIR_P="$ac_cv_path_mkdir -p" 2134 else 2135 # As a last resort, use the slow shell script. Don't cache a 2136 # value for MKDIR_P within a source directory, because that will 2137 # break other packages using the cache if that directory is 2138 # removed, or if the value is a relative name. 2139 test -d ./--version && rmdir ./--version 2140 MKDIR_P="$ac_install_sh -d" 2141 fi 2142fi 2143{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2144echo "${ECHO_T}$MKDIR_P" >&6; } 2145 2146mkdir_p="$MKDIR_P" 2147case $mkdir_p in 2148 [\\/$]* | ?:[\\/]*) ;; 2149 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2150esac 2151 2152for ac_prog in gawk mawk nawk awk 2153do 2154 # Extract the first word of "$ac_prog", so it can be a program name with args. 2155set dummy $ac_prog; ac_word=$2 2156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2158if test "${ac_cv_prog_AWK+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 if test -n "$AWK"; then 2162 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2163else 2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165for as_dir in $PATH 2166do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2171 ac_cv_prog_AWK="$ac_prog" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175done 2176done 2177IFS=$as_save_IFS 2178 2179fi 2180fi 2181AWK=$ac_cv_prog_AWK 2182if test -n "$AWK"; then 2183 { echo "$as_me:$LINENO: result: $AWK" >&5 2184echo "${ECHO_T}$AWK" >&6; } 2185else 2186 { echo "$as_me:$LINENO: result: no" >&5 2187echo "${ECHO_T}no" >&6; } 2188fi 2189 2190 2191 test -n "$AWK" && break 2192done 2193 2194{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2195echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2196set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2197if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2198 echo $ECHO_N "(cached) $ECHO_C" >&6 2199else 2200 cat >conftest.make <<\_ACEOF 2201SHELL = /bin/sh 2202all: 2203 @echo '@@@%%%=$(MAKE)=@@@%%%' 2204_ACEOF 2205# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2206case `${MAKE-make} -f conftest.make 2>/dev/null` in 2207 *@@@%%%=?*=@@@%%%*) 2208 eval ac_cv_prog_make_${ac_make}_set=yes;; 2209 *) 2210 eval ac_cv_prog_make_${ac_make}_set=no;; 2211esac 2212rm -f conftest.make 2213fi 2214if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2215 { echo "$as_me:$LINENO: result: yes" >&5 2216echo "${ECHO_T}yes" >&6; } 2217 SET_MAKE= 2218else 2219 { echo "$as_me:$LINENO: result: no" >&5 2220echo "${ECHO_T}no" >&6; } 2221 SET_MAKE="MAKE=${MAKE-make}" 2222fi 2223 2224rm -rf .tst 2>/dev/null 2225mkdir .tst 2>/dev/null 2226if test -d .tst; then 2227 am__leading_dot=. 2228else 2229 am__leading_dot=_ 2230fi 2231rmdir .tst 2>/dev/null 2232 2233if test "`cd $srcdir && pwd`" != "`pwd`"; then 2234 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2235 # is not polluted with repeated "-I." 2236 am__isrc=' -I$(srcdir)' 2237 # test to see if srcdir already configured 2238 if test -f $srcdir/config.status; then 2239 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2240echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2241 { (exit 1); exit 1; }; } 2242 fi 2243fi 2244 2245# test whether we have cygpath 2246if test -z "$CYGPATH_W"; then 2247 if (cygpath --version) >/dev/null 2>/dev/null; then 2248 CYGPATH_W='cygpath -w' 2249 else 2250 CYGPATH_W=echo 2251 fi 2252fi 2253 2254 2255# Define the identity of the package. 2256 PACKAGE=gettext_rpathx 2257 VERSION=0 2258 2259 2260cat >>confdefs.h <<_ACEOF 2261#define PACKAGE "$PACKAGE" 2262_ACEOF 2263 2264 2265cat >>confdefs.h <<_ACEOF 2266#define VERSION "$VERSION" 2267_ACEOF 2268 2269# Some tools Automake needs. 2270 2271ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2272 2273 2274AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2275 2276 2277AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2278 2279 2280AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2281 2282 2283MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2284 2285install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2286 2287# Installed binaries are usually stripped using `strip' when the user 2288# run `make install-strip'. However `strip' might not be the right 2289# tool to use in cross-compilation environments, therefore Automake 2290# will honor the `STRIP' environment variable to overrule this program. 2291if test "$cross_compiling" != no; then 2292 if test -n "$ac_tool_prefix"; then 2293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2294set dummy ${ac_tool_prefix}strip; ac_word=$2 2295{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2297if test "${ac_cv_prog_STRIP+set}" = set; then 2298 echo $ECHO_N "(cached) $ECHO_C" >&6 2299else 2300 if test -n "$STRIP"; then 2301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2302else 2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2304for as_dir in $PATH 2305do 2306 IFS=$as_save_IFS 2307 test -z "$as_dir" && as_dir=. 2308 for ac_exec_ext in '' $ac_executable_extensions; do 2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2312 break 2 2313 fi 2314done 2315done 2316IFS=$as_save_IFS 2317 2318fi 2319fi 2320STRIP=$ac_cv_prog_STRIP 2321if test -n "$STRIP"; then 2322 { echo "$as_me:$LINENO: result: $STRIP" >&5 2323echo "${ECHO_T}$STRIP" >&6; } 2324else 2325 { echo "$as_me:$LINENO: result: no" >&5 2326echo "${ECHO_T}no" >&6; } 2327fi 2328 2329 2330fi 2331if test -z "$ac_cv_prog_STRIP"; then 2332 ac_ct_STRIP=$STRIP 2333 # Extract the first word of "strip", so it can be a program name with args. 2334set dummy strip; ac_word=$2 2335{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2337if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2338 echo $ECHO_N "(cached) $ECHO_C" >&6 2339else 2340 if test -n "$ac_ct_STRIP"; then 2341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2342else 2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344for as_dir in $PATH 2345do 2346 IFS=$as_save_IFS 2347 test -z "$as_dir" && as_dir=. 2348 for ac_exec_ext in '' $ac_executable_extensions; do 2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2350 ac_cv_prog_ac_ct_STRIP="strip" 2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2352 break 2 2353 fi 2354done 2355done 2356IFS=$as_save_IFS 2357 2358fi 2359fi 2360ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2361if test -n "$ac_ct_STRIP"; then 2362 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2363echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2364else 2365 { echo "$as_me:$LINENO: result: no" >&5 2366echo "${ECHO_T}no" >&6; } 2367fi 2368 2369 if test "x$ac_ct_STRIP" = x; then 2370 STRIP=":" 2371 else 2372 case $cross_compiling:$ac_tool_warned in 2373yes:) 2374{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2375whose name does not start with the host triplet. If you think this 2376configuration is useful to you, please write to autoconf@gnu.org." >&5 2377echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2378whose name does not start with the host triplet. If you think this 2379configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2380ac_tool_warned=yes ;; 2381esac 2382 STRIP=$ac_ct_STRIP 2383 fi 2384else 2385 STRIP="$ac_cv_prog_STRIP" 2386fi 2387 2388fi 2389INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2390 2391# We need awk for the "check" target. The system "awk" is bad on 2392# some platforms. 2393# Always define AMTAR for backward compatibility. 2394 2395AMTAR=${AMTAR-"${am_missing_run}tar"} 2396 2397am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2398 2399 2400 2401 2402 2403ac_ext=c 2404ac_cpp='$CPP $CPPFLAGS' 2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2407ac_compiler_gnu=$ac_cv_c_compiler_gnu 2408if test -n "$ac_tool_prefix"; then 2409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2410set dummy ${ac_tool_prefix}gcc; ac_word=$2 2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2413if test "${ac_cv_prog_CC+set}" = set; then 2414 echo $ECHO_N "(cached) $ECHO_C" >&6 2415else 2416 if test -n "$CC"; then 2417 ac_cv_prog_CC="$CC" # Let the user override the test. 2418else 2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2420for as_dir in $PATH 2421do 2422 IFS=$as_save_IFS 2423 test -z "$as_dir" && as_dir=. 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2426 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2428 break 2 2429 fi 2430done 2431done 2432IFS=$as_save_IFS 2433 2434fi 2435fi 2436CC=$ac_cv_prog_CC 2437if test -n "$CC"; then 2438 { echo "$as_me:$LINENO: result: $CC" >&5 2439echo "${ECHO_T}$CC" >&6; } 2440else 2441 { echo "$as_me:$LINENO: result: no" >&5 2442echo "${ECHO_T}no" >&6; } 2443fi 2444 2445 2446fi 2447if test -z "$ac_cv_prog_CC"; then 2448 ac_ct_CC=$CC 2449 # Extract the first word of "gcc", so it can be a program name with args. 2450set dummy gcc; ac_word=$2 2451{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2454 echo $ECHO_N "(cached) $ECHO_C" >&6 2455else 2456 if test -n "$ac_ct_CC"; then 2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2458else 2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2466 ac_cv_prog_ac_ct_CC="gcc" 2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471done 2472IFS=$as_save_IFS 2473 2474fi 2475fi 2476ac_ct_CC=$ac_cv_prog_ac_ct_CC 2477if test -n "$ac_ct_CC"; then 2478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2479echo "${ECHO_T}$ac_ct_CC" >&6; } 2480else 2481 { echo "$as_me:$LINENO: result: no" >&5 2482echo "${ECHO_T}no" >&6; } 2483fi 2484 2485 if test "x$ac_ct_CC" = x; then 2486 CC="" 2487 else 2488 case $cross_compiling:$ac_tool_warned in 2489yes:) 2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2491whose name does not start with the host triplet. If you think this 2492configuration is useful to you, please write to autoconf@gnu.org." >&5 2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2494whose name does not start with the host triplet. If you think this 2495configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 CC=$ac_ct_CC 2499 fi 2500else 2501 CC="$ac_cv_prog_CC" 2502fi 2503 2504if test -z "$CC"; then 2505 if test -n "$ac_tool_prefix"; then 2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2507set dummy ${ac_tool_prefix}cc; ac_word=$2 2508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2510if test "${ac_cv_prog_CC+set}" = set; then 2511 echo $ECHO_N "(cached) $ECHO_C" >&6 2512else 2513 if test -n "$CC"; then 2514 ac_cv_prog_CC="$CC" # Let the user override the test. 2515else 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2523 ac_cv_prog_CC="${ac_tool_prefix}cc" 2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528done 2529IFS=$as_save_IFS 2530 2531fi 2532fi 2533CC=$ac_cv_prog_CC 2534if test -n "$CC"; then 2535 { echo "$as_me:$LINENO: result: $CC" >&5 2536echo "${ECHO_T}$CC" >&6; } 2537else 2538 { echo "$as_me:$LINENO: result: no" >&5 2539echo "${ECHO_T}no" >&6; } 2540fi 2541 2542 2543 fi 2544fi 2545if test -z "$CC"; then 2546 # Extract the first word of "cc", so it can be a program name with args. 2547set dummy cc; ac_word=$2 2548{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2550if test "${ac_cv_prog_CC+set}" = set; then 2551 echo $ECHO_N "(cached) $ECHO_C" >&6 2552else 2553 if test -n "$CC"; then 2554 ac_cv_prog_CC="$CC" # Let the user override the test. 2555else 2556 ac_prog_rejected=no 2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2558for as_dir in $PATH 2559do 2560 IFS=$as_save_IFS 2561 test -z "$as_dir" && as_dir=. 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2565 ac_prog_rejected=yes 2566 continue 2567 fi 2568 ac_cv_prog_CC="cc" 2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573done 2574IFS=$as_save_IFS 2575 2576if test $ac_prog_rejected = yes; then 2577 # We found a bogon in the path, so make sure we never use it. 2578 set dummy $ac_cv_prog_CC 2579 shift 2580 if test $# != 0; then 2581 # We chose a different compiler from the bogus one. 2582 # However, it has the same basename, so the bogon will be chosen 2583 # first if we set CC to just the basename; use the full file name. 2584 shift 2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2586 fi 2587fi 2588fi 2589fi 2590CC=$ac_cv_prog_CC 2591if test -n "$CC"; then 2592 { echo "$as_me:$LINENO: result: $CC" >&5 2593echo "${ECHO_T}$CC" >&6; } 2594else 2595 { echo "$as_me:$LINENO: result: no" >&5 2596echo "${ECHO_T}no" >&6; } 2597fi 2598 2599 2600fi 2601if test -z "$CC"; then 2602 if test -n "$ac_tool_prefix"; then 2603 for ac_prog in cl.exe 2604 do 2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2609if test "${ac_cv_prog_CC+set}" = set; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611else 2612 if test -n "$CC"; then 2613 ac_cv_prog_CC="$CC" # Let the user override the test. 2614else 2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2624 break 2 2625 fi 2626done 2627done 2628IFS=$as_save_IFS 2629 2630fi 2631fi 2632CC=$ac_cv_prog_CC 2633if test -n "$CC"; then 2634 { echo "$as_me:$LINENO: result: $CC" >&5 2635echo "${ECHO_T}$CC" >&6; } 2636else 2637 { echo "$as_me:$LINENO: result: no" >&5 2638echo "${ECHO_T}no" >&6; } 2639fi 2640 2641 2642 test -n "$CC" && break 2643 done 2644fi 2645if test -z "$CC"; then 2646 ac_ct_CC=$CC 2647 for ac_prog in cl.exe 2648do 2649 # Extract the first word of "$ac_prog", so it can be a program name with args. 2650set dummy $ac_prog; ac_word=$2 2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 if test -n "$ac_ct_CC"; then 2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2666 ac_cv_prog_ac_ct_CC="$ac_prog" 2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676ac_ct_CC=$ac_cv_prog_ac_ct_CC 2677if test -n "$ac_ct_CC"; then 2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2679echo "${ECHO_T}$ac_ct_CC" >&6; } 2680else 2681 { echo "$as_me:$LINENO: result: no" >&5 2682echo "${ECHO_T}no" >&6; } 2683fi 2684 2685 2686 test -n "$ac_ct_CC" && break 2687done 2688 2689 if test "x$ac_ct_CC" = x; then 2690 CC="" 2691 else 2692 case $cross_compiling:$ac_tool_warned in 2693yes:) 2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2695whose name does not start with the host triplet. If you think this 2696configuration is useful to you, please write to autoconf@gnu.org." >&5 2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2698whose name does not start with the host triplet. If you think this 2699configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2700ac_tool_warned=yes ;; 2701esac 2702 CC=$ac_ct_CC 2703 fi 2704fi 2705 2706fi 2707 2708 2709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2710See \`config.log' for more details." >&5 2711echo "$as_me: error: no acceptable C compiler found in \$PATH 2712See \`config.log' for more details." >&2;} 2713 { (exit 1); exit 1; }; } 2714 2715# Provide some information about the compiler. 2716echo "$as_me:$LINENO: checking for C compiler version" >&5 2717ac_compiler=`set X $ac_compile; echo $2` 2718{ (ac_try="$ac_compiler --version >&5" 2719case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2724 (eval "$ac_compiler --version >&5") 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); } 2728{ (ac_try="$ac_compiler -v >&5" 2729case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732esac 2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_compiler -v >&5") 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); } 2738{ (ac_try="$ac_compiler -V >&5" 2739case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742esac 2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2744 (eval "$ac_compiler -V >&5") 2>&5 2745 ac_status=$? 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2747 (exit $ac_status); } 2748 2749cat >conftest.$ac_ext <<_ACEOF 2750/* confdefs.h. */ 2751_ACEOF 2752cat confdefs.h >>conftest.$ac_ext 2753cat >>conftest.$ac_ext <<_ACEOF 2754/* end confdefs.h. */ 2755 2756int 2757main () 2758{ 2759 2760 ; 2761 return 0; 2762} 2763_ACEOF 2764ac_clean_files_save=$ac_clean_files 2765ac_clean_files="$ac_clean_files a.out a.exe b.out" 2766# Try to create an executable without -o first, disregard a.out. 2767# It will help us diagnose broken compilers, and finding out an intuition 2768# of exeext. 2769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2772# 2773# List of possible output files, starting from the most likely. 2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2775# only as a last resort. b.out is created by i960 compilers. 2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2777# 2778# The IRIX 6 linker writes into existing files which may not be 2779# executable, retaining their permissions. Remove them first so a 2780# subsequent execution test works. 2781ac_rmfiles= 2782for ac_file in $ac_files 2783do 2784 case $ac_file in 2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2787 esac 2788done 2789rm -f $ac_rmfiles 2790 2791if { (ac_try="$ac_link_default" 2792case "(($ac_try" in 2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2794 *) ac_try_echo=$ac_try;; 2795esac 2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2797 (eval "$ac_link_default") 2>&5 2798 ac_status=$? 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); }; then 2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2803# in a Makefile. We should not override ac_cv_exeext if it was cached, 2804# so that the user can short-circuit this test for compilers unknown to 2805# Autoconf. 2806for ac_file in $ac_files '' 2807do 2808 test -f "$ac_file" || continue 2809 case $ac_file in 2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2811 ;; 2812 [ab].out ) 2813 # We found the default executable, but exeext='' is most 2814 # certainly right. 2815 break;; 2816 *.* ) 2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2818 then :; else 2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2820 fi 2821 # We set ac_cv_exeext here because the later test for it is not 2822 # safe: cross compilers may not add the suffix if given an `-o' 2823 # argument, so we may need to know it at that point already. 2824 # Even if this section looks crufty: it has the advantage of 2825 # actually working. 2826 break;; 2827 * ) 2828 break;; 2829 esac 2830done 2831test "$ac_cv_exeext" = no && ac_cv_exeext= 2832 2833else 2834 ac_file='' 2835fi 2836 2837{ echo "$as_me:$LINENO: result: $ac_file" >&5 2838echo "${ECHO_T}$ac_file" >&6; } 2839if test -z "$ac_file"; then 2840 echo "$as_me: failed program was:" >&5 2841sed 's/^/| /' conftest.$ac_ext >&5 2842 2843{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2844See \`config.log' for more details." >&5 2845echo "$as_me: error: C compiler cannot create executables 2846See \`config.log' for more details." >&2;} 2847 { (exit 77); exit 77; }; } 2848fi 2849 2850ac_exeext=$ac_cv_exeext 2851 2852# Check that the compiler produces executables we can run. If not, either 2853# the compiler is broken, or we cross compile. 2854{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2855echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2856# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2857# If not cross compiling, check that we can run a simple program. 2858if test "$cross_compiling" != yes; then 2859 if { ac_try='./$ac_file' 2860 { (case "(($ac_try" in 2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2862 *) ac_try_echo=$ac_try;; 2863esac 2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2865 (eval "$ac_try") 2>&5 2866 ac_status=$? 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); }; }; then 2869 cross_compiling=no 2870 else 2871 if test "$cross_compiling" = maybe; then 2872 cross_compiling=yes 2873 else 2874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2875If you meant to cross compile, use \`--host'. 2876See \`config.log' for more details." >&5 2877echo "$as_me: error: cannot run C compiled programs. 2878If you meant to cross compile, use \`--host'. 2879See \`config.log' for more details." >&2;} 2880 { (exit 1); exit 1; }; } 2881 fi 2882 fi 2883fi 2884{ echo "$as_me:$LINENO: result: yes" >&5 2885echo "${ECHO_T}yes" >&6; } 2886 2887rm -f a.out a.exe conftest$ac_cv_exeext b.out 2888ac_clean_files=$ac_clean_files_save 2889# Check that the compiler produces executables we can run. If not, either 2890# the compiler is broken, or we cross compile. 2891{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2892echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2893{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2894echo "${ECHO_T}$cross_compiling" >&6; } 2895 2896{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2897echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2898if { (ac_try="$ac_link" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_link") 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); }; then 2908 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2910# work properly (i.e., refer to `conftest.exe'), while it won't with 2911# `rm'. 2912for ac_file in conftest.exe conftest conftest.*; do 2913 test -f "$ac_file" || continue 2914 case $ac_file in 2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2917 break;; 2918 * ) break;; 2919 esac 2920done 2921else 2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2923See \`config.log' for more details." >&5 2924echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2925See \`config.log' for more details." >&2;} 2926 { (exit 1); exit 1; }; } 2927fi 2928 2929rm -f conftest$ac_cv_exeext 2930{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2931echo "${ECHO_T}$ac_cv_exeext" >&6; } 2932 2933rm -f conftest.$ac_ext 2934EXEEXT=$ac_cv_exeext 2935ac_exeext=$EXEEXT 2936{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2937echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2938if test "${ac_cv_objext+set}" = set; then 2939 echo $ECHO_N "(cached) $ECHO_C" >&6 2940else 2941 cat >conftest.$ac_ext <<_ACEOF 2942/* confdefs.h. */ 2943_ACEOF 2944cat confdefs.h >>conftest.$ac_ext 2945cat >>conftest.$ac_ext <<_ACEOF 2946/* end confdefs.h. */ 2947 2948int 2949main () 2950{ 2951 2952 ; 2953 return 0; 2954} 2955_ACEOF 2956rm -f conftest.o conftest.obj 2957if { (ac_try="$ac_compile" 2958case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961esac 2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2963 (eval "$ac_compile") 2>&5 2964 ac_status=$? 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); }; then 2967 for ac_file in conftest.o conftest.obj conftest.*; do 2968 test -f "$ac_file" || continue; 2969 case $ac_file in 2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2972 break;; 2973 esac 2974done 2975else 2976 echo "$as_me: failed program was:" >&5 2977sed 's/^/| /' conftest.$ac_ext >&5 2978 2979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2980See \`config.log' for more details." >&5 2981echo "$as_me: error: cannot compute suffix of object files: cannot compile 2982See \`config.log' for more details." >&2;} 2983 { (exit 1); exit 1; }; } 2984fi 2985 2986rm -f conftest.$ac_cv_objext conftest.$ac_ext 2987fi 2988{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2989echo "${ECHO_T}$ac_cv_objext" >&6; } 2990OBJEXT=$ac_cv_objext 2991ac_objext=$OBJEXT 2992{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2994if test "${ac_cv_c_compiler_gnu+set}" = set; then 2995 echo $ECHO_N "(cached) $ECHO_C" >&6 2996else 2997 cat >conftest.$ac_ext <<_ACEOF 2998/* confdefs.h. */ 2999_ACEOF 3000cat confdefs.h >>conftest.$ac_ext 3001cat >>conftest.$ac_ext <<_ACEOF 3002/* end confdefs.h. */ 3003 3004int 3005main () 3006{ 3007#ifndef __GNUC__ 3008 choke me 3009#endif 3010 3011 ; 3012 return 0; 3013} 3014_ACEOF 3015rm -f conftest.$ac_objext 3016if { (ac_try="$ac_compile" 3017case "(($ac_try" in 3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3019 *) ac_try_echo=$ac_try;; 3020esac 3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3022 (eval "$ac_compile") 2>conftest.er1 3023 ac_status=$? 3024 grep -v '^ *+' conftest.er1 >conftest.err 3025 rm -f conftest.er1 3026 cat conftest.err >&5 3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } && { 3029 test -z "$ac_c_werror_flag" || 3030 test ! -s conftest.err 3031 } && test -s conftest.$ac_objext; then 3032 ac_compiler_gnu=yes 3033else 3034 echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037 ac_compiler_gnu=no 3038fi 3039 3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3041ac_cv_c_compiler_gnu=$ac_compiler_gnu 3042 3043fi 3044{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3045echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3046GCC=`test $ac_compiler_gnu = yes && echo yes` 3047ac_test_CFLAGS=${CFLAGS+set} 3048ac_save_CFLAGS=$CFLAGS 3049{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3050echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3051if test "${ac_cv_prog_cc_g+set}" = set; then 3052 echo $ECHO_N "(cached) $ECHO_C" >&6 3053else 3054 ac_save_c_werror_flag=$ac_c_werror_flag 3055 ac_c_werror_flag=yes 3056 ac_cv_prog_cc_g=no 3057 CFLAGS="-g" 3058 cat >conftest.$ac_ext <<_ACEOF 3059/* confdefs.h. */ 3060_ACEOF 3061cat confdefs.h >>conftest.$ac_ext 3062cat >>conftest.$ac_ext <<_ACEOF 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068 3069 ; 3070 return 0; 3071} 3072_ACEOF 3073rm -f conftest.$ac_objext 3074if { (ac_try="$ac_compile" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3080 (eval "$ac_compile") 2>conftest.er1 3081 ac_status=$? 3082 grep -v '^ *+' conftest.er1 >conftest.err 3083 rm -f conftest.er1 3084 cat conftest.err >&5 3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3086 (exit $ac_status); } && { 3087 test -z "$ac_c_werror_flag" || 3088 test ! -s conftest.err 3089 } && test -s conftest.$ac_objext; then 3090 ac_cv_prog_cc_g=yes 3091else 3092 echo "$as_me: failed program was:" >&5 3093sed 's/^/| /' conftest.$ac_ext >&5 3094 3095 CFLAGS="" 3096 cat >conftest.$ac_ext <<_ACEOF 3097/* confdefs.h. */ 3098_ACEOF 3099cat confdefs.h >>conftest.$ac_ext 3100cat >>conftest.$ac_ext <<_ACEOF 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111rm -f conftest.$ac_objext 3112if { (ac_try="$ac_compile" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3118 (eval "$ac_compile") 2>conftest.er1 3119 ac_status=$? 3120 grep -v '^ *+' conftest.er1 >conftest.err 3121 rm -f conftest.er1 3122 cat conftest.err >&5 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); } && { 3125 test -z "$ac_c_werror_flag" || 3126 test ! -s conftest.err 3127 } && test -s conftest.$ac_objext; then 3128 : 3129else 3130 echo "$as_me: failed program was:" >&5 3131sed 's/^/| /' conftest.$ac_ext >&5 3132 3133 ac_c_werror_flag=$ac_save_c_werror_flag 3134 CFLAGS="-g" 3135 cat >conftest.$ac_ext <<_ACEOF 3136/* confdefs.h. */ 3137_ACEOF 3138cat confdefs.h >>conftest.$ac_ext 3139cat >>conftest.$ac_ext <<_ACEOF 3140/* end confdefs.h. */ 3141 3142int 3143main () 3144{ 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150rm -f conftest.$ac_objext 3151if { (ac_try="$ac_compile" 3152case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3157 (eval "$ac_compile") 2>conftest.er1 3158 ac_status=$? 3159 grep -v '^ *+' conftest.er1 >conftest.err 3160 rm -f conftest.er1 3161 cat conftest.err >&5 3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); } && { 3164 test -z "$ac_c_werror_flag" || 3165 test ! -s conftest.err 3166 } && test -s conftest.$ac_objext; then 3167 ac_cv_prog_cc_g=yes 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172 3173fi 3174 3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3176fi 3177 3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3179fi 3180 3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3182 ac_c_werror_flag=$ac_save_c_werror_flag 3183fi 3184{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3185echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3186if test "$ac_test_CFLAGS" = set; then 3187 CFLAGS=$ac_save_CFLAGS 3188elif test $ac_cv_prog_cc_g = yes; then 3189 if test "$GCC" = yes; then 3190 CFLAGS="-g -O2" 3191 else 3192 CFLAGS="-g" 3193 fi 3194else 3195 if test "$GCC" = yes; then 3196 CFLAGS="-O2" 3197 else 3198 CFLAGS= 3199 fi 3200fi 3201{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3202echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3203if test "${ac_cv_prog_cc_c89+set}" = set; then 3204 echo $ECHO_N "(cached) $ECHO_C" >&6 3205else 3206 ac_cv_prog_cc_c89=no 3207ac_save_CC=$CC 3208cat >conftest.$ac_ext <<_ACEOF 3209/* confdefs.h. */ 3210_ACEOF 3211cat confdefs.h >>conftest.$ac_ext 3212cat >>conftest.$ac_ext <<_ACEOF 3213/* end confdefs.h. */ 3214#include <stdarg.h> 3215#include <stdio.h> 3216#include <sys/types.h> 3217#include <sys/stat.h> 3218/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3219struct buf { int x; }; 3220FILE * (*rcsopen) (struct buf *, struct stat *, int); 3221static char *e (p, i) 3222 char **p; 3223 int i; 3224{ 3225 return p[i]; 3226} 3227static char *f (char * (*g) (char **, int), char **p, ...) 3228{ 3229 char *s; 3230 va_list v; 3231 va_start (v,p); 3232 s = g (p, va_arg (v,int)); 3233 va_end (v); 3234 return s; 3235} 3236 3237/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3238 function prototypes and stuff, but not '\xHH' hex character constants. 3239 These don't provoke an error unfortunately, instead are silently treated 3240 as 'x'. The following induces an error, until -std is added to get 3241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3242 array size at least. It's necessary to write '\x00'==0 to get something 3243 that's true only with -std. */ 3244int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3245 3246/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3247 inside strings and character constants. */ 3248#define FOO(x) 'x' 3249int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3250 3251int test (int i, double x); 3252struct s1 {int (*f) (int a);}; 3253struct s2 {int (*f) (double a);}; 3254int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3255int argc; 3256char **argv; 3257int 3258main () 3259{ 3260return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3267do 3268 CC="$ac_save_CC $ac_arg" 3269 rm -f conftest.$ac_objext 3270if { (ac_try="$ac_compile" 3271case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3276 (eval "$ac_compile") 2>conftest.er1 3277 ac_status=$? 3278 grep -v '^ *+' conftest.er1 >conftest.err 3279 rm -f conftest.er1 3280 cat conftest.err >&5 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); } && { 3283 test -z "$ac_c_werror_flag" || 3284 test ! -s conftest.err 3285 } && test -s conftest.$ac_objext; then 3286 ac_cv_prog_cc_c89=$ac_arg 3287else 3288 echo "$as_me: failed program was:" >&5 3289sed 's/^/| /' conftest.$ac_ext >&5 3290 3291 3292fi 3293 3294rm -f core conftest.err conftest.$ac_objext 3295 test "x$ac_cv_prog_cc_c89" != "xno" && break 3296done 3297rm -f conftest.$ac_ext 3298CC=$ac_save_CC 3299 3300fi 3301# AC_CACHE_VAL 3302case "x$ac_cv_prog_cc_c89" in 3303 x) 3304 { echo "$as_me:$LINENO: result: none needed" >&5 3305echo "${ECHO_T}none needed" >&6; } ;; 3306 xno) 3307 { echo "$as_me:$LINENO: result: unsupported" >&5 3308echo "${ECHO_T}unsupported" >&6; } ;; 3309 *) 3310 CC="$CC $ac_cv_prog_cc_c89" 3311 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3312echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3313esac 3314 3315 3316ac_ext=c 3317ac_cpp='$CPP $CPPFLAGS' 3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3320ac_compiler_gnu=$ac_cv_c_compiler_gnu 3321DEPDIR="${am__leading_dot}deps" 3322 3323ac_config_commands="$ac_config_commands depfiles" 3324 3325 3326am_make=${MAKE-make} 3327cat > confinc << 'END' 3328am__doit: 3329 @echo done 3330.PHONY: am__doit 3331END 3332# If we don't find an include directive, just comment out the code. 3333{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3334echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3335am__include="#" 3336am__quote= 3337_am_result=none 3338# First try GNU make style include. 3339echo "include confinc" > confmf 3340# We grep out `Entering directory' and `Leaving directory' 3341# messages which can occur if `w' ends up in MAKEFLAGS. 3342# In particular we don't look at `^make:' because GNU make might 3343# be invoked under some other name (usually "gmake"), in which 3344# case it prints its new name instead of `make'. 3345if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3346 am__include=include 3347 am__quote= 3348 _am_result=GNU 3349fi 3350# Now try BSD make style include. 3351if test "$am__include" = "#"; then 3352 echo '.include "confinc"' > confmf 3353 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3354 am__include=.include 3355 am__quote="\"" 3356 _am_result=BSD 3357 fi 3358fi 3359 3360 3361{ echo "$as_me:$LINENO: result: $_am_result" >&5 3362echo "${ECHO_T}$_am_result" >&6; } 3363rm -f confinc confmf 3364 3365# Check whether --enable-dependency-tracking was given. 3366if test "${enable_dependency_tracking+set}" = set; then 3367 enableval=$enable_dependency_tracking; 3368fi 3369 3370if test "x$enable_dependency_tracking" != xno; then 3371 am_depcomp="$ac_aux_dir/depcomp" 3372 AMDEPBACKSLASH='\' 3373fi 3374 if test "x$enable_dependency_tracking" != xno; then 3375 AMDEP_TRUE= 3376 AMDEP_FALSE='#' 3377else 3378 AMDEP_TRUE='#' 3379 AMDEP_FALSE= 3380fi 3381 3382 3383 3384depcc="$CC" am_compiler_list= 3385 3386{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3387echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3388if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3389 echo $ECHO_N "(cached) $ECHO_C" >&6 3390else 3391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3392 # We make a subdir and do the tests there. Otherwise we can end up 3393 # making bogus files that we don't know about and never remove. For 3394 # instance it was reported that on HP-UX the gcc test will end up 3395 # making a dummy file named `D' -- because `-MD' means `put the output 3396 # in D'. 3397 mkdir conftest.dir 3398 # Copy depcomp to subdir because otherwise we won't find it if we're 3399 # using a relative directory. 3400 cp "$am_depcomp" conftest.dir 3401 cd conftest.dir 3402 # We will build objects and dependencies in a subdirectory because 3403 # it helps to detect inapplicable dependency modes. For instance 3404 # both Tru64's cc and ICC support -MD to output dependencies as a 3405 # side effect of compilation, but ICC will put the dependencies in 3406 # the current directory while Tru64 will put them in the object 3407 # directory. 3408 mkdir sub 3409 3410 am_cv_CC_dependencies_compiler_type=none 3411 if test "$am_compiler_list" = ""; then 3412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3413 fi 3414 for depmode in $am_compiler_list; do 3415 # Setup a source with many dependencies, because some compilers 3416 # like to wrap large dependency lists on column 80 (with \), and 3417 # we should not choose a depcomp mode which is confused by this. 3418 # 3419 # We need to recreate these files for each test, as the compiler may 3420 # overwrite some of them when testing with obscure command lines. 3421 # This happens at least with the AIX C compiler. 3422 : > sub/conftest.c 3423 for i in 1 2 3 4 5 6; do 3424 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3425 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3426 # Solaris 8's {/usr,}/bin/sh. 3427 touch sub/conftst$i.h 3428 done 3429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3430 3431 case $depmode in 3432 nosideeffect) 3433 # after this tag, mechanisms are not by side-effect, so they'll 3434 # only be used when explicitly requested 3435 if test "x$enable_dependency_tracking" = xyes; then 3436 continue 3437 else 3438 break 3439 fi 3440 ;; 3441 none) break ;; 3442 esac 3443 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3444 # mode. It turns out that the SunPro C++ compiler does not properly 3445 # handle `-M -o', and we need to detect this. 3446 if depmode=$depmode \ 3447 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3449 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3450 >/dev/null 2>conftest.err && 3451 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3452 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3453 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3454 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3455 # icc doesn't choke on unknown options, it will just issue warnings 3456 # or remarks (even with -Werror). So we grep stderr for any message 3457 # that says an option was ignored or not supported. 3458 # When given -MP, icc 7.0 and 7.1 complain thusly: 3459 # icc: Command line warning: ignoring option '-M'; no argument required 3460 # The diagnosis changed in icc 8.0: 3461 # icc: Command line remark: option '-MP' not supported 3462 if (grep 'ignoring option' conftest.err || 3463 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3464 am_cv_CC_dependencies_compiler_type=$depmode 3465 break 3466 fi 3467 fi 3468 done 3469 3470 cd .. 3471 rm -rf conftest.dir 3472else 3473 am_cv_CC_dependencies_compiler_type=none 3474fi 3475 3476fi 3477{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3478echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3479CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3480 3481 if 3482 test "x$enable_dependency_tracking" != xno \ 3483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3484 am__fastdepCC_TRUE= 3485 am__fastdepCC_FALSE='#' 3486else 3487 am__fastdepCC_TRUE='#' 3488 am__fastdepCC_FALSE= 3489fi 3490 3491 3492# Check whether --enable-shared was given. 3493if test "${enable_shared+set}" = set; then 3494 enableval=$enable_shared; p=${PACKAGE-default} 3495 case $enableval in 3496 yes) enable_shared=yes ;; 3497 no) enable_shared=no ;; 3498 *) 3499 enable_shared=no 3500 # Look at the argument we got. We use all the common list separators. 3501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3502 for pkg in $enableval; do 3503 IFS="$lt_save_ifs" 3504 if test "X$pkg" = "X$p"; then 3505 enable_shared=yes 3506 fi 3507 done 3508 IFS="$lt_save_ifs" 3509 ;; 3510 esac 3511else 3512 enable_shared=yes 3513fi 3514 3515 3516# Check whether --enable-static was given. 3517if test "${enable_static+set}" = set; then 3518 enableval=$enable_static; p=${PACKAGE-default} 3519 case $enableval in 3520 yes) enable_static=yes ;; 3521 no) enable_static=no ;; 3522 *) 3523 enable_static=no 3524 # Look at the argument we got. We use all the common list separators. 3525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3526 for pkg in $enableval; do 3527 IFS="$lt_save_ifs" 3528 if test "X$pkg" = "X$p"; then 3529 enable_static=yes 3530 fi 3531 done 3532 IFS="$lt_save_ifs" 3533 ;; 3534 esac 3535else 3536 enable_static=yes 3537fi 3538 3539 3540# Check whether --enable-fast-install was given. 3541if test "${enable_fast_install+set}" = set; then 3542 enableval=$enable_fast_install; p=${PACKAGE-default} 3543 case $enableval in 3544 yes) enable_fast_install=yes ;; 3545 no) enable_fast_install=no ;; 3546 *) 3547 enable_fast_install=no 3548 # Look at the argument we got. We use all the common list separators. 3549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3550 for pkg in $enableval; do 3551 IFS="$lt_save_ifs" 3552 if test "X$pkg" = "X$p"; then 3553 enable_fast_install=yes 3554 fi 3555 done 3556 IFS="$lt_save_ifs" 3557 ;; 3558 esac 3559else 3560 enable_fast_install=yes 3561fi 3562 3563 3564# Make sure we can run config.sub. 3565$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3566 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3567echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3568 { (exit 1); exit 1; }; } 3569 3570{ echo "$as_me:$LINENO: checking build system type" >&5 3571echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3572if test "${ac_cv_build+set}" = set; then 3573 echo $ECHO_N "(cached) $ECHO_C" >&6 3574else 3575 ac_build_alias=$build_alias 3576test "x$ac_build_alias" = x && 3577 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3578test "x$ac_build_alias" = x && 3579 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3580echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3581 { (exit 1); exit 1; }; } 3582ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3585 { (exit 1); exit 1; }; } 3586 3587fi 3588{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3589echo "${ECHO_T}$ac_cv_build" >&6; } 3590case $ac_cv_build in 3591*-*-*) ;; 3592*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3593echo "$as_me: error: invalid value of canonical build" >&2;} 3594 { (exit 1); exit 1; }; };; 3595esac 3596build=$ac_cv_build 3597ac_save_IFS=$IFS; IFS='-' 3598set x $ac_cv_build 3599shift 3600build_cpu=$1 3601build_vendor=$2 3602shift; shift 3603# Remember, the first character of IFS is used to create $*, 3604# except with old shells: 3605build_os=$* 3606IFS=$ac_save_IFS 3607case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3608 3609 3610{ echo "$as_me:$LINENO: checking host system type" >&5 3611echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3612if test "${ac_cv_host+set}" = set; then 3613 echo $ECHO_N "(cached) $ECHO_C" >&6 3614else 3615 if test "x$host_alias" = x; then 3616 ac_cv_host=$ac_cv_build 3617else 3618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3619 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3620echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3621 { (exit 1); exit 1; }; } 3622fi 3623 3624fi 3625{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3626echo "${ECHO_T}$ac_cv_host" >&6; } 3627case $ac_cv_host in 3628*-*-*) ;; 3629*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3630echo "$as_me: error: invalid value of canonical host" >&2;} 3631 { (exit 1); exit 1; }; };; 3632esac 3633host=$ac_cv_host 3634ac_save_IFS=$IFS; IFS='-' 3635set x $ac_cv_host 3636shift 3637host_cpu=$1 3638host_vendor=$2 3639shift; shift 3640# Remember, the first character of IFS is used to create $*, 3641# except with old shells: 3642host_os=$* 3643IFS=$ac_save_IFS 3644case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3645 3646 3647{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3648echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3649if test "${lt_cv_path_SED+set}" = set; then 3650 echo $ECHO_N "(cached) $ECHO_C" >&6 3651else 3652 # Loop through the user's path and test for sed and gsed. 3653# Then use that list of sed's as ones to test for truncation. 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655for as_dir in $PATH 3656do 3657 IFS=$as_save_IFS 3658 test -z "$as_dir" && as_dir=. 3659 for lt_ac_prog in sed gsed; do 3660 for ac_exec_ext in '' $ac_executable_extensions; do 3661 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3662 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3663 fi 3664 done 3665 done 3666done 3667lt_ac_max=0 3668lt_ac_count=0 3669# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3670# along with /bin/sed that truncates output. 3671for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3672 test ! -f $lt_ac_sed && continue 3673 cat /dev/null > conftest.in 3674 lt_ac_count=0 3675 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3676 # Check for GNU sed and select it if it is found. 3677 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3678 lt_cv_path_SED=$lt_ac_sed 3679 break 3680 fi 3681 while true; do 3682 cat conftest.in conftest.in >conftest.tmp 3683 mv conftest.tmp conftest.in 3684 cp conftest.in conftest.nl 3685 echo >>conftest.nl 3686 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3687 cmp -s conftest.out conftest.nl || break 3688 # 10000 chars as input seems more than enough 3689 test $lt_ac_count -gt 10 && break 3690 lt_ac_count=`expr $lt_ac_count + 1` 3691 if test $lt_ac_count -gt $lt_ac_max; then 3692 lt_ac_max=$lt_ac_count 3693 lt_cv_path_SED=$lt_ac_sed 3694 fi 3695 done 3696done 3697 3698fi 3699 3700SED=$lt_cv_path_SED 3701{ echo "$as_me:$LINENO: result: $SED" >&5 3702echo "${ECHO_T}$SED" >&6; } 3703 3704{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3705echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3706if test "${ac_cv_path_GREP+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 # Extract the first word of "grep ggrep" to use in msg output 3710if test -z "$GREP"; then 3711set dummy grep ggrep; ac_prog_name=$2 3712if test "${ac_cv_path_GREP+set}" = set; then 3713 echo $ECHO_N "(cached) $ECHO_C" >&6 3714else 3715 ac_path_GREP_found=false 3716# Loop through the user's path and test for each of PROGNAME-LIST 3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_prog in grep ggrep; do 3723 for ac_exec_ext in '' $ac_executable_extensions; do 3724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3726 # Check for GNU ac_path_GREP and select it if it is found. 3727 # Check for GNU $ac_path_GREP 3728case `"$ac_path_GREP" --version 2>&1` in 3729*GNU*) 3730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3731*) 3732 ac_count=0 3733 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3734 while : 3735 do 3736 cat "conftest.in" "conftest.in" >"conftest.tmp" 3737 mv "conftest.tmp" "conftest.in" 3738 cp "conftest.in" "conftest.nl" 3739 echo 'GREP' >> "conftest.nl" 3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3742 ac_count=`expr $ac_count + 1` 3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3744 # Best one so far, save it but keep looking for a better one 3745 ac_cv_path_GREP="$ac_path_GREP" 3746 ac_path_GREP_max=$ac_count 3747 fi 3748 # 10*(2^10) chars as input seems more than enough 3749 test $ac_count -gt 10 && break 3750 done 3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3752esac 3753 3754 3755 $ac_path_GREP_found && break 3 3756 done 3757done 3758 3759done 3760IFS=$as_save_IFS 3761 3762 3763fi 3764 3765GREP="$ac_cv_path_GREP" 3766if test -z "$GREP"; then 3767 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3768echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3769 { (exit 1); exit 1; }; } 3770fi 3771 3772else 3773 ac_cv_path_GREP=$GREP 3774fi 3775 3776 3777fi 3778{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3779echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3780 GREP="$ac_cv_path_GREP" 3781 3782 3783{ echo "$as_me:$LINENO: checking for egrep" >&5 3784echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3785if test "${ac_cv_path_EGREP+set}" = set; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3789 then ac_cv_path_EGREP="$GREP -E" 3790 else 3791 # Extract the first word of "egrep" to use in msg output 3792if test -z "$EGREP"; then 3793set dummy egrep; ac_prog_name=$2 3794if test "${ac_cv_path_EGREP+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796else 3797 ac_path_EGREP_found=false 3798# Loop through the user's path and test for each of PROGNAME-LIST 3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3800for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3801do 3802 IFS=$as_save_IFS 3803 test -z "$as_dir" && as_dir=. 3804 for ac_prog in egrep; do 3805 for ac_exec_ext in '' $ac_executable_extensions; do 3806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3807 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3808 # Check for GNU ac_path_EGREP and select it if it is found. 3809 # Check for GNU $ac_path_EGREP 3810case `"$ac_path_EGREP" --version 2>&1` in 3811*GNU*) 3812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3813*) 3814 ac_count=0 3815 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3816 while : 3817 do 3818 cat "conftest.in" "conftest.in" >"conftest.tmp" 3819 mv "conftest.tmp" "conftest.in" 3820 cp "conftest.in" "conftest.nl" 3821 echo 'EGREP' >> "conftest.nl" 3822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3824 ac_count=`expr $ac_count + 1` 3825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3826 # Best one so far, save it but keep looking for a better one 3827 ac_cv_path_EGREP="$ac_path_EGREP" 3828 ac_path_EGREP_max=$ac_count 3829 fi 3830 # 10*(2^10) chars as input seems more than enough 3831 test $ac_count -gt 10 && break 3832 done 3833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3834esac 3835 3836 3837 $ac_path_EGREP_found && break 3 3838 done 3839done 3840 3841done 3842IFS=$as_save_IFS 3843 3844 3845fi 3846 3847EGREP="$ac_cv_path_EGREP" 3848if test -z "$EGREP"; then 3849 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3850echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3851 { (exit 1); exit 1; }; } 3852fi 3853 3854else 3855 ac_cv_path_EGREP=$EGREP 3856fi 3857 3858 3859 fi 3860fi 3861{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3862echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3863 EGREP="$ac_cv_path_EGREP" 3864 3865 3866 3867# Check whether --with-gnu-ld was given. 3868if test "${with_gnu_ld+set}" = set; then 3869 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3870else 3871 with_gnu_ld=no 3872fi 3873 3874ac_prog=ld 3875if test "$GCC" = yes; then 3876 # Check if gcc -print-prog-name=ld gives a path. 3877 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3878echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3879 case $host in 3880 *-*-mingw*) 3881 # gcc leaves a trailing carriage return which upsets mingw 3882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3883 *) 3884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3885 esac 3886 case $ac_prog in 3887 # Accept absolute paths. 3888 [\\/]* | ?:[\\/]*) 3889 re_direlt='/[^/][^/]*/\.\./' 3890 # Canonicalize the pathname of ld 3891 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3893 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3894 done 3895 test -z "$LD" && LD="$ac_prog" 3896 ;; 3897 "") 3898 # If it fails, then pretend we aren't using GCC. 3899 ac_prog=ld 3900 ;; 3901 *) 3902 # If it is relative, then search for the first ld in PATH. 3903 with_gnu_ld=unknown 3904 ;; 3905 esac 3906elif test "$with_gnu_ld" = yes; then 3907 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3908echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3909else 3910 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3911echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3912fi 3913if test "${lt_cv_path_LD+set}" = set; then 3914 echo $ECHO_N "(cached) $ECHO_C" >&6 3915else 3916 if test -z "$LD"; then 3917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3918 for ac_dir in $PATH; do 3919 IFS="$lt_save_ifs" 3920 test -z "$ac_dir" && ac_dir=. 3921 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3922 lt_cv_path_LD="$ac_dir/$ac_prog" 3923 # Check to see if the program is GNU ld. I'd rather use --version, 3924 # but apparently some variants of GNU ld only accept -v. 3925 # Break only if it was the GNU/non-GNU ld that we prefer. 3926 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3927 *GNU* | *'with BFD'*) 3928 test "$with_gnu_ld" != no && break 3929 ;; 3930 *) 3931 test "$with_gnu_ld" != yes && break 3932 ;; 3933 esac 3934 fi 3935 done 3936 IFS="$lt_save_ifs" 3937else 3938 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3939fi 3940fi 3941 3942LD="$lt_cv_path_LD" 3943if test -n "$LD"; then 3944 { echo "$as_me:$LINENO: result: $LD" >&5 3945echo "${ECHO_T}$LD" >&6; } 3946else 3947 { echo "$as_me:$LINENO: result: no" >&5 3948echo "${ECHO_T}no" >&6; } 3949fi 3950test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3951echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3952 { (exit 1); exit 1; }; } 3953{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3954echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3955if test "${lt_cv_prog_gnu_ld+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3959case `$LD -v 2>&1 </dev/null` in 3960*GNU* | *'with BFD'*) 3961 lt_cv_prog_gnu_ld=yes 3962 ;; 3963*) 3964 lt_cv_prog_gnu_ld=no 3965 ;; 3966esac 3967fi 3968{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3969echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3970with_gnu_ld=$lt_cv_prog_gnu_ld 3971 3972 3973{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3974echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3975if test "${lt_cv_ld_reload_flag+set}" = set; then 3976 echo $ECHO_N "(cached) $ECHO_C" >&6 3977else 3978 lt_cv_ld_reload_flag='-r' 3979fi 3980{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3981echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3982reload_flag=$lt_cv_ld_reload_flag 3983case $reload_flag in 3984"" | " "*) ;; 3985*) reload_flag=" $reload_flag" ;; 3986esac 3987reload_cmds='$LD$reload_flag -o $output$reload_objs' 3988case $host_os in 3989 darwin*) 3990 if test "$GCC" = yes; then 3991 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3992 else 3993 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3994 fi 3995 ;; 3996esac 3997 3998{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3999echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4000if test "${lt_cv_path_NM+set}" = set; then 4001 echo $ECHO_N "(cached) $ECHO_C" >&6 4002else 4003 if test -n "$NM"; then 4004 # Let the user override the test. 4005 lt_cv_path_NM="$NM" 4006else 4007 lt_nm_to_check="${ac_tool_prefix}nm" 4008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4009 lt_nm_to_check="$lt_nm_to_check nm" 4010 fi 4011 for lt_tmp_nm in $lt_nm_to_check; do 4012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4014 IFS="$lt_save_ifs" 4015 test -z "$ac_dir" && ac_dir=. 4016 tmp_nm="$ac_dir/$lt_tmp_nm" 4017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4018 # Check to see if the nm accepts a BSD-compat flag. 4019 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4020 # nm: unknown option "B" ignored 4021 # Tru64's nm complains that /dev/null is an invalid object file 4022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4023 */dev/null* | *'Invalid file or object type'*) 4024 lt_cv_path_NM="$tmp_nm -B" 4025 break 4026 ;; 4027 *) 4028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4029 */dev/null*) 4030 lt_cv_path_NM="$tmp_nm -p" 4031 break 4032 ;; 4033 *) 4034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4035 continue # so that we can try to find one that supports BSD flags 4036 ;; 4037 esac 4038 ;; 4039 esac 4040 fi 4041 done 4042 IFS="$lt_save_ifs" 4043 done 4044 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4045fi 4046fi 4047{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4048echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4049NM="$lt_cv_path_NM" 4050 4051{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4052echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4053LN_S=$as_ln_s 4054if test "$LN_S" = "ln -s"; then 4055 { echo "$as_me:$LINENO: result: yes" >&5 4056echo "${ECHO_T}yes" >&6; } 4057else 4058 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4059echo "${ECHO_T}no, using $LN_S" >&6; } 4060fi 4061 4062{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4063echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4064if test "${lt_cv_deplibs_check_method+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 lt_cv_file_magic_cmd='$MAGIC_CMD' 4068lt_cv_file_magic_test_file= 4069lt_cv_deplibs_check_method='unknown' 4070# Need to set the preceding variable on all platforms that support 4071# interlibrary dependencies. 4072# 'none' -- dependencies not supported. 4073# `unknown' -- same as none, but documents that we really don't know. 4074# 'pass_all' -- all dependencies passed with no checks. 4075# 'test_compile' -- check by making test program. 4076# 'file_magic [[regex]]' -- check by looking for files in library path 4077# which responds to the $file_magic_cmd with a given extended regex. 4078# If you have `file' or equivalent on your system and you're not sure 4079# whether `pass_all' will *always* work, you probably want this one. 4080 4081case $host_os in 4082aix4* | aix5*) 4083 lt_cv_deplibs_check_method=pass_all 4084 ;; 4085 4086beos*) 4087 lt_cv_deplibs_check_method=pass_all 4088 ;; 4089 4090bsdi[45]*) 4091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4092 lt_cv_file_magic_cmd='/usr/bin/file -L' 4093 lt_cv_file_magic_test_file=/shlib/libc.so 4094 ;; 4095 4096cygwin*) 4097 # func_win32_libid is a shell function defined in ltmain.sh 4098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4099 lt_cv_file_magic_cmd='func_win32_libid' 4100 ;; 4101 4102mingw* | pw32*) 4103 # Base MSYS/MinGW do not provide the 'file' command needed by 4104 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4105 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4106 lt_cv_file_magic_cmd='$OBJDUMP -f' 4107 ;; 4108 4109darwin* | rhapsody*) 4110 lt_cv_deplibs_check_method=pass_all 4111 ;; 4112 4113freebsd* | kfreebsd*-gnu | dragonfly*) 4114 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4115 case $host_cpu in 4116 i*86 ) 4117 # Not sure whether the presence of OpenBSD here was a mistake. 4118 # Let's accept both of them until this is cleared up. 4119 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4120 lt_cv_file_magic_cmd=/usr/bin/file 4121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4122 ;; 4123 esac 4124 else 4125 lt_cv_deplibs_check_method=pass_all 4126 fi 4127 ;; 4128 4129gnu*) 4130 lt_cv_deplibs_check_method=pass_all 4131 ;; 4132 4133hpux10.20* | hpux11*) 4134 lt_cv_file_magic_cmd=/usr/bin/file 4135 case $host_cpu in 4136 ia64*) 4137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4139 ;; 4140 hppa*64*) 4141 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]' 4142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4143 ;; 4144 *) 4145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4146 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4147 ;; 4148 esac 4149 ;; 4150 4151interix3*) 4152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4154 ;; 4155 4156irix5* | irix6* | nonstopux*) 4157 case $LD in 4158 *-32|*"-32 ") libmagic=32-bit;; 4159 *-n32|*"-n32 ") libmagic=N32;; 4160 *-64|*"-64 ") libmagic=64-bit;; 4161 *) libmagic=never-match;; 4162 esac 4163 lt_cv_deplibs_check_method=pass_all 4164 ;; 4165 4166# This must be Linux ELF. 4167linux*) 4168 lt_cv_deplibs_check_method=pass_all 4169 ;; 4170 4171netbsd*) 4172 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4174 else 4175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4176 fi 4177 ;; 4178 4179newos6*) 4180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4181 lt_cv_file_magic_cmd=/usr/bin/file 4182 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4183 ;; 4184 4185nto-qnx*) 4186 lt_cv_deplibs_check_method=unknown 4187 ;; 4188 4189openbsd*) 4190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4192 else 4193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4194 fi 4195 ;; 4196 4197osf3* | osf4* | osf5*) 4198 lt_cv_deplibs_check_method=pass_all 4199 ;; 4200 4201solaris*) 4202 lt_cv_deplibs_check_method=pass_all 4203 ;; 4204 4205sysv4 | sysv4.3*) 4206 case $host_vendor in 4207 motorola) 4208 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]' 4209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4210 ;; 4211 ncr) 4212 lt_cv_deplibs_check_method=pass_all 4213 ;; 4214 sequent) 4215 lt_cv_file_magic_cmd='/bin/file' 4216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4217 ;; 4218 sni) 4219 lt_cv_file_magic_cmd='/bin/file' 4220 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4221 lt_cv_file_magic_test_file=/lib/libc.so 4222 ;; 4223 siemens) 4224 lt_cv_deplibs_check_method=pass_all 4225 ;; 4226 pc) 4227 lt_cv_deplibs_check_method=pass_all 4228 ;; 4229 esac 4230 ;; 4231 4232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4233 lt_cv_deplibs_check_method=pass_all 4234 ;; 4235esac 4236 4237fi 4238{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4239echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4240file_magic_cmd=$lt_cv_file_magic_cmd 4241deplibs_check_method=$lt_cv_deplibs_check_method 4242test -z "$deplibs_check_method" && deplibs_check_method=unknown 4243 4244 4245 4246 4247# If no C compiler was specified, use CC. 4248LTCC=${LTCC-"$CC"} 4249 4250# If no C compiler flags were specified, use CFLAGS. 4251LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4252 4253# Allow CC to be a program name with arguments. 4254compiler=$CC 4255 4256 4257# Check whether --enable-libtool-lock was given. 4258if test "${enable_libtool_lock+set}" = set; then 4259 enableval=$enable_libtool_lock; 4260fi 4261 4262test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4263 4264# Some flags need to be propagated to the compiler or linker for good 4265# libtool support. 4266case $host in 4267ia64-*-hpux*) 4268 # Find out which ABI we are using. 4269 echo 'int i;' > conftest.$ac_ext 4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4271 (eval $ac_compile) 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); }; then 4275 case `/usr/bin/file conftest.$ac_objext` in 4276 *ELF-32*) 4277 HPUX_IA64_MODE="32" 4278 ;; 4279 *ELF-64*) 4280 HPUX_IA64_MODE="64" 4281 ;; 4282 esac 4283 fi 4284 rm -rf conftest* 4285 ;; 4286*-*-irix6*) 4287 # Find out which ABI we are using. 4288 echo '#line 4288 "configure"' > conftest.$ac_ext 4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4290 (eval $ac_compile) 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; then 4294 if test "$lt_cv_prog_gnu_ld" = yes; then 4295 case `/usr/bin/file conftest.$ac_objext` in 4296 *32-bit*) 4297 LD="${LD-ld} -melf32bsmip" 4298 ;; 4299 *N32*) 4300 LD="${LD-ld} -melf32bmipn32" 4301 ;; 4302 *64-bit*) 4303 LD="${LD-ld} -melf64bmip" 4304 ;; 4305 esac 4306 else 4307 case `/usr/bin/file conftest.$ac_objext` in 4308 *32-bit*) 4309 LD="${LD-ld} -32" 4310 ;; 4311 *N32*) 4312 LD="${LD-ld} -n32" 4313 ;; 4314 *64-bit*) 4315 LD="${LD-ld} -64" 4316 ;; 4317 esac 4318 fi 4319 fi 4320 rm -rf conftest* 4321 ;; 4322 4323x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4324 # Find out which ABI we are using. 4325 echo 'int i;' > conftest.$ac_ext 4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4327 (eval $ac_compile) 2>&5 4328 ac_status=$? 4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4330 (exit $ac_status); }; then 4331 case `/usr/bin/file conftest.o` in 4332 *32-bit*) 4333 case $host in 4334 x86_64-*linux*) 4335 LD="${LD-ld} -m elf_i386" 4336 ;; 4337 ppc64-*linux*|powerpc64-*linux*) 4338 LD="${LD-ld} -m elf32ppclinux" 4339 ;; 4340 s390x-*linux*) 4341 LD="${LD-ld} -m elf_s390" 4342 ;; 4343 sparc64-*linux*) 4344 LD="${LD-ld} -m elf32_sparc" 4345 ;; 4346 esac 4347 ;; 4348 *64-bit*) 4349 case $host in 4350 x86_64-*linux*) 4351 LD="${LD-ld} -m elf_x86_64" 4352 ;; 4353 ppc*-*linux*|powerpc*-*linux*) 4354 LD="${LD-ld} -m elf64ppc" 4355 ;; 4356 s390*-*linux*) 4357 LD="${LD-ld} -m elf64_s390" 4358 ;; 4359 sparc*-*linux*) 4360 LD="${LD-ld} -m elf64_sparc" 4361 ;; 4362 esac 4363 ;; 4364 esac 4365 fi 4366 rm -rf conftest* 4367 ;; 4368 4369*-*-sco3.2v5*) 4370 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4371 SAVE_CFLAGS="$CFLAGS" 4372 CFLAGS="$CFLAGS -belf" 4373 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4374echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4375if test "${lt_cv_cc_needs_belf+set}" = set; then 4376 echo $ECHO_N "(cached) $ECHO_C" >&6 4377else 4378 ac_ext=c 4379ac_cpp='$CPP $CPPFLAGS' 4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4382ac_compiler_gnu=$ac_cv_c_compiler_gnu 4383 4384 cat >conftest.$ac_ext <<_ACEOF 4385/* confdefs.h. */ 4386_ACEOF 4387cat confdefs.h >>conftest.$ac_ext 4388cat >>conftest.$ac_ext <<_ACEOF 4389/* end confdefs.h. */ 4390 4391int 4392main () 4393{ 4394 4395 ; 4396 return 0; 4397} 4398_ACEOF 4399rm -f conftest.$ac_objext conftest$ac_exeext 4400if { (ac_try="$ac_link" 4401case "(($ac_try" in 4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4403 *) ac_try_echo=$ac_try;; 4404esac 4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4406 (eval "$ac_link") 2>conftest.er1 4407 ac_status=$? 4408 grep -v '^ *+' conftest.er1 >conftest.err 4409 rm -f conftest.er1 4410 cat conftest.err >&5 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); } && { 4413 test -z "$ac_c_werror_flag" || 4414 test ! -s conftest.err 4415 } && test -s conftest$ac_exeext && 4416 $as_test_x conftest$ac_exeext; then 4417 lt_cv_cc_needs_belf=yes 4418else 4419 echo "$as_me: failed program was:" >&5 4420sed 's/^/| /' conftest.$ac_ext >&5 4421 4422 lt_cv_cc_needs_belf=no 4423fi 4424 4425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4426 conftest$ac_exeext conftest.$ac_ext 4427 ac_ext=c 4428ac_cpp='$CPP $CPPFLAGS' 4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4431ac_compiler_gnu=$ac_cv_c_compiler_gnu 4432 4433fi 4434{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4435echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4438 CFLAGS="$SAVE_CFLAGS" 4439 fi 4440 ;; 4441sparc*-*solaris*) 4442 # Find out which ABI we are using. 4443 echo 'int i;' > conftest.$ac_ext 4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4445 (eval $ac_compile) 2>&5 4446 ac_status=$? 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); }; then 4449 case `/usr/bin/file conftest.o` in 4450 *64-bit*) 4451 case $lt_cv_prog_gnu_ld in 4452 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4453 *) LD="${LD-ld} -64" ;; 4454 esac 4455 ;; 4456 esac 4457 fi 4458 rm -rf conftest* 4459 ;; 4460 4461 4462esac 4463 4464need_locks="$enable_libtool_lock" 4465 4466 4467ac_ext=c 4468ac_cpp='$CPP $CPPFLAGS' 4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4471ac_compiler_gnu=$ac_cv_c_compiler_gnu 4472{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4473echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4474# On Suns, sometimes $CPP names a directory. 4475if test -n "$CPP" && test -d "$CPP"; then 4476 CPP= 4477fi 4478if test -z "$CPP"; then 4479 if test "${ac_cv_prog_CPP+set}" = set; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481else 4482 # Double quotes because CPP needs to be expanded 4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4484 do 4485 ac_preproc_ok=false 4486for ac_c_preproc_warn_flag in '' yes 4487do 4488 # Use a header file that comes with gcc, so configuring glibc 4489 # with a fresh cross-compiler works. 4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4491 # <limits.h> exists even on freestanding compilers. 4492 # On the NeXT, cc -E runs the code through the compiler's parser, 4493 # not just through cpp. "Syntax error" is here to catch this case. 4494 cat >conftest.$ac_ext <<_ACEOF 4495/* confdefs.h. */ 4496_ACEOF 4497cat confdefs.h >>conftest.$ac_ext 4498cat >>conftest.$ac_ext <<_ACEOF 4499/* end confdefs.h. */ 4500#ifdef __STDC__ 4501# include <limits.h> 4502#else 4503# include <assert.h> 4504#endif 4505 Syntax error 4506_ACEOF 4507if { (ac_try="$ac_cpp conftest.$ac_ext" 4508case "(($ac_try" in 4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4510 *) ac_try_echo=$ac_try;; 4511esac 4512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4514 ac_status=$? 4515 grep -v '^ *+' conftest.er1 >conftest.err 4516 rm -f conftest.er1 4517 cat conftest.err >&5 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } >/dev/null && { 4520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4521 test ! -s conftest.err 4522 }; then 4523 : 4524else 4525 echo "$as_me: failed program was:" >&5 4526sed 's/^/| /' conftest.$ac_ext >&5 4527 4528 # Broken: fails on valid input. 4529continue 4530fi 4531 4532rm -f conftest.err conftest.$ac_ext 4533 4534 # OK, works on sane cases. Now check whether nonexistent headers 4535 # can be detected and how. 4536 cat >conftest.$ac_ext <<_ACEOF 4537/* confdefs.h. */ 4538_ACEOF 4539cat confdefs.h >>conftest.$ac_ext 4540cat >>conftest.$ac_ext <<_ACEOF 4541/* end confdefs.h. */ 4542#include <ac_nonexistent.h> 4543_ACEOF 4544if { (ac_try="$ac_cpp conftest.$ac_ext" 4545case "(($ac_try" in 4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4547 *) ac_try_echo=$ac_try;; 4548esac 4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4551 ac_status=$? 4552 grep -v '^ *+' conftest.er1 >conftest.err 4553 rm -f conftest.er1 4554 cat conftest.err >&5 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } >/dev/null && { 4557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4558 test ! -s conftest.err 4559 }; then 4560 # Broken: success on invalid input. 4561continue 4562else 4563 echo "$as_me: failed program was:" >&5 4564sed 's/^/| /' conftest.$ac_ext >&5 4565 4566 # Passes both tests. 4567ac_preproc_ok=: 4568break 4569fi 4570 4571rm -f conftest.err conftest.$ac_ext 4572 4573done 4574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4575rm -f conftest.err conftest.$ac_ext 4576if $ac_preproc_ok; then 4577 break 4578fi 4579 4580 done 4581 ac_cv_prog_CPP=$CPP 4582 4583fi 4584 CPP=$ac_cv_prog_CPP 4585else 4586 ac_cv_prog_CPP=$CPP 4587fi 4588{ echo "$as_me:$LINENO: result: $CPP" >&5 4589echo "${ECHO_T}$CPP" >&6; } 4590ac_preproc_ok=false 4591for ac_c_preproc_warn_flag in '' yes 4592do 4593 # Use a header file that comes with gcc, so configuring glibc 4594 # with a fresh cross-compiler works. 4595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4596 # <limits.h> exists even on freestanding compilers. 4597 # On the NeXT, cc -E runs the code through the compiler's parser, 4598 # not just through cpp. "Syntax error" is here to catch this case. 4599 cat >conftest.$ac_ext <<_ACEOF 4600/* confdefs.h. */ 4601_ACEOF 4602cat confdefs.h >>conftest.$ac_ext 4603cat >>conftest.$ac_ext <<_ACEOF 4604/* end confdefs.h. */ 4605#ifdef __STDC__ 4606# include <limits.h> 4607#else 4608# include <assert.h> 4609#endif 4610 Syntax error 4611_ACEOF 4612if { (ac_try="$ac_cpp conftest.$ac_ext" 4613case "(($ac_try" in 4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4615 *) ac_try_echo=$ac_try;; 4616esac 4617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4619 ac_status=$? 4620 grep -v '^ *+' conftest.er1 >conftest.err 4621 rm -f conftest.er1 4622 cat conftest.err >&5 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); } >/dev/null && { 4625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4626 test ! -s conftest.err 4627 }; then 4628 : 4629else 4630 echo "$as_me: failed program was:" >&5 4631sed 's/^/| /' conftest.$ac_ext >&5 4632 4633 # Broken: fails on valid input. 4634continue 4635fi 4636 4637rm -f conftest.err conftest.$ac_ext 4638 4639 # OK, works on sane cases. Now check whether nonexistent headers 4640 # can be detected and how. 4641 cat >conftest.$ac_ext <<_ACEOF 4642/* confdefs.h. */ 4643_ACEOF 4644cat confdefs.h >>conftest.$ac_ext 4645cat >>conftest.$ac_ext <<_ACEOF 4646/* end confdefs.h. */ 4647#include <ac_nonexistent.h> 4648_ACEOF 4649if { (ac_try="$ac_cpp conftest.$ac_ext" 4650case "(($ac_try" in 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4652 *) ac_try_echo=$ac_try;; 4653esac 4654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4656 ac_status=$? 4657 grep -v '^ *+' conftest.er1 >conftest.err 4658 rm -f conftest.er1 4659 cat conftest.err >&5 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); } >/dev/null && { 4662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4663 test ! -s conftest.err 4664 }; then 4665 # Broken: success on invalid input. 4666continue 4667else 4668 echo "$as_me: failed program was:" >&5 4669sed 's/^/| /' conftest.$ac_ext >&5 4670 4671 # Passes both tests. 4672ac_preproc_ok=: 4673break 4674fi 4675 4676rm -f conftest.err conftest.$ac_ext 4677 4678done 4679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4680rm -f conftest.err conftest.$ac_ext 4681if $ac_preproc_ok; then 4682 : 4683else 4684 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4685See \`config.log' for more details." >&5 4686echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4687See \`config.log' for more details." >&2;} 4688 { (exit 1); exit 1; }; } 4689fi 4690 4691ac_ext=c 4692ac_cpp='$CPP $CPPFLAGS' 4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696 4697 4698{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4699echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4700if test "${ac_cv_header_stdc+set}" = set; then 4701 echo $ECHO_N "(cached) $ECHO_C" >&6 4702else 4703 cat >conftest.$ac_ext <<_ACEOF 4704/* confdefs.h. */ 4705_ACEOF 4706cat confdefs.h >>conftest.$ac_ext 4707cat >>conftest.$ac_ext <<_ACEOF 4708/* end confdefs.h. */ 4709#include <stdlib.h> 4710#include <stdarg.h> 4711#include <string.h> 4712#include <float.h> 4713 4714int 4715main () 4716{ 4717 4718 ; 4719 return 0; 4720} 4721_ACEOF 4722rm -f conftest.$ac_objext 4723if { (ac_try="$ac_compile" 4724case "(($ac_try" in 4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4726 *) ac_try_echo=$ac_try;; 4727esac 4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4729 (eval "$ac_compile") 2>conftest.er1 4730 ac_status=$? 4731 grep -v '^ *+' conftest.er1 >conftest.err 4732 rm -f conftest.er1 4733 cat conftest.err >&5 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); } && { 4736 test -z "$ac_c_werror_flag" || 4737 test ! -s conftest.err 4738 } && test -s conftest.$ac_objext; then 4739 ac_cv_header_stdc=yes 4740else 4741 echo "$as_me: failed program was:" >&5 4742sed 's/^/| /' conftest.$ac_ext >&5 4743 4744 ac_cv_header_stdc=no 4745fi 4746 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748 4749if test $ac_cv_header_stdc = yes; then 4750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757#include <string.h> 4758 4759_ACEOF 4760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4761 $EGREP "memchr" >/dev/null 2>&1; then 4762 : 4763else 4764 ac_cv_header_stdc=no 4765fi 4766rm -f conftest* 4767 4768fi 4769 4770if test $ac_cv_header_stdc = yes; then 4771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4772 cat >conftest.$ac_ext <<_ACEOF 4773/* confdefs.h. */ 4774_ACEOF 4775cat confdefs.h >>conftest.$ac_ext 4776cat >>conftest.$ac_ext <<_ACEOF 4777/* end confdefs.h. */ 4778#include <stdlib.h> 4779 4780_ACEOF 4781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4782 $EGREP "free" >/dev/null 2>&1; then 4783 : 4784else 4785 ac_cv_header_stdc=no 4786fi 4787rm -f conftest* 4788 4789fi 4790 4791if test $ac_cv_header_stdc = yes; then 4792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4793 if test "$cross_compiling" = yes; then 4794 : 4795else 4796 cat >conftest.$ac_ext <<_ACEOF 4797/* confdefs.h. */ 4798_ACEOF 4799cat confdefs.h >>conftest.$ac_ext 4800cat >>conftest.$ac_ext <<_ACEOF 4801/* end confdefs.h. */ 4802#include <ctype.h> 4803#include <stdlib.h> 4804#if ((' ' & 0x0FF) == 0x020) 4805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4807#else 4808# define ISLOWER(c) \ 4809 (('a' <= (c) && (c) <= 'i') \ 4810 || ('j' <= (c) && (c) <= 'r') \ 4811 || ('s' <= (c) && (c) <= 'z')) 4812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4813#endif 4814 4815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4816int 4817main () 4818{ 4819 int i; 4820 for (i = 0; i < 256; i++) 4821 if (XOR (islower (i), ISLOWER (i)) 4822 || toupper (i) != TOUPPER (i)) 4823 return 2; 4824 return 0; 4825} 4826_ACEOF 4827rm -f conftest$ac_exeext 4828if { (ac_try="$ac_link" 4829case "(($ac_try" in 4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4831 *) ac_try_echo=$ac_try;; 4832esac 4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4834 (eval "$ac_link") 2>&5 4835 ac_status=$? 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4838 { (case "(($ac_try" in 4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4840 *) ac_try_echo=$ac_try;; 4841esac 4842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4843 (eval "$ac_try") 2>&5 4844 ac_status=$? 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4846 (exit $ac_status); }; }; then 4847 : 4848else 4849 echo "$as_me: program exited with status $ac_status" >&5 4850echo "$as_me: failed program was:" >&5 4851sed 's/^/| /' conftest.$ac_ext >&5 4852 4853( exit $ac_status ) 4854ac_cv_header_stdc=no 4855fi 4856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4857fi 4858 4859 4860fi 4861fi 4862{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4863echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4864if test $ac_cv_header_stdc = yes; then 4865 4866cat >>confdefs.h <<\_ACEOF 4867#define STDC_HEADERS 1 4868_ACEOF 4869 4870fi 4871 4872# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4883 inttypes.h stdint.h unistd.h 4884do 4885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4886{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4889 echo $ECHO_N "(cached) $ECHO_C" >&6 4890else 4891 cat >conftest.$ac_ext <<_ACEOF 4892/* confdefs.h. */ 4893_ACEOF 4894cat confdefs.h >>conftest.$ac_ext 4895cat >>conftest.$ac_ext <<_ACEOF 4896/* end confdefs.h. */ 4897$ac_includes_default 4898 4899#include <$ac_header> 4900_ACEOF 4901rm -f conftest.$ac_objext 4902if { (ac_try="$ac_compile" 4903case "(($ac_try" in 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4905 *) ac_try_echo=$ac_try;; 4906esac 4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4908 (eval "$ac_compile") 2>conftest.er1 4909 ac_status=$? 4910 grep -v '^ *+' conftest.er1 >conftest.err 4911 rm -f conftest.er1 4912 cat conftest.err >&5 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } && { 4915 test -z "$ac_c_werror_flag" || 4916 test ! -s conftest.err 4917 } && test -s conftest.$ac_objext; then 4918 eval "$as_ac_Header=yes" 4919else 4920 echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923 eval "$as_ac_Header=no" 4924fi 4925 4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4927fi 4928ac_res=`eval echo '${'$as_ac_Header'}'` 4929 { echo "$as_me:$LINENO: result: $ac_res" >&5 4930echo "${ECHO_T}$ac_res" >&6; } 4931if test `eval echo '${'$as_ac_Header'}'` = yes; then 4932 cat >>confdefs.h <<_ACEOF 4933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4934_ACEOF 4935 4936fi 4937 4938done 4939 4940 4941 4942for ac_header in dlfcn.h 4943do 4944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4946 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4949 echo $ECHO_N "(cached) $ECHO_C" >&6 4950fi 4951ac_res=`eval echo '${'$as_ac_Header'}'` 4952 { echo "$as_me:$LINENO: result: $ac_res" >&5 4953echo "${ECHO_T}$ac_res" >&6; } 4954else 4955 # Is the header compilable? 4956{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4958cat >conftest.$ac_ext <<_ACEOF 4959/* confdefs.h. */ 4960_ACEOF 4961cat confdefs.h >>conftest.$ac_ext 4962cat >>conftest.$ac_ext <<_ACEOF 4963/* end confdefs.h. */ 4964$ac_includes_default 4965#include <$ac_header> 4966_ACEOF 4967rm -f conftest.$ac_objext 4968if { (ac_try="$ac_compile" 4969case "(($ac_try" in 4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4971 *) ac_try_echo=$ac_try;; 4972esac 4973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4974 (eval "$ac_compile") 2>conftest.er1 4975 ac_status=$? 4976 grep -v '^ *+' conftest.er1 >conftest.err 4977 rm -f conftest.er1 4978 cat conftest.err >&5 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); } && { 4981 test -z "$ac_c_werror_flag" || 4982 test ! -s conftest.err 4983 } && test -s conftest.$ac_objext; then 4984 ac_header_compiler=yes 4985else 4986 echo "$as_me: failed program was:" >&5 4987sed 's/^/| /' conftest.$ac_ext >&5 4988 4989 ac_header_compiler=no 4990fi 4991 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4993{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4994echo "${ECHO_T}$ac_header_compiler" >&6; } 4995 4996# Is the header present? 4997{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4999cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005#include <$ac_header> 5006_ACEOF 5007if { (ac_try="$ac_cpp conftest.$ac_ext" 5008case "(($ac_try" in 5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5010 *) ac_try_echo=$ac_try;; 5011esac 5012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5014 ac_status=$? 5015 grep -v '^ *+' conftest.er1 >conftest.err 5016 rm -f conftest.er1 5017 cat conftest.err >&5 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); } >/dev/null && { 5020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5021 test ! -s conftest.err 5022 }; then 5023 ac_header_preproc=yes 5024else 5025 echo "$as_me: failed program was:" >&5 5026sed 's/^/| /' conftest.$ac_ext >&5 5027 5028 ac_header_preproc=no 5029fi 5030 5031rm -f conftest.err conftest.$ac_ext 5032{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5033echo "${ECHO_T}$ac_header_preproc" >&6; } 5034 5035# So? What about this header? 5036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5037 yes:no: ) 5038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5042 ac_header_preproc=yes 5043 ;; 5044 no:yes:* ) 5045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5057 5058 ;; 5059esac 5060{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 5064else 5065 eval "$as_ac_Header=\$ac_header_preproc" 5066fi 5067ac_res=`eval echo '${'$as_ac_Header'}'` 5068 { echo "$as_me:$LINENO: result: $ac_res" >&5 5069echo "${ECHO_T}$ac_res" >&6; } 5070 5071fi 5072if test `eval echo '${'$as_ac_Header'}'` = yes; then 5073 cat >>confdefs.h <<_ACEOF 5074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5075_ACEOF 5076 5077fi 5078 5079done 5080 5081ac_ext=cpp 5082ac_cpp='$CXXCPP $CPPFLAGS' 5083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5086if test -z "$CXX"; then 5087 if test -n "$CCC"; then 5088 CXX=$CCC 5089 else 5090 if test -n "$ac_tool_prefix"; then 5091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5092 do 5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5095{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5097if test "${ac_cv_prog_CXX+set}" = set; then 5098 echo $ECHO_N "(cached) $ECHO_C" >&6 5099else 5100 if test -n "$CXX"; then 5101 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5102else 5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5104for as_dir in $PATH 5105do 5106 IFS=$as_save_IFS 5107 test -z "$as_dir" && as_dir=. 5108 for ac_exec_ext in '' $ac_executable_extensions; do 5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5112 break 2 5113 fi 5114done 5115done 5116IFS=$as_save_IFS 5117 5118fi 5119fi 5120CXX=$ac_cv_prog_CXX 5121if test -n "$CXX"; then 5122 { echo "$as_me:$LINENO: result: $CXX" >&5 5123echo "${ECHO_T}$CXX" >&6; } 5124else 5125 { echo "$as_me:$LINENO: result: no" >&5 5126echo "${ECHO_T}no" >&6; } 5127fi 5128 5129 5130 test -n "$CXX" && break 5131 done 5132fi 5133if test -z "$CXX"; then 5134 ac_ct_CXX=$CXX 5135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5136do 5137 # Extract the first word of "$ac_prog", so it can be a program name with args. 5138set dummy $ac_prog; ac_word=$2 5139{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5141if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5142 echo $ECHO_N "(cached) $ECHO_C" >&6 5143else 5144 if test -n "$ac_ct_CXX"; then 5145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5146else 5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5148for as_dir in $PATH 5149do 5150 IFS=$as_save_IFS 5151 test -z "$as_dir" && as_dir=. 5152 for ac_exec_ext in '' $ac_executable_extensions; do 5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5154 ac_cv_prog_ac_ct_CXX="$ac_prog" 5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5156 break 2 5157 fi 5158done 5159done 5160IFS=$as_save_IFS 5161 5162fi 5163fi 5164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5165if test -n "$ac_ct_CXX"; then 5166 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5167echo "${ECHO_T}$ac_ct_CXX" >&6; } 5168else 5169 { echo "$as_me:$LINENO: result: no" >&5 5170echo "${ECHO_T}no" >&6; } 5171fi 5172 5173 5174 test -n "$ac_ct_CXX" && break 5175done 5176 5177 if test "x$ac_ct_CXX" = x; then 5178 CXX="g++" 5179 else 5180 case $cross_compiling:$ac_tool_warned in 5181yes:) 5182{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5183whose name does not start with the host triplet. If you think this 5184configuration is useful to you, please write to autoconf@gnu.org." >&5 5185echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5186whose name does not start with the host triplet. If you think this 5187configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 CXX=$ac_ct_CXX 5191 fi 5192fi 5193 5194 fi 5195fi 5196# Provide some information about the compiler. 5197echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5198ac_compiler=`set X $ac_compile; echo $2` 5199{ (ac_try="$ac_compiler --version >&5" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5205 (eval "$ac_compiler --version >&5") 2>&5 5206 ac_status=$? 5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5208 (exit $ac_status); } 5209{ (ac_try="$ac_compiler -v >&5" 5210case "(($ac_try" in 5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5212 *) ac_try_echo=$ac_try;; 5213esac 5214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5215 (eval "$ac_compiler -v >&5") 2>&5 5216 ac_status=$? 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } 5219{ (ac_try="$ac_compiler -V >&5" 5220case "(($ac_try" in 5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5222 *) ac_try_echo=$ac_try;; 5223esac 5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5225 (eval "$ac_compiler -V >&5") 2>&5 5226 ac_status=$? 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } 5229 5230{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5231echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5232if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5233 echo $ECHO_N "(cached) $ECHO_C" >&6 5234else 5235 cat >conftest.$ac_ext <<_ACEOF 5236/* confdefs.h. */ 5237_ACEOF 5238cat confdefs.h >>conftest.$ac_ext 5239cat >>conftest.$ac_ext <<_ACEOF 5240/* end confdefs.h. */ 5241 5242int 5243main () 5244{ 5245#ifndef __GNUC__ 5246 choke me 5247#endif 5248 5249 ; 5250 return 0; 5251} 5252_ACEOF 5253rm -f conftest.$ac_objext 5254if { (ac_try="$ac_compile" 5255case "(($ac_try" in 5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5257 *) ac_try_echo=$ac_try;; 5258esac 5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5260 (eval "$ac_compile") 2>conftest.er1 5261 ac_status=$? 5262 grep -v '^ *+' conftest.er1 >conftest.err 5263 rm -f conftest.er1 5264 cat conftest.err >&5 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } && { 5267 test -z "$ac_cxx_werror_flag" || 5268 test ! -s conftest.err 5269 } && test -s conftest.$ac_objext; then 5270 ac_compiler_gnu=yes 5271else 5272 echo "$as_me: failed program was:" >&5 5273sed 's/^/| /' conftest.$ac_ext >&5 5274 5275 ac_compiler_gnu=no 5276fi 5277 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5280 5281fi 5282{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5283echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5284GXX=`test $ac_compiler_gnu = yes && echo yes` 5285ac_test_CXXFLAGS=${CXXFLAGS+set} 5286ac_save_CXXFLAGS=$CXXFLAGS 5287{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5288echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5289if test "${ac_cv_prog_cxx_g+set}" = set; then 5290 echo $ECHO_N "(cached) $ECHO_C" >&6 5291else 5292 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5293 ac_cxx_werror_flag=yes 5294 ac_cv_prog_cxx_g=no 5295 CXXFLAGS="-g" 5296 cat >conftest.$ac_ext <<_ACEOF 5297/* confdefs.h. */ 5298_ACEOF 5299cat confdefs.h >>conftest.$ac_ext 5300cat >>conftest.$ac_ext <<_ACEOF 5301/* end confdefs.h. */ 5302 5303int 5304main () 5305{ 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311rm -f conftest.$ac_objext 5312if { (ac_try="$ac_compile" 5313case "(($ac_try" in 5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5315 *) ac_try_echo=$ac_try;; 5316esac 5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5318 (eval "$ac_compile") 2>conftest.er1 5319 ac_status=$? 5320 grep -v '^ *+' conftest.er1 >conftest.err 5321 rm -f conftest.er1 5322 cat conftest.err >&5 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 (exit $ac_status); } && { 5325 test -z "$ac_cxx_werror_flag" || 5326 test ! -s conftest.err 5327 } && test -s conftest.$ac_objext; then 5328 ac_cv_prog_cxx_g=yes 5329else 5330 echo "$as_me: failed program was:" >&5 5331sed 's/^/| /' conftest.$ac_ext >&5 5332 5333 CXXFLAGS="" 5334 cat >conftest.$ac_ext <<_ACEOF 5335/* confdefs.h. */ 5336_ACEOF 5337cat confdefs.h >>conftest.$ac_ext 5338cat >>conftest.$ac_ext <<_ACEOF 5339/* end confdefs.h. */ 5340 5341int 5342main () 5343{ 5344 5345 ; 5346 return 0; 5347} 5348_ACEOF 5349rm -f conftest.$ac_objext 5350if { (ac_try="$ac_compile" 5351case "(($ac_try" in 5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5353 *) ac_try_echo=$ac_try;; 5354esac 5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5356 (eval "$ac_compile") 2>conftest.er1 5357 ac_status=$? 5358 grep -v '^ *+' conftest.er1 >conftest.err 5359 rm -f conftest.er1 5360 cat conftest.err >&5 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); } && { 5363 test -z "$ac_cxx_werror_flag" || 5364 test ! -s conftest.err 5365 } && test -s conftest.$ac_objext; then 5366 : 5367else 5368 echo "$as_me: failed program was:" >&5 5369sed 's/^/| /' conftest.$ac_ext >&5 5370 5371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5372 CXXFLAGS="-g" 5373 cat >conftest.$ac_ext <<_ACEOF 5374/* confdefs.h. */ 5375_ACEOF 5376cat confdefs.h >>conftest.$ac_ext 5377cat >>conftest.$ac_ext <<_ACEOF 5378/* end confdefs.h. */ 5379 5380int 5381main () 5382{ 5383 5384 ; 5385 return 0; 5386} 5387_ACEOF 5388rm -f conftest.$ac_objext 5389if { (ac_try="$ac_compile" 5390case "(($ac_try" in 5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5392 *) ac_try_echo=$ac_try;; 5393esac 5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5395 (eval "$ac_compile") 2>conftest.er1 5396 ac_status=$? 5397 grep -v '^ *+' conftest.er1 >conftest.err 5398 rm -f conftest.er1 5399 cat conftest.err >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && { 5402 test -z "$ac_cxx_werror_flag" || 5403 test ! -s conftest.err 5404 } && test -s conftest.$ac_objext; then 5405 ac_cv_prog_cxx_g=yes 5406else 5407 echo "$as_me: failed program was:" >&5 5408sed 's/^/| /' conftest.$ac_ext >&5 5409 5410 5411fi 5412 5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5414fi 5415 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417fi 5418 5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5421fi 5422{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5423echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5424if test "$ac_test_CXXFLAGS" = set; then 5425 CXXFLAGS=$ac_save_CXXFLAGS 5426elif test $ac_cv_prog_cxx_g = yes; then 5427 if test "$GXX" = yes; then 5428 CXXFLAGS="-g -O2" 5429 else 5430 CXXFLAGS="-g" 5431 fi 5432else 5433 if test "$GXX" = yes; then 5434 CXXFLAGS="-O2" 5435 else 5436 CXXFLAGS= 5437 fi 5438fi 5439ac_ext=cpp 5440ac_cpp='$CXXCPP $CPPFLAGS' 5441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5444 5445depcc="$CXX" am_compiler_list= 5446 5447{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5448echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5449if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5450 echo $ECHO_N "(cached) $ECHO_C" >&6 5451else 5452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5453 # We make a subdir and do the tests there. Otherwise we can end up 5454 # making bogus files that we don't know about and never remove. For 5455 # instance it was reported that on HP-UX the gcc test will end up 5456 # making a dummy file named `D' -- because `-MD' means `put the output 5457 # in D'. 5458 mkdir conftest.dir 5459 # Copy depcomp to subdir because otherwise we won't find it if we're 5460 # using a relative directory. 5461 cp "$am_depcomp" conftest.dir 5462 cd conftest.dir 5463 # We will build objects and dependencies in a subdirectory because 5464 # it helps to detect inapplicable dependency modes. For instance 5465 # both Tru64's cc and ICC support -MD to output dependencies as a 5466 # side effect of compilation, but ICC will put the dependencies in 5467 # the current directory while Tru64 will put them in the object 5468 # directory. 5469 mkdir sub 5470 5471 am_cv_CXX_dependencies_compiler_type=none 5472 if test "$am_compiler_list" = ""; then 5473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5474 fi 5475 for depmode in $am_compiler_list; do 5476 # Setup a source with many dependencies, because some compilers 5477 # like to wrap large dependency lists on column 80 (with \), and 5478 # we should not choose a depcomp mode which is confused by this. 5479 # 5480 # We need to recreate these files for each test, as the compiler may 5481 # overwrite some of them when testing with obscure command lines. 5482 # This happens at least with the AIX C compiler. 5483 : > sub/conftest.c 5484 for i in 1 2 3 4 5 6; do 5485 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5487 # Solaris 8's {/usr,}/bin/sh. 5488 touch sub/conftst$i.h 5489 done 5490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5491 5492 case $depmode in 5493 nosideeffect) 5494 # after this tag, mechanisms are not by side-effect, so they'll 5495 # only be used when explicitly requested 5496 if test "x$enable_dependency_tracking" = xyes; then 5497 continue 5498 else 5499 break 5500 fi 5501 ;; 5502 none) break ;; 5503 esac 5504 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5505 # mode. It turns out that the SunPro C++ compiler does not properly 5506 # handle `-M -o', and we need to detect this. 5507 if depmode=$depmode \ 5508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5511 >/dev/null 2>conftest.err && 5512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5516 # icc doesn't choke on unknown options, it will just issue warnings 5517 # or remarks (even with -Werror). So we grep stderr for any message 5518 # that says an option was ignored or not supported. 5519 # When given -MP, icc 7.0 and 7.1 complain thusly: 5520 # icc: Command line warning: ignoring option '-M'; no argument required 5521 # The diagnosis changed in icc 8.0: 5522 # icc: Command line remark: option '-MP' not supported 5523 if (grep 'ignoring option' conftest.err || 5524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5525 am_cv_CXX_dependencies_compiler_type=$depmode 5526 break 5527 fi 5528 fi 5529 done 5530 5531 cd .. 5532 rm -rf conftest.dir 5533else 5534 am_cv_CXX_dependencies_compiler_type=none 5535fi 5536 5537fi 5538{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5539echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5540CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5541 5542 if 5543 test "x$enable_dependency_tracking" != xno \ 5544 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5545 am__fastdepCXX_TRUE= 5546 am__fastdepCXX_FALSE='#' 5547else 5548 am__fastdepCXX_TRUE='#' 5549 am__fastdepCXX_FALSE= 5550fi 5551 5552 5553 5554 5555if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5556 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5557 (test "X$CXX" != "Xg++"))) ; then 5558 ac_ext=cpp 5559ac_cpp='$CXXCPP $CPPFLAGS' 5560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5563{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5564echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5565if test -z "$CXXCPP"; then 5566 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568else 5569 # Double quotes because CXXCPP needs to be expanded 5570 for CXXCPP in "$CXX -E" "/lib/cpp" 5571 do 5572 ac_preproc_ok=false 5573for ac_cxx_preproc_warn_flag in '' yes 5574do 5575 # Use a header file that comes with gcc, so configuring glibc 5576 # with a fresh cross-compiler works. 5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5578 # <limits.h> exists even on freestanding compilers. 5579 # On the NeXT, cc -E runs the code through the compiler's parser, 5580 # not just through cpp. "Syntax error" is here to catch this case. 5581 cat >conftest.$ac_ext <<_ACEOF 5582/* confdefs.h. */ 5583_ACEOF 5584cat confdefs.h >>conftest.$ac_ext 5585cat >>conftest.$ac_ext <<_ACEOF 5586/* end confdefs.h. */ 5587#ifdef __STDC__ 5588# include <limits.h> 5589#else 5590# include <assert.h> 5591#endif 5592 Syntax error 5593_ACEOF 5594if { (ac_try="$ac_cpp conftest.$ac_ext" 5595case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5601 ac_status=$? 5602 grep -v '^ *+' conftest.er1 >conftest.err 5603 rm -f conftest.er1 5604 cat conftest.err >&5 5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5606 (exit $ac_status); } >/dev/null && { 5607 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5608 test ! -s conftest.err 5609 }; then 5610 : 5611else 5612 echo "$as_me: failed program was:" >&5 5613sed 's/^/| /' conftest.$ac_ext >&5 5614 5615 # Broken: fails on valid input. 5616continue 5617fi 5618 5619rm -f conftest.err conftest.$ac_ext 5620 5621 # OK, works on sane cases. Now check whether nonexistent headers 5622 # can be detected and how. 5623 cat >conftest.$ac_ext <<_ACEOF 5624/* confdefs.h. */ 5625_ACEOF 5626cat confdefs.h >>conftest.$ac_ext 5627cat >>conftest.$ac_ext <<_ACEOF 5628/* end confdefs.h. */ 5629#include <ac_nonexistent.h> 5630_ACEOF 5631if { (ac_try="$ac_cpp conftest.$ac_ext" 5632case "(($ac_try" in 5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5634 *) ac_try_echo=$ac_try;; 5635esac 5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5638 ac_status=$? 5639 grep -v '^ *+' conftest.er1 >conftest.err 5640 rm -f conftest.er1 5641 cat conftest.err >&5 5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5643 (exit $ac_status); } >/dev/null && { 5644 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5645 test ! -s conftest.err 5646 }; then 5647 # Broken: success on invalid input. 5648continue 5649else 5650 echo "$as_me: failed program was:" >&5 5651sed 's/^/| /' conftest.$ac_ext >&5 5652 5653 # Passes both tests. 5654ac_preproc_ok=: 5655break 5656fi 5657 5658rm -f conftest.err conftest.$ac_ext 5659 5660done 5661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5662rm -f conftest.err conftest.$ac_ext 5663if $ac_preproc_ok; then 5664 break 5665fi 5666 5667 done 5668 ac_cv_prog_CXXCPP=$CXXCPP 5669 5670fi 5671 CXXCPP=$ac_cv_prog_CXXCPP 5672else 5673 ac_cv_prog_CXXCPP=$CXXCPP 5674fi 5675{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5676echo "${ECHO_T}$CXXCPP" >&6; } 5677ac_preproc_ok=false 5678for ac_cxx_preproc_warn_flag in '' yes 5679do 5680 # Use a header file that comes with gcc, so configuring glibc 5681 # with a fresh cross-compiler works. 5682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5683 # <limits.h> exists even on freestanding compilers. 5684 # On the NeXT, cc -E runs the code through the compiler's parser, 5685 # not just through cpp. "Syntax error" is here to catch this case. 5686 cat >conftest.$ac_ext <<_ACEOF 5687/* confdefs.h. */ 5688_ACEOF 5689cat confdefs.h >>conftest.$ac_ext 5690cat >>conftest.$ac_ext <<_ACEOF 5691/* end confdefs.h. */ 5692#ifdef __STDC__ 5693# include <limits.h> 5694#else 5695# include <assert.h> 5696#endif 5697 Syntax error 5698_ACEOF 5699if { (ac_try="$ac_cpp conftest.$ac_ext" 5700case "(($ac_try" in 5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5702 *) ac_try_echo=$ac_try;; 5703esac 5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5706 ac_status=$? 5707 grep -v '^ *+' conftest.er1 >conftest.err 5708 rm -f conftest.er1 5709 cat conftest.err >&5 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); } >/dev/null && { 5712 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5713 test ! -s conftest.err 5714 }; then 5715 : 5716else 5717 echo "$as_me: failed program was:" >&5 5718sed 's/^/| /' conftest.$ac_ext >&5 5719 5720 # Broken: fails on valid input. 5721continue 5722fi 5723 5724rm -f conftest.err conftest.$ac_ext 5725 5726 # OK, works on sane cases. Now check whether nonexistent headers 5727 # can be detected and how. 5728 cat >conftest.$ac_ext <<_ACEOF 5729/* confdefs.h. */ 5730_ACEOF 5731cat confdefs.h >>conftest.$ac_ext 5732cat >>conftest.$ac_ext <<_ACEOF 5733/* end confdefs.h. */ 5734#include <ac_nonexistent.h> 5735_ACEOF 5736if { (ac_try="$ac_cpp conftest.$ac_ext" 5737case "(($ac_try" in 5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5739 *) ac_try_echo=$ac_try;; 5740esac 5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5743 ac_status=$? 5744 grep -v '^ *+' conftest.er1 >conftest.err 5745 rm -f conftest.er1 5746 cat conftest.err >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } >/dev/null && { 5749 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5750 test ! -s conftest.err 5751 }; then 5752 # Broken: success on invalid input. 5753continue 5754else 5755 echo "$as_me: failed program was:" >&5 5756sed 's/^/| /' conftest.$ac_ext >&5 5757 5758 # Passes both tests. 5759ac_preproc_ok=: 5760break 5761fi 5762 5763rm -f conftest.err conftest.$ac_ext 5764 5765done 5766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5767rm -f conftest.err conftest.$ac_ext 5768if $ac_preproc_ok; then 5769 : 5770else 5771 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5772See \`config.log' for more details." >&5 5773echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5774See \`config.log' for more details." >&2;} 5775 { (exit 1); exit 1; }; } 5776fi 5777 5778ac_ext=cpp 5779ac_cpp='$CXXCPP $CPPFLAGS' 5780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5783 5784fi 5785 5786 5787ac_ext=f 5788ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5789ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5790ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5791if test -n "$ac_tool_prefix"; then 5792 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 5793 do 5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5795set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5796{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5798if test "${ac_cv_prog_F77+set}" = set; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800else 5801 if test -n "$F77"; then 5802 ac_cv_prog_F77="$F77" # Let the user override the test. 5803else 5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805for as_dir in $PATH 5806do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5811 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815done 5816done 5817IFS=$as_save_IFS 5818 5819fi 5820fi 5821F77=$ac_cv_prog_F77 5822if test -n "$F77"; then 5823 { echo "$as_me:$LINENO: result: $F77" >&5 5824echo "${ECHO_T}$F77" >&6; } 5825else 5826 { echo "$as_me:$LINENO: result: no" >&5 5827echo "${ECHO_T}no" >&6; } 5828fi 5829 5830 5831 test -n "$F77" && break 5832 done 5833fi 5834if test -z "$F77"; then 5835 ac_ct_F77=$F77 5836 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 5837do 5838 # Extract the first word of "$ac_prog", so it can be a program name with args. 5839set dummy $ac_prog; ac_word=$2 5840{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5842if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5843 echo $ECHO_N "(cached) $ECHO_C" >&6 5844else 5845 if test -n "$ac_ct_F77"; then 5846 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5847else 5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849for as_dir in $PATH 5850do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5855 ac_cv_prog_ac_ct_F77="$ac_prog" 5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859done 5860done 5861IFS=$as_save_IFS 5862 5863fi 5864fi 5865ac_ct_F77=$ac_cv_prog_ac_ct_F77 5866if test -n "$ac_ct_F77"; then 5867 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5868echo "${ECHO_T}$ac_ct_F77" >&6; } 5869else 5870 { echo "$as_me:$LINENO: result: no" >&5 5871echo "${ECHO_T}no" >&6; } 5872fi 5873 5874 5875 test -n "$ac_ct_F77" && break 5876done 5877 5878 if test "x$ac_ct_F77" = x; then 5879 F77="" 5880 else 5881 case $cross_compiling:$ac_tool_warned in 5882yes:) 5883{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5884whose name does not start with the host triplet. If you think this 5885configuration is useful to you, please write to autoconf@gnu.org." >&5 5886echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5887whose name does not start with the host triplet. If you think this 5888configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5889ac_tool_warned=yes ;; 5890esac 5891 F77=$ac_ct_F77 5892 fi 5893fi 5894 5895 5896# Provide some information about the compiler. 5897echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5898ac_compiler=`set X $ac_compile; echo $2` 5899{ (ac_try="$ac_compiler --version >&5" 5900case "(($ac_try" in 5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5902 *) ac_try_echo=$ac_try;; 5903esac 5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5905 (eval "$ac_compiler --version >&5") 2>&5 5906 ac_status=$? 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5908 (exit $ac_status); } 5909{ (ac_try="$ac_compiler -v >&5" 5910case "(($ac_try" in 5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5912 *) ac_try_echo=$ac_try;; 5913esac 5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5915 (eval "$ac_compiler -v >&5") 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); } 5919{ (ac_try="$ac_compiler -V >&5" 5920case "(($ac_try" in 5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5922 *) ac_try_echo=$ac_try;; 5923esac 5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5925 (eval "$ac_compiler -V >&5") 2>&5 5926 ac_status=$? 5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5928 (exit $ac_status); } 5929rm -f a.out 5930 5931# If we don't use `.F' as extension, the preprocessor is not run on the 5932# input file. (Note that this only needs to work for GNU compilers.) 5933ac_save_ext=$ac_ext 5934ac_ext=F 5935{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5936echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5937if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5938 echo $ECHO_N "(cached) $ECHO_C" >&6 5939else 5940 cat >conftest.$ac_ext <<_ACEOF 5941 program main 5942#ifndef __GNUC__ 5943 choke me 5944#endif 5945 5946 end 5947_ACEOF 5948rm -f conftest.$ac_objext 5949if { (ac_try="$ac_compile" 5950case "(($ac_try" in 5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5952 *) ac_try_echo=$ac_try;; 5953esac 5954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5955 (eval "$ac_compile") 2>conftest.er1 5956 ac_status=$? 5957 grep -v '^ *+' conftest.er1 >conftest.err 5958 rm -f conftest.er1 5959 cat conftest.err >&5 5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5961 (exit $ac_status); } && { 5962 test -z "$ac_f77_werror_flag" || 5963 test ! -s conftest.err 5964 } && test -s conftest.$ac_objext; then 5965 ac_compiler_gnu=yes 5966else 5967 echo "$as_me: failed program was:" >&5 5968sed 's/^/| /' conftest.$ac_ext >&5 5969 5970 ac_compiler_gnu=no 5971fi 5972 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5975 5976fi 5977{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5978echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5979ac_ext=$ac_save_ext 5980ac_test_FFLAGS=${FFLAGS+set} 5981ac_save_FFLAGS=$FFLAGS 5982FFLAGS= 5983{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5984echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5985if test "${ac_cv_prog_f77_g+set}" = set; then 5986 echo $ECHO_N "(cached) $ECHO_C" >&6 5987else 5988 FFLAGS=-g 5989cat >conftest.$ac_ext <<_ACEOF 5990 program main 5991 5992 end 5993_ACEOF 5994rm -f conftest.$ac_objext 5995if { (ac_try="$ac_compile" 5996case "(($ac_try" in 5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5998 *) ac_try_echo=$ac_try;; 5999esac 6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6001 (eval "$ac_compile") 2>conftest.er1 6002 ac_status=$? 6003 grep -v '^ *+' conftest.er1 >conftest.err 6004 rm -f conftest.er1 6005 cat conftest.err >&5 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } && { 6008 test -z "$ac_f77_werror_flag" || 6009 test ! -s conftest.err 6010 } && test -s conftest.$ac_objext; then 6011 ac_cv_prog_f77_g=yes 6012else 6013 echo "$as_me: failed program was:" >&5 6014sed 's/^/| /' conftest.$ac_ext >&5 6015 6016 ac_cv_prog_f77_g=no 6017fi 6018 6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6020 6021fi 6022{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6023echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6024if test "$ac_test_FFLAGS" = set; then 6025 FFLAGS=$ac_save_FFLAGS 6026elif test $ac_cv_prog_f77_g = yes; then 6027 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6028 FFLAGS="-g -O2" 6029 else 6030 FFLAGS="-g" 6031 fi 6032else 6033 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6034 FFLAGS="-O2" 6035 else 6036 FFLAGS= 6037 fi 6038fi 6039 6040G77=`test $ac_compiler_gnu = yes && echo yes` 6041ac_ext=c 6042ac_cpp='$CPP $CPPFLAGS' 6043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6045ac_compiler_gnu=$ac_cv_c_compiler_gnu 6046 6047 6048 6049# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6050 6051# find the maximum length of command line arguments 6052{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6053echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6054if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6055 echo $ECHO_N "(cached) $ECHO_C" >&6 6056else 6057 i=0 6058 teststring="ABCD" 6059 6060 case $build_os in 6061 msdosdjgpp*) 6062 # On DJGPP, this test can blow up pretty badly due to problems in libc 6063 # (any single argument exceeding 2000 bytes causes a buffer overrun 6064 # during glob expansion). Even if it were fixed, the result of this 6065 # check would be larger than it should be. 6066 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6067 ;; 6068 6069 gnu*) 6070 # Under GNU Hurd, this test is not required because there is 6071 # no limit to the length of command line arguments. 6072 # Libtool will interpret -1 as no limit whatsoever 6073 lt_cv_sys_max_cmd_len=-1; 6074 ;; 6075 6076 cygwin* | mingw*) 6077 # On Win9x/ME, this test blows up -- it succeeds, but takes 6078 # about 5 minutes as the teststring grows exponentially. 6079 # Worse, since 9x/ME are not pre-emptively multitasking, 6080 # you end up with a "frozen" computer, even though with patience 6081 # the test eventually succeeds (with a max line length of 256k). 6082 # Instead, let's just punt: use the minimum linelength reported by 6083 # all of the supported platforms: 8192 (on NT/2K/XP). 6084 lt_cv_sys_max_cmd_len=8192; 6085 ;; 6086 6087 amigaos*) 6088 # On AmigaOS with pdksh, this test takes hours, literally. 6089 # So we just punt and use a minimum line length of 8192. 6090 lt_cv_sys_max_cmd_len=8192; 6091 ;; 6092 6093 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6094 # This has been around since 386BSD, at least. Likely further. 6095 if test -x /sbin/sysctl; then 6096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6097 elif test -x /usr/sbin/sysctl; then 6098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6099 else 6100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6101 fi 6102 # And add a safety zone 6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6105 ;; 6106 6107 interix*) 6108 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6109 lt_cv_sys_max_cmd_len=196608 6110 ;; 6111 6112 osf*) 6113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6115 # nice to cause kernel panics so lets avoid the loop below. 6116 # First set a reasonable default. 6117 lt_cv_sys_max_cmd_len=16384 6118 # 6119 if test -x /sbin/sysconfig; then 6120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6121 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6122 esac 6123 fi 6124 ;; 6125 sco3.2v5*) 6126 lt_cv_sys_max_cmd_len=102400 6127 ;; 6128 sysv5* | sco5v6* | sysv4.2uw2*) 6129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6130 if test -n "$kargmax"; then 6131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6132 else 6133 lt_cv_sys_max_cmd_len=32768 6134 fi 6135 ;; 6136 *) 6137 # If test is not a shell built-in, we'll probably end up computing a 6138 # maximum length that is only half of the actual maximum length, but 6139 # we can't tell. 6140 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6141 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6142 = "XX$teststring") >/dev/null 2>&1 && 6143 new_result=`expr "X$teststring" : ".*" 2>&1` && 6144 lt_cv_sys_max_cmd_len=$new_result && 6145 test $i != 17 # 1/2 MB should be enough 6146 do 6147 i=`expr $i + 1` 6148 teststring=$teststring$teststring 6149 done 6150 teststring= 6151 # Add a significant safety factor because C++ compilers can tack on massive 6152 # amounts of additional arguments before passing them to the linker. 6153 # It appears as though 1/2 is a usable value. 6154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6155 ;; 6156 esac 6157 6158fi 6159 6160if test -n $lt_cv_sys_max_cmd_len ; then 6161 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6162echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6163else 6164 { echo "$as_me:$LINENO: result: none" >&5 6165echo "${ECHO_T}none" >&6; } 6166fi 6167 6168 6169 6170 6171# Check for command to grab the raw symbol name followed by C symbol from nm. 6172{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6173echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6174if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6175 echo $ECHO_N "(cached) $ECHO_C" >&6 6176else 6177 6178# These are sane defaults that work on at least a few old systems. 6179# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6180 6181# Character class describing NM global symbol codes. 6182symcode='[BCDEGRST]' 6183 6184# Regexp to match symbols that can be accessed directly from C. 6185sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6186 6187# Transform an extracted symbol line into a proper C declaration 6188lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6189 6190# Transform an extracted symbol line into symbol name and symbol address 6191lt_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'" 6192 6193# Define system-specific variables. 6194case $host_os in 6195aix*) 6196 symcode='[BCDT]' 6197 ;; 6198cygwin* | mingw* | pw32*) 6199 symcode='[ABCDGISTW]' 6200 ;; 6201hpux*) # Its linker distinguishes data from code symbols 6202 if test "$host_cpu" = ia64; then 6203 symcode='[ABCDEGRST]' 6204 fi 6205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6206 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'" 6207 ;; 6208linux*) 6209 if test "$host_cpu" = ia64; then 6210 symcode='[ABCDGIRSTW]' 6211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6212 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'" 6213 fi 6214 ;; 6215irix* | nonstopux*) 6216 symcode='[BCDEGRST]' 6217 ;; 6218osf*) 6219 symcode='[BCDEGQRST]' 6220 ;; 6221solaris*) 6222 symcode='[BDRT]' 6223 ;; 6224sco3.2v5*) 6225 symcode='[DT]' 6226 ;; 6227sysv4.2uw2*) 6228 symcode='[DT]' 6229 ;; 6230sysv5* | sco5v6* | unixware* | OpenUNIX*) 6231 symcode='[ABDT]' 6232 ;; 6233sysv4) 6234 symcode='[DFNSTU]' 6235 ;; 6236esac 6237 6238# Handle CRLF in mingw tool chain 6239opt_cr= 6240case $build_os in 6241mingw*) 6242 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6243 ;; 6244esac 6245 6246# If we're using GNU nm, then use its standard symbol codes. 6247case `$NM -V 2>&1` in 6248*GNU* | *'with BFD'*) 6249 symcode='[ABCDGIRSTW]' ;; 6250esac 6251 6252# Try without a prefix undercore, then with it. 6253for ac_symprfx in "" "_"; do 6254 6255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6256 symxfrm="\\1 $ac_symprfx\\2 \\2" 6257 6258 # Write the raw and C identifiers. 6259 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6260 6261 # Check to see that the pipe works correctly. 6262 pipe_works=no 6263 6264 rm -f conftest* 6265 cat > conftest.$ac_ext <<EOF 6266#ifdef __cplusplus 6267extern "C" { 6268#endif 6269char nm_test_var; 6270void nm_test_func(){} 6271#ifdef __cplusplus 6272} 6273#endif 6274int main(){nm_test_var='a';nm_test_func();return(0);} 6275EOF 6276 6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6278 (eval $ac_compile) 2>&5 6279 ac_status=$? 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6281 (exit $ac_status); }; then 6282 # Now try to grab the symbols. 6283 nlist=conftest.nm 6284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); } && test -s "$nlist"; then 6289 # Try sorting and uniquifying the output. 6290 if sort "$nlist" | uniq > "$nlist"T; then 6291 mv -f "$nlist"T "$nlist" 6292 else 6293 rm -f "$nlist"T 6294 fi 6295 6296 # Make sure that we snagged all the symbols we need. 6297 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6298 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6299 cat <<EOF > conftest.$ac_ext 6300#ifdef __cplusplus 6301extern "C" { 6302#endif 6303 6304EOF 6305 # Now generate the symbol file. 6306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6307 6308 cat <<EOF >> conftest.$ac_ext 6309#if defined (__STDC__) && __STDC__ 6310# define lt_ptr_t void * 6311#else 6312# define lt_ptr_t char * 6313# define const 6314#endif 6315 6316/* The mapping between symbol names and symbols. */ 6317const struct { 6318 const char *name; 6319 lt_ptr_t address; 6320} 6321lt_preloaded_symbols[] = 6322{ 6323EOF 6324 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6325 cat <<\EOF >> conftest.$ac_ext 6326 {0, (lt_ptr_t) 0} 6327}; 6328 6329#ifdef __cplusplus 6330} 6331#endif 6332EOF 6333 # Now try linking the two files. 6334 mv conftest.$ac_objext conftstm.$ac_objext 6335 lt_save_LIBS="$LIBS" 6336 lt_save_CFLAGS="$CFLAGS" 6337 LIBS="conftstm.$ac_objext" 6338 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6340 (eval $ac_link) 2>&5 6341 ac_status=$? 6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6343 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6344 pipe_works=yes 6345 fi 6346 LIBS="$lt_save_LIBS" 6347 CFLAGS="$lt_save_CFLAGS" 6348 else 6349 echo "cannot find nm_test_func in $nlist" >&5 6350 fi 6351 else 6352 echo "cannot find nm_test_var in $nlist" >&5 6353 fi 6354 else 6355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6356 fi 6357 else 6358 echo "$progname: failed program was:" >&5 6359 cat conftest.$ac_ext >&5 6360 fi 6361 rm -f conftest* conftst* 6362 6363 # Do not use the global_symbol_pipe unless it works. 6364 if test "$pipe_works" = yes; then 6365 break 6366 else 6367 lt_cv_sys_global_symbol_pipe= 6368 fi 6369done 6370 6371fi 6372 6373if test -z "$lt_cv_sys_global_symbol_pipe"; then 6374 lt_cv_sys_global_symbol_to_cdecl= 6375fi 6376if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6377 { echo "$as_me:$LINENO: result: failed" >&5 6378echo "${ECHO_T}failed" >&6; } 6379else 6380 { echo "$as_me:$LINENO: result: ok" >&5 6381echo "${ECHO_T}ok" >&6; } 6382fi 6383 6384{ echo "$as_me:$LINENO: checking for objdir" >&5 6385echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6386if test "${lt_cv_objdir+set}" = set; then 6387 echo $ECHO_N "(cached) $ECHO_C" >&6 6388else 6389 rm -f .libs 2>/dev/null 6390mkdir .libs 2>/dev/null 6391if test -d .libs; then 6392 lt_cv_objdir=.libs 6393else 6394 # MS-DOS does not allow filenames that begin with a dot. 6395 lt_cv_objdir=_libs 6396fi 6397rmdir .libs 2>/dev/null 6398fi 6399{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6400echo "${ECHO_T}$lt_cv_objdir" >&6; } 6401objdir=$lt_cv_objdir 6402 6403 6404 6405 6406 6407case $host_os in 6408aix3*) 6409 # AIX sometimes has problems with the GCC collect2 program. For some 6410 # reason, if we set the COLLECT_NAMES environment variable, the problems 6411 # vanish in a puff of smoke. 6412 if test "X${COLLECT_NAMES+set}" != Xset; then 6413 COLLECT_NAMES= 6414 export COLLECT_NAMES 6415 fi 6416 ;; 6417esac 6418 6419# Sed substitution that helps us do robust quoting. It backslashifies 6420# metacharacters that are still active within double-quoted strings. 6421Xsed='sed -e 1s/^X//' 6422sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6423 6424# Same as above, but do not quote variable references. 6425double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6426 6427# Sed substitution to delay expansion of an escaped shell variable in a 6428# double_quote_subst'ed string. 6429delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6430 6431# Sed substitution to avoid accidental globbing in evaled expressions 6432no_glob_subst='s/\*/\\\*/g' 6433 6434# Constants: 6435rm="rm -f" 6436 6437# Global variables: 6438default_ofile=libtool 6439can_build_shared=yes 6440 6441# All known linkers require a `.a' archive for static linking (except MSVC, 6442# which needs '.lib'). 6443libext=a 6444ltmain="$ac_aux_dir/ltmain.sh" 6445ofile="$default_ofile" 6446with_gnu_ld="$lt_cv_prog_gnu_ld" 6447 6448if test -n "$ac_tool_prefix"; then 6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6450set dummy ${ac_tool_prefix}ar; ac_word=$2 6451{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6453if test "${ac_cv_prog_AR+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 if test -n "$AR"; then 6457 ac_cv_prog_AR="$AR" # Let the user override the test. 6458else 6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460for as_dir in $PATH 6461do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 for ac_exec_ext in '' $ac_executable_extensions; do 6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6466 ac_cv_prog_AR="${ac_tool_prefix}ar" 6467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6468 break 2 6469 fi 6470done 6471done 6472IFS=$as_save_IFS 6473 6474fi 6475fi 6476AR=$ac_cv_prog_AR 6477if test -n "$AR"; then 6478 { echo "$as_me:$LINENO: result: $AR" >&5 6479echo "${ECHO_T}$AR" >&6; } 6480else 6481 { echo "$as_me:$LINENO: result: no" >&5 6482echo "${ECHO_T}no" >&6; } 6483fi 6484 6485 6486fi 6487if test -z "$ac_cv_prog_AR"; then 6488 ac_ct_AR=$AR 6489 # Extract the first word of "ar", so it can be a program name with args. 6490set dummy ar; ac_word=$2 6491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6493if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6494 echo $ECHO_N "(cached) $ECHO_C" >&6 6495else 6496 if test -n "$ac_ct_AR"; then 6497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6498else 6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6500for as_dir in $PATH 6501do 6502 IFS=$as_save_IFS 6503 test -z "$as_dir" && as_dir=. 6504 for ac_exec_ext in '' $ac_executable_extensions; do 6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6506 ac_cv_prog_ac_ct_AR="ar" 6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511done 6512IFS=$as_save_IFS 6513 6514fi 6515fi 6516ac_ct_AR=$ac_cv_prog_ac_ct_AR 6517if test -n "$ac_ct_AR"; then 6518 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6519echo "${ECHO_T}$ac_ct_AR" >&6; } 6520else 6521 { echo "$as_me:$LINENO: result: no" >&5 6522echo "${ECHO_T}no" >&6; } 6523fi 6524 6525 if test "x$ac_ct_AR" = x; then 6526 AR="false" 6527 else 6528 case $cross_compiling:$ac_tool_warned in 6529yes:) 6530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6531whose name does not start with the host triplet. If you think this 6532configuration is useful to you, please write to autoconf@gnu.org." >&5 6533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6534whose name does not start with the host triplet. If you think this 6535configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6536ac_tool_warned=yes ;; 6537esac 6538 AR=$ac_ct_AR 6539 fi 6540else 6541 AR="$ac_cv_prog_AR" 6542fi 6543 6544if test -n "$ac_tool_prefix"; then 6545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6546set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6547{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6549if test "${ac_cv_prog_RANLIB+set}" = set; then 6550 echo $ECHO_N "(cached) $ECHO_C" >&6 6551else 6552 if test -n "$RANLIB"; then 6553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6554else 6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556for as_dir in $PATH 6557do 6558 IFS=$as_save_IFS 6559 test -z "$as_dir" && as_dir=. 6560 for ac_exec_ext in '' $ac_executable_extensions; do 6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6564 break 2 6565 fi 6566done 6567done 6568IFS=$as_save_IFS 6569 6570fi 6571fi 6572RANLIB=$ac_cv_prog_RANLIB 6573if test -n "$RANLIB"; then 6574 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6575echo "${ECHO_T}$RANLIB" >&6; } 6576else 6577 { echo "$as_me:$LINENO: result: no" >&5 6578echo "${ECHO_T}no" >&6; } 6579fi 6580 6581 6582fi 6583if test -z "$ac_cv_prog_RANLIB"; then 6584 ac_ct_RANLIB=$RANLIB 6585 # Extract the first word of "ranlib", so it can be a program name with args. 6586set dummy ranlib; ac_word=$2 6587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6589if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6590 echo $ECHO_N "(cached) $ECHO_C" >&6 6591else 6592 if test -n "$ac_ct_RANLIB"; then 6593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6594else 6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596for as_dir in $PATH 6597do 6598 IFS=$as_save_IFS 6599 test -z "$as_dir" && as_dir=. 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6602 ac_cv_prog_ac_ct_RANLIB="ranlib" 6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606done 6607done 6608IFS=$as_save_IFS 6609 6610fi 6611fi 6612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6613if test -n "$ac_ct_RANLIB"; then 6614 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6615echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6616else 6617 { echo "$as_me:$LINENO: result: no" >&5 6618echo "${ECHO_T}no" >&6; } 6619fi 6620 6621 if test "x$ac_ct_RANLIB" = x; then 6622 RANLIB=":" 6623 else 6624 case $cross_compiling:$ac_tool_warned in 6625yes:) 6626{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6627whose name does not start with the host triplet. If you think this 6628configuration is useful to you, please write to autoconf@gnu.org." >&5 6629echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6630whose name does not start with the host triplet. If you think this 6631configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6632ac_tool_warned=yes ;; 6633esac 6634 RANLIB=$ac_ct_RANLIB 6635 fi 6636else 6637 RANLIB="$ac_cv_prog_RANLIB" 6638fi 6639 6640if test -n "$ac_tool_prefix"; then 6641 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6642set dummy ${ac_tool_prefix}strip; ac_word=$2 6643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6645if test "${ac_cv_prog_STRIP+set}" = set; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 if test -n "$STRIP"; then 6649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6658 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668STRIP=$ac_cv_prog_STRIP 6669if test -n "$STRIP"; then 6670 { echo "$as_me:$LINENO: result: $STRIP" >&5 6671echo "${ECHO_T}$STRIP" >&6; } 6672else 6673 { echo "$as_me:$LINENO: result: no" >&5 6674echo "${ECHO_T}no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_STRIP"; then 6680 ac_ct_STRIP=$STRIP 6681 # Extract the first word of "strip", so it can be a program name with args. 6682set dummy strip; ac_word=$2 6683{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6685if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6686 echo $ECHO_N "(cached) $ECHO_C" >&6 6687else 6688 if test -n "$ac_ct_STRIP"; then 6689 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6698 ac_cv_prog_ac_ct_STRIP="strip" 6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6709if test -n "$ac_ct_STRIP"; then 6710 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6711echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6712else 6713 { echo "$as_me:$LINENO: result: no" >&5 6714echo "${ECHO_T}no" >&6; } 6715fi 6716 6717 if test "x$ac_ct_STRIP" = x; then 6718 STRIP=":" 6719 else 6720 case $cross_compiling:$ac_tool_warned in 6721yes:) 6722{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6723whose name does not start with the host triplet. If you think this 6724configuration is useful to you, please write to autoconf@gnu.org." >&5 6725echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6726whose name does not start with the host triplet. If you think this 6727configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6728ac_tool_warned=yes ;; 6729esac 6730 STRIP=$ac_ct_STRIP 6731 fi 6732else 6733 STRIP="$ac_cv_prog_STRIP" 6734fi 6735 6736 6737old_CC="$CC" 6738old_CFLAGS="$CFLAGS" 6739 6740# Set sane defaults for various variables 6741test -z "$AR" && AR=ar 6742test -z "$AR_FLAGS" && AR_FLAGS=cru 6743test -z "$AS" && AS=as 6744test -z "$CC" && CC=cc 6745test -z "$LTCC" && LTCC=$CC 6746test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6747test -z "$DLLTOOL" && DLLTOOL=dlltool 6748test -z "$LD" && LD=ld 6749test -z "$LN_S" && LN_S="ln -s" 6750test -z "$MAGIC_CMD" && MAGIC_CMD=file 6751test -z "$NM" && NM=nm 6752test -z "$SED" && SED=sed 6753test -z "$OBJDUMP" && OBJDUMP=objdump 6754test -z "$RANLIB" && RANLIB=: 6755test -z "$STRIP" && STRIP=: 6756test -z "$ac_objext" && ac_objext=o 6757 6758# Determine commands to create old-style static archives. 6759old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6760old_postinstall_cmds='chmod 644 $oldlib' 6761old_postuninstall_cmds= 6762 6763if test -n "$RANLIB"; then 6764 case $host_os in 6765 openbsd*) 6766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6767 ;; 6768 *) 6769 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6770 ;; 6771 esac 6772 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6773fi 6774 6775for cc_temp in $compiler""; do 6776 case $cc_temp in 6777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6779 \-*) ;; 6780 *) break;; 6781 esac 6782done 6783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6784 6785 6786# Only perform the check for file, if the check method requires it 6787case $deplibs_check_method in 6788file_magic*) 6789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6790 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6791echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6792if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6793 echo $ECHO_N "(cached) $ECHO_C" >&6 6794else 6795 case $MAGIC_CMD in 6796[\\/*] | ?:[\\/]*) 6797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6798 ;; 6799*) 6800 lt_save_MAGIC_CMD="$MAGIC_CMD" 6801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6803 for ac_dir in $ac_dummy; do 6804 IFS="$lt_save_ifs" 6805 test -z "$ac_dir" && ac_dir=. 6806 if test -f $ac_dir/${ac_tool_prefix}file; then 6807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6808 if test -n "$file_magic_test_file"; then 6809 case $deplibs_check_method in 6810 "file_magic "*) 6811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6814 $EGREP "$file_magic_regex" > /dev/null; then 6815 : 6816 else 6817 cat <<EOF 1>&2 6818 6819*** Warning: the command libtool uses to detect shared libraries, 6820*** $file_magic_cmd, produces output that libtool cannot recognize. 6821*** The result is that libtool may fail to recognize shared libraries 6822*** as such. This will affect the creation of libtool libraries that 6823*** depend on shared libraries, but programs linked with such libtool 6824*** libraries will work regardless of this problem. Nevertheless, you 6825*** may want to report the problem to your system manager and/or to 6826*** bug-libtool@gnu.org 6827 6828EOF 6829 fi ;; 6830 esac 6831 fi 6832 break 6833 fi 6834 done 6835 IFS="$lt_save_ifs" 6836 MAGIC_CMD="$lt_save_MAGIC_CMD" 6837 ;; 6838esac 6839fi 6840 6841MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6842if test -n "$MAGIC_CMD"; then 6843 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6844echo "${ECHO_T}$MAGIC_CMD" >&6; } 6845else 6846 { echo "$as_me:$LINENO: result: no" >&5 6847echo "${ECHO_T}no" >&6; } 6848fi 6849 6850if test -z "$lt_cv_path_MAGIC_CMD"; then 6851 if test -n "$ac_tool_prefix"; then 6852 { echo "$as_me:$LINENO: checking for file" >&5 6853echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6854if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6855 echo $ECHO_N "(cached) $ECHO_C" >&6 6856else 6857 case $MAGIC_CMD in 6858[\\/*] | ?:[\\/]*) 6859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6860 ;; 6861*) 6862 lt_save_MAGIC_CMD="$MAGIC_CMD" 6863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6865 for ac_dir in $ac_dummy; do 6866 IFS="$lt_save_ifs" 6867 test -z "$ac_dir" && ac_dir=. 6868 if test -f $ac_dir/file; then 6869 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6870 if test -n "$file_magic_test_file"; then 6871 case $deplibs_check_method in 6872 "file_magic "*) 6873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6876 $EGREP "$file_magic_regex" > /dev/null; then 6877 : 6878 else 6879 cat <<EOF 1>&2 6880 6881*** Warning: the command libtool uses to detect shared libraries, 6882*** $file_magic_cmd, produces output that libtool cannot recognize. 6883*** The result is that libtool may fail to recognize shared libraries 6884*** as such. This will affect the creation of libtool libraries that 6885*** depend on shared libraries, but programs linked with such libtool 6886*** libraries will work regardless of this problem. Nevertheless, you 6887*** may want to report the problem to your system manager and/or to 6888*** bug-libtool@gnu.org 6889 6890EOF 6891 fi ;; 6892 esac 6893 fi 6894 break 6895 fi 6896 done 6897 IFS="$lt_save_ifs" 6898 MAGIC_CMD="$lt_save_MAGIC_CMD" 6899 ;; 6900esac 6901fi 6902 6903MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6904if test -n "$MAGIC_CMD"; then 6905 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6906echo "${ECHO_T}$MAGIC_CMD" >&6; } 6907else 6908 { echo "$as_me:$LINENO: result: no" >&5 6909echo "${ECHO_T}no" >&6; } 6910fi 6911 6912 else 6913 MAGIC_CMD=: 6914 fi 6915fi 6916 6917 fi 6918 ;; 6919esac 6920 6921enable_dlopen=no 6922enable_win32_dll=no 6923 6924# Check whether --enable-libtool-lock was given. 6925if test "${enable_libtool_lock+set}" = set; then 6926 enableval=$enable_libtool_lock; 6927fi 6928 6929test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6930 6931 6932# Check whether --with-pic was given. 6933if test "${with_pic+set}" = set; then 6934 withval=$with_pic; pic_mode="$withval" 6935else 6936 pic_mode=default 6937fi 6938 6939test -z "$pic_mode" && pic_mode=default 6940 6941# Use C for the default configuration in the libtool script 6942tagname= 6943lt_save_CC="$CC" 6944ac_ext=c 6945ac_cpp='$CPP $CPPFLAGS' 6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6948ac_compiler_gnu=$ac_cv_c_compiler_gnu 6949 6950 6951# Source file extension for C test sources. 6952ac_ext=c 6953 6954# Object file extension for compiled C test sources. 6955objext=o 6956objext=$objext 6957 6958# Code to be used in simple compile tests 6959lt_simple_compile_test_code="int some_variable = 0;\n" 6960 6961# Code to be used in simple link tests 6962lt_simple_link_test_code='int main(){return(0);}\n' 6963 6964 6965# If no C compiler was specified, use CC. 6966LTCC=${LTCC-"$CC"} 6967 6968# If no C compiler flags were specified, use CFLAGS. 6969LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6970 6971# Allow CC to be a program name with arguments. 6972compiler=$CC 6973 6974 6975# save warnings/boilerplate of simple test code 6976ac_outfile=conftest.$ac_objext 6977printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6978eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6979_lt_compiler_boilerplate=`cat conftest.err` 6980$rm conftest* 6981 6982ac_outfile=conftest.$ac_objext 6983printf "$lt_simple_link_test_code" >conftest.$ac_ext 6984eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6985_lt_linker_boilerplate=`cat conftest.err` 6986$rm conftest* 6987 6988 6989 6990lt_prog_compiler_no_builtin_flag= 6991 6992if test "$GCC" = yes; then 6993 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6994 6995 6996{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6997echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 6998if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6999 echo $ECHO_N "(cached) $ECHO_C" >&6 7000else 7001 lt_cv_prog_compiler_rtti_exceptions=no 7002 ac_outfile=conftest.$ac_objext 7003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7004 lt_compiler_flag="-fno-rtti -fno-exceptions" 7005 # Insert the option either (1) after the last *FLAGS variable, or 7006 # (2) before a word containing "conftest.", or (3) at the end. 7007 # Note that $ac_compile itself does not contain backslashes and begins 7008 # with a dollar sign (not a hyphen), so the echo should work correctly. 7009 # The option is referenced via a variable to avoid confusing sed. 7010 lt_compile=`echo "$ac_compile" | $SED \ 7011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7013 -e 's:$: $lt_compiler_flag:'` 7014 (eval echo "\"\$as_me:7014: $lt_compile\"" >&5) 7015 (eval "$lt_compile" 2>conftest.err) 7016 ac_status=$? 7017 cat conftest.err >&5 7018 echo "$as_me:7018: \$? = $ac_status" >&5 7019 if (exit $ac_status) && test -s "$ac_outfile"; then 7020 # The compiler can only warn and ignore the option if not recognized 7021 # So say no if there are warnings other than the usual output. 7022 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7025 lt_cv_prog_compiler_rtti_exceptions=yes 7026 fi 7027 fi 7028 $rm conftest* 7029 7030fi 7031{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7032echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7033 7034if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7035 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7036else 7037 : 7038fi 7039 7040fi 7041 7042lt_prog_compiler_wl= 7043lt_prog_compiler_pic= 7044lt_prog_compiler_static= 7045 7046{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7048 7049 if test "$GCC" = yes; then 7050 lt_prog_compiler_wl='-Wl,' 7051 lt_prog_compiler_static='-static' 7052 7053 case $host_os in 7054 aix*) 7055 # All AIX code is PIC. 7056 if test "$host_cpu" = ia64; then 7057 # AIX 5 now supports IA64 processor 7058 lt_prog_compiler_static='-Bstatic' 7059 fi 7060 ;; 7061 7062 amigaos*) 7063 # FIXME: we need at least 68020 code to build shared libraries, but 7064 # adding the `-m68020' flag to GCC prevents building anything better, 7065 # like `-m68040'. 7066 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7067 ;; 7068 7069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7070 # PIC is the default for these OSes. 7071 ;; 7072 7073 mingw* | cygwin* | pw32* | os2*) 7074 # This hack is so that the source file can tell whether it is being 7075 # built for inclusion in a dll (and should export symbols for example). 7076 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7077 # (--disable-auto-import) libraries 7078 lt_prog_compiler_pic='-DDLL_EXPORT' 7079 ;; 7080 7081 darwin* | rhapsody*) 7082 # PIC is the default on this platform 7083 # Common symbols not allowed in MH_DYLIB files 7084 lt_prog_compiler_pic='-fno-common' 7085 ;; 7086 7087 interix3*) 7088 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7089 # Instead, we relocate shared libraries at runtime. 7090 ;; 7091 7092 msdosdjgpp*) 7093 # Just because we use GCC doesn't mean we suddenly get shared libraries 7094 # on systems that don't support them. 7095 lt_prog_compiler_can_build_shared=no 7096 enable_shared=no 7097 ;; 7098 7099 sysv4*MP*) 7100 if test -d /usr/nec; then 7101 lt_prog_compiler_pic=-Kconform_pic 7102 fi 7103 ;; 7104 7105 hpux*) 7106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7107 # not for PA HP-UX. 7108 case $host_cpu in 7109 hppa*64*|ia64*) 7110 # +Z the default 7111 ;; 7112 *) 7113 lt_prog_compiler_pic='-fPIC' 7114 ;; 7115 esac 7116 ;; 7117 7118 *) 7119 lt_prog_compiler_pic='-fPIC' 7120 ;; 7121 esac 7122 else 7123 # PORTME Check for flag to pass linker flags through the system compiler. 7124 case $host_os in 7125 aix*) 7126 lt_prog_compiler_wl='-Wl,' 7127 if test "$host_cpu" = ia64; then 7128 # AIX 5 now supports IA64 processor 7129 lt_prog_compiler_static='-Bstatic' 7130 else 7131 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7132 fi 7133 ;; 7134 darwin*) 7135 # PIC is the default on this platform 7136 # Common symbols not allowed in MH_DYLIB files 7137 case $cc_basename in 7138 xlc*) 7139 lt_prog_compiler_pic='-qnocommon' 7140 lt_prog_compiler_wl='-Wl,' 7141 ;; 7142 esac 7143 ;; 7144 7145 mingw* | cygwin* | pw32* | os2*) 7146 # This hack is so that the source file can tell whether it is being 7147 # built for inclusion in a dll (and should export symbols for example). 7148 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7149 # (--disable-auto-import) libraries 7150 lt_prog_compiler_pic='-DDLL_EXPORT' 7151 ;; 7152 7153 hpux9* | hpux10* | hpux11*) 7154 lt_prog_compiler_wl='-Wl,' 7155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7156 # not for PA HP-UX. 7157 case $host_cpu in 7158 hppa*64*|ia64*) 7159 # +Z the default 7160 ;; 7161 *) 7162 lt_prog_compiler_pic='+Z' 7163 ;; 7164 esac 7165 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7166 lt_prog_compiler_static='${wl}-a ${wl}archive' 7167 ;; 7168 7169 irix5* | irix6* | nonstopux*) 7170 lt_prog_compiler_wl='-Wl,' 7171 # PIC (with -KPIC) is the default. 7172 lt_prog_compiler_static='-non_shared' 7173 ;; 7174 7175 newsos6) 7176 lt_prog_compiler_pic='-KPIC' 7177 lt_prog_compiler_static='-Bstatic' 7178 ;; 7179 7180 linux*) 7181 case $cc_basename in 7182 icc* | ecc*) 7183 lt_prog_compiler_wl='-Wl,' 7184 lt_prog_compiler_pic='-KPIC' 7185 lt_prog_compiler_static='-static' 7186 ;; 7187 pgcc* | pgf77* | pgf90* | pgf95*) 7188 # Portland Group compilers (*not* the Pentium gcc compiler, 7189 # which looks to be a dead project) 7190 lt_prog_compiler_wl='-Wl,' 7191 lt_prog_compiler_pic='-fpic' 7192 lt_prog_compiler_static='-Bstatic' 7193 ;; 7194 ccc*) 7195 lt_prog_compiler_wl='-Wl,' 7196 # All Alpha code is PIC. 7197 lt_prog_compiler_static='-non_shared' 7198 ;; 7199 como) 7200 lt_prog_compiler_wl='-lopt=' 7201 ;; 7202 *) 7203 case `$CC -V 2>&1 | sed 5q` in 7204 *Sun\ C*) 7205 # Sun C 5.9 7206 lt_prog_compiler_pic='-KPIC' 7207 lt_prog_compiler_static='-Bstatic' 7208 lt_prog_compiler_wl='-Wl,' 7209 ;; 7210 *Sun\ F*) 7211 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7212 lt_prog_compiler_pic='-KPIC' 7213 lt_prog_compiler_static='-Bstatic' 7214 lt_prog_compiler_wl='' 7215 ;; 7216 esac 7217 ;; 7218 esac 7219 ;; 7220 7221 osf3* | osf4* | osf5*) 7222 lt_prog_compiler_wl='-Wl,' 7223 # All OSF/1 code is PIC. 7224 lt_prog_compiler_static='-non_shared' 7225 ;; 7226 7227 solaris*) 7228 lt_prog_compiler_pic='-KPIC' 7229 lt_prog_compiler_static='-Bstatic' 7230 case $cc_basename in 7231 f77* | f90* | f95*) 7232 lt_prog_compiler_wl='-Qoption ld ';; 7233 *) 7234 lt_prog_compiler_wl='-Wl,';; 7235 esac 7236 ;; 7237 7238 sunos4*) 7239 lt_prog_compiler_wl='-Qoption ld ' 7240 lt_prog_compiler_pic='-PIC' 7241 lt_prog_compiler_static='-Bstatic' 7242 ;; 7243 7244 sysv4 | sysv4.2uw2* | sysv4.3*) 7245 lt_prog_compiler_wl='-Wl,' 7246 lt_prog_compiler_pic='-KPIC' 7247 lt_prog_compiler_static='-Bstatic' 7248 ;; 7249 7250 sysv4*MP*) 7251 if test -d /usr/nec ;then 7252 lt_prog_compiler_pic='-Kconform_pic' 7253 lt_prog_compiler_static='-Bstatic' 7254 fi 7255 ;; 7256 7257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7258 lt_prog_compiler_wl='-Wl,' 7259 lt_prog_compiler_pic='-KPIC' 7260 lt_prog_compiler_static='-Bstatic' 7261 ;; 7262 7263 unicos*) 7264 lt_prog_compiler_wl='-Wl,' 7265 lt_prog_compiler_can_build_shared=no 7266 ;; 7267 7268 uts4*) 7269 lt_prog_compiler_pic='-pic' 7270 lt_prog_compiler_static='-Bstatic' 7271 ;; 7272 7273 *) 7274 lt_prog_compiler_can_build_shared=no 7275 ;; 7276 esac 7277 fi 7278 7279{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7280echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7281 7282# 7283# Check to make sure the PIC flag actually works. 7284# 7285if test -n "$lt_prog_compiler_pic"; then 7286 7287{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7288echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7289if test "${lt_prog_compiler_pic_works+set}" = set; then 7290 echo $ECHO_N "(cached) $ECHO_C" >&6 7291else 7292 lt_prog_compiler_pic_works=no 7293 ac_outfile=conftest.$ac_objext 7294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7295 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7296 # Insert the option either (1) after the last *FLAGS variable, or 7297 # (2) before a word containing "conftest.", or (3) at the end. 7298 # Note that $ac_compile itself does not contain backslashes and begins 7299 # with a dollar sign (not a hyphen), so the echo should work correctly. 7300 # The option is referenced via a variable to avoid confusing sed. 7301 lt_compile=`echo "$ac_compile" | $SED \ 7302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7304 -e 's:$: $lt_compiler_flag:'` 7305 (eval echo "\"\$as_me:7305: $lt_compile\"" >&5) 7306 (eval "$lt_compile" 2>conftest.err) 7307 ac_status=$? 7308 cat conftest.err >&5 7309 echo "$as_me:7309: \$? = $ac_status" >&5 7310 if (exit $ac_status) && test -s "$ac_outfile"; then 7311 # The compiler can only warn and ignore the option if not recognized 7312 # So say no if there are warnings other than the usual output. 7313 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7316 lt_prog_compiler_pic_works=yes 7317 fi 7318 fi 7319 $rm conftest* 7320 7321fi 7322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7323echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7324 7325if test x"$lt_prog_compiler_pic_works" = xyes; then 7326 case $lt_prog_compiler_pic in 7327 "" | " "*) ;; 7328 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7329 esac 7330else 7331 lt_prog_compiler_pic= 7332 lt_prog_compiler_can_build_shared=no 7333fi 7334 7335fi 7336case $host_os in 7337 # For platforms which do not support PIC, -DPIC is meaningless: 7338 *djgpp*) 7339 lt_prog_compiler_pic= 7340 ;; 7341 *) 7342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7343 ;; 7344esac 7345 7346# 7347# Check to make sure the static flag actually works. 7348# 7349wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7350{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7351echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7352if test "${lt_prog_compiler_static_works+set}" = set; then 7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354else 7355 lt_prog_compiler_static_works=no 7356 save_LDFLAGS="$LDFLAGS" 7357 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7358 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7360 # The linker can only warn and ignore the option if not recognized 7361 # So say no if there are warnings 7362 if test -s conftest.err; then 7363 # Append any errors to the config.log. 7364 cat conftest.err 1>&5 7365 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7367 if diff conftest.exp conftest.er2 >/dev/null; then 7368 lt_prog_compiler_static_works=yes 7369 fi 7370 else 7371 lt_prog_compiler_static_works=yes 7372 fi 7373 fi 7374 $rm conftest* 7375 LDFLAGS="$save_LDFLAGS" 7376 7377fi 7378{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7379echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7380 7381if test x"$lt_prog_compiler_static_works" = xyes; then 7382 : 7383else 7384 lt_prog_compiler_static= 7385fi 7386 7387 7388{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7389echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7390if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7391 echo $ECHO_N "(cached) $ECHO_C" >&6 7392else 7393 lt_cv_prog_compiler_c_o=no 7394 $rm -r conftest 2>/dev/null 7395 mkdir conftest 7396 cd conftest 7397 mkdir out 7398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7399 7400 lt_compiler_flag="-o out/conftest2.$ac_objext" 7401 # Insert the option either (1) after the last *FLAGS variable, or 7402 # (2) before a word containing "conftest.", or (3) at the end. 7403 # Note that $ac_compile itself does not contain backslashes and begins 7404 # with a dollar sign (not a hyphen), so the echo should work correctly. 7405 lt_compile=`echo "$ac_compile" | $SED \ 7406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7408 -e 's:$: $lt_compiler_flag:'` 7409 (eval echo "\"\$as_me:7409: $lt_compile\"" >&5) 7410 (eval "$lt_compile" 2>out/conftest.err) 7411 ac_status=$? 7412 cat out/conftest.err >&5 7413 echo "$as_me:7413: \$? = $ac_status" >&5 7414 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7415 then 7416 # The compiler can only warn and ignore the option if not recognized 7417 # So say no if there are warnings 7418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7421 lt_cv_prog_compiler_c_o=yes 7422 fi 7423 fi 7424 chmod u+w . 2>&5 7425 $rm conftest* 7426 # SGI C++ compiler will create directory out/ii_files/ for 7427 # template instantiation 7428 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7429 $rm out/* && rmdir out 7430 cd .. 7431 rmdir conftest 7432 $rm conftest* 7433 7434fi 7435{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7436echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7437 7438 7439hard_links="nottested" 7440if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7441 # do not overwrite the value of need_locks provided by the user 7442 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7443echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7444 hard_links=yes 7445 $rm conftest* 7446 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7447 touch conftest.a 7448 ln conftest.a conftest.b 2>&5 || hard_links=no 7449 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7450 { echo "$as_me:$LINENO: result: $hard_links" >&5 7451echo "${ECHO_T}$hard_links" >&6; } 7452 if test "$hard_links" = no; then 7453 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7454echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7455 need_locks=warn 7456 fi 7457else 7458 need_locks=no 7459fi 7460 7461{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7462echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7463 7464 runpath_var= 7465 allow_undefined_flag= 7466 enable_shared_with_static_runtimes=no 7467 archive_cmds= 7468 archive_expsym_cmds= 7469 old_archive_From_new_cmds= 7470 old_archive_from_expsyms_cmds= 7471 export_dynamic_flag_spec= 7472 whole_archive_flag_spec= 7473 thread_safe_flag_spec= 7474 hardcode_libdir_flag_spec= 7475 hardcode_libdir_flag_spec_ld= 7476 hardcode_libdir_separator= 7477 hardcode_direct=no 7478 hardcode_minus_L=no 7479 hardcode_shlibpath_var=unsupported 7480 link_all_deplibs=unknown 7481 hardcode_automatic=no 7482 module_cmds= 7483 module_expsym_cmds= 7484 always_export_symbols=no 7485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7486 # include_expsyms should be a list of space-separated symbols to be *always* 7487 # included in the symbol list 7488 include_expsyms= 7489 # exclude_expsyms can be an extended regexp of symbols to exclude 7490 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7491 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7492 # as well as any symbol that contains `d'. 7493 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7495 # platforms (ab)use it in PIC code, but their linkers get confused if 7496 # the symbol is explicitly referenced. Since portable code cannot 7497 # rely on this symbol name, it's probably fine to never include it in 7498 # preloaded symbol tables. 7499 extract_expsyms_cmds= 7500 # Just being paranoid about ensuring that cc_basename is set. 7501 for cc_temp in $compiler""; do 7502 case $cc_temp in 7503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7505 \-*) ;; 7506 *) break;; 7507 esac 7508done 7509cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7510 7511 case $host_os in 7512 cygwin* | mingw* | pw32*) 7513 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7514 # When not using gcc, we currently assume that we are using 7515 # Microsoft Visual C++. 7516 if test "$GCC" != yes; then 7517 with_gnu_ld=no 7518 fi 7519 ;; 7520 interix*) 7521 # we just hope/assume this is gcc and not c89 (= MSVC++) 7522 with_gnu_ld=yes 7523 ;; 7524 openbsd*) 7525 with_gnu_ld=no 7526 ;; 7527 esac 7528 7529 ld_shlibs=yes 7530 if test "$with_gnu_ld" = yes; then 7531 # If archive_cmds runs LD, not CC, wlarc should be empty 7532 wlarc='${wl}' 7533 7534 # Set some defaults for GNU ld with shared library support. These 7535 # are reset later if shared libraries are not supported. Putting them 7536 # here allows them to be overridden if necessary. 7537 runpath_var=LD_RUN_PATH 7538 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7539 export_dynamic_flag_spec='${wl}--export-dynamic' 7540 # ancient GNU ld didn't support --whole-archive et. al. 7541 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7542 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7543 else 7544 whole_archive_flag_spec= 7545 fi 7546 supports_anon_versioning=no 7547 case `$LD -v 2>/dev/null` in 7548 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7549 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7550 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7551 *\ 2.11.*) ;; # other 2.11 versions 7552 *) supports_anon_versioning=yes ;; 7553 esac 7554 7555 # See if GNU ld supports shared libraries. 7556 case $host_os in 7557 aix3* | aix4* | aix5*) 7558 # On AIX/PPC, the GNU linker is very broken 7559 if test "$host_cpu" != ia64; then 7560 ld_shlibs=no 7561 cat <<EOF 1>&2 7562 7563*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7564*** to be unable to reliably create shared libraries on AIX. 7565*** Therefore, libtool is disabling shared libraries support. If you 7566*** really care for shared libraries, you may want to modify your PATH 7567*** so that a non-GNU linker is found, and then restart. 7568 7569EOF 7570 fi 7571 ;; 7572 7573 amigaos*) 7574 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)' 7575 hardcode_libdir_flag_spec='-L$libdir' 7576 hardcode_minus_L=yes 7577 7578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7579 # that the semantics of dynamic libraries on AmigaOS, at least up 7580 # to version 4, is to share data among multiple programs linked 7581 # with the same dynamic library. Since this doesn't match the 7582 # behavior of shared libraries on other platforms, we can't use 7583 # them. 7584 ld_shlibs=no 7585 ;; 7586 7587 beos*) 7588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7589 allow_undefined_flag=unsupported 7590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7591 # support --undefined. This deserves some investigation. FIXME 7592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7593 else 7594 ld_shlibs=no 7595 fi 7596 ;; 7597 7598 cygwin* | mingw* | pw32*) 7599 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7600 # as there is no search path for DLLs. 7601 hardcode_libdir_flag_spec='-L$libdir' 7602 allow_undefined_flag=unsupported 7603 always_export_symbols=no 7604 enable_shared_with_static_runtimes=yes 7605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7606 7607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7609 # If the export-symbols file already is a .def file (1st line 7610 # is EXPORTS), use it as is; otherwise, prepend... 7611 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7612 cp $export_symbols $output_objdir/$soname.def; 7613 else 7614 echo EXPORTS > $output_objdir/$soname.def; 7615 cat $export_symbols >> $output_objdir/$soname.def; 7616 fi~ 7617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7618 else 7619 ld_shlibs=no 7620 fi 7621 ;; 7622 7623 interix3*) 7624 hardcode_direct=no 7625 hardcode_shlibpath_var=no 7626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7627 export_dynamic_flag_spec='${wl}-E' 7628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7629 # Instead, shared libraries are loaded at an image base (0x10000000 by 7630 # default) and relocated if they conflict, which is a slow very memory 7631 # consuming and fragmenting process. To avoid this, we pick a random, 7632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7633 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7635 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' 7636 ;; 7637 7638 linux*) 7639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7640 tmp_addflag= 7641 case $cc_basename,$host_cpu in 7642 pgcc*) # Portland Group C compiler 7643 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' 7644 tmp_addflag=' $pic_flag' 7645 ;; 7646 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7647 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' 7648 tmp_addflag=' $pic_flag -Mnomain' ;; 7649 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7650 tmp_addflag=' -i_dynamic' ;; 7651 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7652 tmp_addflag=' -i_dynamic -nofor_main' ;; 7653 ifc* | ifort*) # Intel Fortran compiler 7654 tmp_addflag=' -nofor_main' ;; 7655 esac 7656 case `$CC -V 2>&1 | sed 5q` in 7657 *Sun\ C*) # Sun C 5.9 7658 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 7659 tmp_sharedflag='-G' ;; 7660 *Sun\ F*) # Sun Fortran 8.3 7661 tmp_sharedflag='-G' ;; 7662 *) 7663 tmp_sharedflag='-shared' ;; 7664 esac 7665 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7666 7667 if test $supports_anon_versioning = yes; then 7668 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7670 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7672 fi 7673 else 7674 ld_shlibs=no 7675 fi 7676 ;; 7677 7678 netbsd*) 7679 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7680 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7681 wlarc= 7682 else 7683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7685 fi 7686 ;; 7687 7688 solaris*) 7689 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7690 ld_shlibs=no 7691 cat <<EOF 1>&2 7692 7693*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7694*** create shared libraries on Solaris systems. Therefore, libtool 7695*** is disabling shared libraries support. We urge you to upgrade GNU 7696*** binutils to release 2.9.1 or newer. Another option is to modify 7697*** your PATH or compiler configuration so that the native linker is 7698*** used, and then restart. 7699 7700EOF 7701 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7704 else 7705 ld_shlibs=no 7706 fi 7707 ;; 7708 7709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7710 case `$LD -v 2>&1` in 7711 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7712 ld_shlibs=no 7713 cat <<_LT_EOF 1>&2 7714 7715*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7716*** reliably create shared libraries on SCO systems. Therefore, libtool 7717*** is disabling shared libraries support. We urge you to upgrade GNU 7718*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7719*** your PATH or compiler configuration so that the native linker is 7720*** used, and then restart. 7721 7722_LT_EOF 7723 ;; 7724 *) 7725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7726 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7729 else 7730 ld_shlibs=no 7731 fi 7732 ;; 7733 esac 7734 ;; 7735 7736 sunos4*) 7737 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7738 wlarc= 7739 hardcode_direct=yes 7740 hardcode_shlibpath_var=no 7741 ;; 7742 7743 *) 7744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7747 else 7748 ld_shlibs=no 7749 fi 7750 ;; 7751 esac 7752 7753 if test "$ld_shlibs" = no; then 7754 runpath_var= 7755 hardcode_libdir_flag_spec= 7756 export_dynamic_flag_spec= 7757 whole_archive_flag_spec= 7758 fi 7759 else 7760 # PORTME fill in a description of your system's linker (not GNU ld) 7761 case $host_os in 7762 aix3*) 7763 allow_undefined_flag=unsupported 7764 always_export_symbols=yes 7765 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' 7766 # Note: this linker hardcodes the directories in LIBPATH if there 7767 # are no directories specified by -L. 7768 hardcode_minus_L=yes 7769 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7770 # Neither direct hardcoding nor static linking is supported with a 7771 # broken collect2. 7772 hardcode_direct=unsupported 7773 fi 7774 ;; 7775 7776 aix4* | aix5*) 7777 if test "$host_cpu" = ia64; then 7778 # On IA64, the linker does run time linking by default, so we don't 7779 # have to do anything special. 7780 aix_use_runtimelinking=no 7781 exp_sym_flag='-Bexport' 7782 no_entry_flag="" 7783 else 7784 # If we're using GNU nm, then we don't want the "-C" option. 7785 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7786 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7787 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' 7788 else 7789 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' 7790 fi 7791 aix_use_runtimelinking=no 7792 7793 # Test if we are trying to use run time linking or normal 7794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7795 # need to do runtime linking. 7796 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7797 for ld_flag in $LDFLAGS; do 7798 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7799 aix_use_runtimelinking=yes 7800 break 7801 fi 7802 done 7803 ;; 7804 esac 7805 7806 exp_sym_flag='-bexport' 7807 no_entry_flag='-bnoentry' 7808 fi 7809 7810 # When large executables or shared objects are built, AIX ld can 7811 # have problems creating the table of contents. If linking a library 7812 # or program results in "error TOC overflow" add -mminimal-toc to 7813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7815 7816 archive_cmds='' 7817 hardcode_direct=yes 7818 hardcode_libdir_separator=':' 7819 link_all_deplibs=yes 7820 7821 if test "$GCC" = yes; then 7822 case $host_os in aix4.[012]|aix4.[012].*) 7823 # We only want to do this on AIX 4.2 and lower, the check 7824 # below for broken collect2 doesn't work under 4.3+ 7825 collect2name=`${CC} -print-prog-name=collect2` 7826 if test -f "$collect2name" && \ 7827 strings "$collect2name" | grep resolve_lib_name >/dev/null 7828 then 7829 # We have reworked collect2 7830 hardcode_direct=yes 7831 else 7832 # We have old collect2 7833 hardcode_direct=unsupported 7834 # It fails to find uninstalled libraries when the uninstalled 7835 # path is not listed in the libpath. Setting hardcode_minus_L 7836 # to unsupported forces relinking 7837 hardcode_minus_L=yes 7838 hardcode_libdir_flag_spec='-L$libdir' 7839 hardcode_libdir_separator= 7840 fi 7841 ;; 7842 esac 7843 shared_flag='-shared' 7844 if test "$aix_use_runtimelinking" = yes; then 7845 shared_flag="$shared_flag "'${wl}-G' 7846 fi 7847 else 7848 # not using gcc 7849 if test "$host_cpu" = ia64; then 7850 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7851 # chokes on -Wl,-G. The following line is correct: 7852 shared_flag='-G' 7853 else 7854 if test "$aix_use_runtimelinking" = yes; then 7855 shared_flag='${wl}-G' 7856 else 7857 shared_flag='${wl}-bM:SRE' 7858 fi 7859 fi 7860 fi 7861 7862 # It seems that -bexpall does not export symbols beginning with 7863 # underscore (_), so it is better to generate a list of symbols to export. 7864 always_export_symbols=yes 7865 if test "$aix_use_runtimelinking" = yes; then 7866 # Warning - without using the other runtime loading flags (-brtl), 7867 # -berok will link without error, but may produce a broken library. 7868 allow_undefined_flag='-berok' 7869 # Determine the default libpath from the value encoded in an empty executable. 7870 cat >conftest.$ac_ext <<_ACEOF 7871/* confdefs.h. */ 7872_ACEOF 7873cat confdefs.h >>conftest.$ac_ext 7874cat >>conftest.$ac_ext <<_ACEOF 7875/* end confdefs.h. */ 7876 7877int 7878main () 7879{ 7880 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885rm -f conftest.$ac_objext conftest$ac_exeext 7886if { (ac_try="$ac_link" 7887case "(($ac_try" in 7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *) ac_try_echo=$ac_try;; 7890esac 7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7892 (eval "$ac_link") 2>conftest.er1 7893 ac_status=$? 7894 grep -v '^ *+' conftest.er1 >conftest.err 7895 rm -f conftest.er1 7896 cat conftest.err >&5 7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 (exit $ac_status); } && { 7899 test -z "$ac_c_werror_flag" || 7900 test ! -s conftest.err 7901 } && test -s conftest$ac_exeext && 7902 $as_test_x conftest$ac_exeext; then 7903 7904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7905}'` 7906# Check for a 64-bit object if we didn't find anything. 7907if 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; } 7908}'`; fi 7909else 7910 echo "$as_me: failed program was:" >&5 7911sed 's/^/| /' conftest.$ac_ext >&5 7912 7913 7914fi 7915 7916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7917 conftest$ac_exeext conftest.$ac_ext 7918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7919 7920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7921 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" 7922 else 7923 if test "$host_cpu" = ia64; then 7924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7925 allow_undefined_flag="-z nodefs" 7926 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" 7927 else 7928 # Determine the default libpath from the value encoded in an empty executable. 7929 cat >conftest.$ac_ext <<_ACEOF 7930/* confdefs.h. */ 7931_ACEOF 7932cat confdefs.h >>conftest.$ac_ext 7933cat >>conftest.$ac_ext <<_ACEOF 7934/* end confdefs.h. */ 7935 7936int 7937main () 7938{ 7939 7940 ; 7941 return 0; 7942} 7943_ACEOF 7944rm -f conftest.$ac_objext conftest$ac_exeext 7945if { (ac_try="$ac_link" 7946case "(($ac_try" in 7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7948 *) ac_try_echo=$ac_try;; 7949esac 7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7951 (eval "$ac_link") 2>conftest.er1 7952 ac_status=$? 7953 grep -v '^ *+' conftest.er1 >conftest.err 7954 rm -f conftest.er1 7955 cat conftest.err >&5 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); } && { 7958 test -z "$ac_c_werror_flag" || 7959 test ! -s conftest.err 7960 } && test -s conftest$ac_exeext && 7961 $as_test_x conftest$ac_exeext; then 7962 7963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7964}'` 7965# Check for a 64-bit object if we didn't find anything. 7966if 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; } 7967}'`; fi 7968else 7969 echo "$as_me: failed program was:" >&5 7970sed 's/^/| /' conftest.$ac_ext >&5 7971 7972 7973fi 7974 7975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7976 conftest$ac_exeext conftest.$ac_ext 7977if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7978 7979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7980 # Warning - without using the other run time loading flags, 7981 # -berok will link without error, but may produce a broken library. 7982 no_undefined_flag=' ${wl}-bernotok' 7983 allow_undefined_flag=' ${wl}-berok' 7984 # Exported symbols can be pulled into shared objects from archives 7985 whole_archive_flag_spec='$convenience' 7986 archive_cmds_need_lc=yes 7987 # This is similar to how AIX traditionally builds its shared libraries. 7988 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' 7989 fi 7990 fi 7991 ;; 7992 7993 amigaos*) 7994 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)' 7995 hardcode_libdir_flag_spec='-L$libdir' 7996 hardcode_minus_L=yes 7997 # see comment about different semantics on the GNU ld section 7998 ld_shlibs=no 7999 ;; 8000 8001 bsdi[45]*) 8002 export_dynamic_flag_spec=-rdynamic 8003 ;; 8004 8005 cygwin* | mingw* | pw32*) 8006 # When not using gcc, we currently assume that we are using 8007 # Microsoft Visual C++. 8008 # hardcode_libdir_flag_spec is actually meaningless, as there is 8009 # no search path for DLLs. 8010 hardcode_libdir_flag_spec=' ' 8011 allow_undefined_flag=unsupported 8012 # Tell ltmain to make .lib files, not .a files. 8013 libext=lib 8014 # Tell ltmain to make .dll files, not .so files. 8015 shrext_cmds=".dll" 8016 # FIXME: Setting linknames here is a bad hack. 8017 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8018 # The linker will automatically build a .lib file if we build a DLL. 8019 old_archive_From_new_cmds='true' 8020 # FIXME: Should let the user specify the lib program. 8021 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8022 fix_srcfile_path='`cygpath -w "$srcfile"`' 8023 enable_shared_with_static_runtimes=yes 8024 ;; 8025 8026 darwin* | rhapsody*) 8027 case $host_os in 8028 rhapsody* | darwin1.[012]) 8029 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8030 ;; 8031 *) # Darwin 1.3 on 8032 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8033 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8034 else 8035 case ${MACOSX_DEPLOYMENT_TARGET} in 8036 10.[012]) 8037 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8038 ;; 8039 10.*) 8040 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8041 ;; 8042 esac 8043 fi 8044 ;; 8045 esac 8046 archive_cmds_need_lc=no 8047 hardcode_direct=no 8048 hardcode_automatic=yes 8049 hardcode_shlibpath_var=unsupported 8050 whole_archive_flag_spec='' 8051 link_all_deplibs=yes 8052 if test "$GCC" = yes ; then 8053 output_verbose_link_cmd='echo' 8054 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8055 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8056 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8057 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}' 8058 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}' 8059 else 8060 case $cc_basename in 8061 xlc*) 8062 output_verbose_link_cmd='echo' 8063 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8064 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8066 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}' 8067 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}' 8068 ;; 8069 *) 8070 ld_shlibs=no 8071 ;; 8072 esac 8073 fi 8074 ;; 8075 8076 dgux*) 8077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8078 hardcode_libdir_flag_spec='-L$libdir' 8079 hardcode_shlibpath_var=no 8080 ;; 8081 8082 freebsd1*) 8083 ld_shlibs=no 8084 ;; 8085 8086 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8087 # support. Future versions do this automatically, but an explicit c++rt0.o 8088 # does not break anything, and helps significantly (at the cost of a little 8089 # extra space). 8090 freebsd2.2*) 8091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8092 hardcode_libdir_flag_spec='-R$libdir' 8093 hardcode_direct=yes 8094 hardcode_shlibpath_var=no 8095 ;; 8096 8097 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8098 freebsd2*) 8099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8100 hardcode_direct=yes 8101 hardcode_minus_L=yes 8102 hardcode_shlibpath_var=no 8103 ;; 8104 8105 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8106 freebsd* | kfreebsd*-gnu | dragonfly*) 8107 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8108 hardcode_libdir_flag_spec='-R$libdir' 8109 hardcode_direct=yes 8110 hardcode_shlibpath_var=no 8111 ;; 8112 8113 hpux9*) 8114 if test "$GCC" = yes; then 8115 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' 8116 else 8117 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' 8118 fi 8119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8120 hardcode_libdir_separator=: 8121 hardcode_direct=yes 8122 8123 # hardcode_minus_L: Not really in the search PATH, 8124 # but as the default location of the library. 8125 hardcode_minus_L=yes 8126 export_dynamic_flag_spec='${wl}-E' 8127 ;; 8128 8129 hpux10*) 8130 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8131 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8132 else 8133 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8134 fi 8135 if test "$with_gnu_ld" = no; then 8136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8137 hardcode_libdir_separator=: 8138 8139 hardcode_direct=yes 8140 export_dynamic_flag_spec='${wl}-E' 8141 8142 # hardcode_minus_L: Not really in the search PATH, 8143 # but as the default location of the library. 8144 hardcode_minus_L=yes 8145 fi 8146 ;; 8147 8148 hpux11*) 8149 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8150 case $host_cpu in 8151 hppa*64*) 8152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8153 ;; 8154 ia64*) 8155 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8156 ;; 8157 *) 8158 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8159 ;; 8160 esac 8161 else 8162 case $host_cpu in 8163 hppa*64*) 8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8165 ;; 8166 ia64*) 8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8168 ;; 8169 *) 8170 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8171 ;; 8172 esac 8173 fi 8174 if test "$with_gnu_ld" = no; then 8175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8176 hardcode_libdir_separator=: 8177 8178 case $host_cpu in 8179 hppa*64*|ia64*) 8180 hardcode_libdir_flag_spec_ld='+b $libdir' 8181 hardcode_direct=no 8182 hardcode_shlibpath_var=no 8183 ;; 8184 *) 8185 hardcode_direct=yes 8186 export_dynamic_flag_spec='${wl}-E' 8187 8188 # hardcode_minus_L: Not really in the search PATH, 8189 # but as the default location of the library. 8190 hardcode_minus_L=yes 8191 ;; 8192 esac 8193 fi 8194 ;; 8195 8196 irix5* | irix6* | nonstopux*) 8197 if test "$GCC" = yes; then 8198 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' 8199 else 8200 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' 8201 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8202 fi 8203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8204 hardcode_libdir_separator=: 8205 link_all_deplibs=yes 8206 ;; 8207 8208 netbsd*) 8209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8211 else 8212 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8213 fi 8214 hardcode_libdir_flag_spec='-R$libdir' 8215 hardcode_direct=yes 8216 hardcode_shlibpath_var=no 8217 ;; 8218 8219 newsos6) 8220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8221 hardcode_direct=yes 8222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8223 hardcode_libdir_separator=: 8224 hardcode_shlibpath_var=no 8225 ;; 8226 8227 openbsd*) 8228 hardcode_direct=yes 8229 hardcode_shlibpath_var=no 8230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8234 export_dynamic_flag_spec='${wl}-E' 8235 else 8236 case $host_os in 8237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8239 hardcode_libdir_flag_spec='-R$libdir' 8240 ;; 8241 *) 8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8244 ;; 8245 esac 8246 fi 8247 ;; 8248 8249 os2*) 8250 hardcode_libdir_flag_spec='-L$libdir' 8251 hardcode_minus_L=yes 8252 allow_undefined_flag=unsupported 8253 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' 8254 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8255 ;; 8256 8257 osf3*) 8258 if test "$GCC" = yes; then 8259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8260 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' 8261 else 8262 allow_undefined_flag=' -expect_unresolved \*' 8263 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' 8264 fi 8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8266 hardcode_libdir_separator=: 8267 ;; 8268 8269 osf4* | osf5*) # as osf3* with the addition of -msym flag 8270 if test "$GCC" = yes; then 8271 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8272 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' 8273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8274 else 8275 allow_undefined_flag=' -expect_unresolved \*' 8276 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' 8277 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8278 $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' 8279 8280 # Both c and cxx compiler support -rpath directly 8281 hardcode_libdir_flag_spec='-rpath $libdir' 8282 fi 8283 hardcode_libdir_separator=: 8284 ;; 8285 8286 solaris*) 8287 no_undefined_flag=' -z text' 8288 if test "$GCC" = yes; then 8289 wlarc='${wl}' 8290 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8293 else 8294 wlarc='' 8295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8296 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8298 fi 8299 hardcode_libdir_flag_spec='-R$libdir' 8300 hardcode_shlibpath_var=no 8301 case $host_os in 8302 solaris2.[0-5] | solaris2.[0-5].*) ;; 8303 *) 8304 # The compiler driver will combine linker options so we 8305 # cannot just pass the convience library names through 8306 # without $wl, iff we do not link with $LD. 8307 # Luckily, gcc supports the same syntax we need for Sun Studio. 8308 # Supported since Solaris 2.6 (maybe 2.5.1?) 8309 case $wlarc in 8310 '') 8311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8312 *) 8313 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' ;; 8314 esac ;; 8315 esac 8316 link_all_deplibs=yes 8317 ;; 8318 8319 sunos4*) 8320 if test "x$host_vendor" = xsequent; then 8321 # Use $CC to link under sequent, because it throws in some extra .o 8322 # files that make .init and .fini sections work. 8323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8324 else 8325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8326 fi 8327 hardcode_libdir_flag_spec='-L$libdir' 8328 hardcode_direct=yes 8329 hardcode_minus_L=yes 8330 hardcode_shlibpath_var=no 8331 ;; 8332 8333 sysv4) 8334 case $host_vendor in 8335 sni) 8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8337 hardcode_direct=yes # is this really true??? 8338 ;; 8339 siemens) 8340 ## LD is ld it makes a PLAMLIB 8341 ## CC just makes a GrossModule. 8342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8343 reload_cmds='$CC -r -o $output$reload_objs' 8344 hardcode_direct=no 8345 ;; 8346 motorola) 8347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8349 ;; 8350 esac 8351 runpath_var='LD_RUN_PATH' 8352 hardcode_shlibpath_var=no 8353 ;; 8354 8355 sysv4.3*) 8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8357 hardcode_shlibpath_var=no 8358 export_dynamic_flag_spec='-Bexport' 8359 ;; 8360 8361 sysv4*MP*) 8362 if test -d /usr/nec; then 8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8364 hardcode_shlibpath_var=no 8365 runpath_var=LD_RUN_PATH 8366 hardcode_runpath_var=yes 8367 ld_shlibs=yes 8368 fi 8369 ;; 8370 8371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8372 no_undefined_flag='${wl}-z,text' 8373 archive_cmds_need_lc=no 8374 hardcode_shlibpath_var=no 8375 runpath_var='LD_RUN_PATH' 8376 8377 if test "$GCC" = yes; then 8378 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8380 else 8381 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8383 fi 8384 ;; 8385 8386 sysv5* | sco3.2v5* | sco5v6*) 8387 # Note: We can NOT use -z defs as we might desire, because we do not 8388 # link with -lc, and that would cause any symbols used from libc to 8389 # always be unresolved, which means just about no library would 8390 # ever link correctly. If we're not using GNU ld we use -z text 8391 # though, which does catch some bad symbols but isn't as heavy-handed 8392 # as -z defs. 8393 no_undefined_flag='${wl}-z,text' 8394 allow_undefined_flag='${wl}-z,nodefs' 8395 archive_cmds_need_lc=no 8396 hardcode_shlibpath_var=no 8397 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8398 hardcode_libdir_separator=':' 8399 link_all_deplibs=yes 8400 export_dynamic_flag_spec='${wl}-Bexport' 8401 runpath_var='LD_RUN_PATH' 8402 8403 if test "$GCC" = yes; then 8404 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8406 else 8407 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8409 fi 8410 ;; 8411 8412 uts4*) 8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8414 hardcode_libdir_flag_spec='-L$libdir' 8415 hardcode_shlibpath_var=no 8416 ;; 8417 8418 *) 8419 ld_shlibs=no 8420 ;; 8421 esac 8422 fi 8423 8424{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8425echo "${ECHO_T}$ld_shlibs" >&6; } 8426test "$ld_shlibs" = no && can_build_shared=no 8427 8428# 8429# Do we need to explicitly link libc? 8430# 8431case "x$archive_cmds_need_lc" in 8432x|xyes) 8433 # Assume -lc should be added 8434 archive_cmds_need_lc=yes 8435 8436 if test "$enable_shared" = yes && test "$GCC" = yes; then 8437 case $archive_cmds in 8438 *'~'*) 8439 # FIXME: we may have to deal with multi-command sequences. 8440 ;; 8441 '$CC '*) 8442 # Test whether the compiler implicitly links with -lc since on some 8443 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8444 # to ld, don't add -lc before -lgcc. 8445 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8446echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8447 $rm conftest* 8448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8449 8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8451 (eval $ac_compile) 2>&5 8452 ac_status=$? 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 (exit $ac_status); } 2>conftest.err; then 8455 soname=conftest 8456 lib=conftest 8457 libobjs=conftest.$ac_objext 8458 deplibs= 8459 wl=$lt_prog_compiler_wl 8460 pic_flag=$lt_prog_compiler_pic 8461 compiler_flags=-v 8462 linker_flags=-v 8463 verstring= 8464 output_objdir=. 8465 libname=conftest 8466 lt_save_allow_undefined_flag=$allow_undefined_flag 8467 allow_undefined_flag= 8468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8469 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8470 ac_status=$? 8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8472 (exit $ac_status); } 8473 then 8474 archive_cmds_need_lc=no 8475 else 8476 archive_cmds_need_lc=yes 8477 fi 8478 allow_undefined_flag=$lt_save_allow_undefined_flag 8479 else 8480 cat conftest.err 1>&5 8481 fi 8482 $rm conftest* 8483 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8484echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8485 ;; 8486 esac 8487 fi 8488 ;; 8489esac 8490 8491{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8492echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8493library_names_spec= 8494libname_spec='lib$name' 8495soname_spec= 8496shrext_cmds=".so" 8497postinstall_cmds= 8498postuninstall_cmds= 8499finish_cmds= 8500finish_eval= 8501shlibpath_var= 8502shlibpath_overrides_runpath=unknown 8503version_type=none 8504dynamic_linker="$host_os ld.so" 8505sys_lib_dlsearch_path_spec="/lib /usr/lib" 8506if test "$GCC" = yes; then 8507 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8508 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8509 # if the path contains ";" then we assume it to be the separator 8510 # otherwise default to the standard path separator (i.e. ":") - it is 8511 # assumed that no part of a normal pathname contains ";" but that should 8512 # okay in the real world where ";" in dirpaths is itself problematic. 8513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8514 else 8515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8516 fi 8517else 8518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8519fi 8520need_lib_prefix=unknown 8521hardcode_into_libs=no 8522 8523# when you set need_version to no, make sure it does not cause -set_version 8524# flags to be left without arguments 8525need_version=unknown 8526 8527case $host_os in 8528aix3*) 8529 version_type=linux 8530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8531 shlibpath_var=LIBPATH 8532 8533 # AIX 3 has no versioning support, so we append a major version to the name. 8534 soname_spec='${libname}${release}${shared_ext}$major' 8535 ;; 8536 8537aix4* | aix5*) 8538 version_type=linux 8539 need_lib_prefix=no 8540 need_version=no 8541 hardcode_into_libs=yes 8542 if test "$host_cpu" = ia64; then 8543 # AIX 5 supports IA64 8544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8545 shlibpath_var=LD_LIBRARY_PATH 8546 else 8547 # With GCC up to 2.95.x, collect2 would create an import file 8548 # for dependence libraries. The import file would start with 8549 # the line `#! .'. This would cause the generated library to 8550 # depend on `.', always an invalid library. This was fixed in 8551 # development snapshots of GCC prior to 3.0. 8552 case $host_os in 8553 aix4 | aix4.[01] | aix4.[01].*) 8554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8555 echo ' yes ' 8556 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8557 : 8558 else 8559 can_build_shared=no 8560 fi 8561 ;; 8562 esac 8563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8564 # soname into executable. Probably we can add versioning support to 8565 # collect2, so additional links can be useful in future. 8566 if test "$aix_use_runtimelinking" = yes; then 8567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8568 # instead of lib<name>.a to let people know that these are not 8569 # typical AIX shared libraries. 8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8571 else 8572 # We preserve .a as extension for shared libraries through AIX4.2 8573 # and later when we are not doing run time linking. 8574 library_names_spec='${libname}${release}.a $libname.a' 8575 soname_spec='${libname}${release}${shared_ext}$major' 8576 fi 8577 shlibpath_var=LIBPATH 8578 fi 8579 ;; 8580 8581amigaos*) 8582 library_names_spec='$libname.ixlibrary $libname.a' 8583 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8584 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' 8585 ;; 8586 8587beos*) 8588 library_names_spec='${libname}${shared_ext}' 8589 dynamic_linker="$host_os ld.so" 8590 shlibpath_var=LIBRARY_PATH 8591 ;; 8592 8593bsdi[45]*) 8594 version_type=linux 8595 need_version=no 8596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8597 soname_spec='${libname}${release}${shared_ext}$major' 8598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8599 shlibpath_var=LD_LIBRARY_PATH 8600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8602 # the default ld.so.conf also contains /usr/contrib/lib and 8603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8604 # libtool to hard-code these into programs 8605 ;; 8606 8607cygwin* | mingw* | pw32*) 8608 version_type=windows 8609 shrext_cmds=".dll" 8610 need_version=no 8611 need_lib_prefix=no 8612 8613 case $GCC,$host_os in 8614 yes,cygwin* | yes,mingw* | yes,pw32*) 8615 library_names_spec='$libname.dll.a' 8616 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8617 postinstall_cmds='base_file=`basename \${file}`~ 8618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8619 dldir=$destdir/`dirname \$dlpath`~ 8620 test -d \$dldir || mkdir -p \$dldir~ 8621 $install_prog $dir/$dlname \$dldir/$dlname~ 8622 chmod a+x \$dldir/$dlname' 8623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8624 dlpath=$dir/\$dldll~ 8625 $rm \$dlpath' 8626 shlibpath_overrides_runpath=yes 8627 8628 case $host_os in 8629 cygwin*) 8630 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8633 ;; 8634 mingw*) 8635 # MinGW DLLs use traditional 'lib' prefix 8636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8639 # It is most probably a Windows format PATH printed by 8640 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8641 # path with ; separators, and with drive letters. We can handle the 8642 # drive letters (cygwin fileutils understands them), so leave them, 8643 # especially as we might pass files found there to a mingw objdump, 8644 # which wouldn't understand a cygwinified path. Ahh. 8645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8646 else 8647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8648 fi 8649 ;; 8650 pw32*) 8651 # pw32 DLLs use 'pw' prefix rather than 'lib' 8652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8653 ;; 8654 esac 8655 ;; 8656 8657 *) 8658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8659 ;; 8660 esac 8661 dynamic_linker='Win32 ld.exe' 8662 # FIXME: first we should search . and the directory the executable is in 8663 shlibpath_var=PATH 8664 ;; 8665 8666darwin* | rhapsody*) 8667 dynamic_linker="$host_os dyld" 8668 version_type=darwin 8669 need_lib_prefix=no 8670 need_version=no 8671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8672 soname_spec='${libname}${release}${major}$shared_ext' 8673 shlibpath_overrides_runpath=yes 8674 shlibpath_var=DYLD_LIBRARY_PATH 8675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8676 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8677 if test "$GCC" = yes; then 8678 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"` 8679 else 8680 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8681 fi 8682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8683 ;; 8684 8685dgux*) 8686 version_type=linux 8687 need_lib_prefix=no 8688 need_version=no 8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8690 soname_spec='${libname}${release}${shared_ext}$major' 8691 shlibpath_var=LD_LIBRARY_PATH 8692 ;; 8693 8694freebsd1*) 8695 dynamic_linker=no 8696 ;; 8697 8698kfreebsd*-gnu) 8699 version_type=linux 8700 need_lib_prefix=no 8701 need_version=no 8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8703 soname_spec='${libname}${release}${shared_ext}$major' 8704 shlibpath_var=LD_LIBRARY_PATH 8705 shlibpath_overrides_runpath=no 8706 hardcode_into_libs=yes 8707 dynamic_linker='GNU ld.so' 8708 ;; 8709 8710freebsd* | dragonfly*) 8711 # DragonFly does not have aout. When/if they implement a new 8712 # versioning mechanism, adjust this. 8713 if test -x /usr/bin/objformat; then 8714 objformat=`/usr/bin/objformat` 8715 else 8716 case $host_os in 8717 freebsd[123]*) objformat=aout ;; 8718 *) objformat=elf ;; 8719 esac 8720 fi 8721 version_type=freebsd-$objformat 8722 case $version_type in 8723 freebsd-elf*) 8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8725 need_version=no 8726 need_lib_prefix=no 8727 ;; 8728 freebsd-*) 8729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8730 need_version=yes 8731 ;; 8732 esac 8733 shlibpath_var=LD_LIBRARY_PATH 8734 case $host_os in 8735 freebsd2*) 8736 shlibpath_overrides_runpath=yes 8737 ;; 8738 freebsd3.[01]* | freebsdelf3.[01]*) 8739 shlibpath_overrides_runpath=yes 8740 hardcode_into_libs=yes 8741 ;; 8742 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8743 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8744 shlibpath_overrides_runpath=no 8745 hardcode_into_libs=yes 8746 ;; 8747 freebsd*) # from 4.6 on 8748 shlibpath_overrides_runpath=yes 8749 hardcode_into_libs=yes 8750 ;; 8751 esac 8752 ;; 8753 8754gnu*) 8755 version_type=linux 8756 need_lib_prefix=no 8757 need_version=no 8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8759 soname_spec='${libname}${release}${shared_ext}$major' 8760 shlibpath_var=LD_LIBRARY_PATH 8761 hardcode_into_libs=yes 8762 ;; 8763 8764hpux9* | hpux10* | hpux11*) 8765 # Give a soname corresponding to the major version so that dld.sl refuses to 8766 # link against other versions. 8767 version_type=sunos 8768 need_lib_prefix=no 8769 need_version=no 8770 case $host_cpu in 8771 ia64*) 8772 shrext_cmds='.so' 8773 hardcode_into_libs=yes 8774 dynamic_linker="$host_os dld.so" 8775 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then 8780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8781 else 8782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8783 fi 8784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8785 ;; 8786 hppa*64*) 8787 shrext_cmds='.sl' 8788 hardcode_into_libs=yes 8789 dynamic_linker="$host_os dld.sl" 8790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8793 soname_spec='${libname}${release}${shared_ext}$major' 8794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8796 ;; 8797 *) 8798 shrext_cmds='.sl' 8799 dynamic_linker="$host_os dld.sl" 8800 shlibpath_var=SHLIB_PATH 8801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8803 soname_spec='${libname}${release}${shared_ext}$major' 8804 ;; 8805 esac 8806 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8807 postinstall_cmds='chmod 555 $lib' 8808 ;; 8809 8810interix3*) 8811 version_type=linux 8812 need_lib_prefix=no 8813 need_version=no 8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8815 soname_spec='${libname}${release}${shared_ext}$major' 8816 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8817 shlibpath_var=LD_LIBRARY_PATH 8818 shlibpath_overrides_runpath=no 8819 hardcode_into_libs=yes 8820 ;; 8821 8822irix5* | irix6* | nonstopux*) 8823 case $host_os in 8824 nonstopux*) version_type=nonstopux ;; 8825 *) 8826 if test "$lt_cv_prog_gnu_ld" = yes; then 8827 version_type=linux 8828 else 8829 version_type=irix 8830 fi ;; 8831 esac 8832 need_lib_prefix=no 8833 need_version=no 8834 soname_spec='${libname}${release}${shared_ext}$major' 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8836 case $host_os in 8837 irix5* | nonstopux*) 8838 libsuff= shlibsuff= 8839 ;; 8840 *) 8841 case $LD in # libtool.m4 will add one of these switches to LD 8842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8843 libsuff= shlibsuff= libmagic=32-bit;; 8844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8845 libsuff=32 shlibsuff=N32 libmagic=N32;; 8846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8847 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8848 *) libsuff= shlibsuff= libmagic=never-match;; 8849 esac 8850 ;; 8851 esac 8852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8853 shlibpath_overrides_runpath=no 8854 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8855 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8856 hardcode_into_libs=yes 8857 ;; 8858 8859# No shared lib support for Linux oldld, aout, or coff. 8860linux*oldld* | linux*aout* | linux*coff*) 8861 dynamic_linker=no 8862 ;; 8863 8864# This must be Linux ELF. 8865linux*) 8866 version_type=linux 8867 need_lib_prefix=no 8868 need_version=no 8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8870 soname_spec='${libname}${release}${shared_ext}$major' 8871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8872 shlibpath_var=LD_LIBRARY_PATH 8873 shlibpath_overrides_runpath=no 8874 # This implies no fast_install, which is unacceptable. 8875 # Some rework will be needed to allow for fast_install 8876 # before this can be enabled. 8877 hardcode_into_libs=yes 8878 8879 # Append ld.so.conf contents to the search path 8880 if test -f /etc/ld.so.conf; then 8881 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8883 fi 8884 8885 # We used to test for /lib/ld.so.1 and disable shared libraries on 8886 # powerpc, because MkLinux only supported shared libraries with the 8887 # GNU dynamic linker. Since this was broken with cross compilers, 8888 # most powerpc-linux boxes support dynamic linking these days and 8889 # people can always --disable-shared, the test was removed, and we 8890 # assume the GNU/Linux dynamic linker is in use. 8891 dynamic_linker='GNU/Linux ld.so' 8892 ;; 8893 8894knetbsd*-gnu) 8895 version_type=linux 8896 need_lib_prefix=no 8897 need_version=no 8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8899 soname_spec='${libname}${release}${shared_ext}$major' 8900 shlibpath_var=LD_LIBRARY_PATH 8901 shlibpath_overrides_runpath=no 8902 hardcode_into_libs=yes 8903 dynamic_linker='GNU ld.so' 8904 ;; 8905 8906netbsd*) 8907 version_type=sunos 8908 need_lib_prefix=no 8909 need_version=no 8910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8913 dynamic_linker='NetBSD (a.out) ld.so' 8914 else 8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8916 soname_spec='${libname}${release}${shared_ext}$major' 8917 dynamic_linker='NetBSD ld.elf_so' 8918 fi 8919 shlibpath_var=LD_LIBRARY_PATH 8920 shlibpath_overrides_runpath=yes 8921 hardcode_into_libs=yes 8922 ;; 8923 8924newsos6) 8925 version_type=linux 8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8927 shlibpath_var=LD_LIBRARY_PATH 8928 shlibpath_overrides_runpath=yes 8929 ;; 8930 8931nto-qnx*) 8932 version_type=linux 8933 need_lib_prefix=no 8934 need_version=no 8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8936 soname_spec='${libname}${release}${shared_ext}$major' 8937 shlibpath_var=LD_LIBRARY_PATH 8938 shlibpath_overrides_runpath=yes 8939 ;; 8940 8941openbsd*) 8942 version_type=sunos 8943 sys_lib_dlsearch_path_spec="/usr/lib" 8944 need_lib_prefix=no 8945 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8946 case $host_os in 8947 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8948 *) need_version=no ;; 8949 esac 8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8952 shlibpath_var=LD_LIBRARY_PATH 8953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8954 case $host_os in 8955 openbsd2.[89] | openbsd2.[89].*) 8956 shlibpath_overrides_runpath=no 8957 ;; 8958 *) 8959 shlibpath_overrides_runpath=yes 8960 ;; 8961 esac 8962 else 8963 shlibpath_overrides_runpath=yes 8964 fi 8965 ;; 8966 8967os2*) 8968 libname_spec='$name' 8969 shrext_cmds=".dll" 8970 need_lib_prefix=no 8971 library_names_spec='$libname${shared_ext} $libname.a' 8972 dynamic_linker='OS/2 ld.exe' 8973 shlibpath_var=LIBPATH 8974 ;; 8975 8976osf3* | osf4* | osf5*) 8977 version_type=osf 8978 need_lib_prefix=no 8979 need_version=no 8980 soname_spec='${libname}${release}${shared_ext}$major' 8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8982 shlibpath_var=LD_LIBRARY_PATH 8983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8985 ;; 8986 8987solaris*) 8988 version_type=linux 8989 need_lib_prefix=no 8990 need_version=no 8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8992 soname_spec='${libname}${release}${shared_ext}$major' 8993 shlibpath_var=LD_LIBRARY_PATH 8994 shlibpath_overrides_runpath=yes 8995 hardcode_into_libs=yes 8996 # ldd complains unless libraries are executable 8997 postinstall_cmds='chmod +x $lib' 8998 ;; 8999 9000sunos4*) 9001 version_type=sunos 9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9004 shlibpath_var=LD_LIBRARY_PATH 9005 shlibpath_overrides_runpath=yes 9006 if test "$with_gnu_ld" = yes; then 9007 need_lib_prefix=no 9008 fi 9009 need_version=yes 9010 ;; 9011 9012sysv4 | sysv4.3*) 9013 version_type=linux 9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9015 soname_spec='${libname}${release}${shared_ext}$major' 9016 shlibpath_var=LD_LIBRARY_PATH 9017 case $host_vendor in 9018 sni) 9019 shlibpath_overrides_runpath=no 9020 need_lib_prefix=no 9021 export_dynamic_flag_spec='${wl}-Blargedynsym' 9022 runpath_var=LD_RUN_PATH 9023 ;; 9024 siemens) 9025 need_lib_prefix=no 9026 ;; 9027 motorola) 9028 need_lib_prefix=no 9029 need_version=no 9030 shlibpath_overrides_runpath=no 9031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9032 ;; 9033 esac 9034 ;; 9035 9036sysv4*MP*) 9037 if test -d /usr/nec ;then 9038 version_type=linux 9039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9040 soname_spec='$libname${shared_ext}.$major' 9041 shlibpath_var=LD_LIBRARY_PATH 9042 fi 9043 ;; 9044 9045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9046 version_type=freebsd-elf 9047 need_lib_prefix=no 9048 need_version=no 9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9050 soname_spec='${libname}${release}${shared_ext}$major' 9051 shlibpath_var=LD_LIBRARY_PATH 9052 hardcode_into_libs=yes 9053 if test "$with_gnu_ld" = yes; then 9054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9055 shlibpath_overrides_runpath=no 9056 else 9057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9058 shlibpath_overrides_runpath=yes 9059 case $host_os in 9060 sco3.2v5*) 9061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9062 ;; 9063 esac 9064 fi 9065 sys_lib_dlsearch_path_spec='/usr/lib' 9066 ;; 9067 9068uts4*) 9069 version_type=linux 9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9071 soname_spec='${libname}${release}${shared_ext}$major' 9072 shlibpath_var=LD_LIBRARY_PATH 9073 ;; 9074 9075*) 9076 dynamic_linker=no 9077 ;; 9078esac 9079{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9080echo "${ECHO_T}$dynamic_linker" >&6; } 9081test "$dynamic_linker" = no && can_build_shared=no 9082 9083variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9084if test "$GCC" = yes; then 9085 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9086fi 9087 9088{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9089echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9090hardcode_action= 9091if test -n "$hardcode_libdir_flag_spec" || \ 9092 test -n "$runpath_var" || \ 9093 test "X$hardcode_automatic" = "Xyes" ; then 9094 9095 # We can hardcode non-existant directories. 9096 if test "$hardcode_direct" != no && 9097 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9098 # have to relink, otherwise we might link with an installed library 9099 # when we should be linking with a yet-to-be-installed one 9100 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9101 test "$hardcode_minus_L" != no; then 9102 # Linking always hardcodes the temporary library directory. 9103 hardcode_action=relink 9104 else 9105 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9106 hardcode_action=immediate 9107 fi 9108else 9109 # We cannot hardcode anything, or else we can only hardcode existing 9110 # directories. 9111 hardcode_action=unsupported 9112fi 9113{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9114echo "${ECHO_T}$hardcode_action" >&6; } 9115 9116if test "$hardcode_action" = relink; then 9117 # Fast installation is not supported 9118 enable_fast_install=no 9119elif test "$shlibpath_overrides_runpath" = yes || 9120 test "$enable_shared" = no; then 9121 # Fast installation is not necessary 9122 enable_fast_install=needless 9123fi 9124 9125striplib= 9126old_striplib= 9127{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9128echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9129if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9130 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9131 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9132 { echo "$as_me:$LINENO: result: yes" >&5 9133echo "${ECHO_T}yes" >&6; } 9134else 9135# FIXME - insert some real tests, host_os isn't really good enough 9136 case $host_os in 9137 darwin*) 9138 if test -n "$STRIP" ; then 9139 striplib="$STRIP -x" 9140 { echo "$as_me:$LINENO: result: yes" >&5 9141echo "${ECHO_T}yes" >&6; } 9142 else 9143 { echo "$as_me:$LINENO: result: no" >&5 9144echo "${ECHO_T}no" >&6; } 9145fi 9146 ;; 9147 *) 9148 { echo "$as_me:$LINENO: result: no" >&5 9149echo "${ECHO_T}no" >&6; } 9150 ;; 9151 esac 9152fi 9153 9154if test "x$enable_dlopen" != xyes; then 9155 enable_dlopen=unknown 9156 enable_dlopen_self=unknown 9157 enable_dlopen_self_static=unknown 9158else 9159 lt_cv_dlopen=no 9160 lt_cv_dlopen_libs= 9161 9162 case $host_os in 9163 beos*) 9164 lt_cv_dlopen="load_add_on" 9165 lt_cv_dlopen_libs= 9166 lt_cv_dlopen_self=yes 9167 ;; 9168 9169 mingw* | pw32*) 9170 lt_cv_dlopen="LoadLibrary" 9171 lt_cv_dlopen_libs= 9172 ;; 9173 9174 cygwin*) 9175 lt_cv_dlopen="dlopen" 9176 lt_cv_dlopen_libs= 9177 ;; 9178 9179 darwin*) 9180 # if libdl is installed we need to link against it 9181 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9182echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9183if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9184 echo $ECHO_N "(cached) $ECHO_C" >&6 9185else 9186 ac_check_lib_save_LIBS=$LIBS 9187LIBS="-ldl $LIBS" 9188cat >conftest.$ac_ext <<_ACEOF 9189/* confdefs.h. */ 9190_ACEOF 9191cat confdefs.h >>conftest.$ac_ext 9192cat >>conftest.$ac_ext <<_ACEOF 9193/* end confdefs.h. */ 9194 9195/* Override any GCC internal prototype to avoid an error. 9196 Use char because int might match the return type of a GCC 9197 builtin and then its argument prototype would still apply. */ 9198#ifdef __cplusplus 9199extern "C" 9200#endif 9201char dlopen (); 9202int 9203main () 9204{ 9205return dlopen (); 9206 ; 9207 return 0; 9208} 9209_ACEOF 9210rm -f conftest.$ac_objext conftest$ac_exeext 9211if { (ac_try="$ac_link" 9212case "(($ac_try" in 9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9214 *) ac_try_echo=$ac_try;; 9215esac 9216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9217 (eval "$ac_link") 2>conftest.er1 9218 ac_status=$? 9219 grep -v '^ *+' conftest.er1 >conftest.err 9220 rm -f conftest.er1 9221 cat conftest.err >&5 9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); } && { 9224 test -z "$ac_c_werror_flag" || 9225 test ! -s conftest.err 9226 } && test -s conftest$ac_exeext && 9227 $as_test_x conftest$ac_exeext; then 9228 ac_cv_lib_dl_dlopen=yes 9229else 9230 echo "$as_me: failed program was:" >&5 9231sed 's/^/| /' conftest.$ac_ext >&5 9232 9233 ac_cv_lib_dl_dlopen=no 9234fi 9235 9236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9237 conftest$ac_exeext conftest.$ac_ext 9238LIBS=$ac_check_lib_save_LIBS 9239fi 9240{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9241echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9242if test $ac_cv_lib_dl_dlopen = yes; then 9243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9244else 9245 9246 lt_cv_dlopen="dyld" 9247 lt_cv_dlopen_libs= 9248 lt_cv_dlopen_self=yes 9249 9250fi 9251 9252 ;; 9253 9254 *) 9255 { echo "$as_me:$LINENO: checking for shl_load" >&5 9256echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9257if test "${ac_cv_func_shl_load+set}" = set; then 9258 echo $ECHO_N "(cached) $ECHO_C" >&6 9259else 9260 cat >conftest.$ac_ext <<_ACEOF 9261/* confdefs.h. */ 9262_ACEOF 9263cat confdefs.h >>conftest.$ac_ext 9264cat >>conftest.$ac_ext <<_ACEOF 9265/* end confdefs.h. */ 9266/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9267 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9268#define shl_load innocuous_shl_load 9269 9270/* System header to define __stub macros and hopefully few prototypes, 9271 which can conflict with char shl_load (); below. 9272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9273 <limits.h> exists even on freestanding compilers. */ 9274 9275#ifdef __STDC__ 9276# include <limits.h> 9277#else 9278# include <assert.h> 9279#endif 9280 9281#undef shl_load 9282 9283/* Override any GCC internal prototype to avoid an error. 9284 Use char because int might match the return type of a GCC 9285 builtin and then its argument prototype would still apply. */ 9286#ifdef __cplusplus 9287extern "C" 9288#endif 9289char shl_load (); 9290/* The GNU C library defines this for functions which it implements 9291 to always fail with ENOSYS. Some functions are actually named 9292 something starting with __ and the normal name is an alias. */ 9293#if defined __stub_shl_load || defined __stub___shl_load 9294choke me 9295#endif 9296 9297int 9298main () 9299{ 9300return shl_load (); 9301 ; 9302 return 0; 9303} 9304_ACEOF 9305rm -f conftest.$ac_objext conftest$ac_exeext 9306if { (ac_try="$ac_link" 9307case "(($ac_try" in 9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9309 *) ac_try_echo=$ac_try;; 9310esac 9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9312 (eval "$ac_link") 2>conftest.er1 9313 ac_status=$? 9314 grep -v '^ *+' conftest.er1 >conftest.err 9315 rm -f conftest.er1 9316 cat conftest.err >&5 9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9318 (exit $ac_status); } && { 9319 test -z "$ac_c_werror_flag" || 9320 test ! -s conftest.err 9321 } && test -s conftest$ac_exeext && 9322 $as_test_x conftest$ac_exeext; then 9323 ac_cv_func_shl_load=yes 9324else 9325 echo "$as_me: failed program was:" >&5 9326sed 's/^/| /' conftest.$ac_ext >&5 9327 9328 ac_cv_func_shl_load=no 9329fi 9330 9331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9332 conftest$ac_exeext conftest.$ac_ext 9333fi 9334{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9335echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9336if test $ac_cv_func_shl_load = yes; then 9337 lt_cv_dlopen="shl_load" 9338else 9339 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9340echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9341if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9342 echo $ECHO_N "(cached) $ECHO_C" >&6 9343else 9344 ac_check_lib_save_LIBS=$LIBS 9345LIBS="-ldld $LIBS" 9346cat >conftest.$ac_ext <<_ACEOF 9347/* confdefs.h. */ 9348_ACEOF 9349cat confdefs.h >>conftest.$ac_ext 9350cat >>conftest.$ac_ext <<_ACEOF 9351/* end confdefs.h. */ 9352 9353/* Override any GCC internal prototype to avoid an error. 9354 Use char because int might match the return type of a GCC 9355 builtin and then its argument prototype would still apply. */ 9356#ifdef __cplusplus 9357extern "C" 9358#endif 9359char shl_load (); 9360int 9361main () 9362{ 9363return shl_load (); 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368rm -f conftest.$ac_objext conftest$ac_exeext 9369if { (ac_try="$ac_link" 9370case "(($ac_try" in 9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9372 *) ac_try_echo=$ac_try;; 9373esac 9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9375 (eval "$ac_link") 2>conftest.er1 9376 ac_status=$? 9377 grep -v '^ *+' conftest.er1 >conftest.err 9378 rm -f conftest.er1 9379 cat conftest.err >&5 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } && { 9382 test -z "$ac_c_werror_flag" || 9383 test ! -s conftest.err 9384 } && test -s conftest$ac_exeext && 9385 $as_test_x conftest$ac_exeext; then 9386 ac_cv_lib_dld_shl_load=yes 9387else 9388 echo "$as_me: failed program was:" >&5 9389sed 's/^/| /' conftest.$ac_ext >&5 9390 9391 ac_cv_lib_dld_shl_load=no 9392fi 9393 9394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9395 conftest$ac_exeext conftest.$ac_ext 9396LIBS=$ac_check_lib_save_LIBS 9397fi 9398{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9399echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9400if test $ac_cv_lib_dld_shl_load = yes; then 9401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9402else 9403 { echo "$as_me:$LINENO: checking for dlopen" >&5 9404echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9405if test "${ac_cv_func_dlopen+set}" = set; then 9406 echo $ECHO_N "(cached) $ECHO_C" >&6 9407else 9408 cat >conftest.$ac_ext <<_ACEOF 9409/* confdefs.h. */ 9410_ACEOF 9411cat confdefs.h >>conftest.$ac_ext 9412cat >>conftest.$ac_ext <<_ACEOF 9413/* end confdefs.h. */ 9414/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9415 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9416#define dlopen innocuous_dlopen 9417 9418/* System header to define __stub macros and hopefully few prototypes, 9419 which can conflict with char dlopen (); below. 9420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9421 <limits.h> exists even on freestanding compilers. */ 9422 9423#ifdef __STDC__ 9424# include <limits.h> 9425#else 9426# include <assert.h> 9427#endif 9428 9429#undef dlopen 9430 9431/* Override any GCC internal prototype to avoid an error. 9432 Use char because int might match the return type of a GCC 9433 builtin and then its argument prototype would still apply. */ 9434#ifdef __cplusplus 9435extern "C" 9436#endif 9437char dlopen (); 9438/* The GNU C library defines this for functions which it implements 9439 to always fail with ENOSYS. Some functions are actually named 9440 something starting with __ and the normal name is an alias. */ 9441#if defined __stub_dlopen || defined __stub___dlopen 9442choke me 9443#endif 9444 9445int 9446main () 9447{ 9448return dlopen (); 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453rm -f conftest.$ac_objext conftest$ac_exeext 9454if { (ac_try="$ac_link" 9455case "(($ac_try" in 9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9457 *) ac_try_echo=$ac_try;; 9458esac 9459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9460 (eval "$ac_link") 2>conftest.er1 9461 ac_status=$? 9462 grep -v '^ *+' conftest.er1 >conftest.err 9463 rm -f conftest.er1 9464 cat conftest.err >&5 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9466 (exit $ac_status); } && { 9467 test -z "$ac_c_werror_flag" || 9468 test ! -s conftest.err 9469 } && test -s conftest$ac_exeext && 9470 $as_test_x conftest$ac_exeext; then 9471 ac_cv_func_dlopen=yes 9472else 9473 echo "$as_me: failed program was:" >&5 9474sed 's/^/| /' conftest.$ac_ext >&5 9475 9476 ac_cv_func_dlopen=no 9477fi 9478 9479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9480 conftest$ac_exeext conftest.$ac_ext 9481fi 9482{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9483echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9484if test $ac_cv_func_dlopen = yes; then 9485 lt_cv_dlopen="dlopen" 9486else 9487 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9488echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9489if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9490 echo $ECHO_N "(cached) $ECHO_C" >&6 9491else 9492 ac_check_lib_save_LIBS=$LIBS 9493LIBS="-ldl $LIBS" 9494cat >conftest.$ac_ext <<_ACEOF 9495/* confdefs.h. */ 9496_ACEOF 9497cat confdefs.h >>conftest.$ac_ext 9498cat >>conftest.$ac_ext <<_ACEOF 9499/* end confdefs.h. */ 9500 9501/* Override any GCC internal prototype to avoid an error. 9502 Use char because int might match the return type of a GCC 9503 builtin and then its argument prototype would still apply. */ 9504#ifdef __cplusplus 9505extern "C" 9506#endif 9507char dlopen (); 9508int 9509main () 9510{ 9511return dlopen (); 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516rm -f conftest.$ac_objext conftest$ac_exeext 9517if { (ac_try="$ac_link" 9518case "(($ac_try" in 9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9520 *) ac_try_echo=$ac_try;; 9521esac 9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9523 (eval "$ac_link") 2>conftest.er1 9524 ac_status=$? 9525 grep -v '^ *+' conftest.er1 >conftest.err 9526 rm -f conftest.er1 9527 cat conftest.err >&5 9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9529 (exit $ac_status); } && { 9530 test -z "$ac_c_werror_flag" || 9531 test ! -s conftest.err 9532 } && test -s conftest$ac_exeext && 9533 $as_test_x conftest$ac_exeext; then 9534 ac_cv_lib_dl_dlopen=yes 9535else 9536 echo "$as_me: failed program was:" >&5 9537sed 's/^/| /' conftest.$ac_ext >&5 9538 9539 ac_cv_lib_dl_dlopen=no 9540fi 9541 9542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9543 conftest$ac_exeext conftest.$ac_ext 9544LIBS=$ac_check_lib_save_LIBS 9545fi 9546{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9547echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9548if test $ac_cv_lib_dl_dlopen = yes; then 9549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9550else 9551 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9552echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9553if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9554 echo $ECHO_N "(cached) $ECHO_C" >&6 9555else 9556 ac_check_lib_save_LIBS=$LIBS 9557LIBS="-lsvld $LIBS" 9558cat >conftest.$ac_ext <<_ACEOF 9559/* confdefs.h. */ 9560_ACEOF 9561cat confdefs.h >>conftest.$ac_ext 9562cat >>conftest.$ac_ext <<_ACEOF 9563/* end confdefs.h. */ 9564 9565/* Override any GCC internal prototype to avoid an error. 9566 Use char because int might match the return type of a GCC 9567 builtin and then its argument prototype would still apply. */ 9568#ifdef __cplusplus 9569extern "C" 9570#endif 9571char dlopen (); 9572int 9573main () 9574{ 9575return dlopen (); 9576 ; 9577 return 0; 9578} 9579_ACEOF 9580rm -f conftest.$ac_objext conftest$ac_exeext 9581if { (ac_try="$ac_link" 9582case "(($ac_try" in 9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9584 *) ac_try_echo=$ac_try;; 9585esac 9586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9587 (eval "$ac_link") 2>conftest.er1 9588 ac_status=$? 9589 grep -v '^ *+' conftest.er1 >conftest.err 9590 rm -f conftest.er1 9591 cat conftest.err >&5 9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9593 (exit $ac_status); } && { 9594 test -z "$ac_c_werror_flag" || 9595 test ! -s conftest.err 9596 } && test -s conftest$ac_exeext && 9597 $as_test_x conftest$ac_exeext; then 9598 ac_cv_lib_svld_dlopen=yes 9599else 9600 echo "$as_me: failed program was:" >&5 9601sed 's/^/| /' conftest.$ac_ext >&5 9602 9603 ac_cv_lib_svld_dlopen=no 9604fi 9605 9606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9607 conftest$ac_exeext conftest.$ac_ext 9608LIBS=$ac_check_lib_save_LIBS 9609fi 9610{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9611echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9612if test $ac_cv_lib_svld_dlopen = yes; then 9613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9614else 9615 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9616echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9617if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9618 echo $ECHO_N "(cached) $ECHO_C" >&6 9619else 9620 ac_check_lib_save_LIBS=$LIBS 9621LIBS="-ldld $LIBS" 9622cat >conftest.$ac_ext <<_ACEOF 9623/* confdefs.h. */ 9624_ACEOF 9625cat confdefs.h >>conftest.$ac_ext 9626cat >>conftest.$ac_ext <<_ACEOF 9627/* end confdefs.h. */ 9628 9629/* Override any GCC internal prototype to avoid an error. 9630 Use char because int might match the return type of a GCC 9631 builtin and then its argument prototype would still apply. */ 9632#ifdef __cplusplus 9633extern "C" 9634#endif 9635char dld_link (); 9636int 9637main () 9638{ 9639return dld_link (); 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644rm -f conftest.$ac_objext conftest$ac_exeext 9645if { (ac_try="$ac_link" 9646case "(($ac_try" in 9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9648 *) ac_try_echo=$ac_try;; 9649esac 9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9651 (eval "$ac_link") 2>conftest.er1 9652 ac_status=$? 9653 grep -v '^ *+' conftest.er1 >conftest.err 9654 rm -f conftest.er1 9655 cat conftest.err >&5 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); } && { 9658 test -z "$ac_c_werror_flag" || 9659 test ! -s conftest.err 9660 } && test -s conftest$ac_exeext && 9661 $as_test_x conftest$ac_exeext; then 9662 ac_cv_lib_dld_dld_link=yes 9663else 9664 echo "$as_me: failed program was:" >&5 9665sed 's/^/| /' conftest.$ac_ext >&5 9666 9667 ac_cv_lib_dld_dld_link=no 9668fi 9669 9670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9671 conftest$ac_exeext conftest.$ac_ext 9672LIBS=$ac_check_lib_save_LIBS 9673fi 9674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9675echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9676if test $ac_cv_lib_dld_dld_link = yes; then 9677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9678fi 9679 9680 9681fi 9682 9683 9684fi 9685 9686 9687fi 9688 9689 9690fi 9691 9692 9693fi 9694 9695 ;; 9696 esac 9697 9698 if test "x$lt_cv_dlopen" != xno; then 9699 enable_dlopen=yes 9700 else 9701 enable_dlopen=no 9702 fi 9703 9704 case $lt_cv_dlopen in 9705 dlopen) 9706 save_CPPFLAGS="$CPPFLAGS" 9707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9708 9709 save_LDFLAGS="$LDFLAGS" 9710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9711 9712 save_LIBS="$LIBS" 9713 LIBS="$lt_cv_dlopen_libs $LIBS" 9714 9715 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9716echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9717if test "${lt_cv_dlopen_self+set}" = set; then 9718 echo $ECHO_N "(cached) $ECHO_C" >&6 9719else 9720 if test "$cross_compiling" = yes; then : 9721 lt_cv_dlopen_self=cross 9722else 9723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9724 lt_status=$lt_dlunknown 9725 cat > conftest.$ac_ext <<EOF 9726#line 9726 "configure" 9727#include "confdefs.h" 9728 9729#if HAVE_DLFCN_H 9730#include <dlfcn.h> 9731#endif 9732 9733#include <stdio.h> 9734 9735#ifdef RTLD_GLOBAL 9736# define LT_DLGLOBAL RTLD_GLOBAL 9737#else 9738# ifdef DL_GLOBAL 9739# define LT_DLGLOBAL DL_GLOBAL 9740# else 9741# define LT_DLGLOBAL 0 9742# endif 9743#endif 9744 9745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9746 find out it does not work in some platform. */ 9747#ifndef LT_DLLAZY_OR_NOW 9748# ifdef RTLD_LAZY 9749# define LT_DLLAZY_OR_NOW RTLD_LAZY 9750# else 9751# ifdef DL_LAZY 9752# define LT_DLLAZY_OR_NOW DL_LAZY 9753# else 9754# ifdef RTLD_NOW 9755# define LT_DLLAZY_OR_NOW RTLD_NOW 9756# else 9757# ifdef DL_NOW 9758# define LT_DLLAZY_OR_NOW DL_NOW 9759# else 9760# define LT_DLLAZY_OR_NOW 0 9761# endif 9762# endif 9763# endif 9764# endif 9765#endif 9766 9767#ifdef __cplusplus 9768extern "C" void exit (int); 9769#endif 9770 9771void fnord() { int i=42;} 9772int main () 9773{ 9774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9775 int status = $lt_dlunknown; 9776 9777 if (self) 9778 { 9779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9780 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9781 /* dlclose (self); */ 9782 } 9783 else 9784 puts (dlerror ()); 9785 9786 exit (status); 9787} 9788EOF 9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9790 (eval $ac_link) 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9794 (./conftest; exit; ) >&5 2>/dev/null 9795 lt_status=$? 9796 case x$lt_status in 9797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9799 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9800 esac 9801 else : 9802 # compilation failed 9803 lt_cv_dlopen_self=no 9804 fi 9805fi 9806rm -fr conftest* 9807 9808 9809fi 9810{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9811echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9812 9813 if test "x$lt_cv_dlopen_self" = xyes; then 9814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9815 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9816echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9817if test "${lt_cv_dlopen_self_static+set}" = set; then 9818 echo $ECHO_N "(cached) $ECHO_C" >&6 9819else 9820 if test "$cross_compiling" = yes; then : 9821 lt_cv_dlopen_self_static=cross 9822else 9823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9824 lt_status=$lt_dlunknown 9825 cat > conftest.$ac_ext <<EOF 9826#line 9826 "configure" 9827#include "confdefs.h" 9828 9829#if HAVE_DLFCN_H 9830#include <dlfcn.h> 9831#endif 9832 9833#include <stdio.h> 9834 9835#ifdef RTLD_GLOBAL 9836# define LT_DLGLOBAL RTLD_GLOBAL 9837#else 9838# ifdef DL_GLOBAL 9839# define LT_DLGLOBAL DL_GLOBAL 9840# else 9841# define LT_DLGLOBAL 0 9842# endif 9843#endif 9844 9845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9846 find out it does not work in some platform. */ 9847#ifndef LT_DLLAZY_OR_NOW 9848# ifdef RTLD_LAZY 9849# define LT_DLLAZY_OR_NOW RTLD_LAZY 9850# else 9851# ifdef DL_LAZY 9852# define LT_DLLAZY_OR_NOW DL_LAZY 9853# else 9854# ifdef RTLD_NOW 9855# define LT_DLLAZY_OR_NOW RTLD_NOW 9856# else 9857# ifdef DL_NOW 9858# define LT_DLLAZY_OR_NOW DL_NOW 9859# else 9860# define LT_DLLAZY_OR_NOW 0 9861# endif 9862# endif 9863# endif 9864# endif 9865#endif 9866 9867#ifdef __cplusplus 9868extern "C" void exit (int); 9869#endif 9870 9871void fnord() { int i=42;} 9872int main () 9873{ 9874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9875 int status = $lt_dlunknown; 9876 9877 if (self) 9878 { 9879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9881 /* dlclose (self); */ 9882 } 9883 else 9884 puts (dlerror ()); 9885 9886 exit (status); 9887} 9888EOF 9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9890 (eval $ac_link) 2>&5 9891 ac_status=$? 9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9894 (./conftest; exit; ) >&5 2>/dev/null 9895 lt_status=$? 9896 case x$lt_status in 9897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9899 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9900 esac 9901 else : 9902 # compilation failed 9903 lt_cv_dlopen_self_static=no 9904 fi 9905fi 9906rm -fr conftest* 9907 9908 9909fi 9910{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9911echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9912 fi 9913 9914 CPPFLAGS="$save_CPPFLAGS" 9915 LDFLAGS="$save_LDFLAGS" 9916 LIBS="$save_LIBS" 9917 ;; 9918 esac 9919 9920 case $lt_cv_dlopen_self in 9921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9922 *) enable_dlopen_self=unknown ;; 9923 esac 9924 9925 case $lt_cv_dlopen_self_static in 9926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9927 *) enable_dlopen_self_static=unknown ;; 9928 esac 9929fi 9930 9931 9932# Report which library types will actually be built 9933{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9934echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9935{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9936echo "${ECHO_T}$can_build_shared" >&6; } 9937 9938{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9939echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9940test "$can_build_shared" = "no" && enable_shared=no 9941 9942# On AIX, shared libraries and static libraries use the same namespace, and 9943# are all built from PIC. 9944case $host_os in 9945aix3*) 9946 test "$enable_shared" = yes && enable_static=no 9947 if test -n "$RANLIB"; then 9948 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9949 postinstall_cmds='$RANLIB $lib' 9950 fi 9951 ;; 9952 9953aix4* | aix5*) 9954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9955 test "$enable_shared" = yes && enable_static=no 9956 fi 9957 ;; 9958esac 9959{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9960echo "${ECHO_T}$enable_shared" >&6; } 9961 9962{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9963echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9964# Make sure either enable_shared or enable_static is yes. 9965test "$enable_shared" = yes || enable_static=yes 9966{ echo "$as_me:$LINENO: result: $enable_static" >&5 9967echo "${ECHO_T}$enable_static" >&6; } 9968 9969# The else clause should only fire when bootstrapping the 9970# libtool distribution, otherwise you forgot to ship ltmain.sh 9971# with your package, and you will get complaints that there are 9972# no rules to generate ltmain.sh. 9973if test -f "$ltmain"; then 9974 # See if we are running on zsh, and set the options which allow our commands through 9975 # without removal of \ escapes. 9976 if test -n "${ZSH_VERSION+set}" ; then 9977 setopt NO_GLOB_SUBST 9978 fi 9979 # Now quote all the things that may contain metacharacters while being 9980 # careful not to overquote the AC_SUBSTed values. We take copies of the 9981 # variables and quote the copies for generation of the libtool script. 9982 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9983 SED SHELL STRIP \ 9984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9986 deplibs_check_method reload_flag reload_cmds need_locks \ 9987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9988 lt_cv_sys_global_symbol_to_c_name_address \ 9989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9990 old_postinstall_cmds old_postuninstall_cmds \ 9991 compiler \ 9992 CC \ 9993 LD \ 9994 lt_prog_compiler_wl \ 9995 lt_prog_compiler_pic \ 9996 lt_prog_compiler_static \ 9997 lt_prog_compiler_no_builtin_flag \ 9998 export_dynamic_flag_spec \ 9999 thread_safe_flag_spec \ 10000 whole_archive_flag_spec \ 10001 enable_shared_with_static_runtimes \ 10002 old_archive_cmds \ 10003 old_archive_from_new_cmds \ 10004 predep_objects \ 10005 postdep_objects \ 10006 predeps \ 10007 postdeps \ 10008 compiler_lib_search_path \ 10009 archive_cmds \ 10010 archive_expsym_cmds \ 10011 postinstall_cmds \ 10012 postuninstall_cmds \ 10013 old_archive_from_expsyms_cmds \ 10014 allow_undefined_flag \ 10015 no_undefined_flag \ 10016 export_symbols_cmds \ 10017 hardcode_libdir_flag_spec \ 10018 hardcode_libdir_flag_spec_ld \ 10019 hardcode_libdir_separator \ 10020 hardcode_automatic \ 10021 module_cmds \ 10022 module_expsym_cmds \ 10023 lt_cv_prog_compiler_c_o \ 10024 exclude_expsyms \ 10025 include_expsyms; do 10026 10027 case $var in 10028 old_archive_cmds | \ 10029 old_archive_from_new_cmds | \ 10030 archive_cmds | \ 10031 archive_expsym_cmds | \ 10032 module_cmds | \ 10033 module_expsym_cmds | \ 10034 old_archive_from_expsyms_cmds | \ 10035 export_symbols_cmds | \ 10036 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10037 postinstall_cmds | postuninstall_cmds | \ 10038 old_postinstall_cmds | old_postuninstall_cmds | \ 10039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10040 # Double-quote double-evaled strings. 10041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10042 ;; 10043 *) 10044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10045 ;; 10046 esac 10047 done 10048 10049 case $lt_echo in 10050 *'\$0 --fallback-echo"') 10051 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10052 ;; 10053 esac 10054 10055cfgfile="${ofile}T" 10056 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10057 $rm -f "$cfgfile" 10058 { echo "$as_me:$LINENO: creating $ofile" >&5 10059echo "$as_me: creating $ofile" >&6;} 10060 10061 cat <<__EOF__ >> "$cfgfile" 10062#! $SHELL 10063 10064# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10065# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10066# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10067# 10068# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10069# Free Software Foundation, Inc. 10070# 10071# This file is part of GNU Libtool: 10072# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10073# 10074# This program is free software; you can redistribute it and/or modify 10075# it under the terms of the GNU General Public License as published by 10076# the Free Software Foundation; either version 2 of the License, or 10077# (at your option) any later version. 10078# 10079# This program is distributed in the hope that it will be useful, but 10080# WITHOUT ANY WARRANTY; without even the implied warranty of 10081# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10082# General Public License for more details. 10083# 10084# You should have received a copy of the GNU General Public License 10085# along with this program; if not, write to the Free Software 10086# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10087# 10088# As a special exception to the GNU General Public License, if you 10089# distribute this file as part of a program that contains a 10090# configuration script generated by Autoconf, you may include it under 10091# the same distribution terms that you use for the rest of that program. 10092 10093# A sed program that does not truncate output. 10094SED=$lt_SED 10095 10096# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10097Xsed="$SED -e 1s/^X//" 10098 10099# The HP-UX ksh and POSIX shell print the target directory to stdout 10100# if CDPATH is set. 10101(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10102 10103# The names of the tagged configurations supported by this script. 10104available_tags= 10105 10106# ### BEGIN LIBTOOL CONFIG 10107 10108# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10109 10110# Shell to use when invoking shell scripts. 10111SHELL=$lt_SHELL 10112 10113# Whether or not to build shared libraries. 10114build_libtool_libs=$enable_shared 10115 10116# Whether or not to build static libraries. 10117build_old_libs=$enable_static 10118 10119# Whether or not to add -lc for building shared libraries. 10120build_libtool_need_lc=$archive_cmds_need_lc 10121 10122# Whether or not to disallow shared libs when runtime libs are static 10123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10124 10125# Whether or not to optimize for fast installation. 10126fast_install=$enable_fast_install 10127 10128# The host system. 10129host_alias=$host_alias 10130host=$host 10131host_os=$host_os 10132 10133# The build system. 10134build_alias=$build_alias 10135build=$build 10136build_os=$build_os 10137 10138# An echo program that does not interpret backslashes. 10139echo=$lt_echo 10140 10141# The archiver. 10142AR=$lt_AR 10143AR_FLAGS=$lt_AR_FLAGS 10144 10145# A C compiler. 10146LTCC=$lt_LTCC 10147 10148# LTCC compiler flags. 10149LTCFLAGS=$lt_LTCFLAGS 10150 10151# A language-specific compiler. 10152CC=$lt_compiler 10153 10154# Is the compiler the GNU C compiler? 10155with_gcc=$GCC 10156 10157# An ERE matcher. 10158EGREP=$lt_EGREP 10159 10160# The linker used to build libraries. 10161LD=$lt_LD 10162 10163# Whether we need hard or soft links. 10164LN_S=$lt_LN_S 10165 10166# A BSD-compatible nm program. 10167NM=$lt_NM 10168 10169# A symbol stripping program 10170STRIP=$lt_STRIP 10171 10172# Used to examine libraries when file_magic_cmd begins "file" 10173MAGIC_CMD=$MAGIC_CMD 10174 10175# Used on cygwin: DLL creation program. 10176DLLTOOL="$DLLTOOL" 10177 10178# Used on cygwin: object dumper. 10179OBJDUMP="$OBJDUMP" 10180 10181# Used on cygwin: assembler. 10182AS="$AS" 10183 10184# The name of the directory that contains temporary libtool files. 10185objdir=$objdir 10186 10187# How to create reloadable object files. 10188reload_flag=$lt_reload_flag 10189reload_cmds=$lt_reload_cmds 10190 10191# How to pass a linker flag through the compiler. 10192wl=$lt_lt_prog_compiler_wl 10193 10194# Object file suffix (normally "o"). 10195objext="$ac_objext" 10196 10197# Old archive suffix (normally "a"). 10198libext="$libext" 10199 10200# Shared library suffix (normally ".so"). 10201shrext_cmds='$shrext_cmds' 10202 10203# Executable file suffix (normally ""). 10204exeext="$exeext" 10205 10206# Additional compiler flags for building library objects. 10207pic_flag=$lt_lt_prog_compiler_pic 10208pic_mode=$pic_mode 10209 10210# What is the maximum length of a command? 10211max_cmd_len=$lt_cv_sys_max_cmd_len 10212 10213# Does compiler simultaneously support -c and -o options? 10214compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10215 10216# Must we lock files when doing compilation? 10217need_locks=$lt_need_locks 10218 10219# Do we need the lib prefix for modules? 10220need_lib_prefix=$need_lib_prefix 10221 10222# Do we need a version for libraries? 10223need_version=$need_version 10224 10225# Whether dlopen is supported. 10226dlopen_support=$enable_dlopen 10227 10228# Whether dlopen of programs is supported. 10229dlopen_self=$enable_dlopen_self 10230 10231# Whether dlopen of statically linked programs is supported. 10232dlopen_self_static=$enable_dlopen_self_static 10233 10234# Compiler flag to prevent dynamic linking. 10235link_static_flag=$lt_lt_prog_compiler_static 10236 10237# Compiler flag to turn off builtin functions. 10238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10239 10240# Compiler flag to allow reflexive dlopens. 10241export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10242 10243# Compiler flag to generate shared objects directly from archives. 10244whole_archive_flag_spec=$lt_whole_archive_flag_spec 10245 10246# Compiler flag to generate thread-safe objects. 10247thread_safe_flag_spec=$lt_thread_safe_flag_spec 10248 10249# Library versioning type. 10250version_type=$version_type 10251 10252# Format of library name prefix. 10253libname_spec=$lt_libname_spec 10254 10255# List of archive names. First name is the real one, the rest are links. 10256# The last name is the one that the linker finds with -lNAME. 10257library_names_spec=$lt_library_names_spec 10258 10259# The coded name of the library, if different from the real name. 10260soname_spec=$lt_soname_spec 10261 10262# Commands used to build and install an old-style archive. 10263RANLIB=$lt_RANLIB 10264old_archive_cmds=$lt_old_archive_cmds 10265old_postinstall_cmds=$lt_old_postinstall_cmds 10266old_postuninstall_cmds=$lt_old_postuninstall_cmds 10267 10268# Create an old-style archive from a shared archive. 10269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10270 10271# Create a temporary old-style archive to link instead of a shared archive. 10272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10273 10274# Commands used to build and install a shared archive. 10275archive_cmds=$lt_archive_cmds 10276archive_expsym_cmds=$lt_archive_expsym_cmds 10277postinstall_cmds=$lt_postinstall_cmds 10278postuninstall_cmds=$lt_postuninstall_cmds 10279 10280# Commands used to build a loadable module (assumed same as above if empty) 10281module_cmds=$lt_module_cmds 10282module_expsym_cmds=$lt_module_expsym_cmds 10283 10284# Commands to strip libraries. 10285old_striplib=$lt_old_striplib 10286striplib=$lt_striplib 10287 10288# Dependencies to place before the objects being linked to create a 10289# shared library. 10290predep_objects=$lt_predep_objects 10291 10292# Dependencies to place after the objects being linked to create a 10293# shared library. 10294postdep_objects=$lt_postdep_objects 10295 10296# Dependencies to place before the objects being linked to create a 10297# shared library. 10298predeps=$lt_predeps 10299 10300# Dependencies to place after the objects being linked to create a 10301# shared library. 10302postdeps=$lt_postdeps 10303 10304# The library search path used internally by the compiler when linking 10305# a shared library. 10306compiler_lib_search_path=$lt_compiler_lib_search_path 10307 10308# Method to check whether dependent libraries are shared objects. 10309deplibs_check_method=$lt_deplibs_check_method 10310 10311# Command to use when deplibs_check_method == file_magic. 10312file_magic_cmd=$lt_file_magic_cmd 10313 10314# Flag that allows shared libraries with undefined symbols to be built. 10315allow_undefined_flag=$lt_allow_undefined_flag 10316 10317# Flag that forces no undefined symbols. 10318no_undefined_flag=$lt_no_undefined_flag 10319 10320# Commands used to finish a libtool library installation in a directory. 10321finish_cmds=$lt_finish_cmds 10322 10323# Same as above, but a single script fragment to be evaled but not shown. 10324finish_eval=$lt_finish_eval 10325 10326# Take the output of nm and produce a listing of raw symbols and C names. 10327global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10328 10329# Transform the output of nm in a proper C declaration 10330global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10331 10332# Transform the output of nm in a C name address pair 10333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10334 10335# This is the shared library runtime path variable. 10336runpath_var=$runpath_var 10337 10338# This is the shared library path variable. 10339shlibpath_var=$shlibpath_var 10340 10341# Is shlibpath searched before the hard-coded library search path? 10342shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10343 10344# How to hardcode a shared library path into an executable. 10345hardcode_action=$hardcode_action 10346 10347# Whether we should hardcode library paths into libraries. 10348hardcode_into_libs=$hardcode_into_libs 10349 10350# Flag to hardcode \$libdir into a binary during linking. 10351# This must work even if \$libdir does not exist. 10352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10353 10354# If ld is used when linking, flag to hardcode \$libdir into 10355# a binary during linking. This must work even if \$libdir does 10356# not exist. 10357hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10358 10359# Whether we need a single -rpath flag with a separated argument. 10360hardcode_libdir_separator=$lt_hardcode_libdir_separator 10361 10362# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10363# resulting binary. 10364hardcode_direct=$hardcode_direct 10365 10366# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10367# resulting binary. 10368hardcode_minus_L=$hardcode_minus_L 10369 10370# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10371# the resulting binary. 10372hardcode_shlibpath_var=$hardcode_shlibpath_var 10373 10374# Set to yes if building a shared library automatically hardcodes DIR into the library 10375# and all subsequent libraries and executables linked against it. 10376hardcode_automatic=$hardcode_automatic 10377 10378# Variables whose values should be saved in libtool wrapper scripts and 10379# restored at relink time. 10380variables_saved_for_relink="$variables_saved_for_relink" 10381 10382# Whether libtool must link a program against all its dependency libraries. 10383link_all_deplibs=$link_all_deplibs 10384 10385# Compile-time system search path for libraries 10386sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10387 10388# Run-time system search path for libraries 10389sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10390 10391# Fix the shell variable \$srcfile for the compiler. 10392fix_srcfile_path="$fix_srcfile_path" 10393 10394# Set to yes if exported symbols are required. 10395always_export_symbols=$always_export_symbols 10396 10397# The commands to list exported symbols. 10398export_symbols_cmds=$lt_export_symbols_cmds 10399 10400# The commands to extract the exported symbol list from a shared archive. 10401extract_expsyms_cmds=$lt_extract_expsyms_cmds 10402 10403# Symbols that should not be listed in the preloaded symbols. 10404exclude_expsyms=$lt_exclude_expsyms 10405 10406# Symbols that must always be exported. 10407include_expsyms=$lt_include_expsyms 10408 10409# ### END LIBTOOL CONFIG 10410 10411__EOF__ 10412 10413 10414 case $host_os in 10415 aix3*) 10416 cat <<\EOF >> "$cfgfile" 10417 10418# AIX sometimes has problems with the GCC collect2 program. For some 10419# reason, if we set the COLLECT_NAMES environment variable, the problems 10420# vanish in a puff of smoke. 10421if test "X${COLLECT_NAMES+set}" != Xset; then 10422 COLLECT_NAMES= 10423 export COLLECT_NAMES 10424fi 10425EOF 10426 ;; 10427 esac 10428 10429 # We use sed instead of cat because bash on DJGPP gets confused if 10430 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10431 # text mode, it properly converts lines to CR/LF. This bash problem 10432 # is reportedly fixed, but why not run on old versions too? 10433 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10434 10435 mv -f "$cfgfile" "$ofile" || \ 10436 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10437 chmod +x "$ofile" 10438 10439else 10440 # If there is no Makefile yet, we rely on a make rule to execute 10441 # `config.status --recheck' to rerun these tests and create the 10442 # libtool script then. 10443 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10444 if test -f "$ltmain_in"; then 10445 test -f Makefile && make "$ltmain" 10446 fi 10447fi 10448 10449 10450ac_ext=c 10451ac_cpp='$CPP $CPPFLAGS' 10452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10454ac_compiler_gnu=$ac_cv_c_compiler_gnu 10455 10456CC="$lt_save_CC" 10457 10458 10459# Check whether --with-tags was given. 10460if test "${with_tags+set}" = set; then 10461 withval=$with_tags; tagnames="$withval" 10462fi 10463 10464 10465if test -f "$ltmain" && test -n "$tagnames"; then 10466 if test ! -f "${ofile}"; then 10467 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10468echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10469 fi 10470 10471 if test -z "$LTCC"; then 10472 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10473 if test -z "$LTCC"; then 10474 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10475echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10476 else 10477 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10478echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10479 fi 10480 fi 10481 if test -z "$LTCFLAGS"; then 10482 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10483 fi 10484 10485 # Extract list of available tagged configurations in $ofile. 10486 # Note that this assumes the entire list is on one line. 10487 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10488 10489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10490 for tagname in $tagnames; do 10491 IFS="$lt_save_ifs" 10492 # Check whether tagname contains only valid characters 10493 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10494 "") ;; 10495 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10496echo "$as_me: error: invalid tag name: $tagname" >&2;} 10497 { (exit 1); exit 1; }; } 10498 ;; 10499 esac 10500 10501 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10502 then 10503 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10504echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10505 { (exit 1); exit 1; }; } 10506 fi 10507 10508 # Update the list of available tags. 10509 if test -n "$tagname"; then 10510 echo appending configuration tag \"$tagname\" to $ofile 10511 10512 case $tagname in 10513 CXX) 10514 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10515 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10516 (test "X$CXX" != "Xg++"))) ; then 10517 ac_ext=cpp 10518ac_cpp='$CXXCPP $CPPFLAGS' 10519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10522 10523 10524 10525 10526archive_cmds_need_lc_CXX=no 10527allow_undefined_flag_CXX= 10528always_export_symbols_CXX=no 10529archive_expsym_cmds_CXX= 10530export_dynamic_flag_spec_CXX= 10531hardcode_direct_CXX=no 10532hardcode_libdir_flag_spec_CXX= 10533hardcode_libdir_flag_spec_ld_CXX= 10534hardcode_libdir_separator_CXX= 10535hardcode_minus_L_CXX=no 10536hardcode_shlibpath_var_CXX=unsupported 10537hardcode_automatic_CXX=no 10538module_cmds_CXX= 10539module_expsym_cmds_CXX= 10540link_all_deplibs_CXX=unknown 10541old_archive_cmds_CXX=$old_archive_cmds 10542no_undefined_flag_CXX= 10543whole_archive_flag_spec_CXX= 10544enable_shared_with_static_runtimes_CXX=no 10545 10546# Dependencies to place before and after the object being linked: 10547predep_objects_CXX= 10548postdep_objects_CXX= 10549predeps_CXX= 10550postdeps_CXX= 10551compiler_lib_search_path_CXX= 10552 10553# Source file extension for C++ test sources. 10554ac_ext=cpp 10555 10556# Object file extension for compiled C++ test sources. 10557objext=o 10558objext_CXX=$objext 10559 10560# Code to be used in simple compile tests 10561lt_simple_compile_test_code="int some_variable = 0;\n" 10562 10563# Code to be used in simple link tests 10564lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10565 10566# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10567 10568# If no C compiler was specified, use CC. 10569LTCC=${LTCC-"$CC"} 10570 10571# If no C compiler flags were specified, use CFLAGS. 10572LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10573 10574# Allow CC to be a program name with arguments. 10575compiler=$CC 10576 10577 10578# save warnings/boilerplate of simple test code 10579ac_outfile=conftest.$ac_objext 10580printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10581eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10582_lt_compiler_boilerplate=`cat conftest.err` 10583$rm conftest* 10584 10585ac_outfile=conftest.$ac_objext 10586printf "$lt_simple_link_test_code" >conftest.$ac_ext 10587eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10588_lt_linker_boilerplate=`cat conftest.err` 10589$rm conftest* 10590 10591 10592# Allow CC to be a program name with arguments. 10593lt_save_CC=$CC 10594lt_save_LD=$LD 10595lt_save_GCC=$GCC 10596GCC=$GXX 10597lt_save_with_gnu_ld=$with_gnu_ld 10598lt_save_path_LD=$lt_cv_path_LD 10599if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10600 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10601else 10602 $as_unset lt_cv_prog_gnu_ld 10603fi 10604if test -n "${lt_cv_path_LDCXX+set}"; then 10605 lt_cv_path_LD=$lt_cv_path_LDCXX 10606else 10607 $as_unset lt_cv_path_LD 10608fi 10609test -z "${LDCXX+set}" || LD=$LDCXX 10610CC=${CXX-"c++"} 10611compiler=$CC 10612compiler_CXX=$CC 10613for cc_temp in $compiler""; do 10614 case $cc_temp in 10615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10617 \-*) ;; 10618 *) break;; 10619 esac 10620done 10621cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10622 10623 10624# We don't want -fno-exception wen compiling C++ code, so set the 10625# no_builtin_flag separately 10626if test "$GXX" = yes; then 10627 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10628else 10629 lt_prog_compiler_no_builtin_flag_CXX= 10630fi 10631 10632if test "$GXX" = yes; then 10633 # Set up default GNU C++ configuration 10634 10635 10636# Check whether --with-gnu-ld was given. 10637if test "${with_gnu_ld+set}" = set; then 10638 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10639else 10640 with_gnu_ld=no 10641fi 10642 10643ac_prog=ld 10644if test "$GCC" = yes; then 10645 # Check if gcc -print-prog-name=ld gives a path. 10646 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10647echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10648 case $host in 10649 *-*-mingw*) 10650 # gcc leaves a trailing carriage return which upsets mingw 10651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10652 *) 10653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10654 esac 10655 case $ac_prog in 10656 # Accept absolute paths. 10657 [\\/]* | ?:[\\/]*) 10658 re_direlt='/[^/][^/]*/\.\./' 10659 # Canonicalize the pathname of ld 10660 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10662 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10663 done 10664 test -z "$LD" && LD="$ac_prog" 10665 ;; 10666 "") 10667 # If it fails, then pretend we aren't using GCC. 10668 ac_prog=ld 10669 ;; 10670 *) 10671 # If it is relative, then search for the first ld in PATH. 10672 with_gnu_ld=unknown 10673 ;; 10674 esac 10675elif test "$with_gnu_ld" = yes; then 10676 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10677echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10678else 10679 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10680echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10681fi 10682if test "${lt_cv_path_LD+set}" = set; then 10683 echo $ECHO_N "(cached) $ECHO_C" >&6 10684else 10685 if test -z "$LD"; then 10686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10687 for ac_dir in $PATH; do 10688 IFS="$lt_save_ifs" 10689 test -z "$ac_dir" && ac_dir=. 10690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10691 lt_cv_path_LD="$ac_dir/$ac_prog" 10692 # Check to see if the program is GNU ld. I'd rather use --version, 10693 # but apparently some variants of GNU ld only accept -v. 10694 # Break only if it was the GNU/non-GNU ld that we prefer. 10695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10696 *GNU* | *'with BFD'*) 10697 test "$with_gnu_ld" != no && break 10698 ;; 10699 *) 10700 test "$with_gnu_ld" != yes && break 10701 ;; 10702 esac 10703 fi 10704 done 10705 IFS="$lt_save_ifs" 10706else 10707 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10708fi 10709fi 10710 10711LD="$lt_cv_path_LD" 10712if test -n "$LD"; then 10713 { echo "$as_me:$LINENO: result: $LD" >&5 10714echo "${ECHO_T}$LD" >&6; } 10715else 10716 { echo "$as_me:$LINENO: result: no" >&5 10717echo "${ECHO_T}no" >&6; } 10718fi 10719test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10720echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10721 { (exit 1); exit 1; }; } 10722{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10723echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10724if test "${lt_cv_prog_gnu_ld+set}" = set; then 10725 echo $ECHO_N "(cached) $ECHO_C" >&6 10726else 10727 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10728case `$LD -v 2>&1 </dev/null` in 10729*GNU* | *'with BFD'*) 10730 lt_cv_prog_gnu_ld=yes 10731 ;; 10732*) 10733 lt_cv_prog_gnu_ld=no 10734 ;; 10735esac 10736fi 10737{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10738echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10739with_gnu_ld=$lt_cv_prog_gnu_ld 10740 10741 10742 10743 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10744 # archiving commands below assume that GNU ld is being used. 10745 if test "$with_gnu_ld" = yes; then 10746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10747 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' 10748 10749 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10751 10752 # If archive_cmds runs LD, not CC, wlarc should be empty 10753 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10754 # investigate it a little bit more. (MM) 10755 wlarc='${wl}' 10756 10757 # ancient GNU ld didn't support --whole-archive et. al. 10758 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10759 grep 'no-whole-archive' > /dev/null; then 10760 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10761 else 10762 whole_archive_flag_spec_CXX= 10763 fi 10764 else 10765 with_gnu_ld=no 10766 wlarc= 10767 10768 # A generic and very simple default shared library creation 10769 # command for GNU C++ for the case where it uses the native 10770 # linker, instead of GNU ld. If possible, this setting should 10771 # overridden to take advantage of the native linker features on 10772 # the platform it is being used on. 10773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10774 fi 10775 10776 # Commands to make compiler produce verbose output that lists 10777 # what "hidden" libraries, object files and flags are used when 10778 # linking a shared library. 10779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10780 10781else 10782 GXX=no 10783 with_gnu_ld=no 10784 wlarc= 10785fi 10786 10787# PORTME: fill in a description of your system's C++ link characteristics 10788{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10789echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10790ld_shlibs_CXX=yes 10791case $host_os in 10792 aix3*) 10793 # FIXME: insert proper C++ library support 10794 ld_shlibs_CXX=no 10795 ;; 10796 aix4* | aix5*) 10797 if test "$host_cpu" = ia64; then 10798 # On IA64, the linker does run time linking by default, so we don't 10799 # have to do anything special. 10800 aix_use_runtimelinking=no 10801 exp_sym_flag='-Bexport' 10802 no_entry_flag="" 10803 else 10804 aix_use_runtimelinking=no 10805 10806 # Test if we are trying to use run time linking or normal 10807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10808 # need to do runtime linking. 10809 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10810 for ld_flag in $LDFLAGS; do 10811 case $ld_flag in 10812 *-brtl*) 10813 aix_use_runtimelinking=yes 10814 break 10815 ;; 10816 esac 10817 done 10818 ;; 10819 esac 10820 10821 exp_sym_flag='-bexport' 10822 no_entry_flag='-bnoentry' 10823 fi 10824 10825 # When large executables or shared objects are built, AIX ld can 10826 # have problems creating the table of contents. If linking a library 10827 # or program results in "error TOC overflow" add -mminimal-toc to 10828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10830 10831 archive_cmds_CXX='' 10832 hardcode_direct_CXX=yes 10833 hardcode_libdir_separator_CXX=':' 10834 link_all_deplibs_CXX=yes 10835 10836 if test "$GXX" = yes; then 10837 case $host_os in aix4.[012]|aix4.[012].*) 10838 # We only want to do this on AIX 4.2 and lower, the check 10839 # below for broken collect2 doesn't work under 4.3+ 10840 collect2name=`${CC} -print-prog-name=collect2` 10841 if test -f "$collect2name" && \ 10842 strings "$collect2name" | grep resolve_lib_name >/dev/null 10843 then 10844 # We have reworked collect2 10845 hardcode_direct_CXX=yes 10846 else 10847 # We have old collect2 10848 hardcode_direct_CXX=unsupported 10849 # It fails to find uninstalled libraries when the uninstalled 10850 # path is not listed in the libpath. Setting hardcode_minus_L 10851 # to unsupported forces relinking 10852 hardcode_minus_L_CXX=yes 10853 hardcode_libdir_flag_spec_CXX='-L$libdir' 10854 hardcode_libdir_separator_CXX= 10855 fi 10856 ;; 10857 esac 10858 shared_flag='-shared' 10859 if test "$aix_use_runtimelinking" = yes; then 10860 shared_flag="$shared_flag "'${wl}-G' 10861 fi 10862 else 10863 # not using gcc 10864 if test "$host_cpu" = ia64; then 10865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10866 # chokes on -Wl,-G. The following line is correct: 10867 shared_flag='-G' 10868 else 10869 if test "$aix_use_runtimelinking" = yes; then 10870 shared_flag='${wl}-G' 10871 else 10872 shared_flag='${wl}-bM:SRE' 10873 fi 10874 fi 10875 fi 10876 10877 # It seems that -bexpall does not export symbols beginning with 10878 # underscore (_), so it is better to generate a list of symbols to export. 10879 always_export_symbols_CXX=yes 10880 if test "$aix_use_runtimelinking" = yes; then 10881 # Warning - without using the other runtime loading flags (-brtl), 10882 # -berok will link without error, but may produce a broken library. 10883 allow_undefined_flag_CXX='-berok' 10884 # Determine the default libpath from the value encoded in an empty executable. 10885 cat >conftest.$ac_ext <<_ACEOF 10886/* confdefs.h. */ 10887_ACEOF 10888cat confdefs.h >>conftest.$ac_ext 10889cat >>conftest.$ac_ext <<_ACEOF 10890/* end confdefs.h. */ 10891 10892int 10893main () 10894{ 10895 10896 ; 10897 return 0; 10898} 10899_ACEOF 10900rm -f conftest.$ac_objext conftest$ac_exeext 10901if { (ac_try="$ac_link" 10902case "(($ac_try" in 10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10904 *) ac_try_echo=$ac_try;; 10905esac 10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10907 (eval "$ac_link") 2>conftest.er1 10908 ac_status=$? 10909 grep -v '^ *+' conftest.er1 >conftest.err 10910 rm -f conftest.er1 10911 cat conftest.err >&5 10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10913 (exit $ac_status); } && { 10914 test -z "$ac_cxx_werror_flag" || 10915 test ! -s conftest.err 10916 } && test -s conftest$ac_exeext && 10917 $as_test_x conftest$ac_exeext; then 10918 10919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10920}'` 10921# Check for a 64-bit object if we didn't find anything. 10922if 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; } 10923}'`; fi 10924else 10925 echo "$as_me: failed program was:" >&5 10926sed 's/^/| /' conftest.$ac_ext >&5 10927 10928 10929fi 10930 10931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10932 conftest$ac_exeext conftest.$ac_ext 10933if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10934 10935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10936 10937 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" 10938 else 10939 if test "$host_cpu" = ia64; then 10940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10941 allow_undefined_flag_CXX="-z nodefs" 10942 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" 10943 else 10944 # Determine the default libpath from the value encoded in an empty executable. 10945 cat >conftest.$ac_ext <<_ACEOF 10946/* confdefs.h. */ 10947_ACEOF 10948cat confdefs.h >>conftest.$ac_ext 10949cat >>conftest.$ac_ext <<_ACEOF 10950/* end confdefs.h. */ 10951 10952int 10953main () 10954{ 10955 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960rm -f conftest.$ac_objext conftest$ac_exeext 10961if { (ac_try="$ac_link" 10962case "(($ac_try" in 10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10964 *) ac_try_echo=$ac_try;; 10965esac 10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10967 (eval "$ac_link") 2>conftest.er1 10968 ac_status=$? 10969 grep -v '^ *+' conftest.er1 >conftest.err 10970 rm -f conftest.er1 10971 cat conftest.err >&5 10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10973 (exit $ac_status); } && { 10974 test -z "$ac_cxx_werror_flag" || 10975 test ! -s conftest.err 10976 } && test -s conftest$ac_exeext && 10977 $as_test_x conftest$ac_exeext; then 10978 10979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10980}'` 10981# Check for a 64-bit object if we didn't find anything. 10982if 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; } 10983}'`; fi 10984else 10985 echo "$as_me: failed program was:" >&5 10986sed 's/^/| /' conftest.$ac_ext >&5 10987 10988 10989fi 10990 10991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10992 conftest$ac_exeext conftest.$ac_ext 10993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10994 10995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10996 # Warning - without using the other run time loading flags, 10997 # -berok will link without error, but may produce a broken library. 10998 no_undefined_flag_CXX=' ${wl}-bernotok' 10999 allow_undefined_flag_CXX=' ${wl}-berok' 11000 # Exported symbols can be pulled into shared objects from archives 11001 whole_archive_flag_spec_CXX='$convenience' 11002 archive_cmds_need_lc_CXX=yes 11003 # This is similar to how AIX traditionally builds its shared libraries. 11004 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' 11005 fi 11006 fi 11007 ;; 11008 11009 beos*) 11010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11011 allow_undefined_flag_CXX=unsupported 11012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11013 # support --undefined. This deserves some investigation. FIXME 11014 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11015 else 11016 ld_shlibs_CXX=no 11017 fi 11018 ;; 11019 11020 chorus*) 11021 case $cc_basename in 11022 *) 11023 # FIXME: insert proper C++ library support 11024 ld_shlibs_CXX=no 11025 ;; 11026 esac 11027 ;; 11028 11029 cygwin* | mingw* | pw32*) 11030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11031 # as there is no search path for DLLs. 11032 hardcode_libdir_flag_spec_CXX='-L$libdir' 11033 allow_undefined_flag_CXX=unsupported 11034 always_export_symbols_CXX=no 11035 enable_shared_with_static_runtimes_CXX=yes 11036 11037 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11038 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' 11039 # If the export-symbols file already is a .def file (1st line 11040 # is EXPORTS), use it as is; otherwise, prepend... 11041 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11042 cp $export_symbols $output_objdir/$soname.def; 11043 else 11044 echo EXPORTS > $output_objdir/$soname.def; 11045 cat $export_symbols >> $output_objdir/$soname.def; 11046 fi~ 11047 $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' 11048 else 11049 ld_shlibs_CXX=no 11050 fi 11051 ;; 11052 darwin* | rhapsody*) 11053 case $host_os in 11054 rhapsody* | darwin1.[012]) 11055 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11056 ;; 11057 *) # Darwin 1.3 on 11058 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11060 else 11061 case ${MACOSX_DEPLOYMENT_TARGET} in 11062 10.[012]) 11063 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11064 ;; 11065 10.*) 11066 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11067 ;; 11068 esac 11069 fi 11070 ;; 11071 esac 11072 archive_cmds_need_lc_CXX=no 11073 hardcode_direct_CXX=no 11074 hardcode_automatic_CXX=yes 11075 hardcode_shlibpath_var_CXX=unsupported 11076 whole_archive_flag_spec_CXX='' 11077 link_all_deplibs_CXX=yes 11078 11079 if test "$GXX" = yes ; then 11080 lt_int_apple_cc_single_mod=no 11081 output_verbose_link_cmd='echo' 11082 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11083 lt_int_apple_cc_single_mod=yes 11084 fi 11085 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11086 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11087 else 11088 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' 11089 fi 11090 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11092 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11093 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}' 11094 else 11095 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}' 11096 fi 11097 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}' 11098 else 11099 case $cc_basename in 11100 xlc*) 11101 output_verbose_link_cmd='echo' 11102 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' 11103 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11105 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}' 11106 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}' 11107 ;; 11108 *) 11109 ld_shlibs_CXX=no 11110 ;; 11111 esac 11112 fi 11113 ;; 11114 11115 dgux*) 11116 case $cc_basename in 11117 ec++*) 11118 # FIXME: insert proper C++ library support 11119 ld_shlibs_CXX=no 11120 ;; 11121 ghcx*) 11122 # Green Hills C++ Compiler 11123 # FIXME: insert proper C++ library support 11124 ld_shlibs_CXX=no 11125 ;; 11126 *) 11127 # FIXME: insert proper C++ library support 11128 ld_shlibs_CXX=no 11129 ;; 11130 esac 11131 ;; 11132 freebsd[12]*) 11133 # C++ shared libraries reported to be fairly broken before switch to ELF 11134 ld_shlibs_CXX=no 11135 ;; 11136 freebsd-elf*) 11137 archive_cmds_need_lc_CXX=no 11138 ;; 11139 freebsd* | kfreebsd*-gnu | dragonfly*) 11140 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11141 # conventions 11142 ld_shlibs_CXX=yes 11143 ;; 11144 gnu*) 11145 ;; 11146 hpux9*) 11147 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11148 hardcode_libdir_separator_CXX=: 11149 export_dynamic_flag_spec_CXX='${wl}-E' 11150 hardcode_direct_CXX=yes 11151 hardcode_minus_L_CXX=yes # Not in the search PATH, 11152 # but as the default 11153 # location of the library. 11154 11155 case $cc_basename in 11156 CC*) 11157 # FIXME: insert proper C++ library support 11158 ld_shlibs_CXX=no 11159 ;; 11160 aCC*) 11161 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' 11162 # Commands to make compiler produce verbose output that lists 11163 # what "hidden" libraries, object files and flags are used when 11164 # linking a shared library. 11165 # 11166 # There doesn't appear to be a way to prevent this compiler from 11167 # explicitly linking system object files so we need to strip them 11168 # from the output so that they don't get included in the library 11169 # dependencies. 11170 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' 11171 ;; 11172 *) 11173 if test "$GXX" = yes; then 11174 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' 11175 else 11176 # FIXME: insert proper C++ library support 11177 ld_shlibs_CXX=no 11178 fi 11179 ;; 11180 esac 11181 ;; 11182 hpux10*|hpux11*) 11183 if test $with_gnu_ld = no; then 11184 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11185 hardcode_libdir_separator_CXX=: 11186 11187 case $host_cpu in 11188 hppa*64*|ia64*) 11189 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11190 ;; 11191 *) 11192 export_dynamic_flag_spec_CXX='${wl}-E' 11193 ;; 11194 esac 11195 fi 11196 case $host_cpu in 11197 hppa*64*|ia64*) 11198 hardcode_direct_CXX=no 11199 hardcode_shlibpath_var_CXX=no 11200 ;; 11201 *) 11202 hardcode_direct_CXX=yes 11203 hardcode_minus_L_CXX=yes # Not in the search PATH, 11204 # but as the default 11205 # location of the library. 11206 ;; 11207 esac 11208 11209 case $cc_basename in 11210 CC*) 11211 # FIXME: insert proper C++ library support 11212 ld_shlibs_CXX=no 11213 ;; 11214 aCC*) 11215 case $host_cpu in 11216 hppa*64*) 11217 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11218 ;; 11219 ia64*) 11220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11221 ;; 11222 *) 11223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11224 ;; 11225 esac 11226 # Commands to make compiler produce verbose output that lists 11227 # what "hidden" libraries, object files and flags are used when 11228 # linking a shared library. 11229 # 11230 # There doesn't appear to be a way to prevent this compiler from 11231 # explicitly linking system object files so we need to strip them 11232 # from the output so that they don't get included in the library 11233 # dependencies. 11234 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' 11235 ;; 11236 *) 11237 if test "$GXX" = yes; then 11238 if test $with_gnu_ld = no; then 11239 case $host_cpu in 11240 hppa*64*) 11241 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11242 ;; 11243 ia64*) 11244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11245 ;; 11246 *) 11247 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' 11248 ;; 11249 esac 11250 fi 11251 else 11252 # FIXME: insert proper C++ library support 11253 ld_shlibs_CXX=no 11254 fi 11255 ;; 11256 esac 11257 ;; 11258 interix3*) 11259 hardcode_direct_CXX=no 11260 hardcode_shlibpath_var_CXX=no 11261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11262 export_dynamic_flag_spec_CXX='${wl}-E' 11263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11264 # Instead, shared libraries are loaded at an image base (0x10000000 by 11265 # default) and relocated if they conflict, which is a slow very memory 11266 # consuming and fragmenting process. To avoid this, we pick a random, 11267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11268 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11269 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' 11270 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' 11271 ;; 11272 irix5* | irix6*) 11273 case $cc_basename in 11274 CC*) 11275 # SGI C++ 11276 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' 11277 11278 # Archives containing C++ object files must be created using 11279 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11280 # necessary to make sure instantiated templates are included 11281 # in the archive. 11282 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11283 ;; 11284 *) 11285 if test "$GXX" = yes; then 11286 if test "$with_gnu_ld" = no; then 11287 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' 11288 else 11289 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' 11290 fi 11291 fi 11292 link_all_deplibs_CXX=yes 11293 ;; 11294 esac 11295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11296 hardcode_libdir_separator_CXX=: 11297 ;; 11298 linux*) 11299 case $cc_basename in 11300 KCC*) 11301 # Kuck and Associates, Inc. (KAI) C++ Compiler 11302 11303 # KCC will only create a shared library if the output file 11304 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11305 # to its proper name (with version) after linking. 11306 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' 11307 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' 11308 # Commands to make compiler produce verbose output that lists 11309 # what "hidden" libraries, object files and flags are used when 11310 # linking a shared library. 11311 # 11312 # There doesn't appear to be a way to prevent this compiler from 11313 # explicitly linking system object files so we need to strip them 11314 # from the output so that they don't get included in the library 11315 # dependencies. 11316 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' 11317 11318 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11320 11321 # Archives containing C++ object files must be created using 11322 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11323 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11324 ;; 11325 icpc*) 11326 # Intel C++ 11327 with_gnu_ld=yes 11328 # version 8.0 and above of icpc choke on multiply defined symbols 11329 # if we add $predep_objects and $postdep_objects, however 7.1 and 11330 # earlier do not add the objects themselves. 11331 case `$CC -V 2>&1` in 11332 *"Version 7."*) 11333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11334 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' 11335 ;; 11336 *) # Version 8.0 or newer 11337 tmp_idyn= 11338 case $host_cpu in 11339 ia64*) tmp_idyn=' -i_dynamic';; 11340 esac 11341 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11342 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' 11343 ;; 11344 esac 11345 archive_cmds_need_lc_CXX=no 11346 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11348 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11349 ;; 11350 pgCC*) 11351 # Portland Group C++ compiler 11352 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11353 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' 11354 11355 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11357 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' 11358 ;; 11359 cxx*) 11360 # Compaq C++ 11361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11362 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' 11363 11364 runpath_var=LD_RUN_PATH 11365 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11366 hardcode_libdir_separator_CXX=: 11367 11368 # Commands to make compiler produce verbose output that lists 11369 # what "hidden" libraries, object files and flags are used when 11370 # linking a shared library. 11371 # 11372 # There doesn't appear to be a way to prevent this compiler from 11373 # explicitly linking system object files so we need to strip them 11374 # from the output so that they don't get included in the library 11375 # dependencies. 11376 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' 11377 ;; 11378 *) 11379 case `$CC -V 2>&1 | sed 5q` in 11380 *Sun\ C*) 11381 # Sun C++ 5.9 11382 no_undefined_flag_CXX=' -zdefs' 11383 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11384 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11385 hardcode_libdir_flag_spec_CXX='-R$libdir' 11386 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11387 11388 # Not sure whether something based on 11389 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11390 # would be better. 11391 output_verbose_link_cmd='echo' 11392 11393 # Archives containing C++ object files must be created using 11394 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11395 # necessary to make sure instantiated templates are included 11396 # in the archive. 11397 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11398 ;; 11399 esac 11400 ;; 11401 esac 11402 ;; 11403 lynxos*) 11404 # FIXME: insert proper C++ library support 11405 ld_shlibs_CXX=no 11406 ;; 11407 m88k*) 11408 # FIXME: insert proper C++ library support 11409 ld_shlibs_CXX=no 11410 ;; 11411 mvs*) 11412 case $cc_basename in 11413 cxx*) 11414 # FIXME: insert proper C++ library support 11415 ld_shlibs_CXX=no 11416 ;; 11417 *) 11418 # FIXME: insert proper C++ library support 11419 ld_shlibs_CXX=no 11420 ;; 11421 esac 11422 ;; 11423 netbsd*) 11424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11425 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11426 wlarc= 11427 hardcode_libdir_flag_spec_CXX='-R$libdir' 11428 hardcode_direct_CXX=yes 11429 hardcode_shlibpath_var_CXX=no 11430 fi 11431 # Workaround some broken pre-1.5 toolchains 11432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11433 ;; 11434 openbsd2*) 11435 # C++ shared libraries are fairly broken 11436 ld_shlibs_CXX=no 11437 ;; 11438 openbsd*) 11439 hardcode_direct_CXX=yes 11440 hardcode_shlibpath_var_CXX=no 11441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11444 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11445 export_dynamic_flag_spec_CXX='${wl}-E' 11446 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11447 fi 11448 output_verbose_link_cmd='echo' 11449 ;; 11450 osf3*) 11451 case $cc_basename in 11452 KCC*) 11453 # Kuck and Associates, Inc. (KAI) C++ Compiler 11454 11455 # KCC will only create a shared library if the output file 11456 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11457 # to its proper name (with version) after linking. 11458 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' 11459 11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11461 hardcode_libdir_separator_CXX=: 11462 11463 # Archives containing C++ object files must be created using 11464 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11465 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11466 11467 ;; 11468 RCC*) 11469 # Rational C++ 2.4.1 11470 # FIXME: insert proper C++ library support 11471 ld_shlibs_CXX=no 11472 ;; 11473 cxx*) 11474 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11475 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' 11476 11477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11478 hardcode_libdir_separator_CXX=: 11479 11480 # Commands to make compiler produce verbose output that lists 11481 # what "hidden" libraries, object files and flags are used when 11482 # linking a shared library. 11483 # 11484 # There doesn't appear to be a way to prevent this compiler from 11485 # explicitly linking system object files so we need to strip them 11486 # from the output so that they don't get included in the library 11487 # dependencies. 11488 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' 11489 ;; 11490 *) 11491 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11493 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' 11494 11495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11496 hardcode_libdir_separator_CXX=: 11497 11498 # Commands to make compiler produce verbose output that lists 11499 # what "hidden" libraries, object files and flags are used when 11500 # linking a shared library. 11501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11502 11503 else 11504 # FIXME: insert proper C++ library support 11505 ld_shlibs_CXX=no 11506 fi 11507 ;; 11508 esac 11509 ;; 11510 osf4* | osf5*) 11511 case $cc_basename in 11512 KCC*) 11513 # Kuck and Associates, Inc. (KAI) C++ Compiler 11514 11515 # KCC will only create a shared library if the output file 11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11517 # to its proper name (with version) after linking. 11518 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' 11519 11520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11521 hardcode_libdir_separator_CXX=: 11522 11523 # Archives containing C++ object files must be created using 11524 # the KAI C++ compiler. 11525 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11526 ;; 11527 RCC*) 11528 # Rational C++ 2.4.1 11529 # FIXME: insert proper C++ library support 11530 ld_shlibs_CXX=no 11531 ;; 11532 cxx*) 11533 allow_undefined_flag_CXX=' -expect_unresolved \*' 11534 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' 11535 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11536 echo "-hidden">> $lib.exp~ 11537 $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~ 11538 $rm $lib.exp' 11539 11540 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11541 hardcode_libdir_separator_CXX=: 11542 11543 # Commands to make compiler produce verbose output that lists 11544 # what "hidden" libraries, object files and flags are used when 11545 # linking a shared library. 11546 # 11547 # There doesn't appear to be a way to prevent this compiler from 11548 # explicitly linking system object files so we need to strip them 11549 # from the output so that they don't get included in the library 11550 # dependencies. 11551 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' 11552 ;; 11553 *) 11554 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11555 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11556 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' 11557 11558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11559 hardcode_libdir_separator_CXX=: 11560 11561 # Commands to make compiler produce verbose output that lists 11562 # what "hidden" libraries, object files and flags are used when 11563 # linking a shared library. 11564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11565 11566 else 11567 # FIXME: insert proper C++ library support 11568 ld_shlibs_CXX=no 11569 fi 11570 ;; 11571 esac 11572 ;; 11573 psos*) 11574 # FIXME: insert proper C++ library support 11575 ld_shlibs_CXX=no 11576 ;; 11577 sunos4*) 11578 case $cc_basename in 11579 CC*) 11580 # Sun C++ 4.x 11581 # FIXME: insert proper C++ library support 11582 ld_shlibs_CXX=no 11583 ;; 11584 lcc*) 11585 # Lucid 11586 # FIXME: insert proper C++ library support 11587 ld_shlibs_CXX=no 11588 ;; 11589 *) 11590 # FIXME: insert proper C++ library support 11591 ld_shlibs_CXX=no 11592 ;; 11593 esac 11594 ;; 11595 solaris*) 11596 case $cc_basename in 11597 CC*) 11598 # Sun C++ 4.2, 5.x and Centerline C++ 11599 archive_cmds_need_lc_CXX=yes 11600 no_undefined_flag_CXX=' -zdefs' 11601 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11602 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11603 $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' 11604 11605 hardcode_libdir_flag_spec_CXX='-R$libdir' 11606 hardcode_shlibpath_var_CXX=no 11607 case $host_os in 11608 solaris2.[0-5] | solaris2.[0-5].*) ;; 11609 *) 11610 # The C++ compiler is used as linker so we must use $wl 11611 # flag to pass the commands to the underlying system 11612 # linker. We must also pass each convience library through 11613 # to the system linker between allextract/defaultextract. 11614 # The C++ compiler will combine linker options so we 11615 # cannot just pass the convience library names through 11616 # without $wl. 11617 # Supported since Solaris 2.6 (maybe 2.5.1?) 11618 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' 11619 ;; 11620 esac 11621 link_all_deplibs_CXX=yes 11622 11623 output_verbose_link_cmd='echo' 11624 11625 # Archives containing C++ object files must be created using 11626 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11627 # necessary to make sure instantiated templates are included 11628 # in the archive. 11629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11630 ;; 11631 gcx*) 11632 # Green Hills C++ Compiler 11633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11634 11635 # The C++ compiler must be used to create the archive. 11636 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11637 ;; 11638 *) 11639 # GNU C++ compiler with Solaris linker 11640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11641 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11642 if $CC --version | grep -v '^2\.7' > /dev/null; then 11643 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11644 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11645 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11646 11647 # Commands to make compiler produce verbose output that lists 11648 # what "hidden" libraries, object files and flags are used when 11649 # linking a shared library. 11650 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11651 else 11652 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11653 # platform. 11654 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11655 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11656 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11657 11658 # Commands to make compiler produce verbose output that lists 11659 # what "hidden" libraries, object files and flags are used when 11660 # linking a shared library. 11661 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11662 fi 11663 11664 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11665 fi 11666 ;; 11667 esac 11668 ;; 11669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11670 no_undefined_flag_CXX='${wl}-z,text' 11671 archive_cmds_need_lc_CXX=no 11672 hardcode_shlibpath_var_CXX=no 11673 runpath_var='LD_RUN_PATH' 11674 11675 case $cc_basename in 11676 CC*) 11677 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11678 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11679 ;; 11680 *) 11681 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11682 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11683 ;; 11684 esac 11685 ;; 11686 sysv5* | sco3.2v5* | sco5v6*) 11687 # Note: We can NOT use -z defs as we might desire, because we do not 11688 # link with -lc, and that would cause any symbols used from libc to 11689 # always be unresolved, which means just about no library would 11690 # ever link correctly. If we're not using GNU ld we use -z text 11691 # though, which does catch some bad symbols but isn't as heavy-handed 11692 # as -z defs. 11693 # For security reasons, it is highly recommended that you always 11694 # use absolute paths for naming shared libraries, and exclude the 11695 # DT_RUNPATH tag from executables and libraries. But doing so 11696 # requires that you compile everything twice, which is a pain. 11697 # So that behaviour is only enabled if SCOABSPATH is set to a 11698 # non-empty value in the environment. Most likely only useful for 11699 # creating official distributions of packages. 11700 # This is a hack until libtool officially supports absolute path 11701 # names for shared libraries. 11702 no_undefined_flag_CXX='${wl}-z,text' 11703 allow_undefined_flag_CXX='${wl}-z,nodefs' 11704 archive_cmds_need_lc_CXX=no 11705 hardcode_shlibpath_var_CXX=no 11706 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11707 hardcode_libdir_separator_CXX=':' 11708 link_all_deplibs_CXX=yes 11709 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11710 runpath_var='LD_RUN_PATH' 11711 11712 case $cc_basename in 11713 CC*) 11714 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11715 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11716 ;; 11717 *) 11718 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11720 ;; 11721 esac 11722 ;; 11723 tandem*) 11724 case $cc_basename in 11725 NCC*) 11726 # NonStop-UX NCC 3.20 11727 # FIXME: insert proper C++ library support 11728 ld_shlibs_CXX=no 11729 ;; 11730 *) 11731 # FIXME: insert proper C++ library support 11732 ld_shlibs_CXX=no 11733 ;; 11734 esac 11735 ;; 11736 vxworks*) 11737 # FIXME: insert proper C++ library support 11738 ld_shlibs_CXX=no 11739 ;; 11740 *) 11741 # FIXME: insert proper C++ library support 11742 ld_shlibs_CXX=no 11743 ;; 11744esac 11745{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11746echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11747test "$ld_shlibs_CXX" = no && can_build_shared=no 11748 11749GCC_CXX="$GXX" 11750LD_CXX="$LD" 11751 11752 11753cat > conftest.$ac_ext <<EOF 11754class Foo 11755{ 11756public: 11757 Foo (void) { a = 0; } 11758private: 11759 int a; 11760}; 11761EOF 11762 11763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11764 (eval $ac_compile) 2>&5 11765 ac_status=$? 11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11767 (exit $ac_status); }; then 11768 # Parse the compiler output and extract the necessary 11769 # objects, libraries and library flags. 11770 11771 # Sentinel used to keep track of whether or not we are before 11772 # the conftest object file. 11773 pre_test_object_deps_done=no 11774 11775 # The `*' in the case matches for architectures that use `case' in 11776 # $output_verbose_cmd can trigger glob expansion during the loop 11777 # eval without this substitution. 11778 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11779 11780 for p in `eval $output_verbose_link_cmd`; do 11781 case $p in 11782 11783 -L* | -R* | -l*) 11784 # Some compilers place space between "-{L,R}" and the path. 11785 # Remove the space. 11786 if test $p = "-L" \ 11787 || test $p = "-R"; then 11788 prev=$p 11789 continue 11790 else 11791 prev= 11792 fi 11793 11794 if test "$pre_test_object_deps_done" = no; then 11795 case $p in 11796 -L* | -R*) 11797 # Internal compiler library paths should come after those 11798 # provided the user. The postdeps already come after the 11799 # user supplied libs so there is no need to process them. 11800 if test -z "$compiler_lib_search_path_CXX"; then 11801 compiler_lib_search_path_CXX="${prev}${p}" 11802 else 11803 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11804 fi 11805 ;; 11806 # The "-l" case would never come before the object being 11807 # linked, so don't bother handling this case. 11808 esac 11809 else 11810 if test -z "$postdeps_CXX"; then 11811 postdeps_CXX="${prev}${p}" 11812 else 11813 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11814 fi 11815 fi 11816 ;; 11817 11818 *.$objext) 11819 # This assumes that the test object file only shows up 11820 # once in the compiler output. 11821 if test "$p" = "conftest.$objext"; then 11822 pre_test_object_deps_done=yes 11823 continue 11824 fi 11825 11826 if test "$pre_test_object_deps_done" = no; then 11827 if test -z "$predep_objects_CXX"; then 11828 predep_objects_CXX="$p" 11829 else 11830 predep_objects_CXX="$predep_objects_CXX $p" 11831 fi 11832 else 11833 if test -z "$postdep_objects_CXX"; then 11834 postdep_objects_CXX="$p" 11835 else 11836 postdep_objects_CXX="$postdep_objects_CXX $p" 11837 fi 11838 fi 11839 ;; 11840 11841 *) ;; # Ignore the rest. 11842 11843 esac 11844 done 11845 11846 # Clean up. 11847 rm -f a.out a.exe 11848else 11849 echo "libtool.m4: error: problem compiling CXX test program" 11850fi 11851 11852$rm -f confest.$objext 11853 11854# PORTME: override above test on systems where it is broken 11855case $host_os in 11856interix3*) 11857 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11858 # hack all around it, let's just trust "g++" to DTRT. 11859 predep_objects_CXX= 11860 postdep_objects_CXX= 11861 postdeps_CXX= 11862 ;; 11863 11864linux*) 11865 case `$CC -V 2>&1 | sed 5q` in 11866 *Sun\ C*) 11867 # Sun C++ 5.9 11868 postdeps_CXX='-lCstd -lCrun' 11869 ;; 11870 esac 11871 ;; 11872 11873solaris*) 11874 case $cc_basename in 11875 CC*) 11876 # Adding this requires a known-good setup of shared libraries for 11877 # Sun compiler versions before 5.6, else PIC objects from an old 11878 # archive will be linked into the output, leading to subtle bugs. 11879 postdeps_CXX='-lCstd -lCrun' 11880 ;; 11881 esac 11882 ;; 11883esac 11884 11885 11886case " $postdeps_CXX " in 11887*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11888esac 11889 11890lt_prog_compiler_wl_CXX= 11891lt_prog_compiler_pic_CXX= 11892lt_prog_compiler_static_CXX= 11893 11894{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11895echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11896 11897 # C++ specific cases for pic, static, wl, etc. 11898 if test "$GXX" = yes; then 11899 lt_prog_compiler_wl_CXX='-Wl,' 11900 lt_prog_compiler_static_CXX='-static' 11901 11902 case $host_os in 11903 aix*) 11904 # All AIX code is PIC. 11905 if test "$host_cpu" = ia64; then 11906 # AIX 5 now supports IA64 processor 11907 lt_prog_compiler_static_CXX='-Bstatic' 11908 fi 11909 ;; 11910 amigaos*) 11911 # FIXME: we need at least 68020 code to build shared libraries, but 11912 # adding the `-m68020' flag to GCC prevents building anything better, 11913 # like `-m68040'. 11914 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11915 ;; 11916 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11917 # PIC is the default for these OSes. 11918 ;; 11919 mingw* | cygwin* | os2* | pw32*) 11920 # This hack is so that the source file can tell whether it is being 11921 # built for inclusion in a dll (and should export symbols for example). 11922 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11923 # (--disable-auto-import) libraries 11924 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11925 ;; 11926 darwin* | rhapsody*) 11927 # PIC is the default on this platform 11928 # Common symbols not allowed in MH_DYLIB files 11929 lt_prog_compiler_pic_CXX='-fno-common' 11930 ;; 11931 *djgpp*) 11932 # DJGPP does not support shared libraries at all 11933 lt_prog_compiler_pic_CXX= 11934 ;; 11935 interix3*) 11936 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11937 # Instead, we relocate shared libraries at runtime. 11938 ;; 11939 sysv4*MP*) 11940 if test -d /usr/nec; then 11941 lt_prog_compiler_pic_CXX=-Kconform_pic 11942 fi 11943 ;; 11944 hpux*) 11945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11946 # not for PA HP-UX. 11947 case $host_cpu in 11948 hppa*64*|ia64*) 11949 ;; 11950 *) 11951 lt_prog_compiler_pic_CXX='-fPIC' 11952 ;; 11953 esac 11954 ;; 11955 *) 11956 lt_prog_compiler_pic_CXX='-fPIC' 11957 ;; 11958 esac 11959 else 11960 case $host_os in 11961 aix4* | aix5*) 11962 # All AIX code is PIC. 11963 if test "$host_cpu" = ia64; then 11964 # AIX 5 now supports IA64 processor 11965 lt_prog_compiler_static_CXX='-Bstatic' 11966 else 11967 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11968 fi 11969 ;; 11970 chorus*) 11971 case $cc_basename in 11972 cxch68*) 11973 # Green Hills C++ Compiler 11974 # _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" 11975 ;; 11976 esac 11977 ;; 11978 darwin*) 11979 # PIC is the default on this platform 11980 # Common symbols not allowed in MH_DYLIB files 11981 case $cc_basename in 11982 xlc*) 11983 lt_prog_compiler_pic_CXX='-qnocommon' 11984 lt_prog_compiler_wl_CXX='-Wl,' 11985 ;; 11986 esac 11987 ;; 11988 dgux*) 11989 case $cc_basename in 11990 ec++*) 11991 lt_prog_compiler_pic_CXX='-KPIC' 11992 ;; 11993 ghcx*) 11994 # Green Hills C++ Compiler 11995 lt_prog_compiler_pic_CXX='-pic' 11996 ;; 11997 *) 11998 ;; 11999 esac 12000 ;; 12001 freebsd* | kfreebsd*-gnu | dragonfly*) 12002 # FreeBSD uses GNU C++ 12003 ;; 12004 hpux9* | hpux10* | hpux11*) 12005 case $cc_basename in 12006 CC*) 12007 lt_prog_compiler_wl_CXX='-Wl,' 12008 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12009 if test "$host_cpu" != ia64; then 12010 lt_prog_compiler_pic_CXX='+Z' 12011 fi 12012 ;; 12013 aCC*) 12014 lt_prog_compiler_wl_CXX='-Wl,' 12015 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12016 case $host_cpu in 12017 hppa*64*|ia64*) 12018 # +Z the default 12019 ;; 12020 *) 12021 lt_prog_compiler_pic_CXX='+Z' 12022 ;; 12023 esac 12024 ;; 12025 *) 12026 ;; 12027 esac 12028 ;; 12029 interix*) 12030 # This is c89, which is MS Visual C++ (no shared libs) 12031 # Anyone wants to do a port? 12032 ;; 12033 irix5* | irix6* | nonstopux*) 12034 case $cc_basename in 12035 CC*) 12036 lt_prog_compiler_wl_CXX='-Wl,' 12037 lt_prog_compiler_static_CXX='-non_shared' 12038 # CC pic flag -KPIC is the default. 12039 ;; 12040 *) 12041 ;; 12042 esac 12043 ;; 12044 linux*) 12045 case $cc_basename in 12046 KCC*) 12047 # KAI C++ Compiler 12048 lt_prog_compiler_wl_CXX='--backend -Wl,' 12049 lt_prog_compiler_pic_CXX='-fPIC' 12050 ;; 12051 icpc* | ecpc*) 12052 # Intel C++ 12053 lt_prog_compiler_wl_CXX='-Wl,' 12054 lt_prog_compiler_pic_CXX='-KPIC' 12055 lt_prog_compiler_static_CXX='-static' 12056 ;; 12057 pgCC*) 12058 # Portland Group C++ compiler. 12059 lt_prog_compiler_wl_CXX='-Wl,' 12060 lt_prog_compiler_pic_CXX='-fpic' 12061 lt_prog_compiler_static_CXX='-Bstatic' 12062 ;; 12063 cxx*) 12064 # Compaq C++ 12065 # Make sure the PIC flag is empty. It appears that all Alpha 12066 # Linux and Compaq Tru64 Unix objects are PIC. 12067 lt_prog_compiler_pic_CXX= 12068 lt_prog_compiler_static_CXX='-non_shared' 12069 ;; 12070 *) 12071 case `$CC -V 2>&1 | sed 5q` in 12072 *Sun\ C*) 12073 # Sun C++ 5.9 12074 lt_prog_compiler_pic_CXX='-KPIC' 12075 lt_prog_compiler_static_CXX='-Bstatic' 12076 lt_prog_compiler_wl_CXX='-Qoption ld ' 12077 ;; 12078 esac 12079 ;; 12080 esac 12081 ;; 12082 lynxos*) 12083 ;; 12084 m88k*) 12085 ;; 12086 mvs*) 12087 case $cc_basename in 12088 cxx*) 12089 lt_prog_compiler_pic_CXX='-W c,exportall' 12090 ;; 12091 *) 12092 ;; 12093 esac 12094 ;; 12095 netbsd*) 12096 ;; 12097 osf3* | osf4* | osf5*) 12098 case $cc_basename in 12099 KCC*) 12100 lt_prog_compiler_wl_CXX='--backend -Wl,' 12101 ;; 12102 RCC*) 12103 # Rational C++ 2.4.1 12104 lt_prog_compiler_pic_CXX='-pic' 12105 ;; 12106 cxx*) 12107 # Digital/Compaq C++ 12108 lt_prog_compiler_wl_CXX='-Wl,' 12109 # Make sure the PIC flag is empty. It appears that all Alpha 12110 # Linux and Compaq Tru64 Unix objects are PIC. 12111 lt_prog_compiler_pic_CXX= 12112 lt_prog_compiler_static_CXX='-non_shared' 12113 ;; 12114 *) 12115 ;; 12116 esac 12117 ;; 12118 psos*) 12119 ;; 12120 solaris*) 12121 case $cc_basename in 12122 CC*) 12123 # Sun C++ 4.2, 5.x and Centerline C++ 12124 lt_prog_compiler_pic_CXX='-KPIC' 12125 lt_prog_compiler_static_CXX='-Bstatic' 12126 lt_prog_compiler_wl_CXX='-Qoption ld ' 12127 ;; 12128 gcx*) 12129 # Green Hills C++ Compiler 12130 lt_prog_compiler_pic_CXX='-PIC' 12131 ;; 12132 *) 12133 ;; 12134 esac 12135 ;; 12136 sunos4*) 12137 case $cc_basename in 12138 CC*) 12139 # Sun C++ 4.x 12140 lt_prog_compiler_pic_CXX='-pic' 12141 lt_prog_compiler_static_CXX='-Bstatic' 12142 ;; 12143 lcc*) 12144 # Lucid 12145 lt_prog_compiler_pic_CXX='-pic' 12146 ;; 12147 *) 12148 ;; 12149 esac 12150 ;; 12151 tandem*) 12152 case $cc_basename in 12153 NCC*) 12154 # NonStop-UX NCC 3.20 12155 lt_prog_compiler_pic_CXX='-KPIC' 12156 ;; 12157 *) 12158 ;; 12159 esac 12160 ;; 12161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12162 case $cc_basename in 12163 CC*) 12164 lt_prog_compiler_wl_CXX='-Wl,' 12165 lt_prog_compiler_pic_CXX='-KPIC' 12166 lt_prog_compiler_static_CXX='-Bstatic' 12167 ;; 12168 esac 12169 ;; 12170 vxworks*) 12171 ;; 12172 *) 12173 lt_prog_compiler_can_build_shared_CXX=no 12174 ;; 12175 esac 12176 fi 12177 12178{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12179echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12180 12181# 12182# Check to make sure the PIC flag actually works. 12183# 12184if test -n "$lt_prog_compiler_pic_CXX"; then 12185 12186{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12187echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12188if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12189 echo $ECHO_N "(cached) $ECHO_C" >&6 12190else 12191 lt_prog_compiler_pic_works_CXX=no 12192 ac_outfile=conftest.$ac_objext 12193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12194 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12195 # Insert the option either (1) after the last *FLAGS variable, or 12196 # (2) before a word containing "conftest.", or (3) at the end. 12197 # Note that $ac_compile itself does not contain backslashes and begins 12198 # with a dollar sign (not a hyphen), so the echo should work correctly. 12199 # The option is referenced via a variable to avoid confusing sed. 12200 lt_compile=`echo "$ac_compile" | $SED \ 12201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12203 -e 's:$: $lt_compiler_flag:'` 12204 (eval echo "\"\$as_me:12204: $lt_compile\"" >&5) 12205 (eval "$lt_compile" 2>conftest.err) 12206 ac_status=$? 12207 cat conftest.err >&5 12208 echo "$as_me:12208: \$? = $ac_status" >&5 12209 if (exit $ac_status) && test -s "$ac_outfile"; then 12210 # The compiler can only warn and ignore the option if not recognized 12211 # So say no if there are warnings other than the usual output. 12212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12215 lt_prog_compiler_pic_works_CXX=yes 12216 fi 12217 fi 12218 $rm conftest* 12219 12220fi 12221{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12222echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12223 12224if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12225 case $lt_prog_compiler_pic_CXX in 12226 "" | " "*) ;; 12227 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12228 esac 12229else 12230 lt_prog_compiler_pic_CXX= 12231 lt_prog_compiler_can_build_shared_CXX=no 12232fi 12233 12234fi 12235case $host_os in 12236 # For platforms which do not support PIC, -DPIC is meaningless: 12237 *djgpp*) 12238 lt_prog_compiler_pic_CXX= 12239 ;; 12240 *) 12241 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12242 ;; 12243esac 12244 12245# 12246# Check to make sure the static flag actually works. 12247# 12248wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12249{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12250echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12251if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12252 echo $ECHO_N "(cached) $ECHO_C" >&6 12253else 12254 lt_prog_compiler_static_works_CXX=no 12255 save_LDFLAGS="$LDFLAGS" 12256 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12257 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12259 # The linker can only warn and ignore the option if not recognized 12260 # So say no if there are warnings 12261 if test -s conftest.err; then 12262 # Append any errors to the config.log. 12263 cat conftest.err 1>&5 12264 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12266 if diff conftest.exp conftest.er2 >/dev/null; then 12267 lt_prog_compiler_static_works_CXX=yes 12268 fi 12269 else 12270 lt_prog_compiler_static_works_CXX=yes 12271 fi 12272 fi 12273 $rm conftest* 12274 LDFLAGS="$save_LDFLAGS" 12275 12276fi 12277{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12278echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12279 12280if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12281 : 12282else 12283 lt_prog_compiler_static_CXX= 12284fi 12285 12286 12287{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12288echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12289if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12290 echo $ECHO_N "(cached) $ECHO_C" >&6 12291else 12292 lt_cv_prog_compiler_c_o_CXX=no 12293 $rm -r conftest 2>/dev/null 12294 mkdir conftest 12295 cd conftest 12296 mkdir out 12297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12298 12299 lt_compiler_flag="-o out/conftest2.$ac_objext" 12300 # Insert the option either (1) after the last *FLAGS variable, or 12301 # (2) before a word containing "conftest.", or (3) at the end. 12302 # Note that $ac_compile itself does not contain backslashes and begins 12303 # with a dollar sign (not a hyphen), so the echo should work correctly. 12304 lt_compile=`echo "$ac_compile" | $SED \ 12305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12307 -e 's:$: $lt_compiler_flag:'` 12308 (eval echo "\"\$as_me:12308: $lt_compile\"" >&5) 12309 (eval "$lt_compile" 2>out/conftest.err) 12310 ac_status=$? 12311 cat out/conftest.err >&5 12312 echo "$as_me:12312: \$? = $ac_status" >&5 12313 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12314 then 12315 # The compiler can only warn and ignore the option if not recognized 12316 # So say no if there are warnings 12317 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12320 lt_cv_prog_compiler_c_o_CXX=yes 12321 fi 12322 fi 12323 chmod u+w . 2>&5 12324 $rm conftest* 12325 # SGI C++ compiler will create directory out/ii_files/ for 12326 # template instantiation 12327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12328 $rm out/* && rmdir out 12329 cd .. 12330 rmdir conftest 12331 $rm conftest* 12332 12333fi 12334{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12335echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12336 12337 12338hard_links="nottested" 12339if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12340 # do not overwrite the value of need_locks provided by the user 12341 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12342echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12343 hard_links=yes 12344 $rm conftest* 12345 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12346 touch conftest.a 12347 ln conftest.a conftest.b 2>&5 || hard_links=no 12348 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12349 { echo "$as_me:$LINENO: result: $hard_links" >&5 12350echo "${ECHO_T}$hard_links" >&6; } 12351 if test "$hard_links" = no; then 12352 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12353echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12354 need_locks=warn 12355 fi 12356else 12357 need_locks=no 12358fi 12359 12360{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12362 12363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12364 case $host_os in 12365 aix4* | aix5*) 12366 # If we're using GNU nm, then we don't want the "-C" option. 12367 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12368 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12369 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' 12370 else 12371 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' 12372 fi 12373 ;; 12374 pw32*) 12375 export_symbols_cmds_CXX="$ltdll_cmds" 12376 ;; 12377 cygwin* | mingw*) 12378 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' 12379 ;; 12380 *) 12381 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12382 ;; 12383 esac 12384 12385{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12386echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12387test "$ld_shlibs_CXX" = no && can_build_shared=no 12388 12389# 12390# Do we need to explicitly link libc? 12391# 12392case "x$archive_cmds_need_lc_CXX" in 12393x|xyes) 12394 # Assume -lc should be added 12395 archive_cmds_need_lc_CXX=yes 12396 12397 if test "$enable_shared" = yes && test "$GCC" = yes; then 12398 case $archive_cmds_CXX in 12399 *'~'*) 12400 # FIXME: we may have to deal with multi-command sequences. 12401 ;; 12402 '$CC '*) 12403 # Test whether the compiler implicitly links with -lc since on some 12404 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12405 # to ld, don't add -lc before -lgcc. 12406 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12407echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12408 $rm conftest* 12409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12410 12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12412 (eval $ac_compile) 2>&5 12413 ac_status=$? 12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); } 2>conftest.err; then 12416 soname=conftest 12417 lib=conftest 12418 libobjs=conftest.$ac_objext 12419 deplibs= 12420 wl=$lt_prog_compiler_wl_CXX 12421 pic_flag=$lt_prog_compiler_pic_CXX 12422 compiler_flags=-v 12423 linker_flags=-v 12424 verstring= 12425 output_objdir=. 12426 libname=conftest 12427 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12428 allow_undefined_flag_CXX= 12429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12430 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12431 ac_status=$? 12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12433 (exit $ac_status); } 12434 then 12435 archive_cmds_need_lc_CXX=no 12436 else 12437 archive_cmds_need_lc_CXX=yes 12438 fi 12439 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12440 else 12441 cat conftest.err 1>&5 12442 fi 12443 $rm conftest* 12444 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12445echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12446 ;; 12447 esac 12448 fi 12449 ;; 12450esac 12451 12452{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12453echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12454library_names_spec= 12455libname_spec='lib$name' 12456soname_spec= 12457shrext_cmds=".so" 12458postinstall_cmds= 12459postuninstall_cmds= 12460finish_cmds= 12461finish_eval= 12462shlibpath_var= 12463shlibpath_overrides_runpath=unknown 12464version_type=none 12465dynamic_linker="$host_os ld.so" 12466sys_lib_dlsearch_path_spec="/lib /usr/lib" 12467if test "$GCC" = yes; then 12468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12469 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12470 # if the path contains ";" then we assume it to be the separator 12471 # otherwise default to the standard path separator (i.e. ":") - it is 12472 # assumed that no part of a normal pathname contains ";" but that should 12473 # okay in the real world where ";" in dirpaths is itself problematic. 12474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12475 else 12476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12477 fi 12478else 12479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12480fi 12481need_lib_prefix=unknown 12482hardcode_into_libs=no 12483 12484# when you set need_version to no, make sure it does not cause -set_version 12485# flags to be left without arguments 12486need_version=unknown 12487 12488case $host_os in 12489aix3*) 12490 version_type=linux 12491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12492 shlibpath_var=LIBPATH 12493 12494 # AIX 3 has no versioning support, so we append a major version to the name. 12495 soname_spec='${libname}${release}${shared_ext}$major' 12496 ;; 12497 12498aix4* | aix5*) 12499 version_type=linux 12500 need_lib_prefix=no 12501 need_version=no 12502 hardcode_into_libs=yes 12503 if test "$host_cpu" = ia64; then 12504 # AIX 5 supports IA64 12505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12506 shlibpath_var=LD_LIBRARY_PATH 12507 else 12508 # With GCC up to 2.95.x, collect2 would create an import file 12509 # for dependence libraries. The import file would start with 12510 # the line `#! .'. This would cause the generated library to 12511 # depend on `.', always an invalid library. This was fixed in 12512 # development snapshots of GCC prior to 3.0. 12513 case $host_os in 12514 aix4 | aix4.[01] | aix4.[01].*) 12515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12516 echo ' yes ' 12517 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12518 : 12519 else 12520 can_build_shared=no 12521 fi 12522 ;; 12523 esac 12524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12525 # soname into executable. Probably we can add versioning support to 12526 # collect2, so additional links can be useful in future. 12527 if test "$aix_use_runtimelinking" = yes; then 12528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12529 # instead of lib<name>.a to let people know that these are not 12530 # typical AIX shared libraries. 12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12532 else 12533 # We preserve .a as extension for shared libraries through AIX4.2 12534 # and later when we are not doing run time linking. 12535 library_names_spec='${libname}${release}.a $libname.a' 12536 soname_spec='${libname}${release}${shared_ext}$major' 12537 fi 12538 shlibpath_var=LIBPATH 12539 fi 12540 ;; 12541 12542amigaos*) 12543 library_names_spec='$libname.ixlibrary $libname.a' 12544 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12545 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' 12546 ;; 12547 12548beos*) 12549 library_names_spec='${libname}${shared_ext}' 12550 dynamic_linker="$host_os ld.so" 12551 shlibpath_var=LIBRARY_PATH 12552 ;; 12553 12554bsdi[45]*) 12555 version_type=linux 12556 need_version=no 12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12558 soname_spec='${libname}${release}${shared_ext}$major' 12559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12560 shlibpath_var=LD_LIBRARY_PATH 12561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12563 # the default ld.so.conf also contains /usr/contrib/lib and 12564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12565 # libtool to hard-code these into programs 12566 ;; 12567 12568cygwin* | mingw* | pw32*) 12569 version_type=windows 12570 shrext_cmds=".dll" 12571 need_version=no 12572 need_lib_prefix=no 12573 12574 case $GCC,$host_os in 12575 yes,cygwin* | yes,mingw* | yes,pw32*) 12576 library_names_spec='$libname.dll.a' 12577 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12578 postinstall_cmds='base_file=`basename \${file}`~ 12579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12580 dldir=$destdir/`dirname \$dlpath`~ 12581 test -d \$dldir || mkdir -p \$dldir~ 12582 $install_prog $dir/$dlname \$dldir/$dlname~ 12583 chmod a+x \$dldir/$dlname' 12584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12585 dlpath=$dir/\$dldll~ 12586 $rm \$dlpath' 12587 shlibpath_overrides_runpath=yes 12588 12589 case $host_os in 12590 cygwin*) 12591 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12593 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12594 ;; 12595 mingw*) 12596 # MinGW DLLs use traditional 'lib' prefix 12597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12599 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12600 # It is most probably a Windows format PATH printed by 12601 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12602 # path with ; separators, and with drive letters. We can handle the 12603 # drive letters (cygwin fileutils understands them), so leave them, 12604 # especially as we might pass files found there to a mingw objdump, 12605 # which wouldn't understand a cygwinified path. Ahh. 12606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12607 else 12608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12609 fi 12610 ;; 12611 pw32*) 12612 # pw32 DLLs use 'pw' prefix rather than 'lib' 12613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12614 ;; 12615 esac 12616 ;; 12617 12618 *) 12619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12620 ;; 12621 esac 12622 dynamic_linker='Win32 ld.exe' 12623 # FIXME: first we should search . and the directory the executable is in 12624 shlibpath_var=PATH 12625 ;; 12626 12627darwin* | rhapsody*) 12628 dynamic_linker="$host_os dyld" 12629 version_type=darwin 12630 need_lib_prefix=no 12631 need_version=no 12632 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12633 soname_spec='${libname}${release}${major}$shared_ext' 12634 shlibpath_overrides_runpath=yes 12635 shlibpath_var=DYLD_LIBRARY_PATH 12636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12637 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12638 if test "$GCC" = yes; then 12639 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"` 12640 else 12641 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12642 fi 12643 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12644 ;; 12645 12646dgux*) 12647 version_type=linux 12648 need_lib_prefix=no 12649 need_version=no 12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12651 soname_spec='${libname}${release}${shared_ext}$major' 12652 shlibpath_var=LD_LIBRARY_PATH 12653 ;; 12654 12655freebsd1*) 12656 dynamic_linker=no 12657 ;; 12658 12659kfreebsd*-gnu) 12660 version_type=linux 12661 need_lib_prefix=no 12662 need_version=no 12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12664 soname_spec='${libname}${release}${shared_ext}$major' 12665 shlibpath_var=LD_LIBRARY_PATH 12666 shlibpath_overrides_runpath=no 12667 hardcode_into_libs=yes 12668 dynamic_linker='GNU ld.so' 12669 ;; 12670 12671freebsd* | dragonfly*) 12672 # DragonFly does not have aout. When/if they implement a new 12673 # versioning mechanism, adjust this. 12674 if test -x /usr/bin/objformat; then 12675 objformat=`/usr/bin/objformat` 12676 else 12677 case $host_os in 12678 freebsd[123]*) objformat=aout ;; 12679 *) objformat=elf ;; 12680 esac 12681 fi 12682 version_type=freebsd-$objformat 12683 case $version_type in 12684 freebsd-elf*) 12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12686 need_version=no 12687 need_lib_prefix=no 12688 ;; 12689 freebsd-*) 12690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12691 need_version=yes 12692 ;; 12693 esac 12694 shlibpath_var=LD_LIBRARY_PATH 12695 case $host_os in 12696 freebsd2*) 12697 shlibpath_overrides_runpath=yes 12698 ;; 12699 freebsd3.[01]* | freebsdelf3.[01]*) 12700 shlibpath_overrides_runpath=yes 12701 hardcode_into_libs=yes 12702 ;; 12703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12705 shlibpath_overrides_runpath=no 12706 hardcode_into_libs=yes 12707 ;; 12708 freebsd*) # from 4.6 on 12709 shlibpath_overrides_runpath=yes 12710 hardcode_into_libs=yes 12711 ;; 12712 esac 12713 ;; 12714 12715gnu*) 12716 version_type=linux 12717 need_lib_prefix=no 12718 need_version=no 12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12720 soname_spec='${libname}${release}${shared_ext}$major' 12721 shlibpath_var=LD_LIBRARY_PATH 12722 hardcode_into_libs=yes 12723 ;; 12724 12725hpux9* | hpux10* | hpux11*) 12726 # Give a soname corresponding to the major version so that dld.sl refuses to 12727 # link against other versions. 12728 version_type=sunos 12729 need_lib_prefix=no 12730 need_version=no 12731 case $host_cpu in 12732 ia64*) 12733 shrext_cmds='.so' 12734 hardcode_into_libs=yes 12735 dynamic_linker="$host_os dld.so" 12736 shlibpath_var=LD_LIBRARY_PATH 12737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12739 soname_spec='${libname}${release}${shared_ext}$major' 12740 if test "X$HPUX_IA64_MODE" = X32; then 12741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12742 else 12743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12744 fi 12745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12746 ;; 12747 hppa*64*) 12748 shrext_cmds='.sl' 12749 hardcode_into_libs=yes 12750 dynamic_linker="$host_os dld.sl" 12751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12754 soname_spec='${libname}${release}${shared_ext}$major' 12755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12757 ;; 12758 *) 12759 shrext_cmds='.sl' 12760 dynamic_linker="$host_os dld.sl" 12761 shlibpath_var=SHLIB_PATH 12762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12764 soname_spec='${libname}${release}${shared_ext}$major' 12765 ;; 12766 esac 12767 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12768 postinstall_cmds='chmod 555 $lib' 12769 ;; 12770 12771interix3*) 12772 version_type=linux 12773 need_lib_prefix=no 12774 need_version=no 12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12778 shlibpath_var=LD_LIBRARY_PATH 12779 shlibpath_overrides_runpath=no 12780 hardcode_into_libs=yes 12781 ;; 12782 12783irix5* | irix6* | nonstopux*) 12784 case $host_os in 12785 nonstopux*) version_type=nonstopux ;; 12786 *) 12787 if test "$lt_cv_prog_gnu_ld" = yes; then 12788 version_type=linux 12789 else 12790 version_type=irix 12791 fi ;; 12792 esac 12793 need_lib_prefix=no 12794 need_version=no 12795 soname_spec='${libname}${release}${shared_ext}$major' 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12797 case $host_os in 12798 irix5* | nonstopux*) 12799 libsuff= shlibsuff= 12800 ;; 12801 *) 12802 case $LD in # libtool.m4 will add one of these switches to LD 12803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12804 libsuff= shlibsuff= libmagic=32-bit;; 12805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12806 libsuff=32 shlibsuff=N32 libmagic=N32;; 12807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12808 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12809 *) libsuff= shlibsuff= libmagic=never-match;; 12810 esac 12811 ;; 12812 esac 12813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12814 shlibpath_overrides_runpath=no 12815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12817 hardcode_into_libs=yes 12818 ;; 12819 12820# No shared lib support for Linux oldld, aout, or coff. 12821linux*oldld* | linux*aout* | linux*coff*) 12822 dynamic_linker=no 12823 ;; 12824 12825# This must be Linux ELF. 12826linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12833 shlibpath_var=LD_LIBRARY_PATH 12834 shlibpath_overrides_runpath=no 12835 # This implies no fast_install, which is unacceptable. 12836 # Some rework will be needed to allow for fast_install 12837 # before this can be enabled. 12838 hardcode_into_libs=yes 12839 12840 # Append ld.so.conf contents to the search path 12841 if test -f /etc/ld.so.conf; then 12842 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12844 fi 12845 12846 # We used to test for /lib/ld.so.1 and disable shared libraries on 12847 # powerpc, because MkLinux only supported shared libraries with the 12848 # GNU dynamic linker. Since this was broken with cross compilers, 12849 # most powerpc-linux boxes support dynamic linking these days and 12850 # people can always --disable-shared, the test was removed, and we 12851 # assume the GNU/Linux dynamic linker is in use. 12852 dynamic_linker='GNU/Linux ld.so' 12853 ;; 12854 12855knetbsd*-gnu) 12856 version_type=linux 12857 need_lib_prefix=no 12858 need_version=no 12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12860 soname_spec='${libname}${release}${shared_ext}$major' 12861 shlibpath_var=LD_LIBRARY_PATH 12862 shlibpath_overrides_runpath=no 12863 hardcode_into_libs=yes 12864 dynamic_linker='GNU ld.so' 12865 ;; 12866 12867netbsd*) 12868 version_type=sunos 12869 need_lib_prefix=no 12870 need_version=no 12871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12874 dynamic_linker='NetBSD (a.out) ld.so' 12875 else 12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12877 soname_spec='${libname}${release}${shared_ext}$major' 12878 dynamic_linker='NetBSD ld.elf_so' 12879 fi 12880 shlibpath_var=LD_LIBRARY_PATH 12881 shlibpath_overrides_runpath=yes 12882 hardcode_into_libs=yes 12883 ;; 12884 12885newsos6) 12886 version_type=linux 12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12888 shlibpath_var=LD_LIBRARY_PATH 12889 shlibpath_overrides_runpath=yes 12890 ;; 12891 12892nto-qnx*) 12893 version_type=linux 12894 need_lib_prefix=no 12895 need_version=no 12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12897 soname_spec='${libname}${release}${shared_ext}$major' 12898 shlibpath_var=LD_LIBRARY_PATH 12899 shlibpath_overrides_runpath=yes 12900 ;; 12901 12902openbsd*) 12903 version_type=sunos 12904 sys_lib_dlsearch_path_spec="/usr/lib" 12905 need_lib_prefix=no 12906 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12907 case $host_os in 12908 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12909 *) need_version=no ;; 12910 esac 12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12913 shlibpath_var=LD_LIBRARY_PATH 12914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12915 case $host_os in 12916 openbsd2.[89] | openbsd2.[89].*) 12917 shlibpath_overrides_runpath=no 12918 ;; 12919 *) 12920 shlibpath_overrides_runpath=yes 12921 ;; 12922 esac 12923 else 12924 shlibpath_overrides_runpath=yes 12925 fi 12926 ;; 12927 12928os2*) 12929 libname_spec='$name' 12930 shrext_cmds=".dll" 12931 need_lib_prefix=no 12932 library_names_spec='$libname${shared_ext} $libname.a' 12933 dynamic_linker='OS/2 ld.exe' 12934 shlibpath_var=LIBPATH 12935 ;; 12936 12937osf3* | osf4* | osf5*) 12938 version_type=osf 12939 need_lib_prefix=no 12940 need_version=no 12941 soname_spec='${libname}${release}${shared_ext}$major' 12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12943 shlibpath_var=LD_LIBRARY_PATH 12944 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12945 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12946 ;; 12947 12948solaris*) 12949 version_type=linux 12950 need_lib_prefix=no 12951 need_version=no 12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12953 soname_spec='${libname}${release}${shared_ext}$major' 12954 shlibpath_var=LD_LIBRARY_PATH 12955 shlibpath_overrides_runpath=yes 12956 hardcode_into_libs=yes 12957 # ldd complains unless libraries are executable 12958 postinstall_cmds='chmod +x $lib' 12959 ;; 12960 12961sunos4*) 12962 version_type=sunos 12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12964 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12965 shlibpath_var=LD_LIBRARY_PATH 12966 shlibpath_overrides_runpath=yes 12967 if test "$with_gnu_ld" = yes; then 12968 need_lib_prefix=no 12969 fi 12970 need_version=yes 12971 ;; 12972 12973sysv4 | sysv4.3*) 12974 version_type=linux 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12976 soname_spec='${libname}${release}${shared_ext}$major' 12977 shlibpath_var=LD_LIBRARY_PATH 12978 case $host_vendor in 12979 sni) 12980 shlibpath_overrides_runpath=no 12981 need_lib_prefix=no 12982 export_dynamic_flag_spec='${wl}-Blargedynsym' 12983 runpath_var=LD_RUN_PATH 12984 ;; 12985 siemens) 12986 need_lib_prefix=no 12987 ;; 12988 motorola) 12989 need_lib_prefix=no 12990 need_version=no 12991 shlibpath_overrides_runpath=no 12992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12993 ;; 12994 esac 12995 ;; 12996 12997sysv4*MP*) 12998 if test -d /usr/nec ;then 12999 version_type=linux 13000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13001 soname_spec='$libname${shared_ext}.$major' 13002 shlibpath_var=LD_LIBRARY_PATH 13003 fi 13004 ;; 13005 13006sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13007 version_type=freebsd-elf 13008 need_lib_prefix=no 13009 need_version=no 13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13011 soname_spec='${libname}${release}${shared_ext}$major' 13012 shlibpath_var=LD_LIBRARY_PATH 13013 hardcode_into_libs=yes 13014 if test "$with_gnu_ld" = yes; then 13015 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13016 shlibpath_overrides_runpath=no 13017 else 13018 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13019 shlibpath_overrides_runpath=yes 13020 case $host_os in 13021 sco3.2v5*) 13022 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13023 ;; 13024 esac 13025 fi 13026 sys_lib_dlsearch_path_spec='/usr/lib' 13027 ;; 13028 13029uts4*) 13030 version_type=linux 13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13032 soname_spec='${libname}${release}${shared_ext}$major' 13033 shlibpath_var=LD_LIBRARY_PATH 13034 ;; 13035 13036*) 13037 dynamic_linker=no 13038 ;; 13039esac 13040{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13041echo "${ECHO_T}$dynamic_linker" >&6; } 13042test "$dynamic_linker" = no && can_build_shared=no 13043 13044variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13045if test "$GCC" = yes; then 13046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13047fi 13048 13049{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13050echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13051hardcode_action_CXX= 13052if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13053 test -n "$runpath_var_CXX" || \ 13054 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13055 13056 # We can hardcode non-existant directories. 13057 if test "$hardcode_direct_CXX" != no && 13058 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13059 # have to relink, otherwise we might link with an installed library 13060 # when we should be linking with a yet-to-be-installed one 13061 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13062 test "$hardcode_minus_L_CXX" != no; then 13063 # Linking always hardcodes the temporary library directory. 13064 hardcode_action_CXX=relink 13065 else 13066 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13067 hardcode_action_CXX=immediate 13068 fi 13069else 13070 # We cannot hardcode anything, or else we can only hardcode existing 13071 # directories. 13072 hardcode_action_CXX=unsupported 13073fi 13074{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13075echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13076 13077if test "$hardcode_action_CXX" = relink; then 13078 # Fast installation is not supported 13079 enable_fast_install=no 13080elif test "$shlibpath_overrides_runpath" = yes || 13081 test "$enable_shared" = no; then 13082 # Fast installation is not necessary 13083 enable_fast_install=needless 13084fi 13085 13086 13087# The else clause should only fire when bootstrapping the 13088# libtool distribution, otherwise you forgot to ship ltmain.sh 13089# with your package, and you will get complaints that there are 13090# no rules to generate ltmain.sh. 13091if test -f "$ltmain"; then 13092 # See if we are running on zsh, and set the options which allow our commands through 13093 # without removal of \ escapes. 13094 if test -n "${ZSH_VERSION+set}" ; then 13095 setopt NO_GLOB_SUBST 13096 fi 13097 # Now quote all the things that may contain metacharacters while being 13098 # careful not to overquote the AC_SUBSTed values. We take copies of the 13099 # variables and quote the copies for generation of the libtool script. 13100 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13101 SED SHELL STRIP \ 13102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13104 deplibs_check_method reload_flag reload_cmds need_locks \ 13105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13106 lt_cv_sys_global_symbol_to_c_name_address \ 13107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13108 old_postinstall_cmds old_postuninstall_cmds \ 13109 compiler_CXX \ 13110 CC_CXX \ 13111 LD_CXX \ 13112 lt_prog_compiler_wl_CXX \ 13113 lt_prog_compiler_pic_CXX \ 13114 lt_prog_compiler_static_CXX \ 13115 lt_prog_compiler_no_builtin_flag_CXX \ 13116 export_dynamic_flag_spec_CXX \ 13117 thread_safe_flag_spec_CXX \ 13118 whole_archive_flag_spec_CXX \ 13119 enable_shared_with_static_runtimes_CXX \ 13120 old_archive_cmds_CXX \ 13121 old_archive_from_new_cmds_CXX \ 13122 predep_objects_CXX \ 13123 postdep_objects_CXX \ 13124 predeps_CXX \ 13125 postdeps_CXX \ 13126 compiler_lib_search_path_CXX \ 13127 archive_cmds_CXX \ 13128 archive_expsym_cmds_CXX \ 13129 postinstall_cmds_CXX \ 13130 postuninstall_cmds_CXX \ 13131 old_archive_from_expsyms_cmds_CXX \ 13132 allow_undefined_flag_CXX \ 13133 no_undefined_flag_CXX \ 13134 export_symbols_cmds_CXX \ 13135 hardcode_libdir_flag_spec_CXX \ 13136 hardcode_libdir_flag_spec_ld_CXX \ 13137 hardcode_libdir_separator_CXX \ 13138 hardcode_automatic_CXX \ 13139 module_cmds_CXX \ 13140 module_expsym_cmds_CXX \ 13141 lt_cv_prog_compiler_c_o_CXX \ 13142 exclude_expsyms_CXX \ 13143 include_expsyms_CXX; do 13144 13145 case $var in 13146 old_archive_cmds_CXX | \ 13147 old_archive_from_new_cmds_CXX | \ 13148 archive_cmds_CXX | \ 13149 archive_expsym_cmds_CXX | \ 13150 module_cmds_CXX | \ 13151 module_expsym_cmds_CXX | \ 13152 old_archive_from_expsyms_cmds_CXX | \ 13153 export_symbols_cmds_CXX | \ 13154 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13155 postinstall_cmds | postuninstall_cmds | \ 13156 old_postinstall_cmds | old_postuninstall_cmds | \ 13157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13158 # Double-quote double-evaled strings. 13159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13160 ;; 13161 *) 13162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13163 ;; 13164 esac 13165 done 13166 13167 case $lt_echo in 13168 *'\$0 --fallback-echo"') 13169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13170 ;; 13171 esac 13172 13173cfgfile="$ofile" 13174 13175 cat <<__EOF__ >> "$cfgfile" 13176# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13177 13178# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13179 13180# Shell to use when invoking shell scripts. 13181SHELL=$lt_SHELL 13182 13183# Whether or not to build shared libraries. 13184build_libtool_libs=$enable_shared 13185 13186# Whether or not to build static libraries. 13187build_old_libs=$enable_static 13188 13189# Whether or not to add -lc for building shared libraries. 13190build_libtool_need_lc=$archive_cmds_need_lc_CXX 13191 13192# Whether or not to disallow shared libs when runtime libs are static 13193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13194 13195# Whether or not to optimize for fast installation. 13196fast_install=$enable_fast_install 13197 13198# The host system. 13199host_alias=$host_alias 13200host=$host 13201host_os=$host_os 13202 13203# The build system. 13204build_alias=$build_alias 13205build=$build 13206build_os=$build_os 13207 13208# An echo program that does not interpret backslashes. 13209echo=$lt_echo 13210 13211# The archiver. 13212AR=$lt_AR 13213AR_FLAGS=$lt_AR_FLAGS 13214 13215# A C compiler. 13216LTCC=$lt_LTCC 13217 13218# LTCC compiler flags. 13219LTCFLAGS=$lt_LTCFLAGS 13220 13221# A language-specific compiler. 13222CC=$lt_compiler_CXX 13223 13224# Is the compiler the GNU C compiler? 13225with_gcc=$GCC_CXX 13226 13227# An ERE matcher. 13228EGREP=$lt_EGREP 13229 13230# The linker used to build libraries. 13231LD=$lt_LD_CXX 13232 13233# Whether we need hard or soft links. 13234LN_S=$lt_LN_S 13235 13236# A BSD-compatible nm program. 13237NM=$lt_NM 13238 13239# A symbol stripping program 13240STRIP=$lt_STRIP 13241 13242# Used to examine libraries when file_magic_cmd begins "file" 13243MAGIC_CMD=$MAGIC_CMD 13244 13245# Used on cygwin: DLL creation program. 13246DLLTOOL="$DLLTOOL" 13247 13248# Used on cygwin: object dumper. 13249OBJDUMP="$OBJDUMP" 13250 13251# Used on cygwin: assembler. 13252AS="$AS" 13253 13254# The name of the directory that contains temporary libtool files. 13255objdir=$objdir 13256 13257# How to create reloadable object files. 13258reload_flag=$lt_reload_flag 13259reload_cmds=$lt_reload_cmds 13260 13261# How to pass a linker flag through the compiler. 13262wl=$lt_lt_prog_compiler_wl_CXX 13263 13264# Object file suffix (normally "o"). 13265objext="$ac_objext" 13266 13267# Old archive suffix (normally "a"). 13268libext="$libext" 13269 13270# Shared library suffix (normally ".so"). 13271shrext_cmds='$shrext_cmds' 13272 13273# Executable file suffix (normally ""). 13274exeext="$exeext" 13275 13276# Additional compiler flags for building library objects. 13277pic_flag=$lt_lt_prog_compiler_pic_CXX 13278pic_mode=$pic_mode 13279 13280# What is the maximum length of a command? 13281max_cmd_len=$lt_cv_sys_max_cmd_len 13282 13283# Does compiler simultaneously support -c and -o options? 13284compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13285 13286# Must we lock files when doing compilation? 13287need_locks=$lt_need_locks 13288 13289# Do we need the lib prefix for modules? 13290need_lib_prefix=$need_lib_prefix 13291 13292# Do we need a version for libraries? 13293need_version=$need_version 13294 13295# Whether dlopen is supported. 13296dlopen_support=$enable_dlopen 13297 13298# Whether dlopen of programs is supported. 13299dlopen_self=$enable_dlopen_self 13300 13301# Whether dlopen of statically linked programs is supported. 13302dlopen_self_static=$enable_dlopen_self_static 13303 13304# Compiler flag to prevent dynamic linking. 13305link_static_flag=$lt_lt_prog_compiler_static_CXX 13306 13307# Compiler flag to turn off builtin functions. 13308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13309 13310# Compiler flag to allow reflexive dlopens. 13311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13312 13313# Compiler flag to generate shared objects directly from archives. 13314whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13315 13316# Compiler flag to generate thread-safe objects. 13317thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13318 13319# Library versioning type. 13320version_type=$version_type 13321 13322# Format of library name prefix. 13323libname_spec=$lt_libname_spec 13324 13325# List of archive names. First name is the real one, the rest are links. 13326# The last name is the one that the linker finds with -lNAME. 13327library_names_spec=$lt_library_names_spec 13328 13329# The coded name of the library, if different from the real name. 13330soname_spec=$lt_soname_spec 13331 13332# Commands used to build and install an old-style archive. 13333RANLIB=$lt_RANLIB 13334old_archive_cmds=$lt_old_archive_cmds_CXX 13335old_postinstall_cmds=$lt_old_postinstall_cmds 13336old_postuninstall_cmds=$lt_old_postuninstall_cmds 13337 13338# Create an old-style archive from a shared archive. 13339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13340 13341# Create a temporary old-style archive to link instead of a shared archive. 13342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13343 13344# Commands used to build and install a shared archive. 13345archive_cmds=$lt_archive_cmds_CXX 13346archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13347postinstall_cmds=$lt_postinstall_cmds 13348postuninstall_cmds=$lt_postuninstall_cmds 13349 13350# Commands used to build a loadable module (assumed same as above if empty) 13351module_cmds=$lt_module_cmds_CXX 13352module_expsym_cmds=$lt_module_expsym_cmds_CXX 13353 13354# Commands to strip libraries. 13355old_striplib=$lt_old_striplib 13356striplib=$lt_striplib 13357 13358# Dependencies to place before the objects being linked to create a 13359# shared library. 13360predep_objects=$lt_predep_objects_CXX 13361 13362# Dependencies to place after the objects being linked to create a 13363# shared library. 13364postdep_objects=$lt_postdep_objects_CXX 13365 13366# Dependencies to place before the objects being linked to create a 13367# shared library. 13368predeps=$lt_predeps_CXX 13369 13370# Dependencies to place after the objects being linked to create a 13371# shared library. 13372postdeps=$lt_postdeps_CXX 13373 13374# The library search path used internally by the compiler when linking 13375# a shared library. 13376compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13377 13378# Method to check whether dependent libraries are shared objects. 13379deplibs_check_method=$lt_deplibs_check_method 13380 13381# Command to use when deplibs_check_method == file_magic. 13382file_magic_cmd=$lt_file_magic_cmd 13383 13384# Flag that allows shared libraries with undefined symbols to be built. 13385allow_undefined_flag=$lt_allow_undefined_flag_CXX 13386 13387# Flag that forces no undefined symbols. 13388no_undefined_flag=$lt_no_undefined_flag_CXX 13389 13390# Commands used to finish a libtool library installation in a directory. 13391finish_cmds=$lt_finish_cmds 13392 13393# Same as above, but a single script fragment to be evaled but not shown. 13394finish_eval=$lt_finish_eval 13395 13396# Take the output of nm and produce a listing of raw symbols and C names. 13397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13398 13399# Transform the output of nm in a proper C declaration 13400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13401 13402# Transform the output of nm in a C name address pair 13403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13404 13405# This is the shared library runtime path variable. 13406runpath_var=$runpath_var 13407 13408# This is the shared library path variable. 13409shlibpath_var=$shlibpath_var 13410 13411# Is shlibpath searched before the hard-coded library search path? 13412shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13413 13414# How to hardcode a shared library path into an executable. 13415hardcode_action=$hardcode_action_CXX 13416 13417# Whether we should hardcode library paths into libraries. 13418hardcode_into_libs=$hardcode_into_libs 13419 13420# Flag to hardcode \$libdir into a binary during linking. 13421# This must work even if \$libdir does not exist. 13422hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13423 13424# If ld is used when linking, flag to hardcode \$libdir into 13425# a binary during linking. This must work even if \$libdir does 13426# not exist. 13427hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13428 13429# Whether we need a single -rpath flag with a separated argument. 13430hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13431 13432# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13433# resulting binary. 13434hardcode_direct=$hardcode_direct_CXX 13435 13436# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13437# resulting binary. 13438hardcode_minus_L=$hardcode_minus_L_CXX 13439 13440# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13441# the resulting binary. 13442hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13443 13444# Set to yes if building a shared library automatically hardcodes DIR into the library 13445# and all subsequent libraries and executables linked against it. 13446hardcode_automatic=$hardcode_automatic_CXX 13447 13448# Variables whose values should be saved in libtool wrapper scripts and 13449# restored at relink time. 13450variables_saved_for_relink="$variables_saved_for_relink" 13451 13452# Whether libtool must link a program against all its dependency libraries. 13453link_all_deplibs=$link_all_deplibs_CXX 13454 13455# Compile-time system search path for libraries 13456sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13457 13458# Run-time system search path for libraries 13459sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13460 13461# Fix the shell variable \$srcfile for the compiler. 13462fix_srcfile_path="$fix_srcfile_path_CXX" 13463 13464# Set to yes if exported symbols are required. 13465always_export_symbols=$always_export_symbols_CXX 13466 13467# The commands to list exported symbols. 13468export_symbols_cmds=$lt_export_symbols_cmds_CXX 13469 13470# The commands to extract the exported symbol list from a shared archive. 13471extract_expsyms_cmds=$lt_extract_expsyms_cmds 13472 13473# Symbols that should not be listed in the preloaded symbols. 13474exclude_expsyms=$lt_exclude_expsyms_CXX 13475 13476# Symbols that must always be exported. 13477include_expsyms=$lt_include_expsyms_CXX 13478 13479# ### END LIBTOOL TAG CONFIG: $tagname 13480 13481__EOF__ 13482 13483 13484else 13485 # If there is no Makefile yet, we rely on a make rule to execute 13486 # `config.status --recheck' to rerun these tests and create the 13487 # libtool script then. 13488 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13489 if test -f "$ltmain_in"; then 13490 test -f Makefile && make "$ltmain" 13491 fi 13492fi 13493 13494 13495ac_ext=c 13496ac_cpp='$CPP $CPPFLAGS' 13497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13499ac_compiler_gnu=$ac_cv_c_compiler_gnu 13500 13501CC=$lt_save_CC 13502LDCXX=$LD 13503LD=$lt_save_LD 13504GCC=$lt_save_GCC 13505with_gnu_ldcxx=$with_gnu_ld 13506with_gnu_ld=$lt_save_with_gnu_ld 13507lt_cv_path_LDCXX=$lt_cv_path_LD 13508lt_cv_path_LD=$lt_save_path_LD 13509lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13510lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13511 13512 else 13513 tagname="" 13514 fi 13515 ;; 13516 13517 F77) 13518 if test -n "$F77" && test "X$F77" != "Xno"; then 13519 13520ac_ext=f 13521ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13522ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13523ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13524 13525 13526archive_cmds_need_lc_F77=no 13527allow_undefined_flag_F77= 13528always_export_symbols_F77=no 13529archive_expsym_cmds_F77= 13530export_dynamic_flag_spec_F77= 13531hardcode_direct_F77=no 13532hardcode_libdir_flag_spec_F77= 13533hardcode_libdir_flag_spec_ld_F77= 13534hardcode_libdir_separator_F77= 13535hardcode_minus_L_F77=no 13536hardcode_automatic_F77=no 13537module_cmds_F77= 13538module_expsym_cmds_F77= 13539link_all_deplibs_F77=unknown 13540old_archive_cmds_F77=$old_archive_cmds 13541no_undefined_flag_F77= 13542whole_archive_flag_spec_F77= 13543enable_shared_with_static_runtimes_F77=no 13544 13545# Source file extension for f77 test sources. 13546ac_ext=f 13547 13548# Object file extension for compiled f77 test sources. 13549objext=o 13550objext_F77=$objext 13551 13552# Code to be used in simple compile tests 13553lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13554 13555# Code to be used in simple link tests 13556lt_simple_link_test_code=" program t\n end\n" 13557 13558# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13559 13560# If no C compiler was specified, use CC. 13561LTCC=${LTCC-"$CC"} 13562 13563# If no C compiler flags were specified, use CFLAGS. 13564LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13565 13566# Allow CC to be a program name with arguments. 13567compiler=$CC 13568 13569 13570# save warnings/boilerplate of simple test code 13571ac_outfile=conftest.$ac_objext 13572printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13573eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13574_lt_compiler_boilerplate=`cat conftest.err` 13575$rm conftest* 13576 13577ac_outfile=conftest.$ac_objext 13578printf "$lt_simple_link_test_code" >conftest.$ac_ext 13579eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13580_lt_linker_boilerplate=`cat conftest.err` 13581$rm conftest* 13582 13583 13584# Allow CC to be a program name with arguments. 13585lt_save_CC="$CC" 13586CC=${F77-"f77"} 13587compiler=$CC 13588compiler_F77=$CC 13589for cc_temp in $compiler""; do 13590 case $cc_temp in 13591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13593 \-*) ;; 13594 *) break;; 13595 esac 13596done 13597cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13598 13599 13600{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13601echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13602{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13603echo "${ECHO_T}$can_build_shared" >&6; } 13604 13605{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13606echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13607test "$can_build_shared" = "no" && enable_shared=no 13608 13609# On AIX, shared libraries and static libraries use the same namespace, and 13610# are all built from PIC. 13611case $host_os in 13612aix3*) 13613 test "$enable_shared" = yes && enable_static=no 13614 if test -n "$RANLIB"; then 13615 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13616 postinstall_cmds='$RANLIB $lib' 13617 fi 13618 ;; 13619aix4* | aix5*) 13620 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13621 test "$enable_shared" = yes && enable_static=no 13622 fi 13623 ;; 13624esac 13625{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13626echo "${ECHO_T}$enable_shared" >&6; } 13627 13628{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13629echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13630# Make sure either enable_shared or enable_static is yes. 13631test "$enable_shared" = yes || enable_static=yes 13632{ echo "$as_me:$LINENO: result: $enable_static" >&5 13633echo "${ECHO_T}$enable_static" >&6; } 13634 13635GCC_F77="$G77" 13636LD_F77="$LD" 13637 13638lt_prog_compiler_wl_F77= 13639lt_prog_compiler_pic_F77= 13640lt_prog_compiler_static_F77= 13641 13642{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13643echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13644 13645 if test "$GCC" = yes; then 13646 lt_prog_compiler_wl_F77='-Wl,' 13647 lt_prog_compiler_static_F77='-static' 13648 13649 case $host_os in 13650 aix*) 13651 # All AIX code is PIC. 13652 if test "$host_cpu" = ia64; then 13653 # AIX 5 now supports IA64 processor 13654 lt_prog_compiler_static_F77='-Bstatic' 13655 fi 13656 ;; 13657 13658 amigaos*) 13659 # FIXME: we need at least 68020 code to build shared libraries, but 13660 # adding the `-m68020' flag to GCC prevents building anything better, 13661 # like `-m68040'. 13662 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13663 ;; 13664 13665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13666 # PIC is the default for these OSes. 13667 ;; 13668 13669 mingw* | cygwin* | pw32* | os2*) 13670 # This hack is so that the source file can tell whether it is being 13671 # built for inclusion in a dll (and should export symbols for example). 13672 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13673 # (--disable-auto-import) libraries 13674 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13675 ;; 13676 13677 darwin* | rhapsody*) 13678 # PIC is the default on this platform 13679 # Common symbols not allowed in MH_DYLIB files 13680 lt_prog_compiler_pic_F77='-fno-common' 13681 ;; 13682 13683 interix3*) 13684 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13685 # Instead, we relocate shared libraries at runtime. 13686 ;; 13687 13688 msdosdjgpp*) 13689 # Just because we use GCC doesn't mean we suddenly get shared libraries 13690 # on systems that don't support them. 13691 lt_prog_compiler_can_build_shared_F77=no 13692 enable_shared=no 13693 ;; 13694 13695 sysv4*MP*) 13696 if test -d /usr/nec; then 13697 lt_prog_compiler_pic_F77=-Kconform_pic 13698 fi 13699 ;; 13700 13701 hpux*) 13702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13703 # not for PA HP-UX. 13704 case $host_cpu in 13705 hppa*64*|ia64*) 13706 # +Z the default 13707 ;; 13708 *) 13709 lt_prog_compiler_pic_F77='-fPIC' 13710 ;; 13711 esac 13712 ;; 13713 13714 *) 13715 lt_prog_compiler_pic_F77='-fPIC' 13716 ;; 13717 esac 13718 else 13719 # PORTME Check for flag to pass linker flags through the system compiler. 13720 case $host_os in 13721 aix*) 13722 lt_prog_compiler_wl_F77='-Wl,' 13723 if test "$host_cpu" = ia64; then 13724 # AIX 5 now supports IA64 processor 13725 lt_prog_compiler_static_F77='-Bstatic' 13726 else 13727 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13728 fi 13729 ;; 13730 darwin*) 13731 # PIC is the default on this platform 13732 # Common symbols not allowed in MH_DYLIB files 13733 case $cc_basename in 13734 xlc*) 13735 lt_prog_compiler_pic_F77='-qnocommon' 13736 lt_prog_compiler_wl_F77='-Wl,' 13737 ;; 13738 esac 13739 ;; 13740 13741 mingw* | cygwin* | pw32* | os2*) 13742 # This hack is so that the source file can tell whether it is being 13743 # built for inclusion in a dll (and should export symbols for example). 13744 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13745 # (--disable-auto-import) libraries 13746 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13747 ;; 13748 13749 hpux9* | hpux10* | hpux11*) 13750 lt_prog_compiler_wl_F77='-Wl,' 13751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13752 # not for PA HP-UX. 13753 case $host_cpu in 13754 hppa*64*|ia64*) 13755 # +Z the default 13756 ;; 13757 *) 13758 lt_prog_compiler_pic_F77='+Z' 13759 ;; 13760 esac 13761 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13762 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13763 ;; 13764 13765 irix5* | irix6* | nonstopux*) 13766 lt_prog_compiler_wl_F77='-Wl,' 13767 # PIC (with -KPIC) is the default. 13768 lt_prog_compiler_static_F77='-non_shared' 13769 ;; 13770 13771 newsos6) 13772 lt_prog_compiler_pic_F77='-KPIC' 13773 lt_prog_compiler_static_F77='-Bstatic' 13774 ;; 13775 13776 linux*) 13777 case $cc_basename in 13778 icc* | ecc*) 13779 lt_prog_compiler_wl_F77='-Wl,' 13780 lt_prog_compiler_pic_F77='-KPIC' 13781 lt_prog_compiler_static_F77='-static' 13782 ;; 13783 pgcc* | pgf77* | pgf90* | pgf95*) 13784 # Portland Group compilers (*not* the Pentium gcc compiler, 13785 # which looks to be a dead project) 13786 lt_prog_compiler_wl_F77='-Wl,' 13787 lt_prog_compiler_pic_F77='-fpic' 13788 lt_prog_compiler_static_F77='-Bstatic' 13789 ;; 13790 ccc*) 13791 lt_prog_compiler_wl_F77='-Wl,' 13792 # All Alpha code is PIC. 13793 lt_prog_compiler_static_F77='-non_shared' 13794 ;; 13795 como) 13796 lt_prog_compiler_wl_F77='-lopt=' 13797 ;; 13798 *) 13799 case `$CC -V 2>&1 | sed 5q` in 13800 *Sun\ C*) 13801 # Sun C 5.9 13802 lt_prog_compiler_pic_F77='-KPIC' 13803 lt_prog_compiler_static_F77='-Bstatic' 13804 lt_prog_compiler_wl_F77='-Wl,' 13805 ;; 13806 *Sun\ F*) 13807 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13808 lt_prog_compiler_pic_F77='-KPIC' 13809 lt_prog_compiler_static_F77='-Bstatic' 13810 lt_prog_compiler_wl_F77='' 13811 ;; 13812 esac 13813 ;; 13814 esac 13815 ;; 13816 13817 osf3* | osf4* | osf5*) 13818 lt_prog_compiler_wl_F77='-Wl,' 13819 # All OSF/1 code is PIC. 13820 lt_prog_compiler_static_F77='-non_shared' 13821 ;; 13822 13823 solaris*) 13824 lt_prog_compiler_pic_F77='-KPIC' 13825 lt_prog_compiler_static_F77='-Bstatic' 13826 case $cc_basename in 13827 f77* | f90* | f95*) 13828 lt_prog_compiler_wl_F77='-Qoption ld ';; 13829 *) 13830 lt_prog_compiler_wl_F77='-Wl,';; 13831 esac 13832 ;; 13833 13834 sunos4*) 13835 lt_prog_compiler_wl_F77='-Qoption ld ' 13836 lt_prog_compiler_pic_F77='-PIC' 13837 lt_prog_compiler_static_F77='-Bstatic' 13838 ;; 13839 13840 sysv4 | sysv4.2uw2* | sysv4.3*) 13841 lt_prog_compiler_wl_F77='-Wl,' 13842 lt_prog_compiler_pic_F77='-KPIC' 13843 lt_prog_compiler_static_F77='-Bstatic' 13844 ;; 13845 13846 sysv4*MP*) 13847 if test -d /usr/nec ;then 13848 lt_prog_compiler_pic_F77='-Kconform_pic' 13849 lt_prog_compiler_static_F77='-Bstatic' 13850 fi 13851 ;; 13852 13853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13854 lt_prog_compiler_wl_F77='-Wl,' 13855 lt_prog_compiler_pic_F77='-KPIC' 13856 lt_prog_compiler_static_F77='-Bstatic' 13857 ;; 13858 13859 unicos*) 13860 lt_prog_compiler_wl_F77='-Wl,' 13861 lt_prog_compiler_can_build_shared_F77=no 13862 ;; 13863 13864 uts4*) 13865 lt_prog_compiler_pic_F77='-pic' 13866 lt_prog_compiler_static_F77='-Bstatic' 13867 ;; 13868 13869 *) 13870 lt_prog_compiler_can_build_shared_F77=no 13871 ;; 13872 esac 13873 fi 13874 13875{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13876echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13877 13878# 13879# Check to make sure the PIC flag actually works. 13880# 13881if test -n "$lt_prog_compiler_pic_F77"; then 13882 13883{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13884echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13885if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13886 echo $ECHO_N "(cached) $ECHO_C" >&6 13887else 13888 lt_prog_compiler_pic_works_F77=no 13889 ac_outfile=conftest.$ac_objext 13890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13891 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13892 # Insert the option either (1) after the last *FLAGS variable, or 13893 # (2) before a word containing "conftest.", or (3) at the end. 13894 # Note that $ac_compile itself does not contain backslashes and begins 13895 # with a dollar sign (not a hyphen), so the echo should work correctly. 13896 # The option is referenced via a variable to avoid confusing sed. 13897 lt_compile=`echo "$ac_compile" | $SED \ 13898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13900 -e 's:$: $lt_compiler_flag:'` 13901 (eval echo "\"\$as_me:13901: $lt_compile\"" >&5) 13902 (eval "$lt_compile" 2>conftest.err) 13903 ac_status=$? 13904 cat conftest.err >&5 13905 echo "$as_me:13905: \$? = $ac_status" >&5 13906 if (exit $ac_status) && test -s "$ac_outfile"; then 13907 # The compiler can only warn and ignore the option if not recognized 13908 # So say no if there are warnings other than the usual output. 13909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13912 lt_prog_compiler_pic_works_F77=yes 13913 fi 13914 fi 13915 $rm conftest* 13916 13917fi 13918{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13919echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13920 13921if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13922 case $lt_prog_compiler_pic_F77 in 13923 "" | " "*) ;; 13924 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13925 esac 13926else 13927 lt_prog_compiler_pic_F77= 13928 lt_prog_compiler_can_build_shared_F77=no 13929fi 13930 13931fi 13932case $host_os in 13933 # For platforms which do not support PIC, -DPIC is meaningless: 13934 *djgpp*) 13935 lt_prog_compiler_pic_F77= 13936 ;; 13937 *) 13938 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13939 ;; 13940esac 13941 13942# 13943# Check to make sure the static flag actually works. 13944# 13945wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13946{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13947echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13948if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13949 echo $ECHO_N "(cached) $ECHO_C" >&6 13950else 13951 lt_prog_compiler_static_works_F77=no 13952 save_LDFLAGS="$LDFLAGS" 13953 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13954 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13956 # The linker can only warn and ignore the option if not recognized 13957 # So say no if there are warnings 13958 if test -s conftest.err; then 13959 # Append any errors to the config.log. 13960 cat conftest.err 1>&5 13961 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13963 if diff conftest.exp conftest.er2 >/dev/null; then 13964 lt_prog_compiler_static_works_F77=yes 13965 fi 13966 else 13967 lt_prog_compiler_static_works_F77=yes 13968 fi 13969 fi 13970 $rm conftest* 13971 LDFLAGS="$save_LDFLAGS" 13972 13973fi 13974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13975echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13976 13977if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13978 : 13979else 13980 lt_prog_compiler_static_F77= 13981fi 13982 13983 13984{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13985echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13986if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13987 echo $ECHO_N "(cached) $ECHO_C" >&6 13988else 13989 lt_cv_prog_compiler_c_o_F77=no 13990 $rm -r conftest 2>/dev/null 13991 mkdir conftest 13992 cd conftest 13993 mkdir out 13994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13995 13996 lt_compiler_flag="-o out/conftest2.$ac_objext" 13997 # Insert the option either (1) after the last *FLAGS variable, or 13998 # (2) before a word containing "conftest.", or (3) at the end. 13999 # Note that $ac_compile itself does not contain backslashes and begins 14000 # with a dollar sign (not a hyphen), so the echo should work correctly. 14001 lt_compile=`echo "$ac_compile" | $SED \ 14002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14004 -e 's:$: $lt_compiler_flag:'` 14005 (eval echo "\"\$as_me:14005: $lt_compile\"" >&5) 14006 (eval "$lt_compile" 2>out/conftest.err) 14007 ac_status=$? 14008 cat out/conftest.err >&5 14009 echo "$as_me:14009: \$? = $ac_status" >&5 14010 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14011 then 14012 # The compiler can only warn and ignore the option if not recognized 14013 # So say no if there are warnings 14014 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14017 lt_cv_prog_compiler_c_o_F77=yes 14018 fi 14019 fi 14020 chmod u+w . 2>&5 14021 $rm conftest* 14022 # SGI C++ compiler will create directory out/ii_files/ for 14023 # template instantiation 14024 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14025 $rm out/* && rmdir out 14026 cd .. 14027 rmdir conftest 14028 $rm conftest* 14029 14030fi 14031{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14032echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14033 14034 14035hard_links="nottested" 14036if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14037 # do not overwrite the value of need_locks provided by the user 14038 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14039echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14040 hard_links=yes 14041 $rm conftest* 14042 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14043 touch conftest.a 14044 ln conftest.a conftest.b 2>&5 || hard_links=no 14045 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14046 { echo "$as_me:$LINENO: result: $hard_links" >&5 14047echo "${ECHO_T}$hard_links" >&6; } 14048 if test "$hard_links" = no; then 14049 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14050echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14051 need_locks=warn 14052 fi 14053else 14054 need_locks=no 14055fi 14056 14057{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14059 14060 runpath_var= 14061 allow_undefined_flag_F77= 14062 enable_shared_with_static_runtimes_F77=no 14063 archive_cmds_F77= 14064 archive_expsym_cmds_F77= 14065 old_archive_From_new_cmds_F77= 14066 old_archive_from_expsyms_cmds_F77= 14067 export_dynamic_flag_spec_F77= 14068 whole_archive_flag_spec_F77= 14069 thread_safe_flag_spec_F77= 14070 hardcode_libdir_flag_spec_F77= 14071 hardcode_libdir_flag_spec_ld_F77= 14072 hardcode_libdir_separator_F77= 14073 hardcode_direct_F77=no 14074 hardcode_minus_L_F77=no 14075 hardcode_shlibpath_var_F77=unsupported 14076 link_all_deplibs_F77=unknown 14077 hardcode_automatic_F77=no 14078 module_cmds_F77= 14079 module_expsym_cmds_F77= 14080 always_export_symbols_F77=no 14081 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14082 # include_expsyms should be a list of space-separated symbols to be *always* 14083 # included in the symbol list 14084 include_expsyms_F77= 14085 # exclude_expsyms can be an extended regexp of symbols to exclude 14086 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14088 # as well as any symbol that contains `d'. 14089 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14091 # platforms (ab)use it in PIC code, but their linkers get confused if 14092 # the symbol is explicitly referenced. Since portable code cannot 14093 # rely on this symbol name, it's probably fine to never include it in 14094 # preloaded symbol tables. 14095 extract_expsyms_cmds= 14096 # Just being paranoid about ensuring that cc_basename is set. 14097 for cc_temp in $compiler""; do 14098 case $cc_temp in 14099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14101 \-*) ;; 14102 *) break;; 14103 esac 14104done 14105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14106 14107 case $host_os in 14108 cygwin* | mingw* | pw32*) 14109 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14110 # When not using gcc, we currently assume that we are using 14111 # Microsoft Visual C++. 14112 if test "$GCC" != yes; then 14113 with_gnu_ld=no 14114 fi 14115 ;; 14116 interix*) 14117 # we just hope/assume this is gcc and not c89 (= MSVC++) 14118 with_gnu_ld=yes 14119 ;; 14120 openbsd*) 14121 with_gnu_ld=no 14122 ;; 14123 esac 14124 14125 ld_shlibs_F77=yes 14126 if test "$with_gnu_ld" = yes; then 14127 # If archive_cmds runs LD, not CC, wlarc should be empty 14128 wlarc='${wl}' 14129 14130 # Set some defaults for GNU ld with shared library support. These 14131 # are reset later if shared libraries are not supported. Putting them 14132 # here allows them to be overridden if necessary. 14133 runpath_var=LD_RUN_PATH 14134 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14135 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14136 # ancient GNU ld didn't support --whole-archive et. al. 14137 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14138 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14139 else 14140 whole_archive_flag_spec_F77= 14141 fi 14142 supports_anon_versioning=no 14143 case `$LD -v 2>/dev/null` in 14144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14147 *\ 2.11.*) ;; # other 2.11 versions 14148 *) supports_anon_versioning=yes ;; 14149 esac 14150 14151 # See if GNU ld supports shared libraries. 14152 case $host_os in 14153 aix3* | aix4* | aix5*) 14154 # On AIX/PPC, the GNU linker is very broken 14155 if test "$host_cpu" != ia64; then 14156 ld_shlibs_F77=no 14157 cat <<EOF 1>&2 14158 14159*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14160*** to be unable to reliably create shared libraries on AIX. 14161*** Therefore, libtool is disabling shared libraries support. If you 14162*** really care for shared libraries, you may want to modify your PATH 14163*** so that a non-GNU linker is found, and then restart. 14164 14165EOF 14166 fi 14167 ;; 14168 14169 amigaos*) 14170 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)' 14171 hardcode_libdir_flag_spec_F77='-L$libdir' 14172 hardcode_minus_L_F77=yes 14173 14174 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14175 # that the semantics of dynamic libraries on AmigaOS, at least up 14176 # to version 4, is to share data among multiple programs linked 14177 # with the same dynamic library. Since this doesn't match the 14178 # behavior of shared libraries on other platforms, we can't use 14179 # them. 14180 ld_shlibs_F77=no 14181 ;; 14182 14183 beos*) 14184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14185 allow_undefined_flag_F77=unsupported 14186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14187 # support --undefined. This deserves some investigation. FIXME 14188 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14189 else 14190 ld_shlibs_F77=no 14191 fi 14192 ;; 14193 14194 cygwin* | mingw* | pw32*) 14195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14196 # as there is no search path for DLLs. 14197 hardcode_libdir_flag_spec_F77='-L$libdir' 14198 allow_undefined_flag_F77=unsupported 14199 always_export_symbols_F77=no 14200 enable_shared_with_static_runtimes_F77=yes 14201 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14202 14203 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14204 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14205 # If the export-symbols file already is a .def file (1st line 14206 # is EXPORTS), use it as is; otherwise, prepend... 14207 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14208 cp $export_symbols $output_objdir/$soname.def; 14209 else 14210 echo EXPORTS > $output_objdir/$soname.def; 14211 cat $export_symbols >> $output_objdir/$soname.def; 14212 fi~ 14213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14214 else 14215 ld_shlibs_F77=no 14216 fi 14217 ;; 14218 14219 interix3*) 14220 hardcode_direct_F77=no 14221 hardcode_shlibpath_var_F77=no 14222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14223 export_dynamic_flag_spec_F77='${wl}-E' 14224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14225 # Instead, shared libraries are loaded at an image base (0x10000000 by 14226 # default) and relocated if they conflict, which is a slow very memory 14227 # consuming and fragmenting process. To avoid this, we pick a random, 14228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14229 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14230 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' 14231 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' 14232 ;; 14233 14234 linux*) 14235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14236 tmp_addflag= 14237 case $cc_basename,$host_cpu in 14238 pgcc*) # Portland Group C compiler 14239 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' 14240 tmp_addflag=' $pic_flag' 14241 ;; 14242 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14243 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' 14244 tmp_addflag=' $pic_flag -Mnomain' ;; 14245 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14246 tmp_addflag=' -i_dynamic' ;; 14247 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14248 tmp_addflag=' -i_dynamic -nofor_main' ;; 14249 ifc* | ifort*) # Intel Fortran compiler 14250 tmp_addflag=' -nofor_main' ;; 14251 esac 14252 case `$CC -V 2>&1 | sed 5q` in 14253 *Sun\ C*) # Sun C 5.9 14254 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 14255 tmp_sharedflag='-G' ;; 14256 *Sun\ F*) # Sun Fortran 8.3 14257 tmp_sharedflag='-G' ;; 14258 *) 14259 tmp_sharedflag='-shared' ;; 14260 esac 14261 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14262 14263 if test $supports_anon_versioning = yes; then 14264 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14266 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14268 fi 14269 else 14270 ld_shlibs_F77=no 14271 fi 14272 ;; 14273 14274 netbsd*) 14275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14276 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14277 wlarc= 14278 else 14279 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14280 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14281 fi 14282 ;; 14283 14284 solaris*) 14285 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14286 ld_shlibs_F77=no 14287 cat <<EOF 1>&2 14288 14289*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14290*** create shared libraries on Solaris systems. Therefore, libtool 14291*** is disabling shared libraries support. We urge you to upgrade GNU 14292*** binutils to release 2.9.1 or newer. Another option is to modify 14293*** your PATH or compiler configuration so that the native linker is 14294*** used, and then restart. 14295 14296EOF 14297 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14299 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14300 else 14301 ld_shlibs_F77=no 14302 fi 14303 ;; 14304 14305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14306 case `$LD -v 2>&1` in 14307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14308 ld_shlibs_F77=no 14309 cat <<_LT_EOF 1>&2 14310 14311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14312*** reliably create shared libraries on SCO systems. Therefore, libtool 14313*** is disabling shared libraries support. We urge you to upgrade GNU 14314*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14315*** your PATH or compiler configuration so that the native linker is 14316*** used, and then restart. 14317 14318_LT_EOF 14319 ;; 14320 *) 14321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14322 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14323 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14324 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14325 else 14326 ld_shlibs_F77=no 14327 fi 14328 ;; 14329 esac 14330 ;; 14331 14332 sunos4*) 14333 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14334 wlarc= 14335 hardcode_direct_F77=yes 14336 hardcode_shlibpath_var_F77=no 14337 ;; 14338 14339 *) 14340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14341 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14342 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14343 else 14344 ld_shlibs_F77=no 14345 fi 14346 ;; 14347 esac 14348 14349 if test "$ld_shlibs_F77" = no; then 14350 runpath_var= 14351 hardcode_libdir_flag_spec_F77= 14352 export_dynamic_flag_spec_F77= 14353 whole_archive_flag_spec_F77= 14354 fi 14355 else 14356 # PORTME fill in a description of your system's linker (not GNU ld) 14357 case $host_os in 14358 aix3*) 14359 allow_undefined_flag_F77=unsupported 14360 always_export_symbols_F77=yes 14361 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' 14362 # Note: this linker hardcodes the directories in LIBPATH if there 14363 # are no directories specified by -L. 14364 hardcode_minus_L_F77=yes 14365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14366 # Neither direct hardcoding nor static linking is supported with a 14367 # broken collect2. 14368 hardcode_direct_F77=unsupported 14369 fi 14370 ;; 14371 14372 aix4* | aix5*) 14373 if test "$host_cpu" = ia64; then 14374 # On IA64, the linker does run time linking by default, so we don't 14375 # have to do anything special. 14376 aix_use_runtimelinking=no 14377 exp_sym_flag='-Bexport' 14378 no_entry_flag="" 14379 else 14380 # If we're using GNU nm, then we don't want the "-C" option. 14381 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14382 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14383 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' 14384 else 14385 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' 14386 fi 14387 aix_use_runtimelinking=no 14388 14389 # Test if we are trying to use run time linking or normal 14390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14391 # need to do runtime linking. 14392 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14393 for ld_flag in $LDFLAGS; do 14394 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14395 aix_use_runtimelinking=yes 14396 break 14397 fi 14398 done 14399 ;; 14400 esac 14401 14402 exp_sym_flag='-bexport' 14403 no_entry_flag='-bnoentry' 14404 fi 14405 14406 # When large executables or shared objects are built, AIX ld can 14407 # have problems creating the table of contents. If linking a library 14408 # or program results in "error TOC overflow" add -mminimal-toc to 14409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14411 14412 archive_cmds_F77='' 14413 hardcode_direct_F77=yes 14414 hardcode_libdir_separator_F77=':' 14415 link_all_deplibs_F77=yes 14416 14417 if test "$GCC" = yes; then 14418 case $host_os in aix4.[012]|aix4.[012].*) 14419 # We only want to do this on AIX 4.2 and lower, the check 14420 # below for broken collect2 doesn't work under 4.3+ 14421 collect2name=`${CC} -print-prog-name=collect2` 14422 if test -f "$collect2name" && \ 14423 strings "$collect2name" | grep resolve_lib_name >/dev/null 14424 then 14425 # We have reworked collect2 14426 hardcode_direct_F77=yes 14427 else 14428 # We have old collect2 14429 hardcode_direct_F77=unsupported 14430 # It fails to find uninstalled libraries when the uninstalled 14431 # path is not listed in the libpath. Setting hardcode_minus_L 14432 # to unsupported forces relinking 14433 hardcode_minus_L_F77=yes 14434 hardcode_libdir_flag_spec_F77='-L$libdir' 14435 hardcode_libdir_separator_F77= 14436 fi 14437 ;; 14438 esac 14439 shared_flag='-shared' 14440 if test "$aix_use_runtimelinking" = yes; then 14441 shared_flag="$shared_flag "'${wl}-G' 14442 fi 14443 else 14444 # not using gcc 14445 if test "$host_cpu" = ia64; then 14446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14447 # chokes on -Wl,-G. The following line is correct: 14448 shared_flag='-G' 14449 else 14450 if test "$aix_use_runtimelinking" = yes; then 14451 shared_flag='${wl}-G' 14452 else 14453 shared_flag='${wl}-bM:SRE' 14454 fi 14455 fi 14456 fi 14457 14458 # It seems that -bexpall does not export symbols beginning with 14459 # underscore (_), so it is better to generate a list of symbols to export. 14460 always_export_symbols_F77=yes 14461 if test "$aix_use_runtimelinking" = yes; then 14462 # Warning - without using the other runtime loading flags (-brtl), 14463 # -berok will link without error, but may produce a broken library. 14464 allow_undefined_flag_F77='-berok' 14465 # Determine the default libpath from the value encoded in an empty executable. 14466 cat >conftest.$ac_ext <<_ACEOF 14467 program main 14468 14469 end 14470_ACEOF 14471rm -f conftest.$ac_objext conftest$ac_exeext 14472if { (ac_try="$ac_link" 14473case "(($ac_try" in 14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14475 *) ac_try_echo=$ac_try;; 14476esac 14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14478 (eval "$ac_link") 2>conftest.er1 14479 ac_status=$? 14480 grep -v '^ *+' conftest.er1 >conftest.err 14481 rm -f conftest.er1 14482 cat conftest.err >&5 14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14484 (exit $ac_status); } && { 14485 test -z "$ac_f77_werror_flag" || 14486 test ! -s conftest.err 14487 } && test -s conftest$ac_exeext && 14488 $as_test_x conftest$ac_exeext; then 14489 14490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14491}'` 14492# Check for a 64-bit object if we didn't find anything. 14493if 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; } 14494}'`; fi 14495else 14496 echo "$as_me: failed program was:" >&5 14497sed 's/^/| /' conftest.$ac_ext >&5 14498 14499 14500fi 14501 14502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14503 conftest$ac_exeext conftest.$ac_ext 14504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14505 14506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14507 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" 14508 else 14509 if test "$host_cpu" = ia64; then 14510 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14511 allow_undefined_flag_F77="-z nodefs" 14512 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" 14513 else 14514 # Determine the default libpath from the value encoded in an empty executable. 14515 cat >conftest.$ac_ext <<_ACEOF 14516 program main 14517 14518 end 14519_ACEOF 14520rm -f conftest.$ac_objext conftest$ac_exeext 14521if { (ac_try="$ac_link" 14522case "(($ac_try" in 14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14524 *) ac_try_echo=$ac_try;; 14525esac 14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14527 (eval "$ac_link") 2>conftest.er1 14528 ac_status=$? 14529 grep -v '^ *+' conftest.er1 >conftest.err 14530 rm -f conftest.er1 14531 cat conftest.err >&5 14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14533 (exit $ac_status); } && { 14534 test -z "$ac_f77_werror_flag" || 14535 test ! -s conftest.err 14536 } && test -s conftest$ac_exeext && 14537 $as_test_x conftest$ac_exeext; then 14538 14539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14540}'` 14541# Check for a 64-bit object if we didn't find anything. 14542if 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; } 14543}'`; fi 14544else 14545 echo "$as_me: failed program was:" >&5 14546sed 's/^/| /' conftest.$ac_ext >&5 14547 14548 14549fi 14550 14551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14552 conftest$ac_exeext conftest.$ac_ext 14553if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14554 14555 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14556 # Warning - without using the other run time loading flags, 14557 # -berok will link without error, but may produce a broken library. 14558 no_undefined_flag_F77=' ${wl}-bernotok' 14559 allow_undefined_flag_F77=' ${wl}-berok' 14560 # Exported symbols can be pulled into shared objects from archives 14561 whole_archive_flag_spec_F77='$convenience' 14562 archive_cmds_need_lc_F77=yes 14563 # This is similar to how AIX traditionally builds its shared libraries. 14564 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' 14565 fi 14566 fi 14567 ;; 14568 14569 amigaos*) 14570 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)' 14571 hardcode_libdir_flag_spec_F77='-L$libdir' 14572 hardcode_minus_L_F77=yes 14573 # see comment about different semantics on the GNU ld section 14574 ld_shlibs_F77=no 14575 ;; 14576 14577 bsdi[45]*) 14578 export_dynamic_flag_spec_F77=-rdynamic 14579 ;; 14580 14581 cygwin* | mingw* | pw32*) 14582 # When not using gcc, we currently assume that we are using 14583 # Microsoft Visual C++. 14584 # hardcode_libdir_flag_spec is actually meaningless, as there is 14585 # no search path for DLLs. 14586 hardcode_libdir_flag_spec_F77=' ' 14587 allow_undefined_flag_F77=unsupported 14588 # Tell ltmain to make .lib files, not .a files. 14589 libext=lib 14590 # Tell ltmain to make .dll files, not .so files. 14591 shrext_cmds=".dll" 14592 # FIXME: Setting linknames here is a bad hack. 14593 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14594 # The linker will automatically build a .lib file if we build a DLL. 14595 old_archive_From_new_cmds_F77='true' 14596 # FIXME: Should let the user specify the lib program. 14597 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14598 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14599 enable_shared_with_static_runtimes_F77=yes 14600 ;; 14601 14602 darwin* | rhapsody*) 14603 case $host_os in 14604 rhapsody* | darwin1.[012]) 14605 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14606 ;; 14607 *) # Darwin 1.3 on 14608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14609 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14610 else 14611 case ${MACOSX_DEPLOYMENT_TARGET} in 14612 10.[012]) 14613 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14614 ;; 14615 10.*) 14616 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14617 ;; 14618 esac 14619 fi 14620 ;; 14621 esac 14622 archive_cmds_need_lc_F77=no 14623 hardcode_direct_F77=no 14624 hardcode_automatic_F77=yes 14625 hardcode_shlibpath_var_F77=unsupported 14626 whole_archive_flag_spec_F77='' 14627 link_all_deplibs_F77=yes 14628 if test "$GCC" = yes ; then 14629 output_verbose_link_cmd='echo' 14630 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14631 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14633 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}' 14634 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}' 14635 else 14636 case $cc_basename in 14637 xlc*) 14638 output_verbose_link_cmd='echo' 14639 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14640 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14642 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}' 14643 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}' 14644 ;; 14645 *) 14646 ld_shlibs_F77=no 14647 ;; 14648 esac 14649 fi 14650 ;; 14651 14652 dgux*) 14653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14654 hardcode_libdir_flag_spec_F77='-L$libdir' 14655 hardcode_shlibpath_var_F77=no 14656 ;; 14657 14658 freebsd1*) 14659 ld_shlibs_F77=no 14660 ;; 14661 14662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14663 # support. Future versions do this automatically, but an explicit c++rt0.o 14664 # does not break anything, and helps significantly (at the cost of a little 14665 # extra space). 14666 freebsd2.2*) 14667 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14668 hardcode_libdir_flag_spec_F77='-R$libdir' 14669 hardcode_direct_F77=yes 14670 hardcode_shlibpath_var_F77=no 14671 ;; 14672 14673 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14674 freebsd2*) 14675 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14676 hardcode_direct_F77=yes 14677 hardcode_minus_L_F77=yes 14678 hardcode_shlibpath_var_F77=no 14679 ;; 14680 14681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14682 freebsd* | kfreebsd*-gnu | dragonfly*) 14683 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14684 hardcode_libdir_flag_spec_F77='-R$libdir' 14685 hardcode_direct_F77=yes 14686 hardcode_shlibpath_var_F77=no 14687 ;; 14688 14689 hpux9*) 14690 if test "$GCC" = yes; then 14691 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' 14692 else 14693 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' 14694 fi 14695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14696 hardcode_libdir_separator_F77=: 14697 hardcode_direct_F77=yes 14698 14699 # hardcode_minus_L: Not really in the search PATH, 14700 # but as the default location of the library. 14701 hardcode_minus_L_F77=yes 14702 export_dynamic_flag_spec_F77='${wl}-E' 14703 ;; 14704 14705 hpux10*) 14706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14707 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14708 else 14709 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14710 fi 14711 if test "$with_gnu_ld" = no; then 14712 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14713 hardcode_libdir_separator_F77=: 14714 14715 hardcode_direct_F77=yes 14716 export_dynamic_flag_spec_F77='${wl}-E' 14717 14718 # hardcode_minus_L: Not really in the search PATH, 14719 # but as the default location of the library. 14720 hardcode_minus_L_F77=yes 14721 fi 14722 ;; 14723 14724 hpux11*) 14725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14726 case $host_cpu in 14727 hppa*64*) 14728 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14729 ;; 14730 ia64*) 14731 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14732 ;; 14733 *) 14734 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14735 ;; 14736 esac 14737 else 14738 case $host_cpu in 14739 hppa*64*) 14740 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14741 ;; 14742 ia64*) 14743 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14744 ;; 14745 *) 14746 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14747 ;; 14748 esac 14749 fi 14750 if test "$with_gnu_ld" = no; then 14751 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14752 hardcode_libdir_separator_F77=: 14753 14754 case $host_cpu in 14755 hppa*64*|ia64*) 14756 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14757 hardcode_direct_F77=no 14758 hardcode_shlibpath_var_F77=no 14759 ;; 14760 *) 14761 hardcode_direct_F77=yes 14762 export_dynamic_flag_spec_F77='${wl}-E' 14763 14764 # hardcode_minus_L: Not really in the search PATH, 14765 # but as the default location of the library. 14766 hardcode_minus_L_F77=yes 14767 ;; 14768 esac 14769 fi 14770 ;; 14771 14772 irix5* | irix6* | nonstopux*) 14773 if test "$GCC" = yes; then 14774 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' 14775 else 14776 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' 14777 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14778 fi 14779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14780 hardcode_libdir_separator_F77=: 14781 link_all_deplibs_F77=yes 14782 ;; 14783 14784 netbsd*) 14785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14786 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14787 else 14788 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14789 fi 14790 hardcode_libdir_flag_spec_F77='-R$libdir' 14791 hardcode_direct_F77=yes 14792 hardcode_shlibpath_var_F77=no 14793 ;; 14794 14795 newsos6) 14796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14797 hardcode_direct_F77=yes 14798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14799 hardcode_libdir_separator_F77=: 14800 hardcode_shlibpath_var_F77=no 14801 ;; 14802 14803 openbsd*) 14804 hardcode_direct_F77=yes 14805 hardcode_shlibpath_var_F77=no 14806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14807 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14808 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14810 export_dynamic_flag_spec_F77='${wl}-E' 14811 else 14812 case $host_os in 14813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14815 hardcode_libdir_flag_spec_F77='-R$libdir' 14816 ;; 14817 *) 14818 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14820 ;; 14821 esac 14822 fi 14823 ;; 14824 14825 os2*) 14826 hardcode_libdir_flag_spec_F77='-L$libdir' 14827 hardcode_minus_L_F77=yes 14828 allow_undefined_flag_F77=unsupported 14829 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' 14830 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14831 ;; 14832 14833 osf3*) 14834 if test "$GCC" = yes; then 14835 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14836 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' 14837 else 14838 allow_undefined_flag_F77=' -expect_unresolved \*' 14839 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' 14840 fi 14841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14842 hardcode_libdir_separator_F77=: 14843 ;; 14844 14845 osf4* | osf5*) # as osf3* with the addition of -msym flag 14846 if test "$GCC" = yes; then 14847 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14848 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' 14849 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14850 else 14851 allow_undefined_flag_F77=' -expect_unresolved \*' 14852 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' 14853 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~ 14854 $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' 14855 14856 # Both c and cxx compiler support -rpath directly 14857 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14858 fi 14859 hardcode_libdir_separator_F77=: 14860 ;; 14861 14862 solaris*) 14863 no_undefined_flag_F77=' -z text' 14864 if test "$GCC" = yes; then 14865 wlarc='${wl}' 14866 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14867 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14868 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14869 else 14870 wlarc='' 14871 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14873 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14874 fi 14875 hardcode_libdir_flag_spec_F77='-R$libdir' 14876 hardcode_shlibpath_var_F77=no 14877 case $host_os in 14878 solaris2.[0-5] | solaris2.[0-5].*) ;; 14879 *) 14880 # The compiler driver will combine linker options so we 14881 # cannot just pass the convience library names through 14882 # without $wl, iff we do not link with $LD. 14883 # Luckily, gcc supports the same syntax we need for Sun Studio. 14884 # Supported since Solaris 2.6 (maybe 2.5.1?) 14885 case $wlarc in 14886 '') 14887 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14888 *) 14889 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' ;; 14890 esac ;; 14891 esac 14892 link_all_deplibs_F77=yes 14893 ;; 14894 14895 sunos4*) 14896 if test "x$host_vendor" = xsequent; then 14897 # Use $CC to link under sequent, because it throws in some extra .o 14898 # files that make .init and .fini sections work. 14899 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14900 else 14901 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14902 fi 14903 hardcode_libdir_flag_spec_F77='-L$libdir' 14904 hardcode_direct_F77=yes 14905 hardcode_minus_L_F77=yes 14906 hardcode_shlibpath_var_F77=no 14907 ;; 14908 14909 sysv4) 14910 case $host_vendor in 14911 sni) 14912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14913 hardcode_direct_F77=yes # is this really true??? 14914 ;; 14915 siemens) 14916 ## LD is ld it makes a PLAMLIB 14917 ## CC just makes a GrossModule. 14918 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14919 reload_cmds_F77='$CC -r -o $output$reload_objs' 14920 hardcode_direct_F77=no 14921 ;; 14922 motorola) 14923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14924 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14925 ;; 14926 esac 14927 runpath_var='LD_RUN_PATH' 14928 hardcode_shlibpath_var_F77=no 14929 ;; 14930 14931 sysv4.3*) 14932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14933 hardcode_shlibpath_var_F77=no 14934 export_dynamic_flag_spec_F77='-Bexport' 14935 ;; 14936 14937 sysv4*MP*) 14938 if test -d /usr/nec; then 14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14940 hardcode_shlibpath_var_F77=no 14941 runpath_var=LD_RUN_PATH 14942 hardcode_runpath_var=yes 14943 ld_shlibs_F77=yes 14944 fi 14945 ;; 14946 14947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14948 no_undefined_flag_F77='${wl}-z,text' 14949 archive_cmds_need_lc_F77=no 14950 hardcode_shlibpath_var_F77=no 14951 runpath_var='LD_RUN_PATH' 14952 14953 if test "$GCC" = yes; then 14954 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14955 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14956 else 14957 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14958 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14959 fi 14960 ;; 14961 14962 sysv5* | sco3.2v5* | sco5v6*) 14963 # Note: We can NOT use -z defs as we might desire, because we do not 14964 # link with -lc, and that would cause any symbols used from libc to 14965 # always be unresolved, which means just about no library would 14966 # ever link correctly. If we're not using GNU ld we use -z text 14967 # though, which does catch some bad symbols but isn't as heavy-handed 14968 # as -z defs. 14969 no_undefined_flag_F77='${wl}-z,text' 14970 allow_undefined_flag_F77='${wl}-z,nodefs' 14971 archive_cmds_need_lc_F77=no 14972 hardcode_shlibpath_var_F77=no 14973 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14974 hardcode_libdir_separator_F77=':' 14975 link_all_deplibs_F77=yes 14976 export_dynamic_flag_spec_F77='${wl}-Bexport' 14977 runpath_var='LD_RUN_PATH' 14978 14979 if test "$GCC" = yes; then 14980 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14981 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14982 else 14983 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14984 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14985 fi 14986 ;; 14987 14988 uts4*) 14989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14990 hardcode_libdir_flag_spec_F77='-L$libdir' 14991 hardcode_shlibpath_var_F77=no 14992 ;; 14993 14994 *) 14995 ld_shlibs_F77=no 14996 ;; 14997 esac 14998 fi 14999 15000{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15001echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15002test "$ld_shlibs_F77" = no && can_build_shared=no 15003 15004# 15005# Do we need to explicitly link libc? 15006# 15007case "x$archive_cmds_need_lc_F77" in 15008x|xyes) 15009 # Assume -lc should be added 15010 archive_cmds_need_lc_F77=yes 15011 15012 if test "$enable_shared" = yes && test "$GCC" = yes; then 15013 case $archive_cmds_F77 in 15014 *'~'*) 15015 # FIXME: we may have to deal with multi-command sequences. 15016 ;; 15017 '$CC '*) 15018 # Test whether the compiler implicitly links with -lc since on some 15019 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15020 # to ld, don't add -lc before -lgcc. 15021 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15022echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15023 $rm conftest* 15024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15025 15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15027 (eval $ac_compile) 2>&5 15028 ac_status=$? 15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15030 (exit $ac_status); } 2>conftest.err; then 15031 soname=conftest 15032 lib=conftest 15033 libobjs=conftest.$ac_objext 15034 deplibs= 15035 wl=$lt_prog_compiler_wl_F77 15036 pic_flag=$lt_prog_compiler_pic_F77 15037 compiler_flags=-v 15038 linker_flags=-v 15039 verstring= 15040 output_objdir=. 15041 libname=conftest 15042 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15043 allow_undefined_flag_F77= 15044 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15045 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15046 ac_status=$? 15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15048 (exit $ac_status); } 15049 then 15050 archive_cmds_need_lc_F77=no 15051 else 15052 archive_cmds_need_lc_F77=yes 15053 fi 15054 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15055 else 15056 cat conftest.err 1>&5 15057 fi 15058 $rm conftest* 15059 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15060echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15061 ;; 15062 esac 15063 fi 15064 ;; 15065esac 15066 15067{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15068echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15069library_names_spec= 15070libname_spec='lib$name' 15071soname_spec= 15072shrext_cmds=".so" 15073postinstall_cmds= 15074postuninstall_cmds= 15075finish_cmds= 15076finish_eval= 15077shlibpath_var= 15078shlibpath_overrides_runpath=unknown 15079version_type=none 15080dynamic_linker="$host_os ld.so" 15081sys_lib_dlsearch_path_spec="/lib /usr/lib" 15082if test "$GCC" = yes; then 15083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15084 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15085 # if the path contains ";" then we assume it to be the separator 15086 # otherwise default to the standard path separator (i.e. ":") - it is 15087 # assumed that no part of a normal pathname contains ";" but that should 15088 # okay in the real world where ";" in dirpaths is itself problematic. 15089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15090 else 15091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15092 fi 15093else 15094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15095fi 15096need_lib_prefix=unknown 15097hardcode_into_libs=no 15098 15099# when you set need_version to no, make sure it does not cause -set_version 15100# flags to be left without arguments 15101need_version=unknown 15102 15103case $host_os in 15104aix3*) 15105 version_type=linux 15106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15107 shlibpath_var=LIBPATH 15108 15109 # AIX 3 has no versioning support, so we append a major version to the name. 15110 soname_spec='${libname}${release}${shared_ext}$major' 15111 ;; 15112 15113aix4* | aix5*) 15114 version_type=linux 15115 need_lib_prefix=no 15116 need_version=no 15117 hardcode_into_libs=yes 15118 if test "$host_cpu" = ia64; then 15119 # AIX 5 supports IA64 15120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15121 shlibpath_var=LD_LIBRARY_PATH 15122 else 15123 # With GCC up to 2.95.x, collect2 would create an import file 15124 # for dependence libraries. The import file would start with 15125 # the line `#! .'. This would cause the generated library to 15126 # depend on `.', always an invalid library. This was fixed in 15127 # development snapshots of GCC prior to 3.0. 15128 case $host_os in 15129 aix4 | aix4.[01] | aix4.[01].*) 15130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15131 echo ' yes ' 15132 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15133 : 15134 else 15135 can_build_shared=no 15136 fi 15137 ;; 15138 esac 15139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15140 # soname into executable. Probably we can add versioning support to 15141 # collect2, so additional links can be useful in future. 15142 if test "$aix_use_runtimelinking" = yes; then 15143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15144 # instead of lib<name>.a to let people know that these are not 15145 # typical AIX shared libraries. 15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15147 else 15148 # We preserve .a as extension for shared libraries through AIX4.2 15149 # and later when we are not doing run time linking. 15150 library_names_spec='${libname}${release}.a $libname.a' 15151 soname_spec='${libname}${release}${shared_ext}$major' 15152 fi 15153 shlibpath_var=LIBPATH 15154 fi 15155 ;; 15156 15157amigaos*) 15158 library_names_spec='$libname.ixlibrary $libname.a' 15159 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15160 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' 15161 ;; 15162 15163beos*) 15164 library_names_spec='${libname}${shared_ext}' 15165 dynamic_linker="$host_os ld.so" 15166 shlibpath_var=LIBRARY_PATH 15167 ;; 15168 15169bsdi[45]*) 15170 version_type=linux 15171 need_version=no 15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15173 soname_spec='${libname}${release}${shared_ext}$major' 15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15175 shlibpath_var=LD_LIBRARY_PATH 15176 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15177 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15178 # the default ld.so.conf also contains /usr/contrib/lib and 15179 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15180 # libtool to hard-code these into programs 15181 ;; 15182 15183cygwin* | mingw* | pw32*) 15184 version_type=windows 15185 shrext_cmds=".dll" 15186 need_version=no 15187 need_lib_prefix=no 15188 15189 case $GCC,$host_os in 15190 yes,cygwin* | yes,mingw* | yes,pw32*) 15191 library_names_spec='$libname.dll.a' 15192 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15193 postinstall_cmds='base_file=`basename \${file}`~ 15194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15195 dldir=$destdir/`dirname \$dlpath`~ 15196 test -d \$dldir || mkdir -p \$dldir~ 15197 $install_prog $dir/$dlname \$dldir/$dlname~ 15198 chmod a+x \$dldir/$dlname' 15199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15200 dlpath=$dir/\$dldll~ 15201 $rm \$dlpath' 15202 shlibpath_overrides_runpath=yes 15203 15204 case $host_os in 15205 cygwin*) 15206 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15208 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15209 ;; 15210 mingw*) 15211 # MinGW DLLs use traditional 'lib' prefix 15212 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15214 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15215 # It is most probably a Windows format PATH printed by 15216 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15217 # path with ; separators, and with drive letters. We can handle the 15218 # drive letters (cygwin fileutils understands them), so leave them, 15219 # especially as we might pass files found there to a mingw objdump, 15220 # which wouldn't understand a cygwinified path. Ahh. 15221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15222 else 15223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15224 fi 15225 ;; 15226 pw32*) 15227 # pw32 DLLs use 'pw' prefix rather than 'lib' 15228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15229 ;; 15230 esac 15231 ;; 15232 15233 *) 15234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15235 ;; 15236 esac 15237 dynamic_linker='Win32 ld.exe' 15238 # FIXME: first we should search . and the directory the executable is in 15239 shlibpath_var=PATH 15240 ;; 15241 15242darwin* | rhapsody*) 15243 dynamic_linker="$host_os dyld" 15244 version_type=darwin 15245 need_lib_prefix=no 15246 need_version=no 15247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15248 soname_spec='${libname}${release}${major}$shared_ext' 15249 shlibpath_overrides_runpath=yes 15250 shlibpath_var=DYLD_LIBRARY_PATH 15251 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15253 if test "$GCC" = yes; then 15254 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"` 15255 else 15256 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15257 fi 15258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15259 ;; 15260 15261dgux*) 15262 version_type=linux 15263 need_lib_prefix=no 15264 need_version=no 15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15266 soname_spec='${libname}${release}${shared_ext}$major' 15267 shlibpath_var=LD_LIBRARY_PATH 15268 ;; 15269 15270freebsd1*) 15271 dynamic_linker=no 15272 ;; 15273 15274kfreebsd*-gnu) 15275 version_type=linux 15276 need_lib_prefix=no 15277 need_version=no 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15279 soname_spec='${libname}${release}${shared_ext}$major' 15280 shlibpath_var=LD_LIBRARY_PATH 15281 shlibpath_overrides_runpath=no 15282 hardcode_into_libs=yes 15283 dynamic_linker='GNU ld.so' 15284 ;; 15285 15286freebsd* | dragonfly*) 15287 # DragonFly does not have aout. When/if they implement a new 15288 # versioning mechanism, adjust this. 15289 if test -x /usr/bin/objformat; then 15290 objformat=`/usr/bin/objformat` 15291 else 15292 case $host_os in 15293 freebsd[123]*) objformat=aout ;; 15294 *) objformat=elf ;; 15295 esac 15296 fi 15297 version_type=freebsd-$objformat 15298 case $version_type in 15299 freebsd-elf*) 15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15301 need_version=no 15302 need_lib_prefix=no 15303 ;; 15304 freebsd-*) 15305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15306 need_version=yes 15307 ;; 15308 esac 15309 shlibpath_var=LD_LIBRARY_PATH 15310 case $host_os in 15311 freebsd2*) 15312 shlibpath_overrides_runpath=yes 15313 ;; 15314 freebsd3.[01]* | freebsdelf3.[01]*) 15315 shlibpath_overrides_runpath=yes 15316 hardcode_into_libs=yes 15317 ;; 15318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15320 shlibpath_overrides_runpath=no 15321 hardcode_into_libs=yes 15322 ;; 15323 freebsd*) # from 4.6 on 15324 shlibpath_overrides_runpath=yes 15325 hardcode_into_libs=yes 15326 ;; 15327 esac 15328 ;; 15329 15330gnu*) 15331 version_type=linux 15332 need_lib_prefix=no 15333 need_version=no 15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 hardcode_into_libs=yes 15338 ;; 15339 15340hpux9* | hpux10* | hpux11*) 15341 # Give a soname corresponding to the major version so that dld.sl refuses to 15342 # link against other versions. 15343 version_type=sunos 15344 need_lib_prefix=no 15345 need_version=no 15346 case $host_cpu in 15347 ia64*) 15348 shrext_cmds='.so' 15349 hardcode_into_libs=yes 15350 dynamic_linker="$host_os dld.so" 15351 shlibpath_var=LD_LIBRARY_PATH 15352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15354 soname_spec='${libname}${release}${shared_ext}$major' 15355 if test "X$HPUX_IA64_MODE" = X32; then 15356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15357 else 15358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15359 fi 15360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15361 ;; 15362 hppa*64*) 15363 shrext_cmds='.sl' 15364 hardcode_into_libs=yes 15365 dynamic_linker="$host_os dld.sl" 15366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15369 soname_spec='${libname}${release}${shared_ext}$major' 15370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15372 ;; 15373 *) 15374 shrext_cmds='.sl' 15375 dynamic_linker="$host_os dld.sl" 15376 shlibpath_var=SHLIB_PATH 15377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15379 soname_spec='${libname}${release}${shared_ext}$major' 15380 ;; 15381 esac 15382 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15383 postinstall_cmds='chmod 555 $lib' 15384 ;; 15385 15386interix3*) 15387 version_type=linux 15388 need_lib_prefix=no 15389 need_version=no 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15391 soname_spec='${libname}${release}${shared_ext}$major' 15392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15393 shlibpath_var=LD_LIBRARY_PATH 15394 shlibpath_overrides_runpath=no 15395 hardcode_into_libs=yes 15396 ;; 15397 15398irix5* | irix6* | nonstopux*) 15399 case $host_os in 15400 nonstopux*) version_type=nonstopux ;; 15401 *) 15402 if test "$lt_cv_prog_gnu_ld" = yes; then 15403 version_type=linux 15404 else 15405 version_type=irix 15406 fi ;; 15407 esac 15408 need_lib_prefix=no 15409 need_version=no 15410 soname_spec='${libname}${release}${shared_ext}$major' 15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15412 case $host_os in 15413 irix5* | nonstopux*) 15414 libsuff= shlibsuff= 15415 ;; 15416 *) 15417 case $LD in # libtool.m4 will add one of these switches to LD 15418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15419 libsuff= shlibsuff= libmagic=32-bit;; 15420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15421 libsuff=32 shlibsuff=N32 libmagic=N32;; 15422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15423 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15424 *) libsuff= shlibsuff= libmagic=never-match;; 15425 esac 15426 ;; 15427 esac 15428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15429 shlibpath_overrides_runpath=no 15430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15432 hardcode_into_libs=yes 15433 ;; 15434 15435# No shared lib support for Linux oldld, aout, or coff. 15436linux*oldld* | linux*aout* | linux*coff*) 15437 dynamic_linker=no 15438 ;; 15439 15440# This must be Linux ELF. 15441linux*) 15442 version_type=linux 15443 need_lib_prefix=no 15444 need_version=no 15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15446 soname_spec='${libname}${release}${shared_ext}$major' 15447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15448 shlibpath_var=LD_LIBRARY_PATH 15449 shlibpath_overrides_runpath=no 15450 # This implies no fast_install, which is unacceptable. 15451 # Some rework will be needed to allow for fast_install 15452 # before this can be enabled. 15453 hardcode_into_libs=yes 15454 15455 # Append ld.so.conf contents to the search path 15456 if test -f /etc/ld.so.conf; then 15457 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15458 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15459 fi 15460 15461 # We used to test for /lib/ld.so.1 and disable shared libraries on 15462 # powerpc, because MkLinux only supported shared libraries with the 15463 # GNU dynamic linker. Since this was broken with cross compilers, 15464 # most powerpc-linux boxes support dynamic linking these days and 15465 # people can always --disable-shared, the test was removed, and we 15466 # assume the GNU/Linux dynamic linker is in use. 15467 dynamic_linker='GNU/Linux ld.so' 15468 ;; 15469 15470knetbsd*-gnu) 15471 version_type=linux 15472 need_lib_prefix=no 15473 need_version=no 15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15475 soname_spec='${libname}${release}${shared_ext}$major' 15476 shlibpath_var=LD_LIBRARY_PATH 15477 shlibpath_overrides_runpath=no 15478 hardcode_into_libs=yes 15479 dynamic_linker='GNU ld.so' 15480 ;; 15481 15482netbsd*) 15483 version_type=sunos 15484 need_lib_prefix=no 15485 need_version=no 15486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15489 dynamic_linker='NetBSD (a.out) ld.so' 15490 else 15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15492 soname_spec='${libname}${release}${shared_ext}$major' 15493 dynamic_linker='NetBSD ld.elf_so' 15494 fi 15495 shlibpath_var=LD_LIBRARY_PATH 15496 shlibpath_overrides_runpath=yes 15497 hardcode_into_libs=yes 15498 ;; 15499 15500newsos6) 15501 version_type=linux 15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15503 shlibpath_var=LD_LIBRARY_PATH 15504 shlibpath_overrides_runpath=yes 15505 ;; 15506 15507nto-qnx*) 15508 version_type=linux 15509 need_lib_prefix=no 15510 need_version=no 15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15512 soname_spec='${libname}${release}${shared_ext}$major' 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes 15515 ;; 15516 15517openbsd*) 15518 version_type=sunos 15519 sys_lib_dlsearch_path_spec="/usr/lib" 15520 need_lib_prefix=no 15521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15522 case $host_os in 15523 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15524 *) need_version=no ;; 15525 esac 15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15528 shlibpath_var=LD_LIBRARY_PATH 15529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15530 case $host_os in 15531 openbsd2.[89] | openbsd2.[89].*) 15532 shlibpath_overrides_runpath=no 15533 ;; 15534 *) 15535 shlibpath_overrides_runpath=yes 15536 ;; 15537 esac 15538 else 15539 shlibpath_overrides_runpath=yes 15540 fi 15541 ;; 15542 15543os2*) 15544 libname_spec='$name' 15545 shrext_cmds=".dll" 15546 need_lib_prefix=no 15547 library_names_spec='$libname${shared_ext} $libname.a' 15548 dynamic_linker='OS/2 ld.exe' 15549 shlibpath_var=LIBPATH 15550 ;; 15551 15552osf3* | osf4* | osf5*) 15553 version_type=osf 15554 need_lib_prefix=no 15555 need_version=no 15556 soname_spec='${libname}${release}${shared_ext}$major' 15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15558 shlibpath_var=LD_LIBRARY_PATH 15559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15561 ;; 15562 15563solaris*) 15564 version_type=linux 15565 need_lib_prefix=no 15566 need_version=no 15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15568 soname_spec='${libname}${release}${shared_ext}$major' 15569 shlibpath_var=LD_LIBRARY_PATH 15570 shlibpath_overrides_runpath=yes 15571 hardcode_into_libs=yes 15572 # ldd complains unless libraries are executable 15573 postinstall_cmds='chmod +x $lib' 15574 ;; 15575 15576sunos4*) 15577 version_type=sunos 15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15580 shlibpath_var=LD_LIBRARY_PATH 15581 shlibpath_overrides_runpath=yes 15582 if test "$with_gnu_ld" = yes; then 15583 need_lib_prefix=no 15584 fi 15585 need_version=yes 15586 ;; 15587 15588sysv4 | sysv4.3*) 15589 version_type=linux 15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15591 soname_spec='${libname}${release}${shared_ext}$major' 15592 shlibpath_var=LD_LIBRARY_PATH 15593 case $host_vendor in 15594 sni) 15595 shlibpath_overrides_runpath=no 15596 need_lib_prefix=no 15597 export_dynamic_flag_spec='${wl}-Blargedynsym' 15598 runpath_var=LD_RUN_PATH 15599 ;; 15600 siemens) 15601 need_lib_prefix=no 15602 ;; 15603 motorola) 15604 need_lib_prefix=no 15605 need_version=no 15606 shlibpath_overrides_runpath=no 15607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15608 ;; 15609 esac 15610 ;; 15611 15612sysv4*MP*) 15613 if test -d /usr/nec ;then 15614 version_type=linux 15615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15616 soname_spec='$libname${shared_ext}.$major' 15617 shlibpath_var=LD_LIBRARY_PATH 15618 fi 15619 ;; 15620 15621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15622 version_type=freebsd-elf 15623 need_lib_prefix=no 15624 need_version=no 15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15626 soname_spec='${libname}${release}${shared_ext}$major' 15627 shlibpath_var=LD_LIBRARY_PATH 15628 hardcode_into_libs=yes 15629 if test "$with_gnu_ld" = yes; then 15630 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15631 shlibpath_overrides_runpath=no 15632 else 15633 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15634 shlibpath_overrides_runpath=yes 15635 case $host_os in 15636 sco3.2v5*) 15637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15638 ;; 15639 esac 15640 fi 15641 sys_lib_dlsearch_path_spec='/usr/lib' 15642 ;; 15643 15644uts4*) 15645 version_type=linux 15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15647 soname_spec='${libname}${release}${shared_ext}$major' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 ;; 15650 15651*) 15652 dynamic_linker=no 15653 ;; 15654esac 15655{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15656echo "${ECHO_T}$dynamic_linker" >&6; } 15657test "$dynamic_linker" = no && can_build_shared=no 15658 15659variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15660if test "$GCC" = yes; then 15661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15662fi 15663 15664{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15665echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15666hardcode_action_F77= 15667if test -n "$hardcode_libdir_flag_spec_F77" || \ 15668 test -n "$runpath_var_F77" || \ 15669 test "X$hardcode_automatic_F77" = "Xyes" ; then 15670 15671 # We can hardcode non-existant directories. 15672 if test "$hardcode_direct_F77" != no && 15673 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15674 # have to relink, otherwise we might link with an installed library 15675 # when we should be linking with a yet-to-be-installed one 15676 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15677 test "$hardcode_minus_L_F77" != no; then 15678 # Linking always hardcodes the temporary library directory. 15679 hardcode_action_F77=relink 15680 else 15681 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15682 hardcode_action_F77=immediate 15683 fi 15684else 15685 # We cannot hardcode anything, or else we can only hardcode existing 15686 # directories. 15687 hardcode_action_F77=unsupported 15688fi 15689{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15690echo "${ECHO_T}$hardcode_action_F77" >&6; } 15691 15692if test "$hardcode_action_F77" = relink; then 15693 # Fast installation is not supported 15694 enable_fast_install=no 15695elif test "$shlibpath_overrides_runpath" = yes || 15696 test "$enable_shared" = no; then 15697 # Fast installation is not necessary 15698 enable_fast_install=needless 15699fi 15700 15701 15702# The else clause should only fire when bootstrapping the 15703# libtool distribution, otherwise you forgot to ship ltmain.sh 15704# with your package, and you will get complaints that there are 15705# no rules to generate ltmain.sh. 15706if test -f "$ltmain"; then 15707 # See if we are running on zsh, and set the options which allow our commands through 15708 # without removal of \ escapes. 15709 if test -n "${ZSH_VERSION+set}" ; then 15710 setopt NO_GLOB_SUBST 15711 fi 15712 # Now quote all the things that may contain metacharacters while being 15713 # careful not to overquote the AC_SUBSTed values. We take copies of the 15714 # variables and quote the copies for generation of the libtool script. 15715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15716 SED SHELL STRIP \ 15717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15719 deplibs_check_method reload_flag reload_cmds need_locks \ 15720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15721 lt_cv_sys_global_symbol_to_c_name_address \ 15722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15723 old_postinstall_cmds old_postuninstall_cmds \ 15724 compiler_F77 \ 15725 CC_F77 \ 15726 LD_F77 \ 15727 lt_prog_compiler_wl_F77 \ 15728 lt_prog_compiler_pic_F77 \ 15729 lt_prog_compiler_static_F77 \ 15730 lt_prog_compiler_no_builtin_flag_F77 \ 15731 export_dynamic_flag_spec_F77 \ 15732 thread_safe_flag_spec_F77 \ 15733 whole_archive_flag_spec_F77 \ 15734 enable_shared_with_static_runtimes_F77 \ 15735 old_archive_cmds_F77 \ 15736 old_archive_from_new_cmds_F77 \ 15737 predep_objects_F77 \ 15738 postdep_objects_F77 \ 15739 predeps_F77 \ 15740 postdeps_F77 \ 15741 compiler_lib_search_path_F77 \ 15742 archive_cmds_F77 \ 15743 archive_expsym_cmds_F77 \ 15744 postinstall_cmds_F77 \ 15745 postuninstall_cmds_F77 \ 15746 old_archive_from_expsyms_cmds_F77 \ 15747 allow_undefined_flag_F77 \ 15748 no_undefined_flag_F77 \ 15749 export_symbols_cmds_F77 \ 15750 hardcode_libdir_flag_spec_F77 \ 15751 hardcode_libdir_flag_spec_ld_F77 \ 15752 hardcode_libdir_separator_F77 \ 15753 hardcode_automatic_F77 \ 15754 module_cmds_F77 \ 15755 module_expsym_cmds_F77 \ 15756 lt_cv_prog_compiler_c_o_F77 \ 15757 exclude_expsyms_F77 \ 15758 include_expsyms_F77; do 15759 15760 case $var in 15761 old_archive_cmds_F77 | \ 15762 old_archive_from_new_cmds_F77 | \ 15763 archive_cmds_F77 | \ 15764 archive_expsym_cmds_F77 | \ 15765 module_cmds_F77 | \ 15766 module_expsym_cmds_F77 | \ 15767 old_archive_from_expsyms_cmds_F77 | \ 15768 export_symbols_cmds_F77 | \ 15769 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15770 postinstall_cmds | postuninstall_cmds | \ 15771 old_postinstall_cmds | old_postuninstall_cmds | \ 15772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15773 # Double-quote double-evaled strings. 15774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15775 ;; 15776 *) 15777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15778 ;; 15779 esac 15780 done 15781 15782 case $lt_echo in 15783 *'\$0 --fallback-echo"') 15784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15785 ;; 15786 esac 15787 15788cfgfile="$ofile" 15789 15790 cat <<__EOF__ >> "$cfgfile" 15791# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15792 15793# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15794 15795# Shell to use when invoking shell scripts. 15796SHELL=$lt_SHELL 15797 15798# Whether or not to build shared libraries. 15799build_libtool_libs=$enable_shared 15800 15801# Whether or not to build static libraries. 15802build_old_libs=$enable_static 15803 15804# Whether or not to add -lc for building shared libraries. 15805build_libtool_need_lc=$archive_cmds_need_lc_F77 15806 15807# Whether or not to disallow shared libs when runtime libs are static 15808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15809 15810# Whether or not to optimize for fast installation. 15811fast_install=$enable_fast_install 15812 15813# The host system. 15814host_alias=$host_alias 15815host=$host 15816host_os=$host_os 15817 15818# The build system. 15819build_alias=$build_alias 15820build=$build 15821build_os=$build_os 15822 15823# An echo program that does not interpret backslashes. 15824echo=$lt_echo 15825 15826# The archiver. 15827AR=$lt_AR 15828AR_FLAGS=$lt_AR_FLAGS 15829 15830# A C compiler. 15831LTCC=$lt_LTCC 15832 15833# LTCC compiler flags. 15834LTCFLAGS=$lt_LTCFLAGS 15835 15836# A language-specific compiler. 15837CC=$lt_compiler_F77 15838 15839# Is the compiler the GNU C compiler? 15840with_gcc=$GCC_F77 15841 15842# An ERE matcher. 15843EGREP=$lt_EGREP 15844 15845# The linker used to build libraries. 15846LD=$lt_LD_F77 15847 15848# Whether we need hard or soft links. 15849LN_S=$lt_LN_S 15850 15851# A BSD-compatible nm program. 15852NM=$lt_NM 15853 15854# A symbol stripping program 15855STRIP=$lt_STRIP 15856 15857# Used to examine libraries when file_magic_cmd begins "file" 15858MAGIC_CMD=$MAGIC_CMD 15859 15860# Used on cygwin: DLL creation program. 15861DLLTOOL="$DLLTOOL" 15862 15863# Used on cygwin: object dumper. 15864OBJDUMP="$OBJDUMP" 15865 15866# Used on cygwin: assembler. 15867AS="$AS" 15868 15869# The name of the directory that contains temporary libtool files. 15870objdir=$objdir 15871 15872# How to create reloadable object files. 15873reload_flag=$lt_reload_flag 15874reload_cmds=$lt_reload_cmds 15875 15876# How to pass a linker flag through the compiler. 15877wl=$lt_lt_prog_compiler_wl_F77 15878 15879# Object file suffix (normally "o"). 15880objext="$ac_objext" 15881 15882# Old archive suffix (normally "a"). 15883libext="$libext" 15884 15885# Shared library suffix (normally ".so"). 15886shrext_cmds='$shrext_cmds' 15887 15888# Executable file suffix (normally ""). 15889exeext="$exeext" 15890 15891# Additional compiler flags for building library objects. 15892pic_flag=$lt_lt_prog_compiler_pic_F77 15893pic_mode=$pic_mode 15894 15895# What is the maximum length of a command? 15896max_cmd_len=$lt_cv_sys_max_cmd_len 15897 15898# Does compiler simultaneously support -c and -o options? 15899compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15900 15901# Must we lock files when doing compilation? 15902need_locks=$lt_need_locks 15903 15904# Do we need the lib prefix for modules? 15905need_lib_prefix=$need_lib_prefix 15906 15907# Do we need a version for libraries? 15908need_version=$need_version 15909 15910# Whether dlopen is supported. 15911dlopen_support=$enable_dlopen 15912 15913# Whether dlopen of programs is supported. 15914dlopen_self=$enable_dlopen_self 15915 15916# Whether dlopen of statically linked programs is supported. 15917dlopen_self_static=$enable_dlopen_self_static 15918 15919# Compiler flag to prevent dynamic linking. 15920link_static_flag=$lt_lt_prog_compiler_static_F77 15921 15922# Compiler flag to turn off builtin functions. 15923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15924 15925# Compiler flag to allow reflexive dlopens. 15926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15927 15928# Compiler flag to generate shared objects directly from archives. 15929whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15930 15931# Compiler flag to generate thread-safe objects. 15932thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15933 15934# Library versioning type. 15935version_type=$version_type 15936 15937# Format of library name prefix. 15938libname_spec=$lt_libname_spec 15939 15940# List of archive names. First name is the real one, the rest are links. 15941# The last name is the one that the linker finds with -lNAME. 15942library_names_spec=$lt_library_names_spec 15943 15944# The coded name of the library, if different from the real name. 15945soname_spec=$lt_soname_spec 15946 15947# Commands used to build and install an old-style archive. 15948RANLIB=$lt_RANLIB 15949old_archive_cmds=$lt_old_archive_cmds_F77 15950old_postinstall_cmds=$lt_old_postinstall_cmds 15951old_postuninstall_cmds=$lt_old_postuninstall_cmds 15952 15953# Create an old-style archive from a shared archive. 15954old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15955 15956# Create a temporary old-style archive to link instead of a shared archive. 15957old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15958 15959# Commands used to build and install a shared archive. 15960archive_cmds=$lt_archive_cmds_F77 15961archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15962postinstall_cmds=$lt_postinstall_cmds 15963postuninstall_cmds=$lt_postuninstall_cmds 15964 15965# Commands used to build a loadable module (assumed same as above if empty) 15966module_cmds=$lt_module_cmds_F77 15967module_expsym_cmds=$lt_module_expsym_cmds_F77 15968 15969# Commands to strip libraries. 15970old_striplib=$lt_old_striplib 15971striplib=$lt_striplib 15972 15973# Dependencies to place before the objects being linked to create a 15974# shared library. 15975predep_objects=$lt_predep_objects_F77 15976 15977# Dependencies to place after the objects being linked to create a 15978# shared library. 15979postdep_objects=$lt_postdep_objects_F77 15980 15981# Dependencies to place before the objects being linked to create a 15982# shared library. 15983predeps=$lt_predeps_F77 15984 15985# Dependencies to place after the objects being linked to create a 15986# shared library. 15987postdeps=$lt_postdeps_F77 15988 15989# The library search path used internally by the compiler when linking 15990# a shared library. 15991compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15992 15993# Method to check whether dependent libraries are shared objects. 15994deplibs_check_method=$lt_deplibs_check_method 15995 15996# Command to use when deplibs_check_method == file_magic. 15997file_magic_cmd=$lt_file_magic_cmd 15998 15999# Flag that allows shared libraries with undefined symbols to be built. 16000allow_undefined_flag=$lt_allow_undefined_flag_F77 16001 16002# Flag that forces no undefined symbols. 16003no_undefined_flag=$lt_no_undefined_flag_F77 16004 16005# Commands used to finish a libtool library installation in a directory. 16006finish_cmds=$lt_finish_cmds 16007 16008# Same as above, but a single script fragment to be evaled but not shown. 16009finish_eval=$lt_finish_eval 16010 16011# Take the output of nm and produce a listing of raw symbols and C names. 16012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16013 16014# Transform the output of nm in a proper C declaration 16015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16016 16017# Transform the output of nm in a C name address pair 16018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16019 16020# This is the shared library runtime path variable. 16021runpath_var=$runpath_var 16022 16023# This is the shared library path variable. 16024shlibpath_var=$shlibpath_var 16025 16026# Is shlibpath searched before the hard-coded library search path? 16027shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16028 16029# How to hardcode a shared library path into an executable. 16030hardcode_action=$hardcode_action_F77 16031 16032# Whether we should hardcode library paths into libraries. 16033hardcode_into_libs=$hardcode_into_libs 16034 16035# Flag to hardcode \$libdir into a binary during linking. 16036# This must work even if \$libdir does not exist. 16037hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16038 16039# If ld is used when linking, flag to hardcode \$libdir into 16040# a binary during linking. This must work even if \$libdir does 16041# not exist. 16042hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16043 16044# Whether we need a single -rpath flag with a separated argument. 16045hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16046 16047# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16048# resulting binary. 16049hardcode_direct=$hardcode_direct_F77 16050 16051# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16052# resulting binary. 16053hardcode_minus_L=$hardcode_minus_L_F77 16054 16055# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16056# the resulting binary. 16057hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16058 16059# Set to yes if building a shared library automatically hardcodes DIR into the library 16060# and all subsequent libraries and executables linked against it. 16061hardcode_automatic=$hardcode_automatic_F77 16062 16063# Variables whose values should be saved in libtool wrapper scripts and 16064# restored at relink time. 16065variables_saved_for_relink="$variables_saved_for_relink" 16066 16067# Whether libtool must link a program against all its dependency libraries. 16068link_all_deplibs=$link_all_deplibs_F77 16069 16070# Compile-time system search path for libraries 16071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16072 16073# Run-time system search path for libraries 16074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16075 16076# Fix the shell variable \$srcfile for the compiler. 16077fix_srcfile_path="$fix_srcfile_path_F77" 16078 16079# Set to yes if exported symbols are required. 16080always_export_symbols=$always_export_symbols_F77 16081 16082# The commands to list exported symbols. 16083export_symbols_cmds=$lt_export_symbols_cmds_F77 16084 16085# The commands to extract the exported symbol list from a shared archive. 16086extract_expsyms_cmds=$lt_extract_expsyms_cmds 16087 16088# Symbols that should not be listed in the preloaded symbols. 16089exclude_expsyms=$lt_exclude_expsyms_F77 16090 16091# Symbols that must always be exported. 16092include_expsyms=$lt_include_expsyms_F77 16093 16094# ### END LIBTOOL TAG CONFIG: $tagname 16095 16096__EOF__ 16097 16098 16099else 16100 # If there is no Makefile yet, we rely on a make rule to execute 16101 # `config.status --recheck' to rerun these tests and create the 16102 # libtool script then. 16103 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16104 if test -f "$ltmain_in"; then 16105 test -f Makefile && make "$ltmain" 16106 fi 16107fi 16108 16109 16110ac_ext=c 16111ac_cpp='$CPP $CPPFLAGS' 16112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16114ac_compiler_gnu=$ac_cv_c_compiler_gnu 16115 16116CC="$lt_save_CC" 16117 16118 else 16119 tagname="" 16120 fi 16121 ;; 16122 16123 GCJ) 16124 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16125 16126 16127# Source file extension for Java test sources. 16128ac_ext=java 16129 16130# Object file extension for compiled Java test sources. 16131objext=o 16132objext_GCJ=$objext 16133 16134# Code to be used in simple compile tests 16135lt_simple_compile_test_code="class foo {}\n" 16136 16137# Code to be used in simple link tests 16138lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16139 16140# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16141 16142# If no C compiler was specified, use CC. 16143LTCC=${LTCC-"$CC"} 16144 16145# If no C compiler flags were specified, use CFLAGS. 16146LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16147 16148# Allow CC to be a program name with arguments. 16149compiler=$CC 16150 16151 16152# save warnings/boilerplate of simple test code 16153ac_outfile=conftest.$ac_objext 16154printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16156_lt_compiler_boilerplate=`cat conftest.err` 16157$rm conftest* 16158 16159ac_outfile=conftest.$ac_objext 16160printf "$lt_simple_link_test_code" >conftest.$ac_ext 16161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16162_lt_linker_boilerplate=`cat conftest.err` 16163$rm conftest* 16164 16165 16166# Allow CC to be a program name with arguments. 16167lt_save_CC="$CC" 16168CC=${GCJ-"gcj"} 16169compiler=$CC 16170compiler_GCJ=$CC 16171for cc_temp in $compiler""; do 16172 case $cc_temp in 16173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16175 \-*) ;; 16176 *) break;; 16177 esac 16178done 16179cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16180 16181 16182# GCJ did not exist at the time GCC didn't implicitly link libc in. 16183archive_cmds_need_lc_GCJ=no 16184 16185old_archive_cmds_GCJ=$old_archive_cmds 16186 16187 16188lt_prog_compiler_no_builtin_flag_GCJ= 16189 16190if test "$GCC" = yes; then 16191 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16192 16193 16194{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16195echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16196if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16197 echo $ECHO_N "(cached) $ECHO_C" >&6 16198else 16199 lt_cv_prog_compiler_rtti_exceptions=no 16200 ac_outfile=conftest.$ac_objext 16201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16202 lt_compiler_flag="-fno-rtti -fno-exceptions" 16203 # Insert the option either (1) after the last *FLAGS variable, or 16204 # (2) before a word containing "conftest.", or (3) at the end. 16205 # Note that $ac_compile itself does not contain backslashes and begins 16206 # with a dollar sign (not a hyphen), so the echo should work correctly. 16207 # The option is referenced via a variable to avoid confusing sed. 16208 lt_compile=`echo "$ac_compile" | $SED \ 16209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16211 -e 's:$: $lt_compiler_flag:'` 16212 (eval echo "\"\$as_me:16212: $lt_compile\"" >&5) 16213 (eval "$lt_compile" 2>conftest.err) 16214 ac_status=$? 16215 cat conftest.err >&5 16216 echo "$as_me:16216: \$? = $ac_status" >&5 16217 if (exit $ac_status) && test -s "$ac_outfile"; then 16218 # The compiler can only warn and ignore the option if not recognized 16219 # So say no if there are warnings other than the usual output. 16220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16223 lt_cv_prog_compiler_rtti_exceptions=yes 16224 fi 16225 fi 16226 $rm conftest* 16227 16228fi 16229{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16230echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16231 16232if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16233 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16234else 16235 : 16236fi 16237 16238fi 16239 16240lt_prog_compiler_wl_GCJ= 16241lt_prog_compiler_pic_GCJ= 16242lt_prog_compiler_static_GCJ= 16243 16244{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16245echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16246 16247 if test "$GCC" = yes; then 16248 lt_prog_compiler_wl_GCJ='-Wl,' 16249 lt_prog_compiler_static_GCJ='-static' 16250 16251 case $host_os in 16252 aix*) 16253 # All AIX code is PIC. 16254 if test "$host_cpu" = ia64; then 16255 # AIX 5 now supports IA64 processor 16256 lt_prog_compiler_static_GCJ='-Bstatic' 16257 fi 16258 ;; 16259 16260 amigaos*) 16261 # FIXME: we need at least 68020 code to build shared libraries, but 16262 # adding the `-m68020' flag to GCC prevents building anything better, 16263 # like `-m68040'. 16264 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16265 ;; 16266 16267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16268 # PIC is the default for these OSes. 16269 ;; 16270 16271 mingw* | cygwin* | pw32* | os2*) 16272 # This hack is so that the source file can tell whether it is being 16273 # built for inclusion in a dll (and should export symbols for example). 16274 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16275 # (--disable-auto-import) libraries 16276 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16277 ;; 16278 16279 darwin* | rhapsody*) 16280 # PIC is the default on this platform 16281 # Common symbols not allowed in MH_DYLIB files 16282 lt_prog_compiler_pic_GCJ='-fno-common' 16283 ;; 16284 16285 interix3*) 16286 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16287 # Instead, we relocate shared libraries at runtime. 16288 ;; 16289 16290 msdosdjgpp*) 16291 # Just because we use GCC doesn't mean we suddenly get shared libraries 16292 # on systems that don't support them. 16293 lt_prog_compiler_can_build_shared_GCJ=no 16294 enable_shared=no 16295 ;; 16296 16297 sysv4*MP*) 16298 if test -d /usr/nec; then 16299 lt_prog_compiler_pic_GCJ=-Kconform_pic 16300 fi 16301 ;; 16302 16303 hpux*) 16304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16305 # not for PA HP-UX. 16306 case $host_cpu in 16307 hppa*64*|ia64*) 16308 # +Z the default 16309 ;; 16310 *) 16311 lt_prog_compiler_pic_GCJ='-fPIC' 16312 ;; 16313 esac 16314 ;; 16315 16316 *) 16317 lt_prog_compiler_pic_GCJ='-fPIC' 16318 ;; 16319 esac 16320 else 16321 # PORTME Check for flag to pass linker flags through the system compiler. 16322 case $host_os in 16323 aix*) 16324 lt_prog_compiler_wl_GCJ='-Wl,' 16325 if test "$host_cpu" = ia64; then 16326 # AIX 5 now supports IA64 processor 16327 lt_prog_compiler_static_GCJ='-Bstatic' 16328 else 16329 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16330 fi 16331 ;; 16332 darwin*) 16333 # PIC is the default on this platform 16334 # Common symbols not allowed in MH_DYLIB files 16335 case $cc_basename in 16336 xlc*) 16337 lt_prog_compiler_pic_GCJ='-qnocommon' 16338 lt_prog_compiler_wl_GCJ='-Wl,' 16339 ;; 16340 esac 16341 ;; 16342 16343 mingw* | cygwin* | pw32* | os2*) 16344 # This hack is so that the source file can tell whether it is being 16345 # built for inclusion in a dll (and should export symbols for example). 16346 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16347 # (--disable-auto-import) libraries 16348 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16349 ;; 16350 16351 hpux9* | hpux10* | hpux11*) 16352 lt_prog_compiler_wl_GCJ='-Wl,' 16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16354 # not for PA HP-UX. 16355 case $host_cpu in 16356 hppa*64*|ia64*) 16357 # +Z the default 16358 ;; 16359 *) 16360 lt_prog_compiler_pic_GCJ='+Z' 16361 ;; 16362 esac 16363 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16364 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16365 ;; 16366 16367 irix5* | irix6* | nonstopux*) 16368 lt_prog_compiler_wl_GCJ='-Wl,' 16369 # PIC (with -KPIC) is the default. 16370 lt_prog_compiler_static_GCJ='-non_shared' 16371 ;; 16372 16373 newsos6) 16374 lt_prog_compiler_pic_GCJ='-KPIC' 16375 lt_prog_compiler_static_GCJ='-Bstatic' 16376 ;; 16377 16378 linux*) 16379 case $cc_basename in 16380 icc* | ecc*) 16381 lt_prog_compiler_wl_GCJ='-Wl,' 16382 lt_prog_compiler_pic_GCJ='-KPIC' 16383 lt_prog_compiler_static_GCJ='-static' 16384 ;; 16385 pgcc* | pgf77* | pgf90* | pgf95*) 16386 # Portland Group compilers (*not* the Pentium gcc compiler, 16387 # which looks to be a dead project) 16388 lt_prog_compiler_wl_GCJ='-Wl,' 16389 lt_prog_compiler_pic_GCJ='-fpic' 16390 lt_prog_compiler_static_GCJ='-Bstatic' 16391 ;; 16392 ccc*) 16393 lt_prog_compiler_wl_GCJ='-Wl,' 16394 # All Alpha code is PIC. 16395 lt_prog_compiler_static_GCJ='-non_shared' 16396 ;; 16397 como) 16398 lt_prog_compiler_wl_GCJ='-lopt=' 16399 ;; 16400 *) 16401 case `$CC -V 2>&1 | sed 5q` in 16402 *Sun\ C*) 16403 # Sun C 5.9 16404 lt_prog_compiler_pic_GCJ='-KPIC' 16405 lt_prog_compiler_static_GCJ='-Bstatic' 16406 lt_prog_compiler_wl_GCJ='-Wl,' 16407 ;; 16408 *Sun\ F*) 16409 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16410 lt_prog_compiler_pic_GCJ='-KPIC' 16411 lt_prog_compiler_static_GCJ='-Bstatic' 16412 lt_prog_compiler_wl_GCJ='' 16413 ;; 16414 esac 16415 ;; 16416 esac 16417 ;; 16418 16419 osf3* | osf4* | osf5*) 16420 lt_prog_compiler_wl_GCJ='-Wl,' 16421 # All OSF/1 code is PIC. 16422 lt_prog_compiler_static_GCJ='-non_shared' 16423 ;; 16424 16425 solaris*) 16426 lt_prog_compiler_pic_GCJ='-KPIC' 16427 lt_prog_compiler_static_GCJ='-Bstatic' 16428 case $cc_basename in 16429 f77* | f90* | f95*) 16430 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16431 *) 16432 lt_prog_compiler_wl_GCJ='-Wl,';; 16433 esac 16434 ;; 16435 16436 sunos4*) 16437 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16438 lt_prog_compiler_pic_GCJ='-PIC' 16439 lt_prog_compiler_static_GCJ='-Bstatic' 16440 ;; 16441 16442 sysv4 | sysv4.2uw2* | sysv4.3*) 16443 lt_prog_compiler_wl_GCJ='-Wl,' 16444 lt_prog_compiler_pic_GCJ='-KPIC' 16445 lt_prog_compiler_static_GCJ='-Bstatic' 16446 ;; 16447 16448 sysv4*MP*) 16449 if test -d /usr/nec ;then 16450 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16451 lt_prog_compiler_static_GCJ='-Bstatic' 16452 fi 16453 ;; 16454 16455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16456 lt_prog_compiler_wl_GCJ='-Wl,' 16457 lt_prog_compiler_pic_GCJ='-KPIC' 16458 lt_prog_compiler_static_GCJ='-Bstatic' 16459 ;; 16460 16461 unicos*) 16462 lt_prog_compiler_wl_GCJ='-Wl,' 16463 lt_prog_compiler_can_build_shared_GCJ=no 16464 ;; 16465 16466 uts4*) 16467 lt_prog_compiler_pic_GCJ='-pic' 16468 lt_prog_compiler_static_GCJ='-Bstatic' 16469 ;; 16470 16471 *) 16472 lt_prog_compiler_can_build_shared_GCJ=no 16473 ;; 16474 esac 16475 fi 16476 16477{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16478echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16479 16480# 16481# Check to make sure the PIC flag actually works. 16482# 16483if test -n "$lt_prog_compiler_pic_GCJ"; then 16484 16485{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16486echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16487if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16488 echo $ECHO_N "(cached) $ECHO_C" >&6 16489else 16490 lt_prog_compiler_pic_works_GCJ=no 16491 ac_outfile=conftest.$ac_objext 16492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16493 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16494 # Insert the option either (1) after the last *FLAGS variable, or 16495 # (2) before a word containing "conftest.", or (3) at the end. 16496 # Note that $ac_compile itself does not contain backslashes and begins 16497 # with a dollar sign (not a hyphen), so the echo should work correctly. 16498 # The option is referenced via a variable to avoid confusing sed. 16499 lt_compile=`echo "$ac_compile" | $SED \ 16500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16502 -e 's:$: $lt_compiler_flag:'` 16503 (eval echo "\"\$as_me:16503: $lt_compile\"" >&5) 16504 (eval "$lt_compile" 2>conftest.err) 16505 ac_status=$? 16506 cat conftest.err >&5 16507 echo "$as_me:16507: \$? = $ac_status" >&5 16508 if (exit $ac_status) && test -s "$ac_outfile"; then 16509 # The compiler can only warn and ignore the option if not recognized 16510 # So say no if there are warnings other than the usual output. 16511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16514 lt_prog_compiler_pic_works_GCJ=yes 16515 fi 16516 fi 16517 $rm conftest* 16518 16519fi 16520{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16521echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16522 16523if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16524 case $lt_prog_compiler_pic_GCJ in 16525 "" | " "*) ;; 16526 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16527 esac 16528else 16529 lt_prog_compiler_pic_GCJ= 16530 lt_prog_compiler_can_build_shared_GCJ=no 16531fi 16532 16533fi 16534case $host_os in 16535 # For platforms which do not support PIC, -DPIC is meaningless: 16536 *djgpp*) 16537 lt_prog_compiler_pic_GCJ= 16538 ;; 16539 *) 16540 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16541 ;; 16542esac 16543 16544# 16545# Check to make sure the static flag actually works. 16546# 16547wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16548{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16549echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16550if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16551 echo $ECHO_N "(cached) $ECHO_C" >&6 16552else 16553 lt_prog_compiler_static_works_GCJ=no 16554 save_LDFLAGS="$LDFLAGS" 16555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16556 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16558 # The linker can only warn and ignore the option if not recognized 16559 # So say no if there are warnings 16560 if test -s conftest.err; then 16561 # Append any errors to the config.log. 16562 cat conftest.err 1>&5 16563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16565 if diff conftest.exp conftest.er2 >/dev/null; then 16566 lt_prog_compiler_static_works_GCJ=yes 16567 fi 16568 else 16569 lt_prog_compiler_static_works_GCJ=yes 16570 fi 16571 fi 16572 $rm conftest* 16573 LDFLAGS="$save_LDFLAGS" 16574 16575fi 16576{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16577echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16578 16579if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16580 : 16581else 16582 lt_prog_compiler_static_GCJ= 16583fi 16584 16585 16586{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16587echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16588if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16589 echo $ECHO_N "(cached) $ECHO_C" >&6 16590else 16591 lt_cv_prog_compiler_c_o_GCJ=no 16592 $rm -r conftest 2>/dev/null 16593 mkdir conftest 16594 cd conftest 16595 mkdir out 16596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16597 16598 lt_compiler_flag="-o out/conftest2.$ac_objext" 16599 # Insert the option either (1) after the last *FLAGS variable, or 16600 # (2) before a word containing "conftest.", or (3) at the end. 16601 # Note that $ac_compile itself does not contain backslashes and begins 16602 # with a dollar sign (not a hyphen), so the echo should work correctly. 16603 lt_compile=`echo "$ac_compile" | $SED \ 16604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16606 -e 's:$: $lt_compiler_flag:'` 16607 (eval echo "\"\$as_me:16607: $lt_compile\"" >&5) 16608 (eval "$lt_compile" 2>out/conftest.err) 16609 ac_status=$? 16610 cat out/conftest.err >&5 16611 echo "$as_me:16611: \$? = $ac_status" >&5 16612 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16613 then 16614 # The compiler can only warn and ignore the option if not recognized 16615 # So say no if there are warnings 16616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16619 lt_cv_prog_compiler_c_o_GCJ=yes 16620 fi 16621 fi 16622 chmod u+w . 2>&5 16623 $rm conftest* 16624 # SGI C++ compiler will create directory out/ii_files/ for 16625 # template instantiation 16626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16627 $rm out/* && rmdir out 16628 cd .. 16629 rmdir conftest 16630 $rm conftest* 16631 16632fi 16633{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16634echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16635 16636 16637hard_links="nottested" 16638if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16639 # do not overwrite the value of need_locks provided by the user 16640 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16641echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16642 hard_links=yes 16643 $rm conftest* 16644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16645 touch conftest.a 16646 ln conftest.a conftest.b 2>&5 || hard_links=no 16647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16648 { echo "$as_me:$LINENO: result: $hard_links" >&5 16649echo "${ECHO_T}$hard_links" >&6; } 16650 if test "$hard_links" = no; then 16651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16652echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16653 need_locks=warn 16654 fi 16655else 16656 need_locks=no 16657fi 16658 16659{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16661 16662 runpath_var= 16663 allow_undefined_flag_GCJ= 16664 enable_shared_with_static_runtimes_GCJ=no 16665 archive_cmds_GCJ= 16666 archive_expsym_cmds_GCJ= 16667 old_archive_From_new_cmds_GCJ= 16668 old_archive_from_expsyms_cmds_GCJ= 16669 export_dynamic_flag_spec_GCJ= 16670 whole_archive_flag_spec_GCJ= 16671 thread_safe_flag_spec_GCJ= 16672 hardcode_libdir_flag_spec_GCJ= 16673 hardcode_libdir_flag_spec_ld_GCJ= 16674 hardcode_libdir_separator_GCJ= 16675 hardcode_direct_GCJ=no 16676 hardcode_minus_L_GCJ=no 16677 hardcode_shlibpath_var_GCJ=unsupported 16678 link_all_deplibs_GCJ=unknown 16679 hardcode_automatic_GCJ=no 16680 module_cmds_GCJ= 16681 module_expsym_cmds_GCJ= 16682 always_export_symbols_GCJ=no 16683 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16684 # include_expsyms should be a list of space-separated symbols to be *always* 16685 # included in the symbol list 16686 include_expsyms_GCJ= 16687 # exclude_expsyms can be an extended regexp of symbols to exclude 16688 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16690 # as well as any symbol that contains `d'. 16691 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16693 # platforms (ab)use it in PIC code, but their linkers get confused if 16694 # the symbol is explicitly referenced. Since portable code cannot 16695 # rely on this symbol name, it's probably fine to never include it in 16696 # preloaded symbol tables. 16697 extract_expsyms_cmds= 16698 # Just being paranoid about ensuring that cc_basename is set. 16699 for cc_temp in $compiler""; do 16700 case $cc_temp in 16701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16703 \-*) ;; 16704 *) break;; 16705 esac 16706done 16707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16708 16709 case $host_os in 16710 cygwin* | mingw* | pw32*) 16711 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16712 # When not using gcc, we currently assume that we are using 16713 # Microsoft Visual C++. 16714 if test "$GCC" != yes; then 16715 with_gnu_ld=no 16716 fi 16717 ;; 16718 interix*) 16719 # we just hope/assume this is gcc and not c89 (= MSVC++) 16720 with_gnu_ld=yes 16721 ;; 16722 openbsd*) 16723 with_gnu_ld=no 16724 ;; 16725 esac 16726 16727 ld_shlibs_GCJ=yes 16728 if test "$with_gnu_ld" = yes; then 16729 # If archive_cmds runs LD, not CC, wlarc should be empty 16730 wlarc='${wl}' 16731 16732 # Set some defaults for GNU ld with shared library support. These 16733 # are reset later if shared libraries are not supported. Putting them 16734 # here allows them to be overridden if necessary. 16735 runpath_var=LD_RUN_PATH 16736 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16737 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16738 # ancient GNU ld didn't support --whole-archive et. al. 16739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16740 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16741 else 16742 whole_archive_flag_spec_GCJ= 16743 fi 16744 supports_anon_versioning=no 16745 case `$LD -v 2>/dev/null` in 16746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16749 *\ 2.11.*) ;; # other 2.11 versions 16750 *) supports_anon_versioning=yes ;; 16751 esac 16752 16753 # See if GNU ld supports shared libraries. 16754 case $host_os in 16755 aix3* | aix4* | aix5*) 16756 # On AIX/PPC, the GNU linker is very broken 16757 if test "$host_cpu" != ia64; then 16758 ld_shlibs_GCJ=no 16759 cat <<EOF 1>&2 16760 16761*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16762*** to be unable to reliably create shared libraries on AIX. 16763*** Therefore, libtool is disabling shared libraries support. If you 16764*** really care for shared libraries, you may want to modify your PATH 16765*** so that a non-GNU linker is found, and then restart. 16766 16767EOF 16768 fi 16769 ;; 16770 16771 amigaos*) 16772 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)' 16773 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16774 hardcode_minus_L_GCJ=yes 16775 16776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16777 # that the semantics of dynamic libraries on AmigaOS, at least up 16778 # to version 4, is to share data among multiple programs linked 16779 # with the same dynamic library. Since this doesn't match the 16780 # behavior of shared libraries on other platforms, we can't use 16781 # them. 16782 ld_shlibs_GCJ=no 16783 ;; 16784 16785 beos*) 16786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16787 allow_undefined_flag_GCJ=unsupported 16788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16789 # support --undefined. This deserves some investigation. FIXME 16790 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16791 else 16792 ld_shlibs_GCJ=no 16793 fi 16794 ;; 16795 16796 cygwin* | mingw* | pw32*) 16797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16798 # as there is no search path for DLLs. 16799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16800 allow_undefined_flag_GCJ=unsupported 16801 always_export_symbols_GCJ=no 16802 enable_shared_with_static_runtimes_GCJ=yes 16803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16804 16805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16807 # If the export-symbols file already is a .def file (1st line 16808 # is EXPORTS), use it as is; otherwise, prepend... 16809 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16810 cp $export_symbols $output_objdir/$soname.def; 16811 else 16812 echo EXPORTS > $output_objdir/$soname.def; 16813 cat $export_symbols >> $output_objdir/$soname.def; 16814 fi~ 16815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16816 else 16817 ld_shlibs_GCJ=no 16818 fi 16819 ;; 16820 16821 interix3*) 16822 hardcode_direct_GCJ=no 16823 hardcode_shlibpath_var_GCJ=no 16824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16825 export_dynamic_flag_spec_GCJ='${wl}-E' 16826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16827 # Instead, shared libraries are loaded at an image base (0x10000000 by 16828 # default) and relocated if they conflict, which is a slow very memory 16829 # consuming and fragmenting process. To avoid this, we pick a random, 16830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16831 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16832 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' 16833 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' 16834 ;; 16835 16836 linux*) 16837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16838 tmp_addflag= 16839 case $cc_basename,$host_cpu in 16840 pgcc*) # Portland Group C compiler 16841 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' 16842 tmp_addflag=' $pic_flag' 16843 ;; 16844 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16845 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' 16846 tmp_addflag=' $pic_flag -Mnomain' ;; 16847 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16848 tmp_addflag=' -i_dynamic' ;; 16849 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16850 tmp_addflag=' -i_dynamic -nofor_main' ;; 16851 ifc* | ifort*) # Intel Fortran compiler 16852 tmp_addflag=' -nofor_main' ;; 16853 esac 16854 case `$CC -V 2>&1 | sed 5q` in 16855 *Sun\ C*) # Sun C 5.9 16856 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 16857 tmp_sharedflag='-G' ;; 16858 *Sun\ F*) # Sun Fortran 8.3 16859 tmp_sharedflag='-G' ;; 16860 *) 16861 tmp_sharedflag='-shared' ;; 16862 esac 16863 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16864 16865 if test $supports_anon_versioning = yes; then 16866 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16868 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16869 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16870 fi 16871 else 16872 ld_shlibs_GCJ=no 16873 fi 16874 ;; 16875 16876 netbsd*) 16877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16878 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16879 wlarc= 16880 else 16881 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16882 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16883 fi 16884 ;; 16885 16886 solaris*) 16887 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16888 ld_shlibs_GCJ=no 16889 cat <<EOF 1>&2 16890 16891*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16892*** create shared libraries on Solaris systems. Therefore, libtool 16893*** is disabling shared libraries support. We urge you to upgrade GNU 16894*** binutils to release 2.9.1 or newer. Another option is to modify 16895*** your PATH or compiler configuration so that the native linker is 16896*** used, and then restart. 16897 16898EOF 16899 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16900 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16901 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16902 else 16903 ld_shlibs_GCJ=no 16904 fi 16905 ;; 16906 16907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16908 case `$LD -v 2>&1` in 16909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16910 ld_shlibs_GCJ=no 16911 cat <<_LT_EOF 1>&2 16912 16913*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16914*** reliably create shared libraries on SCO systems. Therefore, libtool 16915*** is disabling shared libraries support. We urge you to upgrade GNU 16916*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16917*** your PATH or compiler configuration so that the native linker is 16918*** used, and then restart. 16919 16920_LT_EOF 16921 ;; 16922 *) 16923 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16924 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16925 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16926 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16927 else 16928 ld_shlibs_GCJ=no 16929 fi 16930 ;; 16931 esac 16932 ;; 16933 16934 sunos4*) 16935 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16936 wlarc= 16937 hardcode_direct_GCJ=yes 16938 hardcode_shlibpath_var_GCJ=no 16939 ;; 16940 16941 *) 16942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16943 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16944 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16945 else 16946 ld_shlibs_GCJ=no 16947 fi 16948 ;; 16949 esac 16950 16951 if test "$ld_shlibs_GCJ" = no; then 16952 runpath_var= 16953 hardcode_libdir_flag_spec_GCJ= 16954 export_dynamic_flag_spec_GCJ= 16955 whole_archive_flag_spec_GCJ= 16956 fi 16957 else 16958 # PORTME fill in a description of your system's linker (not GNU ld) 16959 case $host_os in 16960 aix3*) 16961 allow_undefined_flag_GCJ=unsupported 16962 always_export_symbols_GCJ=yes 16963 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' 16964 # Note: this linker hardcodes the directories in LIBPATH if there 16965 # are no directories specified by -L. 16966 hardcode_minus_L_GCJ=yes 16967 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16968 # Neither direct hardcoding nor static linking is supported with a 16969 # broken collect2. 16970 hardcode_direct_GCJ=unsupported 16971 fi 16972 ;; 16973 16974 aix4* | aix5*) 16975 if test "$host_cpu" = ia64; then 16976 # On IA64, the linker does run time linking by default, so we don't 16977 # have to do anything special. 16978 aix_use_runtimelinking=no 16979 exp_sym_flag='-Bexport' 16980 no_entry_flag="" 16981 else 16982 # If we're using GNU nm, then we don't want the "-C" option. 16983 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16984 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16985 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' 16986 else 16987 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' 16988 fi 16989 aix_use_runtimelinking=no 16990 16991 # Test if we are trying to use run time linking or normal 16992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16993 # need to do runtime linking. 16994 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16995 for ld_flag in $LDFLAGS; do 16996 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16997 aix_use_runtimelinking=yes 16998 break 16999 fi 17000 done 17001 ;; 17002 esac 17003 17004 exp_sym_flag='-bexport' 17005 no_entry_flag='-bnoentry' 17006 fi 17007 17008 # When large executables or shared objects are built, AIX ld can 17009 # have problems creating the table of contents. If linking a library 17010 # or program results in "error TOC overflow" add -mminimal-toc to 17011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17013 17014 archive_cmds_GCJ='' 17015 hardcode_direct_GCJ=yes 17016 hardcode_libdir_separator_GCJ=':' 17017 link_all_deplibs_GCJ=yes 17018 17019 if test "$GCC" = yes; then 17020 case $host_os in aix4.[012]|aix4.[012].*) 17021 # We only want to do this on AIX 4.2 and lower, the check 17022 # below for broken collect2 doesn't work under 4.3+ 17023 collect2name=`${CC} -print-prog-name=collect2` 17024 if test -f "$collect2name" && \ 17025 strings "$collect2name" | grep resolve_lib_name >/dev/null 17026 then 17027 # We have reworked collect2 17028 hardcode_direct_GCJ=yes 17029 else 17030 # We have old collect2 17031 hardcode_direct_GCJ=unsupported 17032 # It fails to find uninstalled libraries when the uninstalled 17033 # path is not listed in the libpath. Setting hardcode_minus_L 17034 # to unsupported forces relinking 17035 hardcode_minus_L_GCJ=yes 17036 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17037 hardcode_libdir_separator_GCJ= 17038 fi 17039 ;; 17040 esac 17041 shared_flag='-shared' 17042 if test "$aix_use_runtimelinking" = yes; then 17043 shared_flag="$shared_flag "'${wl}-G' 17044 fi 17045 else 17046 # not using gcc 17047 if test "$host_cpu" = ia64; then 17048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17049 # chokes on -Wl,-G. The following line is correct: 17050 shared_flag='-G' 17051 else 17052 if test "$aix_use_runtimelinking" = yes; then 17053 shared_flag='${wl}-G' 17054 else 17055 shared_flag='${wl}-bM:SRE' 17056 fi 17057 fi 17058 fi 17059 17060 # It seems that -bexpall does not export symbols beginning with 17061 # underscore (_), so it is better to generate a list of symbols to export. 17062 always_export_symbols_GCJ=yes 17063 if test "$aix_use_runtimelinking" = yes; then 17064 # Warning - without using the other runtime loading flags (-brtl), 17065 # -berok will link without error, but may produce a broken library. 17066 allow_undefined_flag_GCJ='-berok' 17067 # Determine the default libpath from the value encoded in an empty executable. 17068 cat >conftest.$ac_ext <<_ACEOF 17069/* confdefs.h. */ 17070_ACEOF 17071cat confdefs.h >>conftest.$ac_ext 17072cat >>conftest.$ac_ext <<_ACEOF 17073/* end confdefs.h. */ 17074 17075int 17076main () 17077{ 17078 17079 ; 17080 return 0; 17081} 17082_ACEOF 17083rm -f conftest.$ac_objext conftest$ac_exeext 17084if { (ac_try="$ac_link" 17085case "(($ac_try" in 17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17087 *) ac_try_echo=$ac_try;; 17088esac 17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17090 (eval "$ac_link") 2>conftest.er1 17091 ac_status=$? 17092 grep -v '^ *+' conftest.er1 >conftest.err 17093 rm -f conftest.er1 17094 cat conftest.err >&5 17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17096 (exit $ac_status); } && { 17097 test -z "$ac_c_werror_flag" || 17098 test ! -s conftest.err 17099 } && test -s conftest$ac_exeext && 17100 $as_test_x conftest$ac_exeext; then 17101 17102aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17103}'` 17104# Check for a 64-bit object if we didn't find anything. 17105if 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; } 17106}'`; fi 17107else 17108 echo "$as_me: failed program was:" >&5 17109sed 's/^/| /' conftest.$ac_ext >&5 17110 17111 17112fi 17113 17114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17115 conftest$ac_exeext conftest.$ac_ext 17116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17117 17118 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17119 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" 17120 else 17121 if test "$host_cpu" = ia64; then 17122 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17123 allow_undefined_flag_GCJ="-z nodefs" 17124 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" 17125 else 17126 # Determine the default libpath from the value encoded in an empty executable. 17127 cat >conftest.$ac_ext <<_ACEOF 17128/* confdefs.h. */ 17129_ACEOF 17130cat confdefs.h >>conftest.$ac_ext 17131cat >>conftest.$ac_ext <<_ACEOF 17132/* end confdefs.h. */ 17133 17134int 17135main () 17136{ 17137 17138 ; 17139 return 0; 17140} 17141_ACEOF 17142rm -f conftest.$ac_objext conftest$ac_exeext 17143if { (ac_try="$ac_link" 17144case "(($ac_try" in 17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17146 *) ac_try_echo=$ac_try;; 17147esac 17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17149 (eval "$ac_link") 2>conftest.er1 17150 ac_status=$? 17151 grep -v '^ *+' conftest.er1 >conftest.err 17152 rm -f conftest.er1 17153 cat conftest.err >&5 17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17155 (exit $ac_status); } && { 17156 test -z "$ac_c_werror_flag" || 17157 test ! -s conftest.err 17158 } && test -s conftest$ac_exeext && 17159 $as_test_x conftest$ac_exeext; then 17160 17161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17162}'` 17163# Check for a 64-bit object if we didn't find anything. 17164if 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; } 17165}'`; fi 17166else 17167 echo "$as_me: failed program was:" >&5 17168sed 's/^/| /' conftest.$ac_ext >&5 17169 17170 17171fi 17172 17173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17174 conftest$ac_exeext conftest.$ac_ext 17175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17176 17177 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17178 # Warning - without using the other run time loading flags, 17179 # -berok will link without error, but may produce a broken library. 17180 no_undefined_flag_GCJ=' ${wl}-bernotok' 17181 allow_undefined_flag_GCJ=' ${wl}-berok' 17182 # Exported symbols can be pulled into shared objects from archives 17183 whole_archive_flag_spec_GCJ='$convenience' 17184 archive_cmds_need_lc_GCJ=yes 17185 # This is similar to how AIX traditionally builds its shared libraries. 17186 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' 17187 fi 17188 fi 17189 ;; 17190 17191 amigaos*) 17192 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)' 17193 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17194 hardcode_minus_L_GCJ=yes 17195 # see comment about different semantics on the GNU ld section 17196 ld_shlibs_GCJ=no 17197 ;; 17198 17199 bsdi[45]*) 17200 export_dynamic_flag_spec_GCJ=-rdynamic 17201 ;; 17202 17203 cygwin* | mingw* | pw32*) 17204 # When not using gcc, we currently assume that we are using 17205 # Microsoft Visual C++. 17206 # hardcode_libdir_flag_spec is actually meaningless, as there is 17207 # no search path for DLLs. 17208 hardcode_libdir_flag_spec_GCJ=' ' 17209 allow_undefined_flag_GCJ=unsupported 17210 # Tell ltmain to make .lib files, not .a files. 17211 libext=lib 17212 # Tell ltmain to make .dll files, not .so files. 17213 shrext_cmds=".dll" 17214 # FIXME: Setting linknames here is a bad hack. 17215 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17216 # The linker will automatically build a .lib file if we build a DLL. 17217 old_archive_From_new_cmds_GCJ='true' 17218 # FIXME: Should let the user specify the lib program. 17219 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17220 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17221 enable_shared_with_static_runtimes_GCJ=yes 17222 ;; 17223 17224 darwin* | rhapsody*) 17225 case $host_os in 17226 rhapsody* | darwin1.[012]) 17227 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17228 ;; 17229 *) # Darwin 1.3 on 17230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17231 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17232 else 17233 case ${MACOSX_DEPLOYMENT_TARGET} in 17234 10.[012]) 17235 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17236 ;; 17237 10.*) 17238 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17239 ;; 17240 esac 17241 fi 17242 ;; 17243 esac 17244 archive_cmds_need_lc_GCJ=no 17245 hardcode_direct_GCJ=no 17246 hardcode_automatic_GCJ=yes 17247 hardcode_shlibpath_var_GCJ=unsupported 17248 whole_archive_flag_spec_GCJ='' 17249 link_all_deplibs_GCJ=yes 17250 if test "$GCC" = yes ; then 17251 output_verbose_link_cmd='echo' 17252 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17253 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17255 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}' 17256 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}' 17257 else 17258 case $cc_basename in 17259 xlc*) 17260 output_verbose_link_cmd='echo' 17261 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17262 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17264 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}' 17265 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}' 17266 ;; 17267 *) 17268 ld_shlibs_GCJ=no 17269 ;; 17270 esac 17271 fi 17272 ;; 17273 17274 dgux*) 17275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17276 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17277 hardcode_shlibpath_var_GCJ=no 17278 ;; 17279 17280 freebsd1*) 17281 ld_shlibs_GCJ=no 17282 ;; 17283 17284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17285 # support. Future versions do this automatically, but an explicit c++rt0.o 17286 # does not break anything, and helps significantly (at the cost of a little 17287 # extra space). 17288 freebsd2.2*) 17289 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17290 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17291 hardcode_direct_GCJ=yes 17292 hardcode_shlibpath_var_GCJ=no 17293 ;; 17294 17295 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17296 freebsd2*) 17297 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17298 hardcode_direct_GCJ=yes 17299 hardcode_minus_L_GCJ=yes 17300 hardcode_shlibpath_var_GCJ=no 17301 ;; 17302 17303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17304 freebsd* | kfreebsd*-gnu | dragonfly*) 17305 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17306 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17307 hardcode_direct_GCJ=yes 17308 hardcode_shlibpath_var_GCJ=no 17309 ;; 17310 17311 hpux9*) 17312 if test "$GCC" = yes; then 17313 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' 17314 else 17315 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' 17316 fi 17317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17318 hardcode_libdir_separator_GCJ=: 17319 hardcode_direct_GCJ=yes 17320 17321 # hardcode_minus_L: Not really in the search PATH, 17322 # but as the default location of the library. 17323 hardcode_minus_L_GCJ=yes 17324 export_dynamic_flag_spec_GCJ='${wl}-E' 17325 ;; 17326 17327 hpux10*) 17328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17329 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17330 else 17331 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17332 fi 17333 if test "$with_gnu_ld" = no; then 17334 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17335 hardcode_libdir_separator_GCJ=: 17336 17337 hardcode_direct_GCJ=yes 17338 export_dynamic_flag_spec_GCJ='${wl}-E' 17339 17340 # hardcode_minus_L: Not really in the search PATH, 17341 # but as the default location of the library. 17342 hardcode_minus_L_GCJ=yes 17343 fi 17344 ;; 17345 17346 hpux11*) 17347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17348 case $host_cpu in 17349 hppa*64*) 17350 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17351 ;; 17352 ia64*) 17353 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17354 ;; 17355 *) 17356 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17357 ;; 17358 esac 17359 else 17360 case $host_cpu in 17361 hppa*64*) 17362 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17363 ;; 17364 ia64*) 17365 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17366 ;; 17367 *) 17368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17369 ;; 17370 esac 17371 fi 17372 if test "$with_gnu_ld" = no; then 17373 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17374 hardcode_libdir_separator_GCJ=: 17375 17376 case $host_cpu in 17377 hppa*64*|ia64*) 17378 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17379 hardcode_direct_GCJ=no 17380 hardcode_shlibpath_var_GCJ=no 17381 ;; 17382 *) 17383 hardcode_direct_GCJ=yes 17384 export_dynamic_flag_spec_GCJ='${wl}-E' 17385 17386 # hardcode_minus_L: Not really in the search PATH, 17387 # but as the default location of the library. 17388 hardcode_minus_L_GCJ=yes 17389 ;; 17390 esac 17391 fi 17392 ;; 17393 17394 irix5* | irix6* | nonstopux*) 17395 if test "$GCC" = yes; then 17396 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' 17397 else 17398 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' 17399 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17400 fi 17401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17402 hardcode_libdir_separator_GCJ=: 17403 link_all_deplibs_GCJ=yes 17404 ;; 17405 17406 netbsd*) 17407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17408 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17409 else 17410 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17411 fi 17412 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17413 hardcode_direct_GCJ=yes 17414 hardcode_shlibpath_var_GCJ=no 17415 ;; 17416 17417 newsos6) 17418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17419 hardcode_direct_GCJ=yes 17420 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17421 hardcode_libdir_separator_GCJ=: 17422 hardcode_shlibpath_var_GCJ=no 17423 ;; 17424 17425 openbsd*) 17426 hardcode_direct_GCJ=yes 17427 hardcode_shlibpath_var_GCJ=no 17428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17429 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17430 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17432 export_dynamic_flag_spec_GCJ='${wl}-E' 17433 else 17434 case $host_os in 17435 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17436 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17437 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17438 ;; 17439 *) 17440 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17442 ;; 17443 esac 17444 fi 17445 ;; 17446 17447 os2*) 17448 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17449 hardcode_minus_L_GCJ=yes 17450 allow_undefined_flag_GCJ=unsupported 17451 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' 17452 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17453 ;; 17454 17455 osf3*) 17456 if test "$GCC" = yes; then 17457 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17458 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' 17459 else 17460 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17461 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' 17462 fi 17463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17464 hardcode_libdir_separator_GCJ=: 17465 ;; 17466 17467 osf4* | osf5*) # as osf3* with the addition of -msym flag 17468 if test "$GCC" = yes; then 17469 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17470 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' 17471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17472 else 17473 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17474 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' 17475 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~ 17476 $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' 17477 17478 # Both c and cxx compiler support -rpath directly 17479 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17480 fi 17481 hardcode_libdir_separator_GCJ=: 17482 ;; 17483 17484 solaris*) 17485 no_undefined_flag_GCJ=' -z text' 17486 if test "$GCC" = yes; then 17487 wlarc='${wl}' 17488 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17489 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17491 else 17492 wlarc='' 17493 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17494 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17495 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17496 fi 17497 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17498 hardcode_shlibpath_var_GCJ=no 17499 case $host_os in 17500 solaris2.[0-5] | solaris2.[0-5].*) ;; 17501 *) 17502 # The compiler driver will combine linker options so we 17503 # cannot just pass the convience library names through 17504 # without $wl, iff we do not link with $LD. 17505 # Luckily, gcc supports the same syntax we need for Sun Studio. 17506 # Supported since Solaris 2.6 (maybe 2.5.1?) 17507 case $wlarc in 17508 '') 17509 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17510 *) 17511 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' ;; 17512 esac ;; 17513 esac 17514 link_all_deplibs_GCJ=yes 17515 ;; 17516 17517 sunos4*) 17518 if test "x$host_vendor" = xsequent; then 17519 # Use $CC to link under sequent, because it throws in some extra .o 17520 # files that make .init and .fini sections work. 17521 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17522 else 17523 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17524 fi 17525 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17526 hardcode_direct_GCJ=yes 17527 hardcode_minus_L_GCJ=yes 17528 hardcode_shlibpath_var_GCJ=no 17529 ;; 17530 17531 sysv4) 17532 case $host_vendor in 17533 sni) 17534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17535 hardcode_direct_GCJ=yes # is this really true??? 17536 ;; 17537 siemens) 17538 ## LD is ld it makes a PLAMLIB 17539 ## CC just makes a GrossModule. 17540 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17541 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17542 hardcode_direct_GCJ=no 17543 ;; 17544 motorola) 17545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17546 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17547 ;; 17548 esac 17549 runpath_var='LD_RUN_PATH' 17550 hardcode_shlibpath_var_GCJ=no 17551 ;; 17552 17553 sysv4.3*) 17554 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17555 hardcode_shlibpath_var_GCJ=no 17556 export_dynamic_flag_spec_GCJ='-Bexport' 17557 ;; 17558 17559 sysv4*MP*) 17560 if test -d /usr/nec; then 17561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17562 hardcode_shlibpath_var_GCJ=no 17563 runpath_var=LD_RUN_PATH 17564 hardcode_runpath_var=yes 17565 ld_shlibs_GCJ=yes 17566 fi 17567 ;; 17568 17569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17570 no_undefined_flag_GCJ='${wl}-z,text' 17571 archive_cmds_need_lc_GCJ=no 17572 hardcode_shlibpath_var_GCJ=no 17573 runpath_var='LD_RUN_PATH' 17574 17575 if test "$GCC" = yes; then 17576 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17577 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17578 else 17579 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17580 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17581 fi 17582 ;; 17583 17584 sysv5* | sco3.2v5* | sco5v6*) 17585 # Note: We can NOT use -z defs as we might desire, because we do not 17586 # link with -lc, and that would cause any symbols used from libc to 17587 # always be unresolved, which means just about no library would 17588 # ever link correctly. If we're not using GNU ld we use -z text 17589 # though, which does catch some bad symbols but isn't as heavy-handed 17590 # as -z defs. 17591 no_undefined_flag_GCJ='${wl}-z,text' 17592 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17593 archive_cmds_need_lc_GCJ=no 17594 hardcode_shlibpath_var_GCJ=no 17595 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17596 hardcode_libdir_separator_GCJ=':' 17597 link_all_deplibs_GCJ=yes 17598 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17599 runpath_var='LD_RUN_PATH' 17600 17601 if test "$GCC" = yes; then 17602 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17603 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17604 else 17605 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17606 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17607 fi 17608 ;; 17609 17610 uts4*) 17611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17612 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17613 hardcode_shlibpath_var_GCJ=no 17614 ;; 17615 17616 *) 17617 ld_shlibs_GCJ=no 17618 ;; 17619 esac 17620 fi 17621 17622{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17623echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17624test "$ld_shlibs_GCJ" = no && can_build_shared=no 17625 17626# 17627# Do we need to explicitly link libc? 17628# 17629case "x$archive_cmds_need_lc_GCJ" in 17630x|xyes) 17631 # Assume -lc should be added 17632 archive_cmds_need_lc_GCJ=yes 17633 17634 if test "$enable_shared" = yes && test "$GCC" = yes; then 17635 case $archive_cmds_GCJ in 17636 *'~'*) 17637 # FIXME: we may have to deal with multi-command sequences. 17638 ;; 17639 '$CC '*) 17640 # Test whether the compiler implicitly links with -lc since on some 17641 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17642 # to ld, don't add -lc before -lgcc. 17643 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17644echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17645 $rm conftest* 17646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17647 17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17649 (eval $ac_compile) 2>&5 17650 ac_status=$? 17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17652 (exit $ac_status); } 2>conftest.err; then 17653 soname=conftest 17654 lib=conftest 17655 libobjs=conftest.$ac_objext 17656 deplibs= 17657 wl=$lt_prog_compiler_wl_GCJ 17658 pic_flag=$lt_prog_compiler_pic_GCJ 17659 compiler_flags=-v 17660 linker_flags=-v 17661 verstring= 17662 output_objdir=. 17663 libname=conftest 17664 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17665 allow_undefined_flag_GCJ= 17666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17667 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17668 ac_status=$? 17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17670 (exit $ac_status); } 17671 then 17672 archive_cmds_need_lc_GCJ=no 17673 else 17674 archive_cmds_need_lc_GCJ=yes 17675 fi 17676 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17677 else 17678 cat conftest.err 1>&5 17679 fi 17680 $rm conftest* 17681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17682echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17683 ;; 17684 esac 17685 fi 17686 ;; 17687esac 17688 17689{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17690echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17691library_names_spec= 17692libname_spec='lib$name' 17693soname_spec= 17694shrext_cmds=".so" 17695postinstall_cmds= 17696postuninstall_cmds= 17697finish_cmds= 17698finish_eval= 17699shlibpath_var= 17700shlibpath_overrides_runpath=unknown 17701version_type=none 17702dynamic_linker="$host_os ld.so" 17703sys_lib_dlsearch_path_spec="/lib /usr/lib" 17704if test "$GCC" = yes; then 17705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17706 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17707 # if the path contains ";" then we assume it to be the separator 17708 # otherwise default to the standard path separator (i.e. ":") - it is 17709 # assumed that no part of a normal pathname contains ";" but that should 17710 # okay in the real world where ";" in dirpaths is itself problematic. 17711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17712 else 17713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17714 fi 17715else 17716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17717fi 17718need_lib_prefix=unknown 17719hardcode_into_libs=no 17720 17721# when you set need_version to no, make sure it does not cause -set_version 17722# flags to be left without arguments 17723need_version=unknown 17724 17725case $host_os in 17726aix3*) 17727 version_type=linux 17728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17729 shlibpath_var=LIBPATH 17730 17731 # AIX 3 has no versioning support, so we append a major version to the name. 17732 soname_spec='${libname}${release}${shared_ext}$major' 17733 ;; 17734 17735aix4* | aix5*) 17736 version_type=linux 17737 need_lib_prefix=no 17738 need_version=no 17739 hardcode_into_libs=yes 17740 if test "$host_cpu" = ia64; then 17741 # AIX 5 supports IA64 17742 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17743 shlibpath_var=LD_LIBRARY_PATH 17744 else 17745 # With GCC up to 2.95.x, collect2 would create an import file 17746 # for dependence libraries. The import file would start with 17747 # the line `#! .'. This would cause the generated library to 17748 # depend on `.', always an invalid library. This was fixed in 17749 # development snapshots of GCC prior to 3.0. 17750 case $host_os in 17751 aix4 | aix4.[01] | aix4.[01].*) 17752 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17753 echo ' yes ' 17754 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17755 : 17756 else 17757 can_build_shared=no 17758 fi 17759 ;; 17760 esac 17761 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17762 # soname into executable. Probably we can add versioning support to 17763 # collect2, so additional links can be useful in future. 17764 if test "$aix_use_runtimelinking" = yes; then 17765 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17766 # instead of lib<name>.a to let people know that these are not 17767 # typical AIX shared libraries. 17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17769 else 17770 # We preserve .a as extension for shared libraries through AIX4.2 17771 # and later when we are not doing run time linking. 17772 library_names_spec='${libname}${release}.a $libname.a' 17773 soname_spec='${libname}${release}${shared_ext}$major' 17774 fi 17775 shlibpath_var=LIBPATH 17776 fi 17777 ;; 17778 17779amigaos*) 17780 library_names_spec='$libname.ixlibrary $libname.a' 17781 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17782 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' 17783 ;; 17784 17785beos*) 17786 library_names_spec='${libname}${shared_ext}' 17787 dynamic_linker="$host_os ld.so" 17788 shlibpath_var=LIBRARY_PATH 17789 ;; 17790 17791bsdi[45]*) 17792 version_type=linux 17793 need_version=no 17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17795 soname_spec='${libname}${release}${shared_ext}$major' 17796 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17797 shlibpath_var=LD_LIBRARY_PATH 17798 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17799 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17800 # the default ld.so.conf also contains /usr/contrib/lib and 17801 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17802 # libtool to hard-code these into programs 17803 ;; 17804 17805cygwin* | mingw* | pw32*) 17806 version_type=windows 17807 shrext_cmds=".dll" 17808 need_version=no 17809 need_lib_prefix=no 17810 17811 case $GCC,$host_os in 17812 yes,cygwin* | yes,mingw* | yes,pw32*) 17813 library_names_spec='$libname.dll.a' 17814 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17815 postinstall_cmds='base_file=`basename \${file}`~ 17816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17817 dldir=$destdir/`dirname \$dlpath`~ 17818 test -d \$dldir || mkdir -p \$dldir~ 17819 $install_prog $dir/$dlname \$dldir/$dlname~ 17820 chmod a+x \$dldir/$dlname' 17821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17822 dlpath=$dir/\$dldll~ 17823 $rm \$dlpath' 17824 shlibpath_overrides_runpath=yes 17825 17826 case $host_os in 17827 cygwin*) 17828 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17830 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17831 ;; 17832 mingw*) 17833 # MinGW DLLs use traditional 'lib' prefix 17834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17836 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17837 # It is most probably a Windows format PATH printed by 17838 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17839 # path with ; separators, and with drive letters. We can handle the 17840 # drive letters (cygwin fileutils understands them), so leave them, 17841 # especially as we might pass files found there to a mingw objdump, 17842 # which wouldn't understand a cygwinified path. Ahh. 17843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17844 else 17845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17846 fi 17847 ;; 17848 pw32*) 17849 # pw32 DLLs use 'pw' prefix rather than 'lib' 17850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17851 ;; 17852 esac 17853 ;; 17854 17855 *) 17856 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17857 ;; 17858 esac 17859 dynamic_linker='Win32 ld.exe' 17860 # FIXME: first we should search . and the directory the executable is in 17861 shlibpath_var=PATH 17862 ;; 17863 17864darwin* | rhapsody*) 17865 dynamic_linker="$host_os dyld" 17866 version_type=darwin 17867 need_lib_prefix=no 17868 need_version=no 17869 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17870 soname_spec='${libname}${release}${major}$shared_ext' 17871 shlibpath_overrides_runpath=yes 17872 shlibpath_var=DYLD_LIBRARY_PATH 17873 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17874 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17875 if test "$GCC" = yes; then 17876 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"` 17877 else 17878 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17879 fi 17880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17881 ;; 17882 17883dgux*) 17884 version_type=linux 17885 need_lib_prefix=no 17886 need_version=no 17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17888 soname_spec='${libname}${release}${shared_ext}$major' 17889 shlibpath_var=LD_LIBRARY_PATH 17890 ;; 17891 17892freebsd1*) 17893 dynamic_linker=no 17894 ;; 17895 17896kfreebsd*-gnu) 17897 version_type=linux 17898 need_lib_prefix=no 17899 need_version=no 17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17901 soname_spec='${libname}${release}${shared_ext}$major' 17902 shlibpath_var=LD_LIBRARY_PATH 17903 shlibpath_overrides_runpath=no 17904 hardcode_into_libs=yes 17905 dynamic_linker='GNU ld.so' 17906 ;; 17907 17908freebsd* | dragonfly*) 17909 # DragonFly does not have aout. When/if they implement a new 17910 # versioning mechanism, adjust this. 17911 if test -x /usr/bin/objformat; then 17912 objformat=`/usr/bin/objformat` 17913 else 17914 case $host_os in 17915 freebsd[123]*) objformat=aout ;; 17916 *) objformat=elf ;; 17917 esac 17918 fi 17919 version_type=freebsd-$objformat 17920 case $version_type in 17921 freebsd-elf*) 17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17923 need_version=no 17924 need_lib_prefix=no 17925 ;; 17926 freebsd-*) 17927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17928 need_version=yes 17929 ;; 17930 esac 17931 shlibpath_var=LD_LIBRARY_PATH 17932 case $host_os in 17933 freebsd2*) 17934 shlibpath_overrides_runpath=yes 17935 ;; 17936 freebsd3.[01]* | freebsdelf3.[01]*) 17937 shlibpath_overrides_runpath=yes 17938 hardcode_into_libs=yes 17939 ;; 17940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17942 shlibpath_overrides_runpath=no 17943 hardcode_into_libs=yes 17944 ;; 17945 freebsd*) # from 4.6 on 17946 shlibpath_overrides_runpath=yes 17947 hardcode_into_libs=yes 17948 ;; 17949 esac 17950 ;; 17951 17952gnu*) 17953 version_type=linux 17954 need_lib_prefix=no 17955 need_version=no 17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17957 soname_spec='${libname}${release}${shared_ext}$major' 17958 shlibpath_var=LD_LIBRARY_PATH 17959 hardcode_into_libs=yes 17960 ;; 17961 17962hpux9* | hpux10* | hpux11*) 17963 # Give a soname corresponding to the major version so that dld.sl refuses to 17964 # link against other versions. 17965 version_type=sunos 17966 need_lib_prefix=no 17967 need_version=no 17968 case $host_cpu in 17969 ia64*) 17970 shrext_cmds='.so' 17971 hardcode_into_libs=yes 17972 dynamic_linker="$host_os dld.so" 17973 shlibpath_var=LD_LIBRARY_PATH 17974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17976 soname_spec='${libname}${release}${shared_ext}$major' 17977 if test "X$HPUX_IA64_MODE" = X32; then 17978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17979 else 17980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17981 fi 17982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17983 ;; 17984 hppa*64*) 17985 shrext_cmds='.sl' 17986 hardcode_into_libs=yes 17987 dynamic_linker="$host_os dld.sl" 17988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17991 soname_spec='${libname}${release}${shared_ext}$major' 17992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17994 ;; 17995 *) 17996 shrext_cmds='.sl' 17997 dynamic_linker="$host_os dld.sl" 17998 shlibpath_var=SHLIB_PATH 17999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18001 soname_spec='${libname}${release}${shared_ext}$major' 18002 ;; 18003 esac 18004 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18005 postinstall_cmds='chmod 555 $lib' 18006 ;; 18007 18008interix3*) 18009 version_type=linux 18010 need_lib_prefix=no 18011 need_version=no 18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18013 soname_spec='${libname}${release}${shared_ext}$major' 18014 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18015 shlibpath_var=LD_LIBRARY_PATH 18016 shlibpath_overrides_runpath=no 18017 hardcode_into_libs=yes 18018 ;; 18019 18020irix5* | irix6* | nonstopux*) 18021 case $host_os in 18022 nonstopux*) version_type=nonstopux ;; 18023 *) 18024 if test "$lt_cv_prog_gnu_ld" = yes; then 18025 version_type=linux 18026 else 18027 version_type=irix 18028 fi ;; 18029 esac 18030 need_lib_prefix=no 18031 need_version=no 18032 soname_spec='${libname}${release}${shared_ext}$major' 18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18034 case $host_os in 18035 irix5* | nonstopux*) 18036 libsuff= shlibsuff= 18037 ;; 18038 *) 18039 case $LD in # libtool.m4 will add one of these switches to LD 18040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18041 libsuff= shlibsuff= libmagic=32-bit;; 18042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18043 libsuff=32 shlibsuff=N32 libmagic=N32;; 18044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18045 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18046 *) libsuff= shlibsuff= libmagic=never-match;; 18047 esac 18048 ;; 18049 esac 18050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18051 shlibpath_overrides_runpath=no 18052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18054 hardcode_into_libs=yes 18055 ;; 18056 18057# No shared lib support for Linux oldld, aout, or coff. 18058linux*oldld* | linux*aout* | linux*coff*) 18059 dynamic_linker=no 18060 ;; 18061 18062# This must be Linux ELF. 18063linux*) 18064 version_type=linux 18065 need_lib_prefix=no 18066 need_version=no 18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18068 soname_spec='${libname}${release}${shared_ext}$major' 18069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18070 shlibpath_var=LD_LIBRARY_PATH 18071 shlibpath_overrides_runpath=no 18072 # This implies no fast_install, which is unacceptable. 18073 # Some rework will be needed to allow for fast_install 18074 # before this can be enabled. 18075 hardcode_into_libs=yes 18076 18077 # Append ld.so.conf contents to the search path 18078 if test -f /etc/ld.so.conf; then 18079 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18080 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18081 fi 18082 18083 # We used to test for /lib/ld.so.1 and disable shared libraries on 18084 # powerpc, because MkLinux only supported shared libraries with the 18085 # GNU dynamic linker. Since this was broken with cross compilers, 18086 # most powerpc-linux boxes support dynamic linking these days and 18087 # people can always --disable-shared, the test was removed, and we 18088 # assume the GNU/Linux dynamic linker is in use. 18089 dynamic_linker='GNU/Linux ld.so' 18090 ;; 18091 18092knetbsd*-gnu) 18093 version_type=linux 18094 need_lib_prefix=no 18095 need_version=no 18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18097 soname_spec='${libname}${release}${shared_ext}$major' 18098 shlibpath_var=LD_LIBRARY_PATH 18099 shlibpath_overrides_runpath=no 18100 hardcode_into_libs=yes 18101 dynamic_linker='GNU ld.so' 18102 ;; 18103 18104netbsd*) 18105 version_type=sunos 18106 need_lib_prefix=no 18107 need_version=no 18108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18111 dynamic_linker='NetBSD (a.out) ld.so' 18112 else 18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18114 soname_spec='${libname}${release}${shared_ext}$major' 18115 dynamic_linker='NetBSD ld.elf_so' 18116 fi 18117 shlibpath_var=LD_LIBRARY_PATH 18118 shlibpath_overrides_runpath=yes 18119 hardcode_into_libs=yes 18120 ;; 18121 18122newsos6) 18123 version_type=linux 18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18125 shlibpath_var=LD_LIBRARY_PATH 18126 shlibpath_overrides_runpath=yes 18127 ;; 18128 18129nto-qnx*) 18130 version_type=linux 18131 need_lib_prefix=no 18132 need_version=no 18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18134 soname_spec='${libname}${release}${shared_ext}$major' 18135 shlibpath_var=LD_LIBRARY_PATH 18136 shlibpath_overrides_runpath=yes 18137 ;; 18138 18139openbsd*) 18140 version_type=sunos 18141 sys_lib_dlsearch_path_spec="/usr/lib" 18142 need_lib_prefix=no 18143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18144 case $host_os in 18145 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18146 *) need_version=no ;; 18147 esac 18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18150 shlibpath_var=LD_LIBRARY_PATH 18151 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18152 case $host_os in 18153 openbsd2.[89] | openbsd2.[89].*) 18154 shlibpath_overrides_runpath=no 18155 ;; 18156 *) 18157 shlibpath_overrides_runpath=yes 18158 ;; 18159 esac 18160 else 18161 shlibpath_overrides_runpath=yes 18162 fi 18163 ;; 18164 18165os2*) 18166 libname_spec='$name' 18167 shrext_cmds=".dll" 18168 need_lib_prefix=no 18169 library_names_spec='$libname${shared_ext} $libname.a' 18170 dynamic_linker='OS/2 ld.exe' 18171 shlibpath_var=LIBPATH 18172 ;; 18173 18174osf3* | osf4* | osf5*) 18175 version_type=osf 18176 need_lib_prefix=no 18177 need_version=no 18178 soname_spec='${libname}${release}${shared_ext}$major' 18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18180 shlibpath_var=LD_LIBRARY_PATH 18181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18183 ;; 18184 18185solaris*) 18186 version_type=linux 18187 need_lib_prefix=no 18188 need_version=no 18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18190 soname_spec='${libname}${release}${shared_ext}$major' 18191 shlibpath_var=LD_LIBRARY_PATH 18192 shlibpath_overrides_runpath=yes 18193 hardcode_into_libs=yes 18194 # ldd complains unless libraries are executable 18195 postinstall_cmds='chmod +x $lib' 18196 ;; 18197 18198sunos4*) 18199 version_type=sunos 18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18202 shlibpath_var=LD_LIBRARY_PATH 18203 shlibpath_overrides_runpath=yes 18204 if test "$with_gnu_ld" = yes; then 18205 need_lib_prefix=no 18206 fi 18207 need_version=yes 18208 ;; 18209 18210sysv4 | sysv4.3*) 18211 version_type=linux 18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18213 soname_spec='${libname}${release}${shared_ext}$major' 18214 shlibpath_var=LD_LIBRARY_PATH 18215 case $host_vendor in 18216 sni) 18217 shlibpath_overrides_runpath=no 18218 need_lib_prefix=no 18219 export_dynamic_flag_spec='${wl}-Blargedynsym' 18220 runpath_var=LD_RUN_PATH 18221 ;; 18222 siemens) 18223 need_lib_prefix=no 18224 ;; 18225 motorola) 18226 need_lib_prefix=no 18227 need_version=no 18228 shlibpath_overrides_runpath=no 18229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18230 ;; 18231 esac 18232 ;; 18233 18234sysv4*MP*) 18235 if test -d /usr/nec ;then 18236 version_type=linux 18237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18238 soname_spec='$libname${shared_ext}.$major' 18239 shlibpath_var=LD_LIBRARY_PATH 18240 fi 18241 ;; 18242 18243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18244 version_type=freebsd-elf 18245 need_lib_prefix=no 18246 need_version=no 18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18248 soname_spec='${libname}${release}${shared_ext}$major' 18249 shlibpath_var=LD_LIBRARY_PATH 18250 hardcode_into_libs=yes 18251 if test "$with_gnu_ld" = yes; then 18252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18253 shlibpath_overrides_runpath=no 18254 else 18255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18256 shlibpath_overrides_runpath=yes 18257 case $host_os in 18258 sco3.2v5*) 18259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18260 ;; 18261 esac 18262 fi 18263 sys_lib_dlsearch_path_spec='/usr/lib' 18264 ;; 18265 18266uts4*) 18267 version_type=linux 18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18269 soname_spec='${libname}${release}${shared_ext}$major' 18270 shlibpath_var=LD_LIBRARY_PATH 18271 ;; 18272 18273*) 18274 dynamic_linker=no 18275 ;; 18276esac 18277{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18278echo "${ECHO_T}$dynamic_linker" >&6; } 18279test "$dynamic_linker" = no && can_build_shared=no 18280 18281variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18282if test "$GCC" = yes; then 18283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18284fi 18285 18286{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18287echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18288hardcode_action_GCJ= 18289if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18290 test -n "$runpath_var_GCJ" || \ 18291 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18292 18293 # We can hardcode non-existant directories. 18294 if test "$hardcode_direct_GCJ" != no && 18295 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18296 # have to relink, otherwise we might link with an installed library 18297 # when we should be linking with a yet-to-be-installed one 18298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18299 test "$hardcode_minus_L_GCJ" != no; then 18300 # Linking always hardcodes the temporary library directory. 18301 hardcode_action_GCJ=relink 18302 else 18303 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18304 hardcode_action_GCJ=immediate 18305 fi 18306else 18307 # We cannot hardcode anything, or else we can only hardcode existing 18308 # directories. 18309 hardcode_action_GCJ=unsupported 18310fi 18311{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18312echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18313 18314if test "$hardcode_action_GCJ" = relink; then 18315 # Fast installation is not supported 18316 enable_fast_install=no 18317elif test "$shlibpath_overrides_runpath" = yes || 18318 test "$enable_shared" = no; then 18319 # Fast installation is not necessary 18320 enable_fast_install=needless 18321fi 18322 18323 18324# The else clause should only fire when bootstrapping the 18325# libtool distribution, otherwise you forgot to ship ltmain.sh 18326# with your package, and you will get complaints that there are 18327# no rules to generate ltmain.sh. 18328if test -f "$ltmain"; then 18329 # See if we are running on zsh, and set the options which allow our commands through 18330 # without removal of \ escapes. 18331 if test -n "${ZSH_VERSION+set}" ; then 18332 setopt NO_GLOB_SUBST 18333 fi 18334 # Now quote all the things that may contain metacharacters while being 18335 # careful not to overquote the AC_SUBSTed values. We take copies of the 18336 # variables and quote the copies for generation of the libtool script. 18337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18338 SED SHELL STRIP \ 18339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18341 deplibs_check_method reload_flag reload_cmds need_locks \ 18342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18343 lt_cv_sys_global_symbol_to_c_name_address \ 18344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18345 old_postinstall_cmds old_postuninstall_cmds \ 18346 compiler_GCJ \ 18347 CC_GCJ \ 18348 LD_GCJ \ 18349 lt_prog_compiler_wl_GCJ \ 18350 lt_prog_compiler_pic_GCJ \ 18351 lt_prog_compiler_static_GCJ \ 18352 lt_prog_compiler_no_builtin_flag_GCJ \ 18353 export_dynamic_flag_spec_GCJ \ 18354 thread_safe_flag_spec_GCJ \ 18355 whole_archive_flag_spec_GCJ \ 18356 enable_shared_with_static_runtimes_GCJ \ 18357 old_archive_cmds_GCJ \ 18358 old_archive_from_new_cmds_GCJ \ 18359 predep_objects_GCJ \ 18360 postdep_objects_GCJ \ 18361 predeps_GCJ \ 18362 postdeps_GCJ \ 18363 compiler_lib_search_path_GCJ \ 18364 archive_cmds_GCJ \ 18365 archive_expsym_cmds_GCJ \ 18366 postinstall_cmds_GCJ \ 18367 postuninstall_cmds_GCJ \ 18368 old_archive_from_expsyms_cmds_GCJ \ 18369 allow_undefined_flag_GCJ \ 18370 no_undefined_flag_GCJ \ 18371 export_symbols_cmds_GCJ \ 18372 hardcode_libdir_flag_spec_GCJ \ 18373 hardcode_libdir_flag_spec_ld_GCJ \ 18374 hardcode_libdir_separator_GCJ \ 18375 hardcode_automatic_GCJ \ 18376 module_cmds_GCJ \ 18377 module_expsym_cmds_GCJ \ 18378 lt_cv_prog_compiler_c_o_GCJ \ 18379 exclude_expsyms_GCJ \ 18380 include_expsyms_GCJ; do 18381 18382 case $var in 18383 old_archive_cmds_GCJ | \ 18384 old_archive_from_new_cmds_GCJ | \ 18385 archive_cmds_GCJ | \ 18386 archive_expsym_cmds_GCJ | \ 18387 module_cmds_GCJ | \ 18388 module_expsym_cmds_GCJ | \ 18389 old_archive_from_expsyms_cmds_GCJ | \ 18390 export_symbols_cmds_GCJ | \ 18391 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18392 postinstall_cmds | postuninstall_cmds | \ 18393 old_postinstall_cmds | old_postuninstall_cmds | \ 18394 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18395 # Double-quote double-evaled strings. 18396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18397 ;; 18398 *) 18399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18400 ;; 18401 esac 18402 done 18403 18404 case $lt_echo in 18405 *'\$0 --fallback-echo"') 18406 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18407 ;; 18408 esac 18409 18410cfgfile="$ofile" 18411 18412 cat <<__EOF__ >> "$cfgfile" 18413# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18414 18415# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18416 18417# Shell to use when invoking shell scripts. 18418SHELL=$lt_SHELL 18419 18420# Whether or not to build shared libraries. 18421build_libtool_libs=$enable_shared 18422 18423# Whether or not to build static libraries. 18424build_old_libs=$enable_static 18425 18426# Whether or not to add -lc for building shared libraries. 18427build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18428 18429# Whether or not to disallow shared libs when runtime libs are static 18430allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18431 18432# Whether or not to optimize for fast installation. 18433fast_install=$enable_fast_install 18434 18435# The host system. 18436host_alias=$host_alias 18437host=$host 18438host_os=$host_os 18439 18440# The build system. 18441build_alias=$build_alias 18442build=$build 18443build_os=$build_os 18444 18445# An echo program that does not interpret backslashes. 18446echo=$lt_echo 18447 18448# The archiver. 18449AR=$lt_AR 18450AR_FLAGS=$lt_AR_FLAGS 18451 18452# A C compiler. 18453LTCC=$lt_LTCC 18454 18455# LTCC compiler flags. 18456LTCFLAGS=$lt_LTCFLAGS 18457 18458# A language-specific compiler. 18459CC=$lt_compiler_GCJ 18460 18461# Is the compiler the GNU C compiler? 18462with_gcc=$GCC_GCJ 18463 18464# An ERE matcher. 18465EGREP=$lt_EGREP 18466 18467# The linker used to build libraries. 18468LD=$lt_LD_GCJ 18469 18470# Whether we need hard or soft links. 18471LN_S=$lt_LN_S 18472 18473# A BSD-compatible nm program. 18474NM=$lt_NM 18475 18476# A symbol stripping program 18477STRIP=$lt_STRIP 18478 18479# Used to examine libraries when file_magic_cmd begins "file" 18480MAGIC_CMD=$MAGIC_CMD 18481 18482# Used on cygwin: DLL creation program. 18483DLLTOOL="$DLLTOOL" 18484 18485# Used on cygwin: object dumper. 18486OBJDUMP="$OBJDUMP" 18487 18488# Used on cygwin: assembler. 18489AS="$AS" 18490 18491# The name of the directory that contains temporary libtool files. 18492objdir=$objdir 18493 18494# How to create reloadable object files. 18495reload_flag=$lt_reload_flag 18496reload_cmds=$lt_reload_cmds 18497 18498# How to pass a linker flag through the compiler. 18499wl=$lt_lt_prog_compiler_wl_GCJ 18500 18501# Object file suffix (normally "o"). 18502objext="$ac_objext" 18503 18504# Old archive suffix (normally "a"). 18505libext="$libext" 18506 18507# Shared library suffix (normally ".so"). 18508shrext_cmds='$shrext_cmds' 18509 18510# Executable file suffix (normally ""). 18511exeext="$exeext" 18512 18513# Additional compiler flags for building library objects. 18514pic_flag=$lt_lt_prog_compiler_pic_GCJ 18515pic_mode=$pic_mode 18516 18517# What is the maximum length of a command? 18518max_cmd_len=$lt_cv_sys_max_cmd_len 18519 18520# Does compiler simultaneously support -c and -o options? 18521compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18522 18523# Must we lock files when doing compilation? 18524need_locks=$lt_need_locks 18525 18526# Do we need the lib prefix for modules? 18527need_lib_prefix=$need_lib_prefix 18528 18529# Do we need a version for libraries? 18530need_version=$need_version 18531 18532# Whether dlopen is supported. 18533dlopen_support=$enable_dlopen 18534 18535# Whether dlopen of programs is supported. 18536dlopen_self=$enable_dlopen_self 18537 18538# Whether dlopen of statically linked programs is supported. 18539dlopen_self_static=$enable_dlopen_self_static 18540 18541# Compiler flag to prevent dynamic linking. 18542link_static_flag=$lt_lt_prog_compiler_static_GCJ 18543 18544# Compiler flag to turn off builtin functions. 18545no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18546 18547# Compiler flag to allow reflexive dlopens. 18548export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18549 18550# Compiler flag to generate shared objects directly from archives. 18551whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18552 18553# Compiler flag to generate thread-safe objects. 18554thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18555 18556# Library versioning type. 18557version_type=$version_type 18558 18559# Format of library name prefix. 18560libname_spec=$lt_libname_spec 18561 18562# List of archive names. First name is the real one, the rest are links. 18563# The last name is the one that the linker finds with -lNAME. 18564library_names_spec=$lt_library_names_spec 18565 18566# The coded name of the library, if different from the real name. 18567soname_spec=$lt_soname_spec 18568 18569# Commands used to build and install an old-style archive. 18570RANLIB=$lt_RANLIB 18571old_archive_cmds=$lt_old_archive_cmds_GCJ 18572old_postinstall_cmds=$lt_old_postinstall_cmds 18573old_postuninstall_cmds=$lt_old_postuninstall_cmds 18574 18575# Create an old-style archive from a shared archive. 18576old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18577 18578# Create a temporary old-style archive to link instead of a shared archive. 18579old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18580 18581# Commands used to build and install a shared archive. 18582archive_cmds=$lt_archive_cmds_GCJ 18583archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18584postinstall_cmds=$lt_postinstall_cmds 18585postuninstall_cmds=$lt_postuninstall_cmds 18586 18587# Commands used to build a loadable module (assumed same as above if empty) 18588module_cmds=$lt_module_cmds_GCJ 18589module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18590 18591# Commands to strip libraries. 18592old_striplib=$lt_old_striplib 18593striplib=$lt_striplib 18594 18595# Dependencies to place before the objects being linked to create a 18596# shared library. 18597predep_objects=$lt_predep_objects_GCJ 18598 18599# Dependencies to place after the objects being linked to create a 18600# shared library. 18601postdep_objects=$lt_postdep_objects_GCJ 18602 18603# Dependencies to place before the objects being linked to create a 18604# shared library. 18605predeps=$lt_predeps_GCJ 18606 18607# Dependencies to place after the objects being linked to create a 18608# shared library. 18609postdeps=$lt_postdeps_GCJ 18610 18611# The library search path used internally by the compiler when linking 18612# a shared library. 18613compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18614 18615# Method to check whether dependent libraries are shared objects. 18616deplibs_check_method=$lt_deplibs_check_method 18617 18618# Command to use when deplibs_check_method == file_magic. 18619file_magic_cmd=$lt_file_magic_cmd 18620 18621# Flag that allows shared libraries with undefined symbols to be built. 18622allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18623 18624# Flag that forces no undefined symbols. 18625no_undefined_flag=$lt_no_undefined_flag_GCJ 18626 18627# Commands used to finish a libtool library installation in a directory. 18628finish_cmds=$lt_finish_cmds 18629 18630# Same as above, but a single script fragment to be evaled but not shown. 18631finish_eval=$lt_finish_eval 18632 18633# Take the output of nm and produce a listing of raw symbols and C names. 18634global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18635 18636# Transform the output of nm in a proper C declaration 18637global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18638 18639# Transform the output of nm in a C name address pair 18640global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18641 18642# This is the shared library runtime path variable. 18643runpath_var=$runpath_var 18644 18645# This is the shared library path variable. 18646shlibpath_var=$shlibpath_var 18647 18648# Is shlibpath searched before the hard-coded library search path? 18649shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18650 18651# How to hardcode a shared library path into an executable. 18652hardcode_action=$hardcode_action_GCJ 18653 18654# Whether we should hardcode library paths into libraries. 18655hardcode_into_libs=$hardcode_into_libs 18656 18657# Flag to hardcode \$libdir into a binary during linking. 18658# This must work even if \$libdir does not exist. 18659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18660 18661# If ld is used when linking, flag to hardcode \$libdir into 18662# a binary during linking. This must work even if \$libdir does 18663# not exist. 18664hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18665 18666# Whether we need a single -rpath flag with a separated argument. 18667hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18668 18669# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18670# resulting binary. 18671hardcode_direct=$hardcode_direct_GCJ 18672 18673# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18674# resulting binary. 18675hardcode_minus_L=$hardcode_minus_L_GCJ 18676 18677# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18678# the resulting binary. 18679hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18680 18681# Set to yes if building a shared library automatically hardcodes DIR into the library 18682# and all subsequent libraries and executables linked against it. 18683hardcode_automatic=$hardcode_automatic_GCJ 18684 18685# Variables whose values should be saved in libtool wrapper scripts and 18686# restored at relink time. 18687variables_saved_for_relink="$variables_saved_for_relink" 18688 18689# Whether libtool must link a program against all its dependency libraries. 18690link_all_deplibs=$link_all_deplibs_GCJ 18691 18692# Compile-time system search path for libraries 18693sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18694 18695# Run-time system search path for libraries 18696sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18697 18698# Fix the shell variable \$srcfile for the compiler. 18699fix_srcfile_path="$fix_srcfile_path_GCJ" 18700 18701# Set to yes if exported symbols are required. 18702always_export_symbols=$always_export_symbols_GCJ 18703 18704# The commands to list exported symbols. 18705export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18706 18707# The commands to extract the exported symbol list from a shared archive. 18708extract_expsyms_cmds=$lt_extract_expsyms_cmds 18709 18710# Symbols that should not be listed in the preloaded symbols. 18711exclude_expsyms=$lt_exclude_expsyms_GCJ 18712 18713# Symbols that must always be exported. 18714include_expsyms=$lt_include_expsyms_GCJ 18715 18716# ### END LIBTOOL TAG CONFIG: $tagname 18717 18718__EOF__ 18719 18720 18721else 18722 # If there is no Makefile yet, we rely on a make rule to execute 18723 # `config.status --recheck' to rerun these tests and create the 18724 # libtool script then. 18725 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18726 if test -f "$ltmain_in"; then 18727 test -f Makefile && make "$ltmain" 18728 fi 18729fi 18730 18731 18732ac_ext=c 18733ac_cpp='$CPP $CPPFLAGS' 18734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18736ac_compiler_gnu=$ac_cv_c_compiler_gnu 18737 18738CC="$lt_save_CC" 18739 18740 else 18741 tagname="" 18742 fi 18743 ;; 18744 18745 RC) 18746 18747 18748# Source file extension for RC test sources. 18749ac_ext=rc 18750 18751# Object file extension for compiled RC test sources. 18752objext=o 18753objext_RC=$objext 18754 18755# Code to be used in simple compile tests 18756lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18757 18758# Code to be used in simple link tests 18759lt_simple_link_test_code="$lt_simple_compile_test_code" 18760 18761# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18762 18763# If no C compiler was specified, use CC. 18764LTCC=${LTCC-"$CC"} 18765 18766# If no C compiler flags were specified, use CFLAGS. 18767LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18768 18769# Allow CC to be a program name with arguments. 18770compiler=$CC 18771 18772 18773# save warnings/boilerplate of simple test code 18774ac_outfile=conftest.$ac_objext 18775printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18777_lt_compiler_boilerplate=`cat conftest.err` 18778$rm conftest* 18779 18780ac_outfile=conftest.$ac_objext 18781printf "$lt_simple_link_test_code" >conftest.$ac_ext 18782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18783_lt_linker_boilerplate=`cat conftest.err` 18784$rm conftest* 18785 18786 18787# Allow CC to be a program name with arguments. 18788lt_save_CC="$CC" 18789CC=${RC-"windres"} 18790compiler=$CC 18791compiler_RC=$CC 18792for cc_temp in $compiler""; do 18793 case $cc_temp in 18794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18796 \-*) ;; 18797 *) break;; 18798 esac 18799done 18800cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18801 18802lt_cv_prog_compiler_c_o_RC=yes 18803 18804# The else clause should only fire when bootstrapping the 18805# libtool distribution, otherwise you forgot to ship ltmain.sh 18806# with your package, and you will get complaints that there are 18807# no rules to generate ltmain.sh. 18808if test -f "$ltmain"; then 18809 # See if we are running on zsh, and set the options which allow our commands through 18810 # without removal of \ escapes. 18811 if test -n "${ZSH_VERSION+set}" ; then 18812 setopt NO_GLOB_SUBST 18813 fi 18814 # Now quote all the things that may contain metacharacters while being 18815 # careful not to overquote the AC_SUBSTed values. We take copies of the 18816 # variables and quote the copies for generation of the libtool script. 18817 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18818 SED SHELL STRIP \ 18819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18821 deplibs_check_method reload_flag reload_cmds need_locks \ 18822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18823 lt_cv_sys_global_symbol_to_c_name_address \ 18824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18825 old_postinstall_cmds old_postuninstall_cmds \ 18826 compiler_RC \ 18827 CC_RC \ 18828 LD_RC \ 18829 lt_prog_compiler_wl_RC \ 18830 lt_prog_compiler_pic_RC \ 18831 lt_prog_compiler_static_RC \ 18832 lt_prog_compiler_no_builtin_flag_RC \ 18833 export_dynamic_flag_spec_RC \ 18834 thread_safe_flag_spec_RC \ 18835 whole_archive_flag_spec_RC \ 18836 enable_shared_with_static_runtimes_RC \ 18837 old_archive_cmds_RC \ 18838 old_archive_from_new_cmds_RC \ 18839 predep_objects_RC \ 18840 postdep_objects_RC \ 18841 predeps_RC \ 18842 postdeps_RC \ 18843 compiler_lib_search_path_RC \ 18844 archive_cmds_RC \ 18845 archive_expsym_cmds_RC \ 18846 postinstall_cmds_RC \ 18847 postuninstall_cmds_RC \ 18848 old_archive_from_expsyms_cmds_RC \ 18849 allow_undefined_flag_RC \ 18850 no_undefined_flag_RC \ 18851 export_symbols_cmds_RC \ 18852 hardcode_libdir_flag_spec_RC \ 18853 hardcode_libdir_flag_spec_ld_RC \ 18854 hardcode_libdir_separator_RC \ 18855 hardcode_automatic_RC \ 18856 module_cmds_RC \ 18857 module_expsym_cmds_RC \ 18858 lt_cv_prog_compiler_c_o_RC \ 18859 exclude_expsyms_RC \ 18860 include_expsyms_RC; do 18861 18862 case $var in 18863 old_archive_cmds_RC | \ 18864 old_archive_from_new_cmds_RC | \ 18865 archive_cmds_RC | \ 18866 archive_expsym_cmds_RC | \ 18867 module_cmds_RC | \ 18868 module_expsym_cmds_RC | \ 18869 old_archive_from_expsyms_cmds_RC | \ 18870 export_symbols_cmds_RC | \ 18871 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18872 postinstall_cmds | postuninstall_cmds | \ 18873 old_postinstall_cmds | old_postuninstall_cmds | \ 18874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18875 # Double-quote double-evaled strings. 18876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18877 ;; 18878 *) 18879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18880 ;; 18881 esac 18882 done 18883 18884 case $lt_echo in 18885 *'\$0 --fallback-echo"') 18886 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18887 ;; 18888 esac 18889 18890cfgfile="$ofile" 18891 18892 cat <<__EOF__ >> "$cfgfile" 18893# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18894 18895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18896 18897# Shell to use when invoking shell scripts. 18898SHELL=$lt_SHELL 18899 18900# Whether or not to build shared libraries. 18901build_libtool_libs=$enable_shared 18902 18903# Whether or not to build static libraries. 18904build_old_libs=$enable_static 18905 18906# Whether or not to add -lc for building shared libraries. 18907build_libtool_need_lc=$archive_cmds_need_lc_RC 18908 18909# Whether or not to disallow shared libs when runtime libs are static 18910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18911 18912# Whether or not to optimize for fast installation. 18913fast_install=$enable_fast_install 18914 18915# The host system. 18916host_alias=$host_alias 18917host=$host 18918host_os=$host_os 18919 18920# The build system. 18921build_alias=$build_alias 18922build=$build 18923build_os=$build_os 18924 18925# An echo program that does not interpret backslashes. 18926echo=$lt_echo 18927 18928# The archiver. 18929AR=$lt_AR 18930AR_FLAGS=$lt_AR_FLAGS 18931 18932# A C compiler. 18933LTCC=$lt_LTCC 18934 18935# LTCC compiler flags. 18936LTCFLAGS=$lt_LTCFLAGS 18937 18938# A language-specific compiler. 18939CC=$lt_compiler_RC 18940 18941# Is the compiler the GNU C compiler? 18942with_gcc=$GCC_RC 18943 18944# An ERE matcher. 18945EGREP=$lt_EGREP 18946 18947# The linker used to build libraries. 18948LD=$lt_LD_RC 18949 18950# Whether we need hard or soft links. 18951LN_S=$lt_LN_S 18952 18953# A BSD-compatible nm program. 18954NM=$lt_NM 18955 18956# A symbol stripping program 18957STRIP=$lt_STRIP 18958 18959# Used to examine libraries when file_magic_cmd begins "file" 18960MAGIC_CMD=$MAGIC_CMD 18961 18962# Used on cygwin: DLL creation program. 18963DLLTOOL="$DLLTOOL" 18964 18965# Used on cygwin: object dumper. 18966OBJDUMP="$OBJDUMP" 18967 18968# Used on cygwin: assembler. 18969AS="$AS" 18970 18971# The name of the directory that contains temporary libtool files. 18972objdir=$objdir 18973 18974# How to create reloadable object files. 18975reload_flag=$lt_reload_flag 18976reload_cmds=$lt_reload_cmds 18977 18978# How to pass a linker flag through the compiler. 18979wl=$lt_lt_prog_compiler_wl_RC 18980 18981# Object file suffix (normally "o"). 18982objext="$ac_objext" 18983 18984# Old archive suffix (normally "a"). 18985libext="$libext" 18986 18987# Shared library suffix (normally ".so"). 18988shrext_cmds='$shrext_cmds' 18989 18990# Executable file suffix (normally ""). 18991exeext="$exeext" 18992 18993# Additional compiler flags for building library objects. 18994pic_flag=$lt_lt_prog_compiler_pic_RC 18995pic_mode=$pic_mode 18996 18997# What is the maximum length of a command? 18998max_cmd_len=$lt_cv_sys_max_cmd_len 18999 19000# Does compiler simultaneously support -c and -o options? 19001compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19002 19003# Must we lock files when doing compilation? 19004need_locks=$lt_need_locks 19005 19006# Do we need the lib prefix for modules? 19007need_lib_prefix=$need_lib_prefix 19008 19009# Do we need a version for libraries? 19010need_version=$need_version 19011 19012# Whether dlopen is supported. 19013dlopen_support=$enable_dlopen 19014 19015# Whether dlopen of programs is supported. 19016dlopen_self=$enable_dlopen_self 19017 19018# Whether dlopen of statically linked programs is supported. 19019dlopen_self_static=$enable_dlopen_self_static 19020 19021# Compiler flag to prevent dynamic linking. 19022link_static_flag=$lt_lt_prog_compiler_static_RC 19023 19024# Compiler flag to turn off builtin functions. 19025no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19026 19027# Compiler flag to allow reflexive dlopens. 19028export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19029 19030# Compiler flag to generate shared objects directly from archives. 19031whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19032 19033# Compiler flag to generate thread-safe objects. 19034thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19035 19036# Library versioning type. 19037version_type=$version_type 19038 19039# Format of library name prefix. 19040libname_spec=$lt_libname_spec 19041 19042# List of archive names. First name is the real one, the rest are links. 19043# The last name is the one that the linker finds with -lNAME. 19044library_names_spec=$lt_library_names_spec 19045 19046# The coded name of the library, if different from the real name. 19047soname_spec=$lt_soname_spec 19048 19049# Commands used to build and install an old-style archive. 19050RANLIB=$lt_RANLIB 19051old_archive_cmds=$lt_old_archive_cmds_RC 19052old_postinstall_cmds=$lt_old_postinstall_cmds 19053old_postuninstall_cmds=$lt_old_postuninstall_cmds 19054 19055# Create an old-style archive from a shared archive. 19056old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19057 19058# Create a temporary old-style archive to link instead of a shared archive. 19059old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19060 19061# Commands used to build and install a shared archive. 19062archive_cmds=$lt_archive_cmds_RC 19063archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19064postinstall_cmds=$lt_postinstall_cmds 19065postuninstall_cmds=$lt_postuninstall_cmds 19066 19067# Commands used to build a loadable module (assumed same as above if empty) 19068module_cmds=$lt_module_cmds_RC 19069module_expsym_cmds=$lt_module_expsym_cmds_RC 19070 19071# Commands to strip libraries. 19072old_striplib=$lt_old_striplib 19073striplib=$lt_striplib 19074 19075# Dependencies to place before the objects being linked to create a 19076# shared library. 19077predep_objects=$lt_predep_objects_RC 19078 19079# Dependencies to place after the objects being linked to create a 19080# shared library. 19081postdep_objects=$lt_postdep_objects_RC 19082 19083# Dependencies to place before the objects being linked to create a 19084# shared library. 19085predeps=$lt_predeps_RC 19086 19087# Dependencies to place after the objects being linked to create a 19088# shared library. 19089postdeps=$lt_postdeps_RC 19090 19091# The library search path used internally by the compiler when linking 19092# a shared library. 19093compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19094 19095# Method to check whether dependent libraries are shared objects. 19096deplibs_check_method=$lt_deplibs_check_method 19097 19098# Command to use when deplibs_check_method == file_magic. 19099file_magic_cmd=$lt_file_magic_cmd 19100 19101# Flag that allows shared libraries with undefined symbols to be built. 19102allow_undefined_flag=$lt_allow_undefined_flag_RC 19103 19104# Flag that forces no undefined symbols. 19105no_undefined_flag=$lt_no_undefined_flag_RC 19106 19107# Commands used to finish a libtool library installation in a directory. 19108finish_cmds=$lt_finish_cmds 19109 19110# Same as above, but a single script fragment to be evaled but not shown. 19111finish_eval=$lt_finish_eval 19112 19113# Take the output of nm and produce a listing of raw symbols and C names. 19114global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19115 19116# Transform the output of nm in a proper C declaration 19117global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19118 19119# Transform the output of nm in a C name address pair 19120global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19121 19122# This is the shared library runtime path variable. 19123runpath_var=$runpath_var 19124 19125# This is the shared library path variable. 19126shlibpath_var=$shlibpath_var 19127 19128# Is shlibpath searched before the hard-coded library search path? 19129shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19130 19131# How to hardcode a shared library path into an executable. 19132hardcode_action=$hardcode_action_RC 19133 19134# Whether we should hardcode library paths into libraries. 19135hardcode_into_libs=$hardcode_into_libs 19136 19137# Flag to hardcode \$libdir into a binary during linking. 19138# This must work even if \$libdir does not exist. 19139hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19140 19141# If ld is used when linking, flag to hardcode \$libdir into 19142# a binary during linking. This must work even if \$libdir does 19143# not exist. 19144hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19145 19146# Whether we need a single -rpath flag with a separated argument. 19147hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19148 19149# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19150# resulting binary. 19151hardcode_direct=$hardcode_direct_RC 19152 19153# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19154# resulting binary. 19155hardcode_minus_L=$hardcode_minus_L_RC 19156 19157# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19158# the resulting binary. 19159hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19160 19161# Set to yes if building a shared library automatically hardcodes DIR into the library 19162# and all subsequent libraries and executables linked against it. 19163hardcode_automatic=$hardcode_automatic_RC 19164 19165# Variables whose values should be saved in libtool wrapper scripts and 19166# restored at relink time. 19167variables_saved_for_relink="$variables_saved_for_relink" 19168 19169# Whether libtool must link a program against all its dependency libraries. 19170link_all_deplibs=$link_all_deplibs_RC 19171 19172# Compile-time system search path for libraries 19173sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19174 19175# Run-time system search path for libraries 19176sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19177 19178# Fix the shell variable \$srcfile for the compiler. 19179fix_srcfile_path="$fix_srcfile_path_RC" 19180 19181# Set to yes if exported symbols are required. 19182always_export_symbols=$always_export_symbols_RC 19183 19184# The commands to list exported symbols. 19185export_symbols_cmds=$lt_export_symbols_cmds_RC 19186 19187# The commands to extract the exported symbol list from a shared archive. 19188extract_expsyms_cmds=$lt_extract_expsyms_cmds 19189 19190# Symbols that should not be listed in the preloaded symbols. 19191exclude_expsyms=$lt_exclude_expsyms_RC 19192 19193# Symbols that must always be exported. 19194include_expsyms=$lt_include_expsyms_RC 19195 19196# ### END LIBTOOL TAG CONFIG: $tagname 19197 19198__EOF__ 19199 19200 19201else 19202 # If there is no Makefile yet, we rely on a make rule to execute 19203 # `config.status --recheck' to rerun these tests and create the 19204 # libtool script then. 19205 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19206 if test -f "$ltmain_in"; then 19207 test -f Makefile && make "$ltmain" 19208 fi 19209fi 19210 19211 19212ac_ext=c 19213ac_cpp='$CPP $CPPFLAGS' 19214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19216ac_compiler_gnu=$ac_cv_c_compiler_gnu 19217 19218CC="$lt_save_CC" 19219 19220 ;; 19221 19222 *) 19223 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19224echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19225 { (exit 1); exit 1; }; } 19226 ;; 19227 esac 19228 19229 # Append the new tag name to the list of available tags. 19230 if test -n "$tagname" ; then 19231 available_tags="$available_tags $tagname" 19232 fi 19233 fi 19234 done 19235 IFS="$lt_save_ifs" 19236 19237 # Now substitute the updated list of available tags. 19238 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19239 mv "${ofile}T" "$ofile" 19240 chmod +x "$ofile" 19241 else 19242 rm -f "${ofile}T" 19243 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19244echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19245 { (exit 1); exit 1; }; } 19246 fi 19247fi 19248 19249 19250 19251# This can be used to rebuild libtool when needed 19252LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19253 19254# Always use our own libtool. 19255LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19256 19257# Prevent multiple expansion 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279ac_config_files="$ac_config_files Makefile" 19280 19281cat >confcache <<\_ACEOF 19282# This file is a shell script that caches the results of configure 19283# tests run on this system so they can be shared between configure 19284# scripts and configure runs, see configure's option --config-cache. 19285# It is not useful on other systems. If it contains results you don't 19286# want to keep, you may remove or edit it. 19287# 19288# config.status only pays attention to the cache file if you give it 19289# the --recheck option to rerun configure. 19290# 19291# `ac_cv_env_foo' variables (set or unset) will be overridden when 19292# loading this file, other *unset* `ac_cv_foo' will be assigned the 19293# following values. 19294 19295_ACEOF 19296 19297# The following way of writing the cache mishandles newlines in values, 19298# but we know of no workaround that is simple, portable, and efficient. 19299# So, we kill variables containing newlines. 19300# Ultrix sh set writes to stderr and can't be redirected directly, 19301# and sets the high bit in the cache file unless we assign to the vars. 19302( 19303 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19304 eval ac_val=\$$ac_var 19305 case $ac_val in #( 19306 *${as_nl}*) 19307 case $ac_var in #( 19308 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19309echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19310 esac 19311 case $ac_var in #( 19312 _ | IFS | as_nl) ;; #( 19313 *) $as_unset $ac_var ;; 19314 esac ;; 19315 esac 19316 done 19317 19318 (set) 2>&1 | 19319 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19320 *${as_nl}ac_space=\ *) 19321 # `set' does not quote correctly, so add quotes (double-quote 19322 # substitution turns \\\\ into \\, and sed turns \\ into \). 19323 sed -n \ 19324 "s/'/'\\\\''/g; 19325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19326 ;; #( 19327 *) 19328 # `set' quotes correctly as required by POSIX, so do not add quotes. 19329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19330 ;; 19331 esac | 19332 sort 19333) | 19334 sed ' 19335 /^ac_cv_env_/b end 19336 t clear 19337 :clear 19338 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19339 t end 19340 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19341 :end' >>confcache 19342if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19343 if test -w "$cache_file"; then 19344 test "x$cache_file" != "x/dev/null" && 19345 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19346echo "$as_me: updating cache $cache_file" >&6;} 19347 cat confcache >$cache_file 19348 else 19349 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19350echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19351 fi 19352fi 19353rm -f confcache 19354 19355test "x$prefix" = xNONE && prefix=$ac_default_prefix 19356# Let make expand exec_prefix. 19357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19358 19359# Transform confdefs.h into DEFS. 19360# Protect against shell expansion while executing Makefile rules. 19361# Protect against Makefile macro expansion. 19362# 19363# If the first sed substitution is executed (which looks for macros that 19364# take arguments), then branch to the quote section. Otherwise, 19365# look for a macro that doesn't take arguments. 19366ac_script=' 19367t clear 19368:clear 19369s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19370t quote 19371s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19372t quote 19373b any 19374:quote 19375s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19376s/\[/\\&/g 19377s/\]/\\&/g 19378s/\$/$$/g 19379H 19380:any 19381${ 19382 g 19383 s/^\n// 19384 s/\n/ /g 19385 p 19386} 19387' 19388DEFS=`sed -n "$ac_script" confdefs.h` 19389 19390 19391ac_libobjs= 19392ac_ltlibobjs= 19393for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19394 # 1. Remove the extension, and $U if already installed. 19395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19396 ac_i=`echo "$ac_i" | sed "$ac_script"` 19397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19398 # will be set to the directory where LIBOBJS objects are built. 19399 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19400 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19401done 19402LIBOBJS=$ac_libobjs 19403 19404LTLIBOBJS=$ac_ltlibobjs 19405 19406 19407if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19408 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19409Usually this means the macro was only invoked conditionally." >&5 19410echo "$as_me: error: conditional \"AMDEP\" was never defined. 19411Usually this means the macro was only invoked conditionally." >&2;} 19412 { (exit 1); exit 1; }; } 19413fi 19414if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19415 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19416Usually this means the macro was only invoked conditionally." >&5 19417echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19418Usually this means the macro was only invoked conditionally." >&2;} 19419 { (exit 1); exit 1; }; } 19420fi 19421if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19422 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19423Usually this means the macro was only invoked conditionally." >&5 19424echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19425Usually this means the macro was only invoked conditionally." >&2;} 19426 { (exit 1); exit 1; }; } 19427fi 19428 19429: ${CONFIG_STATUS=./config.status} 19430ac_clean_files_save=$ac_clean_files 19431ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19432{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19433echo "$as_me: creating $CONFIG_STATUS" >&6;} 19434cat >$CONFIG_STATUS <<_ACEOF 19435#! $SHELL 19436# Generated by $as_me. 19437# Run this file to recreate the current configuration. 19438# Compiler output produced by configure, useful for debugging 19439# configure, is in config.log if it exists. 19440 19441debug=false 19442ac_cs_recheck=false 19443ac_cs_silent=false 19444SHELL=\${CONFIG_SHELL-$SHELL} 19445_ACEOF 19446 19447cat >>$CONFIG_STATUS <<\_ACEOF 19448## --------------------- ## 19449## M4sh Initialization. ## 19450## --------------------- ## 19451 19452# Be more Bourne compatible 19453DUALCASE=1; export DUALCASE # for MKS sh 19454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19455 emulate sh 19456 NULLCMD=: 19457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19458 # is contrary to our usage. Disable this feature. 19459 alias -g '${1+"$@"}'='"$@"' 19460 setopt NO_GLOB_SUBST 19461else 19462 case `(set -o) 2>/dev/null` in 19463 *posix*) set -o posix ;; 19464esac 19465 19466fi 19467 19468 19469 19470 19471# PATH needs CR 19472# Avoid depending upon Character Ranges. 19473as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19475as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19476as_cr_digits='0123456789' 19477as_cr_alnum=$as_cr_Letters$as_cr_digits 19478 19479# The user is always right. 19480if test "${PATH_SEPARATOR+set}" != set; then 19481 echo "#! /bin/sh" >conf$$.sh 19482 echo "exit 0" >>conf$$.sh 19483 chmod +x conf$$.sh 19484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19485 PATH_SEPARATOR=';' 19486 else 19487 PATH_SEPARATOR=: 19488 fi 19489 rm -f conf$$.sh 19490fi 19491 19492# Support unset when possible. 19493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19494 as_unset=unset 19495else 19496 as_unset=false 19497fi 19498 19499 19500# IFS 19501# We need space, tab and new line, in precisely that order. Quoting is 19502# there to prevent editors from complaining about space-tab. 19503# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19504# splitting by setting IFS to empty value.) 19505as_nl=' 19506' 19507IFS=" "" $as_nl" 19508 19509# Find who we are. Look in the path if we contain no directory separator. 19510case $0 in 19511 *[\\/]* ) as_myself=$0 ;; 19512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19513for as_dir in $PATH 19514do 19515 IFS=$as_save_IFS 19516 test -z "$as_dir" && as_dir=. 19517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19518done 19519IFS=$as_save_IFS 19520 19521 ;; 19522esac 19523# We did not find ourselves, most probably we were run as `sh COMMAND' 19524# in which case we are not to be found in the path. 19525if test "x$as_myself" = x; then 19526 as_myself=$0 19527fi 19528if test ! -f "$as_myself"; then 19529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19530 { (exit 1); exit 1; } 19531fi 19532 19533# Work around bugs in pre-3.0 UWIN ksh. 19534for as_var in ENV MAIL MAILPATH 19535do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19536done 19537PS1='$ ' 19538PS2='> ' 19539PS4='+ ' 19540 19541# NLS nuisances. 19542for as_var in \ 19543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19545 LC_TELEPHONE LC_TIME 19546do 19547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19548 eval $as_var=C; export $as_var 19549 else 19550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19551 fi 19552done 19553 19554# Required to use basename. 19555if expr a : '\(a\)' >/dev/null 2>&1 && 19556 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19557 as_expr=expr 19558else 19559 as_expr=false 19560fi 19561 19562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19563 as_basename=basename 19564else 19565 as_basename=false 19566fi 19567 19568 19569# Name of the executable. 19570as_me=`$as_basename -- "$0" || 19571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19572 X"$0" : 'X\(//\)$' \| \ 19573 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19574echo X/"$0" | 19575 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19576 s//\1/ 19577 q 19578 } 19579 /^X\/\(\/\/\)$/{ 19580 s//\1/ 19581 q 19582 } 19583 /^X\/\(\/\).*/{ 19584 s//\1/ 19585 q 19586 } 19587 s/.*/./; q'` 19588 19589# CDPATH. 19590$as_unset CDPATH 19591 19592 19593 19594 as_lineno_1=$LINENO 19595 as_lineno_2=$LINENO 19596 test "x$as_lineno_1" != "x$as_lineno_2" && 19597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 19598 19599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19600 # uniformly replaced by the line number. The first 'sed' inserts a 19601 # line-number line after each line using $LINENO; the second 'sed' 19602 # does the real work. The second script uses 'N' to pair each 19603 # line-number line with the line containing $LINENO, and appends 19604 # trailing '-' during substitution so that $LINENO is not a special 19605 # case at line end. 19606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19607 # scripts with optimization help from Paolo Bonzini. Blame Lee 19608 # E. McMahon (1931-1989) for sed's syntax. :-) 19609 sed -n ' 19610 p 19611 /[$]LINENO/= 19612 ' <$as_myself | 19613 sed ' 19614 s/[$]LINENO.*/&-/ 19615 t lineno 19616 b 19617 :lineno 19618 N 19619 :loop 19620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 19621 t loop 19622 s/-\n.*// 19623 ' >$as_me.lineno && 19624 chmod +x "$as_me.lineno" || 19625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 19626 { (exit 1); exit 1; }; } 19627 19628 # Don't try to exec as it changes $[0], causing all sort of problems 19629 # (the dirname of $[0] is not the place where we might find the 19630 # original and so on. Autoconf is especially sensitive to this). 19631 . "./$as_me.lineno" 19632 # Exit status is that of the last command. 19633 exit 19634} 19635 19636 19637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19638 as_dirname=dirname 19639else 19640 as_dirname=false 19641fi 19642 19643ECHO_C= ECHO_N= ECHO_T= 19644case `echo -n x` in 19645-n*) 19646 case `echo 'x\c'` in 19647 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19648 *) ECHO_C='\c';; 19649 esac;; 19650*) 19651 ECHO_N='-n';; 19652esac 19653 19654if expr a : '\(a\)' >/dev/null 2>&1 && 19655 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19656 as_expr=expr 19657else 19658 as_expr=false 19659fi 19660 19661rm -f conf$$ conf$$.exe conf$$.file 19662if test -d conf$$.dir; then 19663 rm -f conf$$.dir/conf$$.file 19664else 19665 rm -f conf$$.dir 19666 mkdir conf$$.dir 19667fi 19668echo >conf$$.file 19669if ln -s conf$$.file conf$$ 2>/dev/null; then 19670 as_ln_s='ln -s' 19671 # ... but there are two gotchas: 19672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19674 # In both cases, we have to default to `cp -p'. 19675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19676 as_ln_s='cp -p' 19677elif ln conf$$.file conf$$ 2>/dev/null; then 19678 as_ln_s=ln 19679else 19680 as_ln_s='cp -p' 19681fi 19682rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19683rmdir conf$$.dir 2>/dev/null 19684 19685if mkdir -p . 2>/dev/null; then 19686 as_mkdir_p=: 19687else 19688 test -d ./-p && rmdir ./-p 19689 as_mkdir_p=false 19690fi 19691 19692if test -x / >/dev/null 2>&1; then 19693 as_test_x='test -x' 19694else 19695 if ls -dL / >/dev/null 2>&1; then 19696 as_ls_L_option=L 19697 else 19698 as_ls_L_option= 19699 fi 19700 as_test_x=' 19701 eval sh -c '\'' 19702 if test -d "$1"; then 19703 test -d "$1/."; 19704 else 19705 case $1 in 19706 -*)set "./$1";; 19707 esac; 19708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 19709 ???[sx]*):;;*)false;;esac;fi 19710 '\'' sh 19711 ' 19712fi 19713as_executable_p=$as_test_x 19714 19715# Sed expression to map a string onto a valid CPP name. 19716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19717 19718# Sed expression to map a string onto a valid variable name. 19719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19720 19721 19722exec 6>&1 19723 19724# Save the log message, to keep $[0] and so on meaningful, and to 19725# report actual input values of CONFIG_FILES etc. instead of their 19726# values after options handling. 19727ac_log=" 19728This file was extended by $as_me, which was 19729generated by GNU Autoconf 2.61. Invocation command line was 19730 19731 CONFIG_FILES = $CONFIG_FILES 19732 CONFIG_HEADERS = $CONFIG_HEADERS 19733 CONFIG_LINKS = $CONFIG_LINKS 19734 CONFIG_COMMANDS = $CONFIG_COMMANDS 19735 $ $0 $@ 19736 19737on `(hostname || uname -n) 2>/dev/null | sed 1q` 19738" 19739 19740_ACEOF 19741 19742cat >>$CONFIG_STATUS <<_ACEOF 19743# Files that config.status was made for. 19744config_files="$ac_config_files" 19745config_commands="$ac_config_commands" 19746 19747_ACEOF 19748 19749cat >>$CONFIG_STATUS <<\_ACEOF 19750ac_cs_usage="\ 19751\`$as_me' instantiates files from templates according to the 19752current configuration. 19753 19754Usage: $0 [OPTIONS] [FILE]... 19755 19756 -h, --help print this help, then exit 19757 -V, --version print version number and configuration settings, then exit 19758 -q, --quiet do not print progress messages 19759 -d, --debug don't remove temporary files 19760 --recheck update $as_me by reconfiguring in the same conditions 19761 --file=FILE[:TEMPLATE] 19762 instantiate the configuration file FILE 19763 19764Configuration files: 19765$config_files 19766 19767Configuration commands: 19768$config_commands 19769 19770Report bugs to <bug-autoconf@gnu.org>." 19771 19772_ACEOF 19773cat >>$CONFIG_STATUS <<_ACEOF 19774ac_cs_version="\\ 19775config.status 19776configured by $0, generated by GNU Autoconf 2.61, 19777 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 19778 19779Copyright (C) 2006 Free Software Foundation, Inc. 19780This config.status script is free software; the Free Software Foundation 19781gives unlimited permission to copy, distribute and modify it." 19782 19783ac_pwd='$ac_pwd' 19784srcdir='$srcdir' 19785INSTALL='$INSTALL' 19786MKDIR_P='$MKDIR_P' 19787_ACEOF 19788 19789cat >>$CONFIG_STATUS <<\_ACEOF 19790# If no file are specified by the user, then we need to provide default 19791# value. By we need to know if files were specified by the user. 19792ac_need_defaults=: 19793while test $# != 0 19794do 19795 case $1 in 19796 --*=*) 19797 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19799 ac_shift=: 19800 ;; 19801 *) 19802 ac_option=$1 19803 ac_optarg=$2 19804 ac_shift=shift 19805 ;; 19806 esac 19807 19808 case $ac_option in 19809 # Handling of the options. 19810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19811 ac_cs_recheck=: ;; 19812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19813 echo "$ac_cs_version"; exit ;; 19814 --debug | --debu | --deb | --de | --d | -d ) 19815 debug=: ;; 19816 --file | --fil | --fi | --f ) 19817 $ac_shift 19818 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19819 ac_need_defaults=false;; 19820 --he | --h | --help | --hel | -h ) 19821 echo "$ac_cs_usage"; exit ;; 19822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19823 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19824 ac_cs_silent=: ;; 19825 19826 # This is an error. 19827 -*) { echo "$as_me: error: unrecognized option: $1 19828Try \`$0 --help' for more information." >&2 19829 { (exit 1); exit 1; }; } ;; 19830 19831 *) ac_config_targets="$ac_config_targets $1" 19832 ac_need_defaults=false ;; 19833 19834 esac 19835 shift 19836done 19837 19838ac_configure_extra_args= 19839 19840if $ac_cs_silent; then 19841 exec 6>/dev/null 19842 ac_configure_extra_args="$ac_configure_extra_args --silent" 19843fi 19844 19845_ACEOF 19846cat >>$CONFIG_STATUS <<_ACEOF 19847if \$ac_cs_recheck; then 19848 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19849 CONFIG_SHELL=$SHELL 19850 export CONFIG_SHELL 19851 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19852fi 19853 19854_ACEOF 19855cat >>$CONFIG_STATUS <<\_ACEOF 19856exec 5>>config.log 19857{ 19858 echo 19859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19860## Running $as_me. ## 19861_ASBOX 19862 echo "$ac_log" 19863} >&5 19864 19865_ACEOF 19866cat >>$CONFIG_STATUS <<_ACEOF 19867# 19868# INIT-COMMANDS 19869# 19870AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19871 19872_ACEOF 19873 19874cat >>$CONFIG_STATUS <<\_ACEOF 19875 19876# Handling of arguments. 19877for ac_config_target in $ac_config_targets 19878do 19879 case $ac_config_target in 19880 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19881 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19882 19883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19884echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19885 { (exit 1); exit 1; }; };; 19886 esac 19887done 19888 19889 19890# If the user did not use the arguments to specify the items to instantiate, 19891# then the envvar interface is used. Set only those that are not. 19892# We use the long form for the default assignment because of an extremely 19893# bizarre bug on SunOS 4.1.3. 19894if $ac_need_defaults; then 19895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19897fi 19898 19899# Have a temporary directory for convenience. Make it in the build tree 19900# simply because there is no reason against having it here, and in addition, 19901# creating and moving files from /tmp can sometimes cause problems. 19902# Hook for its removal unless debugging. 19903# Note that there is a small window in which the directory will not be cleaned: 19904# after its creation but before its name has been assigned to `$tmp'. 19905$debug || 19906{ 19907 tmp= 19908 trap 'exit_status=$? 19909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 19910' 0 19911 trap '{ (exit 1); exit 1; }' 1 2 13 15 19912} 19913# Create a (secure) tmp directory for tmp files. 19914 19915{ 19916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19917 test -n "$tmp" && test -d "$tmp" 19918} || 19919{ 19920 tmp=./conf$$-$RANDOM 19921 (umask 077 && mkdir "$tmp") 19922} || 19923{ 19924 echo "$me: cannot create a temporary directory in ." >&2 19925 { (exit 1); exit 1; } 19926} 19927 19928# 19929# Set up the sed scripts for CONFIG_FILES section. 19930# 19931 19932# No need to generate the scripts if there are no CONFIG_FILES. 19933# This happens for instance when ./config.status config.h 19934if test -n "$CONFIG_FILES"; then 19935 19936_ACEOF 19937 19938 19939 19940ac_delim='%!_!# ' 19941for ac_last_try in false false false false false :; do 19942 cat >conf$$subs.sed <<_ACEOF 19943SHELL!$SHELL$ac_delim 19944PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 19945PACKAGE_NAME!$PACKAGE_NAME$ac_delim 19946PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 19947PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 19948PACKAGE_STRING!$PACKAGE_STRING$ac_delim 19949PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 19950exec_prefix!$exec_prefix$ac_delim 19951prefix!$prefix$ac_delim 19952program_transform_name!$program_transform_name$ac_delim 19953bindir!$bindir$ac_delim 19954sbindir!$sbindir$ac_delim 19955libexecdir!$libexecdir$ac_delim 19956datarootdir!$datarootdir$ac_delim 19957datadir!$datadir$ac_delim 19958sysconfdir!$sysconfdir$ac_delim 19959sharedstatedir!$sharedstatedir$ac_delim 19960localstatedir!$localstatedir$ac_delim 19961includedir!$includedir$ac_delim 19962oldincludedir!$oldincludedir$ac_delim 19963docdir!$docdir$ac_delim 19964infodir!$infodir$ac_delim 19965htmldir!$htmldir$ac_delim 19966dvidir!$dvidir$ac_delim 19967pdfdir!$pdfdir$ac_delim 19968psdir!$psdir$ac_delim 19969libdir!$libdir$ac_delim 19970localedir!$localedir$ac_delim 19971mandir!$mandir$ac_delim 19972DEFS!$DEFS$ac_delim 19973ECHO_C!$ECHO_C$ac_delim 19974ECHO_N!$ECHO_N$ac_delim 19975ECHO_T!$ECHO_T$ac_delim 19976LIBS!$LIBS$ac_delim 19977build_alias!$build_alias$ac_delim 19978host_alias!$host_alias$ac_delim 19979target_alias!$target_alias$ac_delim 19980INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 19981INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 19982INSTALL_DATA!$INSTALL_DATA$ac_delim 19983am__isrc!$am__isrc$ac_delim 19984CYGPATH_W!$CYGPATH_W$ac_delim 19985PACKAGE!$PACKAGE$ac_delim 19986VERSION!$VERSION$ac_delim 19987ACLOCAL!$ACLOCAL$ac_delim 19988AUTOCONF!$AUTOCONF$ac_delim 19989AUTOMAKE!$AUTOMAKE$ac_delim 19990AUTOHEADER!$AUTOHEADER$ac_delim 19991MAKEINFO!$MAKEINFO$ac_delim 19992install_sh!$install_sh$ac_delim 19993STRIP!$STRIP$ac_delim 19994INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 19995mkdir_p!$mkdir_p$ac_delim 19996AWK!$AWK$ac_delim 19997SET_MAKE!$SET_MAKE$ac_delim 19998am__leading_dot!$am__leading_dot$ac_delim 19999AMTAR!$AMTAR$ac_delim 20000am__tar!$am__tar$ac_delim 20001am__untar!$am__untar$ac_delim 20002CC!$CC$ac_delim 20003CFLAGS!$CFLAGS$ac_delim 20004LDFLAGS!$LDFLAGS$ac_delim 20005CPPFLAGS!$CPPFLAGS$ac_delim 20006ac_ct_CC!$ac_ct_CC$ac_delim 20007EXEEXT!$EXEEXT$ac_delim 20008OBJEXT!$OBJEXT$ac_delim 20009DEPDIR!$DEPDIR$ac_delim 20010am__include!$am__include$ac_delim 20011am__quote!$am__quote$ac_delim 20012AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20013AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20014AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20015CCDEPMODE!$CCDEPMODE$ac_delim 20016am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20017am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20018build!$build$ac_delim 20019build_cpu!$build_cpu$ac_delim 20020build_vendor!$build_vendor$ac_delim 20021build_os!$build_os$ac_delim 20022host!$host$ac_delim 20023host_cpu!$host_cpu$ac_delim 20024host_vendor!$host_vendor$ac_delim 20025host_os!$host_os$ac_delim 20026GREP!$GREP$ac_delim 20027EGREP!$EGREP$ac_delim 20028LN_S!$LN_S$ac_delim 20029ECHO!$ECHO$ac_delim 20030AR!$AR$ac_delim 20031RANLIB!$RANLIB$ac_delim 20032CPP!$CPP$ac_delim 20033CXX!$CXX$ac_delim 20034CXXFLAGS!$CXXFLAGS$ac_delim 20035ac_ct_CXX!$ac_ct_CXX$ac_delim 20036CXXDEPMODE!$CXXDEPMODE$ac_delim 20037am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20038am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20039CXXCPP!$CXXCPP$ac_delim 20040_ACEOF 20041 20042 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20043 break 20044 elif $ac_last_try; then 20045 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20046echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20047 { (exit 1); exit 1; }; } 20048 else 20049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20050 fi 20051done 20052 20053ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20054if test -n "$ac_eof"; then 20055 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20056 ac_eof=`expr $ac_eof + 1` 20057fi 20058 20059cat >>$CONFIG_STATUS <<_ACEOF 20060cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20062_ACEOF 20063sed ' 20064s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20065s/^/s,@/; s/!/@,|#_!!_#|/ 20066:n 20067t n 20068s/'"$ac_delim"'$/,g/; t 20069s/$/\\/; p 20070N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20071' >>$CONFIG_STATUS <conf$$subs.sed 20072rm -f conf$$subs.sed 20073cat >>$CONFIG_STATUS <<_ACEOF 20074CEOF$ac_eof 20075_ACEOF 20076 20077 20078ac_delim='%!_!# ' 20079for ac_last_try in false false false false false :; do 20080 cat >conf$$subs.sed <<_ACEOF 20081F77!$F77$ac_delim 20082FFLAGS!$FFLAGS$ac_delim 20083ac_ct_F77!$ac_ct_F77$ac_delim 20084LIBTOOL!$LIBTOOL$ac_delim 20085global_top_auxdir!$global_top_auxdir$ac_delim 20086LIBOBJS!$LIBOBJS$ac_delim 20087LTLIBOBJS!$LTLIBOBJS$ac_delim 20088_ACEOF 20089 20090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then 20091 break 20092 elif $ac_last_try; then 20093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20094echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20095 { (exit 1); exit 1; }; } 20096 else 20097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20098 fi 20099done 20100 20101ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20102if test -n "$ac_eof"; then 20103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20104 ac_eof=`expr $ac_eof + 1` 20105fi 20106 20107cat >>$CONFIG_STATUS <<_ACEOF 20108cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20110_ACEOF 20111sed ' 20112s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20113s/^/s,@/; s/!/@,|#_!!_#|/ 20114:n 20115t n 20116s/'"$ac_delim"'$/,g/; t 20117s/$/\\/; p 20118N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20119' >>$CONFIG_STATUS <conf$$subs.sed 20120rm -f conf$$subs.sed 20121cat >>$CONFIG_STATUS <<_ACEOF 20122:end 20123s/|#_!!_#|//g 20124CEOF$ac_eof 20125_ACEOF 20126 20127 20128# VPATH may cause trouble with some makes, so we remove $(srcdir), 20129# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20130# trailing colons and then remove the whole line if VPATH becomes empty 20131# (actually we leave an empty line to preserve line numbers). 20132if test "x$srcdir" = x.; then 20133 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20134s/:*\$(srcdir):*/:/ 20135s/:*\${srcdir}:*/:/ 20136s/:*@srcdir@:*/:/ 20137s/^\([^=]*=[ ]*\):*/\1/ 20138s/:*$// 20139s/^[^=]*=[ ]*$// 20140}' 20141fi 20142 20143cat >>$CONFIG_STATUS <<\_ACEOF 20144fi # test -n "$CONFIG_FILES" 20145 20146 20147for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 20148do 20149 case $ac_tag in 20150 :[FHLC]) ac_mode=$ac_tag; continue;; 20151 esac 20152 case $ac_mode$ac_tag in 20153 :[FHL]*:*);; 20154 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20155echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20156 { (exit 1); exit 1; }; };; 20157 :[FH]-) ac_tag=-:-;; 20158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20159 esac 20160 ac_save_IFS=$IFS 20161 IFS=: 20162 set x $ac_tag 20163 IFS=$ac_save_IFS 20164 shift 20165 ac_file=$1 20166 shift 20167 20168 case $ac_mode in 20169 :L) ac_source=$1;; 20170 :[FH]) 20171 ac_file_inputs= 20172 for ac_f 20173 do 20174 case $ac_f in 20175 -) ac_f="$tmp/stdin";; 20176 *) # Look for the file first in the build tree, then in the source tree 20177 # (if the path is not absolute). The absolute path cannot be DOS-style, 20178 # because $ac_f cannot contain `:'. 20179 test -f "$ac_f" || 20180 case $ac_f in 20181 [\\/$]*) false;; 20182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20183 esac || 20184 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20185echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20186 { (exit 1); exit 1; }; };; 20187 esac 20188 ac_file_inputs="$ac_file_inputs $ac_f" 20189 done 20190 20191 # Let's still pretend it is `configure' which instantiates (i.e., don't 20192 # use $as_me), people would be surprised to read: 20193 # /* config.h. Generated by config.status. */ 20194 configure_input="Generated from "`IFS=: 20195 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20196 if test x"$ac_file" != x-; then 20197 configure_input="$ac_file. $configure_input" 20198 { echo "$as_me:$LINENO: creating $ac_file" >&5 20199echo "$as_me: creating $ac_file" >&6;} 20200 fi 20201 20202 case $ac_tag in 20203 *:-:* | *:-) cat >"$tmp/stdin";; 20204 esac 20205 ;; 20206 esac 20207 20208 ac_dir=`$as_dirname -- "$ac_file" || 20209$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20210 X"$ac_file" : 'X\(//\)[^/]' \| \ 20211 X"$ac_file" : 'X\(//\)$' \| \ 20212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20213echo X"$ac_file" | 20214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20215 s//\1/ 20216 q 20217 } 20218 /^X\(\/\/\)[^/].*/{ 20219 s//\1/ 20220 q 20221 } 20222 /^X\(\/\/\)$/{ 20223 s//\1/ 20224 q 20225 } 20226 /^X\(\/\).*/{ 20227 s//\1/ 20228 q 20229 } 20230 s/.*/./; q'` 20231 { as_dir="$ac_dir" 20232 case $as_dir in #( 20233 -*) as_dir=./$as_dir;; 20234 esac 20235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20236 as_dirs= 20237 while :; do 20238 case $as_dir in #( 20239 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20240 *) as_qdir=$as_dir;; 20241 esac 20242 as_dirs="'$as_qdir' $as_dirs" 20243 as_dir=`$as_dirname -- "$as_dir" || 20244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20245 X"$as_dir" : 'X\(//\)[^/]' \| \ 20246 X"$as_dir" : 'X\(//\)$' \| \ 20247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20248echo X"$as_dir" | 20249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20250 s//\1/ 20251 q 20252 } 20253 /^X\(\/\/\)[^/].*/{ 20254 s//\1/ 20255 q 20256 } 20257 /^X\(\/\/\)$/{ 20258 s//\1/ 20259 q 20260 } 20261 /^X\(\/\).*/{ 20262 s//\1/ 20263 q 20264 } 20265 s/.*/./; q'` 20266 test -d "$as_dir" && break 20267 done 20268 test -z "$as_dirs" || eval "mkdir $as_dirs" 20269 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20270echo "$as_me: error: cannot create directory $as_dir" >&2;} 20271 { (exit 1); exit 1; }; }; } 20272 ac_builddir=. 20273 20274case "$ac_dir" in 20275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20276*) 20277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20278 # A ".." for each directory in $ac_dir_suffix. 20279 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20280 case $ac_top_builddir_sub in 20281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20283 esac ;; 20284esac 20285ac_abs_top_builddir=$ac_pwd 20286ac_abs_builddir=$ac_pwd$ac_dir_suffix 20287# for backward compatibility: 20288ac_top_builddir=$ac_top_build_prefix 20289 20290case $srcdir in 20291 .) # We are building in place. 20292 ac_srcdir=. 20293 ac_top_srcdir=$ac_top_builddir_sub 20294 ac_abs_top_srcdir=$ac_pwd ;; 20295 [\\/]* | ?:[\\/]* ) # Absolute name. 20296 ac_srcdir=$srcdir$ac_dir_suffix; 20297 ac_top_srcdir=$srcdir 20298 ac_abs_top_srcdir=$srcdir ;; 20299 *) # Relative name. 20300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20301 ac_top_srcdir=$ac_top_build_prefix$srcdir 20302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20303esac 20304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20305 20306 20307 case $ac_mode in 20308 :F) 20309 # 20310 # CONFIG_FILE 20311 # 20312 20313 case $INSTALL in 20314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20316 esac 20317 ac_MKDIR_P=$MKDIR_P 20318 case $MKDIR_P in 20319 [\\/$]* | ?:[\\/]* ) ;; 20320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20321 esac 20322_ACEOF 20323 20324cat >>$CONFIG_STATUS <<\_ACEOF 20325# If the template does not know about datarootdir, expand it. 20326# FIXME: This hack should be removed a few years after 2.60. 20327ac_datarootdir_hack=; ac_datarootdir_seen= 20328 20329case `sed -n '/datarootdir/ { 20330 p 20331 q 20332} 20333/@datadir@/p 20334/@docdir@/p 20335/@infodir@/p 20336/@localedir@/p 20337/@mandir@/p 20338' $ac_file_inputs` in 20339*datarootdir*) ac_datarootdir_seen=yes;; 20340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20341 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20342echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20343_ACEOF 20344cat >>$CONFIG_STATUS <<_ACEOF 20345 ac_datarootdir_hack=' 20346 s&@datadir@&$datadir&g 20347 s&@docdir@&$docdir&g 20348 s&@infodir@&$infodir&g 20349 s&@localedir@&$localedir&g 20350 s&@mandir@&$mandir&g 20351 s&\\\${datarootdir}&$datarootdir&g' ;; 20352esac 20353_ACEOF 20354 20355# Neutralize VPATH when `$srcdir' = `.'. 20356# Shell code in configure.ac might set extrasub. 20357# FIXME: do we really want to maintain this feature? 20358cat >>$CONFIG_STATUS <<_ACEOF 20359 sed "$ac_vpsub 20360$extrasub 20361_ACEOF 20362cat >>$CONFIG_STATUS <<\_ACEOF 20363:t 20364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20365s&@configure_input@&$configure_input&;t t 20366s&@top_builddir@&$ac_top_builddir_sub&;t t 20367s&@srcdir@&$ac_srcdir&;t t 20368s&@abs_srcdir@&$ac_abs_srcdir&;t t 20369s&@top_srcdir@&$ac_top_srcdir&;t t 20370s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20371s&@builddir@&$ac_builddir&;t t 20372s&@abs_builddir@&$ac_abs_builddir&;t t 20373s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20374s&@INSTALL@&$ac_INSTALL&;t t 20375s&@MKDIR_P@&$ac_MKDIR_P&;t t 20376$ac_datarootdir_hack 20377" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20378 20379test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20380 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20381 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20382 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20383which seems to be undefined. Please make sure it is defined." >&5 20384echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20385which seems to be undefined. Please make sure it is defined." >&2;} 20386 20387 rm -f "$tmp/stdin" 20388 case $ac_file in 20389 -) cat "$tmp/out"; rm -f "$tmp/out";; 20390 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20391 esac 20392 ;; 20393 20394 20395 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20396echo "$as_me: executing $ac_file commands" >&6;} 20397 ;; 20398 esac 20399 20400 20401 case $ac_file$ac_mode in 20402 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20403 # Strip MF so we end up with the name of the file. 20404 mf=`echo "$mf" | sed -e 's/:.*$//'` 20405 # Check whether this is an Automake generated Makefile or not. 20406 # We used to match only the files named `Makefile.in', but 20407 # some people rename them; so instead we look at the file content. 20408 # Grep'ing the first line is not enough: some people post-process 20409 # each Makefile.in and add a new line on top of each file to say so. 20410 # Grep'ing the whole file is not good either: AIX grep has a line 20411 # limit of 2048, but all sed's we know have understand at least 4000. 20412 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 20413 dirpart=`$as_dirname -- "$mf" || 20414$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20415 X"$mf" : 'X\(//\)[^/]' \| \ 20416 X"$mf" : 'X\(//\)$' \| \ 20417 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20418echo X"$mf" | 20419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20420 s//\1/ 20421 q 20422 } 20423 /^X\(\/\/\)[^/].*/{ 20424 s//\1/ 20425 q 20426 } 20427 /^X\(\/\/\)$/{ 20428 s//\1/ 20429 q 20430 } 20431 /^X\(\/\).*/{ 20432 s//\1/ 20433 q 20434 } 20435 s/.*/./; q'` 20436 else 20437 continue 20438 fi 20439 # Extract the definition of DEPDIR, am__include, and am__quote 20440 # from the Makefile without running `make'. 20441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20442 test -z "$DEPDIR" && continue 20443 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20444 test -z "am__include" && continue 20445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20446 # When using ansi2knr, U may be empty or an underscore; expand it 20447 U=`sed -n 's/^U = //p' < "$mf"` 20448 # Find all dependency output files, they are included files with 20449 # $(DEPDIR) in their names. We invoke sed twice because it is the 20450 # simplest approach to changing $(DEPDIR) to its actual value in the 20451 # expansion. 20452 for file in `sed -n " 20453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20455 # Make sure the directory exists. 20456 test -f "$dirpart/$file" && continue 20457 fdir=`$as_dirname -- "$file" || 20458$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20459 X"$file" : 'X\(//\)[^/]' \| \ 20460 X"$file" : 'X\(//\)$' \| \ 20461 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20462echo X"$file" | 20463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20464 s//\1/ 20465 q 20466 } 20467 /^X\(\/\/\)[^/].*/{ 20468 s//\1/ 20469 q 20470 } 20471 /^X\(\/\/\)$/{ 20472 s//\1/ 20473 q 20474 } 20475 /^X\(\/\).*/{ 20476 s//\1/ 20477 q 20478 } 20479 s/.*/./; q'` 20480 { as_dir=$dirpart/$fdir 20481 case $as_dir in #( 20482 -*) as_dir=./$as_dir;; 20483 esac 20484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20485 as_dirs= 20486 while :; do 20487 case $as_dir in #( 20488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20489 *) as_qdir=$as_dir;; 20490 esac 20491 as_dirs="'$as_qdir' $as_dirs" 20492 as_dir=`$as_dirname -- "$as_dir" || 20493$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20494 X"$as_dir" : 'X\(//\)[^/]' \| \ 20495 X"$as_dir" : 'X\(//\)$' \| \ 20496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20497echo X"$as_dir" | 20498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20499 s//\1/ 20500 q 20501 } 20502 /^X\(\/\/\)[^/].*/{ 20503 s//\1/ 20504 q 20505 } 20506 /^X\(\/\/\)$/{ 20507 s//\1/ 20508 q 20509 } 20510 /^X\(\/\).*/{ 20511 s//\1/ 20512 q 20513 } 20514 s/.*/./; q'` 20515 test -d "$as_dir" && break 20516 done 20517 test -z "$as_dirs" || eval "mkdir $as_dirs" 20518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20519echo "$as_me: error: cannot create directory $as_dir" >&2;} 20520 { (exit 1); exit 1; }; }; } 20521 # echo "creating $dirpart/$file" 20522 echo '# dummy' > "$dirpart/$file" 20523 done 20524done 20525 ;; 20526 20527 esac 20528done # for ac_tag 20529 20530 20531{ (exit 0); exit 0; } 20532_ACEOF 20533chmod +x $CONFIG_STATUS 20534ac_clean_files=$ac_clean_files_save 20535 20536 20537# configure is writing to config.log, and then calls config.status. 20538# config.status does its own redirection, appending to config.log. 20539# Unfortunately, on DOS this fails, as config.log is still kept open 20540# by configure, so config.status won't be able to write to it; its 20541# output is simply discarded. So we exec the FD to /dev/null, 20542# effectively closing config.log, so it can be properly (re)opened and 20543# appended to by config.status. When coming back to configure, we 20544# need to make the FD available again. 20545if test "$no_create" != yes; then 20546 ac_cs_success=: 20547 ac_config_status_args= 20548 test "$silent" = yes && 20549 ac_config_status_args="$ac_config_status_args --quiet" 20550 exec 5>/dev/null 20551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20552 exec 5>>config.log 20553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20554 # would make configure fail if this is the last instruction. 20555 $ac_cs_success || { (exit 1); exit 1; } 20556fi 20557 20558