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.in" 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 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 818install_sh 819STRIP 820INSTALL_STRIP_PROGRAM 821mkdir_p 822AWK 823SET_MAKE 824am__leading_dot 825AMTAR 826am__tar 827am__untar 828CC 829CFLAGS 830LDFLAGS 831CPPFLAGS 832ac_ct_CC 833EXEEXT 834OBJEXT 835DEPDIR 836am__include 837am__quote 838AMDEP_TRUE 839AMDEP_FALSE 840AMDEPBACKSLASH 841CCDEPMODE 842am__fastdepCC_TRUE 843am__fastdepCC_FALSE 844build 845build_cpu 846build_vendor 847build_os 848host 849host_cpu 850host_vendor 851host_os 852SED 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 871LIBOBJS 872LTLIBOBJS' 873ac_subst_files='' 874 ac_precious_vars='build_alias 875host_alias 876target_alias 877CC 878CFLAGS 879LDFLAGS 880LIBS 881CPPFLAGS 882CPP 883CXX 884CXXFLAGS 885CCC 886CXXCPP 887F77 888FFLAGS' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 # Accept the important Cygnus configure options, so we can diagnose typos. 954 955 case $ac_dashdash$ac_option in 956 --) 957 ac_dashdash=yes ;; 958 959 -bindir | --bindir | --bindi | --bind | --bin | --bi) 960 ac_prev=bindir ;; 961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 962 bindir=$ac_optarg ;; 963 964 -build | --build | --buil | --bui | --bu) 965 ac_prev=build_alias ;; 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 967 build_alias=$ac_optarg ;; 968 969 -cache-file | --cache-file | --cache-fil | --cache-fi \ 970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 971 ac_prev=cache_file ;; 972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 974 cache_file=$ac_optarg ;; 975 976 --config-cache | -C) 977 cache_file=config.cache ;; 978 979 -datadir | --datadir | --datadi | --datad) 980 ac_prev=datadir ;; 981 -datadir=* | --datadir=* | --datadi=* | --datad=*) 982 datadir=$ac_optarg ;; 983 984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 985 | --dataroo | --dataro | --datar) 986 ac_prev=datarootdir ;; 987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 989 datarootdir=$ac_optarg ;; 990 991 -disable-* | --disable-*) 992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 996 { (exit 1); exit 1; }; } 997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 998 eval enable_$ac_feature=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1015 { (exit 1); exit 1; }; } 1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1017 eval enable_$ac_feature=\$ac_optarg ;; 1018 1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1021 | --exec | --exe | --ex) 1022 ac_prev=exec_prefix ;; 1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1025 | --exec=* | --exe=* | --ex=*) 1026 exec_prefix=$ac_optarg ;; 1027 1028 -gas | --gas | --ga | --g) 1029 # Obsolete; use --with-gas. 1030 with_gas=yes ;; 1031 1032 -help | --help | --hel | --he | -h) 1033 ac_init_help=long ;; 1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1035 ac_init_help=recursive ;; 1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1037 ac_init_help=short ;; 1038 1039 -host | --host | --hos | --ho) 1040 ac_prev=host_alias ;; 1041 -host=* | --host=* | --hos=* | --ho=*) 1042 host_alias=$ac_optarg ;; 1043 1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1045 ac_prev=htmldir ;; 1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1047 | --ht=*) 1048 htmldir=$ac_optarg ;; 1049 1050 -includedir | --includedir | --includedi | --included | --include \ 1051 | --includ | --inclu | --incl | --inc) 1052 ac_prev=includedir ;; 1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1054 | --includ=* | --inclu=* | --incl=* | --inc=*) 1055 includedir=$ac_optarg ;; 1056 1057 -infodir | --infodir | --infodi | --infod | --info | --inf) 1058 ac_prev=infodir ;; 1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1060 infodir=$ac_optarg ;; 1061 1062 -libdir | --libdir | --libdi | --libd) 1063 ac_prev=libdir ;; 1064 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1065 libdir=$ac_optarg ;; 1066 1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1068 | --libexe | --libex | --libe) 1069 ac_prev=libexecdir ;; 1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1071 | --libexe=* | --libex=* | --libe=*) 1072 libexecdir=$ac_optarg ;; 1073 1074 -localedir | --localedir | --localedi | --localed | --locale) 1075 ac_prev=localedir ;; 1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1077 localedir=$ac_optarg ;; 1078 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1080 | --localstate | --localstat | --localsta | --localst | --locals) 1081 ac_prev=localstatedir ;; 1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1084 localstatedir=$ac_optarg ;; 1085 1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1087 ac_prev=mandir ;; 1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1089 mandir=$ac_optarg ;; 1090 1091 -nfp | --nfp | --nf) 1092 # Obsolete; use --without-fp. 1093 with_fp=no ;; 1094 1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1096 | --no-cr | --no-c | -n) 1097 no_create=yes ;; 1098 1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1101 no_recursion=yes ;; 1102 1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1105 | --oldin | --oldi | --old | --ol | --o) 1106 ac_prev=oldincludedir ;; 1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1110 oldincludedir=$ac_optarg ;; 1111 1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1113 ac_prev=prefix ;; 1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1115 prefix=$ac_optarg ;; 1116 1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1118 | --program-pre | --program-pr | --program-p) 1119 ac_prev=program_prefix ;; 1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1122 program_prefix=$ac_optarg ;; 1123 1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1125 | --program-suf | --program-su | --program-s) 1126 ac_prev=program_suffix ;; 1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1129 program_suffix=$ac_optarg ;; 1130 1131 -program-transform-name | --program-transform-name \ 1132 | --program-transform-nam | --program-transform-na \ 1133 | --program-transform-n | --program-transform- \ 1134 | --program-transform | --program-transfor \ 1135 | --program-transfo | --program-transf \ 1136 | --program-trans | --program-tran \ 1137 | --progr-tra | --program-tr | --program-t) 1138 ac_prev=program_transform_name ;; 1139 -program-transform-name=* | --program-transform-name=* \ 1140 | --program-transform-nam=* | --program-transform-na=* \ 1141 | --program-transform-n=* | --program-transform-=* \ 1142 | --program-transform=* | --program-transfor=* \ 1143 | --program-transfo=* | --program-transf=* \ 1144 | --program-trans=* | --program-tran=* \ 1145 | --progr-tra=* | --program-tr=* | --program-t=*) 1146 program_transform_name=$ac_optarg ;; 1147 1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1149 ac_prev=pdfdir ;; 1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1151 pdfdir=$ac_optarg ;; 1152 1153 -psdir | --psdir | --psdi | --psd | --ps) 1154 ac_prev=psdir ;; 1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1156 psdir=$ac_optarg ;; 1157 1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1159 | -silent | --silent | --silen | --sile | --sil) 1160 silent=yes ;; 1161 1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1163 ac_prev=sbindir ;; 1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1165 | --sbi=* | --sb=*) 1166 sbindir=$ac_optarg ;; 1167 1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1170 | --sharedst | --shareds | --shared | --share | --shar \ 1171 | --sha | --sh) 1172 ac_prev=sharedstatedir ;; 1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1176 | --sha=* | --sh=*) 1177 sharedstatedir=$ac_optarg ;; 1178 1179 -site | --site | --sit) 1180 ac_prev=site ;; 1181 -site=* | --site=* | --sit=*) 1182 site=$ac_optarg ;; 1183 1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1185 ac_prev=srcdir ;; 1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1187 srcdir=$ac_optarg ;; 1188 1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1190 | --syscon | --sysco | --sysc | --sys | --sy) 1191 ac_prev=sysconfdir ;; 1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1194 sysconfdir=$ac_optarg ;; 1195 1196 -target | --target | --targe | --targ | --tar | --ta | --t) 1197 ac_prev=target_alias ;; 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1199 target_alias=$ac_optarg ;; 1200 1201 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1202 verbose=yes ;; 1203 1204 -version | --version | --versio | --versi | --vers | -V) 1205 ac_init_version=: ;; 1206 1207 -with-* | --with-*) 1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 { echo "$as_me: error: invalid package name: $ac_package" >&2 1212 { (exit 1); exit 1; }; } 1213 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1214 eval with_$ac_package=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1223 eval with_$ac_package=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) { echo "$as_me: error: unrecognized option: $ac_option 1244Try \`$0 --help' for more information." >&2 1245 { (exit 1); exit 1; }; } 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1253 { (exit 1); exit 1; }; } 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 { echo "$as_me: error: missing argument to $ac_option" >&2 1271 { (exit 1); exit 1; }; } 1272fi 1273 1274# Be sure to have absolute directory names. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1286 { (exit 1); exit 1; }; } 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1301 If a cross compiler is detected then cross compile mode will be used." >&2 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 { echo "$as_me: error: Working directory cannot be determined" >&2 1317 { (exit 1); exit 1; }; } 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1319 { echo "$as_me: error: pwd does not report name of working directory" >&2 1320 { (exit 1); exit 1; }; } 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$0" || 1328$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$0" : 'X\(//\)[^/]' \| \ 1330 X"$0" : 'X\(//\)$' \| \ 1331 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1332echo X"$0" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1360 { (exit 1); exit 1; }; } 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1365 { (exit 1); exit 1; }; } 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures this package to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 1461 cat <<\_ACEOF 1462 1463Optional Features: 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --disable-dependency-tracking speeds up one-time build 1467 --enable-dependency-tracking do not reject slow dependency extractors 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 1474Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1478 --with-pic try to use only PIC/non-PIC objects [default=use 1479 both] 1480 --with-tags[=TAGS] include additional configurations [automatic] 1481 1482Some influential environment variables: 1483 CC C compiler command 1484 CFLAGS C compiler flags 1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1486 nonstandard directory <lib dir> 1487 LIBS libraries to pass to the linker, e.g. -l<library> 1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1489 you have headers in a nonstandard directory <include dir> 1490 CPP C preprocessor 1491 CXX C++ compiler command 1492 CXXFLAGS C++ compiler flags 1493 CXXCPP C++ preprocessor 1494 F77 Fortran 77 compiler command 1495 FFLAGS Fortran 77 compiler flags 1496 1497Use these variables to override the choices made by `configure' or to help 1498it to find libraries and programs with nonstandard names/locations. 1499 1500_ACEOF 1501ac_status=$? 1502fi 1503 1504if test "$ac_init_help" = "recursive"; then 1505 # If there are subdirs, report their specific --help. 1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1507 test -d "$ac_dir" || continue 1508 ac_builddir=. 1509 1510case "$ac_dir" in 1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512*) 1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1514 # A ".." for each directory in $ac_dir_suffix. 1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1516 case $ac_top_builddir_sub in 1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1519 esac ;; 1520esac 1521ac_abs_top_builddir=$ac_pwd 1522ac_abs_builddir=$ac_pwd$ac_dir_suffix 1523# for backward compatibility: 1524ac_top_builddir=$ac_top_build_prefix 1525 1526case $srcdir in 1527 .) # We are building in place. 1528 ac_srcdir=. 1529 ac_top_srcdir=$ac_top_builddir_sub 1530 ac_abs_top_srcdir=$ac_pwd ;; 1531 [\\/]* | ?:[\\/]* ) # Absolute name. 1532 ac_srcdir=$srcdir$ac_dir_suffix; 1533 ac_top_srcdir=$srcdir 1534 ac_abs_top_srcdir=$srcdir ;; 1535 *) # Relative name. 1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1537 ac_top_srcdir=$ac_top_build_prefix$srcdir 1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1539esac 1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1541 1542 cd "$ac_dir" || { ac_status=$?; continue; } 1543 # Check for guested configure. 1544 if test -f "$ac_srcdir/configure.gnu"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1547 elif test -f "$ac_srcdir/configure"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure" --help=recursive 1550 else 1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1552 fi || ac_status=$? 1553 cd "$ac_pwd" || { ac_status=$?; break; } 1554 done 1555fi 1556 1557test -n "$ac_init_help" && exit $ac_status 1558if $ac_init_version; then 1559 cat <<\_ACEOF 1560configure 1561generated by GNU Autoconf 2.61 1562 1563Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1565This configure script is free software; the Free Software Foundation 1566gives unlimited permission to copy, distribute and modify it. 1567_ACEOF 1568 exit 1569fi 1570cat >config.log <<_ACEOF 1571This file contains any messages produced by compilers while 1572running configure, to aid debugging if configure makes a mistake. 1573 1574It was created by $as_me, which was 1575generated by GNU Autoconf 2.61. Invocation command line was 1576 1577 $ $0 $@ 1578 1579_ACEOF 1580exec 5>>config.log 1581{ 1582cat <<_ASUNAME 1583## --------- ## 1584## Platform. ## 1585## --------- ## 1586 1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1588uname -m = `(uname -m) 2>/dev/null || echo unknown` 1589uname -r = `(uname -r) 2>/dev/null || echo unknown` 1590uname -s = `(uname -s) 2>/dev/null || echo unknown` 1591uname -v = `(uname -v) 2>/dev/null || echo unknown` 1592 1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1595 1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1603 1604_ASUNAME 1605 1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1607for as_dir in $PATH 1608do 1609 IFS=$as_save_IFS 1610 test -z "$as_dir" && as_dir=. 1611 echo "PATH: $as_dir" 1612done 1613IFS=$as_save_IFS 1614 1615} >&5 1616 1617cat >&5 <<_ACEOF 1618 1619 1620## ----------- ## 1621## Core tests. ## 1622## ----------- ## 1623 1624_ACEOF 1625 1626 1627# Keep a trace of the command line. 1628# Strip out --no-create and --no-recursion so they do not pile up. 1629# Strip out --silent because we don't want to record it for future runs. 1630# Also quote any args containing shell meta-characters. 1631# Make two passes to allow for proper duplicate-argument suppression. 1632ac_configure_args= 1633ac_configure_args0= 1634ac_configure_args1= 1635ac_must_keep_next=false 1636for ac_pass in 1 2 1637do 1638 for ac_arg 1639 do 1640 case $ac_arg in 1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1643 | -silent | --silent | --silen | --sile | --sil) 1644 continue ;; 1645 *\'*) 1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1647 esac 1648 case $ac_pass in 1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1650 2) 1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1652 if test $ac_must_keep_next = true; then 1653 ac_must_keep_next=false # Got value, back to normal. 1654 else 1655 case $ac_arg in 1656 *=* | --config-cache | -C | -disable-* | --disable-* \ 1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1659 | -with-* | --with-* | -without-* | --without-* | --x) 1660 case "$ac_configure_args0 " in 1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1662 esac 1663 ;; 1664 -* ) ac_must_keep_next=true ;; 1665 esac 1666 fi 1667 ac_configure_args="$ac_configure_args '$ac_arg'" 1668 ;; 1669 esac 1670 done 1671done 1672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1674 1675# When interrupted or exit'd, cleanup temporary files, and complete 1676# config.log. We remove comments because anyway the quotes in there 1677# would cause problems or look ugly. 1678# WARNING: Use '\'' to represent an apostrophe within the trap. 1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1680trap 'exit_status=$? 1681 # Save into config.log some information that might help in debugging. 1682 { 1683 echo 1684 1685 cat <<\_ASBOX 1686## ---------------- ## 1687## Cache variables. ## 1688## ---------------- ## 1689_ASBOX 1690 echo 1691 # The following way of writing the cache mishandles newlines in values, 1692( 1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1694 eval ac_val=\$$ac_var 1695 case $ac_val in #( 1696 *${as_nl}*) 1697 case $ac_var in #( 1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1700 esac 1701 case $ac_var in #( 1702 _ | IFS | as_nl) ;; #( 1703 *) $as_unset $ac_var ;; 1704 esac ;; 1705 esac 1706 done 1707 (set) 2>&1 | 1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1709 *${as_nl}ac_space=\ *) 1710 sed -n \ 1711 "s/'\''/'\''\\\\'\'''\''/g; 1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1713 ;; #( 1714 *) 1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1716 ;; 1717 esac | 1718 sort 1719) 1720 echo 1721 1722 cat <<\_ASBOX 1723## ----------------- ## 1724## Output variables. ## 1725## ----------------- ## 1726_ASBOX 1727 echo 1728 for ac_var in $ac_subst_vars 1729 do 1730 eval ac_val=\$$ac_var 1731 case $ac_val in 1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1733 esac 1734 echo "$ac_var='\''$ac_val'\''" 1735 done | sort 1736 echo 1737 1738 if test -n "$ac_subst_files"; then 1739 cat <<\_ASBOX 1740## ------------------- ## 1741## File substitutions. ## 1742## ------------------- ## 1743_ASBOX 1744 echo 1745 for ac_var in $ac_subst_files 1746 do 1747 eval ac_val=\$$ac_var 1748 case $ac_val in 1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1750 esac 1751 echo "$ac_var='\''$ac_val'\''" 1752 done | sort 1753 echo 1754 fi 1755 1756 if test -s confdefs.h; then 1757 cat <<\_ASBOX 1758## ----------- ## 1759## confdefs.h. ## 1760## ----------- ## 1761_ASBOX 1762 echo 1763 cat confdefs.h 1764 echo 1765 fi 1766 test "$ac_signal" != 0 && 1767 echo "$as_me: caught signal $ac_signal" 1768 echo "$as_me: exit $exit_status" 1769 } >&5 1770 rm -f core *.core core.conftest.* && 1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1772 exit $exit_status 1773' 0 1774for ac_signal in 1 2 13 15; do 1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1776done 1777ac_signal=0 1778 1779# confdefs.h avoids OS command line length limits that DEFS can exceed. 1780rm -f -r conftest* confdefs.h 1781 1782# Predefined preprocessor variables. 1783 1784cat >>confdefs.h <<_ACEOF 1785#define PACKAGE_NAME "$PACKAGE_NAME" 1786_ACEOF 1787 1788 1789cat >>confdefs.h <<_ACEOF 1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1791_ACEOF 1792 1793 1794cat >>confdefs.h <<_ACEOF 1795#define PACKAGE_VERSION "$PACKAGE_VERSION" 1796_ACEOF 1797 1798 1799cat >>confdefs.h <<_ACEOF 1800#define PACKAGE_STRING "$PACKAGE_STRING" 1801_ACEOF 1802 1803 1804cat >>confdefs.h <<_ACEOF 1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1806_ACEOF 1807 1808 1809# Let the site file select an alternate cache file if it wants to. 1810# Prefer explicitly selected file to automatically selected ones. 1811if test -n "$CONFIG_SITE"; then 1812 set x "$CONFIG_SITE" 1813elif test "x$prefix" != xNONE; then 1814 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1815else 1816 set x "$ac_default_prefix/share/config.site" \ 1817 "$ac_default_prefix/etc/config.site" 1818fi 1819shift 1820for ac_site_file 1821do 1822 if test -r "$ac_site_file"; then 1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1824echo "$as_me: loading site script $ac_site_file" >&6;} 1825 sed 's/^/| /' "$ac_site_file" >&5 1826 . "$ac_site_file" 1827 fi 1828done 1829 1830if test -r "$cache_file"; then 1831 # Some versions of bash will fail to source /dev/null (special 1832 # files actually), so we avoid doing that. 1833 if test -f "$cache_file"; then 1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1835echo "$as_me: loading cache $cache_file" >&6;} 1836 case $cache_file in 1837 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1838 *) . "./$cache_file";; 1839 esac 1840 fi 1841else 1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1843echo "$as_me: creating cache $cache_file" >&6;} 1844 >$cache_file 1845fi 1846 1847# Check that the precious variables saved in the cache have kept the same 1848# value. 1849ac_cache_corrupted=false 1850for ac_var in $ac_precious_vars; do 1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1852 eval ac_new_set=\$ac_env_${ac_var}_set 1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1854 eval ac_new_val=\$ac_env_${ac_var}_value 1855 case $ac_old_set,$ac_new_set in 1856 set,) 1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1859 ac_cache_corrupted=: ;; 1860 ,set) 1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1863 ac_cache_corrupted=: ;; 1864 ,);; 1865 *) 1866 if test "x$ac_old_val" != "x$ac_new_val"; then 1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1870echo "$as_me: former value: $ac_old_val" >&2;} 1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1872echo "$as_me: current value: $ac_new_val" >&2;} 1873 ac_cache_corrupted=: 1874 fi;; 1875 esac 1876 # Pass precious variables to config.status. 1877 if test "$ac_new_set" = set; then 1878 case $ac_new_val in 1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1880 *) ac_arg=$ac_var=$ac_new_val ;; 1881 esac 1882 case " $ac_configure_args " in 1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1885 esac 1886 fi 1887done 1888if $ac_cache_corrupted; then 1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1890echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1893 { (exit 1); exit 1; }; } 1894fi 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912ac_ext=c 1913ac_cpp='$CPP $CPPFLAGS' 1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1916ac_compiler_gnu=$ac_cv_c_compiler_gnu 1917 1918 1919 1920ac_config_headers="$ac_config_headers config.h" 1921 1922am__api_version="1.9" 1923ac_aux_dir= 1924for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1925 if test -f "$ac_dir/install-sh"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/install-sh -c" 1928 break 1929 elif test -f "$ac_dir/install.sh"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/install.sh -c" 1932 break 1933 elif test -f "$ac_dir/shtool"; then 1934 ac_aux_dir=$ac_dir 1935 ac_install_sh="$ac_aux_dir/shtool install -c" 1936 break 1937 fi 1938done 1939if test -z "$ac_aux_dir"; then 1940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1941echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1942 { (exit 1); exit 1; }; } 1943fi 1944 1945# These three variables are undocumented and unsupported, 1946# and are intended to be withdrawn in a future Autoconf release. 1947# They can cause serious problems if a builder's source tree is in a directory 1948# whose full name contains unusual characters. 1949ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1950ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1951ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1952 1953 1954# Find a good install program. We prefer a C program (faster), 1955# so one script is as good as another. But avoid the broken or 1956# incompatible versions: 1957# SysV /etc/install, /usr/sbin/install 1958# SunOS /usr/etc/install 1959# IRIX /sbin/install 1960# AIX /bin/install 1961# AmigaOS /C/install, which installs bootblocks on floppy discs 1962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1963# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1965# OS/2's system install, which has a completely different semantic 1966# ./install, which can be erroneously created by make from ./install.sh. 1967{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1968echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1969if test -z "$INSTALL"; then 1970if test "${ac_cv_path_install+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972else 1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 # Account for people who put trailing slashes in PATH elements. 1979case $as_dir/ in 1980 ./ | .// | /cC/* | \ 1981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1983 /usr/ucb/* ) ;; 1984 *) 1985 # OSF1 and SCO ODT 3.0 have their own names for install. 1986 # Don't use installbsd from OSF since it installs stuff as root 1987 # by default. 1988 for ac_prog in ginstall scoinst install; do 1989 for ac_exec_ext in '' $ac_executable_extensions; do 1990 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1991 if test $ac_prog = install && 1992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1993 # AIX install. It has an incompatible calling convention. 1994 : 1995 elif test $ac_prog = install && 1996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1997 # program-specific install script used by HP pwplus--don't use. 1998 : 1999 else 2000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2001 break 3 2002 fi 2003 fi 2004 done 2005 done 2006 ;; 2007esac 2008done 2009IFS=$as_save_IFS 2010 2011 2012fi 2013 if test "${ac_cv_path_install+set}" = set; then 2014 INSTALL=$ac_cv_path_install 2015 else 2016 # As a last resort, use the slow shell script. Don't cache a 2017 # value for INSTALL within a source directory, because that will 2018 # break other packages using the cache if that directory is 2019 # removed, or if the value is a relative name. 2020 INSTALL=$ac_install_sh 2021 fi 2022fi 2023{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2024echo "${ECHO_T}$INSTALL" >&6; } 2025 2026# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2027# It thinks the first close brace ends the variable substitution. 2028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2029 2030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2031 2032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2033 2034{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2035echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2036# Just in case 2037sleep 1 2038echo timestamp > conftest.file 2039# Do `set' in a subshell so we don't clobber the current shell's 2040# arguments. Must try -L first in case configure is actually a 2041# symlink; some systems play weird games with the mod time of symlinks 2042# (eg FreeBSD returns the mod time of the symlink's containing 2043# directory). 2044if ( 2045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2046 if test "$*" = "X"; then 2047 # -L didn't work. 2048 set X `ls -t $srcdir/configure conftest.file` 2049 fi 2050 rm -f conftest.file 2051 if test "$*" != "X $srcdir/configure conftest.file" \ 2052 && test "$*" != "X conftest.file $srcdir/configure"; then 2053 2054 # If neither matched, then we have a broken ls. This can happen 2055 # if, for instance, CONFIG_SHELL is bash and it inherits a 2056 # broken ls alias from the environment. This has actually 2057 # happened. Such a system could not be considered "sane". 2058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2059alias in your environment" >&5 2060echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2061alias in your environment" >&2;} 2062 { (exit 1); exit 1; }; } 2063 fi 2064 2065 test "$2" = conftest.file 2066 ) 2067then 2068 # Ok. 2069 : 2070else 2071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2072Check your system clock" >&5 2073echo "$as_me: error: newly created file is older than distributed files! 2074Check your system clock" >&2;} 2075 { (exit 1); exit 1; }; } 2076fi 2077{ echo "$as_me:$LINENO: result: yes" >&5 2078echo "${ECHO_T}yes" >&6; } 2079test "$program_prefix" != NONE && 2080 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2081# Use a double $ so make ignores it. 2082test "$program_suffix" != NONE && 2083 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2084# Double any \ or $. echo might interpret backslashes. 2085# By default was `s,x,x', remove it if useless. 2086cat <<\_ACEOF >conftest.sed 2087s/[\\$]/&&/g;s/;s,x,x,$// 2088_ACEOF 2089program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2090rm -f conftest.sed 2091 2092# expand $ac_aux_dir to an absolute path 2093am_aux_dir=`cd $ac_aux_dir && pwd` 2094 2095test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2096# Use eval to expand $SHELL 2097if eval "$MISSING --run true"; then 2098 am_missing_run="$MISSING --run " 2099else 2100 am_missing_run= 2101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2102echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2103fi 2104 2105if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2106 # We used to keeping the `.' as first argument, in order to 2107 # allow $(mkdir_p) to be used without argument. As in 2108 # $(mkdir_p) $(somedir) 2109 # where $(somedir) is conditionally defined. However this is wrong 2110 # for two reasons: 2111 # 1. if the package is installed by a user who cannot write `.' 2112 # make install will fail, 2113 # 2. the above comment should most certainly read 2114 # $(mkdir_p) $(DESTDIR)$(somedir) 2115 # so it does not work when $(somedir) is undefined and 2116 # $(DESTDIR) is not. 2117 # To support the latter case, we have to write 2118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2119 # so the `.' trick is pointless. 2120 mkdir_p='mkdir -p --' 2121else 2122 # On NextStep and OpenStep, the `mkdir' command does not 2123 # recognize any option. It will interpret all options as 2124 # directories to create, and then abort because `.' already 2125 # exists. 2126 for d in ./-p ./--version; 2127 do 2128 test -d $d && rmdir $d 2129 done 2130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2131 if test -f "$ac_aux_dir/mkinstalldirs"; then 2132 mkdir_p='$(mkinstalldirs)' 2133 else 2134 mkdir_p='$(install_sh) -d' 2135 fi 2136fi 2137 2138for ac_prog in gawk mawk nawk awk 2139do 2140 # Extract the first word of "$ac_prog", so it can be a program name with args. 2141set dummy $ac_prog; ac_word=$2 2142{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2144if test "${ac_cv_prog_AWK+set}" = set; then 2145 echo $ECHO_N "(cached) $ECHO_C" >&6 2146else 2147 if test -n "$AWK"; then 2148 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2149else 2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2157 ac_cv_prog_AWK="$ac_prog" 2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2159 break 2 2160 fi 2161done 2162done 2163IFS=$as_save_IFS 2164 2165fi 2166fi 2167AWK=$ac_cv_prog_AWK 2168if test -n "$AWK"; then 2169 { echo "$as_me:$LINENO: result: $AWK" >&5 2170echo "${ECHO_T}$AWK" >&6; } 2171else 2172 { echo "$as_me:$LINENO: result: no" >&5 2173echo "${ECHO_T}no" >&6; } 2174fi 2175 2176 2177 test -n "$AWK" && break 2178done 2179 2180{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2181echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2182set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2183if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 cat >conftest.make <<\_ACEOF 2187SHELL = /bin/sh 2188all: 2189 @echo '@@@%%%=$(MAKE)=@@@%%%' 2190_ACEOF 2191# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2192case `${MAKE-make} -f conftest.make 2>/dev/null` in 2193 *@@@%%%=?*=@@@%%%*) 2194 eval ac_cv_prog_make_${ac_make}_set=yes;; 2195 *) 2196 eval ac_cv_prog_make_${ac_make}_set=no;; 2197esac 2198rm -f conftest.make 2199fi 2200if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2201 { echo "$as_me:$LINENO: result: yes" >&5 2202echo "${ECHO_T}yes" >&6; } 2203 SET_MAKE= 2204else 2205 { echo "$as_me:$LINENO: result: no" >&5 2206echo "${ECHO_T}no" >&6; } 2207 SET_MAKE="MAKE=${MAKE-make}" 2208fi 2209 2210rm -rf .tst 2>/dev/null 2211mkdir .tst 2>/dev/null 2212if test -d .tst; then 2213 am__leading_dot=. 2214else 2215 am__leading_dot=_ 2216fi 2217rmdir .tst 2>/dev/null 2218 2219# test to see if srcdir already configured 2220if test "`cd $srcdir && pwd`" != "`pwd`" && 2221 test -f $srcdir/config.status; then 2222 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2223echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2224 { (exit 1); exit 1; }; } 2225fi 2226 2227# test whether we have cygpath 2228if test -z "$CYGPATH_W"; then 2229 if (cygpath --version) >/dev/null 2>/dev/null; then 2230 CYGPATH_W='cygpath -w' 2231 else 2232 CYGPATH_W=echo 2233 fi 2234fi 2235 2236 2237# Define the identity of the package. 2238 PACKAGE=pptp 2239 VERSION=0.8.5 2240 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE "$PACKAGE" 2244_ACEOF 2245 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PLUGINVERSION "$VERSION" 2249_ACEOF 2250 2251# Some tools Automake needs. 2252 2253ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2254 2255 2256AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2257 2258 2259AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2260 2261 2262AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2263 2264 2265MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2266 2267install_sh=${install_sh-"$am_aux_dir/install-sh"} 2268 2269# Installed binaries are usually stripped using `strip' when the user 2270# run `make install-strip'. However `strip' might not be the right 2271# tool to use in cross-compilation environments, therefore Automake 2272# will honor the `STRIP' environment variable to overrule this program. 2273if test "$cross_compiling" != no; then 2274 if test -n "$ac_tool_prefix"; then 2275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2276set dummy ${ac_tool_prefix}strip; ac_word=$2 2277{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2279if test "${ac_cv_prog_STRIP+set}" = set; then 2280 echo $ECHO_N "(cached) $ECHO_C" >&6 2281else 2282 if test -n "$STRIP"; then 2283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2284else 2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2286for as_dir in $PATH 2287do 2288 IFS=$as_save_IFS 2289 test -z "$as_dir" && as_dir=. 2290 for ac_exec_ext in '' $ac_executable_extensions; do 2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2292 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2294 break 2 2295 fi 2296done 2297done 2298IFS=$as_save_IFS 2299 2300fi 2301fi 2302STRIP=$ac_cv_prog_STRIP 2303if test -n "$STRIP"; then 2304 { echo "$as_me:$LINENO: result: $STRIP" >&5 2305echo "${ECHO_T}$STRIP" >&6; } 2306else 2307 { echo "$as_me:$LINENO: result: no" >&5 2308echo "${ECHO_T}no" >&6; } 2309fi 2310 2311 2312fi 2313if test -z "$ac_cv_prog_STRIP"; then 2314 ac_ct_STRIP=$STRIP 2315 # Extract the first word of "strip", so it can be a program name with args. 2316set dummy strip; ac_word=$2 2317{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2319if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 if test -n "$ac_ct_STRIP"; then 2323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2324else 2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2326for as_dir in $PATH 2327do 2328 IFS=$as_save_IFS 2329 test -z "$as_dir" && as_dir=. 2330 for ac_exec_ext in '' $ac_executable_extensions; do 2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2332 ac_cv_prog_ac_ct_STRIP="strip" 2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2334 break 2 2335 fi 2336done 2337done 2338IFS=$as_save_IFS 2339 2340fi 2341fi 2342ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2343if test -n "$ac_ct_STRIP"; then 2344 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2345echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2346else 2347 { echo "$as_me:$LINENO: result: no" >&5 2348echo "${ECHO_T}no" >&6; } 2349fi 2350 2351 if test "x$ac_ct_STRIP" = x; then 2352 STRIP=":" 2353 else 2354 case $cross_compiling:$ac_tool_warned in 2355yes:) 2356{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2357whose name does not start with the host triplet. If you think this 2358configuration is useful to you, please write to autoconf@gnu.org." >&5 2359echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2360whose name does not start with the host triplet. If you think this 2361configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2362ac_tool_warned=yes ;; 2363esac 2364 STRIP=$ac_ct_STRIP 2365 fi 2366else 2367 STRIP="$ac_cv_prog_STRIP" 2368fi 2369 2370fi 2371INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2372 2373# We need awk for the "check" target. The system "awk" is bad on 2374# some platforms. 2375# Always define AMTAR for backward compatibility. 2376 2377AMTAR=${AMTAR-"${am_missing_run}tar"} 2378 2379am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2380 2381 2382 2383 2384 2385 2386ac_ext=c 2387ac_cpp='$CPP $CPPFLAGS' 2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2390ac_compiler_gnu=$ac_cv_c_compiler_gnu 2391 2392ac_ext=c 2393ac_cpp='$CPP $CPPFLAGS' 2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2396ac_compiler_gnu=$ac_cv_c_compiler_gnu 2397if test -n "$ac_tool_prefix"; then 2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2399set dummy ${ac_tool_prefix}gcc; ac_word=$2 2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2402if test "${ac_cv_prog_CC+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 if test -n "$CC"; then 2406 ac_cv_prog_CC="$CC" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2415 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 { echo "$as_me:$LINENO: result: $CC" >&5 2428echo "${ECHO_T}$CC" >&6; } 2429else 2430 { echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$ac_cv_prog_CC"; then 2437 ac_ct_CC=$CC 2438 # Extract the first word of "gcc", so it can be a program name with args. 2439set dummy gcc; ac_word=$2 2440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2443 echo $ECHO_N "(cached) $ECHO_C" >&6 2444else 2445 if test -n "$ac_ct_CC"; then 2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2455 ac_cv_prog_ac_ct_CC="gcc" 2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465ac_ct_CC=$ac_cv_prog_ac_ct_CC 2466if test -n "$ac_ct_CC"; then 2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2468echo "${ECHO_T}$ac_ct_CC" >&6; } 2469else 2470 { echo "$as_me:$LINENO: result: no" >&5 2471echo "${ECHO_T}no" >&6; } 2472fi 2473 2474 if test "x$ac_ct_CC" = x; then 2475 CC="" 2476 else 2477 case $cross_compiling:$ac_tool_warned in 2478yes:) 2479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2480whose name does not start with the host triplet. If you think this 2481configuration is useful to you, please write to autoconf@gnu.org." >&5 2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2483whose name does not start with the host triplet. If you think this 2484configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2485ac_tool_warned=yes ;; 2486esac 2487 CC=$ac_ct_CC 2488 fi 2489else 2490 CC="$ac_cv_prog_CC" 2491fi 2492 2493if test -z "$CC"; then 2494 if test -n "$ac_tool_prefix"; then 2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2496set dummy ${ac_tool_prefix}cc; ac_word=$2 2497{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2499if test "${ac_cv_prog_CC+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 if test -n "$CC"; then 2503 ac_cv_prog_CC="$CC" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2512 ac_cv_prog_CC="${ac_tool_prefix}cc" 2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517done 2518IFS=$as_save_IFS 2519 2520fi 2521fi 2522CC=$ac_cv_prog_CC 2523if test -n "$CC"; then 2524 { echo "$as_me:$LINENO: result: $CC" >&5 2525echo "${ECHO_T}$CC" >&6; } 2526else 2527 { echo "$as_me:$LINENO: result: no" >&5 2528echo "${ECHO_T}no" >&6; } 2529fi 2530 2531 2532 fi 2533fi 2534if test -z "$CC"; then 2535 # Extract the first word of "cc", so it can be a program name with args. 2536set dummy cc; ac_word=$2 2537{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2539if test "${ac_cv_prog_CC+set}" = set; then 2540 echo $ECHO_N "(cached) $ECHO_C" >&6 2541else 2542 if test -n "$CC"; then 2543 ac_cv_prog_CC="$CC" # Let the user override the test. 2544else 2545 ac_prog_rejected=no 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2554 ac_prog_rejected=yes 2555 continue 2556 fi 2557 ac_cv_prog_CC="cc" 2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2559 break 2 2560 fi 2561done 2562done 2563IFS=$as_save_IFS 2564 2565if test $ac_prog_rejected = yes; then 2566 # We found a bogon in the path, so make sure we never use it. 2567 set dummy $ac_cv_prog_CC 2568 shift 2569 if test $# != 0; then 2570 # We chose a different compiler from the bogus one. 2571 # However, it has the same basename, so the bogon will be chosen 2572 # first if we set CC to just the basename; use the full file name. 2573 shift 2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2575 fi 2576fi 2577fi 2578fi 2579CC=$ac_cv_prog_CC 2580if test -n "$CC"; then 2581 { echo "$as_me:$LINENO: result: $CC" >&5 2582echo "${ECHO_T}$CC" >&6; } 2583else 2584 { echo "$as_me:$LINENO: result: no" >&5 2585echo "${ECHO_T}no" >&6; } 2586fi 2587 2588 2589fi 2590if test -z "$CC"; then 2591 if test -n "$ac_tool_prefix"; then 2592 for ac_prog in cl.exe 2593 do 2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2596{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2598if test "${ac_cv_prog_CC+set}" = set; then 2599 echo $ECHO_N "(cached) $ECHO_C" >&6 2600else 2601 if test -n "$CC"; then 2602 ac_cv_prog_CC="$CC" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621CC=$ac_cv_prog_CC 2622if test -n "$CC"; then 2623 { echo "$as_me:$LINENO: result: $CC" >&5 2624echo "${ECHO_T}$CC" >&6; } 2625else 2626 { echo "$as_me:$LINENO: result: no" >&5 2627echo "${ECHO_T}no" >&6; } 2628fi 2629 2630 2631 test -n "$CC" && break 2632 done 2633fi 2634if test -z "$CC"; then 2635 ac_ct_CC=$CC 2636 for ac_prog in cl.exe 2637do 2638 # Extract the first word of "$ac_prog", so it can be a program name with args. 2639set dummy $ac_prog; ac_word=$2 2640{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 2644else 2645 if test -n "$ac_ct_CC"; then 2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2655 ac_cv_prog_ac_ct_CC="$ac_prog" 2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665ac_ct_CC=$ac_cv_prog_ac_ct_CC 2666if test -n "$ac_ct_CC"; then 2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2668echo "${ECHO_T}$ac_ct_CC" >&6; } 2669else 2670 { echo "$as_me:$LINENO: result: no" >&5 2671echo "${ECHO_T}no" >&6; } 2672fi 2673 2674 2675 test -n "$ac_ct_CC" && break 2676done 2677 2678 if test "x$ac_ct_CC" = x; then 2679 CC="" 2680 else 2681 case $cross_compiling:$ac_tool_warned in 2682yes:) 2683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2684whose name does not start with the host triplet. If you think this 2685configuration is useful to you, please write to autoconf@gnu.org." >&5 2686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2687whose name does not start with the host triplet. If you think this 2688configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2689ac_tool_warned=yes ;; 2690esac 2691 CC=$ac_ct_CC 2692 fi 2693fi 2694 2695fi 2696 2697 2698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2699See \`config.log' for more details." >&5 2700echo "$as_me: error: no acceptable C compiler found in \$PATH 2701See \`config.log' for more details." >&2;} 2702 { (exit 1); exit 1; }; } 2703 2704# Provide some information about the compiler. 2705echo "$as_me:$LINENO: checking for C compiler version" >&5 2706ac_compiler=`set X $ac_compile; echo $2` 2707{ (ac_try="$ac_compiler --version >&5" 2708case "(($ac_try" in 2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2710 *) ac_try_echo=$ac_try;; 2711esac 2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2713 (eval "$ac_compiler --version >&5") 2>&5 2714 ac_status=$? 2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); } 2717{ (ac_try="$ac_compiler -v >&5" 2718case "(($ac_try" in 2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2720 *) ac_try_echo=$ac_try;; 2721esac 2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2723 (eval "$ac_compiler -v >&5") 2>&5 2724 ac_status=$? 2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 (exit $ac_status); } 2727{ (ac_try="$ac_compiler -V >&5" 2728case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731esac 2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2733 (eval "$ac_compiler -V >&5") 2>&5 2734 ac_status=$? 2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2736 (exit $ac_status); } 2737 2738cat >conftest.$ac_ext <<_ACEOF 2739/* confdefs.h. */ 2740_ACEOF 2741cat confdefs.h >>conftest.$ac_ext 2742cat >>conftest.$ac_ext <<_ACEOF 2743/* end confdefs.h. */ 2744 2745int 2746main () 2747{ 2748 2749 ; 2750 return 0; 2751} 2752_ACEOF 2753ac_clean_files_save=$ac_clean_files 2754ac_clean_files="$ac_clean_files a.out a.exe b.out" 2755# Try to create an executable without -o first, disregard a.out. 2756# It will help us diagnose broken compilers, and finding out an intuition 2757# of exeext. 2758{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2759echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2760ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2761# 2762# List of possible output files, starting from the most likely. 2763# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2764# only as a last resort. b.out is created by i960 compilers. 2765ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2766# 2767# The IRIX 6 linker writes into existing files which may not be 2768# executable, retaining their permissions. Remove them first so a 2769# subsequent execution test works. 2770ac_rmfiles= 2771for ac_file in $ac_files 2772do 2773 case $ac_file in 2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2776 esac 2777done 2778rm -f $ac_rmfiles 2779 2780if { (ac_try="$ac_link_default" 2781case "(($ac_try" in 2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2783 *) ac_try_echo=$ac_try;; 2784esac 2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2786 (eval "$ac_link_default") 2>&5 2787 ac_status=$? 2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2789 (exit $ac_status); }; then 2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2792# in a Makefile. We should not override ac_cv_exeext if it was cached, 2793# so that the user can short-circuit this test for compilers unknown to 2794# Autoconf. 2795for ac_file in $ac_files '' 2796do 2797 test -f "$ac_file" || continue 2798 case $ac_file in 2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2800 ;; 2801 [ab].out ) 2802 # We found the default executable, but exeext='' is most 2803 # certainly right. 2804 break;; 2805 *.* ) 2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2807 then :; else 2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2809 fi 2810 # We set ac_cv_exeext here because the later test for it is not 2811 # safe: cross compilers may not add the suffix if given an `-o' 2812 # argument, so we may need to know it at that point already. 2813 # Even if this section looks crufty: it has the advantage of 2814 # actually working. 2815 break;; 2816 * ) 2817 break;; 2818 esac 2819done 2820test "$ac_cv_exeext" = no && ac_cv_exeext= 2821 2822else 2823 ac_file='' 2824fi 2825 2826{ echo "$as_me:$LINENO: result: $ac_file" >&5 2827echo "${ECHO_T}$ac_file" >&6; } 2828if test -z "$ac_file"; then 2829 echo "$as_me: failed program was:" >&5 2830sed 's/^/| /' conftest.$ac_ext >&5 2831 2832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2833See \`config.log' for more details." >&5 2834echo "$as_me: error: C compiler cannot create executables 2835See \`config.log' for more details." >&2;} 2836 { (exit 77); exit 77; }; } 2837fi 2838 2839ac_exeext=$ac_cv_exeext 2840 2841# Check that the compiler produces executables we can run. If not, either 2842# the compiler is broken, or we cross compile. 2843{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2844echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2845# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2846# If not cross compiling, check that we can run a simple program. 2847if test "$cross_compiling" != yes; then 2848 if { ac_try='./$ac_file' 2849 { (case "(($ac_try" in 2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851 *) ac_try_echo=$ac_try;; 2852esac 2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2854 (eval "$ac_try") 2>&5 2855 ac_status=$? 2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); }; }; then 2858 cross_compiling=no 2859 else 2860 if test "$cross_compiling" = maybe; then 2861 cross_compiling=yes 2862 else 2863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2864If you meant to cross compile, use \`--host'. 2865See \`config.log' for more details." >&5 2866echo "$as_me: error: cannot run C compiled programs. 2867If you meant to cross compile, use \`--host'. 2868See \`config.log' for more details." >&2;} 2869 { (exit 1); exit 1; }; } 2870 fi 2871 fi 2872fi 2873{ echo "$as_me:$LINENO: result: yes" >&5 2874echo "${ECHO_T}yes" >&6; } 2875 2876rm -f a.out a.exe conftest$ac_cv_exeext b.out 2877ac_clean_files=$ac_clean_files_save 2878# Check that the compiler produces executables we can run. If not, either 2879# the compiler is broken, or we cross compile. 2880{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2881echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2882{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2883echo "${ECHO_T}$cross_compiling" >&6; } 2884 2885{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2886echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2887if { (ac_try="$ac_link" 2888case "(($ac_try" in 2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2890 *) ac_try_echo=$ac_try;; 2891esac 2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2893 (eval "$ac_link") 2>&5 2894 ac_status=$? 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); }; then 2897 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2899# work properly (i.e., refer to `conftest.exe'), while it won't with 2900# `rm'. 2901for ac_file in conftest.exe conftest conftest.*; do 2902 test -f "$ac_file" || continue 2903 case $ac_file in 2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2906 break;; 2907 * ) break;; 2908 esac 2909done 2910else 2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2912See \`config.log' for more details." >&5 2913echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2914See \`config.log' for more details." >&2;} 2915 { (exit 1); exit 1; }; } 2916fi 2917 2918rm -f conftest$ac_cv_exeext 2919{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2920echo "${ECHO_T}$ac_cv_exeext" >&6; } 2921 2922rm -f conftest.$ac_ext 2923EXEEXT=$ac_cv_exeext 2924ac_exeext=$EXEEXT 2925{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2926echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2927if test "${ac_cv_objext+set}" = set; then 2928 echo $ECHO_N "(cached) $ECHO_C" >&6 2929else 2930 cat >conftest.$ac_ext <<_ACEOF 2931/* confdefs.h. */ 2932_ACEOF 2933cat confdefs.h >>conftest.$ac_ext 2934cat >>conftest.$ac_ext <<_ACEOF 2935/* end confdefs.h. */ 2936 2937int 2938main () 2939{ 2940 2941 ; 2942 return 0; 2943} 2944_ACEOF 2945rm -f conftest.o conftest.obj 2946if { (ac_try="$ac_compile" 2947case "(($ac_try" in 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949 *) ac_try_echo=$ac_try;; 2950esac 2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2952 (eval "$ac_compile") 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; then 2956 for ac_file in conftest.o conftest.obj conftest.*; do 2957 test -f "$ac_file" || continue; 2958 case $ac_file in 2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2961 break;; 2962 esac 2963done 2964else 2965 echo "$as_me: failed program was:" >&5 2966sed 's/^/| /' conftest.$ac_ext >&5 2967 2968{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2969See \`config.log' for more details." >&5 2970echo "$as_me: error: cannot compute suffix of object files: cannot compile 2971See \`config.log' for more details." >&2;} 2972 { (exit 1); exit 1; }; } 2973fi 2974 2975rm -f conftest.$ac_cv_objext conftest.$ac_ext 2976fi 2977{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2978echo "${ECHO_T}$ac_cv_objext" >&6; } 2979OBJEXT=$ac_cv_objext 2980ac_objext=$OBJEXT 2981{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2982echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2983if test "${ac_cv_c_compiler_gnu+set}" = set; then 2984 echo $ECHO_N "(cached) $ECHO_C" >&6 2985else 2986 cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992 2993int 2994main () 2995{ 2996#ifndef __GNUC__ 2997 choke me 2998#endif 2999 3000 ; 3001 return 0; 3002} 3003_ACEOF 3004rm -f conftest.$ac_objext 3005if { (ac_try="$ac_compile" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_compile") 2>conftest.er1 3012 ac_status=$? 3013 grep -v '^ *+' conftest.er1 >conftest.err 3014 rm -f conftest.er1 3015 cat conftest.err >&5 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); } && { 3018 test -z "$ac_c_werror_flag" || 3019 test ! -s conftest.err 3020 } && test -s conftest.$ac_objext; then 3021 ac_compiler_gnu=yes 3022else 3023 echo "$as_me: failed program was:" >&5 3024sed 's/^/| /' conftest.$ac_ext >&5 3025 3026 ac_compiler_gnu=no 3027fi 3028 3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3030ac_cv_c_compiler_gnu=$ac_compiler_gnu 3031 3032fi 3033{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3034echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3035GCC=`test $ac_compiler_gnu = yes && echo yes` 3036ac_test_CFLAGS=${CFLAGS+set} 3037ac_save_CFLAGS=$CFLAGS 3038{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3039echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3040if test "${ac_cv_prog_cc_g+set}" = set; then 3041 echo $ECHO_N "(cached) $ECHO_C" >&6 3042else 3043 ac_save_c_werror_flag=$ac_c_werror_flag 3044 ac_c_werror_flag=yes 3045 ac_cv_prog_cc_g=no 3046 CFLAGS="-g" 3047 cat >conftest.$ac_ext <<_ACEOF 3048/* confdefs.h. */ 3049_ACEOF 3050cat confdefs.h >>conftest.$ac_ext 3051cat >>conftest.$ac_ext <<_ACEOF 3052/* end confdefs.h. */ 3053 3054int 3055main () 3056{ 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062rm -f conftest.$ac_objext 3063if { (ac_try="$ac_compile" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3069 (eval "$ac_compile") 2>conftest.er1 3070 ac_status=$? 3071 grep -v '^ *+' conftest.er1 >conftest.err 3072 rm -f conftest.er1 3073 cat conftest.err >&5 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); } && { 3076 test -z "$ac_c_werror_flag" || 3077 test ! -s conftest.err 3078 } && test -s conftest.$ac_objext; then 3079 ac_cv_prog_cc_g=yes 3080else 3081 echo "$as_me: failed program was:" >&5 3082sed 's/^/| /' conftest.$ac_ext >&5 3083 3084 CFLAGS="" 3085 cat >conftest.$ac_ext <<_ACEOF 3086/* confdefs.h. */ 3087_ACEOF 3088cat confdefs.h >>conftest.$ac_ext 3089cat >>conftest.$ac_ext <<_ACEOF 3090/* end confdefs.h. */ 3091 3092int 3093main () 3094{ 3095 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100rm -f conftest.$ac_objext 3101if { (ac_try="$ac_compile" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3107 (eval "$ac_compile") 2>conftest.er1 3108 ac_status=$? 3109 grep -v '^ *+' conftest.er1 >conftest.err 3110 rm -f conftest.er1 3111 cat conftest.err >&5 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); } && { 3114 test -z "$ac_c_werror_flag" || 3115 test ! -s conftest.err 3116 } && test -s conftest.$ac_objext; then 3117 : 3118else 3119 echo "$as_me: failed program was:" >&5 3120sed 's/^/| /' conftest.$ac_ext >&5 3121 3122 ac_c_werror_flag=$ac_save_c_werror_flag 3123 CFLAGS="-g" 3124 cat >conftest.$ac_ext <<_ACEOF 3125/* confdefs.h. */ 3126_ACEOF 3127cat confdefs.h >>conftest.$ac_ext 3128cat >>conftest.$ac_ext <<_ACEOF 3129/* end confdefs.h. */ 3130 3131int 3132main () 3133{ 3134 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139rm -f conftest.$ac_objext 3140if { (ac_try="$ac_compile" 3141case "(($ac_try" in 3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3143 *) ac_try_echo=$ac_try;; 3144esac 3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3146 (eval "$ac_compile") 2>conftest.er1 3147 ac_status=$? 3148 grep -v '^ *+' conftest.er1 >conftest.err 3149 rm -f conftest.er1 3150 cat conftest.err >&5 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); } && { 3153 test -z "$ac_c_werror_flag" || 3154 test ! -s conftest.err 3155 } && test -s conftest.$ac_objext; then 3156 ac_cv_prog_cc_g=yes 3157else 3158 echo "$as_me: failed program was:" >&5 3159sed 's/^/| /' conftest.$ac_ext >&5 3160 3161 3162fi 3163 3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3165fi 3166 3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168fi 3169 3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3171 ac_c_werror_flag=$ac_save_c_werror_flag 3172fi 3173{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3174echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3175if test "$ac_test_CFLAGS" = set; then 3176 CFLAGS=$ac_save_CFLAGS 3177elif test $ac_cv_prog_cc_g = yes; then 3178 if test "$GCC" = yes; then 3179 CFLAGS="-g -O2" 3180 else 3181 CFLAGS="-g" 3182 fi 3183else 3184 if test "$GCC" = yes; then 3185 CFLAGS="-O2" 3186 else 3187 CFLAGS= 3188 fi 3189fi 3190{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3191echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3192if test "${ac_cv_prog_cc_c89+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 ac_cv_prog_cc_c89=no 3196ac_save_CC=$CC 3197cat >conftest.$ac_ext <<_ACEOF 3198/* confdefs.h. */ 3199_ACEOF 3200cat confdefs.h >>conftest.$ac_ext 3201cat >>conftest.$ac_ext <<_ACEOF 3202/* end confdefs.h. */ 3203#include <stdarg.h> 3204#include <stdio.h> 3205#include <sys/types.h> 3206#include <sys/stat.h> 3207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3208struct buf { int x; }; 3209FILE * (*rcsopen) (struct buf *, struct stat *, int); 3210static char *e (p, i) 3211 char **p; 3212 int i; 3213{ 3214 return p[i]; 3215} 3216static char *f (char * (*g) (char **, int), char **p, ...) 3217{ 3218 char *s; 3219 va_list v; 3220 va_start (v,p); 3221 s = g (p, va_arg (v,int)); 3222 va_end (v); 3223 return s; 3224} 3225 3226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3227 function prototypes and stuff, but not '\xHH' hex character constants. 3228 These don't provoke an error unfortunately, instead are silently treated 3229 as 'x'. The following induces an error, until -std is added to get 3230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3231 array size at least. It's necessary to write '\x00'==0 to get something 3232 that's true only with -std. */ 3233int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3234 3235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3236 inside strings and character constants. */ 3237#define FOO(x) 'x' 3238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3239 3240int test (int i, double x); 3241struct s1 {int (*f) (int a);}; 3242struct s2 {int (*f) (double a);}; 3243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3244int argc; 3245char **argv; 3246int 3247main () 3248{ 3249return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3256do 3257 CC="$ac_save_CC $ac_arg" 3258 rm -f conftest.$ac_objext 3259if { (ac_try="$ac_compile" 3260case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3265 (eval "$ac_compile") 2>conftest.er1 3266 ac_status=$? 3267 grep -v '^ *+' conftest.er1 >conftest.err 3268 rm -f conftest.er1 3269 cat conftest.err >&5 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } && { 3272 test -z "$ac_c_werror_flag" || 3273 test ! -s conftest.err 3274 } && test -s conftest.$ac_objext; then 3275 ac_cv_prog_cc_c89=$ac_arg 3276else 3277 echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280 3281fi 3282 3283rm -f core conftest.err conftest.$ac_objext 3284 test "x$ac_cv_prog_cc_c89" != "xno" && break 3285done 3286rm -f conftest.$ac_ext 3287CC=$ac_save_CC 3288 3289fi 3290# AC_CACHE_VAL 3291case "x$ac_cv_prog_cc_c89" in 3292 x) 3293 { echo "$as_me:$LINENO: result: none needed" >&5 3294echo "${ECHO_T}none needed" >&6; } ;; 3295 xno) 3296 { echo "$as_me:$LINENO: result: unsupported" >&5 3297echo "${ECHO_T}unsupported" >&6; } ;; 3298 *) 3299 CC="$CC $ac_cv_prog_cc_c89" 3300 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3301echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3302esac 3303 3304 3305ac_ext=c 3306ac_cpp='$CPP $CPPFLAGS' 3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3309ac_compiler_gnu=$ac_cv_c_compiler_gnu 3310DEPDIR="${am__leading_dot}deps" 3311 3312ac_config_commands="$ac_config_commands depfiles" 3313 3314 3315am_make=${MAKE-make} 3316cat > confinc << 'END' 3317am__doit: 3318 @echo done 3319.PHONY: am__doit 3320END 3321# If we don't find an include directive, just comment out the code. 3322{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3323echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3324am__include="#" 3325am__quote= 3326_am_result=none 3327# First try GNU make style include. 3328echo "include confinc" > confmf 3329# We grep out `Entering directory' and `Leaving directory' 3330# messages which can occur if `w' ends up in MAKEFLAGS. 3331# In particular we don't look at `^make:' because GNU make might 3332# be invoked under some other name (usually "gmake"), in which 3333# case it prints its new name instead of `make'. 3334if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3335 am__include=include 3336 am__quote= 3337 _am_result=GNU 3338fi 3339# Now try BSD make style include. 3340if test "$am__include" = "#"; then 3341 echo '.include "confinc"' > confmf 3342 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3343 am__include=.include 3344 am__quote="\"" 3345 _am_result=BSD 3346 fi 3347fi 3348 3349 3350{ echo "$as_me:$LINENO: result: $_am_result" >&5 3351echo "${ECHO_T}$_am_result" >&6; } 3352rm -f confinc confmf 3353 3354# Check whether --enable-dependency-tracking was given. 3355if test "${enable_dependency_tracking+set}" = set; then 3356 enableval=$enable_dependency_tracking; 3357fi 3358 3359if test "x$enable_dependency_tracking" != xno; then 3360 am_depcomp="$ac_aux_dir/depcomp" 3361 AMDEPBACKSLASH='\' 3362fi 3363 3364 3365if test "x$enable_dependency_tracking" != xno; then 3366 AMDEP_TRUE= 3367 AMDEP_FALSE='#' 3368else 3369 AMDEP_TRUE='#' 3370 AMDEP_FALSE= 3371fi 3372 3373 3374 3375 3376depcc="$CC" am_compiler_list= 3377 3378{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3379echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3380if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382else 3383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3384 # We make a subdir and do the tests there. Otherwise we can end up 3385 # making bogus files that we don't know about and never remove. For 3386 # instance it was reported that on HP-UX the gcc test will end up 3387 # making a dummy file named `D' -- because `-MD' means `put the output 3388 # in D'. 3389 mkdir conftest.dir 3390 # Copy depcomp to subdir because otherwise we won't find it if we're 3391 # using a relative directory. 3392 cp "$am_depcomp" conftest.dir 3393 cd conftest.dir 3394 # We will build objects and dependencies in a subdirectory because 3395 # it helps to detect inapplicable dependency modes. For instance 3396 # both Tru64's cc and ICC support -MD to output dependencies as a 3397 # side effect of compilation, but ICC will put the dependencies in 3398 # the current directory while Tru64 will put them in the object 3399 # directory. 3400 mkdir sub 3401 3402 am_cv_CC_dependencies_compiler_type=none 3403 if test "$am_compiler_list" = ""; then 3404 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3405 fi 3406 for depmode in $am_compiler_list; do 3407 # Setup a source with many dependencies, because some compilers 3408 # like to wrap large dependency lists on column 80 (with \), and 3409 # we should not choose a depcomp mode which is confused by this. 3410 # 3411 # We need to recreate these files for each test, as the compiler may 3412 # overwrite some of them when testing with obscure command lines. 3413 # This happens at least with the AIX C compiler. 3414 : > sub/conftest.c 3415 for i in 1 2 3 4 5 6; do 3416 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3417 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3418 # Solaris 8's {/usr,}/bin/sh. 3419 touch sub/conftst$i.h 3420 done 3421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3422 3423 case $depmode in 3424 nosideeffect) 3425 # after this tag, mechanisms are not by side-effect, so they'll 3426 # only be used when explicitly requested 3427 if test "x$enable_dependency_tracking" = xyes; then 3428 continue 3429 else 3430 break 3431 fi 3432 ;; 3433 none) break ;; 3434 esac 3435 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3436 # mode. It turns out that the SunPro C++ compiler does not properly 3437 # handle `-M -o', and we need to detect this. 3438 if depmode=$depmode \ 3439 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3441 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3442 >/dev/null 2>conftest.err && 3443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3444 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3446 # icc doesn't choke on unknown options, it will just issue warnings 3447 # or remarks (even with -Werror). So we grep stderr for any message 3448 # that says an option was ignored or not supported. 3449 # When given -MP, icc 7.0 and 7.1 complain thusly: 3450 # icc: Command line warning: ignoring option '-M'; no argument required 3451 # The diagnosis changed in icc 8.0: 3452 # icc: Command line remark: option '-MP' not supported 3453 if (grep 'ignoring option' conftest.err || 3454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3455 am_cv_CC_dependencies_compiler_type=$depmode 3456 break 3457 fi 3458 fi 3459 done 3460 3461 cd .. 3462 rm -rf conftest.dir 3463else 3464 am_cv_CC_dependencies_compiler_type=none 3465fi 3466 3467fi 3468{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3469echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3471 3472 3473 3474if 3475 test "x$enable_dependency_tracking" != xno \ 3476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3477 am__fastdepCC_TRUE= 3478 am__fastdepCC_FALSE='#' 3479else 3480 am__fastdepCC_TRUE='#' 3481 am__fastdepCC_FALSE= 3482fi 3483 3484 3485# Check whether --enable-shared was given. 3486if test "${enable_shared+set}" = set; then 3487 enableval=$enable_shared; p=${PACKAGE-default} 3488 case $enableval in 3489 yes) enable_shared=yes ;; 3490 no) enable_shared=no ;; 3491 *) 3492 enable_shared=no 3493 # Look at the argument we got. We use all the common list separators. 3494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3495 for pkg in $enableval; do 3496 IFS="$lt_save_ifs" 3497 if test "X$pkg" = "X$p"; then 3498 enable_shared=yes 3499 fi 3500 done 3501 IFS="$lt_save_ifs" 3502 ;; 3503 esac 3504else 3505 enable_shared=yes 3506fi 3507 3508 3509# Check whether --enable-static was given. 3510if test "${enable_static+set}" = set; then 3511 enableval=$enable_static; p=${PACKAGE-default} 3512 case $enableval in 3513 yes) enable_static=yes ;; 3514 no) enable_static=no ;; 3515 *) 3516 enable_static=no 3517 # Look at the argument we got. We use all the common list separators. 3518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3519 for pkg in $enableval; do 3520 IFS="$lt_save_ifs" 3521 if test "X$pkg" = "X$p"; then 3522 enable_static=yes 3523 fi 3524 done 3525 IFS="$lt_save_ifs" 3526 ;; 3527 esac 3528else 3529 enable_static=yes 3530fi 3531 3532 3533# Check whether --enable-fast-install was given. 3534if test "${enable_fast_install+set}" = set; then 3535 enableval=$enable_fast_install; p=${PACKAGE-default} 3536 case $enableval in 3537 yes) enable_fast_install=yes ;; 3538 no) enable_fast_install=no ;; 3539 *) 3540 enable_fast_install=no 3541 # Look at the argument we got. We use all the common list separators. 3542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3543 for pkg in $enableval; do 3544 IFS="$lt_save_ifs" 3545 if test "X$pkg" = "X$p"; then 3546 enable_fast_install=yes 3547 fi 3548 done 3549 IFS="$lt_save_ifs" 3550 ;; 3551 esac 3552else 3553 enable_fast_install=yes 3554fi 3555 3556 3557# Make sure we can run config.sub. 3558$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3559 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3560echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3561 { (exit 1); exit 1; }; } 3562 3563{ echo "$as_me:$LINENO: checking build system type" >&5 3564echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3565if test "${ac_cv_build+set}" = set; then 3566 echo $ECHO_N "(cached) $ECHO_C" >&6 3567else 3568 ac_build_alias=$build_alias 3569test "x$ac_build_alias" = x && 3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3571test "x$ac_build_alias" = x && 3572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3573echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3574 { (exit 1); exit 1; }; } 3575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3576 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3577echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3578 { (exit 1); exit 1; }; } 3579 3580fi 3581{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3582echo "${ECHO_T}$ac_cv_build" >&6; } 3583case $ac_cv_build in 3584*-*-*) ;; 3585*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3586echo "$as_me: error: invalid value of canonical build" >&2;} 3587 { (exit 1); exit 1; }; };; 3588esac 3589build=$ac_cv_build 3590ac_save_IFS=$IFS; IFS='-' 3591set x $ac_cv_build 3592shift 3593build_cpu=$1 3594build_vendor=$2 3595shift; shift 3596# Remember, the first character of IFS is used to create $*, 3597# except with old shells: 3598build_os=$* 3599IFS=$ac_save_IFS 3600case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3601 3602 3603{ echo "$as_me:$LINENO: checking host system type" >&5 3604echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3605if test "${ac_cv_host+set}" = set; then 3606 echo $ECHO_N "(cached) $ECHO_C" >&6 3607else 3608 if test "x$host_alias" = x; then 3609 ac_cv_host=$ac_cv_build 3610else 3611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3612 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3613echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3614 { (exit 1); exit 1; }; } 3615fi 3616 3617fi 3618{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3619echo "${ECHO_T}$ac_cv_host" >&6; } 3620case $ac_cv_host in 3621*-*-*) ;; 3622*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3623echo "$as_me: error: invalid value of canonical host" >&2;} 3624 { (exit 1); exit 1; }; };; 3625esac 3626host=$ac_cv_host 3627ac_save_IFS=$IFS; IFS='-' 3628set x $ac_cv_host 3629shift 3630host_cpu=$1 3631host_vendor=$2 3632shift; shift 3633# Remember, the first character of IFS is used to create $*, 3634# except with old shells: 3635host_os=$* 3636IFS=$ac_save_IFS 3637case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3638 3639 3640{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3641echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3642if test "${lt_cv_path_SED+set}" = set; then 3643 echo $ECHO_N "(cached) $ECHO_C" >&6 3644else 3645 # Loop through the user's path and test for sed and gsed. 3646# Then use that list of sed's as ones to test for truncation. 3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for lt_ac_prog in sed gsed; do 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3655 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3656 fi 3657 done 3658 done 3659done 3660IFS=$as_save_IFS 3661lt_ac_max=0 3662lt_ac_count=0 3663# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3664# along with /bin/sed that truncates output. 3665for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3666 test ! -f $lt_ac_sed && continue 3667 cat /dev/null > conftest.in 3668 lt_ac_count=0 3669 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3670 # Check for GNU sed and select it if it is found. 3671 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3672 lt_cv_path_SED=$lt_ac_sed 3673 break 3674 fi 3675 while true; do 3676 cat conftest.in conftest.in >conftest.tmp 3677 mv conftest.tmp conftest.in 3678 cp conftest.in conftest.nl 3679 echo >>conftest.nl 3680 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3681 cmp -s conftest.out conftest.nl || break 3682 # 10000 chars as input seems more than enough 3683 test $lt_ac_count -gt 10 && break 3684 lt_ac_count=`expr $lt_ac_count + 1` 3685 if test $lt_ac_count -gt $lt_ac_max; then 3686 lt_ac_max=$lt_ac_count 3687 lt_cv_path_SED=$lt_ac_sed 3688 fi 3689 done 3690done 3691 3692fi 3693 3694SED=$lt_cv_path_SED 3695 3696{ echo "$as_me:$LINENO: result: $SED" >&5 3697echo "${ECHO_T}$SED" >&6; } 3698 3699{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3700echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3701if test "${ac_cv_path_GREP+set}" = set; then 3702 echo $ECHO_N "(cached) $ECHO_C" >&6 3703else 3704 # Extract the first word of "grep ggrep" to use in msg output 3705if test -z "$GREP"; then 3706set dummy grep ggrep; ac_prog_name=$2 3707if test "${ac_cv_path_GREP+set}" = set; then 3708 echo $ECHO_N "(cached) $ECHO_C" >&6 3709else 3710 ac_path_GREP_found=false 3711# Loop through the user's path and test for each of PROGNAME-LIST 3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_prog in grep ggrep; do 3718 for ac_exec_ext in '' $ac_executable_extensions; do 3719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3720 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3721 # Check for GNU ac_path_GREP and select it if it is found. 3722 # Check for GNU $ac_path_GREP 3723case `"$ac_path_GREP" --version 2>&1` in 3724*GNU*) 3725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3726*) 3727 ac_count=0 3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3729 while : 3730 do 3731 cat "conftest.in" "conftest.in" >"conftest.tmp" 3732 mv "conftest.tmp" "conftest.in" 3733 cp "conftest.in" "conftest.nl" 3734 echo 'GREP' >> "conftest.nl" 3735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3737 ac_count=`expr $ac_count + 1` 3738 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3739 # Best one so far, save it but keep looking for a better one 3740 ac_cv_path_GREP="$ac_path_GREP" 3741 ac_path_GREP_max=$ac_count 3742 fi 3743 # 10*(2^10) chars as input seems more than enough 3744 test $ac_count -gt 10 && break 3745 done 3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3747esac 3748 3749 3750 $ac_path_GREP_found && break 3 3751 done 3752done 3753 3754done 3755IFS=$as_save_IFS 3756 3757 3758fi 3759 3760GREP="$ac_cv_path_GREP" 3761if test -z "$GREP"; then 3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3763echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3764 { (exit 1); exit 1; }; } 3765fi 3766 3767else 3768 ac_cv_path_GREP=$GREP 3769fi 3770 3771 3772fi 3773{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3774echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3775 GREP="$ac_cv_path_GREP" 3776 3777 3778{ echo "$as_me:$LINENO: checking for egrep" >&5 3779echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3780if test "${ac_cv_path_EGREP+set}" = set; then 3781 echo $ECHO_N "(cached) $ECHO_C" >&6 3782else 3783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3784 then ac_cv_path_EGREP="$GREP -E" 3785 else 3786 # Extract the first word of "egrep" to use in msg output 3787if test -z "$EGREP"; then 3788set dummy egrep; ac_prog_name=$2 3789if test "${ac_cv_path_EGREP+set}" = set; then 3790 echo $ECHO_N "(cached) $ECHO_C" >&6 3791else 3792 ac_path_EGREP_found=false 3793# Loop through the user's path and test for each of PROGNAME-LIST 3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3796do 3797 IFS=$as_save_IFS 3798 test -z "$as_dir" && as_dir=. 3799 for ac_prog in egrep; do 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3803 # Check for GNU ac_path_EGREP and select it if it is found. 3804 # Check for GNU $ac_path_EGREP 3805case `"$ac_path_EGREP" --version 2>&1` in 3806*GNU*) 3807 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3808*) 3809 ac_count=0 3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3811 while : 3812 do 3813 cat "conftest.in" "conftest.in" >"conftest.tmp" 3814 mv "conftest.tmp" "conftest.in" 3815 cp "conftest.in" "conftest.nl" 3816 echo 'EGREP' >> "conftest.nl" 3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3819 ac_count=`expr $ac_count + 1` 3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3821 # Best one so far, save it but keep looking for a better one 3822 ac_cv_path_EGREP="$ac_path_EGREP" 3823 ac_path_EGREP_max=$ac_count 3824 fi 3825 # 10*(2^10) chars as input seems more than enough 3826 test $ac_count -gt 10 && break 3827 done 3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3829esac 3830 3831 3832 $ac_path_EGREP_found && break 3 3833 done 3834done 3835 3836done 3837IFS=$as_save_IFS 3838 3839 3840fi 3841 3842EGREP="$ac_cv_path_EGREP" 3843if test -z "$EGREP"; then 3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3845echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3846 { (exit 1); exit 1; }; } 3847fi 3848 3849else 3850 ac_cv_path_EGREP=$EGREP 3851fi 3852 3853 3854 fi 3855fi 3856{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3857echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3858 EGREP="$ac_cv_path_EGREP" 3859 3860 3861 3862# Check whether --with-gnu-ld was given. 3863if test "${with_gnu_ld+set}" = set; then 3864 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3865else 3866 with_gnu_ld=no 3867fi 3868 3869ac_prog=ld 3870if test "$GCC" = yes; then 3871 # Check if gcc -print-prog-name=ld gives a path. 3872 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3873echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3874 case $host in 3875 *-*-mingw*) 3876 # gcc leaves a trailing carriage return which upsets mingw 3877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3878 *) 3879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3880 esac 3881 case $ac_prog in 3882 # Accept absolute paths. 3883 [\\/]* | ?:[\\/]*) 3884 re_direlt='/[^/][^/]*/\.\./' 3885 # Canonicalize the pathname of ld 3886 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3887 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3888 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3889 done 3890 test -z "$LD" && LD="$ac_prog" 3891 ;; 3892 "") 3893 # If it fails, then pretend we aren't using GCC. 3894 ac_prog=ld 3895 ;; 3896 *) 3897 # If it is relative, then search for the first ld in PATH. 3898 with_gnu_ld=unknown 3899 ;; 3900 esac 3901elif test "$with_gnu_ld" = yes; then 3902 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3903echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3904else 3905 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3906echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3907fi 3908if test "${lt_cv_path_LD+set}" = set; then 3909 echo $ECHO_N "(cached) $ECHO_C" >&6 3910else 3911 if test -z "$LD"; then 3912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3913 for ac_dir in $PATH; do 3914 IFS="$lt_save_ifs" 3915 test -z "$ac_dir" && ac_dir=. 3916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3917 lt_cv_path_LD="$ac_dir/$ac_prog" 3918 # Check to see if the program is GNU ld. I'd rather use --version, 3919 # but apparently some variants of GNU ld only accept -v. 3920 # Break only if it was the GNU/non-GNU ld that we prefer. 3921 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3922 *GNU* | *'with BFD'*) 3923 test "$with_gnu_ld" != no && break 3924 ;; 3925 *) 3926 test "$with_gnu_ld" != yes && break 3927 ;; 3928 esac 3929 fi 3930 done 3931 IFS="$lt_save_ifs" 3932else 3933 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3934fi 3935fi 3936 3937LD="$lt_cv_path_LD" 3938if test -n "$LD"; then 3939 { echo "$as_me:$LINENO: result: $LD" >&5 3940echo "${ECHO_T}$LD" >&6; } 3941else 3942 { echo "$as_me:$LINENO: result: no" >&5 3943echo "${ECHO_T}no" >&6; } 3944fi 3945test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3946echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3947 { (exit 1); exit 1; }; } 3948{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3949echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3950if test "${lt_cv_prog_gnu_ld+set}" = set; then 3951 echo $ECHO_N "(cached) $ECHO_C" >&6 3952else 3953 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3954case `$LD -v 2>&1 </dev/null` in 3955*GNU* | *'with BFD'*) 3956 lt_cv_prog_gnu_ld=yes 3957 ;; 3958*) 3959 lt_cv_prog_gnu_ld=no 3960 ;; 3961esac 3962fi 3963{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3964echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3965with_gnu_ld=$lt_cv_prog_gnu_ld 3966 3967 3968{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3969echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3970if test "${lt_cv_ld_reload_flag+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 lt_cv_ld_reload_flag='-r' 3974fi 3975{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3976echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3977reload_flag=$lt_cv_ld_reload_flag 3978case $reload_flag in 3979"" | " "*) ;; 3980*) reload_flag=" $reload_flag" ;; 3981esac 3982reload_cmds='$LD$reload_flag -o $output$reload_objs' 3983case $host_os in 3984 darwin*) 3985 if test "$GCC" = yes; then 3986 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3987 else 3988 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3989 fi 3990 ;; 3991esac 3992 3993{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3994echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 3995if test "${lt_cv_path_NM+set}" = set; then 3996 echo $ECHO_N "(cached) $ECHO_C" >&6 3997else 3998 if test -n "$NM"; then 3999 # Let the user override the test. 4000 lt_cv_path_NM="$NM" 4001else 4002 lt_nm_to_check="${ac_tool_prefix}nm" 4003 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4004 lt_nm_to_check="$lt_nm_to_check nm" 4005 fi 4006 for lt_tmp_nm in $lt_nm_to_check; do 4007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4008 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4009 IFS="$lt_save_ifs" 4010 test -z "$ac_dir" && ac_dir=. 4011 tmp_nm="$ac_dir/$lt_tmp_nm" 4012 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4013 # Check to see if the nm accepts a BSD-compat flag. 4014 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4015 # nm: unknown option "B" ignored 4016 # Tru64's nm complains that /dev/null is an invalid object file 4017 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4018 */dev/null* | *'Invalid file or object type'*) 4019 lt_cv_path_NM="$tmp_nm -B" 4020 break 4021 ;; 4022 *) 4023 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4024 */dev/null*) 4025 lt_cv_path_NM="$tmp_nm -p" 4026 break 4027 ;; 4028 *) 4029 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4030 continue # so that we can try to find one that supports BSD flags 4031 ;; 4032 esac 4033 ;; 4034 esac 4035 fi 4036 done 4037 IFS="$lt_save_ifs" 4038 done 4039 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4040fi 4041fi 4042{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4043echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4044NM="$lt_cv_path_NM" 4045 4046{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4047echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4048LN_S=$as_ln_s 4049if test "$LN_S" = "ln -s"; then 4050 { echo "$as_me:$LINENO: result: yes" >&5 4051echo "${ECHO_T}yes" >&6; } 4052else 4053 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4054echo "${ECHO_T}no, using $LN_S" >&6; } 4055fi 4056 4057{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4058echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4059if test "${lt_cv_deplibs_check_method+set}" = set; then 4060 echo $ECHO_N "(cached) $ECHO_C" >&6 4061else 4062 lt_cv_file_magic_cmd='$MAGIC_CMD' 4063lt_cv_file_magic_test_file= 4064lt_cv_deplibs_check_method='unknown' 4065# Need to set the preceding variable on all platforms that support 4066# interlibrary dependencies. 4067# 'none' -- dependencies not supported. 4068# `unknown' -- same as none, but documents that we really don't know. 4069# 'pass_all' -- all dependencies passed with no checks. 4070# 'test_compile' -- check by making test program. 4071# 'file_magic [[regex]]' -- check by looking for files in library path 4072# which responds to the $file_magic_cmd with a given extended regex. 4073# If you have `file' or equivalent on your system and you're not sure 4074# whether `pass_all' will *always* work, you probably want this one. 4075 4076case $host_os in 4077aix4* | aix5*) 4078 lt_cv_deplibs_check_method=pass_all 4079 ;; 4080 4081beos*) 4082 lt_cv_deplibs_check_method=pass_all 4083 ;; 4084 4085bsdi[45]*) 4086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4087 lt_cv_file_magic_cmd='/usr/bin/file -L' 4088 lt_cv_file_magic_test_file=/shlib/libc.so 4089 ;; 4090 4091cygwin*) 4092 # func_win32_libid is a shell function defined in ltmain.sh 4093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4094 lt_cv_file_magic_cmd='func_win32_libid' 4095 ;; 4096 4097mingw* | pw32*) 4098 # Base MSYS/MinGW do not provide the 'file' command needed by 4099 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4100 # unless we find 'file', for example because we are cross-compiling. 4101 if ( file / ) >/dev/null 2>&1; then 4102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4103 lt_cv_file_magic_cmd='func_win32_libid' 4104 else 4105 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4106 lt_cv_file_magic_cmd='$OBJDUMP -f' 4107 fi 4108 ;; 4109 4110darwin* | rhapsody*) 4111 lt_cv_deplibs_check_method=pass_all 4112 ;; 4113 4114freebsd* | dragonfly*) 4115 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4116 case $host_cpu in 4117 i*86 ) 4118 # Not sure whether the presence of OpenBSD here was a mistake. 4119 # Let's accept both of them until this is cleared up. 4120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4121 lt_cv_file_magic_cmd=/usr/bin/file 4122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4123 ;; 4124 esac 4125 else 4126 lt_cv_deplibs_check_method=pass_all 4127 fi 4128 ;; 4129 4130gnu*) 4131 lt_cv_deplibs_check_method=pass_all 4132 ;; 4133 4134hpux10.20* | hpux11*) 4135 lt_cv_file_magic_cmd=/usr/bin/file 4136 case $host_cpu in 4137 ia64*) 4138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4140 ;; 4141 hppa*64*) 4142 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]' 4143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4144 ;; 4145 *) 4146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4147 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4148 ;; 4149 esac 4150 ;; 4151 4152interix[3-9]*) 4153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4155 ;; 4156 4157irix5* | irix6* | nonstopux*) 4158 case $LD in 4159 *-32|*"-32 ") libmagic=32-bit;; 4160 *-n32|*"-n32 ") libmagic=N32;; 4161 *-64|*"-64 ") libmagic=64-bit;; 4162 *) libmagic=never-match;; 4163 esac 4164 lt_cv_deplibs_check_method=pass_all 4165 ;; 4166 4167# This must be Linux ELF. 4168linux* | k*bsd*-gnu) 4169 lt_cv_deplibs_check_method=pass_all 4170 ;; 4171 4172netbsd*) 4173 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4175 else 4176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4177 fi 4178 ;; 4179 4180newos6*) 4181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4182 lt_cv_file_magic_cmd=/usr/bin/file 4183 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4184 ;; 4185 4186nto-qnx*) 4187 lt_cv_deplibs_check_method=unknown 4188 ;; 4189 4190openbsd*) 4191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4193 else 4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4195 fi 4196 ;; 4197 4198osf3* | osf4* | osf5*) 4199 lt_cv_deplibs_check_method=pass_all 4200 ;; 4201 4202rdos*) 4203 lt_cv_deplibs_check_method=pass_all 4204 ;; 4205 4206solaris*) 4207 lt_cv_deplibs_check_method=pass_all 4208 ;; 4209 4210sysv4 | sysv4.3*) 4211 case $host_vendor in 4212 motorola) 4213 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]' 4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4215 ;; 4216 ncr) 4217 lt_cv_deplibs_check_method=pass_all 4218 ;; 4219 sequent) 4220 lt_cv_file_magic_cmd='/bin/file' 4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4222 ;; 4223 sni) 4224 lt_cv_file_magic_cmd='/bin/file' 4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4226 lt_cv_file_magic_test_file=/lib/libc.so 4227 ;; 4228 siemens) 4229 lt_cv_deplibs_check_method=pass_all 4230 ;; 4231 pc) 4232 lt_cv_deplibs_check_method=pass_all 4233 ;; 4234 esac 4235 ;; 4236 4237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4238 lt_cv_deplibs_check_method=pass_all 4239 ;; 4240esac 4241 4242fi 4243{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4244echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4245file_magic_cmd=$lt_cv_file_magic_cmd 4246deplibs_check_method=$lt_cv_deplibs_check_method 4247test -z "$deplibs_check_method" && deplibs_check_method=unknown 4248 4249 4250 4251 4252# If no C compiler was specified, use CC. 4253LTCC=${LTCC-"$CC"} 4254 4255# If no C compiler flags were specified, use CFLAGS. 4256LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4257 4258# Allow CC to be a program name with arguments. 4259compiler=$CC 4260 4261 4262# Check whether --enable-libtool-lock was given. 4263if test "${enable_libtool_lock+set}" = set; then 4264 enableval=$enable_libtool_lock; 4265fi 4266 4267test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4268 4269# Some flags need to be propagated to the compiler or linker for good 4270# libtool support. 4271case $host in 4272ia64-*-hpux*) 4273 # Find out which ABI we are using. 4274 echo 'int i;' > conftest.$ac_ext 4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4276 (eval $ac_compile) 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; then 4280 case `/usr/bin/file conftest.$ac_objext` in 4281 *ELF-32*) 4282 HPUX_IA64_MODE="32" 4283 ;; 4284 *ELF-64*) 4285 HPUX_IA64_MODE="64" 4286 ;; 4287 esac 4288 fi 4289 rm -rf conftest* 4290 ;; 4291*-*-irix6*) 4292 # Find out which ABI we are using. 4293 echo '#line 4293 "configure"' > conftest.$ac_ext 4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4295 (eval $ac_compile) 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); }; then 4299 if test "$lt_cv_prog_gnu_ld" = yes; then 4300 case `/usr/bin/file conftest.$ac_objext` in 4301 *32-bit*) 4302 LD="${LD-ld} -melf32bsmip" 4303 ;; 4304 *N32*) 4305 LD="${LD-ld} -melf32bmipn32" 4306 ;; 4307 *64-bit*) 4308 LD="${LD-ld} -melf64bmip" 4309 ;; 4310 esac 4311 else 4312 case `/usr/bin/file conftest.$ac_objext` in 4313 *32-bit*) 4314 LD="${LD-ld} -32" 4315 ;; 4316 *N32*) 4317 LD="${LD-ld} -n32" 4318 ;; 4319 *64-bit*) 4320 LD="${LD-ld} -64" 4321 ;; 4322 esac 4323 fi 4324 fi 4325 rm -rf conftest* 4326 ;; 4327 4328x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4329s390*-*linux*|sparc*-*linux*) 4330 # Find out which ABI we are using. 4331 echo 'int i;' > conftest.$ac_ext 4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4333 (eval $ac_compile) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); }; then 4337 case `/usr/bin/file conftest.o` in 4338 *32-bit*) 4339 case $host in 4340 x86_64-*kfreebsd*-gnu) 4341 LD="${LD-ld} -m elf_i386_fbsd" 4342 ;; 4343 x86_64-*linux*) 4344 LD="${LD-ld} -m elf_i386" 4345 ;; 4346 ppc64-*linux*|powerpc64-*linux*) 4347 LD="${LD-ld} -m elf32ppclinux" 4348 ;; 4349 s390x-*linux*) 4350 LD="${LD-ld} -m elf_s390" 4351 ;; 4352 sparc64-*linux*) 4353 LD="${LD-ld} -m elf32_sparc" 4354 ;; 4355 esac 4356 ;; 4357 *64-bit*) 4358 case $host in 4359 x86_64-*kfreebsd*-gnu) 4360 LD="${LD-ld} -m elf_x86_64_fbsd" 4361 ;; 4362 x86_64-*linux*) 4363 LD="${LD-ld} -m elf_x86_64" 4364 ;; 4365 ppc*-*linux*|powerpc*-*linux*) 4366 LD="${LD-ld} -m elf64ppc" 4367 ;; 4368 s390*-*linux*) 4369 LD="${LD-ld} -m elf64_s390" 4370 ;; 4371 sparc*-*linux*) 4372 LD="${LD-ld} -m elf64_sparc" 4373 ;; 4374 esac 4375 ;; 4376 esac 4377 fi 4378 rm -rf conftest* 4379 ;; 4380 4381*-*-sco3.2v5*) 4382 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4383 SAVE_CFLAGS="$CFLAGS" 4384 CFLAGS="$CFLAGS -belf" 4385 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4386echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4387if test "${lt_cv_cc_needs_belf+set}" = set; then 4388 echo $ECHO_N "(cached) $ECHO_C" >&6 4389else 4390 ac_ext=c 4391ac_cpp='$CPP $CPPFLAGS' 4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395 4396 cat >conftest.$ac_ext <<_ACEOF 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402 4403int 4404main () 4405{ 4406 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411rm -f conftest.$ac_objext conftest$ac_exeext 4412if { (ac_try="$ac_link" 4413case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416esac 4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4418 (eval "$ac_link") 2>conftest.er1 4419 ac_status=$? 4420 grep -v '^ *+' conftest.er1 >conftest.err 4421 rm -f conftest.er1 4422 cat conftest.err >&5 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } && { 4425 test -z "$ac_c_werror_flag" || 4426 test ! -s conftest.err 4427 } && test -s conftest$ac_exeext && 4428 $as_test_x conftest$ac_exeext; then 4429 lt_cv_cc_needs_belf=yes 4430else 4431 echo "$as_me: failed program was:" >&5 4432sed 's/^/| /' conftest.$ac_ext >&5 4433 4434 lt_cv_cc_needs_belf=no 4435fi 4436 4437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4438 conftest$ac_exeext conftest.$ac_ext 4439 ac_ext=c 4440ac_cpp='$CPP $CPPFLAGS' 4441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4443ac_compiler_gnu=$ac_cv_c_compiler_gnu 4444 4445fi 4446{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4447echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4448 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4449 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4450 CFLAGS="$SAVE_CFLAGS" 4451 fi 4452 ;; 4453sparc*-*solaris*) 4454 # Find out which ABI we are using. 4455 echo 'int i;' > conftest.$ac_ext 4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4457 (eval $ac_compile) 2>&5 4458 ac_status=$? 4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); }; then 4461 case `/usr/bin/file conftest.o` in 4462 *64-bit*) 4463 case $lt_cv_prog_gnu_ld in 4464 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4465 *) LD="${LD-ld} -64" ;; 4466 esac 4467 ;; 4468 esac 4469 fi 4470 rm -rf conftest* 4471 ;; 4472 4473 4474esac 4475 4476need_locks="$enable_libtool_lock" 4477 4478 4479ac_ext=c 4480ac_cpp='$CPP $CPPFLAGS' 4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4485echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4486# On Suns, sometimes $CPP names a directory. 4487if test -n "$CPP" && test -d "$CPP"; then 4488 CPP= 4489fi 4490if test -z "$CPP"; then 4491 if test "${ac_cv_prog_CPP+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 # Double quotes because CPP needs to be expanded 4495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4496 do 4497 ac_preproc_ok=false 4498for ac_c_preproc_warn_flag in '' yes 4499do 4500 # Use a header file that comes with gcc, so configuring glibc 4501 # with a fresh cross-compiler works. 4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4503 # <limits.h> exists even on freestanding compilers. 4504 # On the NeXT, cc -E runs the code through the compiler's parser, 4505 # not just through cpp. "Syntax error" is here to catch this case. 4506 cat >conftest.$ac_ext <<_ACEOF 4507/* confdefs.h. */ 4508_ACEOF 4509cat confdefs.h >>conftest.$ac_ext 4510cat >>conftest.$ac_ext <<_ACEOF 4511/* end confdefs.h. */ 4512#ifdef __STDC__ 4513# include <limits.h> 4514#else 4515# include <assert.h> 4516#endif 4517 Syntax error 4518_ACEOF 4519if { (ac_try="$ac_cpp conftest.$ac_ext" 4520case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523esac 4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4526 ac_status=$? 4527 grep -v '^ *+' conftest.er1 >conftest.err 4528 rm -f conftest.er1 4529 cat conftest.err >&5 4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4531 (exit $ac_status); } >/dev/null && { 4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4533 test ! -s conftest.err 4534 }; then 4535 : 4536else 4537 echo "$as_me: failed program was:" >&5 4538sed 's/^/| /' conftest.$ac_ext >&5 4539 4540 # Broken: fails on valid input. 4541continue 4542fi 4543 4544rm -f conftest.err conftest.$ac_ext 4545 4546 # OK, works on sane cases. Now check whether nonexistent headers 4547 # can be detected and how. 4548 cat >conftest.$ac_ext <<_ACEOF 4549/* confdefs.h. */ 4550_ACEOF 4551cat confdefs.h >>conftest.$ac_ext 4552cat >>conftest.$ac_ext <<_ACEOF 4553/* end confdefs.h. */ 4554#include <ac_nonexistent.h> 4555_ACEOF 4556if { (ac_try="$ac_cpp conftest.$ac_ext" 4557case "(($ac_try" in 4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4559 *) ac_try_echo=$ac_try;; 4560esac 4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4563 ac_status=$? 4564 grep -v '^ *+' conftest.er1 >conftest.err 4565 rm -f conftest.er1 4566 cat conftest.err >&5 4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4568 (exit $ac_status); } >/dev/null && { 4569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4570 test ! -s conftest.err 4571 }; then 4572 # Broken: success on invalid input. 4573continue 4574else 4575 echo "$as_me: failed program was:" >&5 4576sed 's/^/| /' conftest.$ac_ext >&5 4577 4578 # Passes both tests. 4579ac_preproc_ok=: 4580break 4581fi 4582 4583rm -f conftest.err conftest.$ac_ext 4584 4585done 4586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4587rm -f conftest.err conftest.$ac_ext 4588if $ac_preproc_ok; then 4589 break 4590fi 4591 4592 done 4593 ac_cv_prog_CPP=$CPP 4594 4595fi 4596 CPP=$ac_cv_prog_CPP 4597else 4598 ac_cv_prog_CPP=$CPP 4599fi 4600{ echo "$as_me:$LINENO: result: $CPP" >&5 4601echo "${ECHO_T}$CPP" >&6; } 4602ac_preproc_ok=false 4603for ac_c_preproc_warn_flag in '' yes 4604do 4605 # Use a header file that comes with gcc, so configuring glibc 4606 # with a fresh cross-compiler works. 4607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4608 # <limits.h> exists even on freestanding compilers. 4609 # On the NeXT, cc -E runs the code through the compiler's parser, 4610 # not just through cpp. "Syntax error" is here to catch this case. 4611 cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617#ifdef __STDC__ 4618# include <limits.h> 4619#else 4620# include <assert.h> 4621#endif 4622 Syntax error 4623_ACEOF 4624if { (ac_try="$ac_cpp conftest.$ac_ext" 4625case "(($ac_try" in 4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4627 *) ac_try_echo=$ac_try;; 4628esac 4629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4631 ac_status=$? 4632 grep -v '^ *+' conftest.er1 >conftest.err 4633 rm -f conftest.er1 4634 cat conftest.err >&5 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); } >/dev/null && { 4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4638 test ! -s conftest.err 4639 }; then 4640 : 4641else 4642 echo "$as_me: failed program was:" >&5 4643sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 # Broken: fails on valid input. 4646continue 4647fi 4648 4649rm -f conftest.err conftest.$ac_ext 4650 4651 # OK, works on sane cases. Now check whether nonexistent headers 4652 # can be detected and how. 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659#include <ac_nonexistent.h> 4660_ACEOF 4661if { (ac_try="$ac_cpp conftest.$ac_ext" 4662case "(($ac_try" in 4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4664 *) ac_try_echo=$ac_try;; 4665esac 4666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4668 ac_status=$? 4669 grep -v '^ *+' conftest.er1 >conftest.err 4670 rm -f conftest.er1 4671 cat conftest.err >&5 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } >/dev/null && { 4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4675 test ! -s conftest.err 4676 }; then 4677 # Broken: success on invalid input. 4678continue 4679else 4680 echo "$as_me: failed program was:" >&5 4681sed 's/^/| /' conftest.$ac_ext >&5 4682 4683 # Passes both tests. 4684ac_preproc_ok=: 4685break 4686fi 4687 4688rm -f conftest.err conftest.$ac_ext 4689 4690done 4691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4692rm -f conftest.err conftest.$ac_ext 4693if $ac_preproc_ok; then 4694 : 4695else 4696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4697See \`config.log' for more details." >&5 4698echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4699See \`config.log' for more details." >&2;} 4700 { (exit 1); exit 1; }; } 4701fi 4702 4703ac_ext=c 4704ac_cpp='$CPP $CPPFLAGS' 4705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4707ac_compiler_gnu=$ac_cv_c_compiler_gnu 4708 4709 4710{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4711echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4712if test "${ac_cv_header_stdc+set}" = set; then 4713 echo $ECHO_N "(cached) $ECHO_C" >&6 4714else 4715 cat >conftest.$ac_ext <<_ACEOF 4716/* confdefs.h. */ 4717_ACEOF 4718cat confdefs.h >>conftest.$ac_ext 4719cat >>conftest.$ac_ext <<_ACEOF 4720/* end confdefs.h. */ 4721#include <stdlib.h> 4722#include <stdarg.h> 4723#include <string.h> 4724#include <float.h> 4725 4726int 4727main () 4728{ 4729 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734rm -f conftest.$ac_objext 4735if { (ac_try="$ac_compile" 4736case "(($ac_try" in 4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4738 *) ac_try_echo=$ac_try;; 4739esac 4740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4741 (eval "$ac_compile") 2>conftest.er1 4742 ac_status=$? 4743 grep -v '^ *+' conftest.er1 >conftest.err 4744 rm -f conftest.er1 4745 cat conftest.err >&5 4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4747 (exit $ac_status); } && { 4748 test -z "$ac_c_werror_flag" || 4749 test ! -s conftest.err 4750 } && test -s conftest.$ac_objext; then 4751 ac_cv_header_stdc=yes 4752else 4753 echo "$as_me: failed program was:" >&5 4754sed 's/^/| /' conftest.$ac_ext >&5 4755 4756 ac_cv_header_stdc=no 4757fi 4758 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760 4761if test $ac_cv_header_stdc = yes; then 4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4763 cat >conftest.$ac_ext <<_ACEOF 4764/* confdefs.h. */ 4765_ACEOF 4766cat confdefs.h >>conftest.$ac_ext 4767cat >>conftest.$ac_ext <<_ACEOF 4768/* end confdefs.h. */ 4769#include <string.h> 4770 4771_ACEOF 4772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4773 $EGREP "memchr" >/dev/null 2>&1; then 4774 : 4775else 4776 ac_cv_header_stdc=no 4777fi 4778rm -f conftest* 4779 4780fi 4781 4782if test $ac_cv_header_stdc = yes; then 4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4784 cat >conftest.$ac_ext <<_ACEOF 4785/* confdefs.h. */ 4786_ACEOF 4787cat confdefs.h >>conftest.$ac_ext 4788cat >>conftest.$ac_ext <<_ACEOF 4789/* end confdefs.h. */ 4790#include <stdlib.h> 4791 4792_ACEOF 4793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4794 $EGREP "free" >/dev/null 2>&1; then 4795 : 4796else 4797 ac_cv_header_stdc=no 4798fi 4799rm -f conftest* 4800 4801fi 4802 4803if test $ac_cv_header_stdc = yes; then 4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4805 if test "$cross_compiling" = yes; then 4806 : 4807else 4808 cat >conftest.$ac_ext <<_ACEOF 4809/* confdefs.h. */ 4810_ACEOF 4811cat confdefs.h >>conftest.$ac_ext 4812cat >>conftest.$ac_ext <<_ACEOF 4813/* end confdefs.h. */ 4814#include <ctype.h> 4815#include <stdlib.h> 4816#if ((' ' & 0x0FF) == 0x020) 4817# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4818# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4819#else 4820# define ISLOWER(c) \ 4821 (('a' <= (c) && (c) <= 'i') \ 4822 || ('j' <= (c) && (c) <= 'r') \ 4823 || ('s' <= (c) && (c) <= 'z')) 4824# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4825#endif 4826 4827#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4828int 4829main () 4830{ 4831 int i; 4832 for (i = 0; i < 256; i++) 4833 if (XOR (islower (i), ISLOWER (i)) 4834 || toupper (i) != TOUPPER (i)) 4835 return 2; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest$ac_exeext 4840if { (ac_try="$ac_link" 4841case "(($ac_try" in 4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4843 *) ac_try_echo=$ac_try;; 4844esac 4845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4846 (eval "$ac_link") 2>&5 4847 ac_status=$? 4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4850 { (case "(($ac_try" in 4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4852 *) ac_try_echo=$ac_try;; 4853esac 4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4855 (eval "$ac_try") 2>&5 4856 ac_status=$? 4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4858 (exit $ac_status); }; }; then 4859 : 4860else 4861 echo "$as_me: program exited with status $ac_status" >&5 4862echo "$as_me: failed program was:" >&5 4863sed 's/^/| /' conftest.$ac_ext >&5 4864 4865( exit $ac_status ) 4866ac_cv_header_stdc=no 4867fi 4868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4869fi 4870 4871 4872fi 4873fi 4874{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4875echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4876if test $ac_cv_header_stdc = yes; then 4877 4878cat >>confdefs.h <<\_ACEOF 4879#define STDC_HEADERS 1 4880_ACEOF 4881 4882fi 4883 4884# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4895 inttypes.h stdint.h unistd.h 4896do 4897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4898{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4901 echo $ECHO_N "(cached) $ECHO_C" >&6 4902else 4903 cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909$ac_includes_default 4910 4911#include <$ac_header> 4912_ACEOF 4913rm -f conftest.$ac_objext 4914if { (ac_try="$ac_compile" 4915case "(($ac_try" in 4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4917 *) ac_try_echo=$ac_try;; 4918esac 4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4920 (eval "$ac_compile") 2>conftest.er1 4921 ac_status=$? 4922 grep -v '^ *+' conftest.er1 >conftest.err 4923 rm -f conftest.er1 4924 cat conftest.err >&5 4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4926 (exit $ac_status); } && { 4927 test -z "$ac_c_werror_flag" || 4928 test ! -s conftest.err 4929 } && test -s conftest.$ac_objext; then 4930 eval "$as_ac_Header=yes" 4931else 4932 echo "$as_me: failed program was:" >&5 4933sed 's/^/| /' conftest.$ac_ext >&5 4934 4935 eval "$as_ac_Header=no" 4936fi 4937 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940ac_res=`eval echo '${'$as_ac_Header'}'` 4941 { echo "$as_me:$LINENO: result: $ac_res" >&5 4942echo "${ECHO_T}$ac_res" >&6; } 4943if test `eval echo '${'$as_ac_Header'}'` = yes; then 4944 cat >>confdefs.h <<_ACEOF 4945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4946_ACEOF 4947 4948fi 4949 4950done 4951 4952 4953 4954for ac_header in dlfcn.h 4955do 4956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4958 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4961 echo $ECHO_N "(cached) $ECHO_C" >&6 4962fi 4963ac_res=`eval echo '${'$as_ac_Header'}'` 4964 { echo "$as_me:$LINENO: result: $ac_res" >&5 4965echo "${ECHO_T}$ac_res" >&6; } 4966else 4967 # Is the header compilable? 4968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4970cat >conftest.$ac_ext <<_ACEOF 4971/* confdefs.h. */ 4972_ACEOF 4973cat confdefs.h >>conftest.$ac_ext 4974cat >>conftest.$ac_ext <<_ACEOF 4975/* end confdefs.h. */ 4976$ac_includes_default 4977#include <$ac_header> 4978_ACEOF 4979rm -f conftest.$ac_objext 4980if { (ac_try="$ac_compile" 4981case "(($ac_try" in 4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4983 *) ac_try_echo=$ac_try;; 4984esac 4985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4986 (eval "$ac_compile") 2>conftest.er1 4987 ac_status=$? 4988 grep -v '^ *+' conftest.er1 >conftest.err 4989 rm -f conftest.er1 4990 cat conftest.err >&5 4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4992 (exit $ac_status); } && { 4993 test -z "$ac_c_werror_flag" || 4994 test ! -s conftest.err 4995 } && test -s conftest.$ac_objext; then 4996 ac_header_compiler=yes 4997else 4998 echo "$as_me: failed program was:" >&5 4999sed 's/^/| /' conftest.$ac_ext >&5 5000 5001 ac_header_compiler=no 5002fi 5003 5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5006echo "${ECHO_T}$ac_header_compiler" >&6; } 5007 5008# Is the header present? 5009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5011cat >conftest.$ac_ext <<_ACEOF 5012/* confdefs.h. */ 5013_ACEOF 5014cat confdefs.h >>conftest.$ac_ext 5015cat >>conftest.$ac_ext <<_ACEOF 5016/* end confdefs.h. */ 5017#include <$ac_header> 5018_ACEOF 5019if { (ac_try="$ac_cpp conftest.$ac_ext" 5020case "(($ac_try" in 5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5022 *) ac_try_echo=$ac_try;; 5023esac 5024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5026 ac_status=$? 5027 grep -v '^ *+' conftest.er1 >conftest.err 5028 rm -f conftest.er1 5029 cat conftest.err >&5 5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5031 (exit $ac_status); } >/dev/null && { 5032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5033 test ! -s conftest.err 5034 }; then 5035 ac_header_preproc=yes 5036else 5037 echo "$as_me: failed program was:" >&5 5038sed 's/^/| /' conftest.$ac_ext >&5 5039 5040 ac_header_preproc=no 5041fi 5042 5043rm -f conftest.err conftest.$ac_ext 5044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5045echo "${ECHO_T}$ac_header_preproc" >&6; } 5046 5047# So? What about this header? 5048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5049 yes:no: ) 5050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5054 ac_header_preproc=yes 5055 ;; 5056 no:yes:* ) 5057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5069 5070 ;; 5071esac 5072{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5075 echo $ECHO_N "(cached) $ECHO_C" >&6 5076else 5077 eval "$as_ac_Header=\$ac_header_preproc" 5078fi 5079ac_res=`eval echo '${'$as_ac_Header'}'` 5080 { echo "$as_me:$LINENO: result: $ac_res" >&5 5081echo "${ECHO_T}$ac_res" >&6; } 5082 5083fi 5084if test `eval echo '${'$as_ac_Header'}'` = yes; then 5085 cat >>confdefs.h <<_ACEOF 5086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5087_ACEOF 5088 5089fi 5090 5091done 5092 5093ac_ext=cpp 5094ac_cpp='$CXXCPP $CPPFLAGS' 5095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5098if test -z "$CXX"; then 5099 if test -n "$CCC"; then 5100 CXX=$CCC 5101 else 5102 if test -n "$ac_tool_prefix"; then 5103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5104 do 5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5106set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5107{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5109if test "${ac_cv_prog_CXX+set}" = set; then 5110 echo $ECHO_N "(cached) $ECHO_C" >&6 5111else 5112 if test -n "$CXX"; then 5113 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5122 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132CXX=$ac_cv_prog_CXX 5133if test -n "$CXX"; then 5134 { echo "$as_me:$LINENO: result: $CXX" >&5 5135echo "${ECHO_T}$CXX" >&6; } 5136else 5137 { echo "$as_me:$LINENO: result: no" >&5 5138echo "${ECHO_T}no" >&6; } 5139fi 5140 5141 5142 test -n "$CXX" && break 5143 done 5144fi 5145if test -z "$CXX"; then 5146 ac_ct_CXX=$CXX 5147 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5148do 5149 # Extract the first word of "$ac_prog", so it can be a program name with args. 5150set dummy $ac_prog; ac_word=$2 5151{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5153if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5154 echo $ECHO_N "(cached) $ECHO_C" >&6 5155else 5156 if test -n "$ac_ct_CXX"; then 5157 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5158else 5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5160for as_dir in $PATH 5161do 5162 IFS=$as_save_IFS 5163 test -z "$as_dir" && as_dir=. 5164 for ac_exec_ext in '' $ac_executable_extensions; do 5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5166 ac_cv_prog_ac_ct_CXX="$ac_prog" 5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5168 break 2 5169 fi 5170done 5171done 5172IFS=$as_save_IFS 5173 5174fi 5175fi 5176ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5177if test -n "$ac_ct_CXX"; then 5178 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5179echo "${ECHO_T}$ac_ct_CXX" >&6; } 5180else 5181 { echo "$as_me:$LINENO: result: no" >&5 5182echo "${ECHO_T}no" >&6; } 5183fi 5184 5185 5186 test -n "$ac_ct_CXX" && break 5187done 5188 5189 if test "x$ac_ct_CXX" = x; then 5190 CXX="g++" 5191 else 5192 case $cross_compiling:$ac_tool_warned in 5193yes:) 5194{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5195whose name does not start with the host triplet. If you think this 5196configuration is useful to you, please write to autoconf@gnu.org." >&5 5197echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5198whose name does not start with the host triplet. If you think this 5199configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5200ac_tool_warned=yes ;; 5201esac 5202 CXX=$ac_ct_CXX 5203 fi 5204fi 5205 5206 fi 5207fi 5208# Provide some information about the compiler. 5209echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5210ac_compiler=`set X $ac_compile; echo $2` 5211{ (ac_try="$ac_compiler --version >&5" 5212case "(($ac_try" in 5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5214 *) ac_try_echo=$ac_try;; 5215esac 5216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5217 (eval "$ac_compiler --version >&5") 2>&5 5218 ac_status=$? 5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5220 (exit $ac_status); } 5221{ (ac_try="$ac_compiler -v >&5" 5222case "(($ac_try" in 5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5224 *) ac_try_echo=$ac_try;; 5225esac 5226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5227 (eval "$ac_compiler -v >&5") 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); } 5231{ (ac_try="$ac_compiler -V >&5" 5232case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5237 (eval "$ac_compiler -V >&5") 2>&5 5238 ac_status=$? 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } 5241 5242{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5243echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5244if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5245 echo $ECHO_N "(cached) $ECHO_C" >&6 5246else 5247 cat >conftest.$ac_ext <<_ACEOF 5248/* confdefs.h. */ 5249_ACEOF 5250cat confdefs.h >>conftest.$ac_ext 5251cat >>conftest.$ac_ext <<_ACEOF 5252/* end confdefs.h. */ 5253 5254int 5255main () 5256{ 5257#ifndef __GNUC__ 5258 choke me 5259#endif 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265rm -f conftest.$ac_objext 5266if { (ac_try="$ac_compile" 5267case "(($ac_try" in 5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5269 *) ac_try_echo=$ac_try;; 5270esac 5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5272 (eval "$ac_compile") 2>conftest.er1 5273 ac_status=$? 5274 grep -v '^ *+' conftest.er1 >conftest.err 5275 rm -f conftest.er1 5276 cat conftest.err >&5 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); } && { 5279 test -z "$ac_cxx_werror_flag" || 5280 test ! -s conftest.err 5281 } && test -s conftest.$ac_objext; then 5282 ac_compiler_gnu=yes 5283else 5284 echo "$as_me: failed program was:" >&5 5285sed 's/^/| /' conftest.$ac_ext >&5 5286 5287 ac_compiler_gnu=no 5288fi 5289 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5292 5293fi 5294{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5295echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5296GXX=`test $ac_compiler_gnu = yes && echo yes` 5297ac_test_CXXFLAGS=${CXXFLAGS+set} 5298ac_save_CXXFLAGS=$CXXFLAGS 5299{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5300echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5301if test "${ac_cv_prog_cxx_g+set}" = set; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303else 5304 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5305 ac_cxx_werror_flag=yes 5306 ac_cv_prog_cxx_g=no 5307 CXXFLAGS="-g" 5308 cat >conftest.$ac_ext <<_ACEOF 5309/* confdefs.h. */ 5310_ACEOF 5311cat confdefs.h >>conftest.$ac_ext 5312cat >>conftest.$ac_ext <<_ACEOF 5313/* end confdefs.h. */ 5314 5315int 5316main () 5317{ 5318 5319 ; 5320 return 0; 5321} 5322_ACEOF 5323rm -f conftest.$ac_objext 5324if { (ac_try="$ac_compile" 5325case "(($ac_try" in 5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5327 *) ac_try_echo=$ac_try;; 5328esac 5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5330 (eval "$ac_compile") 2>conftest.er1 5331 ac_status=$? 5332 grep -v '^ *+' conftest.er1 >conftest.err 5333 rm -f conftest.er1 5334 cat conftest.err >&5 5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5336 (exit $ac_status); } && { 5337 test -z "$ac_cxx_werror_flag" || 5338 test ! -s conftest.err 5339 } && test -s conftest.$ac_objext; then 5340 ac_cv_prog_cxx_g=yes 5341else 5342 echo "$as_me: failed program was:" >&5 5343sed 's/^/| /' conftest.$ac_ext >&5 5344 5345 CXXFLAGS="" 5346 cat >conftest.$ac_ext <<_ACEOF 5347/* confdefs.h. */ 5348_ACEOF 5349cat confdefs.h >>conftest.$ac_ext 5350cat >>conftest.$ac_ext <<_ACEOF 5351/* end confdefs.h. */ 5352 5353int 5354main () 5355{ 5356 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361rm -f conftest.$ac_objext 5362if { (ac_try="$ac_compile" 5363case "(($ac_try" in 5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5365 *) ac_try_echo=$ac_try;; 5366esac 5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5368 (eval "$ac_compile") 2>conftest.er1 5369 ac_status=$? 5370 grep -v '^ *+' conftest.er1 >conftest.err 5371 rm -f conftest.er1 5372 cat conftest.err >&5 5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5374 (exit $ac_status); } && { 5375 test -z "$ac_cxx_werror_flag" || 5376 test ! -s conftest.err 5377 } && test -s conftest.$ac_objext; then 5378 : 5379else 5380 echo "$as_me: failed program was:" >&5 5381sed 's/^/| /' conftest.$ac_ext >&5 5382 5383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5384 CXXFLAGS="-g" 5385 cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391 5392int 5393main () 5394{ 5395 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400rm -f conftest.$ac_objext 5401if { (ac_try="$ac_compile" 5402case "(($ac_try" in 5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5404 *) ac_try_echo=$ac_try;; 5405esac 5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5407 (eval "$ac_compile") 2>conftest.er1 5408 ac_status=$? 5409 grep -v '^ *+' conftest.er1 >conftest.err 5410 rm -f conftest.er1 5411 cat conftest.err >&5 5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5413 (exit $ac_status); } && { 5414 test -z "$ac_cxx_werror_flag" || 5415 test ! -s conftest.err 5416 } && test -s conftest.$ac_objext; then 5417 ac_cv_prog_cxx_g=yes 5418else 5419 echo "$as_me: failed program was:" >&5 5420sed 's/^/| /' conftest.$ac_ext >&5 5421 5422 5423fi 5424 5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5426fi 5427 5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5429fi 5430 5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5432 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5433fi 5434{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5435echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5436if test "$ac_test_CXXFLAGS" = set; then 5437 CXXFLAGS=$ac_save_CXXFLAGS 5438elif test $ac_cv_prog_cxx_g = yes; then 5439 if test "$GXX" = yes; then 5440 CXXFLAGS="-g -O2" 5441 else 5442 CXXFLAGS="-g" 5443 fi 5444else 5445 if test "$GXX" = yes; then 5446 CXXFLAGS="-O2" 5447 else 5448 CXXFLAGS= 5449 fi 5450fi 5451ac_ext=cpp 5452ac_cpp='$CXXCPP $CPPFLAGS' 5453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5456 5457depcc="$CXX" am_compiler_list= 5458 5459{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5460echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5461if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5462 echo $ECHO_N "(cached) $ECHO_C" >&6 5463else 5464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5465 # We make a subdir and do the tests there. Otherwise we can end up 5466 # making bogus files that we don't know about and never remove. For 5467 # instance it was reported that on HP-UX the gcc test will end up 5468 # making a dummy file named `D' -- because `-MD' means `put the output 5469 # in D'. 5470 mkdir conftest.dir 5471 # Copy depcomp to subdir because otherwise we won't find it if we're 5472 # using a relative directory. 5473 cp "$am_depcomp" conftest.dir 5474 cd conftest.dir 5475 # We will build objects and dependencies in a subdirectory because 5476 # it helps to detect inapplicable dependency modes. For instance 5477 # both Tru64's cc and ICC support -MD to output dependencies as a 5478 # side effect of compilation, but ICC will put the dependencies in 5479 # the current directory while Tru64 will put them in the object 5480 # directory. 5481 mkdir sub 5482 5483 am_cv_CXX_dependencies_compiler_type=none 5484 if test "$am_compiler_list" = ""; then 5485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5486 fi 5487 for depmode in $am_compiler_list; do 5488 # Setup a source with many dependencies, because some compilers 5489 # like to wrap large dependency lists on column 80 (with \), and 5490 # we should not choose a depcomp mode which is confused by this. 5491 # 5492 # We need to recreate these files for each test, as the compiler may 5493 # overwrite some of them when testing with obscure command lines. 5494 # This happens at least with the AIX C compiler. 5495 : > sub/conftest.c 5496 for i in 1 2 3 4 5 6; do 5497 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5499 # Solaris 8's {/usr,}/bin/sh. 5500 touch sub/conftst$i.h 5501 done 5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5503 5504 case $depmode in 5505 nosideeffect) 5506 # after this tag, mechanisms are not by side-effect, so they'll 5507 # only be used when explicitly requested 5508 if test "x$enable_dependency_tracking" = xyes; then 5509 continue 5510 else 5511 break 5512 fi 5513 ;; 5514 none) break ;; 5515 esac 5516 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5517 # mode. It turns out that the SunPro C++ compiler does not properly 5518 # handle `-M -o', and we need to detect this. 5519 if depmode=$depmode \ 5520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5523 >/dev/null 2>conftest.err && 5524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5525 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5527 # icc doesn't choke on unknown options, it will just issue warnings 5528 # or remarks (even with -Werror). So we grep stderr for any message 5529 # that says an option was ignored or not supported. 5530 # When given -MP, icc 7.0 and 7.1 complain thusly: 5531 # icc: Command line warning: ignoring option '-M'; no argument required 5532 # The diagnosis changed in icc 8.0: 5533 # icc: Command line remark: option '-MP' not supported 5534 if (grep 'ignoring option' conftest.err || 5535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5536 am_cv_CXX_dependencies_compiler_type=$depmode 5537 break 5538 fi 5539 fi 5540 done 5541 5542 cd .. 5543 rm -rf conftest.dir 5544else 5545 am_cv_CXX_dependencies_compiler_type=none 5546fi 5547 5548fi 5549{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5550echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5551CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5552 5553 5554 5555if 5556 test "x$enable_dependency_tracking" != xno \ 5557 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5558 am__fastdepCXX_TRUE= 5559 am__fastdepCXX_FALSE='#' 5560else 5561 am__fastdepCXX_TRUE='#' 5562 am__fastdepCXX_FALSE= 5563fi 5564 5565 5566 5567 5568if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5570 (test "X$CXX" != "Xg++"))) ; then 5571 ac_ext=cpp 5572ac_cpp='$CXXCPP $CPPFLAGS' 5573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5576{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5577echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5578if test -z "$CXXCPP"; then 5579 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5580 echo $ECHO_N "(cached) $ECHO_C" >&6 5581else 5582 # Double quotes because CXXCPP needs to be expanded 5583 for CXXCPP in "$CXX -E" "/lib/cpp" 5584 do 5585 ac_preproc_ok=false 5586for ac_cxx_preproc_warn_flag in '' yes 5587do 5588 # Use a header file that comes with gcc, so configuring glibc 5589 # with a fresh cross-compiler works. 5590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5591 # <limits.h> exists even on freestanding compilers. 5592 # On the NeXT, cc -E runs the code through the compiler's parser, 5593 # not just through cpp. "Syntax error" is here to catch this case. 5594 cat >conftest.$ac_ext <<_ACEOF 5595/* confdefs.h. */ 5596_ACEOF 5597cat confdefs.h >>conftest.$ac_ext 5598cat >>conftest.$ac_ext <<_ACEOF 5599/* end confdefs.h. */ 5600#ifdef __STDC__ 5601# include <limits.h> 5602#else 5603# include <assert.h> 5604#endif 5605 Syntax error 5606_ACEOF 5607if { (ac_try="$ac_cpp conftest.$ac_ext" 5608case "(($ac_try" in 5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5610 *) ac_try_echo=$ac_try;; 5611esac 5612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5614 ac_status=$? 5615 grep -v '^ *+' conftest.er1 >conftest.err 5616 rm -f conftest.er1 5617 cat conftest.err >&5 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); } >/dev/null && { 5620 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5621 test ! -s conftest.err 5622 }; then 5623 : 5624else 5625 echo "$as_me: failed program was:" >&5 5626sed 's/^/| /' conftest.$ac_ext >&5 5627 5628 # Broken: fails on valid input. 5629continue 5630fi 5631 5632rm -f conftest.err conftest.$ac_ext 5633 5634 # OK, works on sane cases. Now check whether nonexistent headers 5635 # can be detected and how. 5636 cat >conftest.$ac_ext <<_ACEOF 5637/* confdefs.h. */ 5638_ACEOF 5639cat confdefs.h >>conftest.$ac_ext 5640cat >>conftest.$ac_ext <<_ACEOF 5641/* end confdefs.h. */ 5642#include <ac_nonexistent.h> 5643_ACEOF 5644if { (ac_try="$ac_cpp conftest.$ac_ext" 5645case "(($ac_try" in 5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5647 *) ac_try_echo=$ac_try;; 5648esac 5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5651 ac_status=$? 5652 grep -v '^ *+' conftest.er1 >conftest.err 5653 rm -f conftest.er1 5654 cat conftest.err >&5 5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5656 (exit $ac_status); } >/dev/null && { 5657 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5658 test ! -s conftest.err 5659 }; then 5660 # Broken: success on invalid input. 5661continue 5662else 5663 echo "$as_me: failed program was:" >&5 5664sed 's/^/| /' conftest.$ac_ext >&5 5665 5666 # Passes both tests. 5667ac_preproc_ok=: 5668break 5669fi 5670 5671rm -f conftest.err conftest.$ac_ext 5672 5673done 5674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5675rm -f conftest.err conftest.$ac_ext 5676if $ac_preproc_ok; then 5677 break 5678fi 5679 5680 done 5681 ac_cv_prog_CXXCPP=$CXXCPP 5682 5683fi 5684 CXXCPP=$ac_cv_prog_CXXCPP 5685else 5686 ac_cv_prog_CXXCPP=$CXXCPP 5687fi 5688{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5689echo "${ECHO_T}$CXXCPP" >&6; } 5690ac_preproc_ok=false 5691for ac_cxx_preproc_warn_flag in '' yes 5692do 5693 # Use a header file that comes with gcc, so configuring glibc 5694 # with a fresh cross-compiler works. 5695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5696 # <limits.h> exists even on freestanding compilers. 5697 # On the NeXT, cc -E runs the code through the compiler's parser, 5698 # not just through cpp. "Syntax error" is here to catch this case. 5699 cat >conftest.$ac_ext <<_ACEOF 5700/* confdefs.h. */ 5701_ACEOF 5702cat confdefs.h >>conftest.$ac_ext 5703cat >>conftest.$ac_ext <<_ACEOF 5704/* end confdefs.h. */ 5705#ifdef __STDC__ 5706# include <limits.h> 5707#else 5708# include <assert.h> 5709#endif 5710 Syntax error 5711_ACEOF 5712if { (ac_try="$ac_cpp conftest.$ac_ext" 5713case "(($ac_try" in 5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5715 *) ac_try_echo=$ac_try;; 5716esac 5717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5719 ac_status=$? 5720 grep -v '^ *+' conftest.er1 >conftest.err 5721 rm -f conftest.er1 5722 cat conftest.err >&5 5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); } >/dev/null && { 5725 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5726 test ! -s conftest.err 5727 }; then 5728 : 5729else 5730 echo "$as_me: failed program was:" >&5 5731sed 's/^/| /' conftest.$ac_ext >&5 5732 5733 # Broken: fails on valid input. 5734continue 5735fi 5736 5737rm -f conftest.err conftest.$ac_ext 5738 5739 # OK, works on sane cases. Now check whether nonexistent headers 5740 # can be detected and how. 5741 cat >conftest.$ac_ext <<_ACEOF 5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ 5747#include <ac_nonexistent.h> 5748_ACEOF 5749if { (ac_try="$ac_cpp conftest.$ac_ext" 5750case "(($ac_try" in 5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5752 *) ac_try_echo=$ac_try;; 5753esac 5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5756 ac_status=$? 5757 grep -v '^ *+' conftest.er1 >conftest.err 5758 rm -f conftest.er1 5759 cat conftest.err >&5 5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5761 (exit $ac_status); } >/dev/null && { 5762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5763 test ! -s conftest.err 5764 }; then 5765 # Broken: success on invalid input. 5766continue 5767else 5768 echo "$as_me: failed program was:" >&5 5769sed 's/^/| /' conftest.$ac_ext >&5 5770 5771 # Passes both tests. 5772ac_preproc_ok=: 5773break 5774fi 5775 5776rm -f conftest.err conftest.$ac_ext 5777 5778done 5779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5780rm -f conftest.err conftest.$ac_ext 5781if $ac_preproc_ok; then 5782 : 5783else 5784 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5785See \`config.log' for more details." >&5 5786echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5787See \`config.log' for more details." >&2;} 5788 { (exit 1); exit 1; }; } 5789fi 5790 5791ac_ext=cpp 5792ac_cpp='$CXXCPP $CPPFLAGS' 5793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5796 5797fi 5798 5799 5800ac_ext=f 5801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5803ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5804if test -n "$ac_tool_prefix"; then 5805 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 5806 do 5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5811if test "${ac_cv_prog_F77+set}" = set; then 5812 echo $ECHO_N "(cached) $ECHO_C" >&6 5813else 5814 if test -n "$F77"; then 5815 ac_cv_prog_F77="$F77" # Let the user override the test. 5816else 5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818for as_dir in $PATH 5819do 5820 IFS=$as_save_IFS 5821 test -z "$as_dir" && as_dir=. 5822 for ac_exec_ext in '' $ac_executable_extensions; do 5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5824 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 break 2 5827 fi 5828done 5829done 5830IFS=$as_save_IFS 5831 5832fi 5833fi 5834F77=$ac_cv_prog_F77 5835if test -n "$F77"; then 5836 { echo "$as_me:$LINENO: result: $F77" >&5 5837echo "${ECHO_T}$F77" >&6; } 5838else 5839 { echo "$as_me:$LINENO: result: no" >&5 5840echo "${ECHO_T}no" >&6; } 5841fi 5842 5843 5844 test -n "$F77" && break 5845 done 5846fi 5847if test -z "$F77"; then 5848 ac_ct_F77=$F77 5849 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 5850do 5851 # Extract the first word of "$ac_prog", so it can be a program name with args. 5852set dummy $ac_prog; ac_word=$2 5853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5855if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5856 echo $ECHO_N "(cached) $ECHO_C" >&6 5857else 5858 if test -n "$ac_ct_F77"; then 5859 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5860else 5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862for as_dir in $PATH 5863do 5864 IFS=$as_save_IFS 5865 test -z "$as_dir" && as_dir=. 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5868 ac_cv_prog_ac_ct_F77="$ac_prog" 5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873done 5874IFS=$as_save_IFS 5875 5876fi 5877fi 5878ac_ct_F77=$ac_cv_prog_ac_ct_F77 5879if test -n "$ac_ct_F77"; then 5880 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5881echo "${ECHO_T}$ac_ct_F77" >&6; } 5882else 5883 { echo "$as_me:$LINENO: result: no" >&5 5884echo "${ECHO_T}no" >&6; } 5885fi 5886 5887 5888 test -n "$ac_ct_F77" && break 5889done 5890 5891 if test "x$ac_ct_F77" = x; then 5892 F77="" 5893 else 5894 case $cross_compiling:$ac_tool_warned in 5895yes:) 5896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5897whose name does not start with the host triplet. If you think this 5898configuration is useful to you, please write to autoconf@gnu.org." >&5 5899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5900whose name does not start with the host triplet. If you think this 5901configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5902ac_tool_warned=yes ;; 5903esac 5904 F77=$ac_ct_F77 5905 fi 5906fi 5907 5908 5909# Provide some information about the compiler. 5910echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5911ac_compiler=`set X $ac_compile; echo $2` 5912{ (ac_try="$ac_compiler --version >&5" 5913case "(($ac_try" in 5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5915 *) ac_try_echo=$ac_try;; 5916esac 5917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5918 (eval "$ac_compiler --version >&5") 2>&5 5919 ac_status=$? 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); } 5922{ (ac_try="$ac_compiler -v >&5" 5923case "(($ac_try" in 5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5925 *) ac_try_echo=$ac_try;; 5926esac 5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5928 (eval "$ac_compiler -v >&5") 2>&5 5929 ac_status=$? 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); } 5932{ (ac_try="$ac_compiler -V >&5" 5933case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5938 (eval "$ac_compiler -V >&5") 2>&5 5939 ac_status=$? 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); } 5942rm -f a.out 5943 5944# If we don't use `.F' as extension, the preprocessor is not run on the 5945# input file. (Note that this only needs to work for GNU compilers.) 5946ac_save_ext=$ac_ext 5947ac_ext=F 5948{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5949echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5950if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 cat >conftest.$ac_ext <<_ACEOF 5954 program main 5955#ifndef __GNUC__ 5956 choke me 5957#endif 5958 5959 end 5960_ACEOF 5961rm -f conftest.$ac_objext 5962if { (ac_try="$ac_compile" 5963case "(($ac_try" in 5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5965 *) ac_try_echo=$ac_try;; 5966esac 5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5968 (eval "$ac_compile") 2>conftest.er1 5969 ac_status=$? 5970 grep -v '^ *+' conftest.er1 >conftest.err 5971 rm -f conftest.er1 5972 cat conftest.err >&5 5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5974 (exit $ac_status); } && { 5975 test -z "$ac_f77_werror_flag" || 5976 test ! -s conftest.err 5977 } && test -s conftest.$ac_objext; then 5978 ac_compiler_gnu=yes 5979else 5980 echo "$as_me: failed program was:" >&5 5981sed 's/^/| /' conftest.$ac_ext >&5 5982 5983 ac_compiler_gnu=no 5984fi 5985 5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5987ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5988 5989fi 5990{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5991echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5992ac_ext=$ac_save_ext 5993ac_test_FFLAGS=${FFLAGS+set} 5994ac_save_FFLAGS=$FFLAGS 5995FFLAGS= 5996{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5997echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5998if test "${ac_cv_prog_f77_g+set}" = set; then 5999 echo $ECHO_N "(cached) $ECHO_C" >&6 6000else 6001 FFLAGS=-g 6002cat >conftest.$ac_ext <<_ACEOF 6003 program main 6004 6005 end 6006_ACEOF 6007rm -f conftest.$ac_objext 6008if { (ac_try="$ac_compile" 6009case "(($ac_try" in 6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6011 *) ac_try_echo=$ac_try;; 6012esac 6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6014 (eval "$ac_compile") 2>conftest.er1 6015 ac_status=$? 6016 grep -v '^ *+' conftest.er1 >conftest.err 6017 rm -f conftest.er1 6018 cat conftest.err >&5 6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6020 (exit $ac_status); } && { 6021 test -z "$ac_f77_werror_flag" || 6022 test ! -s conftest.err 6023 } && test -s conftest.$ac_objext; then 6024 ac_cv_prog_f77_g=yes 6025else 6026 echo "$as_me: failed program was:" >&5 6027sed 's/^/| /' conftest.$ac_ext >&5 6028 6029 ac_cv_prog_f77_g=no 6030fi 6031 6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6033 6034fi 6035{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6036echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6037if test "$ac_test_FFLAGS" = set; then 6038 FFLAGS=$ac_save_FFLAGS 6039elif test $ac_cv_prog_f77_g = yes; then 6040 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6041 FFLAGS="-g -O2" 6042 else 6043 FFLAGS="-g" 6044 fi 6045else 6046 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6047 FFLAGS="-O2" 6048 else 6049 FFLAGS= 6050 fi 6051fi 6052 6053G77=`test $ac_compiler_gnu = yes && echo yes` 6054ac_ext=c 6055ac_cpp='$CPP $CPPFLAGS' 6056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6058ac_compiler_gnu=$ac_cv_c_compiler_gnu 6059 6060 6061 6062# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6063 6064# find the maximum length of command line arguments 6065{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6066echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6067if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 i=0 6071 teststring="ABCD" 6072 6073 case $build_os in 6074 msdosdjgpp*) 6075 # On DJGPP, this test can blow up pretty badly due to problems in libc 6076 # (any single argument exceeding 2000 bytes causes a buffer overrun 6077 # during glob expansion). Even if it were fixed, the result of this 6078 # check would be larger than it should be. 6079 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6080 ;; 6081 6082 gnu*) 6083 # Under GNU Hurd, this test is not required because there is 6084 # no limit to the length of command line arguments. 6085 # Libtool will interpret -1 as no limit whatsoever 6086 lt_cv_sys_max_cmd_len=-1; 6087 ;; 6088 6089 cygwin* | mingw*) 6090 # On Win9x/ME, this test blows up -- it succeeds, but takes 6091 # about 5 minutes as the teststring grows exponentially. 6092 # Worse, since 9x/ME are not pre-emptively multitasking, 6093 # you end up with a "frozen" computer, even though with patience 6094 # the test eventually succeeds (with a max line length of 256k). 6095 # Instead, let's just punt: use the minimum linelength reported by 6096 # all of the supported platforms: 8192 (on NT/2K/XP). 6097 lt_cv_sys_max_cmd_len=8192; 6098 ;; 6099 6100 amigaos*) 6101 # On AmigaOS with pdksh, this test takes hours, literally. 6102 # So we just punt and use a minimum line length of 8192. 6103 lt_cv_sys_max_cmd_len=8192; 6104 ;; 6105 6106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6107 # This has been around since 386BSD, at least. Likely further. 6108 if test -x /sbin/sysctl; then 6109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6110 elif test -x /usr/sbin/sysctl; then 6111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6112 else 6113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6114 fi 6115 # And add a safety zone 6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6118 ;; 6119 6120 interix*) 6121 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6122 lt_cv_sys_max_cmd_len=196608 6123 ;; 6124 6125 osf*) 6126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6128 # nice to cause kernel panics so lets avoid the loop below. 6129 # First set a reasonable default. 6130 lt_cv_sys_max_cmd_len=16384 6131 # 6132 if test -x /sbin/sysconfig; then 6133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6134 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6135 esac 6136 fi 6137 ;; 6138 sco3.2v5*) 6139 lt_cv_sys_max_cmd_len=102400 6140 ;; 6141 sysv5* | sco5v6* | sysv4.2uw2*) 6142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6143 if test -n "$kargmax"; then 6144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6145 else 6146 lt_cv_sys_max_cmd_len=32768 6147 fi 6148 ;; 6149 *) 6150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6151 if test -n "$lt_cv_sys_max_cmd_len"; then 6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6154 else 6155 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6156 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6157 = "XX$teststring") >/dev/null 2>&1 && 6158 new_result=`expr "X$teststring" : ".*" 2>&1` && 6159 lt_cv_sys_max_cmd_len=$new_result && 6160 test $i != 17 # 1/2 MB should be enough 6161 do 6162 i=`expr $i + 1` 6163 teststring=$teststring$teststring 6164 done 6165 teststring= 6166 # Add a significant safety factor because C++ compilers can tack on massive 6167 # amounts of additional arguments before passing them to the linker. 6168 # It appears as though 1/2 is a usable value. 6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6170 fi 6171 ;; 6172 esac 6173 6174fi 6175 6176if test -n $lt_cv_sys_max_cmd_len ; then 6177 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6178echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6179else 6180 { echo "$as_me:$LINENO: result: none" >&5 6181echo "${ECHO_T}none" >&6; } 6182fi 6183 6184 6185 6186 6187 6188# Check for command to grab the raw symbol name followed by C symbol from nm. 6189{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6190echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6191if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6192 echo $ECHO_N "(cached) $ECHO_C" >&6 6193else 6194 6195# These are sane defaults that work on at least a few old systems. 6196# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6197 6198# Character class describing NM global symbol codes. 6199symcode='[BCDEGRST]' 6200 6201# Regexp to match symbols that can be accessed directly from C. 6202sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6203 6204# Transform an extracted symbol line into a proper C declaration 6205lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6206 6207# Transform an extracted symbol line into symbol name and symbol address 6208lt_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'" 6209 6210# Define system-specific variables. 6211case $host_os in 6212aix*) 6213 symcode='[BCDT]' 6214 ;; 6215cygwin* | mingw* | pw32*) 6216 symcode='[ABCDGISTW]' 6217 ;; 6218hpux*) # Its linker distinguishes data from code symbols 6219 if test "$host_cpu" = ia64; then 6220 symcode='[ABCDEGRST]' 6221 fi 6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6223 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'" 6224 ;; 6225linux* | k*bsd*-gnu) 6226 if test "$host_cpu" = ia64; then 6227 symcode='[ABCDGIRSTW]' 6228 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6229 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'" 6230 fi 6231 ;; 6232irix* | nonstopux*) 6233 symcode='[BCDEGRST]' 6234 ;; 6235osf*) 6236 symcode='[BCDEGQRST]' 6237 ;; 6238solaris*) 6239 symcode='[BDRT]' 6240 ;; 6241sco3.2v5*) 6242 symcode='[DT]' 6243 ;; 6244sysv4.2uw2*) 6245 symcode='[DT]' 6246 ;; 6247sysv5* | sco5v6* | unixware* | OpenUNIX*) 6248 symcode='[ABDT]' 6249 ;; 6250sysv4) 6251 symcode='[DFNSTU]' 6252 ;; 6253esac 6254 6255# Handle CRLF in mingw tool chain 6256opt_cr= 6257case $build_os in 6258mingw*) 6259 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6260 ;; 6261esac 6262 6263# If we're using GNU nm, then use its standard symbol codes. 6264case `$NM -V 2>&1` in 6265*GNU* | *'with BFD'*) 6266 symcode='[ABCDGIRSTW]' ;; 6267esac 6268 6269# Try without a prefix undercore, then with it. 6270for ac_symprfx in "" "_"; do 6271 6272 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6273 symxfrm="\\1 $ac_symprfx\\2 \\2" 6274 6275 # Write the raw and C identifiers. 6276 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6277 6278 # Check to see that the pipe works correctly. 6279 pipe_works=no 6280 6281 rm -f conftest* 6282 cat > conftest.$ac_ext <<EOF 6283#ifdef __cplusplus 6284extern "C" { 6285#endif 6286char nm_test_var; 6287void nm_test_func(){} 6288#ifdef __cplusplus 6289} 6290#endif 6291int main(){nm_test_var='a';nm_test_func();return(0);} 6292EOF 6293 6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6295 (eval $ac_compile) 2>&5 6296 ac_status=$? 6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); }; then 6299 # Now try to grab the symbols. 6300 nlist=conftest.nm 6301 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6302 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6303 ac_status=$? 6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6305 (exit $ac_status); } && test -s "$nlist"; then 6306 # Try sorting and uniquifying the output. 6307 if sort "$nlist" | uniq > "$nlist"T; then 6308 mv -f "$nlist"T "$nlist" 6309 else 6310 rm -f "$nlist"T 6311 fi 6312 6313 # Make sure that we snagged all the symbols we need. 6314 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6315 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6316 cat <<EOF > conftest.$ac_ext 6317#ifdef __cplusplus 6318extern "C" { 6319#endif 6320 6321EOF 6322 # Now generate the symbol file. 6323 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6324 6325 cat <<EOF >> conftest.$ac_ext 6326#if defined (__STDC__) && __STDC__ 6327# define lt_ptr_t void * 6328#else 6329# define lt_ptr_t char * 6330# define const 6331#endif 6332 6333/* The mapping between symbol names and symbols. */ 6334const struct { 6335 const char *name; 6336 lt_ptr_t address; 6337} 6338lt_preloaded_symbols[] = 6339{ 6340EOF 6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6342 cat <<\EOF >> conftest.$ac_ext 6343 {0, (lt_ptr_t) 0} 6344}; 6345 6346#ifdef __cplusplus 6347} 6348#endif 6349EOF 6350 # Now try linking the two files. 6351 mv conftest.$ac_objext conftstm.$ac_objext 6352 lt_save_LIBS="$LIBS" 6353 lt_save_CFLAGS="$CFLAGS" 6354 LIBS="conftstm.$ac_objext" 6355 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6357 (eval $ac_link) 2>&5 6358 ac_status=$? 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6360 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6361 pipe_works=yes 6362 fi 6363 LIBS="$lt_save_LIBS" 6364 CFLAGS="$lt_save_CFLAGS" 6365 else 6366 echo "cannot find nm_test_func in $nlist" >&5 6367 fi 6368 else 6369 echo "cannot find nm_test_var in $nlist" >&5 6370 fi 6371 else 6372 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6373 fi 6374 else 6375 echo "$progname: failed program was:" >&5 6376 cat conftest.$ac_ext >&5 6377 fi 6378 rm -f conftest* conftst* 6379 6380 # Do not use the global_symbol_pipe unless it works. 6381 if test "$pipe_works" = yes; then 6382 break 6383 else 6384 lt_cv_sys_global_symbol_pipe= 6385 fi 6386done 6387 6388fi 6389 6390if test -z "$lt_cv_sys_global_symbol_pipe"; then 6391 lt_cv_sys_global_symbol_to_cdecl= 6392fi 6393if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6394 { echo "$as_me:$LINENO: result: failed" >&5 6395echo "${ECHO_T}failed" >&6; } 6396else 6397 { echo "$as_me:$LINENO: result: ok" >&5 6398echo "${ECHO_T}ok" >&6; } 6399fi 6400 6401{ echo "$as_me:$LINENO: checking for objdir" >&5 6402echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6403if test "${lt_cv_objdir+set}" = set; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405else 6406 rm -f .libs 2>/dev/null 6407mkdir .libs 2>/dev/null 6408if test -d .libs; then 6409 lt_cv_objdir=.libs 6410else 6411 # MS-DOS does not allow filenames that begin with a dot. 6412 lt_cv_objdir=_libs 6413fi 6414rmdir .libs 2>/dev/null 6415fi 6416{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6417echo "${ECHO_T}$lt_cv_objdir" >&6; } 6418objdir=$lt_cv_objdir 6419 6420 6421 6422 6423 6424case $host_os in 6425aix3*) 6426 # AIX sometimes has problems with the GCC collect2 program. For some 6427 # reason, if we set the COLLECT_NAMES environment variable, the problems 6428 # vanish in a puff of smoke. 6429 if test "X${COLLECT_NAMES+set}" != Xset; then 6430 COLLECT_NAMES= 6431 export COLLECT_NAMES 6432 fi 6433 ;; 6434esac 6435 6436# Sed substitution that helps us do robust quoting. It backslashifies 6437# metacharacters that are still active within double-quoted strings. 6438Xsed='sed -e 1s/^X//' 6439sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6440 6441# Same as above, but do not quote variable references. 6442double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6443 6444# Sed substitution to delay expansion of an escaped shell variable in a 6445# double_quote_subst'ed string. 6446delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6447 6448# Sed substitution to avoid accidental globbing in evaled expressions 6449no_glob_subst='s/\*/\\\*/g' 6450 6451# Constants: 6452rm="rm -f" 6453 6454# Global variables: 6455default_ofile=libtool 6456can_build_shared=yes 6457 6458# All known linkers require a `.a' archive for static linking (except MSVC, 6459# which needs '.lib'). 6460libext=a 6461ltmain="$ac_aux_dir/ltmain.sh" 6462ofile="$default_ofile" 6463with_gnu_ld="$lt_cv_prog_gnu_ld" 6464 6465if test -n "$ac_tool_prefix"; then 6466 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6467set dummy ${ac_tool_prefix}ar; ac_word=$2 6468{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6470if test "${ac_cv_prog_AR+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 if test -n "$AR"; then 6474 ac_cv_prog_AR="$AR" # Let the user override the test. 6475else 6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6477for as_dir in $PATH 6478do 6479 IFS=$as_save_IFS 6480 test -z "$as_dir" && as_dir=. 6481 for ac_exec_ext in '' $ac_executable_extensions; do 6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6483 ac_cv_prog_AR="${ac_tool_prefix}ar" 6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6485 break 2 6486 fi 6487done 6488done 6489IFS=$as_save_IFS 6490 6491fi 6492fi 6493AR=$ac_cv_prog_AR 6494if test -n "$AR"; then 6495 { echo "$as_me:$LINENO: result: $AR" >&5 6496echo "${ECHO_T}$AR" >&6; } 6497else 6498 { echo "$as_me:$LINENO: result: no" >&5 6499echo "${ECHO_T}no" >&6; } 6500fi 6501 6502 6503fi 6504if test -z "$ac_cv_prog_AR"; then 6505 ac_ct_AR=$AR 6506 # Extract the first word of "ar", so it can be a program name with args. 6507set dummy ar; ac_word=$2 6508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6510if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6511 echo $ECHO_N "(cached) $ECHO_C" >&6 6512else 6513 if test -n "$ac_ct_AR"; then 6514 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6515else 6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517for as_dir in $PATH 6518do 6519 IFS=$as_save_IFS 6520 test -z "$as_dir" && as_dir=. 6521 for ac_exec_ext in '' $ac_executable_extensions; do 6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6523 ac_cv_prog_ac_ct_AR="ar" 6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6525 break 2 6526 fi 6527done 6528done 6529IFS=$as_save_IFS 6530 6531fi 6532fi 6533ac_ct_AR=$ac_cv_prog_ac_ct_AR 6534if test -n "$ac_ct_AR"; then 6535 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6536echo "${ECHO_T}$ac_ct_AR" >&6; } 6537else 6538 { echo "$as_me:$LINENO: result: no" >&5 6539echo "${ECHO_T}no" >&6; } 6540fi 6541 6542 if test "x$ac_ct_AR" = x; then 6543 AR="false" 6544 else 6545 case $cross_compiling:$ac_tool_warned in 6546yes:) 6547{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6548whose name does not start with the host triplet. If you think this 6549configuration is useful to you, please write to autoconf@gnu.org." >&5 6550echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6551whose name does not start with the host triplet. If you think this 6552configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6553ac_tool_warned=yes ;; 6554esac 6555 AR=$ac_ct_AR 6556 fi 6557else 6558 AR="$ac_cv_prog_AR" 6559fi 6560 6561if test -n "$ac_tool_prefix"; then 6562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6563set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6566if test "${ac_cv_prog_RANLIB+set}" = set; then 6567 echo $ECHO_N "(cached) $ECHO_C" >&6 6568else 6569 if test -n "$RANLIB"; then 6570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589RANLIB=$ac_cv_prog_RANLIB 6590if test -n "$RANLIB"; then 6591 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6592echo "${ECHO_T}$RANLIB" >&6; } 6593else 6594 { echo "$as_me:$LINENO: result: no" >&5 6595echo "${ECHO_T}no" >&6; } 6596fi 6597 6598 6599fi 6600if test -z "$ac_cv_prog_RANLIB"; then 6601 ac_ct_RANLIB=$RANLIB 6602 # Extract the first word of "ranlib", so it can be a program name with args. 6603set dummy ranlib; ac_word=$2 6604{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6606if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6607 echo $ECHO_N "(cached) $ECHO_C" >&6 6608else 6609 if test -n "$ac_ct_RANLIB"; then 6610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6619 ac_cv_prog_ac_ct_RANLIB="ranlib" 6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6630if test -n "$ac_ct_RANLIB"; then 6631 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6632echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6633else 6634 { echo "$as_me:$LINENO: result: no" >&5 6635echo "${ECHO_T}no" >&6; } 6636fi 6637 6638 if test "x$ac_ct_RANLIB" = x; then 6639 RANLIB=":" 6640 else 6641 case $cross_compiling:$ac_tool_warned in 6642yes:) 6643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6644whose name does not start with the host triplet. If you think this 6645configuration is useful to you, please write to autoconf@gnu.org." >&5 6646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6647whose name does not start with the host triplet. If you think this 6648configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 RANLIB=$ac_ct_RANLIB 6652 fi 6653else 6654 RANLIB="$ac_cv_prog_RANLIB" 6655fi 6656 6657if test -n "$ac_tool_prefix"; then 6658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6659set dummy ${ac_tool_prefix}strip; ac_word=$2 6660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6662if test "${ac_cv_prog_STRIP+set}" = set; then 6663 echo $ECHO_N "(cached) $ECHO_C" >&6 6664else 6665 if test -n "$STRIP"; then 6666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6667else 6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6669for as_dir in $PATH 6670do 6671 IFS=$as_save_IFS 6672 test -z "$as_dir" && as_dir=. 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6675 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685STRIP=$ac_cv_prog_STRIP 6686if test -n "$STRIP"; then 6687 { echo "$as_me:$LINENO: result: $STRIP" >&5 6688echo "${ECHO_T}$STRIP" >&6; } 6689else 6690 { echo "$as_me:$LINENO: result: no" >&5 6691echo "${ECHO_T}no" >&6; } 6692fi 6693 6694 6695fi 6696if test -z "$ac_cv_prog_STRIP"; then 6697 ac_ct_STRIP=$STRIP 6698 # Extract the first word of "strip", so it can be a program name with args. 6699set dummy strip; ac_word=$2 6700{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6702if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6703 echo $ECHO_N "(cached) $ECHO_C" >&6 6704else 6705 if test -n "$ac_ct_STRIP"; then 6706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6707else 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6715 ac_cv_prog_ac_ct_STRIP="strip" 6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6726if test -n "$ac_ct_STRIP"; then 6727 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6728echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6729else 6730 { echo "$as_me:$LINENO: result: no" >&5 6731echo "${ECHO_T}no" >&6; } 6732fi 6733 6734 if test "x$ac_ct_STRIP" = x; then 6735 STRIP=":" 6736 else 6737 case $cross_compiling:$ac_tool_warned in 6738yes:) 6739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6740whose name does not start with the host triplet. If you think this 6741configuration is useful to you, please write to autoconf@gnu.org." >&5 6742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6743whose name does not start with the host triplet. If you think this 6744configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6745ac_tool_warned=yes ;; 6746esac 6747 STRIP=$ac_ct_STRIP 6748 fi 6749else 6750 STRIP="$ac_cv_prog_STRIP" 6751fi 6752 6753 6754old_CC="$CC" 6755old_CFLAGS="$CFLAGS" 6756 6757# Set sane defaults for various variables 6758test -z "$AR" && AR=ar 6759test -z "$AR_FLAGS" && AR_FLAGS=cru 6760test -z "$AS" && AS=as 6761test -z "$CC" && CC=cc 6762test -z "$LTCC" && LTCC=$CC 6763test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6764test -z "$DLLTOOL" && DLLTOOL=dlltool 6765test -z "$LD" && LD=ld 6766test -z "$LN_S" && LN_S="ln -s" 6767test -z "$MAGIC_CMD" && MAGIC_CMD=file 6768test -z "$NM" && NM=nm 6769test -z "$SED" && SED=sed 6770test -z "$OBJDUMP" && OBJDUMP=objdump 6771test -z "$RANLIB" && RANLIB=: 6772test -z "$STRIP" && STRIP=: 6773test -z "$ac_objext" && ac_objext=o 6774 6775# Determine commands to create old-style static archives. 6776old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6777old_postinstall_cmds='chmod 644 $oldlib' 6778old_postuninstall_cmds= 6779 6780if test -n "$RANLIB"; then 6781 case $host_os in 6782 openbsd*) 6783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6784 ;; 6785 *) 6786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6787 ;; 6788 esac 6789 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6790fi 6791 6792for cc_temp in $compiler""; do 6793 case $cc_temp in 6794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6796 \-*) ;; 6797 *) break;; 6798 esac 6799done 6800cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6801 6802 6803# Only perform the check for file, if the check method requires it 6804case $deplibs_check_method in 6805file_magic*) 6806 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6807 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6808echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6809if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6810 echo $ECHO_N "(cached) $ECHO_C" >&6 6811else 6812 case $MAGIC_CMD in 6813[\\/*] | ?:[\\/]*) 6814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6815 ;; 6816*) 6817 lt_save_MAGIC_CMD="$MAGIC_CMD" 6818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6820 for ac_dir in $ac_dummy; do 6821 IFS="$lt_save_ifs" 6822 test -z "$ac_dir" && ac_dir=. 6823 if test -f $ac_dir/${ac_tool_prefix}file; then 6824 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6825 if test -n "$file_magic_test_file"; then 6826 case $deplibs_check_method in 6827 "file_magic "*) 6828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6831 $EGREP "$file_magic_regex" > /dev/null; then 6832 : 6833 else 6834 cat <<EOF 1>&2 6835 6836*** Warning: the command libtool uses to detect shared libraries, 6837*** $file_magic_cmd, produces output that libtool cannot recognize. 6838*** The result is that libtool may fail to recognize shared libraries 6839*** as such. This will affect the creation of libtool libraries that 6840*** depend on shared libraries, but programs linked with such libtool 6841*** libraries will work regardless of this problem. Nevertheless, you 6842*** may want to report the problem to your system manager and/or to 6843*** bug-libtool@gnu.org 6844 6845EOF 6846 fi ;; 6847 esac 6848 fi 6849 break 6850 fi 6851 done 6852 IFS="$lt_save_ifs" 6853 MAGIC_CMD="$lt_save_MAGIC_CMD" 6854 ;; 6855esac 6856fi 6857 6858MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6859if test -n "$MAGIC_CMD"; then 6860 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6861echo "${ECHO_T}$MAGIC_CMD" >&6; } 6862else 6863 { echo "$as_me:$LINENO: result: no" >&5 6864echo "${ECHO_T}no" >&6; } 6865fi 6866 6867if test -z "$lt_cv_path_MAGIC_CMD"; then 6868 if test -n "$ac_tool_prefix"; then 6869 { echo "$as_me:$LINENO: checking for file" >&5 6870echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6871if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873else 6874 case $MAGIC_CMD in 6875[\\/*] | ?:[\\/]*) 6876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6877 ;; 6878*) 6879 lt_save_MAGIC_CMD="$MAGIC_CMD" 6880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6882 for ac_dir in $ac_dummy; do 6883 IFS="$lt_save_ifs" 6884 test -z "$ac_dir" && ac_dir=. 6885 if test -f $ac_dir/file; then 6886 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6887 if test -n "$file_magic_test_file"; then 6888 case $deplibs_check_method in 6889 "file_magic "*) 6890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6893 $EGREP "$file_magic_regex" > /dev/null; then 6894 : 6895 else 6896 cat <<EOF 1>&2 6897 6898*** Warning: the command libtool uses to detect shared libraries, 6899*** $file_magic_cmd, produces output that libtool cannot recognize. 6900*** The result is that libtool may fail to recognize shared libraries 6901*** as such. This will affect the creation of libtool libraries that 6902*** depend on shared libraries, but programs linked with such libtool 6903*** libraries will work regardless of this problem. Nevertheless, you 6904*** may want to report the problem to your system manager and/or to 6905*** bug-libtool@gnu.org 6906 6907EOF 6908 fi ;; 6909 esac 6910 fi 6911 break 6912 fi 6913 done 6914 IFS="$lt_save_ifs" 6915 MAGIC_CMD="$lt_save_MAGIC_CMD" 6916 ;; 6917esac 6918fi 6919 6920MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6921if test -n "$MAGIC_CMD"; then 6922 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6923echo "${ECHO_T}$MAGIC_CMD" >&6; } 6924else 6925 { echo "$as_me:$LINENO: result: no" >&5 6926echo "${ECHO_T}no" >&6; } 6927fi 6928 6929 else 6930 MAGIC_CMD=: 6931 fi 6932fi 6933 6934 fi 6935 ;; 6936esac 6937 6938enable_dlopen=no 6939enable_win32_dll=no 6940 6941# Check whether --enable-libtool-lock was given. 6942if test "${enable_libtool_lock+set}" = set; then 6943 enableval=$enable_libtool_lock; 6944fi 6945 6946test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6947 6948 6949# Check whether --with-pic was given. 6950if test "${with_pic+set}" = set; then 6951 withval=$with_pic; pic_mode="$withval" 6952else 6953 pic_mode=default 6954fi 6955 6956test -z "$pic_mode" && pic_mode=default 6957 6958# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 6959# 6960# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 6961# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 6962# calls AC_LIBTOOL_CONFIG and creates libtool. 6963# 6964{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 6965echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; } 6966if test "x$ltmain" = "x" ; then 6967 { echo "$as_me:$LINENO: result: no" >&5 6968echo "${ECHO_T}no" >&6; } 6969 { { echo "$as_me:$LINENO: error: 6970 6971*** [Gentoo] sanity check failed! *** 6972*** \$ltmain is not defined, please check the patch for consistency! *** 6973" >&5 6974echo "$as_me: error: 6975 6976*** [Gentoo] sanity check failed! *** 6977*** \$ltmain is not defined, please check the patch for consistency! *** 6978" >&2;} 6979 { (exit 1); exit 1; }; } 6980fi 6981gentoo_lt_version="1.5.24" 6982gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 6983if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 6984 { echo "$as_me:$LINENO: result: no" >&5 6985echo "${ECHO_T}no" >&6; } 6986 { { echo "$as_me:$LINENO: error: 6987 6988*** [Gentoo] sanity check failed! *** 6989*** libtool.m4 and ltmain.sh have a version mismatch! *** 6990*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 6991 6992Please run: 6993 6994 libtoolize --copy --force 6995 6996if appropriate, please contact the maintainer of this 6997package (or your distribution) for help. 6998" >&5 6999echo "$as_me: error: 7000 7001*** [Gentoo] sanity check failed! *** 7002*** libtool.m4 and ltmain.sh have a version mismatch! *** 7003*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7004 7005Please run: 7006 7007 libtoolize --copy --force 7008 7009if appropriate, please contact the maintainer of this 7010package (or your distribution) for help. 7011" >&2;} 7012 { (exit 1); exit 1; }; } 7013else 7014 { echo "$as_me:$LINENO: result: yes" >&5 7015echo "${ECHO_T}yes" >&6; } 7016fi 7017 7018 7019# Use C for the default configuration in the libtool script 7020tagname= 7021lt_save_CC="$CC" 7022ac_ext=c 7023ac_cpp='$CPP $CPPFLAGS' 7024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7026ac_compiler_gnu=$ac_cv_c_compiler_gnu 7027 7028 7029# Source file extension for C test sources. 7030ac_ext=c 7031 7032# Object file extension for compiled C test sources. 7033objext=o 7034objext=$objext 7035 7036# Code to be used in simple compile tests 7037lt_simple_compile_test_code="int some_variable = 0;" 7038 7039# Code to be used in simple link tests 7040lt_simple_link_test_code='int main(){return(0);}' 7041 7042 7043# If no C compiler was specified, use CC. 7044LTCC=${LTCC-"$CC"} 7045 7046# If no C compiler flags were specified, use CFLAGS. 7047LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7048 7049# Allow CC to be a program name with arguments. 7050compiler=$CC 7051 7052 7053# save warnings/boilerplate of simple test code 7054ac_outfile=conftest.$ac_objext 7055echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7056eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7057_lt_compiler_boilerplate=`cat conftest.err` 7058$rm conftest* 7059 7060ac_outfile=conftest.$ac_objext 7061echo "$lt_simple_link_test_code" >conftest.$ac_ext 7062eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7063_lt_linker_boilerplate=`cat conftest.err` 7064$rm conftest* 7065 7066 7067 7068lt_prog_compiler_no_builtin_flag= 7069 7070if test "$GCC" = yes; then 7071 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7072 7073 7074{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7075echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7076if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7077 echo $ECHO_N "(cached) $ECHO_C" >&6 7078else 7079 lt_cv_prog_compiler_rtti_exceptions=no 7080 ac_outfile=conftest.$ac_objext 7081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7082 lt_compiler_flag="-fno-rtti -fno-exceptions" 7083 # Insert the option either (1) after the last *FLAGS variable, or 7084 # (2) before a word containing "conftest.", or (3) at the end. 7085 # Note that $ac_compile itself does not contain backslashes and begins 7086 # with a dollar sign (not a hyphen), so the echo should work correctly. 7087 # The option is referenced via a variable to avoid confusing sed. 7088 lt_compile=`echo "$ac_compile" | $SED \ 7089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7091 -e 's:$: $lt_compiler_flag:'` 7092 (eval echo "\"\$as_me:7092: $lt_compile\"" >&5) 7093 (eval "$lt_compile" 2>conftest.err) 7094 ac_status=$? 7095 cat conftest.err >&5 7096 echo "$as_me:7096: \$? = $ac_status" >&5 7097 if (exit $ac_status) && test -s "$ac_outfile"; then 7098 # The compiler can only warn and ignore the option if not recognized 7099 # So say no if there are warnings other than the usual output. 7100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7103 lt_cv_prog_compiler_rtti_exceptions=yes 7104 fi 7105 fi 7106 $rm conftest* 7107 7108fi 7109{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7110echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7111 7112if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7114else 7115 : 7116fi 7117 7118fi 7119 7120lt_prog_compiler_wl= 7121lt_prog_compiler_pic= 7122lt_prog_compiler_static= 7123 7124{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7125echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7126 7127 if test "$GCC" = yes; then 7128 lt_prog_compiler_wl='-Wl,' 7129 lt_prog_compiler_static='-static' 7130 7131 case $host_os in 7132 aix*) 7133 # All AIX code is PIC. 7134 if test "$host_cpu" = ia64; then 7135 # AIX 5 now supports IA64 processor 7136 lt_prog_compiler_static='-Bstatic' 7137 fi 7138 ;; 7139 7140 amigaos*) 7141 # FIXME: we need at least 68020 code to build shared libraries, but 7142 # adding the `-m68020' flag to GCC prevents building anything better, 7143 # like `-m68040'. 7144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7145 ;; 7146 7147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7148 # PIC is the default for these OSes. 7149 ;; 7150 7151 mingw* | cygwin* | pw32* | os2*) 7152 # This hack is so that the source file can tell whether it is being 7153 # built for inclusion in a dll (and should export symbols for example). 7154 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7155 # (--disable-auto-import) libraries 7156 lt_prog_compiler_pic='-DDLL_EXPORT' 7157 ;; 7158 7159 darwin* | rhapsody*) 7160 # PIC is the default on this platform 7161 # Common symbols not allowed in MH_DYLIB files 7162 lt_prog_compiler_pic='-fno-common' 7163 ;; 7164 7165 interix[3-9]*) 7166 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7167 # Instead, we relocate shared libraries at runtime. 7168 ;; 7169 7170 msdosdjgpp*) 7171 # Just because we use GCC doesn't mean we suddenly get shared libraries 7172 # on systems that don't support them. 7173 lt_prog_compiler_can_build_shared=no 7174 enable_shared=no 7175 ;; 7176 7177 sysv4*MP*) 7178 if test -d /usr/nec; then 7179 lt_prog_compiler_pic=-Kconform_pic 7180 fi 7181 ;; 7182 7183 hpux*) 7184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7185 # not for PA HP-UX. 7186 case $host_cpu in 7187 hppa*64*|ia64*) 7188 # +Z the default 7189 ;; 7190 *) 7191 lt_prog_compiler_pic='-fPIC' 7192 ;; 7193 esac 7194 ;; 7195 7196 *) 7197 lt_prog_compiler_pic='-fPIC' 7198 ;; 7199 esac 7200 else 7201 # PORTME Check for flag to pass linker flags through the system compiler. 7202 case $host_os in 7203 aix*) 7204 lt_prog_compiler_wl='-Wl,' 7205 if test "$host_cpu" = ia64; then 7206 # AIX 5 now supports IA64 processor 7207 lt_prog_compiler_static='-Bstatic' 7208 else 7209 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7210 fi 7211 ;; 7212 darwin*) 7213 # PIC is the default on this platform 7214 # Common symbols not allowed in MH_DYLIB files 7215 case $cc_basename in 7216 xlc*) 7217 lt_prog_compiler_pic='-qnocommon' 7218 lt_prog_compiler_wl='-Wl,' 7219 ;; 7220 esac 7221 ;; 7222 7223 mingw* | cygwin* | pw32* | os2*) 7224 # This hack is so that the source file can tell whether it is being 7225 # built for inclusion in a dll (and should export symbols for example). 7226 lt_prog_compiler_pic='-DDLL_EXPORT' 7227 ;; 7228 7229 hpux9* | hpux10* | hpux11*) 7230 lt_prog_compiler_wl='-Wl,' 7231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7232 # not for PA HP-UX. 7233 case $host_cpu in 7234 hppa*64*|ia64*) 7235 # +Z the default 7236 ;; 7237 *) 7238 lt_prog_compiler_pic='+Z' 7239 ;; 7240 esac 7241 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7242 lt_prog_compiler_static='${wl}-a ${wl}archive' 7243 ;; 7244 7245 irix5* | irix6* | nonstopux*) 7246 lt_prog_compiler_wl='-Wl,' 7247 # PIC (with -KPIC) is the default. 7248 lt_prog_compiler_static='-non_shared' 7249 ;; 7250 7251 newsos6) 7252 lt_prog_compiler_pic='-KPIC' 7253 lt_prog_compiler_static='-Bstatic' 7254 ;; 7255 7256 linux* | k*bsd*-gnu) 7257 case $cc_basename in 7258 icc* | ecc*) 7259 lt_prog_compiler_wl='-Wl,' 7260 lt_prog_compiler_pic='-KPIC' 7261 lt_prog_compiler_static='-static' 7262 ;; 7263 pgcc* | pgf77* | pgf90* | pgf95*) 7264 # Portland Group compilers (*not* the Pentium gcc compiler, 7265 # which looks to be a dead project) 7266 lt_prog_compiler_wl='-Wl,' 7267 lt_prog_compiler_pic='-fpic' 7268 lt_prog_compiler_static='-Bstatic' 7269 ;; 7270 ccc*) 7271 lt_prog_compiler_wl='-Wl,' 7272 # All Alpha code is PIC. 7273 lt_prog_compiler_static='-non_shared' 7274 ;; 7275 *) 7276 case `$CC -V 2>&1 | sed 5q` in 7277 *Sun\ C*) 7278 # Sun C 5.9 7279 lt_prog_compiler_pic='-KPIC' 7280 lt_prog_compiler_static='-Bstatic' 7281 lt_prog_compiler_wl='-Wl,' 7282 ;; 7283 *Sun\ F*) 7284 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7285 lt_prog_compiler_pic='-KPIC' 7286 lt_prog_compiler_static='-Bstatic' 7287 lt_prog_compiler_wl='' 7288 ;; 7289 esac 7290 ;; 7291 esac 7292 ;; 7293 7294 osf3* | osf4* | osf5*) 7295 lt_prog_compiler_wl='-Wl,' 7296 # All OSF/1 code is PIC. 7297 lt_prog_compiler_static='-non_shared' 7298 ;; 7299 7300 rdos*) 7301 lt_prog_compiler_static='-non_shared' 7302 ;; 7303 7304 solaris*) 7305 lt_prog_compiler_pic='-KPIC' 7306 lt_prog_compiler_static='-Bstatic' 7307 case $cc_basename in 7308 f77* | f90* | f95*) 7309 lt_prog_compiler_wl='-Qoption ld ';; 7310 *) 7311 lt_prog_compiler_wl='-Wl,';; 7312 esac 7313 ;; 7314 7315 sunos4*) 7316 lt_prog_compiler_wl='-Qoption ld ' 7317 lt_prog_compiler_pic='-PIC' 7318 lt_prog_compiler_static='-Bstatic' 7319 ;; 7320 7321 sysv4 | sysv4.2uw2* | sysv4.3*) 7322 lt_prog_compiler_wl='-Wl,' 7323 lt_prog_compiler_pic='-KPIC' 7324 lt_prog_compiler_static='-Bstatic' 7325 ;; 7326 7327 sysv4*MP*) 7328 if test -d /usr/nec ;then 7329 lt_prog_compiler_pic='-Kconform_pic' 7330 lt_prog_compiler_static='-Bstatic' 7331 fi 7332 ;; 7333 7334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7335 lt_prog_compiler_wl='-Wl,' 7336 lt_prog_compiler_pic='-KPIC' 7337 lt_prog_compiler_static='-Bstatic' 7338 ;; 7339 7340 unicos*) 7341 lt_prog_compiler_wl='-Wl,' 7342 lt_prog_compiler_can_build_shared=no 7343 ;; 7344 7345 uts4*) 7346 lt_prog_compiler_pic='-pic' 7347 lt_prog_compiler_static='-Bstatic' 7348 ;; 7349 7350 *) 7351 lt_prog_compiler_can_build_shared=no 7352 ;; 7353 esac 7354 fi 7355 7356{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7357echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7358 7359# 7360# Check to make sure the PIC flag actually works. 7361# 7362if test -n "$lt_prog_compiler_pic"; then 7363 7364{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7365echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7366if test "${lt_prog_compiler_pic_works+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 lt_prog_compiler_pic_works=no 7370 ac_outfile=conftest.$ac_objext 7371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7373 # Insert the option either (1) after the last *FLAGS variable, or 7374 # (2) before a word containing "conftest.", or (3) at the end. 7375 # Note that $ac_compile itself does not contain backslashes and begins 7376 # with a dollar sign (not a hyphen), so the echo should work correctly. 7377 # The option is referenced via a variable to avoid confusing sed. 7378 lt_compile=`echo "$ac_compile" | $SED \ 7379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7381 -e 's:$: $lt_compiler_flag:'` 7382 (eval echo "\"\$as_me:7382: $lt_compile\"" >&5) 7383 (eval "$lt_compile" 2>conftest.err) 7384 ac_status=$? 7385 cat conftest.err >&5 7386 echo "$as_me:7386: \$? = $ac_status" >&5 7387 if (exit $ac_status) && test -s "$ac_outfile"; then 7388 # The compiler can only warn and ignore the option if not recognized 7389 # So say no if there are warnings other than the usual output. 7390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7393 lt_prog_compiler_pic_works=yes 7394 fi 7395 fi 7396 $rm conftest* 7397 7398fi 7399{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7400echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7401 7402if test x"$lt_prog_compiler_pic_works" = xyes; then 7403 case $lt_prog_compiler_pic in 7404 "" | " "*) ;; 7405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7406 esac 7407else 7408 lt_prog_compiler_pic= 7409 lt_prog_compiler_can_build_shared=no 7410fi 7411 7412fi 7413case $host_os in 7414 # For platforms which do not support PIC, -DPIC is meaningless: 7415 *djgpp*) 7416 lt_prog_compiler_pic= 7417 ;; 7418 *) 7419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7420 ;; 7421esac 7422 7423# 7424# Check to make sure the static flag actually works. 7425# 7426wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7427{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7428echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7429if test "${lt_prog_compiler_static_works+set}" = set; then 7430 echo $ECHO_N "(cached) $ECHO_C" >&6 7431else 7432 lt_prog_compiler_static_works=no 7433 save_LDFLAGS="$LDFLAGS" 7434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7435 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7437 # The linker can only warn and ignore the option if not recognized 7438 # So say no if there are warnings 7439 if test -s conftest.err; then 7440 # Append any errors to the config.log. 7441 cat conftest.err 1>&5 7442 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7444 if diff conftest.exp conftest.er2 >/dev/null; then 7445 lt_prog_compiler_static_works=yes 7446 fi 7447 else 7448 lt_prog_compiler_static_works=yes 7449 fi 7450 fi 7451 $rm conftest* 7452 LDFLAGS="$save_LDFLAGS" 7453 7454fi 7455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7456echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7457 7458if test x"$lt_prog_compiler_static_works" = xyes; then 7459 : 7460else 7461 lt_prog_compiler_static= 7462fi 7463 7464 7465{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7466echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7467if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7468 echo $ECHO_N "(cached) $ECHO_C" >&6 7469else 7470 lt_cv_prog_compiler_c_o=no 7471 $rm -r conftest 2>/dev/null 7472 mkdir conftest 7473 cd conftest 7474 mkdir out 7475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7476 7477 lt_compiler_flag="-o out/conftest2.$ac_objext" 7478 # Insert the option either (1) after the last *FLAGS variable, or 7479 # (2) before a word containing "conftest.", or (3) at the end. 7480 # Note that $ac_compile itself does not contain backslashes and begins 7481 # with a dollar sign (not a hyphen), so the echo should work correctly. 7482 lt_compile=`echo "$ac_compile" | $SED \ 7483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7485 -e 's:$: $lt_compiler_flag:'` 7486 (eval echo "\"\$as_me:7486: $lt_compile\"" >&5) 7487 (eval "$lt_compile" 2>out/conftest.err) 7488 ac_status=$? 7489 cat out/conftest.err >&5 7490 echo "$as_me:7490: \$? = $ac_status" >&5 7491 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7492 then 7493 # The compiler can only warn and ignore the option if not recognized 7494 # So say no if there are warnings 7495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7498 lt_cv_prog_compiler_c_o=yes 7499 fi 7500 fi 7501 chmod u+w . 2>&5 7502 $rm conftest* 7503 # SGI C++ compiler will create directory out/ii_files/ for 7504 # template instantiation 7505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7506 $rm out/* && rmdir out 7507 cd .. 7508 rmdir conftest 7509 $rm conftest* 7510 7511fi 7512{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7513echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7514 7515 7516hard_links="nottested" 7517if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7518 # do not overwrite the value of need_locks provided by the user 7519 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7520echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7521 hard_links=yes 7522 $rm conftest* 7523 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7524 touch conftest.a 7525 ln conftest.a conftest.b 2>&5 || hard_links=no 7526 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7527 { echo "$as_me:$LINENO: result: $hard_links" >&5 7528echo "${ECHO_T}$hard_links" >&6; } 7529 if test "$hard_links" = no; then 7530 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7531echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7532 need_locks=warn 7533 fi 7534else 7535 need_locks=no 7536fi 7537 7538{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7539echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7540 7541 runpath_var= 7542 allow_undefined_flag= 7543 enable_shared_with_static_runtimes=no 7544 archive_cmds= 7545 archive_expsym_cmds= 7546 old_archive_From_new_cmds= 7547 old_archive_from_expsyms_cmds= 7548 export_dynamic_flag_spec= 7549 whole_archive_flag_spec= 7550 thread_safe_flag_spec= 7551 hardcode_libdir_flag_spec= 7552 hardcode_libdir_flag_spec_ld= 7553 hardcode_libdir_separator= 7554 hardcode_direct=no 7555 hardcode_minus_L=no 7556 hardcode_shlibpath_var=unsupported 7557 link_all_deplibs=unknown 7558 hardcode_automatic=no 7559 module_cmds= 7560 module_expsym_cmds= 7561 always_export_symbols=no 7562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7563 # include_expsyms should be a list of space-separated symbols to be *always* 7564 # included in the symbol list 7565 include_expsyms= 7566 # exclude_expsyms can be an extended regexp of symbols to exclude 7567 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7569 # as well as any symbol that contains `d'. 7570 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7572 # platforms (ab)use it in PIC code, but their linkers get confused if 7573 # the symbol is explicitly referenced. Since portable code cannot 7574 # rely on this symbol name, it's probably fine to never include it in 7575 # preloaded symbol tables. 7576 extract_expsyms_cmds= 7577 # Just being paranoid about ensuring that cc_basename is set. 7578 for cc_temp in $compiler""; do 7579 case $cc_temp in 7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7582 \-*) ;; 7583 *) break;; 7584 esac 7585done 7586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7587 7588 case $host_os in 7589 cygwin* | mingw* | pw32*) 7590 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7591 # When not using gcc, we currently assume that we are using 7592 # Microsoft Visual C++. 7593 if test "$GCC" != yes; then 7594 with_gnu_ld=no 7595 fi 7596 ;; 7597 interix*) 7598 # we just hope/assume this is gcc and not c89 (= MSVC++) 7599 with_gnu_ld=yes 7600 ;; 7601 openbsd*) 7602 with_gnu_ld=no 7603 ;; 7604 esac 7605 7606 ld_shlibs=yes 7607 if test "$with_gnu_ld" = yes; then 7608 # If archive_cmds runs LD, not CC, wlarc should be empty 7609 wlarc='${wl}' 7610 7611 # Set some defaults for GNU ld with shared library support. These 7612 # are reset later if shared libraries are not supported. Putting them 7613 # here allows them to be overridden if necessary. 7614 runpath_var=LD_RUN_PATH 7615 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7616 export_dynamic_flag_spec='${wl}--export-dynamic' 7617 # ancient GNU ld didn't support --whole-archive et. al. 7618 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7620 else 7621 whole_archive_flag_spec= 7622 fi 7623 supports_anon_versioning=no 7624 case `$LD -v 2>/dev/null` in 7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7628 *\ 2.11.*) ;; # other 2.11 versions 7629 *) supports_anon_versioning=yes ;; 7630 esac 7631 7632 # See if GNU ld supports shared libraries. 7633 case $host_os in 7634 aix3* | aix4* | aix5*) 7635 # On AIX/PPC, the GNU linker is very broken 7636 if test "$host_cpu" != ia64; then 7637 ld_shlibs=no 7638 cat <<EOF 1>&2 7639 7640*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7641*** to be unable to reliably create shared libraries on AIX. 7642*** Therefore, libtool is disabling shared libraries support. If you 7643*** really care for shared libraries, you may want to modify your PATH 7644*** so that a non-GNU linker is found, and then restart. 7645 7646EOF 7647 fi 7648 ;; 7649 7650 amigaos*) 7651 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)' 7652 hardcode_libdir_flag_spec='-L$libdir' 7653 hardcode_minus_L=yes 7654 7655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7656 # that the semantics of dynamic libraries on AmigaOS, at least up 7657 # to version 4, is to share data among multiple programs linked 7658 # with the same dynamic library. Since this doesn't match the 7659 # behavior of shared libraries on other platforms, we can't use 7660 # them. 7661 ld_shlibs=no 7662 ;; 7663 7664 beos*) 7665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7666 allow_undefined_flag=unsupported 7667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7668 # support --undefined. This deserves some investigation. FIXME 7669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7670 else 7671 ld_shlibs=no 7672 fi 7673 ;; 7674 7675 cygwin* | mingw* | pw32*) 7676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7677 # as there is no search path for DLLs. 7678 hardcode_libdir_flag_spec='-L$libdir' 7679 allow_undefined_flag=unsupported 7680 always_export_symbols=no 7681 enable_shared_with_static_runtimes=yes 7682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7683 7684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7686 # If the export-symbols file already is a .def file (1st line 7687 # is EXPORTS), use it as is; otherwise, prepend... 7688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7689 cp $export_symbols $output_objdir/$soname.def; 7690 else 7691 echo EXPORTS > $output_objdir/$soname.def; 7692 cat $export_symbols >> $output_objdir/$soname.def; 7693 fi~ 7694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7695 else 7696 ld_shlibs=no 7697 fi 7698 ;; 7699 7700 interix[3-9]*) 7701 hardcode_direct=no 7702 hardcode_shlibpath_var=no 7703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7704 export_dynamic_flag_spec='${wl}-E' 7705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7706 # Instead, shared libraries are loaded at an image base (0x10000000 by 7707 # default) and relocated if they conflict, which is a slow very memory 7708 # consuming and fragmenting process. To avoid this, we pick a random, 7709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7710 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7712 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' 7713 ;; 7714 7715 gnu* | linux* | k*bsd*-gnu) 7716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7717 tmp_addflag= 7718 case $cc_basename,$host_cpu in 7719 pgcc*) # Portland Group C compiler 7720 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' 7721 tmp_addflag=' $pic_flag' 7722 ;; 7723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7724 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' 7725 tmp_addflag=' $pic_flag -Mnomain' ;; 7726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7727 tmp_addflag=' -i_dynamic' ;; 7728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7729 tmp_addflag=' -i_dynamic -nofor_main' ;; 7730 ifc* | ifort*) # Intel Fortran compiler 7731 tmp_addflag=' -nofor_main' ;; 7732 esac 7733 case `$CC -V 2>&1 | sed 5q` in 7734 *Sun\ C*) # Sun C 5.9 7735 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' 7736 tmp_sharedflag='-G' ;; 7737 *Sun\ F*) # Sun Fortran 8.3 7738 tmp_sharedflag='-G' ;; 7739 *) 7740 tmp_sharedflag='-shared' ;; 7741 esac 7742 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7743 7744 if test $supports_anon_versioning = yes; then 7745 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7747 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7749 fi 7750 else 7751 ld_shlibs=no 7752 fi 7753 ;; 7754 7755 netbsd*) 7756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7758 wlarc= 7759 else 7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7762 fi 7763 ;; 7764 7765 solaris*) 7766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7767 ld_shlibs=no 7768 cat <<EOF 1>&2 7769 7770*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7771*** create shared libraries on Solaris systems. Therefore, libtool 7772*** is disabling shared libraries support. We urge you to upgrade GNU 7773*** binutils to release 2.9.1 or newer. Another option is to modify 7774*** your PATH or compiler configuration so that the native linker is 7775*** used, and then restart. 7776 7777EOF 7778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7781 else 7782 ld_shlibs=no 7783 fi 7784 ;; 7785 7786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7787 case `$LD -v 2>&1` in 7788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7789 ld_shlibs=no 7790 cat <<_LT_EOF 1>&2 7791 7792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7793*** reliably create shared libraries on SCO systems. Therefore, libtool 7794*** is disabling shared libraries support. We urge you to upgrade GNU 7795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7796*** your PATH or compiler configuration so that the native linker is 7797*** used, and then restart. 7798 7799_LT_EOF 7800 ;; 7801 *) 7802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7803 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7806 else 7807 ld_shlibs=no 7808 fi 7809 ;; 7810 esac 7811 ;; 7812 7813 sunos4*) 7814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7815 wlarc= 7816 hardcode_direct=yes 7817 hardcode_shlibpath_var=no 7818 ;; 7819 7820 *) 7821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7824 else 7825 ld_shlibs=no 7826 fi 7827 ;; 7828 esac 7829 7830 if test "$ld_shlibs" = no; then 7831 runpath_var= 7832 hardcode_libdir_flag_spec= 7833 export_dynamic_flag_spec= 7834 whole_archive_flag_spec= 7835 fi 7836 else 7837 # PORTME fill in a description of your system's linker (not GNU ld) 7838 case $host_os in 7839 aix3*) 7840 allow_undefined_flag=unsupported 7841 always_export_symbols=yes 7842 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' 7843 # Note: this linker hardcodes the directories in LIBPATH if there 7844 # are no directories specified by -L. 7845 hardcode_minus_L=yes 7846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7847 # Neither direct hardcoding nor static linking is supported with a 7848 # broken collect2. 7849 hardcode_direct=unsupported 7850 fi 7851 ;; 7852 7853 aix4* | aix5*) 7854 if test "$host_cpu" = ia64; then 7855 # On IA64, the linker does run time linking by default, so we don't 7856 # have to do anything special. 7857 aix_use_runtimelinking=no 7858 exp_sym_flag='-Bexport' 7859 no_entry_flag="" 7860 else 7861 # If we're using GNU nm, then we don't want the "-C" option. 7862 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7864 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' 7865 else 7866 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' 7867 fi 7868 aix_use_runtimelinking=no 7869 7870 # Test if we are trying to use run time linking or normal 7871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7872 # need to do runtime linking. 7873 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7874 for ld_flag in $LDFLAGS; do 7875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7876 aix_use_runtimelinking=yes 7877 break 7878 fi 7879 done 7880 ;; 7881 esac 7882 7883 exp_sym_flag='-bexport' 7884 no_entry_flag='-bnoentry' 7885 fi 7886 7887 # When large executables or shared objects are built, AIX ld can 7888 # have problems creating the table of contents. If linking a library 7889 # or program results in "error TOC overflow" add -mminimal-toc to 7890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7892 7893 archive_cmds='' 7894 hardcode_direct=yes 7895 hardcode_libdir_separator=':' 7896 link_all_deplibs=yes 7897 7898 if test "$GCC" = yes; then 7899 case $host_os in aix4.[012]|aix4.[012].*) 7900 # We only want to do this on AIX 4.2 and lower, the check 7901 # below for broken collect2 doesn't work under 4.3+ 7902 collect2name=`${CC} -print-prog-name=collect2` 7903 if test -f "$collect2name" && \ 7904 strings "$collect2name" | grep resolve_lib_name >/dev/null 7905 then 7906 # We have reworked collect2 7907 : 7908 else 7909 # We have old collect2 7910 hardcode_direct=unsupported 7911 # It fails to find uninstalled libraries when the uninstalled 7912 # path is not listed in the libpath. Setting hardcode_minus_L 7913 # to unsupported forces relinking 7914 hardcode_minus_L=yes 7915 hardcode_libdir_flag_spec='-L$libdir' 7916 hardcode_libdir_separator= 7917 fi 7918 ;; 7919 esac 7920 shared_flag='-shared' 7921 if test "$aix_use_runtimelinking" = yes; then 7922 shared_flag="$shared_flag "'${wl}-G' 7923 fi 7924 else 7925 # not using gcc 7926 if test "$host_cpu" = ia64; then 7927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7928 # chokes on -Wl,-G. The following line is correct: 7929 shared_flag='-G' 7930 else 7931 if test "$aix_use_runtimelinking" = yes; then 7932 shared_flag='${wl}-G' 7933 else 7934 shared_flag='${wl}-bM:SRE' 7935 fi 7936 fi 7937 fi 7938 7939 # It seems that -bexpall does not export symbols beginning with 7940 # underscore (_), so it is better to generate a list of symbols to export. 7941 always_export_symbols=yes 7942 if test "$aix_use_runtimelinking" = yes; then 7943 # Warning - without using the other runtime loading flags (-brtl), 7944 # -berok will link without error, but may produce a broken library. 7945 allow_undefined_flag='-berok' 7946 # Determine the default libpath from the value encoded in an empty executable. 7947 cat >conftest.$ac_ext <<_ACEOF 7948/* confdefs.h. */ 7949_ACEOF 7950cat confdefs.h >>conftest.$ac_ext 7951cat >>conftest.$ac_ext <<_ACEOF 7952/* end confdefs.h. */ 7953 7954int 7955main () 7956{ 7957 7958 ; 7959 return 0; 7960} 7961_ACEOF 7962rm -f conftest.$ac_objext conftest$ac_exeext 7963if { (ac_try="$ac_link" 7964case "(($ac_try" in 7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7966 *) ac_try_echo=$ac_try;; 7967esac 7968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7969 (eval "$ac_link") 2>conftest.er1 7970 ac_status=$? 7971 grep -v '^ *+' conftest.er1 >conftest.err 7972 rm -f conftest.er1 7973 cat conftest.err >&5 7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7975 (exit $ac_status); } && { 7976 test -z "$ac_c_werror_flag" || 7977 test ! -s conftest.err 7978 } && test -s conftest$ac_exeext && 7979 $as_test_x conftest$ac_exeext; then 7980 7981lt_aix_libpath_sed=' 7982 /Import File Strings/,/^$/ { 7983 /^0/ { 7984 s/^0 *\(.*\)$/\1/ 7985 p 7986 } 7987 }' 7988aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7989# Check for a 64-bit object if we didn't find anything. 7990if test -z "$aix_libpath"; then 7991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7992fi 7993else 7994 echo "$as_me: failed program was:" >&5 7995sed 's/^/| /' conftest.$ac_ext >&5 7996 7997 7998fi 7999 8000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8001 conftest$ac_exeext conftest.$ac_ext 8002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8003 8004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8005 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" 8006 else 8007 if test "$host_cpu" = ia64; then 8008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8009 allow_undefined_flag="-z nodefs" 8010 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" 8011 else 8012 # Determine the default libpath from the value encoded in an empty executable. 8013 cat >conftest.$ac_ext <<_ACEOF 8014/* confdefs.h. */ 8015_ACEOF 8016cat confdefs.h >>conftest.$ac_ext 8017cat >>conftest.$ac_ext <<_ACEOF 8018/* end confdefs.h. */ 8019 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028rm -f conftest.$ac_objext conftest$ac_exeext 8029if { (ac_try="$ac_link" 8030case "(($ac_try" in 8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8032 *) ac_try_echo=$ac_try;; 8033esac 8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8035 (eval "$ac_link") 2>conftest.er1 8036 ac_status=$? 8037 grep -v '^ *+' conftest.er1 >conftest.err 8038 rm -f conftest.er1 8039 cat conftest.err >&5 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8041 (exit $ac_status); } && { 8042 test -z "$ac_c_werror_flag" || 8043 test ! -s conftest.err 8044 } && test -s conftest$ac_exeext && 8045 $as_test_x conftest$ac_exeext; then 8046 8047lt_aix_libpath_sed=' 8048 /Import File Strings/,/^$/ { 8049 /^0/ { 8050 s/^0 *\(.*\)$/\1/ 8051 p 8052 } 8053 }' 8054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8055# Check for a 64-bit object if we didn't find anything. 8056if test -z "$aix_libpath"; then 8057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8058fi 8059else 8060 echo "$as_me: failed program was:" >&5 8061sed 's/^/| /' conftest.$ac_ext >&5 8062 8063 8064fi 8065 8066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8067 conftest$ac_exeext conftest.$ac_ext 8068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8069 8070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8071 # Warning - without using the other run time loading flags, 8072 # -berok will link without error, but may produce a broken library. 8073 no_undefined_flag=' ${wl}-bernotok' 8074 allow_undefined_flag=' ${wl}-berok' 8075 # Exported symbols can be pulled into shared objects from archives 8076 whole_archive_flag_spec='$convenience' 8077 archive_cmds_need_lc=yes 8078 # This is similar to how AIX traditionally builds its shared libraries. 8079 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' 8080 fi 8081 fi 8082 ;; 8083 8084 amigaos*) 8085 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)' 8086 hardcode_libdir_flag_spec='-L$libdir' 8087 hardcode_minus_L=yes 8088 # see comment about different semantics on the GNU ld section 8089 ld_shlibs=no 8090 ;; 8091 8092 bsdi[45]*) 8093 export_dynamic_flag_spec=-rdynamic 8094 ;; 8095 8096 cygwin* | mingw* | pw32*) 8097 # When not using gcc, we currently assume that we are using 8098 # Microsoft Visual C++. 8099 # hardcode_libdir_flag_spec is actually meaningless, as there is 8100 # no search path for DLLs. 8101 hardcode_libdir_flag_spec=' ' 8102 allow_undefined_flag=unsupported 8103 # Tell ltmain to make .lib files, not .a files. 8104 libext=lib 8105 # Tell ltmain to make .dll files, not .so files. 8106 shrext_cmds=".dll" 8107 # FIXME: Setting linknames here is a bad hack. 8108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8109 # The linker will automatically build a .lib file if we build a DLL. 8110 old_archive_From_new_cmds='true' 8111 # FIXME: Should let the user specify the lib program. 8112 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8113 fix_srcfile_path='`cygpath -w "$srcfile"`' 8114 enable_shared_with_static_runtimes=yes 8115 ;; 8116 8117 darwin* | rhapsody*) 8118 case $host_os in 8119 rhapsody* | darwin1.[012]) 8120 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8121 ;; 8122 *) # Darwin 1.3 on 8123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8125 else 8126 case ${MACOSX_DEPLOYMENT_TARGET} in 8127 10.[012]) 8128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8129 ;; 8130 10.*) 8131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8132 ;; 8133 esac 8134 fi 8135 ;; 8136 esac 8137 archive_cmds_need_lc=no 8138 hardcode_direct=no 8139 hardcode_automatic=yes 8140 hardcode_shlibpath_var=unsupported 8141 whole_archive_flag_spec='' 8142 link_all_deplibs=yes 8143 if test "$GCC" = yes ; then 8144 output_verbose_link_cmd='echo' 8145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8148 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}' 8149 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}' 8150 else 8151 case $cc_basename in 8152 xlc*) 8153 output_verbose_link_cmd='echo' 8154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8158 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}' 8159 ;; 8160 *) 8161 ld_shlibs=no 8162 ;; 8163 esac 8164 fi 8165 ;; 8166 8167 dgux*) 8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8169 hardcode_libdir_flag_spec='-L$libdir' 8170 hardcode_shlibpath_var=no 8171 ;; 8172 8173 freebsd1*) 8174 ld_shlibs=no 8175 ;; 8176 8177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8178 # support. Future versions do this automatically, but an explicit c++rt0.o 8179 # does not break anything, and helps significantly (at the cost of a little 8180 # extra space). 8181 freebsd2.2*) 8182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8183 hardcode_libdir_flag_spec='-R$libdir' 8184 hardcode_direct=yes 8185 hardcode_shlibpath_var=no 8186 ;; 8187 8188 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8189 freebsd2*) 8190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8191 hardcode_direct=yes 8192 hardcode_minus_L=yes 8193 hardcode_shlibpath_var=no 8194 ;; 8195 8196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8197 freebsd* | dragonfly*) 8198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8199 hardcode_libdir_flag_spec='-R$libdir' 8200 hardcode_direct=yes 8201 hardcode_shlibpath_var=no 8202 ;; 8203 8204 hpux9*) 8205 if test "$GCC" = yes; then 8206 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' 8207 else 8208 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' 8209 fi 8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8211 hardcode_libdir_separator=: 8212 hardcode_direct=yes 8213 8214 # hardcode_minus_L: Not really in the search PATH, 8215 # but as the default location of the library. 8216 hardcode_minus_L=yes 8217 export_dynamic_flag_spec='${wl}-E' 8218 ;; 8219 8220 hpux10*) 8221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8223 else 8224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8225 fi 8226 if test "$with_gnu_ld" = no; then 8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8228 hardcode_libdir_separator=: 8229 8230 hardcode_direct=yes 8231 export_dynamic_flag_spec='${wl}-E' 8232 8233 # hardcode_minus_L: Not really in the search PATH, 8234 # but as the default location of the library. 8235 hardcode_minus_L=yes 8236 fi 8237 ;; 8238 8239 hpux11*) 8240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8241 case $host_cpu in 8242 hppa*64*) 8243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8244 ;; 8245 ia64*) 8246 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8247 ;; 8248 *) 8249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8250 ;; 8251 esac 8252 else 8253 case $host_cpu in 8254 hppa*64*) 8255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8256 ;; 8257 ia64*) 8258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8259 ;; 8260 *) 8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8262 ;; 8263 esac 8264 fi 8265 if test "$with_gnu_ld" = no; then 8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8267 hardcode_libdir_separator=: 8268 8269 case $host_cpu in 8270 hppa*64*|ia64*) 8271 hardcode_libdir_flag_spec_ld='+b $libdir' 8272 hardcode_direct=no 8273 hardcode_shlibpath_var=no 8274 ;; 8275 *) 8276 hardcode_direct=yes 8277 export_dynamic_flag_spec='${wl}-E' 8278 8279 # hardcode_minus_L: Not really in the search PATH, 8280 # but as the default location of the library. 8281 hardcode_minus_L=yes 8282 ;; 8283 esac 8284 fi 8285 ;; 8286 8287 irix5* | irix6* | nonstopux*) 8288 if test "$GCC" = yes; then 8289 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' 8290 else 8291 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' 8292 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8293 fi 8294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8295 hardcode_libdir_separator=: 8296 link_all_deplibs=yes 8297 ;; 8298 8299 netbsd*) 8300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8302 else 8303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8304 fi 8305 hardcode_libdir_flag_spec='-R$libdir' 8306 hardcode_direct=yes 8307 hardcode_shlibpath_var=no 8308 ;; 8309 8310 newsos6) 8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8312 hardcode_direct=yes 8313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8314 hardcode_libdir_separator=: 8315 hardcode_shlibpath_var=no 8316 ;; 8317 8318 openbsd*) 8319 if test -f /usr/libexec/ld.so; then 8320 hardcode_direct=yes 8321 hardcode_shlibpath_var=no 8322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8326 export_dynamic_flag_spec='${wl}-E' 8327 else 8328 case $host_os in 8329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8331 hardcode_libdir_flag_spec='-R$libdir' 8332 ;; 8333 *) 8334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8336 ;; 8337 esac 8338 fi 8339 else 8340 ld_shlibs=no 8341 fi 8342 ;; 8343 8344 os2*) 8345 hardcode_libdir_flag_spec='-L$libdir' 8346 hardcode_minus_L=yes 8347 allow_undefined_flag=unsupported 8348 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' 8349 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8350 ;; 8351 8352 osf3*) 8353 if test "$GCC" = yes; then 8354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8355 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' 8356 else 8357 allow_undefined_flag=' -expect_unresolved \*' 8358 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' 8359 fi 8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8361 hardcode_libdir_separator=: 8362 ;; 8363 8364 osf4* | osf5*) # as osf3* with the addition of -msym flag 8365 if test "$GCC" = yes; then 8366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8367 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' 8368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8369 else 8370 allow_undefined_flag=' -expect_unresolved \*' 8371 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' 8372 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8373 $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' 8374 8375 # Both c and cxx compiler support -rpath directly 8376 hardcode_libdir_flag_spec='-rpath $libdir' 8377 fi 8378 hardcode_libdir_separator=: 8379 ;; 8380 8381 solaris*) 8382 no_undefined_flag=' -z text' 8383 if test "$GCC" = yes; then 8384 wlarc='${wl}' 8385 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8386 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8388 else 8389 wlarc='' 8390 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8391 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8393 fi 8394 hardcode_libdir_flag_spec='-R$libdir' 8395 hardcode_shlibpath_var=no 8396 case $host_os in 8397 solaris2.[0-5] | solaris2.[0-5].*) ;; 8398 *) 8399 # The compiler driver will combine and reorder linker options, 8400 # but understands `-z linker_flag'. GCC discards it without `$wl', 8401 # but is careful enough not to reorder. 8402 # Supported since Solaris 2.6 (maybe 2.5.1?) 8403 if test "$GCC" = yes; then 8404 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8405 else 8406 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8407 fi 8408 ;; 8409 esac 8410 link_all_deplibs=yes 8411 ;; 8412 8413 sunos4*) 8414 if test "x$host_vendor" = xsequent; then 8415 # Use $CC to link under sequent, because it throws in some extra .o 8416 # files that make .init and .fini sections work. 8417 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8418 else 8419 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8420 fi 8421 hardcode_libdir_flag_spec='-L$libdir' 8422 hardcode_direct=yes 8423 hardcode_minus_L=yes 8424 hardcode_shlibpath_var=no 8425 ;; 8426 8427 sysv4) 8428 case $host_vendor in 8429 sni) 8430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8431 hardcode_direct=yes # is this really true??? 8432 ;; 8433 siemens) 8434 ## LD is ld it makes a PLAMLIB 8435 ## CC just makes a GrossModule. 8436 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8437 reload_cmds='$CC -r -o $output$reload_objs' 8438 hardcode_direct=no 8439 ;; 8440 motorola) 8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8442 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8443 ;; 8444 esac 8445 runpath_var='LD_RUN_PATH' 8446 hardcode_shlibpath_var=no 8447 ;; 8448 8449 sysv4.3*) 8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8451 hardcode_shlibpath_var=no 8452 export_dynamic_flag_spec='-Bexport' 8453 ;; 8454 8455 sysv4*MP*) 8456 if test -d /usr/nec; then 8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8458 hardcode_shlibpath_var=no 8459 runpath_var=LD_RUN_PATH 8460 hardcode_runpath_var=yes 8461 ld_shlibs=yes 8462 fi 8463 ;; 8464 8465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8466 no_undefined_flag='${wl}-z,text' 8467 archive_cmds_need_lc=no 8468 hardcode_shlibpath_var=no 8469 runpath_var='LD_RUN_PATH' 8470 8471 if test "$GCC" = yes; then 8472 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8473 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8474 else 8475 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8476 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8477 fi 8478 ;; 8479 8480 sysv5* | sco3.2v5* | sco5v6*) 8481 # Note: We can NOT use -z defs as we might desire, because we do not 8482 # link with -lc, and that would cause any symbols used from libc to 8483 # always be unresolved, which means just about no library would 8484 # ever link correctly. If we're not using GNU ld we use -z text 8485 # though, which does catch some bad symbols but isn't as heavy-handed 8486 # as -z defs. 8487 no_undefined_flag='${wl}-z,text' 8488 allow_undefined_flag='${wl}-z,nodefs' 8489 archive_cmds_need_lc=no 8490 hardcode_shlibpath_var=no 8491 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8492 hardcode_libdir_separator=':' 8493 link_all_deplibs=yes 8494 export_dynamic_flag_spec='${wl}-Bexport' 8495 runpath_var='LD_RUN_PATH' 8496 8497 if test "$GCC" = yes; then 8498 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8500 else 8501 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8503 fi 8504 ;; 8505 8506 uts4*) 8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8508 hardcode_libdir_flag_spec='-L$libdir' 8509 hardcode_shlibpath_var=no 8510 ;; 8511 8512 *) 8513 ld_shlibs=no 8514 ;; 8515 esac 8516 fi 8517 8518{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8519echo "${ECHO_T}$ld_shlibs" >&6; } 8520test "$ld_shlibs" = no && can_build_shared=no 8521 8522# 8523# Do we need to explicitly link libc? 8524# 8525case "x$archive_cmds_need_lc" in 8526x|xyes) 8527 # Assume -lc should be added 8528 archive_cmds_need_lc=yes 8529 8530 if test "$enable_shared" = yes && test "$GCC" = yes; then 8531 case $archive_cmds in 8532 *'~'*) 8533 # FIXME: we may have to deal with multi-command sequences. 8534 ;; 8535 '$CC '*) 8536 # Test whether the compiler implicitly links with -lc since on some 8537 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8538 # to ld, don't add -lc before -lgcc. 8539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8540echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8541 $rm conftest* 8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8543 8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8545 (eval $ac_compile) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); } 2>conftest.err; then 8549 soname=conftest 8550 lib=conftest 8551 libobjs=conftest.$ac_objext 8552 deplibs= 8553 wl=$lt_prog_compiler_wl 8554 pic_flag=$lt_prog_compiler_pic 8555 compiler_flags=-v 8556 linker_flags=-v 8557 verstring= 8558 output_objdir=. 8559 libname=conftest 8560 lt_save_allow_undefined_flag=$allow_undefined_flag 8561 allow_undefined_flag= 8562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8563 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8564 ac_status=$? 8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8566 (exit $ac_status); } 8567 then 8568 archive_cmds_need_lc=no 8569 else 8570 archive_cmds_need_lc=yes 8571 fi 8572 allow_undefined_flag=$lt_save_allow_undefined_flag 8573 else 8574 cat conftest.err 1>&5 8575 fi 8576 $rm conftest* 8577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8578echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8579 ;; 8580 esac 8581 fi 8582 ;; 8583esac 8584 8585{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8586echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8587library_names_spec= 8588libname_spec='lib$name' 8589soname_spec= 8590shrext_cmds=".so" 8591postinstall_cmds= 8592postuninstall_cmds= 8593finish_cmds= 8594finish_eval= 8595shlibpath_var= 8596shlibpath_overrides_runpath=unknown 8597version_type=none 8598dynamic_linker="$host_os ld.so" 8599sys_lib_dlsearch_path_spec="/lib /usr/lib" 8600 8601if test "$GCC" = yes; then 8602 case $host_os in 8603 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8604 *) lt_awk_arg="/^libraries:/" ;; 8605 esac 8606 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8607 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8608 # if the path contains ";" then we assume it to be the separator 8609 # otherwise default to the standard path separator (i.e. ":") - it is 8610 # assumed that no part of a normal pathname contains ";" but that should 8611 # okay in the real world where ";" in dirpaths is itself problematic. 8612 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8613 else 8614 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8615 fi 8616 # Ok, now we have the path, separated by spaces, we can step through it 8617 # and add multilib dir if necessary. 8618 lt_tmp_lt_search_path_spec= 8619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8620 for lt_sys_path in $lt_search_path_spec; do 8621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8623 else 8624 test -d "$lt_sys_path" && \ 8625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8626 fi 8627 done 8628 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8629BEGIN {RS=" "; FS="/|\n";} { 8630 lt_foo=""; 8631 lt_count=0; 8632 for (lt_i = NF; lt_i > 0; lt_i--) { 8633 if ($lt_i != "" && $lt_i != ".") { 8634 if ($lt_i == "..") { 8635 lt_count++; 8636 } else { 8637 if (lt_count == 0) { 8638 lt_foo="/" $lt_i lt_foo; 8639 } else { 8640 lt_count--; 8641 } 8642 } 8643 } 8644 } 8645 if (lt_foo != "") { lt_freq[lt_foo]++; } 8646 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8647}'` 8648 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8649else 8650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8651fi 8652need_lib_prefix=unknown 8653hardcode_into_libs=no 8654 8655# when you set need_version to no, make sure it does not cause -set_version 8656# flags to be left without arguments 8657need_version=unknown 8658 8659case $host_os in 8660aix3*) 8661 version_type=linux 8662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8663 shlibpath_var=LIBPATH 8664 8665 # AIX 3 has no versioning support, so we append a major version to the name. 8666 soname_spec='${libname}${release}${shared_ext}$major' 8667 ;; 8668 8669aix4* | aix5*) 8670 version_type=linux 8671 need_lib_prefix=no 8672 need_version=no 8673 hardcode_into_libs=yes 8674 if test "$host_cpu" = ia64; then 8675 # AIX 5 supports IA64 8676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8677 shlibpath_var=LD_LIBRARY_PATH 8678 else 8679 # With GCC up to 2.95.x, collect2 would create an import file 8680 # for dependence libraries. The import file would start with 8681 # the line `#! .'. This would cause the generated library to 8682 # depend on `.', always an invalid library. This was fixed in 8683 # development snapshots of GCC prior to 3.0. 8684 case $host_os in 8685 aix4 | aix4.[01] | aix4.[01].*) 8686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8687 echo ' yes ' 8688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8689 : 8690 else 8691 can_build_shared=no 8692 fi 8693 ;; 8694 esac 8695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8696 # soname into executable. Probably we can add versioning support to 8697 # collect2, so additional links can be useful in future. 8698 if test "$aix_use_runtimelinking" = yes; then 8699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8700 # instead of lib<name>.a to let people know that these are not 8701 # typical AIX shared libraries. 8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8703 else 8704 # We preserve .a as extension for shared libraries through AIX4.2 8705 # and later when we are not doing run time linking. 8706 library_names_spec='${libname}${release}.a $libname.a' 8707 soname_spec='${libname}${release}${shared_ext}$major' 8708 fi 8709 shlibpath_var=LIBPATH 8710 fi 8711 ;; 8712 8713amigaos*) 8714 library_names_spec='$libname.ixlibrary $libname.a' 8715 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8716 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' 8717 ;; 8718 8719beos*) 8720 library_names_spec='${libname}${shared_ext}' 8721 dynamic_linker="$host_os ld.so" 8722 shlibpath_var=LIBRARY_PATH 8723 ;; 8724 8725bsdi[45]*) 8726 version_type=linux 8727 need_version=no 8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8729 soname_spec='${libname}${release}${shared_ext}$major' 8730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8731 shlibpath_var=LD_LIBRARY_PATH 8732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8734 # the default ld.so.conf also contains /usr/contrib/lib and 8735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8736 # libtool to hard-code these into programs 8737 ;; 8738 8739cygwin* | mingw* | pw32*) 8740 version_type=windows 8741 shrext_cmds=".dll" 8742 need_version=no 8743 need_lib_prefix=no 8744 8745 case $GCC,$host_os in 8746 yes,cygwin* | yes,mingw* | yes,pw32*) 8747 library_names_spec='$libname.dll.a' 8748 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8749 postinstall_cmds='base_file=`basename \${file}`~ 8750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8751 dldir=$destdir/`dirname \$dlpath`~ 8752 test -d \$dldir || mkdir -p \$dldir~ 8753 $install_prog $dir/$dlname \$dldir/$dlname~ 8754 chmod a+x \$dldir/$dlname' 8755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8756 dlpath=$dir/\$dldll~ 8757 $rm \$dlpath' 8758 shlibpath_overrides_runpath=yes 8759 8760 case $host_os in 8761 cygwin*) 8762 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8765 ;; 8766 mingw*) 8767 # MinGW DLLs use traditional 'lib' prefix 8768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8771 # It is most probably a Windows format PATH printed by 8772 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8773 # path with ; separators, and with drive letters. We can handle the 8774 # drive letters (cygwin fileutils understands them), so leave them, 8775 # especially as we might pass files found there to a mingw objdump, 8776 # which wouldn't understand a cygwinified path. Ahh. 8777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8778 else 8779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8780 fi 8781 ;; 8782 pw32*) 8783 # pw32 DLLs use 'pw' prefix rather than 'lib' 8784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8785 ;; 8786 esac 8787 ;; 8788 8789 *) 8790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8791 ;; 8792 esac 8793 dynamic_linker='Win32 ld.exe' 8794 # FIXME: first we should search . and the directory the executable is in 8795 shlibpath_var=PATH 8796 ;; 8797 8798darwin* | rhapsody*) 8799 dynamic_linker="$host_os dyld" 8800 version_type=darwin 8801 need_lib_prefix=no 8802 need_version=no 8803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8804 soname_spec='${libname}${release}${major}$shared_ext' 8805 shlibpath_overrides_runpath=yes 8806 shlibpath_var=DYLD_LIBRARY_PATH 8807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8808 8809 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8811 ;; 8812 8813dgux*) 8814 version_type=linux 8815 need_lib_prefix=no 8816 need_version=no 8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8818 soname_spec='${libname}${release}${shared_ext}$major' 8819 shlibpath_var=LD_LIBRARY_PATH 8820 ;; 8821 8822freebsd1*) 8823 dynamic_linker=no 8824 ;; 8825 8826freebsd* | dragonfly*) 8827 # DragonFly does not have aout. When/if they implement a new 8828 # versioning mechanism, adjust this. 8829 if test -x /usr/bin/objformat; then 8830 objformat=`/usr/bin/objformat` 8831 else 8832 case $host_os in 8833 freebsd[123]*) objformat=aout ;; 8834 *) objformat=elf ;; 8835 esac 8836 fi 8837 # Handle Gentoo/FreeBSD as it was Linux 8838 case $host_vendor in 8839 gentoo) 8840 version_type=linux ;; 8841 *) 8842 version_type=freebsd-$objformat ;; 8843 esac 8844 8845 case $version_type in 8846 freebsd-elf*) 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8848 need_version=no 8849 need_lib_prefix=no 8850 ;; 8851 freebsd-*) 8852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8853 need_version=yes 8854 ;; 8855 linux) 8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8857 soname_spec='${libname}${release}${shared_ext}$major' 8858 need_lib_prefix=no 8859 need_version=no 8860 ;; 8861 esac 8862 shlibpath_var=LD_LIBRARY_PATH 8863 case $host_os in 8864 freebsd2*) 8865 shlibpath_overrides_runpath=yes 8866 ;; 8867 freebsd3.[01]* | freebsdelf3.[01]*) 8868 shlibpath_overrides_runpath=yes 8869 hardcode_into_libs=yes 8870 ;; 8871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8873 shlibpath_overrides_runpath=no 8874 hardcode_into_libs=yes 8875 ;; 8876 *) # from 4.6 on, and DragonFly 8877 shlibpath_overrides_runpath=yes 8878 hardcode_into_libs=yes 8879 ;; 8880 esac 8881 ;; 8882 8883gnu*) 8884 version_type=linux 8885 need_lib_prefix=no 8886 need_version=no 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8888 soname_spec='${libname}${release}${shared_ext}$major' 8889 shlibpath_var=LD_LIBRARY_PATH 8890 hardcode_into_libs=yes 8891 ;; 8892 8893hpux9* | hpux10* | hpux11*) 8894 # Give a soname corresponding to the major version so that dld.sl refuses to 8895 # link against other versions. 8896 version_type=sunos 8897 need_lib_prefix=no 8898 need_version=no 8899 case $host_cpu in 8900 ia64*) 8901 shrext_cmds='.so' 8902 hardcode_into_libs=yes 8903 dynamic_linker="$host_os dld.so" 8904 shlibpath_var=LD_LIBRARY_PATH 8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8907 soname_spec='${libname}${release}${shared_ext}$major' 8908 if test "X$HPUX_IA64_MODE" = X32; then 8909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8910 else 8911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8912 fi 8913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8914 ;; 8915 hppa*64*) 8916 shrext_cmds='.sl' 8917 hardcode_into_libs=yes 8918 dynamic_linker="$host_os dld.sl" 8919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8922 soname_spec='${libname}${release}${shared_ext}$major' 8923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8925 ;; 8926 *) 8927 shrext_cmds='.sl' 8928 dynamic_linker="$host_os dld.sl" 8929 shlibpath_var=SHLIB_PATH 8930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8932 soname_spec='${libname}${release}${shared_ext}$major' 8933 ;; 8934 esac 8935 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8936 postinstall_cmds='chmod 555 $lib' 8937 ;; 8938 8939interix[3-9]*) 8940 version_type=linux 8941 need_lib_prefix=no 8942 need_version=no 8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8944 soname_spec='${libname}${release}${shared_ext}$major' 8945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8946 shlibpath_var=LD_LIBRARY_PATH 8947 shlibpath_overrides_runpath=no 8948 hardcode_into_libs=yes 8949 ;; 8950 8951irix5* | irix6* | nonstopux*) 8952 case $host_os in 8953 nonstopux*) version_type=nonstopux ;; 8954 *) 8955 if test "$lt_cv_prog_gnu_ld" = yes; then 8956 version_type=linux 8957 else 8958 version_type=irix 8959 fi ;; 8960 esac 8961 need_lib_prefix=no 8962 need_version=no 8963 soname_spec='${libname}${release}${shared_ext}$major' 8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8965 case $host_os in 8966 irix5* | nonstopux*) 8967 libsuff= shlibsuff= 8968 ;; 8969 *) 8970 case $LD in # libtool.m4 will add one of these switches to LD 8971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8972 libsuff= shlibsuff= libmagic=32-bit;; 8973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8974 libsuff=32 shlibsuff=N32 libmagic=N32;; 8975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8976 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8977 *) libsuff= shlibsuff= libmagic=never-match;; 8978 esac 8979 ;; 8980 esac 8981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8982 shlibpath_overrides_runpath=no 8983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8985 hardcode_into_libs=yes 8986 ;; 8987 8988# No shared lib support for Linux oldld, aout, or coff. 8989linux*oldld* | linux*aout* | linux*coff*) 8990 dynamic_linker=no 8991 ;; 8992 8993# This must be Linux ELF. 8994linux* | k*bsd*-gnu) 8995 version_type=linux 8996 need_lib_prefix=no 8997 need_version=no 8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8999 soname_spec='${libname}${release}${shared_ext}$major' 9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9001 shlibpath_var=LD_LIBRARY_PATH 9002 shlibpath_overrides_runpath=no 9003 # This implies no fast_install, which is unacceptable. 9004 # Some rework will be needed to allow for fast_install 9005 # before this can be enabled. 9006 hardcode_into_libs=yes 9007 9008 # Append ld.so.conf contents to the search path 9009 if test -f /etc/ld.so.conf; then 9010 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9012 fi 9013 9014 # We used to test for /lib/ld.so.1 and disable shared libraries on 9015 # powerpc, because MkLinux only supported shared libraries with the 9016 # GNU dynamic linker. Since this was broken with cross compilers, 9017 # most powerpc-linux boxes support dynamic linking these days and 9018 # people can always --disable-shared, the test was removed, and we 9019 # assume the GNU/Linux dynamic linker is in use. 9020 dynamic_linker='GNU/Linux ld.so' 9021 ;; 9022 9023netbsd*) 9024 version_type=sunos 9025 need_lib_prefix=no 9026 need_version=no 9027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9030 dynamic_linker='NetBSD (a.out) ld.so' 9031 else 9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9033 soname_spec='${libname}${release}${shared_ext}$major' 9034 dynamic_linker='NetBSD ld.elf_so' 9035 fi 9036 shlibpath_var=LD_LIBRARY_PATH 9037 shlibpath_overrides_runpath=yes 9038 hardcode_into_libs=yes 9039 ;; 9040 9041newsos6) 9042 version_type=linux 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 shlibpath_var=LD_LIBRARY_PATH 9045 shlibpath_overrides_runpath=yes 9046 ;; 9047 9048nto-qnx*) 9049 version_type=linux 9050 need_lib_prefix=no 9051 need_version=no 9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9053 soname_spec='${libname}${release}${shared_ext}$major' 9054 shlibpath_var=LD_LIBRARY_PATH 9055 shlibpath_overrides_runpath=yes 9056 ;; 9057 9058openbsd*) 9059 version_type=sunos 9060 sys_lib_dlsearch_path_spec="/usr/lib" 9061 need_lib_prefix=no 9062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9063 case $host_os in 9064 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9065 *) need_version=no ;; 9066 esac 9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9069 shlibpath_var=LD_LIBRARY_PATH 9070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9071 case $host_os in 9072 openbsd2.[89] | openbsd2.[89].*) 9073 shlibpath_overrides_runpath=no 9074 ;; 9075 *) 9076 shlibpath_overrides_runpath=yes 9077 ;; 9078 esac 9079 else 9080 shlibpath_overrides_runpath=yes 9081 fi 9082 ;; 9083 9084os2*) 9085 libname_spec='$name' 9086 shrext_cmds=".dll" 9087 need_lib_prefix=no 9088 library_names_spec='$libname${shared_ext} $libname.a' 9089 dynamic_linker='OS/2 ld.exe' 9090 shlibpath_var=LIBPATH 9091 ;; 9092 9093osf3* | osf4* | osf5*) 9094 version_type=osf 9095 need_lib_prefix=no 9096 need_version=no 9097 soname_spec='${libname}${release}${shared_ext}$major' 9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9099 shlibpath_var=LD_LIBRARY_PATH 9100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9102 ;; 9103 9104rdos*) 9105 dynamic_linker=no 9106 ;; 9107 9108solaris*) 9109 version_type=linux 9110 need_lib_prefix=no 9111 need_version=no 9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9113 soname_spec='${libname}${release}${shared_ext}$major' 9114 shlibpath_var=LD_LIBRARY_PATH 9115 shlibpath_overrides_runpath=yes 9116 hardcode_into_libs=yes 9117 # ldd complains unless libraries are executable 9118 postinstall_cmds='chmod +x $lib' 9119 ;; 9120 9121sunos4*) 9122 version_type=sunos 9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9125 shlibpath_var=LD_LIBRARY_PATH 9126 shlibpath_overrides_runpath=yes 9127 if test "$with_gnu_ld" = yes; then 9128 need_lib_prefix=no 9129 fi 9130 need_version=yes 9131 ;; 9132 9133sysv4 | sysv4.3*) 9134 version_type=linux 9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9136 soname_spec='${libname}${release}${shared_ext}$major' 9137 shlibpath_var=LD_LIBRARY_PATH 9138 case $host_vendor in 9139 sni) 9140 shlibpath_overrides_runpath=no 9141 need_lib_prefix=no 9142 export_dynamic_flag_spec='${wl}-Blargedynsym' 9143 runpath_var=LD_RUN_PATH 9144 ;; 9145 siemens) 9146 need_lib_prefix=no 9147 ;; 9148 motorola) 9149 need_lib_prefix=no 9150 need_version=no 9151 shlibpath_overrides_runpath=no 9152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9153 ;; 9154 esac 9155 ;; 9156 9157sysv4*MP*) 9158 if test -d /usr/nec ;then 9159 version_type=linux 9160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9161 soname_spec='$libname${shared_ext}.$major' 9162 shlibpath_var=LD_LIBRARY_PATH 9163 fi 9164 ;; 9165 9166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9167 version_type=freebsd-elf 9168 need_lib_prefix=no 9169 need_version=no 9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9171 soname_spec='${libname}${release}${shared_ext}$major' 9172 shlibpath_var=LD_LIBRARY_PATH 9173 hardcode_into_libs=yes 9174 if test "$with_gnu_ld" = yes; then 9175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9176 shlibpath_overrides_runpath=no 9177 else 9178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9179 shlibpath_overrides_runpath=yes 9180 case $host_os in 9181 sco3.2v5*) 9182 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9183 ;; 9184 esac 9185 fi 9186 sys_lib_dlsearch_path_spec='/usr/lib' 9187 ;; 9188 9189uts4*) 9190 version_type=linux 9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9192 soname_spec='${libname}${release}${shared_ext}$major' 9193 shlibpath_var=LD_LIBRARY_PATH 9194 ;; 9195 9196*) 9197 dynamic_linker=no 9198 ;; 9199esac 9200{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9201echo "${ECHO_T}$dynamic_linker" >&6; } 9202test "$dynamic_linker" = no && can_build_shared=no 9203 9204variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9205if test "$GCC" = yes; then 9206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9207fi 9208 9209{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9210echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9211hardcode_action= 9212if test -n "$hardcode_libdir_flag_spec" || \ 9213 test -n "$runpath_var" || \ 9214 test "X$hardcode_automatic" = "Xyes" ; then 9215 9216 # We can hardcode non-existant directories. 9217 if test "$hardcode_direct" != no && 9218 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9219 # have to relink, otherwise we might link with an installed library 9220 # when we should be linking with a yet-to-be-installed one 9221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9222 test "$hardcode_minus_L" != no; then 9223 # Linking always hardcodes the temporary library directory. 9224 hardcode_action=relink 9225 else 9226 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9227 hardcode_action=immediate 9228 fi 9229else 9230 # We cannot hardcode anything, or else we can only hardcode existing 9231 # directories. 9232 hardcode_action=unsupported 9233fi 9234{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9235echo "${ECHO_T}$hardcode_action" >&6; } 9236 9237if test "$hardcode_action" = relink; then 9238 # Fast installation is not supported 9239 enable_fast_install=no 9240elif test "$shlibpath_overrides_runpath" = yes || 9241 test "$enable_shared" = no; then 9242 # Fast installation is not necessary 9243 enable_fast_install=needless 9244fi 9245 9246striplib= 9247old_striplib= 9248{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9249echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9250if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9252 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9253 { echo "$as_me:$LINENO: result: yes" >&5 9254echo "${ECHO_T}yes" >&6; } 9255else 9256# FIXME - insert some real tests, host_os isn't really good enough 9257 case $host_os in 9258 darwin*) 9259 if test -n "$STRIP" ; then 9260 striplib="$STRIP -x" 9261 old_striplib="$STRIP -S" 9262 { echo "$as_me:$LINENO: result: yes" >&5 9263echo "${ECHO_T}yes" >&6; } 9264 else 9265 { echo "$as_me:$LINENO: result: no" >&5 9266echo "${ECHO_T}no" >&6; } 9267fi 9268 ;; 9269 *) 9270 { echo "$as_me:$LINENO: result: no" >&5 9271echo "${ECHO_T}no" >&6; } 9272 ;; 9273 esac 9274fi 9275 9276if test "x$enable_dlopen" != xyes; then 9277 enable_dlopen=unknown 9278 enable_dlopen_self=unknown 9279 enable_dlopen_self_static=unknown 9280else 9281 lt_cv_dlopen=no 9282 lt_cv_dlopen_libs= 9283 9284 case $host_os in 9285 beos*) 9286 lt_cv_dlopen="load_add_on" 9287 lt_cv_dlopen_libs= 9288 lt_cv_dlopen_self=yes 9289 ;; 9290 9291 mingw* | pw32*) 9292 lt_cv_dlopen="LoadLibrary" 9293 lt_cv_dlopen_libs= 9294 ;; 9295 9296 cygwin*) 9297 lt_cv_dlopen="dlopen" 9298 lt_cv_dlopen_libs= 9299 ;; 9300 9301 darwin*) 9302 # if libdl is installed we need to link against it 9303 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9305if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9306 echo $ECHO_N "(cached) $ECHO_C" >&6 9307else 9308 ac_check_lib_save_LIBS=$LIBS 9309LIBS="-ldl $LIBS" 9310cat >conftest.$ac_ext <<_ACEOF 9311/* confdefs.h. */ 9312_ACEOF 9313cat confdefs.h >>conftest.$ac_ext 9314cat >>conftest.$ac_ext <<_ACEOF 9315/* end confdefs.h. */ 9316 9317/* Override any GCC internal prototype to avoid an error. 9318 Use char because int might match the return type of a GCC 9319 builtin and then its argument prototype would still apply. */ 9320#ifdef __cplusplus 9321extern "C" 9322#endif 9323char dlopen (); 9324int 9325main () 9326{ 9327return dlopen (); 9328 ; 9329 return 0; 9330} 9331_ACEOF 9332rm -f conftest.$ac_objext conftest$ac_exeext 9333if { (ac_try="$ac_link" 9334case "(($ac_try" in 9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9336 *) ac_try_echo=$ac_try;; 9337esac 9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9339 (eval "$ac_link") 2>conftest.er1 9340 ac_status=$? 9341 grep -v '^ *+' conftest.er1 >conftest.err 9342 rm -f conftest.er1 9343 cat conftest.err >&5 9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9345 (exit $ac_status); } && { 9346 test -z "$ac_c_werror_flag" || 9347 test ! -s conftest.err 9348 } && test -s conftest$ac_exeext && 9349 $as_test_x conftest$ac_exeext; then 9350 ac_cv_lib_dl_dlopen=yes 9351else 9352 echo "$as_me: failed program was:" >&5 9353sed 's/^/| /' conftest.$ac_ext >&5 9354 9355 ac_cv_lib_dl_dlopen=no 9356fi 9357 9358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9359 conftest$ac_exeext conftest.$ac_ext 9360LIBS=$ac_check_lib_save_LIBS 9361fi 9362{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9364if test $ac_cv_lib_dl_dlopen = yes; then 9365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9366else 9367 9368 lt_cv_dlopen="dyld" 9369 lt_cv_dlopen_libs= 9370 lt_cv_dlopen_self=yes 9371 9372fi 9373 9374 ;; 9375 9376 *) 9377 { echo "$as_me:$LINENO: checking for shl_load" >&5 9378echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9379if test "${ac_cv_func_shl_load+set}" = set; then 9380 echo $ECHO_N "(cached) $ECHO_C" >&6 9381else 9382 cat >conftest.$ac_ext <<_ACEOF 9383/* confdefs.h. */ 9384_ACEOF 9385cat confdefs.h >>conftest.$ac_ext 9386cat >>conftest.$ac_ext <<_ACEOF 9387/* end confdefs.h. */ 9388/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9389 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9390#define shl_load innocuous_shl_load 9391 9392/* System header to define __stub macros and hopefully few prototypes, 9393 which can conflict with char shl_load (); below. 9394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9395 <limits.h> exists even on freestanding compilers. */ 9396 9397#ifdef __STDC__ 9398# include <limits.h> 9399#else 9400# include <assert.h> 9401#endif 9402 9403#undef shl_load 9404 9405/* Override any GCC internal prototype to avoid an error. 9406 Use char because int might match the return type of a GCC 9407 builtin and then its argument prototype would still apply. */ 9408#ifdef __cplusplus 9409extern "C" 9410#endif 9411char shl_load (); 9412/* The GNU C library defines this for functions which it implements 9413 to always fail with ENOSYS. Some functions are actually named 9414 something starting with __ and the normal name is an alias. */ 9415#if defined __stub_shl_load || defined __stub___shl_load 9416choke me 9417#endif 9418 9419int 9420main () 9421{ 9422return shl_load (); 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427rm -f conftest.$ac_objext conftest$ac_exeext 9428if { (ac_try="$ac_link" 9429case "(($ac_try" in 9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9431 *) ac_try_echo=$ac_try;; 9432esac 9433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9434 (eval "$ac_link") 2>conftest.er1 9435 ac_status=$? 9436 grep -v '^ *+' conftest.er1 >conftest.err 9437 rm -f conftest.er1 9438 cat conftest.err >&5 9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9440 (exit $ac_status); } && { 9441 test -z "$ac_c_werror_flag" || 9442 test ! -s conftest.err 9443 } && test -s conftest$ac_exeext && 9444 $as_test_x conftest$ac_exeext; then 9445 ac_cv_func_shl_load=yes 9446else 9447 echo "$as_me: failed program was:" >&5 9448sed 's/^/| /' conftest.$ac_ext >&5 9449 9450 ac_cv_func_shl_load=no 9451fi 9452 9453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9454 conftest$ac_exeext conftest.$ac_ext 9455fi 9456{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9457echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9458if test $ac_cv_func_shl_load = yes; then 9459 lt_cv_dlopen="shl_load" 9460else 9461 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9462echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9463if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9464 echo $ECHO_N "(cached) $ECHO_C" >&6 9465else 9466 ac_check_lib_save_LIBS=$LIBS 9467LIBS="-ldld $LIBS" 9468cat >conftest.$ac_ext <<_ACEOF 9469/* confdefs.h. */ 9470_ACEOF 9471cat confdefs.h >>conftest.$ac_ext 9472cat >>conftest.$ac_ext <<_ACEOF 9473/* end confdefs.h. */ 9474 9475/* Override any GCC internal prototype to avoid an error. 9476 Use char because int might match the return type of a GCC 9477 builtin and then its argument prototype would still apply. */ 9478#ifdef __cplusplus 9479extern "C" 9480#endif 9481char shl_load (); 9482int 9483main () 9484{ 9485return shl_load (); 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490rm -f conftest.$ac_objext conftest$ac_exeext 9491if { (ac_try="$ac_link" 9492case "(($ac_try" in 9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9494 *) ac_try_echo=$ac_try;; 9495esac 9496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9497 (eval "$ac_link") 2>conftest.er1 9498 ac_status=$? 9499 grep -v '^ *+' conftest.er1 >conftest.err 9500 rm -f conftest.er1 9501 cat conftest.err >&5 9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9503 (exit $ac_status); } && { 9504 test -z "$ac_c_werror_flag" || 9505 test ! -s conftest.err 9506 } && test -s conftest$ac_exeext && 9507 $as_test_x conftest$ac_exeext; then 9508 ac_cv_lib_dld_shl_load=yes 9509else 9510 echo "$as_me: failed program was:" >&5 9511sed 's/^/| /' conftest.$ac_ext >&5 9512 9513 ac_cv_lib_dld_shl_load=no 9514fi 9515 9516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9517 conftest$ac_exeext conftest.$ac_ext 9518LIBS=$ac_check_lib_save_LIBS 9519fi 9520{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9521echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9522if test $ac_cv_lib_dld_shl_load = yes; then 9523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9524else 9525 { echo "$as_me:$LINENO: checking for dlopen" >&5 9526echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9527if test "${ac_cv_func_dlopen+set}" = set; then 9528 echo $ECHO_N "(cached) $ECHO_C" >&6 9529else 9530 cat >conftest.$ac_ext <<_ACEOF 9531/* confdefs.h. */ 9532_ACEOF 9533cat confdefs.h >>conftest.$ac_ext 9534cat >>conftest.$ac_ext <<_ACEOF 9535/* end confdefs.h. */ 9536/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9538#define dlopen innocuous_dlopen 9539 9540/* System header to define __stub macros and hopefully few prototypes, 9541 which can conflict with char dlopen (); below. 9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9543 <limits.h> exists even on freestanding compilers. */ 9544 9545#ifdef __STDC__ 9546# include <limits.h> 9547#else 9548# include <assert.h> 9549#endif 9550 9551#undef dlopen 9552 9553/* Override any GCC internal prototype to avoid an error. 9554 Use char because int might match the return type of a GCC 9555 builtin and then its argument prototype would still apply. */ 9556#ifdef __cplusplus 9557extern "C" 9558#endif 9559char dlopen (); 9560/* The GNU C library defines this for functions which it implements 9561 to always fail with ENOSYS. Some functions are actually named 9562 something starting with __ and the normal name is an alias. */ 9563#if defined __stub_dlopen || defined __stub___dlopen 9564choke me 9565#endif 9566 9567int 9568main () 9569{ 9570return dlopen (); 9571 ; 9572 return 0; 9573} 9574_ACEOF 9575rm -f conftest.$ac_objext conftest$ac_exeext 9576if { (ac_try="$ac_link" 9577case "(($ac_try" in 9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9579 *) ac_try_echo=$ac_try;; 9580esac 9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9582 (eval "$ac_link") 2>conftest.er1 9583 ac_status=$? 9584 grep -v '^ *+' conftest.er1 >conftest.err 9585 rm -f conftest.er1 9586 cat conftest.err >&5 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9588 (exit $ac_status); } && { 9589 test -z "$ac_c_werror_flag" || 9590 test ! -s conftest.err 9591 } && test -s conftest$ac_exeext && 9592 $as_test_x conftest$ac_exeext; then 9593 ac_cv_func_dlopen=yes 9594else 9595 echo "$as_me: failed program was:" >&5 9596sed 's/^/| /' conftest.$ac_ext >&5 9597 9598 ac_cv_func_dlopen=no 9599fi 9600 9601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9602 conftest$ac_exeext conftest.$ac_ext 9603fi 9604{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9605echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9606if test $ac_cv_func_dlopen = yes; then 9607 lt_cv_dlopen="dlopen" 9608else 9609 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9610echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9611if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9612 echo $ECHO_N "(cached) $ECHO_C" >&6 9613else 9614 ac_check_lib_save_LIBS=$LIBS 9615LIBS="-ldl $LIBS" 9616cat >conftest.$ac_ext <<_ACEOF 9617/* confdefs.h. */ 9618_ACEOF 9619cat confdefs.h >>conftest.$ac_ext 9620cat >>conftest.$ac_ext <<_ACEOF 9621/* end confdefs.h. */ 9622 9623/* Override any GCC internal prototype to avoid an error. 9624 Use char because int might match the return type of a GCC 9625 builtin and then its argument prototype would still apply. */ 9626#ifdef __cplusplus 9627extern "C" 9628#endif 9629char dlopen (); 9630int 9631main () 9632{ 9633return dlopen (); 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638rm -f conftest.$ac_objext conftest$ac_exeext 9639if { (ac_try="$ac_link" 9640case "(($ac_try" in 9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9642 *) ac_try_echo=$ac_try;; 9643esac 9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9645 (eval "$ac_link") 2>conftest.er1 9646 ac_status=$? 9647 grep -v '^ *+' conftest.er1 >conftest.err 9648 rm -f conftest.er1 9649 cat conftest.err >&5 9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9651 (exit $ac_status); } && { 9652 test -z "$ac_c_werror_flag" || 9653 test ! -s conftest.err 9654 } && test -s conftest$ac_exeext && 9655 $as_test_x conftest$ac_exeext; then 9656 ac_cv_lib_dl_dlopen=yes 9657else 9658 echo "$as_me: failed program was:" >&5 9659sed 's/^/| /' conftest.$ac_ext >&5 9660 9661 ac_cv_lib_dl_dlopen=no 9662fi 9663 9664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9665 conftest$ac_exeext conftest.$ac_ext 9666LIBS=$ac_check_lib_save_LIBS 9667fi 9668{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9669echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9670if test $ac_cv_lib_dl_dlopen = yes; then 9671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9672else 9673 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9674echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9675if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9676 echo $ECHO_N "(cached) $ECHO_C" >&6 9677else 9678 ac_check_lib_save_LIBS=$LIBS 9679LIBS="-lsvld $LIBS" 9680cat >conftest.$ac_ext <<_ACEOF 9681/* confdefs.h. */ 9682_ACEOF 9683cat confdefs.h >>conftest.$ac_ext 9684cat >>conftest.$ac_ext <<_ACEOF 9685/* end confdefs.h. */ 9686 9687/* Override any GCC internal prototype to avoid an error. 9688 Use char because int might match the return type of a GCC 9689 builtin and then its argument prototype would still apply. */ 9690#ifdef __cplusplus 9691extern "C" 9692#endif 9693char dlopen (); 9694int 9695main () 9696{ 9697return dlopen (); 9698 ; 9699 return 0; 9700} 9701_ACEOF 9702rm -f conftest.$ac_objext conftest$ac_exeext 9703if { (ac_try="$ac_link" 9704case "(($ac_try" in 9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9706 *) ac_try_echo=$ac_try;; 9707esac 9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9709 (eval "$ac_link") 2>conftest.er1 9710 ac_status=$? 9711 grep -v '^ *+' conftest.er1 >conftest.err 9712 rm -f conftest.er1 9713 cat conftest.err >&5 9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 (exit $ac_status); } && { 9716 test -z "$ac_c_werror_flag" || 9717 test ! -s conftest.err 9718 } && test -s conftest$ac_exeext && 9719 $as_test_x conftest$ac_exeext; then 9720 ac_cv_lib_svld_dlopen=yes 9721else 9722 echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725 ac_cv_lib_svld_dlopen=no 9726fi 9727 9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9729 conftest$ac_exeext conftest.$ac_ext 9730LIBS=$ac_check_lib_save_LIBS 9731fi 9732{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9733echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9734if test $ac_cv_lib_svld_dlopen = yes; then 9735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9736else 9737 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9738echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9739if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9740 echo $ECHO_N "(cached) $ECHO_C" >&6 9741else 9742 ac_check_lib_save_LIBS=$LIBS 9743LIBS="-ldld $LIBS" 9744cat >conftest.$ac_ext <<_ACEOF 9745/* confdefs.h. */ 9746_ACEOF 9747cat confdefs.h >>conftest.$ac_ext 9748cat >>conftest.$ac_ext <<_ACEOF 9749/* end confdefs.h. */ 9750 9751/* Override any GCC internal prototype to avoid an error. 9752 Use char because int might match the return type of a GCC 9753 builtin and then its argument prototype would still apply. */ 9754#ifdef __cplusplus 9755extern "C" 9756#endif 9757char dld_link (); 9758int 9759main () 9760{ 9761return dld_link (); 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766rm -f conftest.$ac_objext conftest$ac_exeext 9767if { (ac_try="$ac_link" 9768case "(($ac_try" in 9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9770 *) ac_try_echo=$ac_try;; 9771esac 9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9773 (eval "$ac_link") 2>conftest.er1 9774 ac_status=$? 9775 grep -v '^ *+' conftest.er1 >conftest.err 9776 rm -f conftest.er1 9777 cat conftest.err >&5 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); } && { 9780 test -z "$ac_c_werror_flag" || 9781 test ! -s conftest.err 9782 } && test -s conftest$ac_exeext && 9783 $as_test_x conftest$ac_exeext; then 9784 ac_cv_lib_dld_dld_link=yes 9785else 9786 echo "$as_me: failed program was:" >&5 9787sed 's/^/| /' conftest.$ac_ext >&5 9788 9789 ac_cv_lib_dld_dld_link=no 9790fi 9791 9792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9793 conftest$ac_exeext conftest.$ac_ext 9794LIBS=$ac_check_lib_save_LIBS 9795fi 9796{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9797echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9798if test $ac_cv_lib_dld_dld_link = yes; then 9799 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9800fi 9801 9802 9803fi 9804 9805 9806fi 9807 9808 9809fi 9810 9811 9812fi 9813 9814 9815fi 9816 9817 ;; 9818 esac 9819 9820 if test "x$lt_cv_dlopen" != xno; then 9821 enable_dlopen=yes 9822 else 9823 enable_dlopen=no 9824 fi 9825 9826 case $lt_cv_dlopen in 9827 dlopen) 9828 save_CPPFLAGS="$CPPFLAGS" 9829 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9830 9831 save_LDFLAGS="$LDFLAGS" 9832 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9833 9834 save_LIBS="$LIBS" 9835 LIBS="$lt_cv_dlopen_libs $LIBS" 9836 9837 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9838echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9839if test "${lt_cv_dlopen_self+set}" = set; then 9840 echo $ECHO_N "(cached) $ECHO_C" >&6 9841else 9842 if test "$cross_compiling" = yes; then : 9843 lt_cv_dlopen_self=cross 9844else 9845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9846 lt_status=$lt_dlunknown 9847 cat > conftest.$ac_ext <<EOF 9848#line 9848 "configure" 9849#include "confdefs.h" 9850 9851#if HAVE_DLFCN_H 9852#include <dlfcn.h> 9853#endif 9854 9855#include <stdio.h> 9856 9857#ifdef RTLD_GLOBAL 9858# define LT_DLGLOBAL RTLD_GLOBAL 9859#else 9860# ifdef DL_GLOBAL 9861# define LT_DLGLOBAL DL_GLOBAL 9862# else 9863# define LT_DLGLOBAL 0 9864# endif 9865#endif 9866 9867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9868 find out it does not work in some platform. */ 9869#ifndef LT_DLLAZY_OR_NOW 9870# ifdef RTLD_LAZY 9871# define LT_DLLAZY_OR_NOW RTLD_LAZY 9872# else 9873# ifdef DL_LAZY 9874# define LT_DLLAZY_OR_NOW DL_LAZY 9875# else 9876# ifdef RTLD_NOW 9877# define LT_DLLAZY_OR_NOW RTLD_NOW 9878# else 9879# ifdef DL_NOW 9880# define LT_DLLAZY_OR_NOW DL_NOW 9881# else 9882# define LT_DLLAZY_OR_NOW 0 9883# endif 9884# endif 9885# endif 9886# endif 9887#endif 9888 9889#ifdef __cplusplus 9890extern "C" void exit (int); 9891#endif 9892 9893void fnord() { int i=42;} 9894int main () 9895{ 9896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9897 int status = $lt_dlunknown; 9898 9899 if (self) 9900 { 9901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9903 /* dlclose (self); */ 9904 } 9905 else 9906 puts (dlerror ()); 9907 9908 exit (status); 9909} 9910EOF 9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9912 (eval $ac_link) 2>&5 9913 ac_status=$? 9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9916 (./conftest; exit; ) >&5 2>/dev/null 9917 lt_status=$? 9918 case x$lt_status in 9919 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9920 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9921 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9922 esac 9923 else : 9924 # compilation failed 9925 lt_cv_dlopen_self=no 9926 fi 9927fi 9928rm -fr conftest* 9929 9930 9931fi 9932{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9933echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9934 9935 if test "x$lt_cv_dlopen_self" = xyes; then 9936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9937 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9938echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9939if test "${lt_cv_dlopen_self_static+set}" = set; then 9940 echo $ECHO_N "(cached) $ECHO_C" >&6 9941else 9942 if test "$cross_compiling" = yes; then : 9943 lt_cv_dlopen_self_static=cross 9944else 9945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9946 lt_status=$lt_dlunknown 9947 cat > conftest.$ac_ext <<EOF 9948#line 9948 "configure" 9949#include "confdefs.h" 9950 9951#if HAVE_DLFCN_H 9952#include <dlfcn.h> 9953#endif 9954 9955#include <stdio.h> 9956 9957#ifdef RTLD_GLOBAL 9958# define LT_DLGLOBAL RTLD_GLOBAL 9959#else 9960# ifdef DL_GLOBAL 9961# define LT_DLGLOBAL DL_GLOBAL 9962# else 9963# define LT_DLGLOBAL 0 9964# endif 9965#endif 9966 9967/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9968 find out it does not work in some platform. */ 9969#ifndef LT_DLLAZY_OR_NOW 9970# ifdef RTLD_LAZY 9971# define LT_DLLAZY_OR_NOW RTLD_LAZY 9972# else 9973# ifdef DL_LAZY 9974# define LT_DLLAZY_OR_NOW DL_LAZY 9975# else 9976# ifdef RTLD_NOW 9977# define LT_DLLAZY_OR_NOW RTLD_NOW 9978# else 9979# ifdef DL_NOW 9980# define LT_DLLAZY_OR_NOW DL_NOW 9981# else 9982# define LT_DLLAZY_OR_NOW 0 9983# endif 9984# endif 9985# endif 9986# endif 9987#endif 9988 9989#ifdef __cplusplus 9990extern "C" void exit (int); 9991#endif 9992 9993void fnord() { int i=42;} 9994int main () 9995{ 9996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9997 int status = $lt_dlunknown; 9998 9999 if (self) 10000 { 10001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10002 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10003 /* dlclose (self); */ 10004 } 10005 else 10006 puts (dlerror ()); 10007 10008 exit (status); 10009} 10010EOF 10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10012 (eval $ac_link) 2>&5 10013 ac_status=$? 10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10015 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10016 (./conftest; exit; ) >&5 2>/dev/null 10017 lt_status=$? 10018 case x$lt_status in 10019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10022 esac 10023 else : 10024 # compilation failed 10025 lt_cv_dlopen_self_static=no 10026 fi 10027fi 10028rm -fr conftest* 10029 10030 10031fi 10032{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10033echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10034 fi 10035 10036 CPPFLAGS="$save_CPPFLAGS" 10037 LDFLAGS="$save_LDFLAGS" 10038 LIBS="$save_LIBS" 10039 ;; 10040 esac 10041 10042 case $lt_cv_dlopen_self in 10043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10044 *) enable_dlopen_self=unknown ;; 10045 esac 10046 10047 case $lt_cv_dlopen_self_static in 10048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10049 *) enable_dlopen_self_static=unknown ;; 10050 esac 10051fi 10052 10053 10054# Report which library types will actually be built 10055{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10056echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10057{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10058echo "${ECHO_T}$can_build_shared" >&6; } 10059 10060{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10061echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10062test "$can_build_shared" = "no" && enable_shared=no 10063 10064# On AIX, shared libraries and static libraries use the same namespace, and 10065# are all built from PIC. 10066case $host_os in 10067aix3*) 10068 test "$enable_shared" = yes && enable_static=no 10069 if test -n "$RANLIB"; then 10070 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10071 postinstall_cmds='$RANLIB $lib' 10072 fi 10073 ;; 10074 10075aix4* | aix5*) 10076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10077 test "$enable_shared" = yes && enable_static=no 10078 fi 10079 ;; 10080esac 10081{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10082echo "${ECHO_T}$enable_shared" >&6; } 10083 10084{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10085echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10086# Make sure either enable_shared or enable_static is yes. 10087test "$enable_shared" = yes || enable_static=yes 10088{ echo "$as_me:$LINENO: result: $enable_static" >&5 10089echo "${ECHO_T}$enable_static" >&6; } 10090 10091# The else clause should only fire when bootstrapping the 10092# libtool distribution, otherwise you forgot to ship ltmain.sh 10093# with your package, and you will get complaints that there are 10094# no rules to generate ltmain.sh. 10095if test -f "$ltmain"; then 10096 # See if we are running on zsh, and set the options which allow our commands through 10097 # without removal of \ escapes. 10098 if test -n "${ZSH_VERSION+set}" ; then 10099 setopt NO_GLOB_SUBST 10100 fi 10101 # Now quote all the things that may contain metacharacters while being 10102 # careful not to overquote the AC_SUBSTed values. We take copies of the 10103 # variables and quote the copies for generation of the libtool script. 10104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10105 SED SHELL STRIP \ 10106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10108 deplibs_check_method reload_flag reload_cmds need_locks \ 10109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10110 lt_cv_sys_global_symbol_to_c_name_address \ 10111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10112 old_postinstall_cmds old_postuninstall_cmds \ 10113 compiler \ 10114 CC \ 10115 LD \ 10116 lt_prog_compiler_wl \ 10117 lt_prog_compiler_pic \ 10118 lt_prog_compiler_static \ 10119 lt_prog_compiler_no_builtin_flag \ 10120 export_dynamic_flag_spec \ 10121 thread_safe_flag_spec \ 10122 whole_archive_flag_spec \ 10123 enable_shared_with_static_runtimes \ 10124 old_archive_cmds \ 10125 old_archive_from_new_cmds \ 10126 predep_objects \ 10127 postdep_objects \ 10128 predeps \ 10129 postdeps \ 10130 compiler_lib_search_path \ 10131 archive_cmds \ 10132 archive_expsym_cmds \ 10133 postinstall_cmds \ 10134 postuninstall_cmds \ 10135 old_archive_from_expsyms_cmds \ 10136 allow_undefined_flag \ 10137 no_undefined_flag \ 10138 export_symbols_cmds \ 10139 hardcode_libdir_flag_spec \ 10140 hardcode_libdir_flag_spec_ld \ 10141 hardcode_libdir_separator \ 10142 hardcode_automatic \ 10143 module_cmds \ 10144 module_expsym_cmds \ 10145 lt_cv_prog_compiler_c_o \ 10146 fix_srcfile_path \ 10147 exclude_expsyms \ 10148 include_expsyms; do 10149 10150 case $var in 10151 old_archive_cmds | \ 10152 old_archive_from_new_cmds | \ 10153 archive_cmds | \ 10154 archive_expsym_cmds | \ 10155 module_cmds | \ 10156 module_expsym_cmds | \ 10157 old_archive_from_expsyms_cmds | \ 10158 export_symbols_cmds | \ 10159 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10160 postinstall_cmds | postuninstall_cmds | \ 10161 old_postinstall_cmds | old_postuninstall_cmds | \ 10162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10163 # Double-quote double-evaled strings. 10164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10165 ;; 10166 *) 10167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10168 ;; 10169 esac 10170 done 10171 10172 case $lt_echo in 10173 *'\$0 --fallback-echo"') 10174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10175 ;; 10176 esac 10177 10178cfgfile="${ofile}T" 10179 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10180 $rm -f "$cfgfile" 10181 { echo "$as_me:$LINENO: creating $ofile" >&5 10182echo "$as_me: creating $ofile" >&6;} 10183 10184 cat <<__EOF__ >> "$cfgfile" 10185#! $SHELL 10186 10187# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10188# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10189# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10190# 10191# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10192# Free Software Foundation, Inc. 10193# 10194# This file is part of GNU Libtool: 10195# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10196# 10197# This program is free software; you can redistribute it and/or modify 10198# it under the terms of the GNU General Public License as published by 10199# the Free Software Foundation; either version 2 of the License, or 10200# (at your option) any later version. 10201# 10202# This program is distributed in the hope that it will be useful, but 10203# WITHOUT ANY WARRANTY; without even the implied warranty of 10204# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10205# General Public License for more details. 10206# 10207# You should have received a copy of the GNU General Public License 10208# along with this program; if not, write to the Free Software 10209# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10210# 10211# As a special exception to the GNU General Public License, if you 10212# distribute this file as part of a program that contains a 10213# configuration script generated by Autoconf, you may include it under 10214# the same distribution terms that you use for the rest of that program. 10215 10216# A sed program that does not truncate output. 10217SED=$lt_SED 10218 10219# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10220Xsed="$SED -e 1s/^X//" 10221 10222# The HP-UX ksh and POSIX shell print the target directory to stdout 10223# if CDPATH is set. 10224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10225 10226# The names of the tagged configurations supported by this script. 10227available_tags= 10228 10229# ### BEGIN LIBTOOL CONFIG 10230 10231# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10232 10233# Shell to use when invoking shell scripts. 10234SHELL=$lt_SHELL 10235 10236# Whether or not to build shared libraries. 10237build_libtool_libs=$enable_shared 10238 10239# Whether or not to build static libraries. 10240build_old_libs=$enable_static 10241 10242# Whether or not to add -lc for building shared libraries. 10243build_libtool_need_lc=$archive_cmds_need_lc 10244 10245# Whether or not to disallow shared libs when runtime libs are static 10246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10247 10248# Whether or not to optimize for fast installation. 10249fast_install=$enable_fast_install 10250 10251# The host system. 10252host_alias=$host_alias 10253host=$host 10254host_os=$host_os 10255 10256# The build system. 10257build_alias=$build_alias 10258build=$build 10259build_os=$build_os 10260 10261# An echo program that does not interpret backslashes. 10262echo=$lt_echo 10263 10264# The archiver. 10265AR=$lt_AR 10266AR_FLAGS=$lt_AR_FLAGS 10267 10268# A C compiler. 10269LTCC=$lt_LTCC 10270 10271# LTCC compiler flags. 10272LTCFLAGS=$lt_LTCFLAGS 10273 10274# A language-specific compiler. 10275CC=$lt_compiler 10276 10277# Is the compiler the GNU C compiler? 10278with_gcc=$GCC 10279 10280# An ERE matcher. 10281EGREP=$lt_EGREP 10282 10283# The linker used to build libraries. 10284LD=$lt_LD 10285 10286# Whether we need hard or soft links. 10287LN_S=$lt_LN_S 10288 10289# A BSD-compatible nm program. 10290NM=$lt_NM 10291 10292# A symbol stripping program 10293STRIP=$lt_STRIP 10294 10295# Used to examine libraries when file_magic_cmd begins "file" 10296MAGIC_CMD=$MAGIC_CMD 10297 10298# Used on cygwin: DLL creation program. 10299DLLTOOL="$DLLTOOL" 10300 10301# Used on cygwin: object dumper. 10302OBJDUMP="$OBJDUMP" 10303 10304# Used on cygwin: assembler. 10305AS="$AS" 10306 10307# The name of the directory that contains temporary libtool files. 10308objdir=$objdir 10309 10310# How to create reloadable object files. 10311reload_flag=$lt_reload_flag 10312reload_cmds=$lt_reload_cmds 10313 10314# How to pass a linker flag through the compiler. 10315wl=$lt_lt_prog_compiler_wl 10316 10317# Object file suffix (normally "o"). 10318objext="$ac_objext" 10319 10320# Old archive suffix (normally "a"). 10321libext="$libext" 10322 10323# Shared library suffix (normally ".so"). 10324shrext_cmds='$shrext_cmds' 10325 10326# Executable file suffix (normally ""). 10327exeext="$exeext" 10328 10329# Additional compiler flags for building library objects. 10330pic_flag=$lt_lt_prog_compiler_pic 10331pic_mode=$pic_mode 10332 10333# What is the maximum length of a command? 10334max_cmd_len=$lt_cv_sys_max_cmd_len 10335 10336# Does compiler simultaneously support -c and -o options? 10337compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10338 10339# Must we lock files when doing compilation? 10340need_locks=$lt_need_locks 10341 10342# Do we need the lib prefix for modules? 10343need_lib_prefix=$need_lib_prefix 10344 10345# Do we need a version for libraries? 10346need_version=$need_version 10347 10348# Whether dlopen is supported. 10349dlopen_support=$enable_dlopen 10350 10351# Whether dlopen of programs is supported. 10352dlopen_self=$enable_dlopen_self 10353 10354# Whether dlopen of statically linked programs is supported. 10355dlopen_self_static=$enable_dlopen_self_static 10356 10357# Compiler flag to prevent dynamic linking. 10358link_static_flag=$lt_lt_prog_compiler_static 10359 10360# Compiler flag to turn off builtin functions. 10361no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10362 10363# Compiler flag to allow reflexive dlopens. 10364export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10365 10366# Compiler flag to generate shared objects directly from archives. 10367whole_archive_flag_spec=$lt_whole_archive_flag_spec 10368 10369# Compiler flag to generate thread-safe objects. 10370thread_safe_flag_spec=$lt_thread_safe_flag_spec 10371 10372# Library versioning type. 10373version_type=$version_type 10374 10375# Format of library name prefix. 10376libname_spec=$lt_libname_spec 10377 10378# List of archive names. First name is the real one, the rest are links. 10379# The last name is the one that the linker finds with -lNAME. 10380library_names_spec=$lt_library_names_spec 10381 10382# The coded name of the library, if different from the real name. 10383soname_spec=$lt_soname_spec 10384 10385# Commands used to build and install an old-style archive. 10386RANLIB=$lt_RANLIB 10387old_archive_cmds=$lt_old_archive_cmds 10388old_postinstall_cmds=$lt_old_postinstall_cmds 10389old_postuninstall_cmds=$lt_old_postuninstall_cmds 10390 10391# Create an old-style archive from a shared archive. 10392old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10393 10394# Create a temporary old-style archive to link instead of a shared archive. 10395old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10396 10397# Commands used to build and install a shared archive. 10398archive_cmds=$lt_archive_cmds 10399archive_expsym_cmds=$lt_archive_expsym_cmds 10400postinstall_cmds=$lt_postinstall_cmds 10401postuninstall_cmds=$lt_postuninstall_cmds 10402 10403# Commands used to build a loadable module (assumed same as above if empty) 10404module_cmds=$lt_module_cmds 10405module_expsym_cmds=$lt_module_expsym_cmds 10406 10407# Commands to strip libraries. 10408old_striplib=$lt_old_striplib 10409striplib=$lt_striplib 10410 10411# Dependencies to place before the objects being linked to create a 10412# shared library. 10413predep_objects=$lt_predep_objects 10414 10415# Dependencies to place after the objects being linked to create a 10416# shared library. 10417postdep_objects=$lt_postdep_objects 10418 10419# Dependencies to place before the objects being linked to create a 10420# shared library. 10421predeps=$lt_predeps 10422 10423# Dependencies to place after the objects being linked to create a 10424# shared library. 10425postdeps=$lt_postdeps 10426 10427# The library search path used internally by the compiler when linking 10428# a shared library. 10429compiler_lib_search_path=$lt_compiler_lib_search_path 10430 10431# Method to check whether dependent libraries are shared objects. 10432deplibs_check_method=$lt_deplibs_check_method 10433 10434# Command to use when deplibs_check_method == file_magic. 10435file_magic_cmd=$lt_file_magic_cmd 10436 10437# Flag that allows shared libraries with undefined symbols to be built. 10438allow_undefined_flag=$lt_allow_undefined_flag 10439 10440# Flag that forces no undefined symbols. 10441no_undefined_flag=$lt_no_undefined_flag 10442 10443# Commands used to finish a libtool library installation in a directory. 10444finish_cmds=$lt_finish_cmds 10445 10446# Same as above, but a single script fragment to be evaled but not shown. 10447finish_eval=$lt_finish_eval 10448 10449# Take the output of nm and produce a listing of raw symbols and C names. 10450global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10451 10452# Transform the output of nm in a proper C declaration 10453global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10454 10455# Transform the output of nm in a C name address pair 10456global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10457 10458# This is the shared library runtime path variable. 10459runpath_var=$runpath_var 10460 10461# This is the shared library path variable. 10462shlibpath_var=$shlibpath_var 10463 10464# Is shlibpath searched before the hard-coded library search path? 10465shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10466 10467# How to hardcode a shared library path into an executable. 10468hardcode_action=$hardcode_action 10469 10470# Whether we should hardcode library paths into libraries. 10471hardcode_into_libs=$hardcode_into_libs 10472 10473# Flag to hardcode \$libdir into a binary during linking. 10474# This must work even if \$libdir does not exist. 10475hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10476 10477# If ld is used when linking, flag to hardcode \$libdir into 10478# a binary during linking. This must work even if \$libdir does 10479# not exist. 10480hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10481 10482# Whether we need a single -rpath flag with a separated argument. 10483hardcode_libdir_separator=$lt_hardcode_libdir_separator 10484 10485# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10486# resulting binary. 10487hardcode_direct=$hardcode_direct 10488 10489# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10490# resulting binary. 10491hardcode_minus_L=$hardcode_minus_L 10492 10493# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10494# the resulting binary. 10495hardcode_shlibpath_var=$hardcode_shlibpath_var 10496 10497# Set to yes if building a shared library automatically hardcodes DIR into the library 10498# and all subsequent libraries and executables linked against it. 10499hardcode_automatic=$hardcode_automatic 10500 10501# Variables whose values should be saved in libtool wrapper scripts and 10502# restored at relink time. 10503variables_saved_for_relink="$variables_saved_for_relink" 10504 10505# Whether libtool must link a program against all its dependency libraries. 10506link_all_deplibs=$link_all_deplibs 10507 10508# Compile-time system search path for libraries 10509sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10510 10511# Run-time system search path for libraries 10512sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10513 10514# Fix the shell variable \$srcfile for the compiler. 10515fix_srcfile_path=$lt_fix_srcfile_path 10516 10517# Set to yes if exported symbols are required. 10518always_export_symbols=$always_export_symbols 10519 10520# The commands to list exported symbols. 10521export_symbols_cmds=$lt_export_symbols_cmds 10522 10523# The commands to extract the exported symbol list from a shared archive. 10524extract_expsyms_cmds=$lt_extract_expsyms_cmds 10525 10526# Symbols that should not be listed in the preloaded symbols. 10527exclude_expsyms=$lt_exclude_expsyms 10528 10529# Symbols that must always be exported. 10530include_expsyms=$lt_include_expsyms 10531 10532# ### END LIBTOOL CONFIG 10533 10534__EOF__ 10535 10536 10537 case $host_os in 10538 aix3*) 10539 cat <<\EOF >> "$cfgfile" 10540 10541# AIX sometimes has problems with the GCC collect2 program. For some 10542# reason, if we set the COLLECT_NAMES environment variable, the problems 10543# vanish in a puff of smoke. 10544if test "X${COLLECT_NAMES+set}" != Xset; then 10545 COLLECT_NAMES= 10546 export COLLECT_NAMES 10547fi 10548EOF 10549 ;; 10550 esac 10551 10552 # We use sed instead of cat because bash on DJGPP gets confused if 10553 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10554 # text mode, it properly converts lines to CR/LF. This bash problem 10555 # is reportedly fixed, but why not run on old versions too? 10556 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10557 10558 mv -f "$cfgfile" "$ofile" || \ 10559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10560 chmod +x "$ofile" 10561 10562else 10563 # If there is no Makefile yet, we rely on a make rule to execute 10564 # `config.status --recheck' to rerun these tests and create the 10565 # libtool script then. 10566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10567 if test -f "$ltmain_in"; then 10568 test -f Makefile && make "$ltmain" 10569 fi 10570fi 10571 10572 10573ac_ext=c 10574ac_cpp='$CPP $CPPFLAGS' 10575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10577ac_compiler_gnu=$ac_cv_c_compiler_gnu 10578 10579CC="$lt_save_CC" 10580 10581 10582# Check whether --with-tags was given. 10583if test "${with_tags+set}" = set; then 10584 withval=$with_tags; tagnames="$withval" 10585fi 10586 10587 10588if test -f "$ltmain" && test -n "$tagnames"; then 10589 if test ! -f "${ofile}"; then 10590 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10591echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10592 fi 10593 10594 if test -z "$LTCC"; then 10595 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10596 if test -z "$LTCC"; then 10597 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10598echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10599 else 10600 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10601echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10602 fi 10603 fi 10604 if test -z "$LTCFLAGS"; then 10605 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10606 fi 10607 10608 # Extract list of available tagged configurations in $ofile. 10609 # Note that this assumes the entire list is on one line. 10610 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10611 10612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10613 for tagname in $tagnames; do 10614 IFS="$lt_save_ifs" 10615 # Check whether tagname contains only valid characters 10616 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10617 "") ;; 10618 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10619echo "$as_me: error: invalid tag name: $tagname" >&2;} 10620 { (exit 1); exit 1; }; } 10621 ;; 10622 esac 10623 10624 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10625 then 10626 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10627echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10628 { (exit 1); exit 1; }; } 10629 fi 10630 10631 # Update the list of available tags. 10632 if test -n "$tagname"; then 10633 echo appending configuration tag \"$tagname\" to $ofile 10634 10635 case $tagname in 10636 CXX) 10637 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10638 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10639 (test "X$CXX" != "Xg++"))) ; then 10640 ac_ext=cpp 10641ac_cpp='$CXXCPP $CPPFLAGS' 10642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10645 10646 10647 10648 10649archive_cmds_need_lc_CXX=no 10650allow_undefined_flag_CXX= 10651always_export_symbols_CXX=no 10652archive_expsym_cmds_CXX= 10653export_dynamic_flag_spec_CXX= 10654hardcode_direct_CXX=no 10655hardcode_libdir_flag_spec_CXX= 10656hardcode_libdir_flag_spec_ld_CXX= 10657hardcode_libdir_separator_CXX= 10658hardcode_minus_L_CXX=no 10659hardcode_shlibpath_var_CXX=unsupported 10660hardcode_automatic_CXX=no 10661module_cmds_CXX= 10662module_expsym_cmds_CXX= 10663link_all_deplibs_CXX=unknown 10664old_archive_cmds_CXX=$old_archive_cmds 10665no_undefined_flag_CXX= 10666whole_archive_flag_spec_CXX= 10667enable_shared_with_static_runtimes_CXX=no 10668 10669# Dependencies to place before and after the object being linked: 10670predep_objects_CXX= 10671postdep_objects_CXX= 10672predeps_CXX= 10673postdeps_CXX= 10674compiler_lib_search_path_CXX= 10675 10676# Source file extension for C++ test sources. 10677ac_ext=cpp 10678 10679# Object file extension for compiled C++ test sources. 10680objext=o 10681objext_CXX=$objext 10682 10683# Code to be used in simple compile tests 10684lt_simple_compile_test_code="int some_variable = 0;" 10685 10686# Code to be used in simple link tests 10687lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10688 10689# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10690 10691# If no C compiler was specified, use CC. 10692LTCC=${LTCC-"$CC"} 10693 10694# If no C compiler flags were specified, use CFLAGS. 10695LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10696 10697# Allow CC to be a program name with arguments. 10698compiler=$CC 10699 10700 10701# save warnings/boilerplate of simple test code 10702ac_outfile=conftest.$ac_objext 10703echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10704eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10705_lt_compiler_boilerplate=`cat conftest.err` 10706$rm conftest* 10707 10708ac_outfile=conftest.$ac_objext 10709echo "$lt_simple_link_test_code" >conftest.$ac_ext 10710eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10711_lt_linker_boilerplate=`cat conftest.err` 10712$rm conftest* 10713 10714 10715# Allow CC to be a program name with arguments. 10716lt_save_CC=$CC 10717lt_save_LD=$LD 10718lt_save_GCC=$GCC 10719GCC=$GXX 10720lt_save_with_gnu_ld=$with_gnu_ld 10721lt_save_path_LD=$lt_cv_path_LD 10722if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10723 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10724else 10725 $as_unset lt_cv_prog_gnu_ld 10726fi 10727if test -n "${lt_cv_path_LDCXX+set}"; then 10728 lt_cv_path_LD=$lt_cv_path_LDCXX 10729else 10730 $as_unset lt_cv_path_LD 10731fi 10732test -z "${LDCXX+set}" || LD=$LDCXX 10733CC=${CXX-"c++"} 10734compiler=$CC 10735compiler_CXX=$CC 10736for cc_temp in $compiler""; do 10737 case $cc_temp in 10738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10740 \-*) ;; 10741 *) break;; 10742 esac 10743done 10744cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10745 10746 10747# We don't want -fno-exception wen compiling C++ code, so set the 10748# no_builtin_flag separately 10749if test "$GXX" = yes; then 10750 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10751else 10752 lt_prog_compiler_no_builtin_flag_CXX= 10753fi 10754 10755if test "$GXX" = yes; then 10756 # Set up default GNU C++ configuration 10757 10758 10759# Check whether --with-gnu-ld was given. 10760if test "${with_gnu_ld+set}" = set; then 10761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10762else 10763 with_gnu_ld=no 10764fi 10765 10766ac_prog=ld 10767if test "$GCC" = yes; then 10768 # Check if gcc -print-prog-name=ld gives a path. 10769 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10770echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10771 case $host in 10772 *-*-mingw*) 10773 # gcc leaves a trailing carriage return which upsets mingw 10774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10775 *) 10776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10777 esac 10778 case $ac_prog in 10779 # Accept absolute paths. 10780 [\\/]* | ?:[\\/]*) 10781 re_direlt='/[^/][^/]*/\.\./' 10782 # Canonicalize the pathname of ld 10783 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10784 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10785 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10786 done 10787 test -z "$LD" && LD="$ac_prog" 10788 ;; 10789 "") 10790 # If it fails, then pretend we aren't using GCC. 10791 ac_prog=ld 10792 ;; 10793 *) 10794 # If it is relative, then search for the first ld in PATH. 10795 with_gnu_ld=unknown 10796 ;; 10797 esac 10798elif test "$with_gnu_ld" = yes; then 10799 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10800echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10801else 10802 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10803echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10804fi 10805if test "${lt_cv_path_LD+set}" = set; then 10806 echo $ECHO_N "(cached) $ECHO_C" >&6 10807else 10808 if test -z "$LD"; then 10809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10810 for ac_dir in $PATH; do 10811 IFS="$lt_save_ifs" 10812 test -z "$ac_dir" && ac_dir=. 10813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10814 lt_cv_path_LD="$ac_dir/$ac_prog" 10815 # Check to see if the program is GNU ld. I'd rather use --version, 10816 # but apparently some variants of GNU ld only accept -v. 10817 # Break only if it was the GNU/non-GNU ld that we prefer. 10818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10819 *GNU* | *'with BFD'*) 10820 test "$with_gnu_ld" != no && break 10821 ;; 10822 *) 10823 test "$with_gnu_ld" != yes && break 10824 ;; 10825 esac 10826 fi 10827 done 10828 IFS="$lt_save_ifs" 10829else 10830 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10831fi 10832fi 10833 10834LD="$lt_cv_path_LD" 10835if test -n "$LD"; then 10836 { echo "$as_me:$LINENO: result: $LD" >&5 10837echo "${ECHO_T}$LD" >&6; } 10838else 10839 { echo "$as_me:$LINENO: result: no" >&5 10840echo "${ECHO_T}no" >&6; } 10841fi 10842test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10843echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10844 { (exit 1); exit 1; }; } 10845{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10846echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10847if test "${lt_cv_prog_gnu_ld+set}" = set; then 10848 echo $ECHO_N "(cached) $ECHO_C" >&6 10849else 10850 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10851case `$LD -v 2>&1 </dev/null` in 10852*GNU* | *'with BFD'*) 10853 lt_cv_prog_gnu_ld=yes 10854 ;; 10855*) 10856 lt_cv_prog_gnu_ld=no 10857 ;; 10858esac 10859fi 10860{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10861echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10862with_gnu_ld=$lt_cv_prog_gnu_ld 10863 10864 10865 10866 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10867 # archiving commands below assume that GNU ld is being used. 10868 if test "$with_gnu_ld" = yes; then 10869 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10870 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' 10871 10872 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10874 10875 # If archive_cmds runs LD, not CC, wlarc should be empty 10876 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10877 # investigate it a little bit more. (MM) 10878 wlarc='${wl}' 10879 10880 # ancient GNU ld didn't support --whole-archive et. al. 10881 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10882 grep 'no-whole-archive' > /dev/null; then 10883 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10884 else 10885 whole_archive_flag_spec_CXX= 10886 fi 10887 else 10888 with_gnu_ld=no 10889 wlarc= 10890 10891 # A generic and very simple default shared library creation 10892 # command for GNU C++ for the case where it uses the native 10893 # linker, instead of GNU ld. If possible, this setting should 10894 # overridden to take advantage of the native linker features on 10895 # the platform it is being used on. 10896 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10897 fi 10898 10899 # Commands to make compiler produce verbose output that lists 10900 # what "hidden" libraries, object files and flags are used when 10901 # linking a shared library. 10902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10903 10904else 10905 GXX=no 10906 with_gnu_ld=no 10907 wlarc= 10908fi 10909 10910# PORTME: fill in a description of your system's C++ link characteristics 10911{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10912echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10913ld_shlibs_CXX=yes 10914case $host_os in 10915 aix3*) 10916 # FIXME: insert proper C++ library support 10917 ld_shlibs_CXX=no 10918 ;; 10919 aix4* | aix5*) 10920 if test "$host_cpu" = ia64; then 10921 # On IA64, the linker does run time linking by default, so we don't 10922 # have to do anything special. 10923 aix_use_runtimelinking=no 10924 exp_sym_flag='-Bexport' 10925 no_entry_flag="" 10926 else 10927 aix_use_runtimelinking=no 10928 10929 # Test if we are trying to use run time linking or normal 10930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10931 # need to do runtime linking. 10932 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10933 for ld_flag in $LDFLAGS; do 10934 case $ld_flag in 10935 *-brtl*) 10936 aix_use_runtimelinking=yes 10937 break 10938 ;; 10939 esac 10940 done 10941 ;; 10942 esac 10943 10944 exp_sym_flag='-bexport' 10945 no_entry_flag='-bnoentry' 10946 fi 10947 10948 # When large executables or shared objects are built, AIX ld can 10949 # have problems creating the table of contents. If linking a library 10950 # or program results in "error TOC overflow" add -mminimal-toc to 10951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10953 10954 archive_cmds_CXX='' 10955 hardcode_direct_CXX=yes 10956 hardcode_libdir_separator_CXX=':' 10957 link_all_deplibs_CXX=yes 10958 10959 if test "$GXX" = yes; then 10960 case $host_os in aix4.[012]|aix4.[012].*) 10961 # We only want to do this on AIX 4.2 and lower, the check 10962 # below for broken collect2 doesn't work under 4.3+ 10963 collect2name=`${CC} -print-prog-name=collect2` 10964 if test -f "$collect2name" && \ 10965 strings "$collect2name" | grep resolve_lib_name >/dev/null 10966 then 10967 # We have reworked collect2 10968 : 10969 else 10970 # We have old collect2 10971 hardcode_direct_CXX=unsupported 10972 # It fails to find uninstalled libraries when the uninstalled 10973 # path is not listed in the libpath. Setting hardcode_minus_L 10974 # to unsupported forces relinking 10975 hardcode_minus_L_CXX=yes 10976 hardcode_libdir_flag_spec_CXX='-L$libdir' 10977 hardcode_libdir_separator_CXX= 10978 fi 10979 ;; 10980 esac 10981 shared_flag='-shared' 10982 if test "$aix_use_runtimelinking" = yes; then 10983 shared_flag="$shared_flag "'${wl}-G' 10984 fi 10985 else 10986 # not using gcc 10987 if test "$host_cpu" = ia64; then 10988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10989 # chokes on -Wl,-G. The following line is correct: 10990 shared_flag='-G' 10991 else 10992 if test "$aix_use_runtimelinking" = yes; then 10993 shared_flag='${wl}-G' 10994 else 10995 shared_flag='${wl}-bM:SRE' 10996 fi 10997 fi 10998 fi 10999 11000 # It seems that -bexpall does not export symbols beginning with 11001 # underscore (_), so it is better to generate a list of symbols to export. 11002 always_export_symbols_CXX=yes 11003 if test "$aix_use_runtimelinking" = yes; then 11004 # Warning - without using the other runtime loading flags (-brtl), 11005 # -berok will link without error, but may produce a broken library. 11006 allow_undefined_flag_CXX='-berok' 11007 # Determine the default libpath from the value encoded in an empty executable. 11008 cat >conftest.$ac_ext <<_ACEOF 11009/* confdefs.h. */ 11010_ACEOF 11011cat confdefs.h >>conftest.$ac_ext 11012cat >>conftest.$ac_ext <<_ACEOF 11013/* end confdefs.h. */ 11014 11015int 11016main () 11017{ 11018 11019 ; 11020 return 0; 11021} 11022_ACEOF 11023rm -f conftest.$ac_objext conftest$ac_exeext 11024if { (ac_try="$ac_link" 11025case "(($ac_try" in 11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11027 *) ac_try_echo=$ac_try;; 11028esac 11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11030 (eval "$ac_link") 2>conftest.er1 11031 ac_status=$? 11032 grep -v '^ *+' conftest.er1 >conftest.err 11033 rm -f conftest.er1 11034 cat conftest.err >&5 11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 (exit $ac_status); } && { 11037 test -z "$ac_cxx_werror_flag" || 11038 test ! -s conftest.err 11039 } && test -s conftest$ac_exeext && 11040 $as_test_x conftest$ac_exeext; then 11041 11042lt_aix_libpath_sed=' 11043 /Import File Strings/,/^$/ { 11044 /^0/ { 11045 s/^0 *\(.*\)$/\1/ 11046 p 11047 } 11048 }' 11049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11050# Check for a 64-bit object if we didn't find anything. 11051if test -z "$aix_libpath"; then 11052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11053fi 11054else 11055 echo "$as_me: failed program was:" >&5 11056sed 's/^/| /' conftest.$ac_ext >&5 11057 11058 11059fi 11060 11061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11062 conftest$ac_exeext conftest.$ac_ext 11063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11064 11065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11066 11067 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" 11068 else 11069 if test "$host_cpu" = ia64; then 11070 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11071 allow_undefined_flag_CXX="-z nodefs" 11072 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" 11073 else 11074 # Determine the default libpath from the value encoded in an empty executable. 11075 cat >conftest.$ac_ext <<_ACEOF 11076/* confdefs.h. */ 11077_ACEOF 11078cat confdefs.h >>conftest.$ac_ext 11079cat >>conftest.$ac_ext <<_ACEOF 11080/* end confdefs.h. */ 11081 11082int 11083main () 11084{ 11085 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090rm -f conftest.$ac_objext conftest$ac_exeext 11091if { (ac_try="$ac_link" 11092case "(($ac_try" in 11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11094 *) ac_try_echo=$ac_try;; 11095esac 11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11097 (eval "$ac_link") 2>conftest.er1 11098 ac_status=$? 11099 grep -v '^ *+' conftest.er1 >conftest.err 11100 rm -f conftest.er1 11101 cat conftest.err >&5 11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 (exit $ac_status); } && { 11104 test -z "$ac_cxx_werror_flag" || 11105 test ! -s conftest.err 11106 } && test -s conftest$ac_exeext && 11107 $as_test_x conftest$ac_exeext; then 11108 11109lt_aix_libpath_sed=' 11110 /Import File Strings/,/^$/ { 11111 /^0/ { 11112 s/^0 *\(.*\)$/\1/ 11113 p 11114 } 11115 }' 11116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11117# Check for a 64-bit object if we didn't find anything. 11118if test -z "$aix_libpath"; then 11119 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11120fi 11121else 11122 echo "$as_me: failed program was:" >&5 11123sed 's/^/| /' conftest.$ac_ext >&5 11124 11125 11126fi 11127 11128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11129 conftest$ac_exeext conftest.$ac_ext 11130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11131 11132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11133 # Warning - without using the other run time loading flags, 11134 # -berok will link without error, but may produce a broken library. 11135 no_undefined_flag_CXX=' ${wl}-bernotok' 11136 allow_undefined_flag_CXX=' ${wl}-berok' 11137 # Exported symbols can be pulled into shared objects from archives 11138 whole_archive_flag_spec_CXX='$convenience' 11139 archive_cmds_need_lc_CXX=yes 11140 # This is similar to how AIX traditionally builds its shared libraries. 11141 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' 11142 fi 11143 fi 11144 ;; 11145 11146 beos*) 11147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11148 allow_undefined_flag_CXX=unsupported 11149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11150 # support --undefined. This deserves some investigation. FIXME 11151 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11152 else 11153 ld_shlibs_CXX=no 11154 fi 11155 ;; 11156 11157 chorus*) 11158 case $cc_basename in 11159 *) 11160 # FIXME: insert proper C++ library support 11161 ld_shlibs_CXX=no 11162 ;; 11163 esac 11164 ;; 11165 11166 cygwin* | mingw* | pw32*) 11167 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11168 # as there is no search path for DLLs. 11169 hardcode_libdir_flag_spec_CXX='-L$libdir' 11170 allow_undefined_flag_CXX=unsupported 11171 always_export_symbols_CXX=no 11172 enable_shared_with_static_runtimes_CXX=yes 11173 11174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11175 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' 11176 # If the export-symbols file already is a .def file (1st line 11177 # is EXPORTS), use it as is; otherwise, prepend... 11178 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11179 cp $export_symbols $output_objdir/$soname.def; 11180 else 11181 echo EXPORTS > $output_objdir/$soname.def; 11182 cat $export_symbols >> $output_objdir/$soname.def; 11183 fi~ 11184 $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' 11185 else 11186 ld_shlibs_CXX=no 11187 fi 11188 ;; 11189 darwin* | rhapsody*) 11190 case $host_os in 11191 rhapsody* | darwin1.[012]) 11192 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11193 ;; 11194 *) # Darwin 1.3 on 11195 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11196 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11197 else 11198 case ${MACOSX_DEPLOYMENT_TARGET} in 11199 10.[012]) 11200 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11201 ;; 11202 10.*) 11203 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11204 ;; 11205 esac 11206 fi 11207 ;; 11208 esac 11209 archive_cmds_need_lc_CXX=no 11210 hardcode_direct_CXX=no 11211 hardcode_automatic_CXX=yes 11212 hardcode_shlibpath_var_CXX=unsupported 11213 whole_archive_flag_spec_CXX='' 11214 link_all_deplibs_CXX=yes 11215 11216 if test "$GXX" = yes ; then 11217 lt_int_apple_cc_single_mod=no 11218 output_verbose_link_cmd='echo' 11219 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11220 lt_int_apple_cc_single_mod=yes 11221 fi 11222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11223 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11224 else 11225 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' 11226 fi 11227 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11230 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}' 11231 else 11232 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}' 11233 fi 11234 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}' 11235 else 11236 case $cc_basename in 11237 xlc*) 11238 output_verbose_link_cmd='echo' 11239 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11240 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11242 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11243 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}' 11244 ;; 11245 *) 11246 ld_shlibs_CXX=no 11247 ;; 11248 esac 11249 fi 11250 ;; 11251 11252 dgux*) 11253 case $cc_basename in 11254 ec++*) 11255 # FIXME: insert proper C++ library support 11256 ld_shlibs_CXX=no 11257 ;; 11258 ghcx*) 11259 # Green Hills C++ Compiler 11260 # FIXME: insert proper C++ library support 11261 ld_shlibs_CXX=no 11262 ;; 11263 *) 11264 # FIXME: insert proper C++ library support 11265 ld_shlibs_CXX=no 11266 ;; 11267 esac 11268 ;; 11269 freebsd[12]*) 11270 # C++ shared libraries reported to be fairly broken before switch to ELF 11271 ld_shlibs_CXX=no 11272 ;; 11273 freebsd-elf*) 11274 archive_cmds_need_lc_CXX=no 11275 ;; 11276 freebsd* | dragonfly*) 11277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11278 # conventions 11279 ld_shlibs_CXX=yes 11280 ;; 11281 gnu*) 11282 ;; 11283 hpux9*) 11284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11285 hardcode_libdir_separator_CXX=: 11286 export_dynamic_flag_spec_CXX='${wl}-E' 11287 hardcode_direct_CXX=yes 11288 hardcode_minus_L_CXX=yes # Not in the search PATH, 11289 # but as the default 11290 # location of the library. 11291 11292 case $cc_basename in 11293 CC*) 11294 # FIXME: insert proper C++ library support 11295 ld_shlibs_CXX=no 11296 ;; 11297 aCC*) 11298 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' 11299 # Commands to make compiler produce verbose output that lists 11300 # what "hidden" libraries, object files and flags are used when 11301 # linking a shared library. 11302 # 11303 # There doesn't appear to be a way to prevent this compiler from 11304 # explicitly linking system object files so we need to strip them 11305 # from the output so that they don't get included in the library 11306 # dependencies. 11307 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' 11308 ;; 11309 *) 11310 if test "$GXX" = yes; then 11311 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' 11312 else 11313 # FIXME: insert proper C++ library support 11314 ld_shlibs_CXX=no 11315 fi 11316 ;; 11317 esac 11318 ;; 11319 hpux10*|hpux11*) 11320 if test $with_gnu_ld = no; then 11321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11322 hardcode_libdir_separator_CXX=: 11323 11324 case $host_cpu in 11325 hppa*64*|ia64*) ;; 11326 *) 11327 export_dynamic_flag_spec_CXX='${wl}-E' 11328 ;; 11329 esac 11330 fi 11331 case $host_cpu in 11332 hppa*64*|ia64*) 11333 hardcode_direct_CXX=no 11334 hardcode_shlibpath_var_CXX=no 11335 ;; 11336 *) 11337 hardcode_direct_CXX=yes 11338 hardcode_minus_L_CXX=yes # Not in the search PATH, 11339 # but as the default 11340 # location of the library. 11341 ;; 11342 esac 11343 11344 case $cc_basename in 11345 CC*) 11346 # FIXME: insert proper C++ library support 11347 ld_shlibs_CXX=no 11348 ;; 11349 aCC*) 11350 case $host_cpu in 11351 hppa*64*) 11352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11353 ;; 11354 ia64*) 11355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11356 ;; 11357 *) 11358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11359 ;; 11360 esac 11361 # Commands to make compiler produce verbose output that lists 11362 # what "hidden" libraries, object files and flags are used when 11363 # linking a shared library. 11364 # 11365 # There doesn't appear to be a way to prevent this compiler from 11366 # explicitly linking system object files so we need to strip them 11367 # from the output so that they don't get included in the library 11368 # dependencies. 11369 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' 11370 ;; 11371 *) 11372 if test "$GXX" = yes; then 11373 if test $with_gnu_ld = no; then 11374 case $host_cpu in 11375 hppa*64*) 11376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11377 ;; 11378 ia64*) 11379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11380 ;; 11381 *) 11382 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' 11383 ;; 11384 esac 11385 fi 11386 else 11387 # FIXME: insert proper C++ library support 11388 ld_shlibs_CXX=no 11389 fi 11390 ;; 11391 esac 11392 ;; 11393 interix[3-9]*) 11394 hardcode_direct_CXX=no 11395 hardcode_shlibpath_var_CXX=no 11396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11397 export_dynamic_flag_spec_CXX='${wl}-E' 11398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11399 # Instead, shared libraries are loaded at an image base (0x10000000 by 11400 # default) and relocated if they conflict, which is a slow very memory 11401 # consuming and fragmenting process. To avoid this, we pick a random, 11402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11403 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11404 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' 11405 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' 11406 ;; 11407 irix5* | irix6*) 11408 case $cc_basename in 11409 CC*) 11410 # SGI C++ 11411 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' 11412 11413 # Archives containing C++ object files must be created using 11414 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11415 # necessary to make sure instantiated templates are included 11416 # in the archive. 11417 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11418 ;; 11419 *) 11420 if test "$GXX" = yes; then 11421 if test "$with_gnu_ld" = no; then 11422 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' 11423 else 11424 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' 11425 fi 11426 fi 11427 link_all_deplibs_CXX=yes 11428 ;; 11429 esac 11430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11431 hardcode_libdir_separator_CXX=: 11432 ;; 11433 linux* | k*bsd*-gnu) 11434 case $cc_basename in 11435 KCC*) 11436 # Kuck and Associates, Inc. (KAI) C++ Compiler 11437 11438 # KCC will only create a shared library if the output file 11439 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11440 # to its proper name (with version) after linking. 11441 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' 11442 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' 11443 # Commands to make compiler produce verbose output that lists 11444 # what "hidden" libraries, object files and flags are used when 11445 # linking a shared library. 11446 # 11447 # There doesn't appear to be a way to prevent this compiler from 11448 # explicitly linking system object files so we need to strip them 11449 # from the output so that they don't get included in the library 11450 # dependencies. 11451 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' 11452 11453 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11455 11456 # Archives containing C++ object files must be created using 11457 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11458 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11459 ;; 11460 icpc*) 11461 # Intel C++ 11462 with_gnu_ld=yes 11463 # version 8.0 and above of icpc choke on multiply defined symbols 11464 # if we add $predep_objects and $postdep_objects, however 7.1 and 11465 # earlier do not add the objects themselves. 11466 case `$CC -V 2>&1` in 11467 *"Version 7."*) 11468 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11469 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' 11470 ;; 11471 *) # Version 8.0 or newer 11472 tmp_idyn= 11473 case $host_cpu in 11474 ia64*) tmp_idyn=' -i_dynamic';; 11475 esac 11476 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11477 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' 11478 ;; 11479 esac 11480 archive_cmds_need_lc_CXX=no 11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11483 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11484 ;; 11485 pgCC*) 11486 # Portland Group C++ compiler 11487 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11488 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' 11489 11490 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11492 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' 11493 ;; 11494 cxx*) 11495 # Compaq C++ 11496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11497 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' 11498 11499 runpath_var=LD_RUN_PATH 11500 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11501 hardcode_libdir_separator_CXX=: 11502 11503 # Commands to make compiler produce verbose output that lists 11504 # what "hidden" libraries, object files and flags are used when 11505 # linking a shared library. 11506 # 11507 # There doesn't appear to be a way to prevent this compiler from 11508 # explicitly linking system object files so we need to strip them 11509 # from the output so that they don't get included in the library 11510 # dependencies. 11511 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' 11512 ;; 11513 *) 11514 case `$CC -V 2>&1 | sed 5q` in 11515 *Sun\ C*) 11516 # Sun C++ 5.9 11517 no_undefined_flag_CXX=' -zdefs' 11518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11519 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' 11520 hardcode_libdir_flag_spec_CXX='-R$libdir' 11521 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' 11522 11523 # Not sure whether something based on 11524 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11525 # would be better. 11526 output_verbose_link_cmd='echo' 11527 11528 # Archives containing C++ object files must be created using 11529 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11530 # necessary to make sure instantiated templates are included 11531 # in the archive. 11532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11533 ;; 11534 esac 11535 ;; 11536 esac 11537 ;; 11538 lynxos*) 11539 # FIXME: insert proper C++ library support 11540 ld_shlibs_CXX=no 11541 ;; 11542 m88k*) 11543 # FIXME: insert proper C++ library support 11544 ld_shlibs_CXX=no 11545 ;; 11546 mvs*) 11547 case $cc_basename in 11548 cxx*) 11549 # FIXME: insert proper C++ library support 11550 ld_shlibs_CXX=no 11551 ;; 11552 *) 11553 # FIXME: insert proper C++ library support 11554 ld_shlibs_CXX=no 11555 ;; 11556 esac 11557 ;; 11558 netbsd*) 11559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11561 wlarc= 11562 hardcode_libdir_flag_spec_CXX='-R$libdir' 11563 hardcode_direct_CXX=yes 11564 hardcode_shlibpath_var_CXX=no 11565 fi 11566 # Workaround some broken pre-1.5 toolchains 11567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11568 ;; 11569 openbsd2*) 11570 # C++ shared libraries are fairly broken 11571 ld_shlibs_CXX=no 11572 ;; 11573 openbsd*) 11574 if test -f /usr/libexec/ld.so; then 11575 hardcode_direct_CXX=yes 11576 hardcode_shlibpath_var_CXX=no 11577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11581 export_dynamic_flag_spec_CXX='${wl}-E' 11582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11583 fi 11584 output_verbose_link_cmd='echo' 11585 else 11586 ld_shlibs_CXX=no 11587 fi 11588 ;; 11589 osf3*) 11590 case $cc_basename in 11591 KCC*) 11592 # Kuck and Associates, Inc. (KAI) C++ Compiler 11593 11594 # KCC will only create a shared library if the output file 11595 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11596 # to its proper name (with version) after linking. 11597 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' 11598 11599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11600 hardcode_libdir_separator_CXX=: 11601 11602 # Archives containing C++ object files must be created using 11603 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11605 11606 ;; 11607 RCC*) 11608 # Rational C++ 2.4.1 11609 # FIXME: insert proper C++ library support 11610 ld_shlibs_CXX=no 11611 ;; 11612 cxx*) 11613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11614 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' 11615 11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11617 hardcode_libdir_separator_CXX=: 11618 11619 # Commands to make compiler produce verbose output that lists 11620 # what "hidden" libraries, object files and flags are used when 11621 # linking a shared library. 11622 # 11623 # There doesn't appear to be a way to prevent this compiler from 11624 # explicitly linking system object files so we need to strip them 11625 # from the output so that they don't get included in the library 11626 # dependencies. 11627 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' 11628 ;; 11629 *) 11630 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11631 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11632 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' 11633 11634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11635 hardcode_libdir_separator_CXX=: 11636 11637 # Commands to make compiler produce verbose output that lists 11638 # what "hidden" libraries, object files and flags are used when 11639 # linking a shared library. 11640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11641 11642 else 11643 # FIXME: insert proper C++ library support 11644 ld_shlibs_CXX=no 11645 fi 11646 ;; 11647 esac 11648 ;; 11649 osf4* | osf5*) 11650 case $cc_basename in 11651 KCC*) 11652 # Kuck and Associates, Inc. (KAI) C++ Compiler 11653 11654 # KCC will only create a shared library if the output file 11655 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11656 # to its proper name (with version) after linking. 11657 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' 11658 11659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11660 hardcode_libdir_separator_CXX=: 11661 11662 # Archives containing C++ object files must be created using 11663 # the KAI C++ compiler. 11664 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11665 ;; 11666 RCC*) 11667 # Rational C++ 2.4.1 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 cxx*) 11672 allow_undefined_flag_CXX=' -expect_unresolved \*' 11673 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' 11674 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11675 echo "-hidden">> $lib.exp~ 11676 $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~ 11677 $rm $lib.exp' 11678 11679 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11680 hardcode_libdir_separator_CXX=: 11681 11682 # Commands to make compiler produce verbose output that lists 11683 # what "hidden" libraries, object files and flags are used when 11684 # linking a shared library. 11685 # 11686 # There doesn't appear to be a way to prevent this compiler from 11687 # explicitly linking system object files so we need to strip them 11688 # from the output so that they don't get included in the library 11689 # dependencies. 11690 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' 11691 ;; 11692 *) 11693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11695 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' 11696 11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11698 hardcode_libdir_separator_CXX=: 11699 11700 # Commands to make compiler produce verbose output that lists 11701 # what "hidden" libraries, object files and flags are used when 11702 # linking a shared library. 11703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11704 11705 else 11706 # FIXME: insert proper C++ library support 11707 ld_shlibs_CXX=no 11708 fi 11709 ;; 11710 esac 11711 ;; 11712 psos*) 11713 # FIXME: insert proper C++ library support 11714 ld_shlibs_CXX=no 11715 ;; 11716 sunos4*) 11717 case $cc_basename in 11718 CC*) 11719 # Sun C++ 4.x 11720 # FIXME: insert proper C++ library support 11721 ld_shlibs_CXX=no 11722 ;; 11723 lcc*) 11724 # Lucid 11725 # FIXME: insert proper C++ library support 11726 ld_shlibs_CXX=no 11727 ;; 11728 *) 11729 # FIXME: insert proper C++ library support 11730 ld_shlibs_CXX=no 11731 ;; 11732 esac 11733 ;; 11734 solaris*) 11735 case $cc_basename in 11736 CC*) 11737 # Sun C++ 4.2, 5.x and Centerline C++ 11738 archive_cmds_need_lc_CXX=yes 11739 no_undefined_flag_CXX=' -zdefs' 11740 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11741 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11742 $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' 11743 11744 hardcode_libdir_flag_spec_CXX='-R$libdir' 11745 hardcode_shlibpath_var_CXX=no 11746 case $host_os in 11747 solaris2.[0-5] | solaris2.[0-5].*) ;; 11748 *) 11749 # The compiler driver will combine and reorder linker options, 11750 # but understands `-z linker_flag'. 11751 # Supported since Solaris 2.6 (maybe 2.5.1?) 11752 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11753 ;; 11754 esac 11755 link_all_deplibs_CXX=yes 11756 11757 output_verbose_link_cmd='echo' 11758 11759 # Archives containing C++ object files must be created using 11760 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11761 # necessary to make sure instantiated templates are included 11762 # in the archive. 11763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11764 ;; 11765 gcx*) 11766 # Green Hills C++ Compiler 11767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11768 11769 # The C++ compiler must be used to create the archive. 11770 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11771 ;; 11772 *) 11773 # GNU C++ compiler with Solaris linker 11774 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11775 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11776 if $CC --version | grep -v '^2\.7' > /dev/null; then 11777 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11778 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11779 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11780 11781 # Commands to make compiler produce verbose output that lists 11782 # what "hidden" libraries, object files and flags are used when 11783 # linking a shared library. 11784 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11785 else 11786 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11787 # platform. 11788 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11790 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11791 11792 # Commands to make compiler produce verbose output that lists 11793 # what "hidden" libraries, object files and flags are used when 11794 # linking a shared library. 11795 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11796 fi 11797 11798 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11799 case $host_os in 11800 solaris2.[0-5] | solaris2.[0-5].*) ;; 11801 *) 11802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11803 ;; 11804 esac 11805 fi 11806 ;; 11807 esac 11808 ;; 11809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11810 no_undefined_flag_CXX='${wl}-z,text' 11811 archive_cmds_need_lc_CXX=no 11812 hardcode_shlibpath_var_CXX=no 11813 runpath_var='LD_RUN_PATH' 11814 11815 case $cc_basename in 11816 CC*) 11817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11818 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11819 ;; 11820 *) 11821 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11822 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11823 ;; 11824 esac 11825 ;; 11826 sysv5* | sco3.2v5* | sco5v6*) 11827 # Note: We can NOT use -z defs as we might desire, because we do not 11828 # link with -lc, and that would cause any symbols used from libc to 11829 # always be unresolved, which means just about no library would 11830 # ever link correctly. If we're not using GNU ld we use -z text 11831 # though, which does catch some bad symbols but isn't as heavy-handed 11832 # as -z defs. 11833 # For security reasons, it is highly recommended that you always 11834 # use absolute paths for naming shared libraries, and exclude the 11835 # DT_RUNPATH tag from executables and libraries. But doing so 11836 # requires that you compile everything twice, which is a pain. 11837 # So that behaviour is only enabled if SCOABSPATH is set to a 11838 # non-empty value in the environment. Most likely only useful for 11839 # creating official distributions of packages. 11840 # This is a hack until libtool officially supports absolute path 11841 # names for shared libraries. 11842 no_undefined_flag_CXX='${wl}-z,text' 11843 allow_undefined_flag_CXX='${wl}-z,nodefs' 11844 archive_cmds_need_lc_CXX=no 11845 hardcode_shlibpath_var_CXX=no 11846 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11847 hardcode_libdir_separator_CXX=':' 11848 link_all_deplibs_CXX=yes 11849 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11850 runpath_var='LD_RUN_PATH' 11851 11852 case $cc_basename in 11853 CC*) 11854 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11855 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11856 ;; 11857 *) 11858 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11859 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11860 ;; 11861 esac 11862 ;; 11863 tandem*) 11864 case $cc_basename in 11865 NCC*) 11866 # NonStop-UX NCC 3.20 11867 # FIXME: insert proper C++ library support 11868 ld_shlibs_CXX=no 11869 ;; 11870 *) 11871 # FIXME: insert proper C++ library support 11872 ld_shlibs_CXX=no 11873 ;; 11874 esac 11875 ;; 11876 vxworks*) 11877 # FIXME: insert proper C++ library support 11878 ld_shlibs_CXX=no 11879 ;; 11880 *) 11881 # FIXME: insert proper C++ library support 11882 ld_shlibs_CXX=no 11883 ;; 11884esac 11885{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11886echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11887test "$ld_shlibs_CXX" = no && can_build_shared=no 11888 11889GCC_CXX="$GXX" 11890LD_CXX="$LD" 11891 11892 11893cat > conftest.$ac_ext <<EOF 11894class Foo 11895{ 11896public: 11897 Foo (void) { a = 0; } 11898private: 11899 int a; 11900}; 11901EOF 11902 11903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11904 (eval $ac_compile) 2>&5 11905 ac_status=$? 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); }; then 11908 # Parse the compiler output and extract the necessary 11909 # objects, libraries and library flags. 11910 11911 # Sentinel used to keep track of whether or not we are before 11912 # the conftest object file. 11913 pre_test_object_deps_done=no 11914 11915 # The `*' in the case matches for architectures that use `case' in 11916 # $output_verbose_cmd can trigger glob expansion during the loop 11917 # eval without this substitution. 11918 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11919 11920 for p in `eval $output_verbose_link_cmd`; do 11921 case $p in 11922 11923 -L* | -R* | -l*) 11924 # Some compilers place space between "-{L,R}" and the path. 11925 # Remove the space. 11926 if test $p = "-L" \ 11927 || test $p = "-R"; then 11928 prev=$p 11929 continue 11930 else 11931 prev= 11932 fi 11933 11934 if test "$pre_test_object_deps_done" = no; then 11935 case $p in 11936 -L* | -R*) 11937 # Internal compiler library paths should come after those 11938 # provided the user. The postdeps already come after the 11939 # user supplied libs so there is no need to process them. 11940 if test -z "$compiler_lib_search_path_CXX"; then 11941 compiler_lib_search_path_CXX="${prev}${p}" 11942 else 11943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11944 fi 11945 ;; 11946 # The "-l" case would never come before the object being 11947 # linked, so don't bother handling this case. 11948 esac 11949 else 11950 if test -z "$postdeps_CXX"; then 11951 postdeps_CXX="${prev}${p}" 11952 else 11953 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11954 fi 11955 fi 11956 ;; 11957 11958 *.$objext) 11959 # This assumes that the test object file only shows up 11960 # once in the compiler output. 11961 if test "$p" = "conftest.$objext"; then 11962 pre_test_object_deps_done=yes 11963 continue 11964 fi 11965 11966 if test "$pre_test_object_deps_done" = no; then 11967 if test -z "$predep_objects_CXX"; then 11968 predep_objects_CXX="$p" 11969 else 11970 predep_objects_CXX="$predep_objects_CXX $p" 11971 fi 11972 else 11973 if test -z "$postdep_objects_CXX"; then 11974 postdep_objects_CXX="$p" 11975 else 11976 postdep_objects_CXX="$postdep_objects_CXX $p" 11977 fi 11978 fi 11979 ;; 11980 11981 *) ;; # Ignore the rest. 11982 11983 esac 11984 done 11985 11986 # Clean up. 11987 rm -f a.out a.exe 11988else 11989 echo "libtool.m4: error: problem compiling CXX test program" 11990fi 11991 11992$rm -f confest.$objext 11993 11994# PORTME: override above test on systems where it is broken 11995case $host_os in 11996interix[3-9]*) 11997 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11998 # hack all around it, let's just trust "g++" to DTRT. 11999 predep_objects_CXX= 12000 postdep_objects_CXX= 12001 postdeps_CXX= 12002 ;; 12003 12004linux*) 12005 case `$CC -V 2>&1 | sed 5q` in 12006 *Sun\ C*) 12007 # Sun C++ 5.9 12008 # 12009 # The more standards-conforming stlport4 library is 12010 # incompatible with the Cstd library. Avoid specifying 12011 # it if it's in CXXFLAGS. Ignore libCrun as 12012 # -library=stlport4 depends on it. 12013 case " $CXX $CXXFLAGS " in 12014 *" -library=stlport4 "*) 12015 solaris_use_stlport4=yes 12016 ;; 12017 esac 12018 if test "$solaris_use_stlport4" != yes; then 12019 postdeps_CXX='-library=Cstd -library=Crun' 12020 fi 12021 ;; 12022 esac 12023 ;; 12024 12025solaris*) 12026 case $cc_basename in 12027 CC*) 12028 # The more standards-conforming stlport4 library is 12029 # incompatible with the Cstd library. Avoid specifying 12030 # it if it's in CXXFLAGS. Ignore libCrun as 12031 # -library=stlport4 depends on it. 12032 case " $CXX $CXXFLAGS " in 12033 *" -library=stlport4 "*) 12034 solaris_use_stlport4=yes 12035 ;; 12036 esac 12037 12038 # Adding this requires a known-good setup of shared libraries for 12039 # Sun compiler versions before 5.6, else PIC objects from an old 12040 # archive will be linked into the output, leading to subtle bugs. 12041 if test "$solaris_use_stlport4" != yes; then 12042 postdeps_CXX='-library=Cstd -library=Crun' 12043 fi 12044 ;; 12045 esac 12046 ;; 12047esac 12048 12049 12050case " $postdeps_CXX " in 12051*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12052esac 12053 12054lt_prog_compiler_wl_CXX= 12055lt_prog_compiler_pic_CXX= 12056lt_prog_compiler_static_CXX= 12057 12058{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12059echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12060 12061 # C++ specific cases for pic, static, wl, etc. 12062 if test "$GXX" = yes; then 12063 lt_prog_compiler_wl_CXX='-Wl,' 12064 lt_prog_compiler_static_CXX='-static' 12065 12066 case $host_os in 12067 aix*) 12068 # All AIX code is PIC. 12069 if test "$host_cpu" = ia64; then 12070 # AIX 5 now supports IA64 processor 12071 lt_prog_compiler_static_CXX='-Bstatic' 12072 fi 12073 ;; 12074 amigaos*) 12075 # FIXME: we need at least 68020 code to build shared libraries, but 12076 # adding the `-m68020' flag to GCC prevents building anything better, 12077 # like `-m68040'. 12078 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12079 ;; 12080 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12081 # PIC is the default for these OSes. 12082 ;; 12083 mingw* | cygwin* | os2* | pw32*) 12084 # This hack is so that the source file can tell whether it is being 12085 # built for inclusion in a dll (and should export symbols for example). 12086 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12087 # (--disable-auto-import) libraries 12088 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12089 ;; 12090 darwin* | rhapsody*) 12091 # PIC is the default on this platform 12092 # Common symbols not allowed in MH_DYLIB files 12093 lt_prog_compiler_pic_CXX='-fno-common' 12094 ;; 12095 *djgpp*) 12096 # DJGPP does not support shared libraries at all 12097 lt_prog_compiler_pic_CXX= 12098 ;; 12099 interix[3-9]*) 12100 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12101 # Instead, we relocate shared libraries at runtime. 12102 ;; 12103 sysv4*MP*) 12104 if test -d /usr/nec; then 12105 lt_prog_compiler_pic_CXX=-Kconform_pic 12106 fi 12107 ;; 12108 hpux*) 12109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12110 # not for PA HP-UX. 12111 case $host_cpu in 12112 hppa*64*|ia64*) 12113 ;; 12114 *) 12115 lt_prog_compiler_pic_CXX='-fPIC' 12116 ;; 12117 esac 12118 ;; 12119 *) 12120 lt_prog_compiler_pic_CXX='-fPIC' 12121 ;; 12122 esac 12123 else 12124 case $host_os in 12125 aix4* | aix5*) 12126 # All AIX code is PIC. 12127 if test "$host_cpu" = ia64; then 12128 # AIX 5 now supports IA64 processor 12129 lt_prog_compiler_static_CXX='-Bstatic' 12130 else 12131 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12132 fi 12133 ;; 12134 chorus*) 12135 case $cc_basename in 12136 cxch68*) 12137 # Green Hills C++ Compiler 12138 # _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" 12139 ;; 12140 esac 12141 ;; 12142 darwin*) 12143 # PIC is the default on this platform 12144 # Common symbols not allowed in MH_DYLIB files 12145 case $cc_basename in 12146 xlc*) 12147 lt_prog_compiler_pic_CXX='-qnocommon' 12148 lt_prog_compiler_wl_CXX='-Wl,' 12149 ;; 12150 esac 12151 ;; 12152 dgux*) 12153 case $cc_basename in 12154 ec++*) 12155 lt_prog_compiler_pic_CXX='-KPIC' 12156 ;; 12157 ghcx*) 12158 # Green Hills C++ Compiler 12159 lt_prog_compiler_pic_CXX='-pic' 12160 ;; 12161 *) 12162 ;; 12163 esac 12164 ;; 12165 freebsd* | dragonfly*) 12166 # FreeBSD uses GNU C++ 12167 ;; 12168 hpux9* | hpux10* | hpux11*) 12169 case $cc_basename in 12170 CC*) 12171 lt_prog_compiler_wl_CXX='-Wl,' 12172 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12173 if test "$host_cpu" != ia64; then 12174 lt_prog_compiler_pic_CXX='+Z' 12175 fi 12176 ;; 12177 aCC*) 12178 lt_prog_compiler_wl_CXX='-Wl,' 12179 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12180 case $host_cpu in 12181 hppa*64*|ia64*) 12182 # +Z the default 12183 ;; 12184 *) 12185 lt_prog_compiler_pic_CXX='+Z' 12186 ;; 12187 esac 12188 ;; 12189 *) 12190 ;; 12191 esac 12192 ;; 12193 interix*) 12194 # This is c89, which is MS Visual C++ (no shared libs) 12195 # Anyone wants to do a port? 12196 ;; 12197 irix5* | irix6* | nonstopux*) 12198 case $cc_basename in 12199 CC*) 12200 lt_prog_compiler_wl_CXX='-Wl,' 12201 lt_prog_compiler_static_CXX='-non_shared' 12202 # CC pic flag -KPIC is the default. 12203 ;; 12204 *) 12205 ;; 12206 esac 12207 ;; 12208 linux* | k*bsd*-gnu) 12209 case $cc_basename in 12210 KCC*) 12211 # KAI C++ Compiler 12212 lt_prog_compiler_wl_CXX='--backend -Wl,' 12213 lt_prog_compiler_pic_CXX='-fPIC' 12214 ;; 12215 icpc* | ecpc*) 12216 # Intel C++ 12217 lt_prog_compiler_wl_CXX='-Wl,' 12218 lt_prog_compiler_pic_CXX='-KPIC' 12219 lt_prog_compiler_static_CXX='-static' 12220 ;; 12221 pgCC*) 12222 # Portland Group C++ compiler. 12223 lt_prog_compiler_wl_CXX='-Wl,' 12224 lt_prog_compiler_pic_CXX='-fpic' 12225 lt_prog_compiler_static_CXX='-Bstatic' 12226 ;; 12227 cxx*) 12228 # Compaq C++ 12229 # Make sure the PIC flag is empty. It appears that all Alpha 12230 # Linux and Compaq Tru64 Unix objects are PIC. 12231 lt_prog_compiler_pic_CXX= 12232 lt_prog_compiler_static_CXX='-non_shared' 12233 ;; 12234 *) 12235 case `$CC -V 2>&1 | sed 5q` in 12236 *Sun\ C*) 12237 # Sun C++ 5.9 12238 lt_prog_compiler_pic_CXX='-KPIC' 12239 lt_prog_compiler_static_CXX='-Bstatic' 12240 lt_prog_compiler_wl_CXX='-Qoption ld ' 12241 ;; 12242 esac 12243 ;; 12244 esac 12245 ;; 12246 lynxos*) 12247 ;; 12248 m88k*) 12249 ;; 12250 mvs*) 12251 case $cc_basename in 12252 cxx*) 12253 lt_prog_compiler_pic_CXX='-W c,exportall' 12254 ;; 12255 *) 12256 ;; 12257 esac 12258 ;; 12259 netbsd*) 12260 ;; 12261 osf3* | osf4* | osf5*) 12262 case $cc_basename in 12263 KCC*) 12264 lt_prog_compiler_wl_CXX='--backend -Wl,' 12265 ;; 12266 RCC*) 12267 # Rational C++ 2.4.1 12268 lt_prog_compiler_pic_CXX='-pic' 12269 ;; 12270 cxx*) 12271 # Digital/Compaq C++ 12272 lt_prog_compiler_wl_CXX='-Wl,' 12273 # Make sure the PIC flag is empty. It appears that all Alpha 12274 # Linux and Compaq Tru64 Unix objects are PIC. 12275 lt_prog_compiler_pic_CXX= 12276 lt_prog_compiler_static_CXX='-non_shared' 12277 ;; 12278 *) 12279 ;; 12280 esac 12281 ;; 12282 psos*) 12283 ;; 12284 solaris*) 12285 case $cc_basename in 12286 CC*) 12287 # Sun C++ 4.2, 5.x and Centerline C++ 12288 lt_prog_compiler_pic_CXX='-KPIC' 12289 lt_prog_compiler_static_CXX='-Bstatic' 12290 lt_prog_compiler_wl_CXX='-Qoption ld ' 12291 ;; 12292 gcx*) 12293 # Green Hills C++ Compiler 12294 lt_prog_compiler_pic_CXX='-PIC' 12295 ;; 12296 *) 12297 ;; 12298 esac 12299 ;; 12300 sunos4*) 12301 case $cc_basename in 12302 CC*) 12303 # Sun C++ 4.x 12304 lt_prog_compiler_pic_CXX='-pic' 12305 lt_prog_compiler_static_CXX='-Bstatic' 12306 ;; 12307 lcc*) 12308 # Lucid 12309 lt_prog_compiler_pic_CXX='-pic' 12310 ;; 12311 *) 12312 ;; 12313 esac 12314 ;; 12315 tandem*) 12316 case $cc_basename in 12317 NCC*) 12318 # NonStop-UX NCC 3.20 12319 lt_prog_compiler_pic_CXX='-KPIC' 12320 ;; 12321 *) 12322 ;; 12323 esac 12324 ;; 12325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12326 case $cc_basename in 12327 CC*) 12328 lt_prog_compiler_wl_CXX='-Wl,' 12329 lt_prog_compiler_pic_CXX='-KPIC' 12330 lt_prog_compiler_static_CXX='-Bstatic' 12331 ;; 12332 esac 12333 ;; 12334 vxworks*) 12335 ;; 12336 *) 12337 lt_prog_compiler_can_build_shared_CXX=no 12338 ;; 12339 esac 12340 fi 12341 12342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12343echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12344 12345# 12346# Check to make sure the PIC flag actually works. 12347# 12348if test -n "$lt_prog_compiler_pic_CXX"; then 12349 12350{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12351echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12352if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12353 echo $ECHO_N "(cached) $ECHO_C" >&6 12354else 12355 lt_prog_compiler_pic_works_CXX=no 12356 ac_outfile=conftest.$ac_objext 12357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12358 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12359 # Insert the option either (1) after the last *FLAGS variable, or 12360 # (2) before a word containing "conftest.", or (3) at the end. 12361 # Note that $ac_compile itself does not contain backslashes and begins 12362 # with a dollar sign (not a hyphen), so the echo should work correctly. 12363 # The option is referenced via a variable to avoid confusing sed. 12364 lt_compile=`echo "$ac_compile" | $SED \ 12365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12367 -e 's:$: $lt_compiler_flag:'` 12368 (eval echo "\"\$as_me:12368: $lt_compile\"" >&5) 12369 (eval "$lt_compile" 2>conftest.err) 12370 ac_status=$? 12371 cat conftest.err >&5 12372 echo "$as_me:12372: \$? = $ac_status" >&5 12373 if (exit $ac_status) && test -s "$ac_outfile"; then 12374 # The compiler can only warn and ignore the option if not recognized 12375 # So say no if there are warnings other than the usual output. 12376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12379 lt_prog_compiler_pic_works_CXX=yes 12380 fi 12381 fi 12382 $rm conftest* 12383 12384fi 12385{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12386echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12387 12388if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12389 case $lt_prog_compiler_pic_CXX in 12390 "" | " "*) ;; 12391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12392 esac 12393else 12394 lt_prog_compiler_pic_CXX= 12395 lt_prog_compiler_can_build_shared_CXX=no 12396fi 12397 12398fi 12399case $host_os in 12400 # For platforms which do not support PIC, -DPIC is meaningless: 12401 *djgpp*) 12402 lt_prog_compiler_pic_CXX= 12403 ;; 12404 *) 12405 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12406 ;; 12407esac 12408 12409# 12410# Check to make sure the static flag actually works. 12411# 12412wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12413{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12414echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12415if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12416 echo $ECHO_N "(cached) $ECHO_C" >&6 12417else 12418 lt_prog_compiler_static_works_CXX=no 12419 save_LDFLAGS="$LDFLAGS" 12420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12421 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12423 # The linker can only warn and ignore the option if not recognized 12424 # So say no if there are warnings 12425 if test -s conftest.err; then 12426 # Append any errors to the config.log. 12427 cat conftest.err 1>&5 12428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12430 if diff conftest.exp conftest.er2 >/dev/null; then 12431 lt_prog_compiler_static_works_CXX=yes 12432 fi 12433 else 12434 lt_prog_compiler_static_works_CXX=yes 12435 fi 12436 fi 12437 $rm conftest* 12438 LDFLAGS="$save_LDFLAGS" 12439 12440fi 12441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12442echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12443 12444if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12445 : 12446else 12447 lt_prog_compiler_static_CXX= 12448fi 12449 12450 12451{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12453if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12454 echo $ECHO_N "(cached) $ECHO_C" >&6 12455else 12456 lt_cv_prog_compiler_c_o_CXX=no 12457 $rm -r conftest 2>/dev/null 12458 mkdir conftest 12459 cd conftest 12460 mkdir out 12461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12462 12463 lt_compiler_flag="-o out/conftest2.$ac_objext" 12464 # Insert the option either (1) after the last *FLAGS variable, or 12465 # (2) before a word containing "conftest.", or (3) at the end. 12466 # Note that $ac_compile itself does not contain backslashes and begins 12467 # with a dollar sign (not a hyphen), so the echo should work correctly. 12468 lt_compile=`echo "$ac_compile" | $SED \ 12469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12471 -e 's:$: $lt_compiler_flag:'` 12472 (eval echo "\"\$as_me:12472: $lt_compile\"" >&5) 12473 (eval "$lt_compile" 2>out/conftest.err) 12474 ac_status=$? 12475 cat out/conftest.err >&5 12476 echo "$as_me:12476: \$? = $ac_status" >&5 12477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12478 then 12479 # The compiler can only warn and ignore the option if not recognized 12480 # So say no if there are warnings 12481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12484 lt_cv_prog_compiler_c_o_CXX=yes 12485 fi 12486 fi 12487 chmod u+w . 2>&5 12488 $rm conftest* 12489 # SGI C++ compiler will create directory out/ii_files/ for 12490 # template instantiation 12491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12492 $rm out/* && rmdir out 12493 cd .. 12494 rmdir conftest 12495 $rm conftest* 12496 12497fi 12498{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12499echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12500 12501 12502hard_links="nottested" 12503if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12504 # do not overwrite the value of need_locks provided by the user 12505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12506echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12507 hard_links=yes 12508 $rm conftest* 12509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12510 touch conftest.a 12511 ln conftest.a conftest.b 2>&5 || hard_links=no 12512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12513 { echo "$as_me:$LINENO: result: $hard_links" >&5 12514echo "${ECHO_T}$hard_links" >&6; } 12515 if test "$hard_links" = no; then 12516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12517echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12518 need_locks=warn 12519 fi 12520else 12521 need_locks=no 12522fi 12523 12524{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12525echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12526 12527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12528 case $host_os in 12529 aix4* | aix5*) 12530 # If we're using GNU nm, then we don't want the "-C" option. 12531 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12532 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12533 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' 12534 else 12535 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' 12536 fi 12537 ;; 12538 pw32*) 12539 export_symbols_cmds_CXX="$ltdll_cmds" 12540 ;; 12541 cygwin* | mingw*) 12542 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' 12543 ;; 12544 *) 12545 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12546 ;; 12547 esac 12548 12549{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12550echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12551test "$ld_shlibs_CXX" = no && can_build_shared=no 12552 12553# 12554# Do we need to explicitly link libc? 12555# 12556case "x$archive_cmds_need_lc_CXX" in 12557x|xyes) 12558 # Assume -lc should be added 12559 archive_cmds_need_lc_CXX=yes 12560 12561 if test "$enable_shared" = yes && test "$GCC" = yes; then 12562 case $archive_cmds_CXX in 12563 *'~'*) 12564 # FIXME: we may have to deal with multi-command sequences. 12565 ;; 12566 '$CC '*) 12567 # Test whether the compiler implicitly links with -lc since on some 12568 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12569 # to ld, don't add -lc before -lgcc. 12570 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12571echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12572 $rm conftest* 12573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12574 12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12576 (eval $ac_compile) 2>&5 12577 ac_status=$? 12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12579 (exit $ac_status); } 2>conftest.err; then 12580 soname=conftest 12581 lib=conftest 12582 libobjs=conftest.$ac_objext 12583 deplibs= 12584 wl=$lt_prog_compiler_wl_CXX 12585 pic_flag=$lt_prog_compiler_pic_CXX 12586 compiler_flags=-v 12587 linker_flags=-v 12588 verstring= 12589 output_objdir=. 12590 libname=conftest 12591 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12592 allow_undefined_flag_CXX= 12593 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12594 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12595 ac_status=$? 12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12597 (exit $ac_status); } 12598 then 12599 archive_cmds_need_lc_CXX=no 12600 else 12601 archive_cmds_need_lc_CXX=yes 12602 fi 12603 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12604 else 12605 cat conftest.err 1>&5 12606 fi 12607 $rm conftest* 12608 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12609echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12610 ;; 12611 esac 12612 fi 12613 ;; 12614esac 12615 12616{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12617echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12618library_names_spec= 12619libname_spec='lib$name' 12620soname_spec= 12621shrext_cmds=".so" 12622postinstall_cmds= 12623postuninstall_cmds= 12624finish_cmds= 12625finish_eval= 12626shlibpath_var= 12627shlibpath_overrides_runpath=unknown 12628version_type=none 12629dynamic_linker="$host_os ld.so" 12630sys_lib_dlsearch_path_spec="/lib /usr/lib" 12631 12632need_lib_prefix=unknown 12633hardcode_into_libs=no 12634 12635# when you set need_version to no, make sure it does not cause -set_version 12636# flags to be left without arguments 12637need_version=unknown 12638 12639case $host_os in 12640aix3*) 12641 version_type=linux 12642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12643 shlibpath_var=LIBPATH 12644 12645 # AIX 3 has no versioning support, so we append a major version to the name. 12646 soname_spec='${libname}${release}${shared_ext}$major' 12647 ;; 12648 12649aix4* | aix5*) 12650 version_type=linux 12651 need_lib_prefix=no 12652 need_version=no 12653 hardcode_into_libs=yes 12654 if test "$host_cpu" = ia64; then 12655 # AIX 5 supports IA64 12656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12657 shlibpath_var=LD_LIBRARY_PATH 12658 else 12659 # With GCC up to 2.95.x, collect2 would create an import file 12660 # for dependence libraries. The import file would start with 12661 # the line `#! .'. This would cause the generated library to 12662 # depend on `.', always an invalid library. This was fixed in 12663 # development snapshots of GCC prior to 3.0. 12664 case $host_os in 12665 aix4 | aix4.[01] | aix4.[01].*) 12666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12667 echo ' yes ' 12668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12669 : 12670 else 12671 can_build_shared=no 12672 fi 12673 ;; 12674 esac 12675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12676 # soname into executable. Probably we can add versioning support to 12677 # collect2, so additional links can be useful in future. 12678 if test "$aix_use_runtimelinking" = yes; then 12679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12680 # instead of lib<name>.a to let people know that these are not 12681 # typical AIX shared libraries. 12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12683 else 12684 # We preserve .a as extension for shared libraries through AIX4.2 12685 # and later when we are not doing run time linking. 12686 library_names_spec='${libname}${release}.a $libname.a' 12687 soname_spec='${libname}${release}${shared_ext}$major' 12688 fi 12689 shlibpath_var=LIBPATH 12690 fi 12691 ;; 12692 12693amigaos*) 12694 library_names_spec='$libname.ixlibrary $libname.a' 12695 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12696 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' 12697 ;; 12698 12699beos*) 12700 library_names_spec='${libname}${shared_ext}' 12701 dynamic_linker="$host_os ld.so" 12702 shlibpath_var=LIBRARY_PATH 12703 ;; 12704 12705bsdi[45]*) 12706 version_type=linux 12707 need_version=no 12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12709 soname_spec='${libname}${release}${shared_ext}$major' 12710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12711 shlibpath_var=LD_LIBRARY_PATH 12712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12714 # the default ld.so.conf also contains /usr/contrib/lib and 12715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12716 # libtool to hard-code these into programs 12717 ;; 12718 12719cygwin* | mingw* | pw32*) 12720 version_type=windows 12721 shrext_cmds=".dll" 12722 need_version=no 12723 need_lib_prefix=no 12724 12725 case $GCC,$host_os in 12726 yes,cygwin* | yes,mingw* | yes,pw32*) 12727 library_names_spec='$libname.dll.a' 12728 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12729 postinstall_cmds='base_file=`basename \${file}`~ 12730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12731 dldir=$destdir/`dirname \$dlpath`~ 12732 test -d \$dldir || mkdir -p \$dldir~ 12733 $install_prog $dir/$dlname \$dldir/$dlname~ 12734 chmod a+x \$dldir/$dlname' 12735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12736 dlpath=$dir/\$dldll~ 12737 $rm \$dlpath' 12738 shlibpath_overrides_runpath=yes 12739 12740 case $host_os in 12741 cygwin*) 12742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12745 ;; 12746 mingw*) 12747 # MinGW DLLs use traditional 'lib' prefix 12748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12751 # It is most probably a Windows format PATH printed by 12752 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12753 # path with ; separators, and with drive letters. We can handle the 12754 # drive letters (cygwin fileutils understands them), so leave them, 12755 # especially as we might pass files found there to a mingw objdump, 12756 # which wouldn't understand a cygwinified path. Ahh. 12757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12758 else 12759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12760 fi 12761 ;; 12762 pw32*) 12763 # pw32 DLLs use 'pw' prefix rather than 'lib' 12764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12765 ;; 12766 esac 12767 ;; 12768 12769 *) 12770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12771 ;; 12772 esac 12773 dynamic_linker='Win32 ld.exe' 12774 # FIXME: first we should search . and the directory the executable is in 12775 shlibpath_var=PATH 12776 ;; 12777 12778darwin* | rhapsody*) 12779 dynamic_linker="$host_os dyld" 12780 version_type=darwin 12781 need_lib_prefix=no 12782 need_version=no 12783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12784 soname_spec='${libname}${release}${major}$shared_ext' 12785 shlibpath_overrides_runpath=yes 12786 shlibpath_var=DYLD_LIBRARY_PATH 12787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12788 12789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12790 ;; 12791 12792dgux*) 12793 version_type=linux 12794 need_lib_prefix=no 12795 need_version=no 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12797 soname_spec='${libname}${release}${shared_ext}$major' 12798 shlibpath_var=LD_LIBRARY_PATH 12799 ;; 12800 12801freebsd1*) 12802 dynamic_linker=no 12803 ;; 12804 12805freebsd* | dragonfly*) 12806 # DragonFly does not have aout. When/if they implement a new 12807 # versioning mechanism, adjust this. 12808 if test -x /usr/bin/objformat; then 12809 objformat=`/usr/bin/objformat` 12810 else 12811 case $host_os in 12812 freebsd[123]*) objformat=aout ;; 12813 *) objformat=elf ;; 12814 esac 12815 fi 12816 # Handle Gentoo/FreeBSD as it was Linux 12817 case $host_vendor in 12818 gentoo) 12819 version_type=linux ;; 12820 *) 12821 version_type=freebsd-$objformat ;; 12822 esac 12823 12824 case $version_type in 12825 freebsd-elf*) 12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12827 need_version=no 12828 need_lib_prefix=no 12829 ;; 12830 freebsd-*) 12831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12832 need_version=yes 12833 ;; 12834 linux) 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12836 soname_spec='${libname}${release}${shared_ext}$major' 12837 need_lib_prefix=no 12838 need_version=no 12839 ;; 12840 esac 12841 shlibpath_var=LD_LIBRARY_PATH 12842 case $host_os in 12843 freebsd2*) 12844 shlibpath_overrides_runpath=yes 12845 ;; 12846 freebsd3.[01]* | freebsdelf3.[01]*) 12847 shlibpath_overrides_runpath=yes 12848 hardcode_into_libs=yes 12849 ;; 12850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12852 shlibpath_overrides_runpath=no 12853 hardcode_into_libs=yes 12854 ;; 12855 *) # from 4.6 on, and DragonFly 12856 shlibpath_overrides_runpath=yes 12857 hardcode_into_libs=yes 12858 ;; 12859 esac 12860 ;; 12861 12862gnu*) 12863 version_type=linux 12864 need_lib_prefix=no 12865 need_version=no 12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12867 soname_spec='${libname}${release}${shared_ext}$major' 12868 shlibpath_var=LD_LIBRARY_PATH 12869 hardcode_into_libs=yes 12870 ;; 12871 12872hpux9* | hpux10* | hpux11*) 12873 # Give a soname corresponding to the major version so that dld.sl refuses to 12874 # link against other versions. 12875 version_type=sunos 12876 need_lib_prefix=no 12877 need_version=no 12878 case $host_cpu in 12879 ia64*) 12880 shrext_cmds='.so' 12881 hardcode_into_libs=yes 12882 dynamic_linker="$host_os dld.so" 12883 shlibpath_var=LD_LIBRARY_PATH 12884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12886 soname_spec='${libname}${release}${shared_ext}$major' 12887 if test "X$HPUX_IA64_MODE" = X32; then 12888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12889 else 12890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12891 fi 12892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12893 ;; 12894 hppa*64*) 12895 shrext_cmds='.sl' 12896 hardcode_into_libs=yes 12897 dynamic_linker="$host_os dld.sl" 12898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12901 soname_spec='${libname}${release}${shared_ext}$major' 12902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12904 ;; 12905 *) 12906 shrext_cmds='.sl' 12907 dynamic_linker="$host_os dld.sl" 12908 shlibpath_var=SHLIB_PATH 12909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12911 soname_spec='${libname}${release}${shared_ext}$major' 12912 ;; 12913 esac 12914 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12915 postinstall_cmds='chmod 555 $lib' 12916 ;; 12917 12918interix[3-9]*) 12919 version_type=linux 12920 need_lib_prefix=no 12921 need_version=no 12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12923 soname_spec='${libname}${release}${shared_ext}$major' 12924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12925 shlibpath_var=LD_LIBRARY_PATH 12926 shlibpath_overrides_runpath=no 12927 hardcode_into_libs=yes 12928 ;; 12929 12930irix5* | irix6* | nonstopux*) 12931 case $host_os in 12932 nonstopux*) version_type=nonstopux ;; 12933 *) 12934 if test "$lt_cv_prog_gnu_ld" = yes; then 12935 version_type=linux 12936 else 12937 version_type=irix 12938 fi ;; 12939 esac 12940 need_lib_prefix=no 12941 need_version=no 12942 soname_spec='${libname}${release}${shared_ext}$major' 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12944 case $host_os in 12945 irix5* | nonstopux*) 12946 libsuff= shlibsuff= 12947 ;; 12948 *) 12949 case $LD in # libtool.m4 will add one of these switches to LD 12950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12951 libsuff= shlibsuff= libmagic=32-bit;; 12952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12953 libsuff=32 shlibsuff=N32 libmagic=N32;; 12954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12955 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12956 *) libsuff= shlibsuff= libmagic=never-match;; 12957 esac 12958 ;; 12959 esac 12960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12961 shlibpath_overrides_runpath=no 12962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12964 hardcode_into_libs=yes 12965 ;; 12966 12967# No shared lib support for Linux oldld, aout, or coff. 12968linux*oldld* | linux*aout* | linux*coff*) 12969 dynamic_linker=no 12970 ;; 12971 12972# This must be Linux ELF. 12973linux* | k*bsd*-gnu) 12974 version_type=linux 12975 need_lib_prefix=no 12976 need_version=no 12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12978 soname_spec='${libname}${release}${shared_ext}$major' 12979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12980 shlibpath_var=LD_LIBRARY_PATH 12981 shlibpath_overrides_runpath=no 12982 # This implies no fast_install, which is unacceptable. 12983 # Some rework will be needed to allow for fast_install 12984 # before this can be enabled. 12985 hardcode_into_libs=yes 12986 12987 # Append ld.so.conf contents to the search path 12988 if test -f /etc/ld.so.conf; then 12989 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12991 fi 12992 12993 # We used to test for /lib/ld.so.1 and disable shared libraries on 12994 # powerpc, because MkLinux only supported shared libraries with the 12995 # GNU dynamic linker. Since this was broken with cross compilers, 12996 # most powerpc-linux boxes support dynamic linking these days and 12997 # people can always --disable-shared, the test was removed, and we 12998 # assume the GNU/Linux dynamic linker is in use. 12999 dynamic_linker='GNU/Linux ld.so' 13000 ;; 13001 13002netbsd*) 13003 version_type=sunos 13004 need_lib_prefix=no 13005 need_version=no 13006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13009 dynamic_linker='NetBSD (a.out) ld.so' 13010 else 13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13012 soname_spec='${libname}${release}${shared_ext}$major' 13013 dynamic_linker='NetBSD ld.elf_so' 13014 fi 13015 shlibpath_var=LD_LIBRARY_PATH 13016 shlibpath_overrides_runpath=yes 13017 hardcode_into_libs=yes 13018 ;; 13019 13020newsos6) 13021 version_type=linux 13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13023 shlibpath_var=LD_LIBRARY_PATH 13024 shlibpath_overrides_runpath=yes 13025 ;; 13026 13027nto-qnx*) 13028 version_type=linux 13029 need_lib_prefix=no 13030 need_version=no 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 shlibpath_overrides_runpath=yes 13035 ;; 13036 13037openbsd*) 13038 version_type=sunos 13039 sys_lib_dlsearch_path_spec="/usr/lib" 13040 need_lib_prefix=no 13041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13042 case $host_os in 13043 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13044 *) need_version=no ;; 13045 esac 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13050 case $host_os in 13051 openbsd2.[89] | openbsd2.[89].*) 13052 shlibpath_overrides_runpath=no 13053 ;; 13054 *) 13055 shlibpath_overrides_runpath=yes 13056 ;; 13057 esac 13058 else 13059 shlibpath_overrides_runpath=yes 13060 fi 13061 ;; 13062 13063os2*) 13064 libname_spec='$name' 13065 shrext_cmds=".dll" 13066 need_lib_prefix=no 13067 library_names_spec='$libname${shared_ext} $libname.a' 13068 dynamic_linker='OS/2 ld.exe' 13069 shlibpath_var=LIBPATH 13070 ;; 13071 13072osf3* | osf4* | osf5*) 13073 version_type=osf 13074 need_lib_prefix=no 13075 need_version=no 13076 soname_spec='${libname}${release}${shared_ext}$major' 13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13078 shlibpath_var=LD_LIBRARY_PATH 13079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13081 ;; 13082 13083rdos*) 13084 dynamic_linker=no 13085 ;; 13086 13087solaris*) 13088 version_type=linux 13089 need_lib_prefix=no 13090 need_version=no 13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13092 soname_spec='${libname}${release}${shared_ext}$major' 13093 shlibpath_var=LD_LIBRARY_PATH 13094 shlibpath_overrides_runpath=yes 13095 hardcode_into_libs=yes 13096 # ldd complains unless libraries are executable 13097 postinstall_cmds='chmod +x $lib' 13098 ;; 13099 13100sunos4*) 13101 version_type=sunos 13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13104 shlibpath_var=LD_LIBRARY_PATH 13105 shlibpath_overrides_runpath=yes 13106 if test "$with_gnu_ld" = yes; then 13107 need_lib_prefix=no 13108 fi 13109 need_version=yes 13110 ;; 13111 13112sysv4 | sysv4.3*) 13113 version_type=linux 13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13115 soname_spec='${libname}${release}${shared_ext}$major' 13116 shlibpath_var=LD_LIBRARY_PATH 13117 case $host_vendor in 13118 sni) 13119 shlibpath_overrides_runpath=no 13120 need_lib_prefix=no 13121 export_dynamic_flag_spec='${wl}-Blargedynsym' 13122 runpath_var=LD_RUN_PATH 13123 ;; 13124 siemens) 13125 need_lib_prefix=no 13126 ;; 13127 motorola) 13128 need_lib_prefix=no 13129 need_version=no 13130 shlibpath_overrides_runpath=no 13131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13132 ;; 13133 esac 13134 ;; 13135 13136sysv4*MP*) 13137 if test -d /usr/nec ;then 13138 version_type=linux 13139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13140 soname_spec='$libname${shared_ext}.$major' 13141 shlibpath_var=LD_LIBRARY_PATH 13142 fi 13143 ;; 13144 13145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13146 version_type=freebsd-elf 13147 need_lib_prefix=no 13148 need_version=no 13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13150 soname_spec='${libname}${release}${shared_ext}$major' 13151 shlibpath_var=LD_LIBRARY_PATH 13152 hardcode_into_libs=yes 13153 if test "$with_gnu_ld" = yes; then 13154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13155 shlibpath_overrides_runpath=no 13156 else 13157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13158 shlibpath_overrides_runpath=yes 13159 case $host_os in 13160 sco3.2v5*) 13161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13162 ;; 13163 esac 13164 fi 13165 sys_lib_dlsearch_path_spec='/usr/lib' 13166 ;; 13167 13168uts4*) 13169 version_type=linux 13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13171 soname_spec='${libname}${release}${shared_ext}$major' 13172 shlibpath_var=LD_LIBRARY_PATH 13173 ;; 13174 13175*) 13176 dynamic_linker=no 13177 ;; 13178esac 13179{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13180echo "${ECHO_T}$dynamic_linker" >&6; } 13181test "$dynamic_linker" = no && can_build_shared=no 13182 13183variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13184if test "$GCC" = yes; then 13185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13186fi 13187 13188{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13189echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13190hardcode_action_CXX= 13191if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13192 test -n "$runpath_var_CXX" || \ 13193 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13194 13195 # We can hardcode non-existant directories. 13196 if test "$hardcode_direct_CXX" != no && 13197 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13198 # have to relink, otherwise we might link with an installed library 13199 # when we should be linking with a yet-to-be-installed one 13200 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13201 test "$hardcode_minus_L_CXX" != no; then 13202 # Linking always hardcodes the temporary library directory. 13203 hardcode_action_CXX=relink 13204 else 13205 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13206 hardcode_action_CXX=immediate 13207 fi 13208else 13209 # We cannot hardcode anything, or else we can only hardcode existing 13210 # directories. 13211 hardcode_action_CXX=unsupported 13212fi 13213{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13214echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13215 13216if test "$hardcode_action_CXX" = relink; then 13217 # Fast installation is not supported 13218 enable_fast_install=no 13219elif test "$shlibpath_overrides_runpath" = yes || 13220 test "$enable_shared" = no; then 13221 # Fast installation is not necessary 13222 enable_fast_install=needless 13223fi 13224 13225 13226# The else clause should only fire when bootstrapping the 13227# libtool distribution, otherwise you forgot to ship ltmain.sh 13228# with your package, and you will get complaints that there are 13229# no rules to generate ltmain.sh. 13230if test -f "$ltmain"; then 13231 # See if we are running on zsh, and set the options which allow our commands through 13232 # without removal of \ escapes. 13233 if test -n "${ZSH_VERSION+set}" ; then 13234 setopt NO_GLOB_SUBST 13235 fi 13236 # Now quote all the things that may contain metacharacters while being 13237 # careful not to overquote the AC_SUBSTed values. We take copies of the 13238 # variables and quote the copies for generation of the libtool script. 13239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13240 SED SHELL STRIP \ 13241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13243 deplibs_check_method reload_flag reload_cmds need_locks \ 13244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13245 lt_cv_sys_global_symbol_to_c_name_address \ 13246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13247 old_postinstall_cmds old_postuninstall_cmds \ 13248 compiler_CXX \ 13249 CC_CXX \ 13250 LD_CXX \ 13251 lt_prog_compiler_wl_CXX \ 13252 lt_prog_compiler_pic_CXX \ 13253 lt_prog_compiler_static_CXX \ 13254 lt_prog_compiler_no_builtin_flag_CXX \ 13255 export_dynamic_flag_spec_CXX \ 13256 thread_safe_flag_spec_CXX \ 13257 whole_archive_flag_spec_CXX \ 13258 enable_shared_with_static_runtimes_CXX \ 13259 old_archive_cmds_CXX \ 13260 old_archive_from_new_cmds_CXX \ 13261 predep_objects_CXX \ 13262 postdep_objects_CXX \ 13263 predeps_CXX \ 13264 postdeps_CXX \ 13265 compiler_lib_search_path_CXX \ 13266 archive_cmds_CXX \ 13267 archive_expsym_cmds_CXX \ 13268 postinstall_cmds_CXX \ 13269 postuninstall_cmds_CXX \ 13270 old_archive_from_expsyms_cmds_CXX \ 13271 allow_undefined_flag_CXX \ 13272 no_undefined_flag_CXX \ 13273 export_symbols_cmds_CXX \ 13274 hardcode_libdir_flag_spec_CXX \ 13275 hardcode_libdir_flag_spec_ld_CXX \ 13276 hardcode_libdir_separator_CXX \ 13277 hardcode_automatic_CXX \ 13278 module_cmds_CXX \ 13279 module_expsym_cmds_CXX \ 13280 lt_cv_prog_compiler_c_o_CXX \ 13281 fix_srcfile_path_CXX \ 13282 exclude_expsyms_CXX \ 13283 include_expsyms_CXX; do 13284 13285 case $var in 13286 old_archive_cmds_CXX | \ 13287 old_archive_from_new_cmds_CXX | \ 13288 archive_cmds_CXX | \ 13289 archive_expsym_cmds_CXX | \ 13290 module_cmds_CXX | \ 13291 module_expsym_cmds_CXX | \ 13292 old_archive_from_expsyms_cmds_CXX | \ 13293 export_symbols_cmds_CXX | \ 13294 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13295 postinstall_cmds | postuninstall_cmds | \ 13296 old_postinstall_cmds | old_postuninstall_cmds | \ 13297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13298 # Double-quote double-evaled strings. 13299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13300 ;; 13301 *) 13302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13303 ;; 13304 esac 13305 done 13306 13307 case $lt_echo in 13308 *'\$0 --fallback-echo"') 13309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13310 ;; 13311 esac 13312 13313cfgfile="$ofile" 13314 13315 cat <<__EOF__ >> "$cfgfile" 13316# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13317 13318# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13319 13320# Shell to use when invoking shell scripts. 13321SHELL=$lt_SHELL 13322 13323# Whether or not to build shared libraries. 13324build_libtool_libs=$enable_shared 13325 13326# Whether or not to build static libraries. 13327build_old_libs=$enable_static 13328 13329# Whether or not to add -lc for building shared libraries. 13330build_libtool_need_lc=$archive_cmds_need_lc_CXX 13331 13332# Whether or not to disallow shared libs when runtime libs are static 13333allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13334 13335# Whether or not to optimize for fast installation. 13336fast_install=$enable_fast_install 13337 13338# The host system. 13339host_alias=$host_alias 13340host=$host 13341host_os=$host_os 13342 13343# The build system. 13344build_alias=$build_alias 13345build=$build 13346build_os=$build_os 13347 13348# An echo program that does not interpret backslashes. 13349echo=$lt_echo 13350 13351# The archiver. 13352AR=$lt_AR 13353AR_FLAGS=$lt_AR_FLAGS 13354 13355# A C compiler. 13356LTCC=$lt_LTCC 13357 13358# LTCC compiler flags. 13359LTCFLAGS=$lt_LTCFLAGS 13360 13361# A language-specific compiler. 13362CC=$lt_compiler_CXX 13363 13364# Is the compiler the GNU C compiler? 13365with_gcc=$GCC_CXX 13366 13367# An ERE matcher. 13368EGREP=$lt_EGREP 13369 13370# The linker used to build libraries. 13371LD=$lt_LD_CXX 13372 13373# Whether we need hard or soft links. 13374LN_S=$lt_LN_S 13375 13376# A BSD-compatible nm program. 13377NM=$lt_NM 13378 13379# A symbol stripping program 13380STRIP=$lt_STRIP 13381 13382# Used to examine libraries when file_magic_cmd begins "file" 13383MAGIC_CMD=$MAGIC_CMD 13384 13385# Used on cygwin: DLL creation program. 13386DLLTOOL="$DLLTOOL" 13387 13388# Used on cygwin: object dumper. 13389OBJDUMP="$OBJDUMP" 13390 13391# Used on cygwin: assembler. 13392AS="$AS" 13393 13394# The name of the directory that contains temporary libtool files. 13395objdir=$objdir 13396 13397# How to create reloadable object files. 13398reload_flag=$lt_reload_flag 13399reload_cmds=$lt_reload_cmds 13400 13401# How to pass a linker flag through the compiler. 13402wl=$lt_lt_prog_compiler_wl_CXX 13403 13404# Object file suffix (normally "o"). 13405objext="$ac_objext" 13406 13407# Old archive suffix (normally "a"). 13408libext="$libext" 13409 13410# Shared library suffix (normally ".so"). 13411shrext_cmds='$shrext_cmds' 13412 13413# Executable file suffix (normally ""). 13414exeext="$exeext" 13415 13416# Additional compiler flags for building library objects. 13417pic_flag=$lt_lt_prog_compiler_pic_CXX 13418pic_mode=$pic_mode 13419 13420# What is the maximum length of a command? 13421max_cmd_len=$lt_cv_sys_max_cmd_len 13422 13423# Does compiler simultaneously support -c and -o options? 13424compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13425 13426# Must we lock files when doing compilation? 13427need_locks=$lt_need_locks 13428 13429# Do we need the lib prefix for modules? 13430need_lib_prefix=$need_lib_prefix 13431 13432# Do we need a version for libraries? 13433need_version=$need_version 13434 13435# Whether dlopen is supported. 13436dlopen_support=$enable_dlopen 13437 13438# Whether dlopen of programs is supported. 13439dlopen_self=$enable_dlopen_self 13440 13441# Whether dlopen of statically linked programs is supported. 13442dlopen_self_static=$enable_dlopen_self_static 13443 13444# Compiler flag to prevent dynamic linking. 13445link_static_flag=$lt_lt_prog_compiler_static_CXX 13446 13447# Compiler flag to turn off builtin functions. 13448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13449 13450# Compiler flag to allow reflexive dlopens. 13451export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13452 13453# Compiler flag to generate shared objects directly from archives. 13454whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13455 13456# Compiler flag to generate thread-safe objects. 13457thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13458 13459# Library versioning type. 13460version_type=$version_type 13461 13462# Format of library name prefix. 13463libname_spec=$lt_libname_spec 13464 13465# List of archive names. First name is the real one, the rest are links. 13466# The last name is the one that the linker finds with -lNAME. 13467library_names_spec=$lt_library_names_spec 13468 13469# The coded name of the library, if different from the real name. 13470soname_spec=$lt_soname_spec 13471 13472# Commands used to build and install an old-style archive. 13473RANLIB=$lt_RANLIB 13474old_archive_cmds=$lt_old_archive_cmds_CXX 13475old_postinstall_cmds=$lt_old_postinstall_cmds 13476old_postuninstall_cmds=$lt_old_postuninstall_cmds 13477 13478# Create an old-style archive from a shared archive. 13479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13480 13481# Create a temporary old-style archive to link instead of a shared archive. 13482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13483 13484# Commands used to build and install a shared archive. 13485archive_cmds=$lt_archive_cmds_CXX 13486archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13487postinstall_cmds=$lt_postinstall_cmds 13488postuninstall_cmds=$lt_postuninstall_cmds 13489 13490# Commands used to build a loadable module (assumed same as above if empty) 13491module_cmds=$lt_module_cmds_CXX 13492module_expsym_cmds=$lt_module_expsym_cmds_CXX 13493 13494# Commands to strip libraries. 13495old_striplib=$lt_old_striplib 13496striplib=$lt_striplib 13497 13498# Dependencies to place before the objects being linked to create a 13499# shared library. 13500predep_objects=$lt_predep_objects_CXX 13501 13502# Dependencies to place after the objects being linked to create a 13503# shared library. 13504postdep_objects=$lt_postdep_objects_CXX 13505 13506# Dependencies to place before the objects being linked to create a 13507# shared library. 13508predeps=$lt_predeps_CXX 13509 13510# Dependencies to place after the objects being linked to create a 13511# shared library. 13512postdeps=$lt_postdeps_CXX 13513 13514# The library search path used internally by the compiler when linking 13515# a shared library. 13516compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13517 13518# Method to check whether dependent libraries are shared objects. 13519deplibs_check_method=$lt_deplibs_check_method 13520 13521# Command to use when deplibs_check_method == file_magic. 13522file_magic_cmd=$lt_file_magic_cmd 13523 13524# Flag that allows shared libraries with undefined symbols to be built. 13525allow_undefined_flag=$lt_allow_undefined_flag_CXX 13526 13527# Flag that forces no undefined symbols. 13528no_undefined_flag=$lt_no_undefined_flag_CXX 13529 13530# Commands used to finish a libtool library installation in a directory. 13531finish_cmds=$lt_finish_cmds 13532 13533# Same as above, but a single script fragment to be evaled but not shown. 13534finish_eval=$lt_finish_eval 13535 13536# Take the output of nm and produce a listing of raw symbols and C names. 13537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13538 13539# Transform the output of nm in a proper C declaration 13540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13541 13542# Transform the output of nm in a C name address pair 13543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13544 13545# This is the shared library runtime path variable. 13546runpath_var=$runpath_var 13547 13548# This is the shared library path variable. 13549shlibpath_var=$shlibpath_var 13550 13551# Is shlibpath searched before the hard-coded library search path? 13552shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13553 13554# How to hardcode a shared library path into an executable. 13555hardcode_action=$hardcode_action_CXX 13556 13557# Whether we should hardcode library paths into libraries. 13558hardcode_into_libs=$hardcode_into_libs 13559 13560# Flag to hardcode \$libdir into a binary during linking. 13561# This must work even if \$libdir does not exist. 13562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13563 13564# If ld is used when linking, flag to hardcode \$libdir into 13565# a binary during linking. This must work even if \$libdir does 13566# not exist. 13567hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13568 13569# Whether we need a single -rpath flag with a separated argument. 13570hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13571 13572# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13573# resulting binary. 13574hardcode_direct=$hardcode_direct_CXX 13575 13576# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13577# resulting binary. 13578hardcode_minus_L=$hardcode_minus_L_CXX 13579 13580# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13581# the resulting binary. 13582hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13583 13584# Set to yes if building a shared library automatically hardcodes DIR into the library 13585# and all subsequent libraries and executables linked against it. 13586hardcode_automatic=$hardcode_automatic_CXX 13587 13588# Variables whose values should be saved in libtool wrapper scripts and 13589# restored at relink time. 13590variables_saved_for_relink="$variables_saved_for_relink" 13591 13592# Whether libtool must link a program against all its dependency libraries. 13593link_all_deplibs=$link_all_deplibs_CXX 13594 13595# Compile-time system search path for libraries 13596sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13597 13598# Run-time system search path for libraries 13599sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13600 13601# Fix the shell variable \$srcfile for the compiler. 13602fix_srcfile_path=$lt_fix_srcfile_path 13603 13604# Set to yes if exported symbols are required. 13605always_export_symbols=$always_export_symbols_CXX 13606 13607# The commands to list exported symbols. 13608export_symbols_cmds=$lt_export_symbols_cmds_CXX 13609 13610# The commands to extract the exported symbol list from a shared archive. 13611extract_expsyms_cmds=$lt_extract_expsyms_cmds 13612 13613# Symbols that should not be listed in the preloaded symbols. 13614exclude_expsyms=$lt_exclude_expsyms_CXX 13615 13616# Symbols that must always be exported. 13617include_expsyms=$lt_include_expsyms_CXX 13618 13619# ### END LIBTOOL TAG CONFIG: $tagname 13620 13621__EOF__ 13622 13623 13624else 13625 # If there is no Makefile yet, we rely on a make rule to execute 13626 # `config.status --recheck' to rerun these tests and create the 13627 # libtool script then. 13628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13629 if test -f "$ltmain_in"; then 13630 test -f Makefile && make "$ltmain" 13631 fi 13632fi 13633 13634 13635ac_ext=c 13636ac_cpp='$CPP $CPPFLAGS' 13637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13639ac_compiler_gnu=$ac_cv_c_compiler_gnu 13640 13641CC=$lt_save_CC 13642LDCXX=$LD 13643LD=$lt_save_LD 13644GCC=$lt_save_GCC 13645with_gnu_ldcxx=$with_gnu_ld 13646with_gnu_ld=$lt_save_with_gnu_ld 13647lt_cv_path_LDCXX=$lt_cv_path_LD 13648lt_cv_path_LD=$lt_save_path_LD 13649lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13650lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13651 13652 else 13653 tagname="" 13654 fi 13655 ;; 13656 13657 F77) 13658 if test -n "$F77" && test "X$F77" != "Xno"; then 13659 13660ac_ext=f 13661ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13662ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13663ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13664 13665 13666archive_cmds_need_lc_F77=no 13667allow_undefined_flag_F77= 13668always_export_symbols_F77=no 13669archive_expsym_cmds_F77= 13670export_dynamic_flag_spec_F77= 13671hardcode_direct_F77=no 13672hardcode_libdir_flag_spec_F77= 13673hardcode_libdir_flag_spec_ld_F77= 13674hardcode_libdir_separator_F77= 13675hardcode_minus_L_F77=no 13676hardcode_automatic_F77=no 13677module_cmds_F77= 13678module_expsym_cmds_F77= 13679link_all_deplibs_F77=unknown 13680old_archive_cmds_F77=$old_archive_cmds 13681no_undefined_flag_F77= 13682whole_archive_flag_spec_F77= 13683enable_shared_with_static_runtimes_F77=no 13684 13685# Source file extension for f77 test sources. 13686ac_ext=f 13687 13688# Object file extension for compiled f77 test sources. 13689objext=o 13690objext_F77=$objext 13691 13692# Code to be used in simple compile tests 13693lt_simple_compile_test_code="\ 13694 subroutine t 13695 return 13696 end 13697" 13698 13699# Code to be used in simple link tests 13700lt_simple_link_test_code="\ 13701 program t 13702 end 13703" 13704 13705# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13706 13707# If no C compiler was specified, use CC. 13708LTCC=${LTCC-"$CC"} 13709 13710# If no C compiler flags were specified, use CFLAGS. 13711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13712 13713# Allow CC to be a program name with arguments. 13714compiler=$CC 13715 13716 13717# save warnings/boilerplate of simple test code 13718ac_outfile=conftest.$ac_objext 13719echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13721_lt_compiler_boilerplate=`cat conftest.err` 13722$rm conftest* 13723 13724ac_outfile=conftest.$ac_objext 13725echo "$lt_simple_link_test_code" >conftest.$ac_ext 13726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13727_lt_linker_boilerplate=`cat conftest.err` 13728$rm conftest* 13729 13730 13731# Allow CC to be a program name with arguments. 13732lt_save_CC="$CC" 13733CC=${F77-"f77"} 13734compiler=$CC 13735compiler_F77=$CC 13736for cc_temp in $compiler""; do 13737 case $cc_temp in 13738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13740 \-*) ;; 13741 *) break;; 13742 esac 13743done 13744cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13745 13746 13747{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13748echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13749{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13750echo "${ECHO_T}$can_build_shared" >&6; } 13751 13752{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13753echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13754test "$can_build_shared" = "no" && enable_shared=no 13755 13756# On AIX, shared libraries and static libraries use the same namespace, and 13757# are all built from PIC. 13758case $host_os in 13759aix3*) 13760 test "$enable_shared" = yes && enable_static=no 13761 if test -n "$RANLIB"; then 13762 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13763 postinstall_cmds='$RANLIB $lib' 13764 fi 13765 ;; 13766aix4* | aix5*) 13767 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13768 test "$enable_shared" = yes && enable_static=no 13769 fi 13770 ;; 13771esac 13772{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13773echo "${ECHO_T}$enable_shared" >&6; } 13774 13775{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13776echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13777# Make sure either enable_shared or enable_static is yes. 13778test "$enable_shared" = yes || enable_static=yes 13779{ echo "$as_me:$LINENO: result: $enable_static" >&5 13780echo "${ECHO_T}$enable_static" >&6; } 13781 13782GCC_F77="$G77" 13783LD_F77="$LD" 13784 13785lt_prog_compiler_wl_F77= 13786lt_prog_compiler_pic_F77= 13787lt_prog_compiler_static_F77= 13788 13789{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13790echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13791 13792 if test "$GCC" = yes; then 13793 lt_prog_compiler_wl_F77='-Wl,' 13794 lt_prog_compiler_static_F77='-static' 13795 13796 case $host_os in 13797 aix*) 13798 # All AIX code is PIC. 13799 if test "$host_cpu" = ia64; then 13800 # AIX 5 now supports IA64 processor 13801 lt_prog_compiler_static_F77='-Bstatic' 13802 fi 13803 ;; 13804 13805 amigaos*) 13806 # FIXME: we need at least 68020 code to build shared libraries, but 13807 # adding the `-m68020' flag to GCC prevents building anything better, 13808 # like `-m68040'. 13809 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13810 ;; 13811 13812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13813 # PIC is the default for these OSes. 13814 ;; 13815 13816 mingw* | cygwin* | pw32* | os2*) 13817 # This hack is so that the source file can tell whether it is being 13818 # built for inclusion in a dll (and should export symbols for example). 13819 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13820 # (--disable-auto-import) libraries 13821 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13822 ;; 13823 13824 darwin* | rhapsody*) 13825 # PIC is the default on this platform 13826 # Common symbols not allowed in MH_DYLIB files 13827 lt_prog_compiler_pic_F77='-fno-common' 13828 ;; 13829 13830 interix[3-9]*) 13831 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13832 # Instead, we relocate shared libraries at runtime. 13833 ;; 13834 13835 msdosdjgpp*) 13836 # Just because we use GCC doesn't mean we suddenly get shared libraries 13837 # on systems that don't support them. 13838 lt_prog_compiler_can_build_shared_F77=no 13839 enable_shared=no 13840 ;; 13841 13842 sysv4*MP*) 13843 if test -d /usr/nec; then 13844 lt_prog_compiler_pic_F77=-Kconform_pic 13845 fi 13846 ;; 13847 13848 hpux*) 13849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13850 # not for PA HP-UX. 13851 case $host_cpu in 13852 hppa*64*|ia64*) 13853 # +Z the default 13854 ;; 13855 *) 13856 lt_prog_compiler_pic_F77='-fPIC' 13857 ;; 13858 esac 13859 ;; 13860 13861 *) 13862 lt_prog_compiler_pic_F77='-fPIC' 13863 ;; 13864 esac 13865 else 13866 # PORTME Check for flag to pass linker flags through the system compiler. 13867 case $host_os in 13868 aix*) 13869 lt_prog_compiler_wl_F77='-Wl,' 13870 if test "$host_cpu" = ia64; then 13871 # AIX 5 now supports IA64 processor 13872 lt_prog_compiler_static_F77='-Bstatic' 13873 else 13874 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13875 fi 13876 ;; 13877 darwin*) 13878 # PIC is the default on this platform 13879 # Common symbols not allowed in MH_DYLIB files 13880 case $cc_basename in 13881 xlc*) 13882 lt_prog_compiler_pic_F77='-qnocommon' 13883 lt_prog_compiler_wl_F77='-Wl,' 13884 ;; 13885 esac 13886 ;; 13887 13888 mingw* | cygwin* | pw32* | os2*) 13889 # This hack is so that the source file can tell whether it is being 13890 # built for inclusion in a dll (and should export symbols for example). 13891 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13892 ;; 13893 13894 hpux9* | hpux10* | hpux11*) 13895 lt_prog_compiler_wl_F77='-Wl,' 13896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13897 # not for PA HP-UX. 13898 case $host_cpu in 13899 hppa*64*|ia64*) 13900 # +Z the default 13901 ;; 13902 *) 13903 lt_prog_compiler_pic_F77='+Z' 13904 ;; 13905 esac 13906 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13907 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13908 ;; 13909 13910 irix5* | irix6* | nonstopux*) 13911 lt_prog_compiler_wl_F77='-Wl,' 13912 # PIC (with -KPIC) is the default. 13913 lt_prog_compiler_static_F77='-non_shared' 13914 ;; 13915 13916 newsos6) 13917 lt_prog_compiler_pic_F77='-KPIC' 13918 lt_prog_compiler_static_F77='-Bstatic' 13919 ;; 13920 13921 linux* | k*bsd*-gnu) 13922 case $cc_basename in 13923 icc* | ecc*) 13924 lt_prog_compiler_wl_F77='-Wl,' 13925 lt_prog_compiler_pic_F77='-KPIC' 13926 lt_prog_compiler_static_F77='-static' 13927 ;; 13928 pgcc* | pgf77* | pgf90* | pgf95*) 13929 # Portland Group compilers (*not* the Pentium gcc compiler, 13930 # which looks to be a dead project) 13931 lt_prog_compiler_wl_F77='-Wl,' 13932 lt_prog_compiler_pic_F77='-fpic' 13933 lt_prog_compiler_static_F77='-Bstatic' 13934 ;; 13935 ccc*) 13936 lt_prog_compiler_wl_F77='-Wl,' 13937 # All Alpha code is PIC. 13938 lt_prog_compiler_static_F77='-non_shared' 13939 ;; 13940 *) 13941 case `$CC -V 2>&1 | sed 5q` in 13942 *Sun\ C*) 13943 # Sun C 5.9 13944 lt_prog_compiler_pic_F77='-KPIC' 13945 lt_prog_compiler_static_F77='-Bstatic' 13946 lt_prog_compiler_wl_F77='-Wl,' 13947 ;; 13948 *Sun\ F*) 13949 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13950 lt_prog_compiler_pic_F77='-KPIC' 13951 lt_prog_compiler_static_F77='-Bstatic' 13952 lt_prog_compiler_wl_F77='' 13953 ;; 13954 esac 13955 ;; 13956 esac 13957 ;; 13958 13959 osf3* | osf4* | osf5*) 13960 lt_prog_compiler_wl_F77='-Wl,' 13961 # All OSF/1 code is PIC. 13962 lt_prog_compiler_static_F77='-non_shared' 13963 ;; 13964 13965 rdos*) 13966 lt_prog_compiler_static_F77='-non_shared' 13967 ;; 13968 13969 solaris*) 13970 lt_prog_compiler_pic_F77='-KPIC' 13971 lt_prog_compiler_static_F77='-Bstatic' 13972 case $cc_basename in 13973 f77* | f90* | f95*) 13974 lt_prog_compiler_wl_F77='-Qoption ld ';; 13975 *) 13976 lt_prog_compiler_wl_F77='-Wl,';; 13977 esac 13978 ;; 13979 13980 sunos4*) 13981 lt_prog_compiler_wl_F77='-Qoption ld ' 13982 lt_prog_compiler_pic_F77='-PIC' 13983 lt_prog_compiler_static_F77='-Bstatic' 13984 ;; 13985 13986 sysv4 | sysv4.2uw2* | sysv4.3*) 13987 lt_prog_compiler_wl_F77='-Wl,' 13988 lt_prog_compiler_pic_F77='-KPIC' 13989 lt_prog_compiler_static_F77='-Bstatic' 13990 ;; 13991 13992 sysv4*MP*) 13993 if test -d /usr/nec ;then 13994 lt_prog_compiler_pic_F77='-Kconform_pic' 13995 lt_prog_compiler_static_F77='-Bstatic' 13996 fi 13997 ;; 13998 13999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14000 lt_prog_compiler_wl_F77='-Wl,' 14001 lt_prog_compiler_pic_F77='-KPIC' 14002 lt_prog_compiler_static_F77='-Bstatic' 14003 ;; 14004 14005 unicos*) 14006 lt_prog_compiler_wl_F77='-Wl,' 14007 lt_prog_compiler_can_build_shared_F77=no 14008 ;; 14009 14010 uts4*) 14011 lt_prog_compiler_pic_F77='-pic' 14012 lt_prog_compiler_static_F77='-Bstatic' 14013 ;; 14014 14015 *) 14016 lt_prog_compiler_can_build_shared_F77=no 14017 ;; 14018 esac 14019 fi 14020 14021{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14022echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14023 14024# 14025# Check to make sure the PIC flag actually works. 14026# 14027if test -n "$lt_prog_compiler_pic_F77"; then 14028 14029{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14030echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14031if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14032 echo $ECHO_N "(cached) $ECHO_C" >&6 14033else 14034 lt_prog_compiler_pic_works_F77=no 14035 ac_outfile=conftest.$ac_objext 14036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14037 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14038 # Insert the option either (1) after the last *FLAGS variable, or 14039 # (2) before a word containing "conftest.", or (3) at the end. 14040 # Note that $ac_compile itself does not contain backslashes and begins 14041 # with a dollar sign (not a hyphen), so the echo should work correctly. 14042 # The option is referenced via a variable to avoid confusing sed. 14043 lt_compile=`echo "$ac_compile" | $SED \ 14044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14046 -e 's:$: $lt_compiler_flag:'` 14047 (eval echo "\"\$as_me:14047: $lt_compile\"" >&5) 14048 (eval "$lt_compile" 2>conftest.err) 14049 ac_status=$? 14050 cat conftest.err >&5 14051 echo "$as_me:14051: \$? = $ac_status" >&5 14052 if (exit $ac_status) && test -s "$ac_outfile"; then 14053 # The compiler can only warn and ignore the option if not recognized 14054 # So say no if there are warnings other than the usual output. 14055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14058 lt_prog_compiler_pic_works_F77=yes 14059 fi 14060 fi 14061 $rm conftest* 14062 14063fi 14064{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14065echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14066 14067if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14068 case $lt_prog_compiler_pic_F77 in 14069 "" | " "*) ;; 14070 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14071 esac 14072else 14073 lt_prog_compiler_pic_F77= 14074 lt_prog_compiler_can_build_shared_F77=no 14075fi 14076 14077fi 14078case $host_os in 14079 # For platforms which do not support PIC, -DPIC is meaningless: 14080 *djgpp*) 14081 lt_prog_compiler_pic_F77= 14082 ;; 14083 *) 14084 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14085 ;; 14086esac 14087 14088# 14089# Check to make sure the static flag actually works. 14090# 14091wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14092{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14093echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14094if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14095 echo $ECHO_N "(cached) $ECHO_C" >&6 14096else 14097 lt_prog_compiler_static_works_F77=no 14098 save_LDFLAGS="$LDFLAGS" 14099 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14100 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14102 # The linker can only warn and ignore the option if not recognized 14103 # So say no if there are warnings 14104 if test -s conftest.err; then 14105 # Append any errors to the config.log. 14106 cat conftest.err 1>&5 14107 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14109 if diff conftest.exp conftest.er2 >/dev/null; then 14110 lt_prog_compiler_static_works_F77=yes 14111 fi 14112 else 14113 lt_prog_compiler_static_works_F77=yes 14114 fi 14115 fi 14116 $rm conftest* 14117 LDFLAGS="$save_LDFLAGS" 14118 14119fi 14120{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14121echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14122 14123if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14124 : 14125else 14126 lt_prog_compiler_static_F77= 14127fi 14128 14129 14130{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14131echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14132if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14133 echo $ECHO_N "(cached) $ECHO_C" >&6 14134else 14135 lt_cv_prog_compiler_c_o_F77=no 14136 $rm -r conftest 2>/dev/null 14137 mkdir conftest 14138 cd conftest 14139 mkdir out 14140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14141 14142 lt_compiler_flag="-o out/conftest2.$ac_objext" 14143 # Insert the option either (1) after the last *FLAGS variable, or 14144 # (2) before a word containing "conftest.", or (3) at the end. 14145 # Note that $ac_compile itself does not contain backslashes and begins 14146 # with a dollar sign (not a hyphen), so the echo should work correctly. 14147 lt_compile=`echo "$ac_compile" | $SED \ 14148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14150 -e 's:$: $lt_compiler_flag:'` 14151 (eval echo "\"\$as_me:14151: $lt_compile\"" >&5) 14152 (eval "$lt_compile" 2>out/conftest.err) 14153 ac_status=$? 14154 cat out/conftest.err >&5 14155 echo "$as_me:14155: \$? = $ac_status" >&5 14156 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14157 then 14158 # The compiler can only warn and ignore the option if not recognized 14159 # So say no if there are warnings 14160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14163 lt_cv_prog_compiler_c_o_F77=yes 14164 fi 14165 fi 14166 chmod u+w . 2>&5 14167 $rm conftest* 14168 # SGI C++ compiler will create directory out/ii_files/ for 14169 # template instantiation 14170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14171 $rm out/* && rmdir out 14172 cd .. 14173 rmdir conftest 14174 $rm conftest* 14175 14176fi 14177{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14178echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14179 14180 14181hard_links="nottested" 14182if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14183 # do not overwrite the value of need_locks provided by the user 14184 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14185echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14186 hard_links=yes 14187 $rm conftest* 14188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14189 touch conftest.a 14190 ln conftest.a conftest.b 2>&5 || hard_links=no 14191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14192 { echo "$as_me:$LINENO: result: $hard_links" >&5 14193echo "${ECHO_T}$hard_links" >&6; } 14194 if test "$hard_links" = no; then 14195 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14196echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14197 need_locks=warn 14198 fi 14199else 14200 need_locks=no 14201fi 14202 14203{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14204echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14205 14206 runpath_var= 14207 allow_undefined_flag_F77= 14208 enable_shared_with_static_runtimes_F77=no 14209 archive_cmds_F77= 14210 archive_expsym_cmds_F77= 14211 old_archive_From_new_cmds_F77= 14212 old_archive_from_expsyms_cmds_F77= 14213 export_dynamic_flag_spec_F77= 14214 whole_archive_flag_spec_F77= 14215 thread_safe_flag_spec_F77= 14216 hardcode_libdir_flag_spec_F77= 14217 hardcode_libdir_flag_spec_ld_F77= 14218 hardcode_libdir_separator_F77= 14219 hardcode_direct_F77=no 14220 hardcode_minus_L_F77=no 14221 hardcode_shlibpath_var_F77=unsupported 14222 link_all_deplibs_F77=unknown 14223 hardcode_automatic_F77=no 14224 module_cmds_F77= 14225 module_expsym_cmds_F77= 14226 always_export_symbols_F77=no 14227 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14228 # include_expsyms should be a list of space-separated symbols to be *always* 14229 # included in the symbol list 14230 include_expsyms_F77= 14231 # exclude_expsyms can be an extended regexp of symbols to exclude 14232 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14234 # as well as any symbol that contains `d'. 14235 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14237 # platforms (ab)use it in PIC code, but their linkers get confused if 14238 # the symbol is explicitly referenced. Since portable code cannot 14239 # rely on this symbol name, it's probably fine to never include it in 14240 # preloaded symbol tables. 14241 extract_expsyms_cmds= 14242 # Just being paranoid about ensuring that cc_basename is set. 14243 for cc_temp in $compiler""; do 14244 case $cc_temp in 14245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14247 \-*) ;; 14248 *) break;; 14249 esac 14250done 14251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14252 14253 case $host_os in 14254 cygwin* | mingw* | pw32*) 14255 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14256 # When not using gcc, we currently assume that we are using 14257 # Microsoft Visual C++. 14258 if test "$GCC" != yes; then 14259 with_gnu_ld=no 14260 fi 14261 ;; 14262 interix*) 14263 # we just hope/assume this is gcc and not c89 (= MSVC++) 14264 with_gnu_ld=yes 14265 ;; 14266 openbsd*) 14267 with_gnu_ld=no 14268 ;; 14269 esac 14270 14271 ld_shlibs_F77=yes 14272 if test "$with_gnu_ld" = yes; then 14273 # If archive_cmds runs LD, not CC, wlarc should be empty 14274 wlarc='${wl}' 14275 14276 # Set some defaults for GNU ld with shared library support. These 14277 # are reset later if shared libraries are not supported. Putting them 14278 # here allows them to be overridden if necessary. 14279 runpath_var=LD_RUN_PATH 14280 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14281 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14282 # ancient GNU ld didn't support --whole-archive et. al. 14283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14284 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14285 else 14286 whole_archive_flag_spec_F77= 14287 fi 14288 supports_anon_versioning=no 14289 case `$LD -v 2>/dev/null` in 14290 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14293 *\ 2.11.*) ;; # other 2.11 versions 14294 *) supports_anon_versioning=yes ;; 14295 esac 14296 14297 # See if GNU ld supports shared libraries. 14298 case $host_os in 14299 aix3* | aix4* | aix5*) 14300 # On AIX/PPC, the GNU linker is very broken 14301 if test "$host_cpu" != ia64; then 14302 ld_shlibs_F77=no 14303 cat <<EOF 1>&2 14304 14305*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14306*** to be unable to reliably create shared libraries on AIX. 14307*** Therefore, libtool is disabling shared libraries support. If you 14308*** really care for shared libraries, you may want to modify your PATH 14309*** so that a non-GNU linker is found, and then restart. 14310 14311EOF 14312 fi 14313 ;; 14314 14315 amigaos*) 14316 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)' 14317 hardcode_libdir_flag_spec_F77='-L$libdir' 14318 hardcode_minus_L_F77=yes 14319 14320 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14321 # that the semantics of dynamic libraries on AmigaOS, at least up 14322 # to version 4, is to share data among multiple programs linked 14323 # with the same dynamic library. Since this doesn't match the 14324 # behavior of shared libraries on other platforms, we can't use 14325 # them. 14326 ld_shlibs_F77=no 14327 ;; 14328 14329 beos*) 14330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14331 allow_undefined_flag_F77=unsupported 14332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14333 # support --undefined. This deserves some investigation. FIXME 14334 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14335 else 14336 ld_shlibs_F77=no 14337 fi 14338 ;; 14339 14340 cygwin* | mingw* | pw32*) 14341 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14342 # as there is no search path for DLLs. 14343 hardcode_libdir_flag_spec_F77='-L$libdir' 14344 allow_undefined_flag_F77=unsupported 14345 always_export_symbols_F77=no 14346 enable_shared_with_static_runtimes_F77=yes 14347 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14348 14349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14350 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14351 # If the export-symbols file already is a .def file (1st line 14352 # is EXPORTS), use it as is; otherwise, prepend... 14353 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14354 cp $export_symbols $output_objdir/$soname.def; 14355 else 14356 echo EXPORTS > $output_objdir/$soname.def; 14357 cat $export_symbols >> $output_objdir/$soname.def; 14358 fi~ 14359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14360 else 14361 ld_shlibs_F77=no 14362 fi 14363 ;; 14364 14365 interix[3-9]*) 14366 hardcode_direct_F77=no 14367 hardcode_shlibpath_var_F77=no 14368 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14369 export_dynamic_flag_spec_F77='${wl}-E' 14370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14371 # Instead, shared libraries are loaded at an image base (0x10000000 by 14372 # default) and relocated if they conflict, which is a slow very memory 14373 # consuming and fragmenting process. To avoid this, we pick a random, 14374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14375 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14376 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' 14377 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' 14378 ;; 14379 14380 gnu* | linux* | k*bsd*-gnu) 14381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14382 tmp_addflag= 14383 case $cc_basename,$host_cpu in 14384 pgcc*) # Portland Group C compiler 14385 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' 14386 tmp_addflag=' $pic_flag' 14387 ;; 14388 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14389 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' 14390 tmp_addflag=' $pic_flag -Mnomain' ;; 14391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14392 tmp_addflag=' -i_dynamic' ;; 14393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14394 tmp_addflag=' -i_dynamic -nofor_main' ;; 14395 ifc* | ifort*) # Intel Fortran compiler 14396 tmp_addflag=' -nofor_main' ;; 14397 esac 14398 case `$CC -V 2>&1 | sed 5q` in 14399 *Sun\ C*) # Sun C 5.9 14400 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' 14401 tmp_sharedflag='-G' ;; 14402 *Sun\ F*) # Sun Fortran 8.3 14403 tmp_sharedflag='-G' ;; 14404 *) 14405 tmp_sharedflag='-shared' ;; 14406 esac 14407 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14408 14409 if test $supports_anon_versioning = yes; then 14410 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14412 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14414 fi 14415 else 14416 ld_shlibs_F77=no 14417 fi 14418 ;; 14419 14420 netbsd*) 14421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14422 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14423 wlarc= 14424 else 14425 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14426 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14427 fi 14428 ;; 14429 14430 solaris*) 14431 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14432 ld_shlibs_F77=no 14433 cat <<EOF 1>&2 14434 14435*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14436*** create shared libraries on Solaris systems. Therefore, libtool 14437*** is disabling shared libraries support. We urge you to upgrade GNU 14438*** binutils to release 2.9.1 or newer. Another option is to modify 14439*** your PATH or compiler configuration so that the native linker is 14440*** used, and then restart. 14441 14442EOF 14443 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14444 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14445 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14446 else 14447 ld_shlibs_F77=no 14448 fi 14449 ;; 14450 14451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14452 case `$LD -v 2>&1` in 14453 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14454 ld_shlibs_F77=no 14455 cat <<_LT_EOF 1>&2 14456 14457*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14458*** reliably create shared libraries on SCO systems. Therefore, libtool 14459*** is disabling shared libraries support. We urge you to upgrade GNU 14460*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14461*** your PATH or compiler configuration so that the native linker is 14462*** used, and then restart. 14463 14464_LT_EOF 14465 ;; 14466 *) 14467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14468 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14471 else 14472 ld_shlibs_F77=no 14473 fi 14474 ;; 14475 esac 14476 ;; 14477 14478 sunos4*) 14479 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14480 wlarc= 14481 hardcode_direct_F77=yes 14482 hardcode_shlibpath_var_F77=no 14483 ;; 14484 14485 *) 14486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14489 else 14490 ld_shlibs_F77=no 14491 fi 14492 ;; 14493 esac 14494 14495 if test "$ld_shlibs_F77" = no; then 14496 runpath_var= 14497 hardcode_libdir_flag_spec_F77= 14498 export_dynamic_flag_spec_F77= 14499 whole_archive_flag_spec_F77= 14500 fi 14501 else 14502 # PORTME fill in a description of your system's linker (not GNU ld) 14503 case $host_os in 14504 aix3*) 14505 allow_undefined_flag_F77=unsupported 14506 always_export_symbols_F77=yes 14507 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' 14508 # Note: this linker hardcodes the directories in LIBPATH if there 14509 # are no directories specified by -L. 14510 hardcode_minus_L_F77=yes 14511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14512 # Neither direct hardcoding nor static linking is supported with a 14513 # broken collect2. 14514 hardcode_direct_F77=unsupported 14515 fi 14516 ;; 14517 14518 aix4* | aix5*) 14519 if test "$host_cpu" = ia64; then 14520 # On IA64, the linker does run time linking by default, so we don't 14521 # have to do anything special. 14522 aix_use_runtimelinking=no 14523 exp_sym_flag='-Bexport' 14524 no_entry_flag="" 14525 else 14526 # If we're using GNU nm, then we don't want the "-C" option. 14527 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14528 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14529 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' 14530 else 14531 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' 14532 fi 14533 aix_use_runtimelinking=no 14534 14535 # Test if we are trying to use run time linking or normal 14536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14537 # need to do runtime linking. 14538 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14539 for ld_flag in $LDFLAGS; do 14540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14541 aix_use_runtimelinking=yes 14542 break 14543 fi 14544 done 14545 ;; 14546 esac 14547 14548 exp_sym_flag='-bexport' 14549 no_entry_flag='-bnoentry' 14550 fi 14551 14552 # When large executables or shared objects are built, AIX ld can 14553 # have problems creating the table of contents. If linking a library 14554 # or program results in "error TOC overflow" add -mminimal-toc to 14555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14557 14558 archive_cmds_F77='' 14559 hardcode_direct_F77=yes 14560 hardcode_libdir_separator_F77=':' 14561 link_all_deplibs_F77=yes 14562 14563 if test "$GCC" = yes; then 14564 case $host_os in aix4.[012]|aix4.[012].*) 14565 # We only want to do this on AIX 4.2 and lower, the check 14566 # below for broken collect2 doesn't work under 4.3+ 14567 collect2name=`${CC} -print-prog-name=collect2` 14568 if test -f "$collect2name" && \ 14569 strings "$collect2name" | grep resolve_lib_name >/dev/null 14570 then 14571 # We have reworked collect2 14572 : 14573 else 14574 # We have old collect2 14575 hardcode_direct_F77=unsupported 14576 # It fails to find uninstalled libraries when the uninstalled 14577 # path is not listed in the libpath. Setting hardcode_minus_L 14578 # to unsupported forces relinking 14579 hardcode_minus_L_F77=yes 14580 hardcode_libdir_flag_spec_F77='-L$libdir' 14581 hardcode_libdir_separator_F77= 14582 fi 14583 ;; 14584 esac 14585 shared_flag='-shared' 14586 if test "$aix_use_runtimelinking" = yes; then 14587 shared_flag="$shared_flag "'${wl}-G' 14588 fi 14589 else 14590 # not using gcc 14591 if test "$host_cpu" = ia64; then 14592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14593 # chokes on -Wl,-G. The following line is correct: 14594 shared_flag='-G' 14595 else 14596 if test "$aix_use_runtimelinking" = yes; then 14597 shared_flag='${wl}-G' 14598 else 14599 shared_flag='${wl}-bM:SRE' 14600 fi 14601 fi 14602 fi 14603 14604 # It seems that -bexpall does not export symbols beginning with 14605 # underscore (_), so it is better to generate a list of symbols to export. 14606 always_export_symbols_F77=yes 14607 if test "$aix_use_runtimelinking" = yes; then 14608 # Warning - without using the other runtime loading flags (-brtl), 14609 # -berok will link without error, but may produce a broken library. 14610 allow_undefined_flag_F77='-berok' 14611 # Determine the default libpath from the value encoded in an empty executable. 14612 cat >conftest.$ac_ext <<_ACEOF 14613 program main 14614 14615 end 14616_ACEOF 14617rm -f conftest.$ac_objext conftest$ac_exeext 14618if { (ac_try="$ac_link" 14619case "(($ac_try" in 14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14621 *) ac_try_echo=$ac_try;; 14622esac 14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14624 (eval "$ac_link") 2>conftest.er1 14625 ac_status=$? 14626 grep -v '^ *+' conftest.er1 >conftest.err 14627 rm -f conftest.er1 14628 cat conftest.err >&5 14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14630 (exit $ac_status); } && { 14631 test -z "$ac_f77_werror_flag" || 14632 test ! -s conftest.err 14633 } && test -s conftest$ac_exeext && 14634 $as_test_x conftest$ac_exeext; then 14635 14636lt_aix_libpath_sed=' 14637 /Import File Strings/,/^$/ { 14638 /^0/ { 14639 s/^0 *\(.*\)$/\1/ 14640 p 14641 } 14642 }' 14643aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14644# Check for a 64-bit object if we didn't find anything. 14645if test -z "$aix_libpath"; then 14646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14647fi 14648else 14649 echo "$as_me: failed program was:" >&5 14650sed 's/^/| /' conftest.$ac_ext >&5 14651 14652 14653fi 14654 14655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14656 conftest$ac_exeext conftest.$ac_ext 14657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14658 14659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14660 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" 14661 else 14662 if test "$host_cpu" = ia64; then 14663 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14664 allow_undefined_flag_F77="-z nodefs" 14665 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" 14666 else 14667 # Determine the default libpath from the value encoded in an empty executable. 14668 cat >conftest.$ac_ext <<_ACEOF 14669 program main 14670 14671 end 14672_ACEOF 14673rm -f conftest.$ac_objext conftest$ac_exeext 14674if { (ac_try="$ac_link" 14675case "(($ac_try" in 14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14677 *) ac_try_echo=$ac_try;; 14678esac 14679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14680 (eval "$ac_link") 2>conftest.er1 14681 ac_status=$? 14682 grep -v '^ *+' conftest.er1 >conftest.err 14683 rm -f conftest.er1 14684 cat conftest.err >&5 14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14686 (exit $ac_status); } && { 14687 test -z "$ac_f77_werror_flag" || 14688 test ! -s conftest.err 14689 } && test -s conftest$ac_exeext && 14690 $as_test_x conftest$ac_exeext; then 14691 14692lt_aix_libpath_sed=' 14693 /Import File Strings/,/^$/ { 14694 /^0/ { 14695 s/^0 *\(.*\)$/\1/ 14696 p 14697 } 14698 }' 14699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14700# Check for a 64-bit object if we didn't find anything. 14701if test -z "$aix_libpath"; then 14702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14703fi 14704else 14705 echo "$as_me: failed program was:" >&5 14706sed 's/^/| /' conftest.$ac_ext >&5 14707 14708 14709fi 14710 14711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14712 conftest$ac_exeext conftest.$ac_ext 14713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14714 14715 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14716 # Warning - without using the other run time loading flags, 14717 # -berok will link without error, but may produce a broken library. 14718 no_undefined_flag_F77=' ${wl}-bernotok' 14719 allow_undefined_flag_F77=' ${wl}-berok' 14720 # Exported symbols can be pulled into shared objects from archives 14721 whole_archive_flag_spec_F77='$convenience' 14722 archive_cmds_need_lc_F77=yes 14723 # This is similar to how AIX traditionally builds its shared libraries. 14724 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' 14725 fi 14726 fi 14727 ;; 14728 14729 amigaos*) 14730 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)' 14731 hardcode_libdir_flag_spec_F77='-L$libdir' 14732 hardcode_minus_L_F77=yes 14733 # see comment about different semantics on the GNU ld section 14734 ld_shlibs_F77=no 14735 ;; 14736 14737 bsdi[45]*) 14738 export_dynamic_flag_spec_F77=-rdynamic 14739 ;; 14740 14741 cygwin* | mingw* | pw32*) 14742 # When not using gcc, we currently assume that we are using 14743 # Microsoft Visual C++. 14744 # hardcode_libdir_flag_spec is actually meaningless, as there is 14745 # no search path for DLLs. 14746 hardcode_libdir_flag_spec_F77=' ' 14747 allow_undefined_flag_F77=unsupported 14748 # Tell ltmain to make .lib files, not .a files. 14749 libext=lib 14750 # Tell ltmain to make .dll files, not .so files. 14751 shrext_cmds=".dll" 14752 # FIXME: Setting linknames here is a bad hack. 14753 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14754 # The linker will automatically build a .lib file if we build a DLL. 14755 old_archive_From_new_cmds_F77='true' 14756 # FIXME: Should let the user specify the lib program. 14757 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14758 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14759 enable_shared_with_static_runtimes_F77=yes 14760 ;; 14761 14762 darwin* | rhapsody*) 14763 case $host_os in 14764 rhapsody* | darwin1.[012]) 14765 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14766 ;; 14767 *) # Darwin 1.3 on 14768 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14769 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14770 else 14771 case ${MACOSX_DEPLOYMENT_TARGET} in 14772 10.[012]) 14773 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14774 ;; 14775 10.*) 14776 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14777 ;; 14778 esac 14779 fi 14780 ;; 14781 esac 14782 archive_cmds_need_lc_F77=no 14783 hardcode_direct_F77=no 14784 hardcode_automatic_F77=yes 14785 hardcode_shlibpath_var_F77=unsupported 14786 whole_archive_flag_spec_F77='' 14787 link_all_deplibs_F77=yes 14788 if test "$GCC" = yes ; then 14789 output_verbose_link_cmd='echo' 14790 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14791 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14792 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14793 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}' 14794 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}' 14795 else 14796 case $cc_basename in 14797 xlc*) 14798 output_verbose_link_cmd='echo' 14799 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14800 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14802 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14803 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}' 14804 ;; 14805 *) 14806 ld_shlibs_F77=no 14807 ;; 14808 esac 14809 fi 14810 ;; 14811 14812 dgux*) 14813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14814 hardcode_libdir_flag_spec_F77='-L$libdir' 14815 hardcode_shlibpath_var_F77=no 14816 ;; 14817 14818 freebsd1*) 14819 ld_shlibs_F77=no 14820 ;; 14821 14822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14823 # support. Future versions do this automatically, but an explicit c++rt0.o 14824 # does not break anything, and helps significantly (at the cost of a little 14825 # extra space). 14826 freebsd2.2*) 14827 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14828 hardcode_libdir_flag_spec_F77='-R$libdir' 14829 hardcode_direct_F77=yes 14830 hardcode_shlibpath_var_F77=no 14831 ;; 14832 14833 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14834 freebsd2*) 14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14836 hardcode_direct_F77=yes 14837 hardcode_minus_L_F77=yes 14838 hardcode_shlibpath_var_F77=no 14839 ;; 14840 14841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14842 freebsd* | dragonfly*) 14843 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14844 hardcode_libdir_flag_spec_F77='-R$libdir' 14845 hardcode_direct_F77=yes 14846 hardcode_shlibpath_var_F77=no 14847 ;; 14848 14849 hpux9*) 14850 if test "$GCC" = yes; then 14851 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' 14852 else 14853 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' 14854 fi 14855 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14856 hardcode_libdir_separator_F77=: 14857 hardcode_direct_F77=yes 14858 14859 # hardcode_minus_L: Not really in the search PATH, 14860 # but as the default location of the library. 14861 hardcode_minus_L_F77=yes 14862 export_dynamic_flag_spec_F77='${wl}-E' 14863 ;; 14864 14865 hpux10*) 14866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14867 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14868 else 14869 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14870 fi 14871 if test "$with_gnu_ld" = no; then 14872 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14873 hardcode_libdir_separator_F77=: 14874 14875 hardcode_direct_F77=yes 14876 export_dynamic_flag_spec_F77='${wl}-E' 14877 14878 # hardcode_minus_L: Not really in the search PATH, 14879 # but as the default location of the library. 14880 hardcode_minus_L_F77=yes 14881 fi 14882 ;; 14883 14884 hpux11*) 14885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14886 case $host_cpu in 14887 hppa*64*) 14888 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14889 ;; 14890 ia64*) 14891 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14892 ;; 14893 *) 14894 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14895 ;; 14896 esac 14897 else 14898 case $host_cpu in 14899 hppa*64*) 14900 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14901 ;; 14902 ia64*) 14903 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14904 ;; 14905 *) 14906 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14907 ;; 14908 esac 14909 fi 14910 if test "$with_gnu_ld" = no; then 14911 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14912 hardcode_libdir_separator_F77=: 14913 14914 case $host_cpu in 14915 hppa*64*|ia64*) 14916 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14917 hardcode_direct_F77=no 14918 hardcode_shlibpath_var_F77=no 14919 ;; 14920 *) 14921 hardcode_direct_F77=yes 14922 export_dynamic_flag_spec_F77='${wl}-E' 14923 14924 # hardcode_minus_L: Not really in the search PATH, 14925 # but as the default location of the library. 14926 hardcode_minus_L_F77=yes 14927 ;; 14928 esac 14929 fi 14930 ;; 14931 14932 irix5* | irix6* | nonstopux*) 14933 if test "$GCC" = yes; then 14934 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' 14935 else 14936 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' 14937 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14938 fi 14939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14940 hardcode_libdir_separator_F77=: 14941 link_all_deplibs_F77=yes 14942 ;; 14943 14944 netbsd*) 14945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14947 else 14948 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14949 fi 14950 hardcode_libdir_flag_spec_F77='-R$libdir' 14951 hardcode_direct_F77=yes 14952 hardcode_shlibpath_var_F77=no 14953 ;; 14954 14955 newsos6) 14956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14957 hardcode_direct_F77=yes 14958 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14959 hardcode_libdir_separator_F77=: 14960 hardcode_shlibpath_var_F77=no 14961 ;; 14962 14963 openbsd*) 14964 if test -f /usr/libexec/ld.so; then 14965 hardcode_direct_F77=yes 14966 hardcode_shlibpath_var_F77=no 14967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14968 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14969 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14970 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14971 export_dynamic_flag_spec_F77='${wl}-E' 14972 else 14973 case $host_os in 14974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14976 hardcode_libdir_flag_spec_F77='-R$libdir' 14977 ;; 14978 *) 14979 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14981 ;; 14982 esac 14983 fi 14984 else 14985 ld_shlibs_F77=no 14986 fi 14987 ;; 14988 14989 os2*) 14990 hardcode_libdir_flag_spec_F77='-L$libdir' 14991 hardcode_minus_L_F77=yes 14992 allow_undefined_flag_F77=unsupported 14993 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' 14994 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14995 ;; 14996 14997 osf3*) 14998 if test "$GCC" = yes; then 14999 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15000 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' 15001 else 15002 allow_undefined_flag_F77=' -expect_unresolved \*' 15003 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' 15004 fi 15005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15006 hardcode_libdir_separator_F77=: 15007 ;; 15008 15009 osf4* | osf5*) # as osf3* with the addition of -msym flag 15010 if test "$GCC" = yes; then 15011 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15012 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' 15013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15014 else 15015 allow_undefined_flag_F77=' -expect_unresolved \*' 15016 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' 15017 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~ 15018 $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' 15019 15020 # Both c and cxx compiler support -rpath directly 15021 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15022 fi 15023 hardcode_libdir_separator_F77=: 15024 ;; 15025 15026 solaris*) 15027 no_undefined_flag_F77=' -z text' 15028 if test "$GCC" = yes; then 15029 wlarc='${wl}' 15030 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15031 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15032 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15033 else 15034 wlarc='' 15035 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15036 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15038 fi 15039 hardcode_libdir_flag_spec_F77='-R$libdir' 15040 hardcode_shlibpath_var_F77=no 15041 case $host_os in 15042 solaris2.[0-5] | solaris2.[0-5].*) ;; 15043 *) 15044 # The compiler driver will combine and reorder linker options, 15045 # but understands `-z linker_flag'. GCC discards it without `$wl', 15046 # but is careful enough not to reorder. 15047 # Supported since Solaris 2.6 (maybe 2.5.1?) 15048 if test "$GCC" = yes; then 15049 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15050 else 15051 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15052 fi 15053 ;; 15054 esac 15055 link_all_deplibs_F77=yes 15056 ;; 15057 15058 sunos4*) 15059 if test "x$host_vendor" = xsequent; then 15060 # Use $CC to link under sequent, because it throws in some extra .o 15061 # files that make .init and .fini sections work. 15062 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15063 else 15064 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15065 fi 15066 hardcode_libdir_flag_spec_F77='-L$libdir' 15067 hardcode_direct_F77=yes 15068 hardcode_minus_L_F77=yes 15069 hardcode_shlibpath_var_F77=no 15070 ;; 15071 15072 sysv4) 15073 case $host_vendor in 15074 sni) 15075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15076 hardcode_direct_F77=yes # is this really true??? 15077 ;; 15078 siemens) 15079 ## LD is ld it makes a PLAMLIB 15080 ## CC just makes a GrossModule. 15081 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15082 reload_cmds_F77='$CC -r -o $output$reload_objs' 15083 hardcode_direct_F77=no 15084 ;; 15085 motorola) 15086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15087 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15088 ;; 15089 esac 15090 runpath_var='LD_RUN_PATH' 15091 hardcode_shlibpath_var_F77=no 15092 ;; 15093 15094 sysv4.3*) 15095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15096 hardcode_shlibpath_var_F77=no 15097 export_dynamic_flag_spec_F77='-Bexport' 15098 ;; 15099 15100 sysv4*MP*) 15101 if test -d /usr/nec; then 15102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15103 hardcode_shlibpath_var_F77=no 15104 runpath_var=LD_RUN_PATH 15105 hardcode_runpath_var=yes 15106 ld_shlibs_F77=yes 15107 fi 15108 ;; 15109 15110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15111 no_undefined_flag_F77='${wl}-z,text' 15112 archive_cmds_need_lc_F77=no 15113 hardcode_shlibpath_var_F77=no 15114 runpath_var='LD_RUN_PATH' 15115 15116 if test "$GCC" = yes; then 15117 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15118 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15119 else 15120 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15121 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15122 fi 15123 ;; 15124 15125 sysv5* | sco3.2v5* | sco5v6*) 15126 # Note: We can NOT use -z defs as we might desire, because we do not 15127 # link with -lc, and that would cause any symbols used from libc to 15128 # always be unresolved, which means just about no library would 15129 # ever link correctly. If we're not using GNU ld we use -z text 15130 # though, which does catch some bad symbols but isn't as heavy-handed 15131 # as -z defs. 15132 no_undefined_flag_F77='${wl}-z,text' 15133 allow_undefined_flag_F77='${wl}-z,nodefs' 15134 archive_cmds_need_lc_F77=no 15135 hardcode_shlibpath_var_F77=no 15136 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15137 hardcode_libdir_separator_F77=':' 15138 link_all_deplibs_F77=yes 15139 export_dynamic_flag_spec_F77='${wl}-Bexport' 15140 runpath_var='LD_RUN_PATH' 15141 15142 if test "$GCC" = yes; then 15143 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15144 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15145 else 15146 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15148 fi 15149 ;; 15150 15151 uts4*) 15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15153 hardcode_libdir_flag_spec_F77='-L$libdir' 15154 hardcode_shlibpath_var_F77=no 15155 ;; 15156 15157 *) 15158 ld_shlibs_F77=no 15159 ;; 15160 esac 15161 fi 15162 15163{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15164echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15165test "$ld_shlibs_F77" = no && can_build_shared=no 15166 15167# 15168# Do we need to explicitly link libc? 15169# 15170case "x$archive_cmds_need_lc_F77" in 15171x|xyes) 15172 # Assume -lc should be added 15173 archive_cmds_need_lc_F77=yes 15174 15175 if test "$enable_shared" = yes && test "$GCC" = yes; then 15176 case $archive_cmds_F77 in 15177 *'~'*) 15178 # FIXME: we may have to deal with multi-command sequences. 15179 ;; 15180 '$CC '*) 15181 # Test whether the compiler implicitly links with -lc since on some 15182 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15183 # to ld, don't add -lc before -lgcc. 15184 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15185echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15186 $rm conftest* 15187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15188 15189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15190 (eval $ac_compile) 2>&5 15191 ac_status=$? 15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15193 (exit $ac_status); } 2>conftest.err; then 15194 soname=conftest 15195 lib=conftest 15196 libobjs=conftest.$ac_objext 15197 deplibs= 15198 wl=$lt_prog_compiler_wl_F77 15199 pic_flag=$lt_prog_compiler_pic_F77 15200 compiler_flags=-v 15201 linker_flags=-v 15202 verstring= 15203 output_objdir=. 15204 libname=conftest 15205 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15206 allow_undefined_flag_F77= 15207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15208 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15209 ac_status=$? 15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15211 (exit $ac_status); } 15212 then 15213 archive_cmds_need_lc_F77=no 15214 else 15215 archive_cmds_need_lc_F77=yes 15216 fi 15217 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15218 else 15219 cat conftest.err 1>&5 15220 fi 15221 $rm conftest* 15222 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15223echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15224 ;; 15225 esac 15226 fi 15227 ;; 15228esac 15229 15230{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15231echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15232library_names_spec= 15233libname_spec='lib$name' 15234soname_spec= 15235shrext_cmds=".so" 15236postinstall_cmds= 15237postuninstall_cmds= 15238finish_cmds= 15239finish_eval= 15240shlibpath_var= 15241shlibpath_overrides_runpath=unknown 15242version_type=none 15243dynamic_linker="$host_os ld.so" 15244sys_lib_dlsearch_path_spec="/lib /usr/lib" 15245 15246need_lib_prefix=unknown 15247hardcode_into_libs=no 15248 15249# when you set need_version to no, make sure it does not cause -set_version 15250# flags to be left without arguments 15251need_version=unknown 15252 15253case $host_os in 15254aix3*) 15255 version_type=linux 15256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15257 shlibpath_var=LIBPATH 15258 15259 # AIX 3 has no versioning support, so we append a major version to the name. 15260 soname_spec='${libname}${release}${shared_ext}$major' 15261 ;; 15262 15263aix4* | aix5*) 15264 version_type=linux 15265 need_lib_prefix=no 15266 need_version=no 15267 hardcode_into_libs=yes 15268 if test "$host_cpu" = ia64; then 15269 # AIX 5 supports IA64 15270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15271 shlibpath_var=LD_LIBRARY_PATH 15272 else 15273 # With GCC up to 2.95.x, collect2 would create an import file 15274 # for dependence libraries. The import file would start with 15275 # the line `#! .'. This would cause the generated library to 15276 # depend on `.', always an invalid library. This was fixed in 15277 # development snapshots of GCC prior to 3.0. 15278 case $host_os in 15279 aix4 | aix4.[01] | aix4.[01].*) 15280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15281 echo ' yes ' 15282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15283 : 15284 else 15285 can_build_shared=no 15286 fi 15287 ;; 15288 esac 15289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15290 # soname into executable. Probably we can add versioning support to 15291 # collect2, so additional links can be useful in future. 15292 if test "$aix_use_runtimelinking" = yes; then 15293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15294 # instead of lib<name>.a to let people know that these are not 15295 # typical AIX shared libraries. 15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15297 else 15298 # We preserve .a as extension for shared libraries through AIX4.2 15299 # and later when we are not doing run time linking. 15300 library_names_spec='${libname}${release}.a $libname.a' 15301 soname_spec='${libname}${release}${shared_ext}$major' 15302 fi 15303 shlibpath_var=LIBPATH 15304 fi 15305 ;; 15306 15307amigaos*) 15308 library_names_spec='$libname.ixlibrary $libname.a' 15309 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15310 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' 15311 ;; 15312 15313beos*) 15314 library_names_spec='${libname}${shared_ext}' 15315 dynamic_linker="$host_os ld.so" 15316 shlibpath_var=LIBRARY_PATH 15317 ;; 15318 15319bsdi[45]*) 15320 version_type=linux 15321 need_version=no 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15323 soname_spec='${libname}${release}${shared_ext}$major' 15324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15325 shlibpath_var=LD_LIBRARY_PATH 15326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15328 # the default ld.so.conf also contains /usr/contrib/lib and 15329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15330 # libtool to hard-code these into programs 15331 ;; 15332 15333cygwin* | mingw* | pw32*) 15334 version_type=windows 15335 shrext_cmds=".dll" 15336 need_version=no 15337 need_lib_prefix=no 15338 15339 case $GCC,$host_os in 15340 yes,cygwin* | yes,mingw* | yes,pw32*) 15341 library_names_spec='$libname.dll.a' 15342 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15343 postinstall_cmds='base_file=`basename \${file}`~ 15344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15345 dldir=$destdir/`dirname \$dlpath`~ 15346 test -d \$dldir || mkdir -p \$dldir~ 15347 $install_prog $dir/$dlname \$dldir/$dlname~ 15348 chmod a+x \$dldir/$dlname' 15349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15350 dlpath=$dir/\$dldll~ 15351 $rm \$dlpath' 15352 shlibpath_overrides_runpath=yes 15353 15354 case $host_os in 15355 cygwin*) 15356 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15359 ;; 15360 mingw*) 15361 # MinGW DLLs use traditional 'lib' prefix 15362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15365 # It is most probably a Windows format PATH printed by 15366 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15367 # path with ; separators, and with drive letters. We can handle the 15368 # drive letters (cygwin fileutils understands them), so leave them, 15369 # especially as we might pass files found there to a mingw objdump, 15370 # which wouldn't understand a cygwinified path. Ahh. 15371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15372 else 15373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15374 fi 15375 ;; 15376 pw32*) 15377 # pw32 DLLs use 'pw' prefix rather than 'lib' 15378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15379 ;; 15380 esac 15381 ;; 15382 15383 *) 15384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15385 ;; 15386 esac 15387 dynamic_linker='Win32 ld.exe' 15388 # FIXME: first we should search . and the directory the executable is in 15389 shlibpath_var=PATH 15390 ;; 15391 15392darwin* | rhapsody*) 15393 dynamic_linker="$host_os dyld" 15394 version_type=darwin 15395 need_lib_prefix=no 15396 need_version=no 15397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15398 soname_spec='${libname}${release}${major}$shared_ext' 15399 shlibpath_overrides_runpath=yes 15400 shlibpath_var=DYLD_LIBRARY_PATH 15401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15402 15403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15404 ;; 15405 15406dgux*) 15407 version_type=linux 15408 need_lib_prefix=no 15409 need_version=no 15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15411 soname_spec='${libname}${release}${shared_ext}$major' 15412 shlibpath_var=LD_LIBRARY_PATH 15413 ;; 15414 15415freebsd1*) 15416 dynamic_linker=no 15417 ;; 15418 15419freebsd* | dragonfly*) 15420 # DragonFly does not have aout. When/if they implement a new 15421 # versioning mechanism, adjust this. 15422 if test -x /usr/bin/objformat; then 15423 objformat=`/usr/bin/objformat` 15424 else 15425 case $host_os in 15426 freebsd[123]*) objformat=aout ;; 15427 *) objformat=elf ;; 15428 esac 15429 fi 15430 # Handle Gentoo/FreeBSD as it was Linux 15431 case $host_vendor in 15432 gentoo) 15433 version_type=linux ;; 15434 *) 15435 version_type=freebsd-$objformat ;; 15436 esac 15437 15438 case $version_type in 15439 freebsd-elf*) 15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15441 need_version=no 15442 need_lib_prefix=no 15443 ;; 15444 freebsd-*) 15445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15446 need_version=yes 15447 ;; 15448 linux) 15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15450 soname_spec='${libname}${release}${shared_ext}$major' 15451 need_lib_prefix=no 15452 need_version=no 15453 ;; 15454 esac 15455 shlibpath_var=LD_LIBRARY_PATH 15456 case $host_os in 15457 freebsd2*) 15458 shlibpath_overrides_runpath=yes 15459 ;; 15460 freebsd3.[01]* | freebsdelf3.[01]*) 15461 shlibpath_overrides_runpath=yes 15462 hardcode_into_libs=yes 15463 ;; 15464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15466 shlibpath_overrides_runpath=no 15467 hardcode_into_libs=yes 15468 ;; 15469 *) # from 4.6 on, and DragonFly 15470 shlibpath_overrides_runpath=yes 15471 hardcode_into_libs=yes 15472 ;; 15473 esac 15474 ;; 15475 15476gnu*) 15477 version_type=linux 15478 need_lib_prefix=no 15479 need_version=no 15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 shlibpath_var=LD_LIBRARY_PATH 15483 hardcode_into_libs=yes 15484 ;; 15485 15486hpux9* | hpux10* | hpux11*) 15487 # Give a soname corresponding to the major version so that dld.sl refuses to 15488 # link against other versions. 15489 version_type=sunos 15490 need_lib_prefix=no 15491 need_version=no 15492 case $host_cpu in 15493 ia64*) 15494 shrext_cmds='.so' 15495 hardcode_into_libs=yes 15496 dynamic_linker="$host_os dld.so" 15497 shlibpath_var=LD_LIBRARY_PATH 15498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15500 soname_spec='${libname}${release}${shared_ext}$major' 15501 if test "X$HPUX_IA64_MODE" = X32; then 15502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15503 else 15504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15505 fi 15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15507 ;; 15508 hppa*64*) 15509 shrext_cmds='.sl' 15510 hardcode_into_libs=yes 15511 dynamic_linker="$host_os dld.sl" 15512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15515 soname_spec='${libname}${release}${shared_ext}$major' 15516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15518 ;; 15519 *) 15520 shrext_cmds='.sl' 15521 dynamic_linker="$host_os dld.sl" 15522 shlibpath_var=SHLIB_PATH 15523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 ;; 15527 esac 15528 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15529 postinstall_cmds='chmod 555 $lib' 15530 ;; 15531 15532interix[3-9]*) 15533 version_type=linux 15534 need_lib_prefix=no 15535 need_version=no 15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15537 soname_spec='${libname}${release}${shared_ext}$major' 15538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15539 shlibpath_var=LD_LIBRARY_PATH 15540 shlibpath_overrides_runpath=no 15541 hardcode_into_libs=yes 15542 ;; 15543 15544irix5* | irix6* | nonstopux*) 15545 case $host_os in 15546 nonstopux*) version_type=nonstopux ;; 15547 *) 15548 if test "$lt_cv_prog_gnu_ld" = yes; then 15549 version_type=linux 15550 else 15551 version_type=irix 15552 fi ;; 15553 esac 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}${release}${shared_ext} $libname${shared_ext}' 15558 case $host_os in 15559 irix5* | nonstopux*) 15560 libsuff= shlibsuff= 15561 ;; 15562 *) 15563 case $LD in # libtool.m4 will add one of these switches to LD 15564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15565 libsuff= shlibsuff= libmagic=32-bit;; 15566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15567 libsuff=32 shlibsuff=N32 libmagic=N32;; 15568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15569 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15570 *) libsuff= shlibsuff= libmagic=never-match;; 15571 esac 15572 ;; 15573 esac 15574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15575 shlibpath_overrides_runpath=no 15576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15578 hardcode_into_libs=yes 15579 ;; 15580 15581# No shared lib support for Linux oldld, aout, or coff. 15582linux*oldld* | linux*aout* | linux*coff*) 15583 dynamic_linker=no 15584 ;; 15585 15586# This must be Linux ELF. 15587linux* | k*bsd*-gnu) 15588 version_type=linux 15589 need_lib_prefix=no 15590 need_version=no 15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15592 soname_spec='${libname}${release}${shared_ext}$major' 15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15594 shlibpath_var=LD_LIBRARY_PATH 15595 shlibpath_overrides_runpath=no 15596 # This implies no fast_install, which is unacceptable. 15597 # Some rework will be needed to allow for fast_install 15598 # before this can be enabled. 15599 hardcode_into_libs=yes 15600 15601 # Append ld.so.conf contents to the search path 15602 if test -f /etc/ld.so.conf; then 15603 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15605 fi 15606 15607 # We used to test for /lib/ld.so.1 and disable shared libraries on 15608 # powerpc, because MkLinux only supported shared libraries with the 15609 # GNU dynamic linker. Since this was broken with cross compilers, 15610 # most powerpc-linux boxes support dynamic linking these days and 15611 # people can always --disable-shared, the test was removed, and we 15612 # assume the GNU/Linux dynamic linker is in use. 15613 dynamic_linker='GNU/Linux ld.so' 15614 ;; 15615 15616netbsd*) 15617 version_type=sunos 15618 need_lib_prefix=no 15619 need_version=no 15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15623 dynamic_linker='NetBSD (a.out) ld.so' 15624 else 15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15626 soname_spec='${libname}${release}${shared_ext}$major' 15627 dynamic_linker='NetBSD ld.elf_so' 15628 fi 15629 shlibpath_var=LD_LIBRARY_PATH 15630 shlibpath_overrides_runpath=yes 15631 hardcode_into_libs=yes 15632 ;; 15633 15634newsos6) 15635 version_type=linux 15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15637 shlibpath_var=LD_LIBRARY_PATH 15638 shlibpath_overrides_runpath=yes 15639 ;; 15640 15641nto-qnx*) 15642 version_type=linux 15643 need_lib_prefix=no 15644 need_version=no 15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15646 soname_spec='${libname}${release}${shared_ext}$major' 15647 shlibpath_var=LD_LIBRARY_PATH 15648 shlibpath_overrides_runpath=yes 15649 ;; 15650 15651openbsd*) 15652 version_type=sunos 15653 sys_lib_dlsearch_path_spec="/usr/lib" 15654 need_lib_prefix=no 15655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15656 case $host_os in 15657 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15658 *) need_version=no ;; 15659 esac 15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15662 shlibpath_var=LD_LIBRARY_PATH 15663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15664 case $host_os in 15665 openbsd2.[89] | openbsd2.[89].*) 15666 shlibpath_overrides_runpath=no 15667 ;; 15668 *) 15669 shlibpath_overrides_runpath=yes 15670 ;; 15671 esac 15672 else 15673 shlibpath_overrides_runpath=yes 15674 fi 15675 ;; 15676 15677os2*) 15678 libname_spec='$name' 15679 shrext_cmds=".dll" 15680 need_lib_prefix=no 15681 library_names_spec='$libname${shared_ext} $libname.a' 15682 dynamic_linker='OS/2 ld.exe' 15683 shlibpath_var=LIBPATH 15684 ;; 15685 15686osf3* | osf4* | osf5*) 15687 version_type=osf 15688 need_lib_prefix=no 15689 need_version=no 15690 soname_spec='${libname}${release}${shared_ext}$major' 15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15692 shlibpath_var=LD_LIBRARY_PATH 15693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15695 ;; 15696 15697rdos*) 15698 dynamic_linker=no 15699 ;; 15700 15701solaris*) 15702 version_type=linux 15703 need_lib_prefix=no 15704 need_version=no 15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15706 soname_spec='${libname}${release}${shared_ext}$major' 15707 shlibpath_var=LD_LIBRARY_PATH 15708 shlibpath_overrides_runpath=yes 15709 hardcode_into_libs=yes 15710 # ldd complains unless libraries are executable 15711 postinstall_cmds='chmod +x $lib' 15712 ;; 15713 15714sunos4*) 15715 version_type=sunos 15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15718 shlibpath_var=LD_LIBRARY_PATH 15719 shlibpath_overrides_runpath=yes 15720 if test "$with_gnu_ld" = yes; then 15721 need_lib_prefix=no 15722 fi 15723 need_version=yes 15724 ;; 15725 15726sysv4 | sysv4.3*) 15727 version_type=linux 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 case $host_vendor in 15732 sni) 15733 shlibpath_overrides_runpath=no 15734 need_lib_prefix=no 15735 export_dynamic_flag_spec='${wl}-Blargedynsym' 15736 runpath_var=LD_RUN_PATH 15737 ;; 15738 siemens) 15739 need_lib_prefix=no 15740 ;; 15741 motorola) 15742 need_lib_prefix=no 15743 need_version=no 15744 shlibpath_overrides_runpath=no 15745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15746 ;; 15747 esac 15748 ;; 15749 15750sysv4*MP*) 15751 if test -d /usr/nec ;then 15752 version_type=linux 15753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15754 soname_spec='$libname${shared_ext}.$major' 15755 shlibpath_var=LD_LIBRARY_PATH 15756 fi 15757 ;; 15758 15759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15760 version_type=freebsd-elf 15761 need_lib_prefix=no 15762 need_version=no 15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15764 soname_spec='${libname}${release}${shared_ext}$major' 15765 shlibpath_var=LD_LIBRARY_PATH 15766 hardcode_into_libs=yes 15767 if test "$with_gnu_ld" = yes; then 15768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15769 shlibpath_overrides_runpath=no 15770 else 15771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15772 shlibpath_overrides_runpath=yes 15773 case $host_os in 15774 sco3.2v5*) 15775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15776 ;; 15777 esac 15778 fi 15779 sys_lib_dlsearch_path_spec='/usr/lib' 15780 ;; 15781 15782uts4*) 15783 version_type=linux 15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15785 soname_spec='${libname}${release}${shared_ext}$major' 15786 shlibpath_var=LD_LIBRARY_PATH 15787 ;; 15788 15789*) 15790 dynamic_linker=no 15791 ;; 15792esac 15793{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15794echo "${ECHO_T}$dynamic_linker" >&6; } 15795test "$dynamic_linker" = no && can_build_shared=no 15796 15797variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15798if test "$GCC" = yes; then 15799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15800fi 15801 15802{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15803echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15804hardcode_action_F77= 15805if test -n "$hardcode_libdir_flag_spec_F77" || \ 15806 test -n "$runpath_var_F77" || \ 15807 test "X$hardcode_automatic_F77" = "Xyes" ; then 15808 15809 # We can hardcode non-existant directories. 15810 if test "$hardcode_direct_F77" != no && 15811 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15812 # have to relink, otherwise we might link with an installed library 15813 # when we should be linking with a yet-to-be-installed one 15814 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15815 test "$hardcode_minus_L_F77" != no; then 15816 # Linking always hardcodes the temporary library directory. 15817 hardcode_action_F77=relink 15818 else 15819 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15820 hardcode_action_F77=immediate 15821 fi 15822else 15823 # We cannot hardcode anything, or else we can only hardcode existing 15824 # directories. 15825 hardcode_action_F77=unsupported 15826fi 15827{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15828echo "${ECHO_T}$hardcode_action_F77" >&6; } 15829 15830if test "$hardcode_action_F77" = relink; then 15831 # Fast installation is not supported 15832 enable_fast_install=no 15833elif test "$shlibpath_overrides_runpath" = yes || 15834 test "$enable_shared" = no; then 15835 # Fast installation is not necessary 15836 enable_fast_install=needless 15837fi 15838 15839 15840# The else clause should only fire when bootstrapping the 15841# libtool distribution, otherwise you forgot to ship ltmain.sh 15842# with your package, and you will get complaints that there are 15843# no rules to generate ltmain.sh. 15844if test -f "$ltmain"; then 15845 # See if we are running on zsh, and set the options which allow our commands through 15846 # without removal of \ escapes. 15847 if test -n "${ZSH_VERSION+set}" ; then 15848 setopt NO_GLOB_SUBST 15849 fi 15850 # Now quote all the things that may contain metacharacters while being 15851 # careful not to overquote the AC_SUBSTed values. We take copies of the 15852 # variables and quote the copies for generation of the libtool script. 15853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15854 SED SHELL STRIP \ 15855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15857 deplibs_check_method reload_flag reload_cmds need_locks \ 15858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15859 lt_cv_sys_global_symbol_to_c_name_address \ 15860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15861 old_postinstall_cmds old_postuninstall_cmds \ 15862 compiler_F77 \ 15863 CC_F77 \ 15864 LD_F77 \ 15865 lt_prog_compiler_wl_F77 \ 15866 lt_prog_compiler_pic_F77 \ 15867 lt_prog_compiler_static_F77 \ 15868 lt_prog_compiler_no_builtin_flag_F77 \ 15869 export_dynamic_flag_spec_F77 \ 15870 thread_safe_flag_spec_F77 \ 15871 whole_archive_flag_spec_F77 \ 15872 enable_shared_with_static_runtimes_F77 \ 15873 old_archive_cmds_F77 \ 15874 old_archive_from_new_cmds_F77 \ 15875 predep_objects_F77 \ 15876 postdep_objects_F77 \ 15877 predeps_F77 \ 15878 postdeps_F77 \ 15879 compiler_lib_search_path_F77 \ 15880 archive_cmds_F77 \ 15881 archive_expsym_cmds_F77 \ 15882 postinstall_cmds_F77 \ 15883 postuninstall_cmds_F77 \ 15884 old_archive_from_expsyms_cmds_F77 \ 15885 allow_undefined_flag_F77 \ 15886 no_undefined_flag_F77 \ 15887 export_symbols_cmds_F77 \ 15888 hardcode_libdir_flag_spec_F77 \ 15889 hardcode_libdir_flag_spec_ld_F77 \ 15890 hardcode_libdir_separator_F77 \ 15891 hardcode_automatic_F77 \ 15892 module_cmds_F77 \ 15893 module_expsym_cmds_F77 \ 15894 lt_cv_prog_compiler_c_o_F77 \ 15895 fix_srcfile_path_F77 \ 15896 exclude_expsyms_F77 \ 15897 include_expsyms_F77; do 15898 15899 case $var in 15900 old_archive_cmds_F77 | \ 15901 old_archive_from_new_cmds_F77 | \ 15902 archive_cmds_F77 | \ 15903 archive_expsym_cmds_F77 | \ 15904 module_cmds_F77 | \ 15905 module_expsym_cmds_F77 | \ 15906 old_archive_from_expsyms_cmds_F77 | \ 15907 export_symbols_cmds_F77 | \ 15908 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15909 postinstall_cmds | postuninstall_cmds | \ 15910 old_postinstall_cmds | old_postuninstall_cmds | \ 15911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15912 # Double-quote double-evaled strings. 15913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15914 ;; 15915 *) 15916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15917 ;; 15918 esac 15919 done 15920 15921 case $lt_echo in 15922 *'\$0 --fallback-echo"') 15923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15924 ;; 15925 esac 15926 15927cfgfile="$ofile" 15928 15929 cat <<__EOF__ >> "$cfgfile" 15930# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15931 15932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15933 15934# Shell to use when invoking shell scripts. 15935SHELL=$lt_SHELL 15936 15937# Whether or not to build shared libraries. 15938build_libtool_libs=$enable_shared 15939 15940# Whether or not to build static libraries. 15941build_old_libs=$enable_static 15942 15943# Whether or not to add -lc for building shared libraries. 15944build_libtool_need_lc=$archive_cmds_need_lc_F77 15945 15946# Whether or not to disallow shared libs when runtime libs are static 15947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15948 15949# Whether or not to optimize for fast installation. 15950fast_install=$enable_fast_install 15951 15952# The host system. 15953host_alias=$host_alias 15954host=$host 15955host_os=$host_os 15956 15957# The build system. 15958build_alias=$build_alias 15959build=$build 15960build_os=$build_os 15961 15962# An echo program that does not interpret backslashes. 15963echo=$lt_echo 15964 15965# The archiver. 15966AR=$lt_AR 15967AR_FLAGS=$lt_AR_FLAGS 15968 15969# A C compiler. 15970LTCC=$lt_LTCC 15971 15972# LTCC compiler flags. 15973LTCFLAGS=$lt_LTCFLAGS 15974 15975# A language-specific compiler. 15976CC=$lt_compiler_F77 15977 15978# Is the compiler the GNU C compiler? 15979with_gcc=$GCC_F77 15980 15981# An ERE matcher. 15982EGREP=$lt_EGREP 15983 15984# The linker used to build libraries. 15985LD=$lt_LD_F77 15986 15987# Whether we need hard or soft links. 15988LN_S=$lt_LN_S 15989 15990# A BSD-compatible nm program. 15991NM=$lt_NM 15992 15993# A symbol stripping program 15994STRIP=$lt_STRIP 15995 15996# Used to examine libraries when file_magic_cmd begins "file" 15997MAGIC_CMD=$MAGIC_CMD 15998 15999# Used on cygwin: DLL creation program. 16000DLLTOOL="$DLLTOOL" 16001 16002# Used on cygwin: object dumper. 16003OBJDUMP="$OBJDUMP" 16004 16005# Used on cygwin: assembler. 16006AS="$AS" 16007 16008# The name of the directory that contains temporary libtool files. 16009objdir=$objdir 16010 16011# How to create reloadable object files. 16012reload_flag=$lt_reload_flag 16013reload_cmds=$lt_reload_cmds 16014 16015# How to pass a linker flag through the compiler. 16016wl=$lt_lt_prog_compiler_wl_F77 16017 16018# Object file suffix (normally "o"). 16019objext="$ac_objext" 16020 16021# Old archive suffix (normally "a"). 16022libext="$libext" 16023 16024# Shared library suffix (normally ".so"). 16025shrext_cmds='$shrext_cmds' 16026 16027# Executable file suffix (normally ""). 16028exeext="$exeext" 16029 16030# Additional compiler flags for building library objects. 16031pic_flag=$lt_lt_prog_compiler_pic_F77 16032pic_mode=$pic_mode 16033 16034# What is the maximum length of a command? 16035max_cmd_len=$lt_cv_sys_max_cmd_len 16036 16037# Does compiler simultaneously support -c and -o options? 16038compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16039 16040# Must we lock files when doing compilation? 16041need_locks=$lt_need_locks 16042 16043# Do we need the lib prefix for modules? 16044need_lib_prefix=$need_lib_prefix 16045 16046# Do we need a version for libraries? 16047need_version=$need_version 16048 16049# Whether dlopen is supported. 16050dlopen_support=$enable_dlopen 16051 16052# Whether dlopen of programs is supported. 16053dlopen_self=$enable_dlopen_self 16054 16055# Whether dlopen of statically linked programs is supported. 16056dlopen_self_static=$enable_dlopen_self_static 16057 16058# Compiler flag to prevent dynamic linking. 16059link_static_flag=$lt_lt_prog_compiler_static_F77 16060 16061# Compiler flag to turn off builtin functions. 16062no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16063 16064# Compiler flag to allow reflexive dlopens. 16065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16066 16067# Compiler flag to generate shared objects directly from archives. 16068whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16069 16070# Compiler flag to generate thread-safe objects. 16071thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16072 16073# Library versioning type. 16074version_type=$version_type 16075 16076# Format of library name prefix. 16077libname_spec=$lt_libname_spec 16078 16079# List of archive names. First name is the real one, the rest are links. 16080# The last name is the one that the linker finds with -lNAME. 16081library_names_spec=$lt_library_names_spec 16082 16083# The coded name of the library, if different from the real name. 16084soname_spec=$lt_soname_spec 16085 16086# Commands used to build and install an old-style archive. 16087RANLIB=$lt_RANLIB 16088old_archive_cmds=$lt_old_archive_cmds_F77 16089old_postinstall_cmds=$lt_old_postinstall_cmds 16090old_postuninstall_cmds=$lt_old_postuninstall_cmds 16091 16092# Create an old-style archive from a shared archive. 16093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16094 16095# Create a temporary old-style archive to link instead of a shared archive. 16096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16097 16098# Commands used to build and install a shared archive. 16099archive_cmds=$lt_archive_cmds_F77 16100archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16101postinstall_cmds=$lt_postinstall_cmds 16102postuninstall_cmds=$lt_postuninstall_cmds 16103 16104# Commands used to build a loadable module (assumed same as above if empty) 16105module_cmds=$lt_module_cmds_F77 16106module_expsym_cmds=$lt_module_expsym_cmds_F77 16107 16108# Commands to strip libraries. 16109old_striplib=$lt_old_striplib 16110striplib=$lt_striplib 16111 16112# Dependencies to place before the objects being linked to create a 16113# shared library. 16114predep_objects=$lt_predep_objects_F77 16115 16116# Dependencies to place after the objects being linked to create a 16117# shared library. 16118postdep_objects=$lt_postdep_objects_F77 16119 16120# Dependencies to place before the objects being linked to create a 16121# shared library. 16122predeps=$lt_predeps_F77 16123 16124# Dependencies to place after the objects being linked to create a 16125# shared library. 16126postdeps=$lt_postdeps_F77 16127 16128# The library search path used internally by the compiler when linking 16129# a shared library. 16130compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16131 16132# Method to check whether dependent libraries are shared objects. 16133deplibs_check_method=$lt_deplibs_check_method 16134 16135# Command to use when deplibs_check_method == file_magic. 16136file_magic_cmd=$lt_file_magic_cmd 16137 16138# Flag that allows shared libraries with undefined symbols to be built. 16139allow_undefined_flag=$lt_allow_undefined_flag_F77 16140 16141# Flag that forces no undefined symbols. 16142no_undefined_flag=$lt_no_undefined_flag_F77 16143 16144# Commands used to finish a libtool library installation in a directory. 16145finish_cmds=$lt_finish_cmds 16146 16147# Same as above, but a single script fragment to be evaled but not shown. 16148finish_eval=$lt_finish_eval 16149 16150# Take the output of nm and produce a listing of raw symbols and C names. 16151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16152 16153# Transform the output of nm in a proper C declaration 16154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16155 16156# Transform the output of nm in a C name address pair 16157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16158 16159# This is the shared library runtime path variable. 16160runpath_var=$runpath_var 16161 16162# This is the shared library path variable. 16163shlibpath_var=$shlibpath_var 16164 16165# Is shlibpath searched before the hard-coded library search path? 16166shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16167 16168# How to hardcode a shared library path into an executable. 16169hardcode_action=$hardcode_action_F77 16170 16171# Whether we should hardcode library paths into libraries. 16172hardcode_into_libs=$hardcode_into_libs 16173 16174# Flag to hardcode \$libdir into a binary during linking. 16175# This must work even if \$libdir does not exist. 16176hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16177 16178# If ld is used when linking, flag to hardcode \$libdir into 16179# a binary during linking. This must work even if \$libdir does 16180# not exist. 16181hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16182 16183# Whether we need a single -rpath flag with a separated argument. 16184hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16185 16186# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16187# resulting binary. 16188hardcode_direct=$hardcode_direct_F77 16189 16190# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16191# resulting binary. 16192hardcode_minus_L=$hardcode_minus_L_F77 16193 16194# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16195# the resulting binary. 16196hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16197 16198# Set to yes if building a shared library automatically hardcodes DIR into the library 16199# and all subsequent libraries and executables linked against it. 16200hardcode_automatic=$hardcode_automatic_F77 16201 16202# Variables whose values should be saved in libtool wrapper scripts and 16203# restored at relink time. 16204variables_saved_for_relink="$variables_saved_for_relink" 16205 16206# Whether libtool must link a program against all its dependency libraries. 16207link_all_deplibs=$link_all_deplibs_F77 16208 16209# Compile-time system search path for libraries 16210sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16211 16212# Run-time system search path for libraries 16213sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16214 16215# Fix the shell variable \$srcfile for the compiler. 16216fix_srcfile_path=$lt_fix_srcfile_path 16217 16218# Set to yes if exported symbols are required. 16219always_export_symbols=$always_export_symbols_F77 16220 16221# The commands to list exported symbols. 16222export_symbols_cmds=$lt_export_symbols_cmds_F77 16223 16224# The commands to extract the exported symbol list from a shared archive. 16225extract_expsyms_cmds=$lt_extract_expsyms_cmds 16226 16227# Symbols that should not be listed in the preloaded symbols. 16228exclude_expsyms=$lt_exclude_expsyms_F77 16229 16230# Symbols that must always be exported. 16231include_expsyms=$lt_include_expsyms_F77 16232 16233# ### END LIBTOOL TAG CONFIG: $tagname 16234 16235__EOF__ 16236 16237 16238else 16239 # If there is no Makefile yet, we rely on a make rule to execute 16240 # `config.status --recheck' to rerun these tests and create the 16241 # libtool script then. 16242 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16243 if test -f "$ltmain_in"; then 16244 test -f Makefile && make "$ltmain" 16245 fi 16246fi 16247 16248 16249ac_ext=c 16250ac_cpp='$CPP $CPPFLAGS' 16251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16253ac_compiler_gnu=$ac_cv_c_compiler_gnu 16254 16255CC="$lt_save_CC" 16256 16257 else 16258 tagname="" 16259 fi 16260 ;; 16261 16262 GCJ) 16263 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16264 16265 16266# Source file extension for Java test sources. 16267ac_ext=java 16268 16269# Object file extension for compiled Java test sources. 16270objext=o 16271objext_GCJ=$objext 16272 16273# Code to be used in simple compile tests 16274lt_simple_compile_test_code="class foo {}" 16275 16276# Code to be used in simple link tests 16277lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16278 16279# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16280 16281# If no C compiler was specified, use CC. 16282LTCC=${LTCC-"$CC"} 16283 16284# If no C compiler flags were specified, use CFLAGS. 16285LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16286 16287# Allow CC to be a program name with arguments. 16288compiler=$CC 16289 16290 16291# save warnings/boilerplate of simple test code 16292ac_outfile=conftest.$ac_objext 16293echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16294eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16295_lt_compiler_boilerplate=`cat conftest.err` 16296$rm conftest* 16297 16298ac_outfile=conftest.$ac_objext 16299echo "$lt_simple_link_test_code" >conftest.$ac_ext 16300eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16301_lt_linker_boilerplate=`cat conftest.err` 16302$rm conftest* 16303 16304 16305# Allow CC to be a program name with arguments. 16306lt_save_CC="$CC" 16307CC=${GCJ-"gcj"} 16308compiler=$CC 16309compiler_GCJ=$CC 16310for cc_temp in $compiler""; do 16311 case $cc_temp in 16312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16314 \-*) ;; 16315 *) break;; 16316 esac 16317done 16318cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16319 16320 16321# GCJ did not exist at the time GCC didn't implicitly link libc in. 16322archive_cmds_need_lc_GCJ=no 16323 16324old_archive_cmds_GCJ=$old_archive_cmds 16325 16326 16327lt_prog_compiler_no_builtin_flag_GCJ= 16328 16329if test "$GCC" = yes; then 16330 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16331 16332 16333{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16334echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16335if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16336 echo $ECHO_N "(cached) $ECHO_C" >&6 16337else 16338 lt_cv_prog_compiler_rtti_exceptions=no 16339 ac_outfile=conftest.$ac_objext 16340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16341 lt_compiler_flag="-fno-rtti -fno-exceptions" 16342 # Insert the option either (1) after the last *FLAGS variable, or 16343 # (2) before a word containing "conftest.", or (3) at the end. 16344 # Note that $ac_compile itself does not contain backslashes and begins 16345 # with a dollar sign (not a hyphen), so the echo should work correctly. 16346 # The option is referenced via a variable to avoid confusing sed. 16347 lt_compile=`echo "$ac_compile" | $SED \ 16348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16350 -e 's:$: $lt_compiler_flag:'` 16351 (eval echo "\"\$as_me:16351: $lt_compile\"" >&5) 16352 (eval "$lt_compile" 2>conftest.err) 16353 ac_status=$? 16354 cat conftest.err >&5 16355 echo "$as_me:16355: \$? = $ac_status" >&5 16356 if (exit $ac_status) && test -s "$ac_outfile"; then 16357 # The compiler can only warn and ignore the option if not recognized 16358 # So say no if there are warnings other than the usual output. 16359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16362 lt_cv_prog_compiler_rtti_exceptions=yes 16363 fi 16364 fi 16365 $rm conftest* 16366 16367fi 16368{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16369echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16370 16371if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16372 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16373else 16374 : 16375fi 16376 16377fi 16378 16379lt_prog_compiler_wl_GCJ= 16380lt_prog_compiler_pic_GCJ= 16381lt_prog_compiler_static_GCJ= 16382 16383{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16384echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16385 16386 if test "$GCC" = yes; then 16387 lt_prog_compiler_wl_GCJ='-Wl,' 16388 lt_prog_compiler_static_GCJ='-static' 16389 16390 case $host_os in 16391 aix*) 16392 # All AIX code is PIC. 16393 if test "$host_cpu" = ia64; then 16394 # AIX 5 now supports IA64 processor 16395 lt_prog_compiler_static_GCJ='-Bstatic' 16396 fi 16397 ;; 16398 16399 amigaos*) 16400 # FIXME: we need at least 68020 code to build shared libraries, but 16401 # adding the `-m68020' flag to GCC prevents building anything better, 16402 # like `-m68040'. 16403 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16404 ;; 16405 16406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16407 # PIC is the default for these OSes. 16408 ;; 16409 16410 mingw* | cygwin* | pw32* | os2*) 16411 # This hack is so that the source file can tell whether it is being 16412 # built for inclusion in a dll (and should export symbols for example). 16413 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16414 # (--disable-auto-import) libraries 16415 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16416 ;; 16417 16418 darwin* | rhapsody*) 16419 # PIC is the default on this platform 16420 # Common symbols not allowed in MH_DYLIB files 16421 lt_prog_compiler_pic_GCJ='-fno-common' 16422 ;; 16423 16424 interix[3-9]*) 16425 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16426 # Instead, we relocate shared libraries at runtime. 16427 ;; 16428 16429 msdosdjgpp*) 16430 # Just because we use GCC doesn't mean we suddenly get shared libraries 16431 # on systems that don't support them. 16432 lt_prog_compiler_can_build_shared_GCJ=no 16433 enable_shared=no 16434 ;; 16435 16436 sysv4*MP*) 16437 if test -d /usr/nec; then 16438 lt_prog_compiler_pic_GCJ=-Kconform_pic 16439 fi 16440 ;; 16441 16442 hpux*) 16443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16444 # not for PA HP-UX. 16445 case $host_cpu in 16446 hppa*64*|ia64*) 16447 # +Z the default 16448 ;; 16449 *) 16450 lt_prog_compiler_pic_GCJ='-fPIC' 16451 ;; 16452 esac 16453 ;; 16454 16455 *) 16456 lt_prog_compiler_pic_GCJ='-fPIC' 16457 ;; 16458 esac 16459 else 16460 # PORTME Check for flag to pass linker flags through the system compiler. 16461 case $host_os in 16462 aix*) 16463 lt_prog_compiler_wl_GCJ='-Wl,' 16464 if test "$host_cpu" = ia64; then 16465 # AIX 5 now supports IA64 processor 16466 lt_prog_compiler_static_GCJ='-Bstatic' 16467 else 16468 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16469 fi 16470 ;; 16471 darwin*) 16472 # PIC is the default on this platform 16473 # Common symbols not allowed in MH_DYLIB files 16474 case $cc_basename in 16475 xlc*) 16476 lt_prog_compiler_pic_GCJ='-qnocommon' 16477 lt_prog_compiler_wl_GCJ='-Wl,' 16478 ;; 16479 esac 16480 ;; 16481 16482 mingw* | cygwin* | pw32* | os2*) 16483 # This hack is so that the source file can tell whether it is being 16484 # built for inclusion in a dll (and should export symbols for example). 16485 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16486 ;; 16487 16488 hpux9* | hpux10* | hpux11*) 16489 lt_prog_compiler_wl_GCJ='-Wl,' 16490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16491 # not for PA HP-UX. 16492 case $host_cpu in 16493 hppa*64*|ia64*) 16494 # +Z the default 16495 ;; 16496 *) 16497 lt_prog_compiler_pic_GCJ='+Z' 16498 ;; 16499 esac 16500 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16501 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16502 ;; 16503 16504 irix5* | irix6* | nonstopux*) 16505 lt_prog_compiler_wl_GCJ='-Wl,' 16506 # PIC (with -KPIC) is the default. 16507 lt_prog_compiler_static_GCJ='-non_shared' 16508 ;; 16509 16510 newsos6) 16511 lt_prog_compiler_pic_GCJ='-KPIC' 16512 lt_prog_compiler_static_GCJ='-Bstatic' 16513 ;; 16514 16515 linux* | k*bsd*-gnu) 16516 case $cc_basename in 16517 icc* | ecc*) 16518 lt_prog_compiler_wl_GCJ='-Wl,' 16519 lt_prog_compiler_pic_GCJ='-KPIC' 16520 lt_prog_compiler_static_GCJ='-static' 16521 ;; 16522 pgcc* | pgf77* | pgf90* | pgf95*) 16523 # Portland Group compilers (*not* the Pentium gcc compiler, 16524 # which looks to be a dead project) 16525 lt_prog_compiler_wl_GCJ='-Wl,' 16526 lt_prog_compiler_pic_GCJ='-fpic' 16527 lt_prog_compiler_static_GCJ='-Bstatic' 16528 ;; 16529 ccc*) 16530 lt_prog_compiler_wl_GCJ='-Wl,' 16531 # All Alpha code is PIC. 16532 lt_prog_compiler_static_GCJ='-non_shared' 16533 ;; 16534 *) 16535 case `$CC -V 2>&1 | sed 5q` in 16536 *Sun\ C*) 16537 # Sun C 5.9 16538 lt_prog_compiler_pic_GCJ='-KPIC' 16539 lt_prog_compiler_static_GCJ='-Bstatic' 16540 lt_prog_compiler_wl_GCJ='-Wl,' 16541 ;; 16542 *Sun\ F*) 16543 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16544 lt_prog_compiler_pic_GCJ='-KPIC' 16545 lt_prog_compiler_static_GCJ='-Bstatic' 16546 lt_prog_compiler_wl_GCJ='' 16547 ;; 16548 esac 16549 ;; 16550 esac 16551 ;; 16552 16553 osf3* | osf4* | osf5*) 16554 lt_prog_compiler_wl_GCJ='-Wl,' 16555 # All OSF/1 code is PIC. 16556 lt_prog_compiler_static_GCJ='-non_shared' 16557 ;; 16558 16559 rdos*) 16560 lt_prog_compiler_static_GCJ='-non_shared' 16561 ;; 16562 16563 solaris*) 16564 lt_prog_compiler_pic_GCJ='-KPIC' 16565 lt_prog_compiler_static_GCJ='-Bstatic' 16566 case $cc_basename in 16567 f77* | f90* | f95*) 16568 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16569 *) 16570 lt_prog_compiler_wl_GCJ='-Wl,';; 16571 esac 16572 ;; 16573 16574 sunos4*) 16575 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16576 lt_prog_compiler_pic_GCJ='-PIC' 16577 lt_prog_compiler_static_GCJ='-Bstatic' 16578 ;; 16579 16580 sysv4 | sysv4.2uw2* | sysv4.3*) 16581 lt_prog_compiler_wl_GCJ='-Wl,' 16582 lt_prog_compiler_pic_GCJ='-KPIC' 16583 lt_prog_compiler_static_GCJ='-Bstatic' 16584 ;; 16585 16586 sysv4*MP*) 16587 if test -d /usr/nec ;then 16588 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16589 lt_prog_compiler_static_GCJ='-Bstatic' 16590 fi 16591 ;; 16592 16593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16594 lt_prog_compiler_wl_GCJ='-Wl,' 16595 lt_prog_compiler_pic_GCJ='-KPIC' 16596 lt_prog_compiler_static_GCJ='-Bstatic' 16597 ;; 16598 16599 unicos*) 16600 lt_prog_compiler_wl_GCJ='-Wl,' 16601 lt_prog_compiler_can_build_shared_GCJ=no 16602 ;; 16603 16604 uts4*) 16605 lt_prog_compiler_pic_GCJ='-pic' 16606 lt_prog_compiler_static_GCJ='-Bstatic' 16607 ;; 16608 16609 *) 16610 lt_prog_compiler_can_build_shared_GCJ=no 16611 ;; 16612 esac 16613 fi 16614 16615{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16616echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16617 16618# 16619# Check to make sure the PIC flag actually works. 16620# 16621if test -n "$lt_prog_compiler_pic_GCJ"; then 16622 16623{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16624echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16625if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16626 echo $ECHO_N "(cached) $ECHO_C" >&6 16627else 16628 lt_prog_compiler_pic_works_GCJ=no 16629 ac_outfile=conftest.$ac_objext 16630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16631 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16632 # Insert the option either (1) after the last *FLAGS variable, or 16633 # (2) before a word containing "conftest.", or (3) at the end. 16634 # Note that $ac_compile itself does not contain backslashes and begins 16635 # with a dollar sign (not a hyphen), so the echo should work correctly. 16636 # The option is referenced via a variable to avoid confusing sed. 16637 lt_compile=`echo "$ac_compile" | $SED \ 16638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16640 -e 's:$: $lt_compiler_flag:'` 16641 (eval echo "\"\$as_me:16641: $lt_compile\"" >&5) 16642 (eval "$lt_compile" 2>conftest.err) 16643 ac_status=$? 16644 cat conftest.err >&5 16645 echo "$as_me:16645: \$? = $ac_status" >&5 16646 if (exit $ac_status) && test -s "$ac_outfile"; then 16647 # The compiler can only warn and ignore the option if not recognized 16648 # So say no if there are warnings other than the usual output. 16649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16652 lt_prog_compiler_pic_works_GCJ=yes 16653 fi 16654 fi 16655 $rm conftest* 16656 16657fi 16658{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16659echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16660 16661if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16662 case $lt_prog_compiler_pic_GCJ in 16663 "" | " "*) ;; 16664 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16665 esac 16666else 16667 lt_prog_compiler_pic_GCJ= 16668 lt_prog_compiler_can_build_shared_GCJ=no 16669fi 16670 16671fi 16672case $host_os in 16673 # For platforms which do not support PIC, -DPIC is meaningless: 16674 *djgpp*) 16675 lt_prog_compiler_pic_GCJ= 16676 ;; 16677 *) 16678 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16679 ;; 16680esac 16681 16682# 16683# Check to make sure the static flag actually works. 16684# 16685wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16686{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16687echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16688if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16689 echo $ECHO_N "(cached) $ECHO_C" >&6 16690else 16691 lt_prog_compiler_static_works_GCJ=no 16692 save_LDFLAGS="$LDFLAGS" 16693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16696 # The linker can only warn and ignore the option if not recognized 16697 # So say no if there are warnings 16698 if test -s conftest.err; then 16699 # Append any errors to the config.log. 16700 cat conftest.err 1>&5 16701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16703 if diff conftest.exp conftest.er2 >/dev/null; then 16704 lt_prog_compiler_static_works_GCJ=yes 16705 fi 16706 else 16707 lt_prog_compiler_static_works_GCJ=yes 16708 fi 16709 fi 16710 $rm conftest* 16711 LDFLAGS="$save_LDFLAGS" 16712 16713fi 16714{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16715echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16716 16717if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16718 : 16719else 16720 lt_prog_compiler_static_GCJ= 16721fi 16722 16723 16724{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16725echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16726if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16727 echo $ECHO_N "(cached) $ECHO_C" >&6 16728else 16729 lt_cv_prog_compiler_c_o_GCJ=no 16730 $rm -r conftest 2>/dev/null 16731 mkdir conftest 16732 cd conftest 16733 mkdir out 16734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16735 16736 lt_compiler_flag="-o out/conftest2.$ac_objext" 16737 # Insert the option either (1) after the last *FLAGS variable, or 16738 # (2) before a word containing "conftest.", or (3) at the end. 16739 # Note that $ac_compile itself does not contain backslashes and begins 16740 # with a dollar sign (not a hyphen), so the echo should work correctly. 16741 lt_compile=`echo "$ac_compile" | $SED \ 16742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16744 -e 's:$: $lt_compiler_flag:'` 16745 (eval echo "\"\$as_me:16745: $lt_compile\"" >&5) 16746 (eval "$lt_compile" 2>out/conftest.err) 16747 ac_status=$? 16748 cat out/conftest.err >&5 16749 echo "$as_me:16749: \$? = $ac_status" >&5 16750 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16751 then 16752 # The compiler can only warn and ignore the option if not recognized 16753 # So say no if there are warnings 16754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16757 lt_cv_prog_compiler_c_o_GCJ=yes 16758 fi 16759 fi 16760 chmod u+w . 2>&5 16761 $rm conftest* 16762 # SGI C++ compiler will create directory out/ii_files/ for 16763 # template instantiation 16764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16765 $rm out/* && rmdir out 16766 cd .. 16767 rmdir conftest 16768 $rm conftest* 16769 16770fi 16771{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16772echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16773 16774 16775hard_links="nottested" 16776if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16777 # do not overwrite the value of need_locks provided by the user 16778 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16779echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16780 hard_links=yes 16781 $rm conftest* 16782 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16783 touch conftest.a 16784 ln conftest.a conftest.b 2>&5 || hard_links=no 16785 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16786 { echo "$as_me:$LINENO: result: $hard_links" >&5 16787echo "${ECHO_T}$hard_links" >&6; } 16788 if test "$hard_links" = no; then 16789 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16790echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16791 need_locks=warn 16792 fi 16793else 16794 need_locks=no 16795fi 16796 16797{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16798echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16799 16800 runpath_var= 16801 allow_undefined_flag_GCJ= 16802 enable_shared_with_static_runtimes_GCJ=no 16803 archive_cmds_GCJ= 16804 archive_expsym_cmds_GCJ= 16805 old_archive_From_new_cmds_GCJ= 16806 old_archive_from_expsyms_cmds_GCJ= 16807 export_dynamic_flag_spec_GCJ= 16808 whole_archive_flag_spec_GCJ= 16809 thread_safe_flag_spec_GCJ= 16810 hardcode_libdir_flag_spec_GCJ= 16811 hardcode_libdir_flag_spec_ld_GCJ= 16812 hardcode_libdir_separator_GCJ= 16813 hardcode_direct_GCJ=no 16814 hardcode_minus_L_GCJ=no 16815 hardcode_shlibpath_var_GCJ=unsupported 16816 link_all_deplibs_GCJ=unknown 16817 hardcode_automatic_GCJ=no 16818 module_cmds_GCJ= 16819 module_expsym_cmds_GCJ= 16820 always_export_symbols_GCJ=no 16821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16822 # include_expsyms should be a list of space-separated symbols to be *always* 16823 # included in the symbol list 16824 include_expsyms_GCJ= 16825 # exclude_expsyms can be an extended regexp of symbols to exclude 16826 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16828 # as well as any symbol that contains `d'. 16829 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16831 # platforms (ab)use it in PIC code, but their linkers get confused if 16832 # the symbol is explicitly referenced. Since portable code cannot 16833 # rely on this symbol name, it's probably fine to never include it in 16834 # preloaded symbol tables. 16835 extract_expsyms_cmds= 16836 # Just being paranoid about ensuring that cc_basename is set. 16837 for cc_temp in $compiler""; do 16838 case $cc_temp in 16839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16841 \-*) ;; 16842 *) break;; 16843 esac 16844done 16845cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16846 16847 case $host_os in 16848 cygwin* | mingw* | pw32*) 16849 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16850 # When not using gcc, we currently assume that we are using 16851 # Microsoft Visual C++. 16852 if test "$GCC" != yes; then 16853 with_gnu_ld=no 16854 fi 16855 ;; 16856 interix*) 16857 # we just hope/assume this is gcc and not c89 (= MSVC++) 16858 with_gnu_ld=yes 16859 ;; 16860 openbsd*) 16861 with_gnu_ld=no 16862 ;; 16863 esac 16864 16865 ld_shlibs_GCJ=yes 16866 if test "$with_gnu_ld" = yes; then 16867 # If archive_cmds runs LD, not CC, wlarc should be empty 16868 wlarc='${wl}' 16869 16870 # Set some defaults for GNU ld with shared library support. These 16871 # are reset later if shared libraries are not supported. Putting them 16872 # here allows them to be overridden if necessary. 16873 runpath_var=LD_RUN_PATH 16874 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16875 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16876 # ancient GNU ld didn't support --whole-archive et. al. 16877 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16878 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16879 else 16880 whole_archive_flag_spec_GCJ= 16881 fi 16882 supports_anon_versioning=no 16883 case `$LD -v 2>/dev/null` in 16884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16887 *\ 2.11.*) ;; # other 2.11 versions 16888 *) supports_anon_versioning=yes ;; 16889 esac 16890 16891 # See if GNU ld supports shared libraries. 16892 case $host_os in 16893 aix3* | aix4* | aix5*) 16894 # On AIX/PPC, the GNU linker is very broken 16895 if test "$host_cpu" != ia64; then 16896 ld_shlibs_GCJ=no 16897 cat <<EOF 1>&2 16898 16899*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16900*** to be unable to reliably create shared libraries on AIX. 16901*** Therefore, libtool is disabling shared libraries support. If you 16902*** really care for shared libraries, you may want to modify your PATH 16903*** so that a non-GNU linker is found, and then restart. 16904 16905EOF 16906 fi 16907 ;; 16908 16909 amigaos*) 16910 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)' 16911 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16912 hardcode_minus_L_GCJ=yes 16913 16914 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16915 # that the semantics of dynamic libraries on AmigaOS, at least up 16916 # to version 4, is to share data among multiple programs linked 16917 # with the same dynamic library. Since this doesn't match the 16918 # behavior of shared libraries on other platforms, we can't use 16919 # them. 16920 ld_shlibs_GCJ=no 16921 ;; 16922 16923 beos*) 16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16925 allow_undefined_flag_GCJ=unsupported 16926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16927 # support --undefined. This deserves some investigation. FIXME 16928 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16929 else 16930 ld_shlibs_GCJ=no 16931 fi 16932 ;; 16933 16934 cygwin* | mingw* | pw32*) 16935 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16936 # as there is no search path for DLLs. 16937 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16938 allow_undefined_flag_GCJ=unsupported 16939 always_export_symbols_GCJ=no 16940 enable_shared_with_static_runtimes_GCJ=yes 16941 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16942 16943 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16945 # If the export-symbols file already is a .def file (1st line 16946 # is EXPORTS), use it as is; otherwise, prepend... 16947 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16948 cp $export_symbols $output_objdir/$soname.def; 16949 else 16950 echo EXPORTS > $output_objdir/$soname.def; 16951 cat $export_symbols >> $output_objdir/$soname.def; 16952 fi~ 16953 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16954 else 16955 ld_shlibs_GCJ=no 16956 fi 16957 ;; 16958 16959 interix[3-9]*) 16960 hardcode_direct_GCJ=no 16961 hardcode_shlibpath_var_GCJ=no 16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16963 export_dynamic_flag_spec_GCJ='${wl}-E' 16964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16965 # Instead, shared libraries are loaded at an image base (0x10000000 by 16966 # default) and relocated if they conflict, which is a slow very memory 16967 # consuming and fragmenting process. To avoid this, we pick a random, 16968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16969 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16970 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' 16971 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' 16972 ;; 16973 16974 gnu* | linux* | k*bsd*-gnu) 16975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16976 tmp_addflag= 16977 case $cc_basename,$host_cpu in 16978 pgcc*) # Portland Group C compiler 16979 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' 16980 tmp_addflag=' $pic_flag' 16981 ;; 16982 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16983 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' 16984 tmp_addflag=' $pic_flag -Mnomain' ;; 16985 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16986 tmp_addflag=' -i_dynamic' ;; 16987 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16988 tmp_addflag=' -i_dynamic -nofor_main' ;; 16989 ifc* | ifort*) # Intel Fortran compiler 16990 tmp_addflag=' -nofor_main' ;; 16991 esac 16992 case `$CC -V 2>&1 | sed 5q` in 16993 *Sun\ C*) # Sun C 5.9 16994 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' 16995 tmp_sharedflag='-G' ;; 16996 *Sun\ F*) # Sun Fortran 8.3 16997 tmp_sharedflag='-G' ;; 16998 *) 16999 tmp_sharedflag='-shared' ;; 17000 esac 17001 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17002 17003 if test $supports_anon_versioning = yes; then 17004 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17006 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17007 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17008 fi 17009 else 17010 ld_shlibs_GCJ=no 17011 fi 17012 ;; 17013 17014 netbsd*) 17015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17016 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17017 wlarc= 17018 else 17019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17020 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17021 fi 17022 ;; 17023 17024 solaris*) 17025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17026 ld_shlibs_GCJ=no 17027 cat <<EOF 1>&2 17028 17029*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17030*** create shared libraries on Solaris systems. Therefore, libtool 17031*** is disabling shared libraries support. We urge you to upgrade GNU 17032*** binutils to release 2.9.1 or newer. Another option is to modify 17033*** your PATH or compiler configuration so that the native linker is 17034*** used, and then restart. 17035 17036EOF 17037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17040 else 17041 ld_shlibs_GCJ=no 17042 fi 17043 ;; 17044 17045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17046 case `$LD -v 2>&1` in 17047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17048 ld_shlibs_GCJ=no 17049 cat <<_LT_EOF 1>&2 17050 17051*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17052*** reliably create shared libraries on SCO systems. Therefore, libtool 17053*** is disabling shared libraries support. We urge you to upgrade GNU 17054*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17055*** your PATH or compiler configuration so that the native linker is 17056*** used, and then restart. 17057 17058_LT_EOF 17059 ;; 17060 *) 17061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17062 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17063 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17064 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17065 else 17066 ld_shlibs_GCJ=no 17067 fi 17068 ;; 17069 esac 17070 ;; 17071 17072 sunos4*) 17073 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17074 wlarc= 17075 hardcode_direct_GCJ=yes 17076 hardcode_shlibpath_var_GCJ=no 17077 ;; 17078 17079 *) 17080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17081 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17082 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17083 else 17084 ld_shlibs_GCJ=no 17085 fi 17086 ;; 17087 esac 17088 17089 if test "$ld_shlibs_GCJ" = no; then 17090 runpath_var= 17091 hardcode_libdir_flag_spec_GCJ= 17092 export_dynamic_flag_spec_GCJ= 17093 whole_archive_flag_spec_GCJ= 17094 fi 17095 else 17096 # PORTME fill in a description of your system's linker (not GNU ld) 17097 case $host_os in 17098 aix3*) 17099 allow_undefined_flag_GCJ=unsupported 17100 always_export_symbols_GCJ=yes 17101 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' 17102 # Note: this linker hardcodes the directories in LIBPATH if there 17103 # are no directories specified by -L. 17104 hardcode_minus_L_GCJ=yes 17105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17106 # Neither direct hardcoding nor static linking is supported with a 17107 # broken collect2. 17108 hardcode_direct_GCJ=unsupported 17109 fi 17110 ;; 17111 17112 aix4* | aix5*) 17113 if test "$host_cpu" = ia64; then 17114 # On IA64, the linker does run time linking by default, so we don't 17115 # have to do anything special. 17116 aix_use_runtimelinking=no 17117 exp_sym_flag='-Bexport' 17118 no_entry_flag="" 17119 else 17120 # If we're using GNU nm, then we don't want the "-C" option. 17121 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17122 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17123 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' 17124 else 17125 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' 17126 fi 17127 aix_use_runtimelinking=no 17128 17129 # Test if we are trying to use run time linking or normal 17130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17131 # need to do runtime linking. 17132 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17133 for ld_flag in $LDFLAGS; do 17134 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17135 aix_use_runtimelinking=yes 17136 break 17137 fi 17138 done 17139 ;; 17140 esac 17141 17142 exp_sym_flag='-bexport' 17143 no_entry_flag='-bnoentry' 17144 fi 17145 17146 # When large executables or shared objects are built, AIX ld can 17147 # have problems creating the table of contents. If linking a library 17148 # or program results in "error TOC overflow" add -mminimal-toc to 17149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17151 17152 archive_cmds_GCJ='' 17153 hardcode_direct_GCJ=yes 17154 hardcode_libdir_separator_GCJ=':' 17155 link_all_deplibs_GCJ=yes 17156 17157 if test "$GCC" = yes; then 17158 case $host_os in aix4.[012]|aix4.[012].*) 17159 # We only want to do this on AIX 4.2 and lower, the check 17160 # below for broken collect2 doesn't work under 4.3+ 17161 collect2name=`${CC} -print-prog-name=collect2` 17162 if test -f "$collect2name" && \ 17163 strings "$collect2name" | grep resolve_lib_name >/dev/null 17164 then 17165 # We have reworked collect2 17166 : 17167 else 17168 # We have old collect2 17169 hardcode_direct_GCJ=unsupported 17170 # It fails to find uninstalled libraries when the uninstalled 17171 # path is not listed in the libpath. Setting hardcode_minus_L 17172 # to unsupported forces relinking 17173 hardcode_minus_L_GCJ=yes 17174 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17175 hardcode_libdir_separator_GCJ= 17176 fi 17177 ;; 17178 esac 17179 shared_flag='-shared' 17180 if test "$aix_use_runtimelinking" = yes; then 17181 shared_flag="$shared_flag "'${wl}-G' 17182 fi 17183 else 17184 # not using gcc 17185 if test "$host_cpu" = ia64; then 17186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17187 # chokes on -Wl,-G. The following line is correct: 17188 shared_flag='-G' 17189 else 17190 if test "$aix_use_runtimelinking" = yes; then 17191 shared_flag='${wl}-G' 17192 else 17193 shared_flag='${wl}-bM:SRE' 17194 fi 17195 fi 17196 fi 17197 17198 # It seems that -bexpall does not export symbols beginning with 17199 # underscore (_), so it is better to generate a list of symbols to export. 17200 always_export_symbols_GCJ=yes 17201 if test "$aix_use_runtimelinking" = yes; then 17202 # Warning - without using the other runtime loading flags (-brtl), 17203 # -berok will link without error, but may produce a broken library. 17204 allow_undefined_flag_GCJ='-berok' 17205 # Determine the default libpath from the value encoded in an empty executable. 17206 cat >conftest.$ac_ext <<_ACEOF 17207/* confdefs.h. */ 17208_ACEOF 17209cat confdefs.h >>conftest.$ac_ext 17210cat >>conftest.$ac_ext <<_ACEOF 17211/* end confdefs.h. */ 17212 17213int 17214main () 17215{ 17216 17217 ; 17218 return 0; 17219} 17220_ACEOF 17221rm -f conftest.$ac_objext conftest$ac_exeext 17222if { (ac_try="$ac_link" 17223case "(($ac_try" in 17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17225 *) ac_try_echo=$ac_try;; 17226esac 17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17228 (eval "$ac_link") 2>conftest.er1 17229 ac_status=$? 17230 grep -v '^ *+' conftest.er1 >conftest.err 17231 rm -f conftest.er1 17232 cat conftest.err >&5 17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17234 (exit $ac_status); } && { 17235 test -z "$ac_c_werror_flag" || 17236 test ! -s conftest.err 17237 } && test -s conftest$ac_exeext && 17238 $as_test_x conftest$ac_exeext; then 17239 17240lt_aix_libpath_sed=' 17241 /Import File Strings/,/^$/ { 17242 /^0/ { 17243 s/^0 *\(.*\)$/\1/ 17244 p 17245 } 17246 }' 17247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17248# Check for a 64-bit object if we didn't find anything. 17249if test -z "$aix_libpath"; then 17250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17251fi 17252else 17253 echo "$as_me: failed program was:" >&5 17254sed 's/^/| /' conftest.$ac_ext >&5 17255 17256 17257fi 17258 17259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17260 conftest$ac_exeext conftest.$ac_ext 17261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17262 17263 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17264 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" 17265 else 17266 if test "$host_cpu" = ia64; then 17267 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17268 allow_undefined_flag_GCJ="-z nodefs" 17269 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" 17270 else 17271 # Determine the default libpath from the value encoded in an empty executable. 17272 cat >conftest.$ac_ext <<_ACEOF 17273/* confdefs.h. */ 17274_ACEOF 17275cat confdefs.h >>conftest.$ac_ext 17276cat >>conftest.$ac_ext <<_ACEOF 17277/* end confdefs.h. */ 17278 17279int 17280main () 17281{ 17282 17283 ; 17284 return 0; 17285} 17286_ACEOF 17287rm -f conftest.$ac_objext conftest$ac_exeext 17288if { (ac_try="$ac_link" 17289case "(($ac_try" in 17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17291 *) ac_try_echo=$ac_try;; 17292esac 17293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17294 (eval "$ac_link") 2>conftest.er1 17295 ac_status=$? 17296 grep -v '^ *+' conftest.er1 >conftest.err 17297 rm -f conftest.er1 17298 cat conftest.err >&5 17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17300 (exit $ac_status); } && { 17301 test -z "$ac_c_werror_flag" || 17302 test ! -s conftest.err 17303 } && test -s conftest$ac_exeext && 17304 $as_test_x conftest$ac_exeext; then 17305 17306lt_aix_libpath_sed=' 17307 /Import File Strings/,/^$/ { 17308 /^0/ { 17309 s/^0 *\(.*\)$/\1/ 17310 p 17311 } 17312 }' 17313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17314# Check for a 64-bit object if we didn't find anything. 17315if test -z "$aix_libpath"; then 17316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17317fi 17318else 17319 echo "$as_me: failed program was:" >&5 17320sed 's/^/| /' conftest.$ac_ext >&5 17321 17322 17323fi 17324 17325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17326 conftest$ac_exeext conftest.$ac_ext 17327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17328 17329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17330 # Warning - without using the other run time loading flags, 17331 # -berok will link without error, but may produce a broken library. 17332 no_undefined_flag_GCJ=' ${wl}-bernotok' 17333 allow_undefined_flag_GCJ=' ${wl}-berok' 17334 # Exported symbols can be pulled into shared objects from archives 17335 whole_archive_flag_spec_GCJ='$convenience' 17336 archive_cmds_need_lc_GCJ=yes 17337 # This is similar to how AIX traditionally builds its shared libraries. 17338 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' 17339 fi 17340 fi 17341 ;; 17342 17343 amigaos*) 17344 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)' 17345 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17346 hardcode_minus_L_GCJ=yes 17347 # see comment about different semantics on the GNU ld section 17348 ld_shlibs_GCJ=no 17349 ;; 17350 17351 bsdi[45]*) 17352 export_dynamic_flag_spec_GCJ=-rdynamic 17353 ;; 17354 17355 cygwin* | mingw* | pw32*) 17356 # When not using gcc, we currently assume that we are using 17357 # Microsoft Visual C++. 17358 # hardcode_libdir_flag_spec is actually meaningless, as there is 17359 # no search path for DLLs. 17360 hardcode_libdir_flag_spec_GCJ=' ' 17361 allow_undefined_flag_GCJ=unsupported 17362 # Tell ltmain to make .lib files, not .a files. 17363 libext=lib 17364 # Tell ltmain to make .dll files, not .so files. 17365 shrext_cmds=".dll" 17366 # FIXME: Setting linknames here is a bad hack. 17367 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17368 # The linker will automatically build a .lib file if we build a DLL. 17369 old_archive_From_new_cmds_GCJ='true' 17370 # FIXME: Should let the user specify the lib program. 17371 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17372 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17373 enable_shared_with_static_runtimes_GCJ=yes 17374 ;; 17375 17376 darwin* | rhapsody*) 17377 case $host_os in 17378 rhapsody* | darwin1.[012]) 17379 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17380 ;; 17381 *) # Darwin 1.3 on 17382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17383 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17384 else 17385 case ${MACOSX_DEPLOYMENT_TARGET} in 17386 10.[012]) 17387 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17388 ;; 17389 10.*) 17390 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17391 ;; 17392 esac 17393 fi 17394 ;; 17395 esac 17396 archive_cmds_need_lc_GCJ=no 17397 hardcode_direct_GCJ=no 17398 hardcode_automatic_GCJ=yes 17399 hardcode_shlibpath_var_GCJ=unsupported 17400 whole_archive_flag_spec_GCJ='' 17401 link_all_deplibs_GCJ=yes 17402 if test "$GCC" = yes ; then 17403 output_verbose_link_cmd='echo' 17404 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17405 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17407 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}' 17408 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}' 17409 else 17410 case $cc_basename in 17411 xlc*) 17412 output_verbose_link_cmd='echo' 17413 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17414 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17416 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17417 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}' 17418 ;; 17419 *) 17420 ld_shlibs_GCJ=no 17421 ;; 17422 esac 17423 fi 17424 ;; 17425 17426 dgux*) 17427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17428 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17429 hardcode_shlibpath_var_GCJ=no 17430 ;; 17431 17432 freebsd1*) 17433 ld_shlibs_GCJ=no 17434 ;; 17435 17436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17437 # support. Future versions do this automatically, but an explicit c++rt0.o 17438 # does not break anything, and helps significantly (at the cost of a little 17439 # extra space). 17440 freebsd2.2*) 17441 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17442 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17443 hardcode_direct_GCJ=yes 17444 hardcode_shlibpath_var_GCJ=no 17445 ;; 17446 17447 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17448 freebsd2*) 17449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17450 hardcode_direct_GCJ=yes 17451 hardcode_minus_L_GCJ=yes 17452 hardcode_shlibpath_var_GCJ=no 17453 ;; 17454 17455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17456 freebsd* | dragonfly*) 17457 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17458 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17459 hardcode_direct_GCJ=yes 17460 hardcode_shlibpath_var_GCJ=no 17461 ;; 17462 17463 hpux9*) 17464 if test "$GCC" = yes; then 17465 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' 17466 else 17467 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' 17468 fi 17469 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17470 hardcode_libdir_separator_GCJ=: 17471 hardcode_direct_GCJ=yes 17472 17473 # hardcode_minus_L: Not really in the search PATH, 17474 # but as the default location of the library. 17475 hardcode_minus_L_GCJ=yes 17476 export_dynamic_flag_spec_GCJ='${wl}-E' 17477 ;; 17478 17479 hpux10*) 17480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17481 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17482 else 17483 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17484 fi 17485 if test "$with_gnu_ld" = no; then 17486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17487 hardcode_libdir_separator_GCJ=: 17488 17489 hardcode_direct_GCJ=yes 17490 export_dynamic_flag_spec_GCJ='${wl}-E' 17491 17492 # hardcode_minus_L: Not really in the search PATH, 17493 # but as the default location of the library. 17494 hardcode_minus_L_GCJ=yes 17495 fi 17496 ;; 17497 17498 hpux11*) 17499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17500 case $host_cpu in 17501 hppa*64*) 17502 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17503 ;; 17504 ia64*) 17505 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17506 ;; 17507 *) 17508 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17509 ;; 17510 esac 17511 else 17512 case $host_cpu in 17513 hppa*64*) 17514 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17515 ;; 17516 ia64*) 17517 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17518 ;; 17519 *) 17520 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17521 ;; 17522 esac 17523 fi 17524 if test "$with_gnu_ld" = no; then 17525 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17526 hardcode_libdir_separator_GCJ=: 17527 17528 case $host_cpu in 17529 hppa*64*|ia64*) 17530 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17531 hardcode_direct_GCJ=no 17532 hardcode_shlibpath_var_GCJ=no 17533 ;; 17534 *) 17535 hardcode_direct_GCJ=yes 17536 export_dynamic_flag_spec_GCJ='${wl}-E' 17537 17538 # hardcode_minus_L: Not really in the search PATH, 17539 # but as the default location of the library. 17540 hardcode_minus_L_GCJ=yes 17541 ;; 17542 esac 17543 fi 17544 ;; 17545 17546 irix5* | irix6* | nonstopux*) 17547 if test "$GCC" = yes; then 17548 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' 17549 else 17550 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' 17551 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17552 fi 17553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17554 hardcode_libdir_separator_GCJ=: 17555 link_all_deplibs_GCJ=yes 17556 ;; 17557 17558 netbsd*) 17559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17561 else 17562 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17563 fi 17564 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17565 hardcode_direct_GCJ=yes 17566 hardcode_shlibpath_var_GCJ=no 17567 ;; 17568 17569 newsos6) 17570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17571 hardcode_direct_GCJ=yes 17572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17573 hardcode_libdir_separator_GCJ=: 17574 hardcode_shlibpath_var_GCJ=no 17575 ;; 17576 17577 openbsd*) 17578 if test -f /usr/libexec/ld.so; then 17579 hardcode_direct_GCJ=yes 17580 hardcode_shlibpath_var_GCJ=no 17581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17582 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17583 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17584 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17585 export_dynamic_flag_spec_GCJ='${wl}-E' 17586 else 17587 case $host_os in 17588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17590 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17591 ;; 17592 *) 17593 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17594 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17595 ;; 17596 esac 17597 fi 17598 else 17599 ld_shlibs_GCJ=no 17600 fi 17601 ;; 17602 17603 os2*) 17604 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17605 hardcode_minus_L_GCJ=yes 17606 allow_undefined_flag_GCJ=unsupported 17607 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' 17608 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17609 ;; 17610 17611 osf3*) 17612 if test "$GCC" = yes; then 17613 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17614 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' 17615 else 17616 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17617 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' 17618 fi 17619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17620 hardcode_libdir_separator_GCJ=: 17621 ;; 17622 17623 osf4* | osf5*) # as osf3* with the addition of -msym flag 17624 if test "$GCC" = yes; then 17625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17626 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' 17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17628 else 17629 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17630 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' 17631 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~ 17632 $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' 17633 17634 # Both c and cxx compiler support -rpath directly 17635 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17636 fi 17637 hardcode_libdir_separator_GCJ=: 17638 ;; 17639 17640 solaris*) 17641 no_undefined_flag_GCJ=' -z text' 17642 if test "$GCC" = yes; then 17643 wlarc='${wl}' 17644 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17645 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17646 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17647 else 17648 wlarc='' 17649 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17650 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17652 fi 17653 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17654 hardcode_shlibpath_var_GCJ=no 17655 case $host_os in 17656 solaris2.[0-5] | solaris2.[0-5].*) ;; 17657 *) 17658 # The compiler driver will combine and reorder linker options, 17659 # but understands `-z linker_flag'. GCC discards it without `$wl', 17660 # but is careful enough not to reorder. 17661 # Supported since Solaris 2.6 (maybe 2.5.1?) 17662 if test "$GCC" = yes; then 17663 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17664 else 17665 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17666 fi 17667 ;; 17668 esac 17669 link_all_deplibs_GCJ=yes 17670 ;; 17671 17672 sunos4*) 17673 if test "x$host_vendor" = xsequent; then 17674 # Use $CC to link under sequent, because it throws in some extra .o 17675 # files that make .init and .fini sections work. 17676 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17677 else 17678 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17679 fi 17680 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17681 hardcode_direct_GCJ=yes 17682 hardcode_minus_L_GCJ=yes 17683 hardcode_shlibpath_var_GCJ=no 17684 ;; 17685 17686 sysv4) 17687 case $host_vendor in 17688 sni) 17689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17690 hardcode_direct_GCJ=yes # is this really true??? 17691 ;; 17692 siemens) 17693 ## LD is ld it makes a PLAMLIB 17694 ## CC just makes a GrossModule. 17695 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17696 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17697 hardcode_direct_GCJ=no 17698 ;; 17699 motorola) 17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17701 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17702 ;; 17703 esac 17704 runpath_var='LD_RUN_PATH' 17705 hardcode_shlibpath_var_GCJ=no 17706 ;; 17707 17708 sysv4.3*) 17709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17710 hardcode_shlibpath_var_GCJ=no 17711 export_dynamic_flag_spec_GCJ='-Bexport' 17712 ;; 17713 17714 sysv4*MP*) 17715 if test -d /usr/nec; then 17716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17717 hardcode_shlibpath_var_GCJ=no 17718 runpath_var=LD_RUN_PATH 17719 hardcode_runpath_var=yes 17720 ld_shlibs_GCJ=yes 17721 fi 17722 ;; 17723 17724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17725 no_undefined_flag_GCJ='${wl}-z,text' 17726 archive_cmds_need_lc_GCJ=no 17727 hardcode_shlibpath_var_GCJ=no 17728 runpath_var='LD_RUN_PATH' 17729 17730 if test "$GCC" = yes; then 17731 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17732 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17733 else 17734 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17735 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17736 fi 17737 ;; 17738 17739 sysv5* | sco3.2v5* | sco5v6*) 17740 # Note: We can NOT use -z defs as we might desire, because we do not 17741 # link with -lc, and that would cause any symbols used from libc to 17742 # always be unresolved, which means just about no library would 17743 # ever link correctly. If we're not using GNU ld we use -z text 17744 # though, which does catch some bad symbols but isn't as heavy-handed 17745 # as -z defs. 17746 no_undefined_flag_GCJ='${wl}-z,text' 17747 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17748 archive_cmds_need_lc_GCJ=no 17749 hardcode_shlibpath_var_GCJ=no 17750 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17751 hardcode_libdir_separator_GCJ=':' 17752 link_all_deplibs_GCJ=yes 17753 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17754 runpath_var='LD_RUN_PATH' 17755 17756 if test "$GCC" = yes; then 17757 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17758 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17759 else 17760 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17761 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17762 fi 17763 ;; 17764 17765 uts4*) 17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17767 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17768 hardcode_shlibpath_var_GCJ=no 17769 ;; 17770 17771 *) 17772 ld_shlibs_GCJ=no 17773 ;; 17774 esac 17775 fi 17776 17777{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17778echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17779test "$ld_shlibs_GCJ" = no && can_build_shared=no 17780 17781# 17782# Do we need to explicitly link libc? 17783# 17784case "x$archive_cmds_need_lc_GCJ" in 17785x|xyes) 17786 # Assume -lc should be added 17787 archive_cmds_need_lc_GCJ=yes 17788 17789 if test "$enable_shared" = yes && test "$GCC" = yes; then 17790 case $archive_cmds_GCJ in 17791 *'~'*) 17792 # FIXME: we may have to deal with multi-command sequences. 17793 ;; 17794 '$CC '*) 17795 # Test whether the compiler implicitly links with -lc since on some 17796 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17797 # to ld, don't add -lc before -lgcc. 17798 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17799echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17800 $rm conftest* 17801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17802 17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17804 (eval $ac_compile) 2>&5 17805 ac_status=$? 17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17807 (exit $ac_status); } 2>conftest.err; then 17808 soname=conftest 17809 lib=conftest 17810 libobjs=conftest.$ac_objext 17811 deplibs= 17812 wl=$lt_prog_compiler_wl_GCJ 17813 pic_flag=$lt_prog_compiler_pic_GCJ 17814 compiler_flags=-v 17815 linker_flags=-v 17816 verstring= 17817 output_objdir=. 17818 libname=conftest 17819 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17820 allow_undefined_flag_GCJ= 17821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17822 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17823 ac_status=$? 17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17825 (exit $ac_status); } 17826 then 17827 archive_cmds_need_lc_GCJ=no 17828 else 17829 archive_cmds_need_lc_GCJ=yes 17830 fi 17831 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17832 else 17833 cat conftest.err 1>&5 17834 fi 17835 $rm conftest* 17836 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17837echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17838 ;; 17839 esac 17840 fi 17841 ;; 17842esac 17843 17844{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17845echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17846library_names_spec= 17847libname_spec='lib$name' 17848soname_spec= 17849shrext_cmds=".so" 17850postinstall_cmds= 17851postuninstall_cmds= 17852finish_cmds= 17853finish_eval= 17854shlibpath_var= 17855shlibpath_overrides_runpath=unknown 17856version_type=none 17857dynamic_linker="$host_os ld.so" 17858sys_lib_dlsearch_path_spec="/lib /usr/lib" 17859 17860need_lib_prefix=unknown 17861hardcode_into_libs=no 17862 17863# when you set need_version to no, make sure it does not cause -set_version 17864# flags to be left without arguments 17865need_version=unknown 17866 17867case $host_os in 17868aix3*) 17869 version_type=linux 17870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17871 shlibpath_var=LIBPATH 17872 17873 # AIX 3 has no versioning support, so we append a major version to the name. 17874 soname_spec='${libname}${release}${shared_ext}$major' 17875 ;; 17876 17877aix4* | aix5*) 17878 version_type=linux 17879 need_lib_prefix=no 17880 need_version=no 17881 hardcode_into_libs=yes 17882 if test "$host_cpu" = ia64; then 17883 # AIX 5 supports IA64 17884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17885 shlibpath_var=LD_LIBRARY_PATH 17886 else 17887 # With GCC up to 2.95.x, collect2 would create an import file 17888 # for dependence libraries. The import file would start with 17889 # the line `#! .'. This would cause the generated library to 17890 # depend on `.', always an invalid library. This was fixed in 17891 # development snapshots of GCC prior to 3.0. 17892 case $host_os in 17893 aix4 | aix4.[01] | aix4.[01].*) 17894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17895 echo ' yes ' 17896 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17897 : 17898 else 17899 can_build_shared=no 17900 fi 17901 ;; 17902 esac 17903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17904 # soname into executable. Probably we can add versioning support to 17905 # collect2, so additional links can be useful in future. 17906 if test "$aix_use_runtimelinking" = yes; then 17907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17908 # instead of lib<name>.a to let people know that these are not 17909 # typical AIX shared libraries. 17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17911 else 17912 # We preserve .a as extension for shared libraries through AIX4.2 17913 # and later when we are not doing run time linking. 17914 library_names_spec='${libname}${release}.a $libname.a' 17915 soname_spec='${libname}${release}${shared_ext}$major' 17916 fi 17917 shlibpath_var=LIBPATH 17918 fi 17919 ;; 17920 17921amigaos*) 17922 library_names_spec='$libname.ixlibrary $libname.a' 17923 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17924 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' 17925 ;; 17926 17927beos*) 17928 library_names_spec='${libname}${shared_ext}' 17929 dynamic_linker="$host_os ld.so" 17930 shlibpath_var=LIBRARY_PATH 17931 ;; 17932 17933bsdi[45]*) 17934 version_type=linux 17935 need_version=no 17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17937 soname_spec='${libname}${release}${shared_ext}$major' 17938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17939 shlibpath_var=LD_LIBRARY_PATH 17940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17942 # the default ld.so.conf also contains /usr/contrib/lib and 17943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17944 # libtool to hard-code these into programs 17945 ;; 17946 17947cygwin* | mingw* | pw32*) 17948 version_type=windows 17949 shrext_cmds=".dll" 17950 need_version=no 17951 need_lib_prefix=no 17952 17953 case $GCC,$host_os in 17954 yes,cygwin* | yes,mingw* | yes,pw32*) 17955 library_names_spec='$libname.dll.a' 17956 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17957 postinstall_cmds='base_file=`basename \${file}`~ 17958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17959 dldir=$destdir/`dirname \$dlpath`~ 17960 test -d \$dldir || mkdir -p \$dldir~ 17961 $install_prog $dir/$dlname \$dldir/$dlname~ 17962 chmod a+x \$dldir/$dlname' 17963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17964 dlpath=$dir/\$dldll~ 17965 $rm \$dlpath' 17966 shlibpath_overrides_runpath=yes 17967 17968 case $host_os in 17969 cygwin*) 17970 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17972 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17973 ;; 17974 mingw*) 17975 # MinGW DLLs use traditional 'lib' prefix 17976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17978 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17979 # It is most probably a Windows format PATH printed by 17980 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17981 # path with ; separators, and with drive letters. We can handle the 17982 # drive letters (cygwin fileutils understands them), so leave them, 17983 # especially as we might pass files found there to a mingw objdump, 17984 # which wouldn't understand a cygwinified path. Ahh. 17985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17986 else 17987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17988 fi 17989 ;; 17990 pw32*) 17991 # pw32 DLLs use 'pw' prefix rather than 'lib' 17992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17993 ;; 17994 esac 17995 ;; 17996 17997 *) 17998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17999 ;; 18000 esac 18001 dynamic_linker='Win32 ld.exe' 18002 # FIXME: first we should search . and the directory the executable is in 18003 shlibpath_var=PATH 18004 ;; 18005 18006darwin* | rhapsody*) 18007 dynamic_linker="$host_os dyld" 18008 version_type=darwin 18009 need_lib_prefix=no 18010 need_version=no 18011 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18012 soname_spec='${libname}${release}${major}$shared_ext' 18013 shlibpath_overrides_runpath=yes 18014 shlibpath_var=DYLD_LIBRARY_PATH 18015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18016 18017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18018 ;; 18019 18020dgux*) 18021 version_type=linux 18022 need_lib_prefix=no 18023 need_version=no 18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18025 soname_spec='${libname}${release}${shared_ext}$major' 18026 shlibpath_var=LD_LIBRARY_PATH 18027 ;; 18028 18029freebsd1*) 18030 dynamic_linker=no 18031 ;; 18032 18033freebsd* | dragonfly*) 18034 # DragonFly does not have aout. When/if they implement a new 18035 # versioning mechanism, adjust this. 18036 if test -x /usr/bin/objformat; then 18037 objformat=`/usr/bin/objformat` 18038 else 18039 case $host_os in 18040 freebsd[123]*) objformat=aout ;; 18041 *) objformat=elf ;; 18042 esac 18043 fi 18044 # Handle Gentoo/FreeBSD as it was Linux 18045 case $host_vendor in 18046 gentoo) 18047 version_type=linux ;; 18048 *) 18049 version_type=freebsd-$objformat ;; 18050 esac 18051 18052 case $version_type in 18053 freebsd-elf*) 18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18055 need_version=no 18056 need_lib_prefix=no 18057 ;; 18058 freebsd-*) 18059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18060 need_version=yes 18061 ;; 18062 linux) 18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18064 soname_spec='${libname}${release}${shared_ext}$major' 18065 need_lib_prefix=no 18066 need_version=no 18067 ;; 18068 esac 18069 shlibpath_var=LD_LIBRARY_PATH 18070 case $host_os in 18071 freebsd2*) 18072 shlibpath_overrides_runpath=yes 18073 ;; 18074 freebsd3.[01]* | freebsdelf3.[01]*) 18075 shlibpath_overrides_runpath=yes 18076 hardcode_into_libs=yes 18077 ;; 18078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18080 shlibpath_overrides_runpath=no 18081 hardcode_into_libs=yes 18082 ;; 18083 *) # from 4.6 on, and DragonFly 18084 shlibpath_overrides_runpath=yes 18085 hardcode_into_libs=yes 18086 ;; 18087 esac 18088 ;; 18089 18090gnu*) 18091 version_type=linux 18092 need_lib_prefix=no 18093 need_version=no 18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18095 soname_spec='${libname}${release}${shared_ext}$major' 18096 shlibpath_var=LD_LIBRARY_PATH 18097 hardcode_into_libs=yes 18098 ;; 18099 18100hpux9* | hpux10* | hpux11*) 18101 # Give a soname corresponding to the major version so that dld.sl refuses to 18102 # link against other versions. 18103 version_type=sunos 18104 need_lib_prefix=no 18105 need_version=no 18106 case $host_cpu in 18107 ia64*) 18108 shrext_cmds='.so' 18109 hardcode_into_libs=yes 18110 dynamic_linker="$host_os dld.so" 18111 shlibpath_var=LD_LIBRARY_PATH 18112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 18116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18117 else 18118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18119 fi 18120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18121 ;; 18122 hppa*64*) 18123 shrext_cmds='.sl' 18124 hardcode_into_libs=yes 18125 dynamic_linker="$host_os dld.sl" 18126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18129 soname_spec='${libname}${release}${shared_ext}$major' 18130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18132 ;; 18133 *) 18134 shrext_cmds='.sl' 18135 dynamic_linker="$host_os dld.sl" 18136 shlibpath_var=SHLIB_PATH 18137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18139 soname_spec='${libname}${release}${shared_ext}$major' 18140 ;; 18141 esac 18142 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18143 postinstall_cmds='chmod 555 $lib' 18144 ;; 18145 18146interix[3-9]*) 18147 version_type=linux 18148 need_lib_prefix=no 18149 need_version=no 18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18151 soname_spec='${libname}${release}${shared_ext}$major' 18152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18153 shlibpath_var=LD_LIBRARY_PATH 18154 shlibpath_overrides_runpath=no 18155 hardcode_into_libs=yes 18156 ;; 18157 18158irix5* | irix6* | nonstopux*) 18159 case $host_os in 18160 nonstopux*) version_type=nonstopux ;; 18161 *) 18162 if test "$lt_cv_prog_gnu_ld" = yes; then 18163 version_type=linux 18164 else 18165 version_type=irix 18166 fi ;; 18167 esac 18168 need_lib_prefix=no 18169 need_version=no 18170 soname_spec='${libname}${release}${shared_ext}$major' 18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18172 case $host_os in 18173 irix5* | nonstopux*) 18174 libsuff= shlibsuff= 18175 ;; 18176 *) 18177 case $LD in # libtool.m4 will add one of these switches to LD 18178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18179 libsuff= shlibsuff= libmagic=32-bit;; 18180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18181 libsuff=32 shlibsuff=N32 libmagic=N32;; 18182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18183 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18184 *) libsuff= shlibsuff= libmagic=never-match;; 18185 esac 18186 ;; 18187 esac 18188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18189 shlibpath_overrides_runpath=no 18190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18192 hardcode_into_libs=yes 18193 ;; 18194 18195# No shared lib support for Linux oldld, aout, or coff. 18196linux*oldld* | linux*aout* | linux*coff*) 18197 dynamic_linker=no 18198 ;; 18199 18200# This must be Linux ELF. 18201linux* | k*bsd*-gnu) 18202 version_type=linux 18203 need_lib_prefix=no 18204 need_version=no 18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18206 soname_spec='${libname}${release}${shared_ext}$major' 18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18208 shlibpath_var=LD_LIBRARY_PATH 18209 shlibpath_overrides_runpath=no 18210 # This implies no fast_install, which is unacceptable. 18211 # Some rework will be needed to allow for fast_install 18212 # before this can be enabled. 18213 hardcode_into_libs=yes 18214 18215 # Append ld.so.conf contents to the search path 18216 if test -f /etc/ld.so.conf; then 18217 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18219 fi 18220 18221 # We used to test for /lib/ld.so.1 and disable shared libraries on 18222 # powerpc, because MkLinux only supported shared libraries with the 18223 # GNU dynamic linker. Since this was broken with cross compilers, 18224 # most powerpc-linux boxes support dynamic linking these days and 18225 # people can always --disable-shared, the test was removed, and we 18226 # assume the GNU/Linux dynamic linker is in use. 18227 dynamic_linker='GNU/Linux ld.so' 18228 ;; 18229 18230netbsd*) 18231 version_type=sunos 18232 need_lib_prefix=no 18233 need_version=no 18234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18237 dynamic_linker='NetBSD (a.out) ld.so' 18238 else 18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18240 soname_spec='${libname}${release}${shared_ext}$major' 18241 dynamic_linker='NetBSD ld.elf_so' 18242 fi 18243 shlibpath_var=LD_LIBRARY_PATH 18244 shlibpath_overrides_runpath=yes 18245 hardcode_into_libs=yes 18246 ;; 18247 18248newsos6) 18249 version_type=linux 18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18251 shlibpath_var=LD_LIBRARY_PATH 18252 shlibpath_overrides_runpath=yes 18253 ;; 18254 18255nto-qnx*) 18256 version_type=linux 18257 need_lib_prefix=no 18258 need_version=no 18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18260 soname_spec='${libname}${release}${shared_ext}$major' 18261 shlibpath_var=LD_LIBRARY_PATH 18262 shlibpath_overrides_runpath=yes 18263 ;; 18264 18265openbsd*) 18266 version_type=sunos 18267 sys_lib_dlsearch_path_spec="/usr/lib" 18268 need_lib_prefix=no 18269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18270 case $host_os in 18271 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18272 *) need_version=no ;; 18273 esac 18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18276 shlibpath_var=LD_LIBRARY_PATH 18277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18278 case $host_os in 18279 openbsd2.[89] | openbsd2.[89].*) 18280 shlibpath_overrides_runpath=no 18281 ;; 18282 *) 18283 shlibpath_overrides_runpath=yes 18284 ;; 18285 esac 18286 else 18287 shlibpath_overrides_runpath=yes 18288 fi 18289 ;; 18290 18291os2*) 18292 libname_spec='$name' 18293 shrext_cmds=".dll" 18294 need_lib_prefix=no 18295 library_names_spec='$libname${shared_ext} $libname.a' 18296 dynamic_linker='OS/2 ld.exe' 18297 shlibpath_var=LIBPATH 18298 ;; 18299 18300osf3* | osf4* | osf5*) 18301 version_type=osf 18302 need_lib_prefix=no 18303 need_version=no 18304 soname_spec='${libname}${release}${shared_ext}$major' 18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18306 shlibpath_var=LD_LIBRARY_PATH 18307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18309 ;; 18310 18311rdos*) 18312 dynamic_linker=no 18313 ;; 18314 18315solaris*) 18316 version_type=linux 18317 need_lib_prefix=no 18318 need_version=no 18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18320 soname_spec='${libname}${release}${shared_ext}$major' 18321 shlibpath_var=LD_LIBRARY_PATH 18322 shlibpath_overrides_runpath=yes 18323 hardcode_into_libs=yes 18324 # ldd complains unless libraries are executable 18325 postinstall_cmds='chmod +x $lib' 18326 ;; 18327 18328sunos4*) 18329 version_type=sunos 18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18332 shlibpath_var=LD_LIBRARY_PATH 18333 shlibpath_overrides_runpath=yes 18334 if test "$with_gnu_ld" = yes; then 18335 need_lib_prefix=no 18336 fi 18337 need_version=yes 18338 ;; 18339 18340sysv4 | sysv4.3*) 18341 version_type=linux 18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18343 soname_spec='${libname}${release}${shared_ext}$major' 18344 shlibpath_var=LD_LIBRARY_PATH 18345 case $host_vendor in 18346 sni) 18347 shlibpath_overrides_runpath=no 18348 need_lib_prefix=no 18349 export_dynamic_flag_spec='${wl}-Blargedynsym' 18350 runpath_var=LD_RUN_PATH 18351 ;; 18352 siemens) 18353 need_lib_prefix=no 18354 ;; 18355 motorola) 18356 need_lib_prefix=no 18357 need_version=no 18358 shlibpath_overrides_runpath=no 18359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18360 ;; 18361 esac 18362 ;; 18363 18364sysv4*MP*) 18365 if test -d /usr/nec ;then 18366 version_type=linux 18367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18368 soname_spec='$libname${shared_ext}.$major' 18369 shlibpath_var=LD_LIBRARY_PATH 18370 fi 18371 ;; 18372 18373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18374 version_type=freebsd-elf 18375 need_lib_prefix=no 18376 need_version=no 18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18378 soname_spec='${libname}${release}${shared_ext}$major' 18379 shlibpath_var=LD_LIBRARY_PATH 18380 hardcode_into_libs=yes 18381 if test "$with_gnu_ld" = yes; then 18382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18383 shlibpath_overrides_runpath=no 18384 else 18385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18386 shlibpath_overrides_runpath=yes 18387 case $host_os in 18388 sco3.2v5*) 18389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18390 ;; 18391 esac 18392 fi 18393 sys_lib_dlsearch_path_spec='/usr/lib' 18394 ;; 18395 18396uts4*) 18397 version_type=linux 18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18399 soname_spec='${libname}${release}${shared_ext}$major' 18400 shlibpath_var=LD_LIBRARY_PATH 18401 ;; 18402 18403*) 18404 dynamic_linker=no 18405 ;; 18406esac 18407{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18408echo "${ECHO_T}$dynamic_linker" >&6; } 18409test "$dynamic_linker" = no && can_build_shared=no 18410 18411variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18412if test "$GCC" = yes; then 18413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18414fi 18415 18416{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18417echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18418hardcode_action_GCJ= 18419if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18420 test -n "$runpath_var_GCJ" || \ 18421 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18422 18423 # We can hardcode non-existant directories. 18424 if test "$hardcode_direct_GCJ" != no && 18425 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18426 # have to relink, otherwise we might link with an installed library 18427 # when we should be linking with a yet-to-be-installed one 18428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18429 test "$hardcode_minus_L_GCJ" != no; then 18430 # Linking always hardcodes the temporary library directory. 18431 hardcode_action_GCJ=relink 18432 else 18433 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18434 hardcode_action_GCJ=immediate 18435 fi 18436else 18437 # We cannot hardcode anything, or else we can only hardcode existing 18438 # directories. 18439 hardcode_action_GCJ=unsupported 18440fi 18441{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18442echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18443 18444if test "$hardcode_action_GCJ" = relink; then 18445 # Fast installation is not supported 18446 enable_fast_install=no 18447elif test "$shlibpath_overrides_runpath" = yes || 18448 test "$enable_shared" = no; then 18449 # Fast installation is not necessary 18450 enable_fast_install=needless 18451fi 18452 18453 18454# The else clause should only fire when bootstrapping the 18455# libtool distribution, otherwise you forgot to ship ltmain.sh 18456# with your package, and you will get complaints that there are 18457# no rules to generate ltmain.sh. 18458if test -f "$ltmain"; then 18459 # See if we are running on zsh, and set the options which allow our commands through 18460 # without removal of \ escapes. 18461 if test -n "${ZSH_VERSION+set}" ; then 18462 setopt NO_GLOB_SUBST 18463 fi 18464 # Now quote all the things that may contain metacharacters while being 18465 # careful not to overquote the AC_SUBSTed values. We take copies of the 18466 # variables and quote the copies for generation of the libtool script. 18467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18468 SED SHELL STRIP \ 18469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18471 deplibs_check_method reload_flag reload_cmds need_locks \ 18472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18473 lt_cv_sys_global_symbol_to_c_name_address \ 18474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18475 old_postinstall_cmds old_postuninstall_cmds \ 18476 compiler_GCJ \ 18477 CC_GCJ \ 18478 LD_GCJ \ 18479 lt_prog_compiler_wl_GCJ \ 18480 lt_prog_compiler_pic_GCJ \ 18481 lt_prog_compiler_static_GCJ \ 18482 lt_prog_compiler_no_builtin_flag_GCJ \ 18483 export_dynamic_flag_spec_GCJ \ 18484 thread_safe_flag_spec_GCJ \ 18485 whole_archive_flag_spec_GCJ \ 18486 enable_shared_with_static_runtimes_GCJ \ 18487 old_archive_cmds_GCJ \ 18488 old_archive_from_new_cmds_GCJ \ 18489 predep_objects_GCJ \ 18490 postdep_objects_GCJ \ 18491 predeps_GCJ \ 18492 postdeps_GCJ \ 18493 compiler_lib_search_path_GCJ \ 18494 archive_cmds_GCJ \ 18495 archive_expsym_cmds_GCJ \ 18496 postinstall_cmds_GCJ \ 18497 postuninstall_cmds_GCJ \ 18498 old_archive_from_expsyms_cmds_GCJ \ 18499 allow_undefined_flag_GCJ \ 18500 no_undefined_flag_GCJ \ 18501 export_symbols_cmds_GCJ \ 18502 hardcode_libdir_flag_spec_GCJ \ 18503 hardcode_libdir_flag_spec_ld_GCJ \ 18504 hardcode_libdir_separator_GCJ \ 18505 hardcode_automatic_GCJ \ 18506 module_cmds_GCJ \ 18507 module_expsym_cmds_GCJ \ 18508 lt_cv_prog_compiler_c_o_GCJ \ 18509 fix_srcfile_path_GCJ \ 18510 exclude_expsyms_GCJ \ 18511 include_expsyms_GCJ; do 18512 18513 case $var in 18514 old_archive_cmds_GCJ | \ 18515 old_archive_from_new_cmds_GCJ | \ 18516 archive_cmds_GCJ | \ 18517 archive_expsym_cmds_GCJ | \ 18518 module_cmds_GCJ | \ 18519 module_expsym_cmds_GCJ | \ 18520 old_archive_from_expsyms_cmds_GCJ | \ 18521 export_symbols_cmds_GCJ | \ 18522 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18523 postinstall_cmds | postuninstall_cmds | \ 18524 old_postinstall_cmds | old_postuninstall_cmds | \ 18525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18526 # Double-quote double-evaled strings. 18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18528 ;; 18529 *) 18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18531 ;; 18532 esac 18533 done 18534 18535 case $lt_echo in 18536 *'\$0 --fallback-echo"') 18537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18538 ;; 18539 esac 18540 18541cfgfile="$ofile" 18542 18543 cat <<__EOF__ >> "$cfgfile" 18544# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18545 18546# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18547 18548# Shell to use when invoking shell scripts. 18549SHELL=$lt_SHELL 18550 18551# Whether or not to build shared libraries. 18552build_libtool_libs=$enable_shared 18553 18554# Whether or not to build static libraries. 18555build_old_libs=$enable_static 18556 18557# Whether or not to add -lc for building shared libraries. 18558build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18559 18560# Whether or not to disallow shared libs when runtime libs are static 18561allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18562 18563# Whether or not to optimize for fast installation. 18564fast_install=$enable_fast_install 18565 18566# The host system. 18567host_alias=$host_alias 18568host=$host 18569host_os=$host_os 18570 18571# The build system. 18572build_alias=$build_alias 18573build=$build 18574build_os=$build_os 18575 18576# An echo program that does not interpret backslashes. 18577echo=$lt_echo 18578 18579# The archiver. 18580AR=$lt_AR 18581AR_FLAGS=$lt_AR_FLAGS 18582 18583# A C compiler. 18584LTCC=$lt_LTCC 18585 18586# LTCC compiler flags. 18587LTCFLAGS=$lt_LTCFLAGS 18588 18589# A language-specific compiler. 18590CC=$lt_compiler_GCJ 18591 18592# Is the compiler the GNU C compiler? 18593with_gcc=$GCC_GCJ 18594 18595# An ERE matcher. 18596EGREP=$lt_EGREP 18597 18598# The linker used to build libraries. 18599LD=$lt_LD_GCJ 18600 18601# Whether we need hard or soft links. 18602LN_S=$lt_LN_S 18603 18604# A BSD-compatible nm program. 18605NM=$lt_NM 18606 18607# A symbol stripping program 18608STRIP=$lt_STRIP 18609 18610# Used to examine libraries when file_magic_cmd begins "file" 18611MAGIC_CMD=$MAGIC_CMD 18612 18613# Used on cygwin: DLL creation program. 18614DLLTOOL="$DLLTOOL" 18615 18616# Used on cygwin: object dumper. 18617OBJDUMP="$OBJDUMP" 18618 18619# Used on cygwin: assembler. 18620AS="$AS" 18621 18622# The name of the directory that contains temporary libtool files. 18623objdir=$objdir 18624 18625# How to create reloadable object files. 18626reload_flag=$lt_reload_flag 18627reload_cmds=$lt_reload_cmds 18628 18629# How to pass a linker flag through the compiler. 18630wl=$lt_lt_prog_compiler_wl_GCJ 18631 18632# Object file suffix (normally "o"). 18633objext="$ac_objext" 18634 18635# Old archive suffix (normally "a"). 18636libext="$libext" 18637 18638# Shared library suffix (normally ".so"). 18639shrext_cmds='$shrext_cmds' 18640 18641# Executable file suffix (normally ""). 18642exeext="$exeext" 18643 18644# Additional compiler flags for building library objects. 18645pic_flag=$lt_lt_prog_compiler_pic_GCJ 18646pic_mode=$pic_mode 18647 18648# What is the maximum length of a command? 18649max_cmd_len=$lt_cv_sys_max_cmd_len 18650 18651# Does compiler simultaneously support -c and -o options? 18652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18653 18654# Must we lock files when doing compilation? 18655need_locks=$lt_need_locks 18656 18657# Do we need the lib prefix for modules? 18658need_lib_prefix=$need_lib_prefix 18659 18660# Do we need a version for libraries? 18661need_version=$need_version 18662 18663# Whether dlopen is supported. 18664dlopen_support=$enable_dlopen 18665 18666# Whether dlopen of programs is supported. 18667dlopen_self=$enable_dlopen_self 18668 18669# Whether dlopen of statically linked programs is supported. 18670dlopen_self_static=$enable_dlopen_self_static 18671 18672# Compiler flag to prevent dynamic linking. 18673link_static_flag=$lt_lt_prog_compiler_static_GCJ 18674 18675# Compiler flag to turn off builtin functions. 18676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18677 18678# Compiler flag to allow reflexive dlopens. 18679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18680 18681# Compiler flag to generate shared objects directly from archives. 18682whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18683 18684# Compiler flag to generate thread-safe objects. 18685thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18686 18687# Library versioning type. 18688version_type=$version_type 18689 18690# Format of library name prefix. 18691libname_spec=$lt_libname_spec 18692 18693# List of archive names. First name is the real one, the rest are links. 18694# The last name is the one that the linker finds with -lNAME. 18695library_names_spec=$lt_library_names_spec 18696 18697# The coded name of the library, if different from the real name. 18698soname_spec=$lt_soname_spec 18699 18700# Commands used to build and install an old-style archive. 18701RANLIB=$lt_RANLIB 18702old_archive_cmds=$lt_old_archive_cmds_GCJ 18703old_postinstall_cmds=$lt_old_postinstall_cmds 18704old_postuninstall_cmds=$lt_old_postuninstall_cmds 18705 18706# Create an old-style archive from a shared archive. 18707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18708 18709# Create a temporary old-style archive to link instead of a shared archive. 18710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18711 18712# Commands used to build and install a shared archive. 18713archive_cmds=$lt_archive_cmds_GCJ 18714archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18715postinstall_cmds=$lt_postinstall_cmds 18716postuninstall_cmds=$lt_postuninstall_cmds 18717 18718# Commands used to build a loadable module (assumed same as above if empty) 18719module_cmds=$lt_module_cmds_GCJ 18720module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18721 18722# Commands to strip libraries. 18723old_striplib=$lt_old_striplib 18724striplib=$lt_striplib 18725 18726# Dependencies to place before the objects being linked to create a 18727# shared library. 18728predep_objects=$lt_predep_objects_GCJ 18729 18730# Dependencies to place after the objects being linked to create a 18731# shared library. 18732postdep_objects=$lt_postdep_objects_GCJ 18733 18734# Dependencies to place before the objects being linked to create a 18735# shared library. 18736predeps=$lt_predeps_GCJ 18737 18738# Dependencies to place after the objects being linked to create a 18739# shared library. 18740postdeps=$lt_postdeps_GCJ 18741 18742# The library search path used internally by the compiler when linking 18743# a shared library. 18744compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18745 18746# Method to check whether dependent libraries are shared objects. 18747deplibs_check_method=$lt_deplibs_check_method 18748 18749# Command to use when deplibs_check_method == file_magic. 18750file_magic_cmd=$lt_file_magic_cmd 18751 18752# Flag that allows shared libraries with undefined symbols to be built. 18753allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18754 18755# Flag that forces no undefined symbols. 18756no_undefined_flag=$lt_no_undefined_flag_GCJ 18757 18758# Commands used to finish a libtool library installation in a directory. 18759finish_cmds=$lt_finish_cmds 18760 18761# Same as above, but a single script fragment to be evaled but not shown. 18762finish_eval=$lt_finish_eval 18763 18764# Take the output of nm and produce a listing of raw symbols and C names. 18765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18766 18767# Transform the output of nm in a proper C declaration 18768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18769 18770# Transform the output of nm in a C name address pair 18771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18772 18773# This is the shared library runtime path variable. 18774runpath_var=$runpath_var 18775 18776# This is the shared library path variable. 18777shlibpath_var=$shlibpath_var 18778 18779# Is shlibpath searched before the hard-coded library search path? 18780shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18781 18782# How to hardcode a shared library path into an executable. 18783hardcode_action=$hardcode_action_GCJ 18784 18785# Whether we should hardcode library paths into libraries. 18786hardcode_into_libs=$hardcode_into_libs 18787 18788# Flag to hardcode \$libdir into a binary during linking. 18789# This must work even if \$libdir does not exist. 18790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18791 18792# If ld is used when linking, flag to hardcode \$libdir into 18793# a binary during linking. This must work even if \$libdir does 18794# not exist. 18795hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18796 18797# Whether we need a single -rpath flag with a separated argument. 18798hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18799 18800# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18801# resulting binary. 18802hardcode_direct=$hardcode_direct_GCJ 18803 18804# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18805# resulting binary. 18806hardcode_minus_L=$hardcode_minus_L_GCJ 18807 18808# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18809# the resulting binary. 18810hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18811 18812# Set to yes if building a shared library automatically hardcodes DIR into the library 18813# and all subsequent libraries and executables linked against it. 18814hardcode_automatic=$hardcode_automatic_GCJ 18815 18816# Variables whose values should be saved in libtool wrapper scripts and 18817# restored at relink time. 18818variables_saved_for_relink="$variables_saved_for_relink" 18819 18820# Whether libtool must link a program against all its dependency libraries. 18821link_all_deplibs=$link_all_deplibs_GCJ 18822 18823# Compile-time system search path for libraries 18824sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18825 18826# Run-time system search path for libraries 18827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18828 18829# Fix the shell variable \$srcfile for the compiler. 18830fix_srcfile_path=$lt_fix_srcfile_path 18831 18832# Set to yes if exported symbols are required. 18833always_export_symbols=$always_export_symbols_GCJ 18834 18835# The commands to list exported symbols. 18836export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18837 18838# The commands to extract the exported symbol list from a shared archive. 18839extract_expsyms_cmds=$lt_extract_expsyms_cmds 18840 18841# Symbols that should not be listed in the preloaded symbols. 18842exclude_expsyms=$lt_exclude_expsyms_GCJ 18843 18844# Symbols that must always be exported. 18845include_expsyms=$lt_include_expsyms_GCJ 18846 18847# ### END LIBTOOL TAG CONFIG: $tagname 18848 18849__EOF__ 18850 18851 18852else 18853 # If there is no Makefile yet, we rely on a make rule to execute 18854 # `config.status --recheck' to rerun these tests and create the 18855 # libtool script then. 18856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18857 if test -f "$ltmain_in"; then 18858 test -f Makefile && make "$ltmain" 18859 fi 18860fi 18861 18862 18863ac_ext=c 18864ac_cpp='$CPP $CPPFLAGS' 18865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18867ac_compiler_gnu=$ac_cv_c_compiler_gnu 18868 18869CC="$lt_save_CC" 18870 18871 else 18872 tagname="" 18873 fi 18874 ;; 18875 18876 RC) 18877 18878 18879# Source file extension for RC test sources. 18880ac_ext=rc 18881 18882# Object file extension for compiled RC test sources. 18883objext=o 18884objext_RC=$objext 18885 18886# Code to be used in simple compile tests 18887lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18888 18889# Code to be used in simple link tests 18890lt_simple_link_test_code="$lt_simple_compile_test_code" 18891 18892# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18893 18894# If no C compiler was specified, use CC. 18895LTCC=${LTCC-"$CC"} 18896 18897# If no C compiler flags were specified, use CFLAGS. 18898LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18899 18900# Allow CC to be a program name with arguments. 18901compiler=$CC 18902 18903 18904# save warnings/boilerplate of simple test code 18905ac_outfile=conftest.$ac_objext 18906echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18908_lt_compiler_boilerplate=`cat conftest.err` 18909$rm conftest* 18910 18911ac_outfile=conftest.$ac_objext 18912echo "$lt_simple_link_test_code" >conftest.$ac_ext 18913eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18914_lt_linker_boilerplate=`cat conftest.err` 18915$rm conftest* 18916 18917 18918# Allow CC to be a program name with arguments. 18919lt_save_CC="$CC" 18920CC=${RC-"windres"} 18921compiler=$CC 18922compiler_RC=$CC 18923for cc_temp in $compiler""; do 18924 case $cc_temp in 18925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18927 \-*) ;; 18928 *) break;; 18929 esac 18930done 18931cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18932 18933lt_cv_prog_compiler_c_o_RC=yes 18934 18935# The else clause should only fire when bootstrapping the 18936# libtool distribution, otherwise you forgot to ship ltmain.sh 18937# with your package, and you will get complaints that there are 18938# no rules to generate ltmain.sh. 18939if test -f "$ltmain"; then 18940 # See if we are running on zsh, and set the options which allow our commands through 18941 # without removal of \ escapes. 18942 if test -n "${ZSH_VERSION+set}" ; then 18943 setopt NO_GLOB_SUBST 18944 fi 18945 # Now quote all the things that may contain metacharacters while being 18946 # careful not to overquote the AC_SUBSTed values. We take copies of the 18947 # variables and quote the copies for generation of the libtool script. 18948 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18949 SED SHELL STRIP \ 18950 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18951 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18952 deplibs_check_method reload_flag reload_cmds need_locks \ 18953 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18954 lt_cv_sys_global_symbol_to_c_name_address \ 18955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18956 old_postinstall_cmds old_postuninstall_cmds \ 18957 compiler_RC \ 18958 CC_RC \ 18959 LD_RC \ 18960 lt_prog_compiler_wl_RC \ 18961 lt_prog_compiler_pic_RC \ 18962 lt_prog_compiler_static_RC \ 18963 lt_prog_compiler_no_builtin_flag_RC \ 18964 export_dynamic_flag_spec_RC \ 18965 thread_safe_flag_spec_RC \ 18966 whole_archive_flag_spec_RC \ 18967 enable_shared_with_static_runtimes_RC \ 18968 old_archive_cmds_RC \ 18969 old_archive_from_new_cmds_RC \ 18970 predep_objects_RC \ 18971 postdep_objects_RC \ 18972 predeps_RC \ 18973 postdeps_RC \ 18974 compiler_lib_search_path_RC \ 18975 archive_cmds_RC \ 18976 archive_expsym_cmds_RC \ 18977 postinstall_cmds_RC \ 18978 postuninstall_cmds_RC \ 18979 old_archive_from_expsyms_cmds_RC \ 18980 allow_undefined_flag_RC \ 18981 no_undefined_flag_RC \ 18982 export_symbols_cmds_RC \ 18983 hardcode_libdir_flag_spec_RC \ 18984 hardcode_libdir_flag_spec_ld_RC \ 18985 hardcode_libdir_separator_RC \ 18986 hardcode_automatic_RC \ 18987 module_cmds_RC \ 18988 module_expsym_cmds_RC \ 18989 lt_cv_prog_compiler_c_o_RC \ 18990 fix_srcfile_path_RC \ 18991 exclude_expsyms_RC \ 18992 include_expsyms_RC; do 18993 18994 case $var in 18995 old_archive_cmds_RC | \ 18996 old_archive_from_new_cmds_RC | \ 18997 archive_cmds_RC | \ 18998 archive_expsym_cmds_RC | \ 18999 module_cmds_RC | \ 19000 module_expsym_cmds_RC | \ 19001 old_archive_from_expsyms_cmds_RC | \ 19002 export_symbols_cmds_RC | \ 19003 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19004 postinstall_cmds | postuninstall_cmds | \ 19005 old_postinstall_cmds | old_postuninstall_cmds | \ 19006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19007 # Double-quote double-evaled strings. 19008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19009 ;; 19010 *) 19011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19012 ;; 19013 esac 19014 done 19015 19016 case $lt_echo in 19017 *'\$0 --fallback-echo"') 19018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19019 ;; 19020 esac 19021 19022cfgfile="$ofile" 19023 19024 cat <<__EOF__ >> "$cfgfile" 19025# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19026 19027# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19028 19029# Shell to use when invoking shell scripts. 19030SHELL=$lt_SHELL 19031 19032# Whether or not to build shared libraries. 19033build_libtool_libs=$enable_shared 19034 19035# Whether or not to build static libraries. 19036build_old_libs=$enable_static 19037 19038# Whether or not to add -lc for building shared libraries. 19039build_libtool_need_lc=$archive_cmds_need_lc_RC 19040 19041# Whether or not to disallow shared libs when runtime libs are static 19042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19043 19044# Whether or not to optimize for fast installation. 19045fast_install=$enable_fast_install 19046 19047# The host system. 19048host_alias=$host_alias 19049host=$host 19050host_os=$host_os 19051 19052# The build system. 19053build_alias=$build_alias 19054build=$build 19055build_os=$build_os 19056 19057# An echo program that does not interpret backslashes. 19058echo=$lt_echo 19059 19060# The archiver. 19061AR=$lt_AR 19062AR_FLAGS=$lt_AR_FLAGS 19063 19064# A C compiler. 19065LTCC=$lt_LTCC 19066 19067# LTCC compiler flags. 19068LTCFLAGS=$lt_LTCFLAGS 19069 19070# A language-specific compiler. 19071CC=$lt_compiler_RC 19072 19073# Is the compiler the GNU C compiler? 19074with_gcc=$GCC_RC 19075 19076# An ERE matcher. 19077EGREP=$lt_EGREP 19078 19079# The linker used to build libraries. 19080LD=$lt_LD_RC 19081 19082# Whether we need hard or soft links. 19083LN_S=$lt_LN_S 19084 19085# A BSD-compatible nm program. 19086NM=$lt_NM 19087 19088# A symbol stripping program 19089STRIP=$lt_STRIP 19090 19091# Used to examine libraries when file_magic_cmd begins "file" 19092MAGIC_CMD=$MAGIC_CMD 19093 19094# Used on cygwin: DLL creation program. 19095DLLTOOL="$DLLTOOL" 19096 19097# Used on cygwin: object dumper. 19098OBJDUMP="$OBJDUMP" 19099 19100# Used on cygwin: assembler. 19101AS="$AS" 19102 19103# The name of the directory that contains temporary libtool files. 19104objdir=$objdir 19105 19106# How to create reloadable object files. 19107reload_flag=$lt_reload_flag 19108reload_cmds=$lt_reload_cmds 19109 19110# How to pass a linker flag through the compiler. 19111wl=$lt_lt_prog_compiler_wl_RC 19112 19113# Object file suffix (normally "o"). 19114objext="$ac_objext" 19115 19116# Old archive suffix (normally "a"). 19117libext="$libext" 19118 19119# Shared library suffix (normally ".so"). 19120shrext_cmds='$shrext_cmds' 19121 19122# Executable file suffix (normally ""). 19123exeext="$exeext" 19124 19125# Additional compiler flags for building library objects. 19126pic_flag=$lt_lt_prog_compiler_pic_RC 19127pic_mode=$pic_mode 19128 19129# What is the maximum length of a command? 19130max_cmd_len=$lt_cv_sys_max_cmd_len 19131 19132# Does compiler simultaneously support -c and -o options? 19133compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19134 19135# Must we lock files when doing compilation? 19136need_locks=$lt_need_locks 19137 19138# Do we need the lib prefix for modules? 19139need_lib_prefix=$need_lib_prefix 19140 19141# Do we need a version for libraries? 19142need_version=$need_version 19143 19144# Whether dlopen is supported. 19145dlopen_support=$enable_dlopen 19146 19147# Whether dlopen of programs is supported. 19148dlopen_self=$enable_dlopen_self 19149 19150# Whether dlopen of statically linked programs is supported. 19151dlopen_self_static=$enable_dlopen_self_static 19152 19153# Compiler flag to prevent dynamic linking. 19154link_static_flag=$lt_lt_prog_compiler_static_RC 19155 19156# Compiler flag to turn off builtin functions. 19157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19158 19159# Compiler flag to allow reflexive dlopens. 19160export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19161 19162# Compiler flag to generate shared objects directly from archives. 19163whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19164 19165# Compiler flag to generate thread-safe objects. 19166thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19167 19168# Library versioning type. 19169version_type=$version_type 19170 19171# Format of library name prefix. 19172libname_spec=$lt_libname_spec 19173 19174# List of archive names. First name is the real one, the rest are links. 19175# The last name is the one that the linker finds with -lNAME. 19176library_names_spec=$lt_library_names_spec 19177 19178# The coded name of the library, if different from the real name. 19179soname_spec=$lt_soname_spec 19180 19181# Commands used to build and install an old-style archive. 19182RANLIB=$lt_RANLIB 19183old_archive_cmds=$lt_old_archive_cmds_RC 19184old_postinstall_cmds=$lt_old_postinstall_cmds 19185old_postuninstall_cmds=$lt_old_postuninstall_cmds 19186 19187# Create an old-style archive from a shared archive. 19188old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19189 19190# Create a temporary old-style archive to link instead of a shared archive. 19191old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19192 19193# Commands used to build and install a shared archive. 19194archive_cmds=$lt_archive_cmds_RC 19195archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19196postinstall_cmds=$lt_postinstall_cmds 19197postuninstall_cmds=$lt_postuninstall_cmds 19198 19199# Commands used to build a loadable module (assumed same as above if empty) 19200module_cmds=$lt_module_cmds_RC 19201module_expsym_cmds=$lt_module_expsym_cmds_RC 19202 19203# Commands to strip libraries. 19204old_striplib=$lt_old_striplib 19205striplib=$lt_striplib 19206 19207# Dependencies to place before the objects being linked to create a 19208# shared library. 19209predep_objects=$lt_predep_objects_RC 19210 19211# Dependencies to place after the objects being linked to create a 19212# shared library. 19213postdep_objects=$lt_postdep_objects_RC 19214 19215# Dependencies to place before the objects being linked to create a 19216# shared library. 19217predeps=$lt_predeps_RC 19218 19219# Dependencies to place after the objects being linked to create a 19220# shared library. 19221postdeps=$lt_postdeps_RC 19222 19223# The library search path used internally by the compiler when linking 19224# a shared library. 19225compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19226 19227# Method to check whether dependent libraries are shared objects. 19228deplibs_check_method=$lt_deplibs_check_method 19229 19230# Command to use when deplibs_check_method == file_magic. 19231file_magic_cmd=$lt_file_magic_cmd 19232 19233# Flag that allows shared libraries with undefined symbols to be built. 19234allow_undefined_flag=$lt_allow_undefined_flag_RC 19235 19236# Flag that forces no undefined symbols. 19237no_undefined_flag=$lt_no_undefined_flag_RC 19238 19239# Commands used to finish a libtool library installation in a directory. 19240finish_cmds=$lt_finish_cmds 19241 19242# Same as above, but a single script fragment to be evaled but not shown. 19243finish_eval=$lt_finish_eval 19244 19245# Take the output of nm and produce a listing of raw symbols and C names. 19246global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19247 19248# Transform the output of nm in a proper C declaration 19249global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19250 19251# Transform the output of nm in a C name address pair 19252global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19253 19254# This is the shared library runtime path variable. 19255runpath_var=$runpath_var 19256 19257# This is the shared library path variable. 19258shlibpath_var=$shlibpath_var 19259 19260# Is shlibpath searched before the hard-coded library search path? 19261shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19262 19263# How to hardcode a shared library path into an executable. 19264hardcode_action=$hardcode_action_RC 19265 19266# Whether we should hardcode library paths into libraries. 19267hardcode_into_libs=$hardcode_into_libs 19268 19269# Flag to hardcode \$libdir into a binary during linking. 19270# This must work even if \$libdir does not exist. 19271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19272 19273# If ld is used when linking, flag to hardcode \$libdir into 19274# a binary during linking. This must work even if \$libdir does 19275# not exist. 19276hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19277 19278# Whether we need a single -rpath flag with a separated argument. 19279hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19280 19281# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19282# resulting binary. 19283hardcode_direct=$hardcode_direct_RC 19284 19285# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19286# resulting binary. 19287hardcode_minus_L=$hardcode_minus_L_RC 19288 19289# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19290# the resulting binary. 19291hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19292 19293# Set to yes if building a shared library automatically hardcodes DIR into the library 19294# and all subsequent libraries and executables linked against it. 19295hardcode_automatic=$hardcode_automatic_RC 19296 19297# Variables whose values should be saved in libtool wrapper scripts and 19298# restored at relink time. 19299variables_saved_for_relink="$variables_saved_for_relink" 19300 19301# Whether libtool must link a program against all its dependency libraries. 19302link_all_deplibs=$link_all_deplibs_RC 19303 19304# Compile-time system search path for libraries 19305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19306 19307# Run-time system search path for libraries 19308sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19309 19310# Fix the shell variable \$srcfile for the compiler. 19311fix_srcfile_path=$lt_fix_srcfile_path 19312 19313# Set to yes if exported symbols are required. 19314always_export_symbols=$always_export_symbols_RC 19315 19316# The commands to list exported symbols. 19317export_symbols_cmds=$lt_export_symbols_cmds_RC 19318 19319# The commands to extract the exported symbol list from a shared archive. 19320extract_expsyms_cmds=$lt_extract_expsyms_cmds 19321 19322# Symbols that should not be listed in the preloaded symbols. 19323exclude_expsyms=$lt_exclude_expsyms_RC 19324 19325# Symbols that must always be exported. 19326include_expsyms=$lt_include_expsyms_RC 19327 19328# ### END LIBTOOL TAG CONFIG: $tagname 19329 19330__EOF__ 19331 19332 19333else 19334 # If there is no Makefile yet, we rely on a make rule to execute 19335 # `config.status --recheck' to rerun these tests and create the 19336 # libtool script then. 19337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19338 if test -f "$ltmain_in"; then 19339 test -f Makefile && make "$ltmain" 19340 fi 19341fi 19342 19343 19344ac_ext=c 19345ac_cpp='$CPP $CPPFLAGS' 19346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19348ac_compiler_gnu=$ac_cv_c_compiler_gnu 19349 19350CC="$lt_save_CC" 19351 19352 ;; 19353 19354 *) 19355 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19356echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19357 { (exit 1); exit 1; }; } 19358 ;; 19359 esac 19360 19361 # Append the new tag name to the list of available tags. 19362 if test -n "$tagname" ; then 19363 available_tags="$available_tags $tagname" 19364 fi 19365 fi 19366 done 19367 IFS="$lt_save_ifs" 19368 19369 # Now substitute the updated list of available tags. 19370 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19371 mv "${ofile}T" "$ofile" 19372 chmod +x "$ofile" 19373 else 19374 rm -f "${ofile}T" 19375 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19376echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19377 { (exit 1); exit 1; }; } 19378 fi 19379fi 19380 19381 19382 19383# This can be used to rebuild libtool when needed 19384LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19385 19386# Always use our own libtool. 19387LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19388 19389# Prevent multiple expansion 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412cat >>confdefs.h <<\_ACEOF 19413#define PPPD_VERSION 19414_ACEOF 19415 19416 19417cat >>confdefs.h <<\_ACEOF 19418#define KERNELVERSION 19419_ACEOF 19420 19421 19422CFLAGS="${CFLAGS:=}" 19423 19424{ echo "$as_me:$LINENO: checking for linux kernel herders" >&5 19425echo $ECHO_N "checking for linux kernel herders... $ECHO_C" >&6; } 19426if test -n "${KDIR}"; then 19427 if test -f ${KDIR}/include/linux/version.h; then 19428 header=${KDIR}/include 19429 else 19430 { echo "$as_me:$LINENO: result: not found" >&5 19431echo "${ECHO_T}not found" >&6; } 19432 { { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5 19433echo "$as_me: error: Could not find linux kernel headers" >&2;} 19434 { (exit 1); exit 1; }; } 19435 fi 19436else 19437 kernel=`uname -r` 19438 if test -f /usr/src/linux/include/linux/version.h; then 19439 header=/usr/src/linux/include 19440 elif test -f /lib/modules/${kernel}/build/include/linux/version.h; then 19441 header=/lib/modules/${kernel}/build/include 19442 else 19443 { echo "$as_me:$LINENO: result: not found" >&5 19444echo "${ECHO_T}not found" >&6; } 19445 { { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5 19446echo "$as_me: error: Could not find linux kernel headers" >&2;} 19447 { (exit 1); exit 1; }; } 19448 fi 19449fi 19450VERSION=$(cat ${header/include}Makefile | grep '^VERSION = ' | awk '{print $3}') 19451PATCHLEVEL=$(cat ${header/include}Makefile | grep '^PATCHLEVEL = ' | awk '{print $3}') 19452SUBLEVEL=$(cat ${header/include}Makefile | grep '^SUBLEVEL = ' | awk '{print $3}') 19453EXTRAVERSION=$(cat ${header/include}Makefile | grep '^EXTRAVERSION = ' | awk '{print $3}') 19454KERNELVERSION=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION 19455{ echo "$as_me:$LINENO: result: found ($KERNELVERSION at ${header/include})" >&5 19456echo "${ECHO_T}found ($KERNELVERSION at ${header/include})" >&6; } 19457cat >>confdefs.h <<_ACEOF 19458#define KERNELVERSION "$KERNELVERSION" 19459_ACEOF 19460 19461 19462 19463CFLAGS="${CFLAGS} -I." 19464 19465{ echo "$as_me:$LINENO: checking for pppd" >&5 19466echo $ECHO_N "checking for pppd... $ECHO_C" >&6; } 19467if test -n "${PPPDIR}"; then 19468 if test -f ${PPPDIR}/pppd/patchlevel.h; then 19469 pppd=${PPPDIR}/pppd 19470 else 19471 { echo "$as_me:$LINENO: result: not found" >&5 19472echo "${ECHO_T}not found" >&6; } 19473 { { echo "$as_me:$LINENO: error: Could not find pppd" >&5 19474echo "$as_me: error: Could not find pppd" >&2;} 19475 { (exit 1); exit 1; }; } 19476 fi 19477 pppd_ver=`cat ${pppd}/patchlevel.h | awk '/VERSION/ {gsub(/"/,"",$3);print $3}'` 19478else 19479 pppd=`which pppd 2>&1` 19480 if test $? -eq 1; then 19481 pppd="" 19482 for path in /usr/sbin /usr/local/sbin /usr/bin /usr/local/bin /sbin; do 19483 if test -x ${path}/pppd; then 19484 pppd=${path}/pppd 19485 break; 19486 fi 19487 done 19488 fi 19489 19490 if test -z "${pppd}"; then 19491 { echo "$as_me:$LINENO: result: not found" >&5 19492echo "${ECHO_T}not found" >&6; } 19493 { { echo "$as_me:$LINENO: error: Could not find pppd" >&5 19494echo "$as_me: error: Could not find pppd" >&2;} 19495 { (exit 1); exit 1; }; } 19496 fi 19497 pppd_ver=`${pppd} --version 2>&1 | grep version | sed 's/pppd version //'` 19498fi 19499{ echo "$as_me:$LINENO: result: $pppd ($pppd_ver)" >&5 19500echo "${ECHO_T}$pppd ($pppd_ver)" >&6; } 19501cat >>confdefs.h <<_ACEOF 19502#define PPPD_VERSION "${pppd_ver}" 19503_ACEOF 19504 19505 19506echo '===============================================================================' 19507 19508echo 'Configuration chosen:' 19509echo ' PPPD: '${pppd_ver} 19510echo ' linux kernel : '$KERNELVERSION at ${header/include} 19511 19512ac_config_files="$ac_config_files Makefile src/Makefile" 19513 19514cat >confcache <<\_ACEOF 19515# This file is a shell script that caches the results of configure 19516# tests run on this system so they can be shared between configure 19517# scripts and configure runs, see configure's option --config-cache. 19518# It is not useful on other systems. If it contains results you don't 19519# want to keep, you may remove or edit it. 19520# 19521# config.status only pays attention to the cache file if you give it 19522# the --recheck option to rerun configure. 19523# 19524# `ac_cv_env_foo' variables (set or unset) will be overridden when 19525# loading this file, other *unset* `ac_cv_foo' will be assigned the 19526# following values. 19527 19528_ACEOF 19529 19530# The following way of writing the cache mishandles newlines in values, 19531# but we know of no workaround that is simple, portable, and efficient. 19532# So, we kill variables containing newlines. 19533# Ultrix sh set writes to stderr and can't be redirected directly, 19534# and sets the high bit in the cache file unless we assign to the vars. 19535( 19536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19537 eval ac_val=\$$ac_var 19538 case $ac_val in #( 19539 *${as_nl}*) 19540 case $ac_var in #( 19541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19542echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19543 esac 19544 case $ac_var in #( 19545 _ | IFS | as_nl) ;; #( 19546 *) $as_unset $ac_var ;; 19547 esac ;; 19548 esac 19549 done 19550 19551 (set) 2>&1 | 19552 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19553 *${as_nl}ac_space=\ *) 19554 # `set' does not quote correctly, so add quotes (double-quote 19555 # substitution turns \\\\ into \\, and sed turns \\ into \). 19556 sed -n \ 19557 "s/'/'\\\\''/g; 19558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19559 ;; #( 19560 *) 19561 # `set' quotes correctly as required by POSIX, so do not add quotes. 19562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19563 ;; 19564 esac | 19565 sort 19566) | 19567 sed ' 19568 /^ac_cv_env_/b end 19569 t clear 19570 :clear 19571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19572 t end 19573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19574 :end' >>confcache 19575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19576 if test -w "$cache_file"; then 19577 test "x$cache_file" != "x/dev/null" && 19578 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19579echo "$as_me: updating cache $cache_file" >&6;} 19580 cat confcache >$cache_file 19581 else 19582 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19583echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19584 fi 19585fi 19586rm -f confcache 19587 19588test "x$prefix" = xNONE && prefix=$ac_default_prefix 19589# Let make expand exec_prefix. 19590test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19591 19592DEFS=-DHAVE_CONFIG_H 19593 19594ac_libobjs= 19595ac_ltlibobjs= 19596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19597 # 1. Remove the extension, and $U if already installed. 19598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19599 ac_i=`echo "$ac_i" | sed "$ac_script"` 19600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19601 # will be set to the directory where LIBOBJS objects are built. 19602 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19603 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19604done 19605LIBOBJS=$ac_libobjs 19606 19607LTLIBOBJS=$ac_ltlibobjs 19608 19609 19610if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19611 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19612Usually this means the macro was only invoked conditionally." >&5 19613echo "$as_me: error: conditional \"AMDEP\" was never defined. 19614Usually this means the macro was only invoked conditionally." >&2;} 19615 { (exit 1); exit 1; }; } 19616fi 19617if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19619Usually this means the macro was only invoked conditionally." >&5 19620echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19621Usually this means the macro was only invoked conditionally." >&2;} 19622 { (exit 1); exit 1; }; } 19623fi 19624if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19625 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19626Usually this means the macro was only invoked conditionally." >&5 19627echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19628Usually this means the macro was only invoked conditionally." >&2;} 19629 { (exit 1); exit 1; }; } 19630fi 19631 19632: ${CONFIG_STATUS=./config.status} 19633ac_clean_files_save=$ac_clean_files 19634ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19635{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19636echo "$as_me: creating $CONFIG_STATUS" >&6;} 19637cat >$CONFIG_STATUS <<_ACEOF 19638#! $SHELL 19639# Generated by $as_me. 19640# Run this file to recreate the current configuration. 19641# Compiler output produced by configure, useful for debugging 19642# configure, is in config.log if it exists. 19643 19644debug=false 19645ac_cs_recheck=false 19646ac_cs_silent=false 19647SHELL=\${CONFIG_SHELL-$SHELL} 19648_ACEOF 19649 19650cat >>$CONFIG_STATUS <<\_ACEOF 19651## --------------------- ## 19652## M4sh Initialization. ## 19653## --------------------- ## 19654 19655# Be more Bourne compatible 19656DUALCASE=1; export DUALCASE # for MKS sh 19657if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19658 emulate sh 19659 NULLCMD=: 19660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19661 # is contrary to our usage. Disable this feature. 19662 alias -g '${1+"$@"}'='"$@"' 19663 setopt NO_GLOB_SUBST 19664else 19665 case `(set -o) 2>/dev/null` in 19666 *posix*) set -o posix ;; 19667esac 19668 19669fi 19670 19671 19672 19673 19674# PATH needs CR 19675# Avoid depending upon Character Ranges. 19676as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19678as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19679as_cr_digits='0123456789' 19680as_cr_alnum=$as_cr_Letters$as_cr_digits 19681 19682# The user is always right. 19683if test "${PATH_SEPARATOR+set}" != set; then 19684 echo "#! /bin/sh" >conf$$.sh 19685 echo "exit 0" >>conf$$.sh 19686 chmod +x conf$$.sh 19687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19688 PATH_SEPARATOR=';' 19689 else 19690 PATH_SEPARATOR=: 19691 fi 19692 rm -f conf$$.sh 19693fi 19694 19695# Support unset when possible. 19696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19697 as_unset=unset 19698else 19699 as_unset=false 19700fi 19701 19702 19703# IFS 19704# We need space, tab and new line, in precisely that order. Quoting is 19705# there to prevent editors from complaining about space-tab. 19706# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19707# splitting by setting IFS to empty value.) 19708as_nl=' 19709' 19710IFS=" "" $as_nl" 19711 19712# Find who we are. Look in the path if we contain no directory separator. 19713case $0 in 19714 *[\\/]* ) as_myself=$0 ;; 19715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19716for as_dir in $PATH 19717do 19718 IFS=$as_save_IFS 19719 test -z "$as_dir" && as_dir=. 19720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19721done 19722IFS=$as_save_IFS 19723 19724 ;; 19725esac 19726# We did not find ourselves, most probably we were run as `sh COMMAND' 19727# in which case we are not to be found in the path. 19728if test "x$as_myself" = x; then 19729 as_myself=$0 19730fi 19731if test ! -f "$as_myself"; then 19732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19733 { (exit 1); exit 1; } 19734fi 19735 19736# Work around bugs in pre-3.0 UWIN ksh. 19737for as_var in ENV MAIL MAILPATH 19738do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19739done 19740PS1='$ ' 19741PS2='> ' 19742PS4='+ ' 19743 19744# NLS nuisances. 19745for as_var in \ 19746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19748 LC_TELEPHONE LC_TIME 19749do 19750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19751 eval $as_var=C; export $as_var 19752 else 19753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19754 fi 19755done 19756 19757# Required to use basename. 19758if expr a : '\(a\)' >/dev/null 2>&1 && 19759 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19760 as_expr=expr 19761else 19762 as_expr=false 19763fi 19764 19765if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19766 as_basename=basename 19767else 19768 as_basename=false 19769fi 19770 19771 19772# Name of the executable. 19773as_me=`$as_basename -- "$0" || 19774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19775 X"$0" : 'X\(//\)$' \| \ 19776 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19777echo X/"$0" | 19778 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19779 s//\1/ 19780 q 19781 } 19782 /^X\/\(\/\/\)$/{ 19783 s//\1/ 19784 q 19785 } 19786 /^X\/\(\/\).*/{ 19787 s//\1/ 19788 q 19789 } 19790 s/.*/./; q'` 19791 19792# CDPATH. 19793$as_unset CDPATH 19794 19795 19796 19797 as_lineno_1=$LINENO 19798 as_lineno_2=$LINENO 19799 test "x$as_lineno_1" != "x$as_lineno_2" && 19800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 19801 19802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19803 # uniformly replaced by the line number. The first 'sed' inserts a 19804 # line-number line after each line using $LINENO; the second 'sed' 19805 # does the real work. The second script uses 'N' to pair each 19806 # line-number line with the line containing $LINENO, and appends 19807 # trailing '-' during substitution so that $LINENO is not a special 19808 # case at line end. 19809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19810 # scripts with optimization help from Paolo Bonzini. Blame Lee 19811 # E. McMahon (1931-1989) for sed's syntax. :-) 19812 sed -n ' 19813 p 19814 /[$]LINENO/= 19815 ' <$as_myself | 19816 sed ' 19817 s/[$]LINENO.*/&-/ 19818 t lineno 19819 b 19820 :lineno 19821 N 19822 :loop 19823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 19824 t loop 19825 s/-\n.*// 19826 ' >$as_me.lineno && 19827 chmod +x "$as_me.lineno" || 19828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 19829 { (exit 1); exit 1; }; } 19830 19831 # Don't try to exec as it changes $[0], causing all sort of problems 19832 # (the dirname of $[0] is not the place where we might find the 19833 # original and so on. Autoconf is especially sensitive to this). 19834 . "./$as_me.lineno" 19835 # Exit status is that of the last command. 19836 exit 19837} 19838 19839 19840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19841 as_dirname=dirname 19842else 19843 as_dirname=false 19844fi 19845 19846ECHO_C= ECHO_N= ECHO_T= 19847case `echo -n x` in 19848-n*) 19849 case `echo 'x\c'` in 19850 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19851 *) ECHO_C='\c';; 19852 esac;; 19853*) 19854 ECHO_N='-n';; 19855esac 19856 19857if expr a : '\(a\)' >/dev/null 2>&1 && 19858 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19859 as_expr=expr 19860else 19861 as_expr=false 19862fi 19863 19864rm -f conf$$ conf$$.exe conf$$.file 19865if test -d conf$$.dir; then 19866 rm -f conf$$.dir/conf$$.file 19867else 19868 rm -f conf$$.dir 19869 mkdir conf$$.dir 19870fi 19871echo >conf$$.file 19872if ln -s conf$$.file conf$$ 2>/dev/null; then 19873 as_ln_s='ln -s' 19874 # ... but there are two gotchas: 19875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19877 # In both cases, we have to default to `cp -p'. 19878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19879 as_ln_s='cp -p' 19880elif ln conf$$.file conf$$ 2>/dev/null; then 19881 as_ln_s=ln 19882else 19883 as_ln_s='cp -p' 19884fi 19885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19886rmdir conf$$.dir 2>/dev/null 19887 19888if mkdir -p . 2>/dev/null; then 19889 as_mkdir_p=: 19890else 19891 test -d ./-p && rmdir ./-p 19892 as_mkdir_p=false 19893fi 19894 19895if test -x / >/dev/null 2>&1; then 19896 as_test_x='test -x' 19897else 19898 if ls -dL / >/dev/null 2>&1; then 19899 as_ls_L_option=L 19900 else 19901 as_ls_L_option= 19902 fi 19903 as_test_x=' 19904 eval sh -c '\'' 19905 if test -d "$1"; then 19906 test -d "$1/."; 19907 else 19908 case $1 in 19909 -*)set "./$1";; 19910 esac; 19911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 19912 ???[sx]*):;;*)false;;esac;fi 19913 '\'' sh 19914 ' 19915fi 19916as_executable_p=$as_test_x 19917 19918# Sed expression to map a string onto a valid CPP name. 19919as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19920 19921# Sed expression to map a string onto a valid variable name. 19922as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19923 19924 19925exec 6>&1 19926 19927# Save the log message, to keep $[0] and so on meaningful, and to 19928# report actual input values of CONFIG_FILES etc. instead of their 19929# values after options handling. 19930ac_log=" 19931This file was extended by $as_me, which was 19932generated by GNU Autoconf 2.61. Invocation command line was 19933 19934 CONFIG_FILES = $CONFIG_FILES 19935 CONFIG_HEADERS = $CONFIG_HEADERS 19936 CONFIG_LINKS = $CONFIG_LINKS 19937 CONFIG_COMMANDS = $CONFIG_COMMANDS 19938 $ $0 $@ 19939 19940on `(hostname || uname -n) 2>/dev/null | sed 1q` 19941" 19942 19943_ACEOF 19944 19945cat >>$CONFIG_STATUS <<_ACEOF 19946# Files that config.status was made for. 19947config_files="$ac_config_files" 19948config_headers="$ac_config_headers" 19949config_commands="$ac_config_commands" 19950 19951_ACEOF 19952 19953cat >>$CONFIG_STATUS <<\_ACEOF 19954ac_cs_usage="\ 19955\`$as_me' instantiates files from templates according to the 19956current configuration. 19957 19958Usage: $0 [OPTIONS] [FILE]... 19959 19960 -h, --help print this help, then exit 19961 -V, --version print version number and configuration settings, then exit 19962 -q, --quiet do not print progress messages 19963 -d, --debug don't remove temporary files 19964 --recheck update $as_me by reconfiguring in the same conditions 19965 --file=FILE[:TEMPLATE] 19966 instantiate the configuration file FILE 19967 --header=FILE[:TEMPLATE] 19968 instantiate the configuration header FILE 19969 19970Configuration files: 19971$config_files 19972 19973Configuration headers: 19974$config_headers 19975 19976Configuration commands: 19977$config_commands 19978 19979Report bugs to <bug-autoconf@gnu.org>." 19980 19981_ACEOF 19982cat >>$CONFIG_STATUS <<_ACEOF 19983ac_cs_version="\\ 19984config.status 19985configured by $0, generated by GNU Autoconf 2.61, 19986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 19987 19988Copyright (C) 2006 Free Software Foundation, Inc. 19989This config.status script is free software; the Free Software Foundation 19990gives unlimited permission to copy, distribute and modify it." 19991 19992ac_pwd='$ac_pwd' 19993srcdir='$srcdir' 19994INSTALL='$INSTALL' 19995_ACEOF 19996 19997cat >>$CONFIG_STATUS <<\_ACEOF 19998# If no file are specified by the user, then we need to provide default 19999# value. By we need to know if files were specified by the user. 20000ac_need_defaults=: 20001while test $# != 0 20002do 20003 case $1 in 20004 --*=*) 20005 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20007 ac_shift=: 20008 ;; 20009 *) 20010 ac_option=$1 20011 ac_optarg=$2 20012 ac_shift=shift 20013 ;; 20014 esac 20015 20016 case $ac_option in 20017 # Handling of the options. 20018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20019 ac_cs_recheck=: ;; 20020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20021 echo "$ac_cs_version"; exit ;; 20022 --debug | --debu | --deb | --de | --d | -d ) 20023 debug=: ;; 20024 --file | --fil | --fi | --f ) 20025 $ac_shift 20026 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20027 ac_need_defaults=false;; 20028 --header | --heade | --head | --hea ) 20029 $ac_shift 20030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20031 ac_need_defaults=false;; 20032 --he | --h) 20033 # Conflict between --help and --header 20034 { echo "$as_me: error: ambiguous option: $1 20035Try \`$0 --help' for more information." >&2 20036 { (exit 1); exit 1; }; };; 20037 --help | --hel | -h ) 20038 echo "$ac_cs_usage"; exit ;; 20039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20040 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20041 ac_cs_silent=: ;; 20042 20043 # This is an error. 20044 -*) { echo "$as_me: error: unrecognized option: $1 20045Try \`$0 --help' for more information." >&2 20046 { (exit 1); exit 1; }; } ;; 20047 20048 *) ac_config_targets="$ac_config_targets $1" 20049 ac_need_defaults=false ;; 20050 20051 esac 20052 shift 20053done 20054 20055ac_configure_extra_args= 20056 20057if $ac_cs_silent; then 20058 exec 6>/dev/null 20059 ac_configure_extra_args="$ac_configure_extra_args --silent" 20060fi 20061 20062_ACEOF 20063cat >>$CONFIG_STATUS <<_ACEOF 20064if \$ac_cs_recheck; then 20065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20066 CONFIG_SHELL=$SHELL 20067 export CONFIG_SHELL 20068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20069fi 20070 20071_ACEOF 20072cat >>$CONFIG_STATUS <<\_ACEOF 20073exec 5>>config.log 20074{ 20075 echo 20076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20077## Running $as_me. ## 20078_ASBOX 20079 echo "$ac_log" 20080} >&5 20081 20082_ACEOF 20083cat >>$CONFIG_STATUS <<_ACEOF 20084# 20085# INIT-COMMANDS 20086# 20087AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20088 20089_ACEOF 20090 20091cat >>$CONFIG_STATUS <<\_ACEOF 20092 20093# Handling of arguments. 20094for ac_config_target in $ac_config_targets 20095do 20096 case $ac_config_target in 20097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20100 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20101 20102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20103echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20104 { (exit 1); exit 1; }; };; 20105 esac 20106done 20107 20108 20109# If the user did not use the arguments to specify the items to instantiate, 20110# then the envvar interface is used. Set only those that are not. 20111# We use the long form for the default assignment because of an extremely 20112# bizarre bug on SunOS 4.1.3. 20113if $ac_need_defaults; then 20114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20117fi 20118 20119# Have a temporary directory for convenience. Make it in the build tree 20120# simply because there is no reason against having it here, and in addition, 20121# creating and moving files from /tmp can sometimes cause problems. 20122# Hook for its removal unless debugging. 20123# Note that there is a small window in which the directory will not be cleaned: 20124# after its creation but before its name has been assigned to `$tmp'. 20125$debug || 20126{ 20127 tmp= 20128 trap 'exit_status=$? 20129 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20130' 0 20131 trap '{ (exit 1); exit 1; }' 1 2 13 15 20132} 20133# Create a (secure) tmp directory for tmp files. 20134 20135{ 20136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20137 test -n "$tmp" && test -d "$tmp" 20138} || 20139{ 20140 tmp=./conf$$-$RANDOM 20141 (umask 077 && mkdir "$tmp") 20142} || 20143{ 20144 echo "$me: cannot create a temporary directory in ." >&2 20145 { (exit 1); exit 1; } 20146} 20147 20148# 20149# Set up the sed scripts for CONFIG_FILES section. 20150# 20151 20152# No need to generate the scripts if there are no CONFIG_FILES. 20153# This happens for instance when ./config.status config.h 20154if test -n "$CONFIG_FILES"; then 20155 20156_ACEOF 20157 20158 20159 20160ac_delim='%!_!# ' 20161for ac_last_try in false false false false false :; do 20162 cat >conf$$subs.sed <<_ACEOF 20163SHELL!$SHELL$ac_delim 20164PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20165PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20166PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20167PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20168PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20169PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20170exec_prefix!$exec_prefix$ac_delim 20171prefix!$prefix$ac_delim 20172program_transform_name!$program_transform_name$ac_delim 20173bindir!$bindir$ac_delim 20174sbindir!$sbindir$ac_delim 20175libexecdir!$libexecdir$ac_delim 20176datarootdir!$datarootdir$ac_delim 20177datadir!$datadir$ac_delim 20178sysconfdir!$sysconfdir$ac_delim 20179sharedstatedir!$sharedstatedir$ac_delim 20180localstatedir!$localstatedir$ac_delim 20181includedir!$includedir$ac_delim 20182oldincludedir!$oldincludedir$ac_delim 20183docdir!$docdir$ac_delim 20184infodir!$infodir$ac_delim 20185htmldir!$htmldir$ac_delim 20186dvidir!$dvidir$ac_delim 20187pdfdir!$pdfdir$ac_delim 20188psdir!$psdir$ac_delim 20189libdir!$libdir$ac_delim 20190localedir!$localedir$ac_delim 20191mandir!$mandir$ac_delim 20192DEFS!$DEFS$ac_delim 20193ECHO_C!$ECHO_C$ac_delim 20194ECHO_N!$ECHO_N$ac_delim 20195ECHO_T!$ECHO_T$ac_delim 20196LIBS!$LIBS$ac_delim 20197build_alias!$build_alias$ac_delim 20198host_alias!$host_alias$ac_delim 20199target_alias!$target_alias$ac_delim 20200INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20201INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20202INSTALL_DATA!$INSTALL_DATA$ac_delim 20203CYGPATH_W!$CYGPATH_W$ac_delim 20204PACKAGE!$PACKAGE$ac_delim 20205VERSION!$VERSION$ac_delim 20206ACLOCAL!$ACLOCAL$ac_delim 20207AUTOCONF!$AUTOCONF$ac_delim 20208AUTOMAKE!$AUTOMAKE$ac_delim 20209AUTOHEADER!$AUTOHEADER$ac_delim 20210MAKEINFO!$MAKEINFO$ac_delim 20211install_sh!$install_sh$ac_delim 20212STRIP!$STRIP$ac_delim 20213INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20214mkdir_p!$mkdir_p$ac_delim 20215AWK!$AWK$ac_delim 20216SET_MAKE!$SET_MAKE$ac_delim 20217am__leading_dot!$am__leading_dot$ac_delim 20218AMTAR!$AMTAR$ac_delim 20219am__tar!$am__tar$ac_delim 20220am__untar!$am__untar$ac_delim 20221CC!$CC$ac_delim 20222CFLAGS!$CFLAGS$ac_delim 20223LDFLAGS!$LDFLAGS$ac_delim 20224CPPFLAGS!$CPPFLAGS$ac_delim 20225ac_ct_CC!$ac_ct_CC$ac_delim 20226EXEEXT!$EXEEXT$ac_delim 20227OBJEXT!$OBJEXT$ac_delim 20228DEPDIR!$DEPDIR$ac_delim 20229am__include!$am__include$ac_delim 20230am__quote!$am__quote$ac_delim 20231AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20232AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20233AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20234CCDEPMODE!$CCDEPMODE$ac_delim 20235am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20236am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20237build!$build$ac_delim 20238build_cpu!$build_cpu$ac_delim 20239build_vendor!$build_vendor$ac_delim 20240build_os!$build_os$ac_delim 20241host!$host$ac_delim 20242host_cpu!$host_cpu$ac_delim 20243host_vendor!$host_vendor$ac_delim 20244host_os!$host_os$ac_delim 20245SED!$SED$ac_delim 20246GREP!$GREP$ac_delim 20247EGREP!$EGREP$ac_delim 20248LN_S!$LN_S$ac_delim 20249ECHO!$ECHO$ac_delim 20250AR!$AR$ac_delim 20251RANLIB!$RANLIB$ac_delim 20252CPP!$CPP$ac_delim 20253CXX!$CXX$ac_delim 20254CXXFLAGS!$CXXFLAGS$ac_delim 20255ac_ct_CXX!$ac_ct_CXX$ac_delim 20256CXXDEPMODE!$CXXDEPMODE$ac_delim 20257am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20258am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20259CXXCPP!$CXXCPP$ac_delim 20260_ACEOF 20261 20262 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20263 break 20264 elif $ac_last_try; then 20265 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20266echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20267 { (exit 1); exit 1; }; } 20268 else 20269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20270 fi 20271done 20272 20273ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20274if test -n "$ac_eof"; then 20275 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20276 ac_eof=`expr $ac_eof + 1` 20277fi 20278 20279cat >>$CONFIG_STATUS <<_ACEOF 20280cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20282_ACEOF 20283sed ' 20284s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20285s/^/s,@/; s/!/@,|#_!!_#|/ 20286:n 20287t n 20288s/'"$ac_delim"'$/,g/; t 20289s/$/\\/; p 20290N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20291' >>$CONFIG_STATUS <conf$$subs.sed 20292rm -f conf$$subs.sed 20293cat >>$CONFIG_STATUS <<_ACEOF 20294CEOF$ac_eof 20295_ACEOF 20296 20297 20298ac_delim='%!_!# ' 20299for ac_last_try in false false false false false :; do 20300 cat >conf$$subs.sed <<_ACEOF 20301F77!$F77$ac_delim 20302FFLAGS!$FFLAGS$ac_delim 20303ac_ct_F77!$ac_ct_F77$ac_delim 20304LIBTOOL!$LIBTOOL$ac_delim 20305LIBOBJS!$LIBOBJS$ac_delim 20306LTLIBOBJS!$LTLIBOBJS$ac_delim 20307_ACEOF 20308 20309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then 20310 break 20311 elif $ac_last_try; then 20312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20313echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20314 { (exit 1); exit 1; }; } 20315 else 20316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20317 fi 20318done 20319 20320ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20321if test -n "$ac_eof"; then 20322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20323 ac_eof=`expr $ac_eof + 1` 20324fi 20325 20326cat >>$CONFIG_STATUS <<_ACEOF 20327cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20328/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20329_ACEOF 20330sed ' 20331s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20332s/^/s,@/; s/!/@,|#_!!_#|/ 20333:n 20334t n 20335s/'"$ac_delim"'$/,g/; t 20336s/$/\\/; p 20337N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20338' >>$CONFIG_STATUS <conf$$subs.sed 20339rm -f conf$$subs.sed 20340cat >>$CONFIG_STATUS <<_ACEOF 20341:end 20342s/|#_!!_#|//g 20343CEOF$ac_eof 20344_ACEOF 20345 20346 20347# VPATH may cause trouble with some makes, so we remove $(srcdir), 20348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20349# trailing colons and then remove the whole line if VPATH becomes empty 20350# (actually we leave an empty line to preserve line numbers). 20351if test "x$srcdir" = x.; then 20352 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20353s/:*\$(srcdir):*/:/ 20354s/:*\${srcdir}:*/:/ 20355s/:*@srcdir@:*/:/ 20356s/^\([^=]*=[ ]*\):*/\1/ 20357s/:*$// 20358s/^[^=]*=[ ]*$// 20359}' 20360fi 20361 20362cat >>$CONFIG_STATUS <<\_ACEOF 20363fi # test -n "$CONFIG_FILES" 20364 20365 20366for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20367do 20368 case $ac_tag in 20369 :[FHLC]) ac_mode=$ac_tag; continue;; 20370 esac 20371 case $ac_mode$ac_tag in 20372 :[FHL]*:*);; 20373 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20374echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20375 { (exit 1); exit 1; }; };; 20376 :[FH]-) ac_tag=-:-;; 20377 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20378 esac 20379 ac_save_IFS=$IFS 20380 IFS=: 20381 set x $ac_tag 20382 IFS=$ac_save_IFS 20383 shift 20384 ac_file=$1 20385 shift 20386 20387 case $ac_mode in 20388 :L) ac_source=$1;; 20389 :[FH]) 20390 ac_file_inputs= 20391 for ac_f 20392 do 20393 case $ac_f in 20394 -) ac_f="$tmp/stdin";; 20395 *) # Look for the file first in the build tree, then in the source tree 20396 # (if the path is not absolute). The absolute path cannot be DOS-style, 20397 # because $ac_f cannot contain `:'. 20398 test -f "$ac_f" || 20399 case $ac_f in 20400 [\\/$]*) false;; 20401 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20402 esac || 20403 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20404echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20405 { (exit 1); exit 1; }; };; 20406 esac 20407 ac_file_inputs="$ac_file_inputs $ac_f" 20408 done 20409 20410 # Let's still pretend it is `configure' which instantiates (i.e., don't 20411 # use $as_me), people would be surprised to read: 20412 # /* config.h. Generated by config.status. */ 20413 configure_input="Generated from "`IFS=: 20414 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20415 if test x"$ac_file" != x-; then 20416 configure_input="$ac_file. $configure_input" 20417 { echo "$as_me:$LINENO: creating $ac_file" >&5 20418echo "$as_me: creating $ac_file" >&6;} 20419 fi 20420 20421 case $ac_tag in 20422 *:-:* | *:-) cat >"$tmp/stdin";; 20423 esac 20424 ;; 20425 esac 20426 20427 ac_dir=`$as_dirname -- "$ac_file" || 20428$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20429 X"$ac_file" : 'X\(//\)[^/]' \| \ 20430 X"$ac_file" : 'X\(//\)$' \| \ 20431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20432echo X"$ac_file" | 20433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20434 s//\1/ 20435 q 20436 } 20437 /^X\(\/\/\)[^/].*/{ 20438 s//\1/ 20439 q 20440 } 20441 /^X\(\/\/\)$/{ 20442 s//\1/ 20443 q 20444 } 20445 /^X\(\/\).*/{ 20446 s//\1/ 20447 q 20448 } 20449 s/.*/./; q'` 20450 { as_dir="$ac_dir" 20451 case $as_dir in #( 20452 -*) as_dir=./$as_dir;; 20453 esac 20454 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20455 as_dirs= 20456 while :; do 20457 case $as_dir in #( 20458 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20459 *) as_qdir=$as_dir;; 20460 esac 20461 as_dirs="'$as_qdir' $as_dirs" 20462 as_dir=`$as_dirname -- "$as_dir" || 20463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20464 X"$as_dir" : 'X\(//\)[^/]' \| \ 20465 X"$as_dir" : 'X\(//\)$' \| \ 20466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20467echo X"$as_dir" | 20468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20469 s//\1/ 20470 q 20471 } 20472 /^X\(\/\/\)[^/].*/{ 20473 s//\1/ 20474 q 20475 } 20476 /^X\(\/\/\)$/{ 20477 s//\1/ 20478 q 20479 } 20480 /^X\(\/\).*/{ 20481 s//\1/ 20482 q 20483 } 20484 s/.*/./; q'` 20485 test -d "$as_dir" && break 20486 done 20487 test -z "$as_dirs" || eval "mkdir $as_dirs" 20488 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20489echo "$as_me: error: cannot create directory $as_dir" >&2;} 20490 { (exit 1); exit 1; }; }; } 20491 ac_builddir=. 20492 20493case "$ac_dir" in 20494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20495*) 20496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20497 # A ".." for each directory in $ac_dir_suffix. 20498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20499 case $ac_top_builddir_sub in 20500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20502 esac ;; 20503esac 20504ac_abs_top_builddir=$ac_pwd 20505ac_abs_builddir=$ac_pwd$ac_dir_suffix 20506# for backward compatibility: 20507ac_top_builddir=$ac_top_build_prefix 20508 20509case $srcdir in 20510 .) # We are building in place. 20511 ac_srcdir=. 20512 ac_top_srcdir=$ac_top_builddir_sub 20513 ac_abs_top_srcdir=$ac_pwd ;; 20514 [\\/]* | ?:[\\/]* ) # Absolute name. 20515 ac_srcdir=$srcdir$ac_dir_suffix; 20516 ac_top_srcdir=$srcdir 20517 ac_abs_top_srcdir=$srcdir ;; 20518 *) # Relative name. 20519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20520 ac_top_srcdir=$ac_top_build_prefix$srcdir 20521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20522esac 20523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20524 20525 20526 case $ac_mode in 20527 :F) 20528 # 20529 # CONFIG_FILE 20530 # 20531 20532 case $INSTALL in 20533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20534 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20535 esac 20536_ACEOF 20537 20538cat >>$CONFIG_STATUS <<\_ACEOF 20539# If the template does not know about datarootdir, expand it. 20540# FIXME: This hack should be removed a few years after 2.60. 20541ac_datarootdir_hack=; ac_datarootdir_seen= 20542 20543case `sed -n '/datarootdir/ { 20544 p 20545 q 20546} 20547/@datadir@/p 20548/@docdir@/p 20549/@infodir@/p 20550/@localedir@/p 20551/@mandir@/p 20552' $ac_file_inputs` in 20553*datarootdir*) ac_datarootdir_seen=yes;; 20554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20556echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20557_ACEOF 20558cat >>$CONFIG_STATUS <<_ACEOF 20559 ac_datarootdir_hack=' 20560 s&@datadir@&$datadir&g 20561 s&@docdir@&$docdir&g 20562 s&@infodir@&$infodir&g 20563 s&@localedir@&$localedir&g 20564 s&@mandir@&$mandir&g 20565 s&\\\${datarootdir}&$datarootdir&g' ;; 20566esac 20567_ACEOF 20568 20569# Neutralize VPATH when `$srcdir' = `.'. 20570# Shell code in configure.ac might set extrasub. 20571# FIXME: do we really want to maintain this feature? 20572cat >>$CONFIG_STATUS <<_ACEOF 20573 sed "$ac_vpsub 20574$extrasub 20575_ACEOF 20576cat >>$CONFIG_STATUS <<\_ACEOF 20577:t 20578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20579s&@configure_input@&$configure_input&;t t 20580s&@top_builddir@&$ac_top_builddir_sub&;t t 20581s&@srcdir@&$ac_srcdir&;t t 20582s&@abs_srcdir@&$ac_abs_srcdir&;t t 20583s&@top_srcdir@&$ac_top_srcdir&;t t 20584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20585s&@builddir@&$ac_builddir&;t t 20586s&@abs_builddir@&$ac_abs_builddir&;t t 20587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20588s&@INSTALL@&$ac_INSTALL&;t t 20589$ac_datarootdir_hack 20590" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20591 20592test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20593 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20595 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20596which seems to be undefined. Please make sure it is defined." >&5 20597echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20598which seems to be undefined. Please make sure it is defined." >&2;} 20599 20600 rm -f "$tmp/stdin" 20601 case $ac_file in 20602 -) cat "$tmp/out"; rm -f "$tmp/out";; 20603 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20604 esac 20605 ;; 20606 :H) 20607 # 20608 # CONFIG_HEADER 20609 # 20610_ACEOF 20611 20612# Transform confdefs.h into a sed script `conftest.defines', that 20613# substitutes the proper values into config.h.in to produce config.h. 20614rm -f conftest.defines conftest.tail 20615# First, append a space to every undef/define line, to ease matching. 20616echo 's/$/ /' >conftest.defines 20617# Then, protect against being on the right side of a sed subst, or in 20618# an unquoted here document, in config.status. If some macros were 20619# called several times there might be several #defines for the same 20620# symbol, which is useless. But do not sort them, since the last 20621# AC_DEFINE must be honored. 20622ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20623# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20624# NAME is the cpp macro being defined, VALUE is the value it is being given. 20625# PARAMS is the parameter list in the macro definition--in most cases, it's 20626# just an empty string. 20627ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20628ac_dB='\\)[ (].*,\\1define\\2' 20629ac_dC=' ' 20630ac_dD=' ,' 20631 20632uniq confdefs.h | 20633 sed -n ' 20634 t rset 20635 :rset 20636 s/^[ ]*#[ ]*define[ ][ ]*// 20637 t ok 20638 d 20639 :ok 20640 s/[\\&,]/\\&/g 20641 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20642 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20643 ' >>conftest.defines 20644 20645# Remove the space that was appended to ease matching. 20646# Then replace #undef with comments. This is necessary, for 20647# example, in the case of _POSIX_SOURCE, which is predefined and required 20648# on some systems where configure will not decide to define it. 20649# (The regexp can be short, since the line contains either #define or #undef.) 20650echo 's/ $// 20651s,^[ #]*u.*,/* & */,' >>conftest.defines 20652 20653# Break up conftest.defines: 20654ac_max_sed_lines=50 20655 20656# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20657# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20658# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20659# et cetera. 20660ac_in='$ac_file_inputs' 20661ac_out='"$tmp/out1"' 20662ac_nxt='"$tmp/out2"' 20663 20664while : 20665do 20666 # Write a here document: 20667 cat >>$CONFIG_STATUS <<_ACEOF 20668 # First, check the format of the line: 20669 cat >"\$tmp/defines.sed" <<\\CEOF 20670/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20671/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20672b 20673:def 20674_ACEOF 20675 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20676 echo 'CEOF 20677 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20678 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20679 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20680 grep . conftest.tail >/dev/null || break 20681 rm -f conftest.defines 20682 mv conftest.tail conftest.defines 20683done 20684rm -f conftest.defines conftest.tail 20685 20686echo "ac_result=$ac_in" >>$CONFIG_STATUS 20687cat >>$CONFIG_STATUS <<\_ACEOF 20688 if test x"$ac_file" != x-; then 20689 echo "/* $configure_input */" >"$tmp/config.h" 20690 cat "$ac_result" >>"$tmp/config.h" 20691 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20692 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20693echo "$as_me: $ac_file is unchanged" >&6;} 20694 else 20695 rm -f $ac_file 20696 mv "$tmp/config.h" $ac_file 20697 fi 20698 else 20699 echo "/* $configure_input */" 20700 cat "$ac_result" 20701 fi 20702 rm -f "$tmp/out12" 20703# Compute $ac_file's index in $config_headers. 20704_am_stamp_count=1 20705for _am_header in $config_headers :; do 20706 case $_am_header in 20707 $ac_file | $ac_file:* ) 20708 break ;; 20709 * ) 20710 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20711 esac 20712done 20713echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 20714$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20715 X$ac_file : 'X\(//\)[^/]' \| \ 20716 X$ac_file : 'X\(//\)$' \| \ 20717 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 20718echo X$ac_file | 20719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20720 s//\1/ 20721 q 20722 } 20723 /^X\(\/\/\)[^/].*/{ 20724 s//\1/ 20725 q 20726 } 20727 /^X\(\/\/\)$/{ 20728 s//\1/ 20729 q 20730 } 20731 /^X\(\/\).*/{ 20732 s//\1/ 20733 q 20734 } 20735 s/.*/./; q'`/stamp-h$_am_stamp_count 20736 ;; 20737 20738 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20739echo "$as_me: executing $ac_file commands" >&6;} 20740 ;; 20741 esac 20742 20743 20744 case $ac_file$ac_mode in 20745 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20746 # Strip MF so we end up with the name of the file. 20747 mf=`echo "$mf" | sed -e 's/:.*$//'` 20748 # Check whether this is an Automake generated Makefile or not. 20749 # We used to match only the files named `Makefile.in', but 20750 # some people rename them; so instead we look at the file content. 20751 # Grep'ing the first line is not enough: some people post-process 20752 # each Makefile.in and add a new line on top of each file to say so. 20753 # So let's grep whole file. 20754 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20755 dirpart=`$as_dirname -- "$mf" || 20756$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20757 X"$mf" : 'X\(//\)[^/]' \| \ 20758 X"$mf" : 'X\(//\)$' \| \ 20759 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20760echo X"$mf" | 20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20762 s//\1/ 20763 q 20764 } 20765 /^X\(\/\/\)[^/].*/{ 20766 s//\1/ 20767 q 20768 } 20769 /^X\(\/\/\)$/{ 20770 s//\1/ 20771 q 20772 } 20773 /^X\(\/\).*/{ 20774 s//\1/ 20775 q 20776 } 20777 s/.*/./; q'` 20778 else 20779 continue 20780 fi 20781 # Extract the definition of DEPDIR, am__include, and am__quote 20782 # from the Makefile without running `make'. 20783 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20784 test -z "$DEPDIR" && continue 20785 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20786 test -z "am__include" && continue 20787 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20788 # When using ansi2knr, U may be empty or an underscore; expand it 20789 U=`sed -n 's/^U = //p' < "$mf"` 20790 # Find all dependency output files, they are included files with 20791 # $(DEPDIR) in their names. We invoke sed twice because it is the 20792 # simplest approach to changing $(DEPDIR) to its actual value in the 20793 # expansion. 20794 for file in `sed -n " 20795 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20796 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20797 # Make sure the directory exists. 20798 test -f "$dirpart/$file" && continue 20799 fdir=`$as_dirname -- "$file" || 20800$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20801 X"$file" : 'X\(//\)[^/]' \| \ 20802 X"$file" : 'X\(//\)$' \| \ 20803 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20804echo X"$file" | 20805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20806 s//\1/ 20807 q 20808 } 20809 /^X\(\/\/\)[^/].*/{ 20810 s//\1/ 20811 q 20812 } 20813 /^X\(\/\/\)$/{ 20814 s//\1/ 20815 q 20816 } 20817 /^X\(\/\).*/{ 20818 s//\1/ 20819 q 20820 } 20821 s/.*/./; q'` 20822 { as_dir=$dirpart/$fdir 20823 case $as_dir in #( 20824 -*) as_dir=./$as_dir;; 20825 esac 20826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20827 as_dirs= 20828 while :; do 20829 case $as_dir in #( 20830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20831 *) as_qdir=$as_dir;; 20832 esac 20833 as_dirs="'$as_qdir' $as_dirs" 20834 as_dir=`$as_dirname -- "$as_dir" || 20835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20836 X"$as_dir" : 'X\(//\)[^/]' \| \ 20837 X"$as_dir" : 'X\(//\)$' \| \ 20838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20839echo X"$as_dir" | 20840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20841 s//\1/ 20842 q 20843 } 20844 /^X\(\/\/\)[^/].*/{ 20845 s//\1/ 20846 q 20847 } 20848 /^X\(\/\/\)$/{ 20849 s//\1/ 20850 q 20851 } 20852 /^X\(\/\).*/{ 20853 s//\1/ 20854 q 20855 } 20856 s/.*/./; q'` 20857 test -d "$as_dir" && break 20858 done 20859 test -z "$as_dirs" || eval "mkdir $as_dirs" 20860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20861echo "$as_me: error: cannot create directory $as_dir" >&2;} 20862 { (exit 1); exit 1; }; }; } 20863 # echo "creating $dirpart/$file" 20864 echo '# dummy' > "$dirpart/$file" 20865 done 20866done 20867 ;; 20868 20869 esac 20870done # for ac_tag 20871 20872 20873{ (exit 0); exit 0; } 20874_ACEOF 20875chmod +x $CONFIG_STATUS 20876ac_clean_files=$ac_clean_files_save 20877 20878 20879# configure is writing to config.log, and then calls config.status. 20880# config.status does its own redirection, appending to config.log. 20881# Unfortunately, on DOS this fails, as config.log is still kept open 20882# by configure, so config.status won't be able to write to it; its 20883# output is simply discarded. So we exec the FD to /dev/null, 20884# effectively closing config.log, so it can be properly (re)opened and 20885# appended to by config.status. When coming back to configure, we 20886# need to make the FD available again. 20887if test "$no_create" != yes; then 20888 ac_cs_success=: 20889 ac_config_status_args= 20890 test "$silent" = yes && 20891 ac_config_status_args="$ac_config_status_args --quiet" 20892 exec 5>/dev/null 20893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20894 exec 5>>config.log 20895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20896 # would make configure fail if this is the last instruction. 20897 $ac_cs_success || { (exit 1); exit 1; } 20898fi 20899 20900 20901