1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60. 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 Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# IFS 58# We need space, tab and new line, in precisely that order. Quoting is 59# there to prevent editors from complaining about space-tab. 60# (If _AS_PATH_WALK were called with IFS unset, it would disable word 61# splitting by setting IFS to empty value.) 62as_nl=' 63' 64IFS=" "" $as_nl" 65 66# Find who we are. Look in the path if we contain no directory separator. 67case $0 in 68 *[\\/]* ) as_myself=$0 ;; 69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70for as_dir in $PATH 71do 72 IFS=$as_save_IFS 73 test -z "$as_dir" && as_dir=. 74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 75done 76IFS=$as_save_IFS 77 78 ;; 79esac 80# We did not find ourselves, most probably we were run as `sh COMMAND' 81# in which case we are not to be found in the path. 82if test "x$as_myself" = x; then 83 as_myself=$0 84fi 85if test ! -f "$as_myself"; then 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 87 { (exit 1); exit 1; } 88fi 89 90# Work around bugs in pre-3.0 UWIN ksh. 91for as_var in ENV MAIL MAILPATH 92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 93done 94PS1='$ ' 95PS2='> ' 96PS4='+ ' 97 98# NLS nuisances. 99for as_var in \ 100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 102 LC_TELEPHONE LC_TIME 103do 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 105 eval $as_var=C; export $as_var 106 else 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 108 fi 109done 110 111# Required to use basename. 112if expr a : '\(a\)' >/dev/null 2>&1 && 113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 114 as_expr=expr 115else 116 as_expr=false 117fi 118 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120 as_basename=basename 121else 122 as_basename=false 123fi 124 125 126# Name of the executable. 127as_me=`$as_basename -- "$0" || 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 129 X"$0" : 'X\(//\)$' \| \ 130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 131echo X/"$0" | 132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 133 s//\1/ 134 q 135 } 136 /^X\/\(\/\/\)$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\).*/{ 141 s//\1/ 142 q 143 } 144 s/.*/./; q'` 145 146# CDPATH. 147$as_unset CDPATH 148 149 150if test "x$CONFIG_SHELL" = x; then 151 if (eval ":") 2>/dev/null; then 152 as_have_required=yes 153else 154 as_have_required=no 155fi 156 157 if test $as_have_required = yes && (eval ": 158(as_func_return () { 159 (exit \$1) 160} 161as_func_success () { 162 as_func_return 0 163} 164as_func_failure () { 165 as_func_return 1 166} 167as_func_ret_success () { 168 return 0 169} 170as_func_ret_failure () { 171 return 1 172} 173 174exitcode=0 175if as_func_success; then 176 : 177else 178 exitcode=1 179 echo as_func_success failed. 180fi 181 182if as_func_failure; then 183 exitcode=1 184 echo as_func_failure succeeded. 185fi 186 187if as_func_ret_success; then 188 : 189else 190 exitcode=1 191 echo as_func_ret_success failed. 192fi 193 194if as_func_ret_failure; then 195 exitcode=1 196 echo as_func_ret_failure succeeded. 197fi 198 199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 200 : 201else 202 exitcode=1 203 echo positional parameters were not saved. 204fi 205 206test \$exitcode = 0) || { (exit 1); exit 1; } 207 208( 209 as_lineno_1=\$LINENO 210 as_lineno_2=\$LINENO 211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 213") 2> /dev/null; then 214 : 215else 216 as_candidate_shells= 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 case $as_dir in 223 /*) 224 for as_base in sh bash ksh sh5; do 225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 226 done;; 227 esac 228done 229IFS=$as_save_IFS 230 231 232 for as_shell in $as_candidate_shells $SHELL; do 233 # Try only shells that exist, to save several forks. 234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 { ("$as_shell") 2> /dev/null <<\_ASEOF 236# Be Bourne compatible 237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 emulate sh 239 NULLCMD=: 240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 241 # is contrary to our usage. Disable this feature. 242 alias -g '${1+"$@"}'='"$@"' 243 setopt NO_GLOB_SUBST 244else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246fi 247BIN_SH=xpg4; export BIN_SH # for Tru64 248DUALCASE=1; export DUALCASE # for MKS sh 249 250: 251_ASEOF 252}; then 253 CONFIG_SHELL=$as_shell 254 as_have_required=yes 255 if { "$as_shell" 2> /dev/null <<\_ASEOF 256# Be Bourne compatible 257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 emulate sh 259 NULLCMD=: 260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 261 # is contrary to our usage. Disable this feature. 262 alias -g '${1+"$@"}'='"$@"' 263 setopt NO_GLOB_SUBST 264else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266fi 267BIN_SH=xpg4; export BIN_SH # for Tru64 268DUALCASE=1; export DUALCASE # for MKS sh 269 270: 271(as_func_return () { 272 (exit $1) 273} 274as_func_success () { 275 as_func_return 0 276} 277as_func_failure () { 278 as_func_return 1 279} 280as_func_ret_success () { 281 return 0 282} 283as_func_ret_failure () { 284 return 1 285} 286 287exitcode=0 288if as_func_success; then 289 : 290else 291 exitcode=1 292 echo as_func_success failed. 293fi 294 295if as_func_failure; then 296 exitcode=1 297 echo as_func_failure succeeded. 298fi 299 300if as_func_ret_success; then 301 : 302else 303 exitcode=1 304 echo as_func_ret_success failed. 305fi 306 307if as_func_ret_failure; then 308 exitcode=1 309 echo as_func_ret_failure succeeded. 310fi 311 312if ( set x; as_func_ret_success y && test x = "$1" ); then 313 : 314else 315 exitcode=1 316 echo positional parameters were not saved. 317fi 318 319test $exitcode = 0) || { (exit 1); exit 1; } 320 321( 322 as_lineno_1=$LINENO 323 as_lineno_2=$LINENO 324 test "x$as_lineno_1" != "x$as_lineno_2" && 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 326 327_ASEOF 328}; then 329 break 330fi 331 332fi 333 334 done 335 336 if test "x$CONFIG_SHELL" != x; then 337 for as_var in BASH_ENV ENV 338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 339 done 340 export CONFIG_SHELL 341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 342fi 343 344 345 if test $as_have_required = no; then 346 echo This script requires a shell more modern than all the 347 echo shells that I found on your system. Please install a 348 echo modern shell, or manually run the script under such a 349 echo shell if you do have one. 350 { (exit 1); exit 1; } 351fi 352 353 354fi 355 356fi 357 358 359 360(eval "as_func_return () { 361 (exit \$1) 362} 363as_func_success () { 364 as_func_return 0 365} 366as_func_failure () { 367 as_func_return 1 368} 369as_func_ret_success () { 370 return 0 371} 372as_func_ret_failure () { 373 return 1 374} 375 376exitcode=0 377if as_func_success; then 378 : 379else 380 exitcode=1 381 echo as_func_success failed. 382fi 383 384if as_func_failure; then 385 exitcode=1 386 echo as_func_failure succeeded. 387fi 388 389if as_func_ret_success; then 390 : 391else 392 exitcode=1 393 echo as_func_ret_success failed. 394fi 395 396if as_func_ret_failure; then 397 exitcode=1 398 echo as_func_ret_failure succeeded. 399fi 400 401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 402 : 403else 404 exitcode=1 405 echo positional parameters were not saved. 406fi 407 408test \$exitcode = 0") || { 409 echo No shell found that supports shell functions. 410 echo Please tell autoconf@gnu.org about your system, 411 echo including any error possibly output before this 412 echo message 413} 414 415 416 417 as_lineno_1=$LINENO 418 as_lineno_2=$LINENO 419 test "x$as_lineno_1" != "x$as_lineno_2" && 420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 421 422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 423 # uniformly replaced by the line number. The first 'sed' inserts a 424 # line-number line after each line using $LINENO; the second 'sed' 425 # does the real work. The second script uses 'N' to pair each 426 # line-number line with the line containing $LINENO, and appends 427 # trailing '-' during substitution so that $LINENO is not a special 428 # case at line end. 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 430 # scripts with optimization help from Paolo Bonzini. Blame Lee 431 # E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 449 { (exit 1); exit 1; }; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466ECHO_C= ECHO_N= ECHO_T= 467case `echo -n x` in 468-n*) 469 case `echo 'x\c'` in 470 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 471 *) ECHO_C='\c';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477if expr a : '\(a\)' >/dev/null 2>&1 && 478 test "X`expr 00001 : '.*\(...\)'`" = X001; then 479 as_expr=expr 480else 481 as_expr=false 482fi 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 490fi 491echo >conf$$.file 492if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p=: 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as 516# systems may use methods other than mode bits to determine executability. 517cat >conf$$.file <<_ASEOF 518#! /bin/sh 519exit 0 520_ASEOF 521chmod +x conf$$.file 522if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524else 525 as_executable_p=: 526fi 527rm -f conf$$.file 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535 536 537 538# Check that we are running under the correct shell. 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541case X$ECHO in 542X*--fallback-echo) 543 # Remove one level of quotation (which was required for Make). 544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 545 ;; 546esac 547 548echo=${ECHO-echo} 549if test "X$1" = X--no-reexec; then 550 # Discard the --no-reexec flag, and continue. 551 shift 552elif test "X$1" = X--fallback-echo; then 553 # Avoid inline document here, it may be left over 554 : 555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 556 # Yippee, $echo works! 557 : 558else 559 # Restart under the correct shell. 560 exec $SHELL "$0" --no-reexec ${1+"$@"} 561fi 562 563if test "X$1" = X--fallback-echo; then 564 # used as fallback echo 565 shift 566 cat <<EOF 567$* 568EOF 569 exit 0 570fi 571 572# The HP-UX ksh and POSIX shell print the target directory to stdout 573# if CDPATH is set. 574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 575 576if test -z "$ECHO"; then 577if test "X${echo_test_string+set}" != Xset; then 578# find a string as large as possible, as long as the shell can cope with it 579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 581 if (echo_test_string=`eval $cmd`) 2>/dev/null && 582 echo_test_string=`eval $cmd` && 583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 584 then 585 break 586 fi 587 done 588fi 589 590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 592 test "X$echo_testing_string" = "X$echo_test_string"; then 593 : 594else 595 # The Solaris, AIX, and Digital Unix default echo programs unquote 596 # backslashes. This makes it impossible to quote backslashes using 597 # echo "$something" | sed 's/\\/\\\\/g' 598 # 599 # So, first we look for a working echo in the user's PATH. 600 601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 602 for dir in $PATH /usr/ucb; do 603 IFS="$lt_save_ifs" 604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 echo="$dir/echo" 609 break 610 fi 611 done 612 IFS="$lt_save_ifs" 613 614 if test "X$echo" = Xecho; then 615 # We didn't find a better echo, so look for alternatives. 616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 618 test "X$echo_testing_string" = "X$echo_test_string"; then 619 # This shell has a builtin print -r that does the trick. 620 echo='print -r' 621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 622 test "X$CONFIG_SHELL" != X/bin/ksh; then 623 # If we have ksh, try running configure again with it. 624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 625 export ORIGINAL_CONFIG_SHELL 626 CONFIG_SHELL=/bin/ksh 627 export CONFIG_SHELL 628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 629 else 630 # Try using printf. 631 echo='printf %s\n' 632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # Cool, printf works 636 : 637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 642 export CONFIG_SHELL 643 SHELL="$CONFIG_SHELL" 644 export SHELL 645 echo="$CONFIG_SHELL $0 --fallback-echo" 646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 647 test "X$echo_testing_string" = 'X\t' && 648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 echo="$CONFIG_SHELL $0 --fallback-echo" 651 else 652 # maybe with a smaller string... 653 prev=: 654 655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 657 then 658 break 659 fi 660 prev="$cmd" 661 done 662 663 if test "$prev" != 'sed 50q "$0"'; then 664 echo_test_string=`eval $prev` 665 export echo_test_string 666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 667 else 668 # Oops. We lost completely, so just stick with echo. 669 echo=echo 670 fi 671 fi 672 fi 673 fi 674fi 675fi 676 677# Copy echo and quote the copy suitably for passing to libtool from 678# the Makefile, instead of quoting the original, which is used later. 679ECHO=$echo 680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 682fi 683 684 685 686 687tagnames=${tagnames+${tagnames},}CXX 688 689tagnames=${tagnames+${tagnames},}F77 690 691exec 7<&0 </dev/null 6>&1 692 693# Name of the host. 694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 695# so uname gets run too. 696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 697 698# 699# Initializations. 700# 701ac_default_prefix=/usr/local 702ac_clean_files= 703ac_config_libobj_dir=. 704LIBOBJS= 705cross_compiling=no 706subdirs= 707MFLAGS= 708MAKEFLAGS= 709SHELL=${CONFIG_SHELL-/bin/sh} 710 711# Identity of this package. 712PACKAGE_NAME= 713PACKAGE_TARNAME= 714PACKAGE_VERSION= 715PACKAGE_STRING= 716PACKAGE_BUGREPORT= 717 718ac_unique_file="Makefile.am" 719# Factoring default headers for most tests. 720ac_includes_default="\ 721#include <stdio.h> 722#if HAVE_SYS_TYPES_H 723# include <sys/types.h> 724#endif 725#if HAVE_SYS_STAT_H 726# include <sys/stat.h> 727#endif 728#if STDC_HEADERS 729# include <stdlib.h> 730# include <stddef.h> 731#else 732# if HAVE_STDLIB_H 733# include <stdlib.h> 734# endif 735#endif 736#if HAVE_STRING_H 737# if !STDC_HEADERS && HAVE_MEMORY_H 738# include <memory.h> 739# endif 740# include <string.h> 741#endif 742#if HAVE_STRINGS_H 743# include <strings.h> 744#endif 745#if HAVE_INTTYPES_H 746# include <inttypes.h> 747#endif 748#if HAVE_STDINT_H 749# include <stdint.h> 750#endif 751#if HAVE_UNISTD_H 752# include <unistd.h> 753#endif" 754 755ac_subst_vars='SHELL 756PATH_SEPARATOR 757PACKAGE_NAME 758PACKAGE_TARNAME 759PACKAGE_VERSION 760PACKAGE_STRING 761PACKAGE_BUGREPORT 762exec_prefix 763prefix 764program_transform_name 765bindir 766sbindir 767libexecdir 768datarootdir 769datadir 770sysconfdir 771sharedstatedir 772localstatedir 773includedir 774oldincludedir 775docdir 776infodir 777htmldir 778dvidir 779pdfdir 780psdir 781libdir 782localedir 783mandir 784DEFS 785ECHO_C 786ECHO_N 787ECHO_T 788LIBS 789build_alias 790host_alias 791target_alias 792INSTALL_PROGRAM 793INSTALL_SCRIPT 794INSTALL_DATA 795CYGPATH_W 796PACKAGE 797VERSION 798ACLOCAL 799AUTOCONF 800AUTOMAKE 801AUTOHEADER 802MAKEINFO 803AMTAR 804install_sh 805STRIP 806INSTALL_STRIP_PROGRAM 807AWK 808SET_MAKE 809am__leading_dot 810build 811build_cpu 812build_vendor 813build_os 814host 815host_cpu 816host_vendor 817host_os 818CXX 819CXXFLAGS 820LDFLAGS 821CPPFLAGS 822ac_ct_CXX 823EXEEXT 824OBJEXT 825DEPDIR 826am__include 827am__quote 828AMDEP_TRUE 829AMDEP_FALSE 830AMDEPBACKSLASH 831CXXDEPMODE 832am__fastdepCXX_TRUE 833am__fastdepCXX_FALSE 834CC 835CFLAGS 836ac_ct_CC 837CCDEPMODE 838am__fastdepCC_TRUE 839am__fastdepCC_FALSE 840CPP 841LN_S 842GREP 843EGREP 844ECHO 845AR 846RANLIB 847CXXCPP 848F77 849FFLAGS 850ac_ct_F77 851LIBTOOL 852MAKEDEPEND 853LIBOBJS 854LTLIBOBJS' 855ac_subst_files='' 856 ac_precious_vars='build_alias 857host_alias 858target_alias 859CXX 860CXXFLAGS 861LDFLAGS 862CPPFLAGS 863CCC 864CC 865CFLAGS 866CPP 867CXXCPP 868F77 869FFLAGS' 870 871 872# Initialize some variables set by options. 873ac_init_help= 874ac_init_version=false 875# The variables have the same names as the options, with 876# dashes changed to underlines. 877cache_file=/dev/null 878exec_prefix=NONE 879no_create= 880no_recursion= 881prefix=NONE 882program_prefix=NONE 883program_suffix=NONE 884program_transform_name=s,x,x, 885silent= 886site= 887srcdir= 888verbose= 889x_includes=NONE 890x_libraries=NONE 891 892# Installation directory options. 893# These are left unexpanded so users can "make install exec_prefix=/foo" 894# and all the variables that are supposed to be based on exec_prefix 895# by default will actually change. 896# Use braces instead of parens because sh, perl, etc. also accept them. 897# (The list follows the same order as the GNU Coding Standards.) 898bindir='${exec_prefix}/bin' 899sbindir='${exec_prefix}/sbin' 900libexecdir='${exec_prefix}/libexec' 901datarootdir='${prefix}/share' 902datadir='${datarootdir}' 903sysconfdir='${prefix}/etc' 904sharedstatedir='${prefix}/com' 905localstatedir='${prefix}/var' 906includedir='${prefix}/include' 907oldincludedir='/usr/include' 908docdir='${datarootdir}/doc/${PACKAGE}' 909infodir='${datarootdir}/info' 910htmldir='${docdir}' 911dvidir='${docdir}' 912pdfdir='${docdir}' 913psdir='${docdir}' 914libdir='${exec_prefix}/lib' 915localedir='${datarootdir}/locale' 916mandir='${datarootdir}/man' 917 918ac_prev= 919ac_dashdash= 920for ac_option 921do 922 # If the previous option needs an argument, assign it. 923 if test -n "$ac_prev"; then 924 eval $ac_prev=\$ac_option 925 ac_prev= 926 continue 927 fi 928 929 case $ac_option in 930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 931 *) ac_optarg=yes ;; 932 esac 933 934 # Accept the important Cygnus configure options, so we can diagnose typos. 935 936 case $ac_dashdash$ac_option in 937 --) 938 ac_dashdash=yes ;; 939 940 -bindir | --bindir | --bindi | --bind | --bin | --bi) 941 ac_prev=bindir ;; 942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 943 bindir=$ac_optarg ;; 944 945 -build | --build | --buil | --bui | --bu) 946 ac_prev=build_alias ;; 947 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 948 build_alias=$ac_optarg ;; 949 950 -cache-file | --cache-file | --cache-fil | --cache-fi \ 951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 952 ac_prev=cache_file ;; 953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 955 cache_file=$ac_optarg ;; 956 957 --config-cache | -C) 958 cache_file=config.cache ;; 959 960 -datadir | --datadir | --datadi | --datad) 961 ac_prev=datadir ;; 962 -datadir=* | --datadir=* | --datadi=* | --datad=*) 963 datadir=$ac_optarg ;; 964 965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 966 | --dataroo | --dataro | --datar) 967 ac_prev=datarootdir ;; 968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 970 datarootdir=$ac_optarg ;; 971 972 -disable-* | --disable-*) 973 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 977 { (exit 1); exit 1; }; } 978 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 979 eval enable_$ac_feature=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1144 ac_prev=sbindir ;; 1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1146 | --sbi=* | --sb=*) 1147 sbindir=$ac_optarg ;; 1148 1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1151 | --sharedst | --shareds | --shared | --share | --shar \ 1152 | --sha | --sh) 1153 ac_prev=sharedstatedir ;; 1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1157 | --sha=* | --sh=*) 1158 sharedstatedir=$ac_optarg ;; 1159 1160 -site | --site | --sit) 1161 ac_prev=site ;; 1162 -site=* | --site=* | --sit=*) 1163 site=$ac_optarg ;; 1164 1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1166 ac_prev=srcdir ;; 1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1168 srcdir=$ac_optarg ;; 1169 1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1171 | --syscon | --sysco | --sysc | --sys | --sy) 1172 ac_prev=sysconfdir ;; 1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1175 sysconfdir=$ac_optarg ;; 1176 1177 -target | --target | --targe | --targ | --tar | --ta | --t) 1178 ac_prev=target_alias ;; 1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1180 target_alias=$ac_optarg ;; 1181 1182 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1183 verbose=yes ;; 1184 1185 -version | --version | --versio | --versi | --vers | -V) 1186 ac_init_version=: ;; 1187 1188 -with-* | --with-*) 1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1192 { echo "$as_me: error: invalid package name: $ac_package" >&2 1193 { (exit 1); exit 1; }; } 1194 ac_package=`echo $ac_package| sed 's/-/_/g'` 1195 eval with_$ac_package=\$ac_optarg ;; 1196 1197 -without-* | --without-*) 1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1201 { echo "$as_me: error: invalid package name: $ac_package" >&2 1202 { (exit 1); exit 1; }; } 1203 ac_package=`echo $ac_package | sed 's/-/_/g'` 1204 eval with_$ac_package=no ;; 1205 1206 --x) 1207 # Obsolete; use --with-x. 1208 with_x=yes ;; 1209 1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 | --x-incl | --x-inc | --x-in | --x-i) 1212 ac_prev=x_includes ;; 1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 x_includes=$ac_optarg ;; 1216 1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 ac_prev=x_libraries ;; 1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 x_libraries=$ac_optarg ;; 1223 1224 -*) { echo "$as_me: error: unrecognized option: $ac_option 1225Try \`$0 --help' for more information." >&2 1226 { (exit 1); exit 1; }; } 1227 ;; 1228 1229 *=*) 1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1231 # Reject names that are not valid shell variable names. 1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1234 { (exit 1); exit 1; }; } 1235 eval $ac_envvar=\$ac_optarg 1236 export $ac_envvar ;; 1237 1238 *) 1239 # FIXME: should be removed in autoconf 3.0. 1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1244 ;; 1245 1246 esac 1247done 1248 1249if test -n "$ac_prev"; then 1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 { echo "$as_me: error: missing argument to $ac_option" >&2 1252 { (exit 1); exit 1; }; } 1253fi 1254 1255# Be sure to have absolute directory names. 1256for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260do 1261 eval ac_val=\$$ac_var 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1267 { (exit 1); exit 1; }; } 1268done 1269 1270# There might be people who depend on the old broken behavior: `$host' 1271# used to hold the argument of --host etc. 1272# FIXME: To remove some day. 1273build=$build_alias 1274host=$host_alias 1275target=$target_alias 1276 1277# FIXME: To remove some day. 1278if test "x$host_alias" != x; then 1279 if test "x$build_alias" = x; then 1280 cross_compiling=maybe 1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1282 If a cross compiler is detected then cross compile mode will be used." >&2 1283 elif test "x$build_alias" != "x$host_alias"; then 1284 cross_compiling=yes 1285 fi 1286fi 1287 1288ac_tool_prefix= 1289test -n "$host_alias" && ac_tool_prefix=$host_alias- 1290 1291test "$silent" = yes && exec 6>/dev/null 1292 1293 1294ac_pwd=`pwd` && test -n "$ac_pwd" && 1295ac_ls_di=`ls -di .` && 1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1297 { echo "$as_me: error: Working directory cannot be determined" >&2 1298 { (exit 1); exit 1; }; } 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 { echo "$as_me: error: pwd does not report name of working directory" >&2 1301 { (exit 1); exit 1; }; } 1302 1303 1304# Find the source files, if location was not specified. 1305if test -z "$srcdir"; then 1306 ac_srcdir_defaulted=yes 1307 # Try the directory containing this script, then the parent directory. 1308 ac_confdir=`$as_dirname -- "$0" || 1309$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1310 X"$0" : 'X\(//\)[^/]' \| \ 1311 X"$0" : 'X\(//\)$' \| \ 1312 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1313echo X"$0" | 1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)[^/].*/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\).*/{ 1327 s//\1/ 1328 q 1329 } 1330 s/.*/./; q'` 1331 srcdir=$ac_confdir 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 srcdir=.. 1334 fi 1335else 1336 ac_srcdir_defaulted=no 1337fi 1338if test ! -r "$srcdir/$ac_unique_file"; then 1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1341 { (exit 1); exit 1; }; } 1342fi 1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1344ac_abs_confdir=`( 1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1346 { (exit 1); exit 1; }; } 1347 pwd)` 1348# When building in place, set srcdir=. 1349if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351fi 1352# Remove unnecessary trailing slashes from srcdir. 1353# Double slashes in file names in object file debugging info 1354# mess up M-x gdb in Emacs. 1355case $srcdir in 1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357esac 1358for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363done 1364 1365# 1366# Report the --help message. 1367# 1368if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372\`configure' configures this package to adapt to many kinds of systems. 1373 1374Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379Defaults for the options are specified in brackets. 1380 1381Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398By default, \`make install' will install all the files in 1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401for instance \`--prefix=\$HOME'. 1402 1403For better control, use the options below. 1404 1405Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1421 --htmldir=DIR html documentation [DOCDIR] 1422 --dvidir=DIR dvi documentation [DOCDIR] 1423 --pdfdir=DIR pdf documentation [DOCDIR] 1424 --psdir=DIR ps documentation [DOCDIR] 1425_ACEOF 1426 1427 cat <<\_ACEOF 1428 1429Program names: 1430 --program-prefix=PREFIX prepend PREFIX to installed program names 1431 --program-suffix=SUFFIX append SUFFIX to installed program names 1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1433 1434System types: 1435 --build=BUILD configure for building on BUILD [guessed] 1436 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1437_ACEOF 1438fi 1439 1440if test -n "$ac_init_help"; then 1441 1442 cat <<\_ACEOF 1443 1444Optional Features: 1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1447 --disable-dependency-tracking Speeds up one-time builds 1448 --enable-dependency-tracking Do not reject slow dependency extractors 1449 --enable-shared[=PKGS] build shared libraries [default=yes] 1450 --enable-static[=PKGS] build static libraries [default=yes] 1451 --enable-fast-install[=PKGS] 1452 optimize for fast installation [default=yes] 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 1455Optional Packages: 1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1459 --with-pic try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-tags[=TAGS] include additional configurations [automatic] 1462 1463 --with-zlib=PATH search for zlib in PATH 1464 --without-zlib disable use of zlib 1465 --with-dmalloc=ARG Compile with dmalloc library 1466 1467Some influential environment variables: 1468 CXX C++ compiler command 1469 CXXFLAGS C++ compiler flags 1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1471 nonstandard directory <lib dir> 1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1473 you have headers in a nonstandard directory <include dir> 1474 CC C compiler command 1475 CFLAGS C compiler flags 1476 CPP C preprocessor 1477 CXXCPP C++ preprocessor 1478 F77 Fortran 77 compiler command 1479 FFLAGS Fortran 77 compiler flags 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484_ACEOF 1485ac_status=$? 1486fi 1487 1488if test "$ac_init_help" = "recursive"; then 1489 # If there are subdirs, report their specific --help. 1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1491 test -d "$ac_dir" || continue 1492 ac_builddir=. 1493 1494case "$ac_dir" in 1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496*) 1497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504esac 1505ac_abs_top_builddir=$ac_pwd 1506ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507# for backward compatibility: 1508ac_top_builddir=$ac_top_build_prefix 1509 1510case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523esac 1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for guested configure. 1528 if test -f "$ac_srcdir/configure.gnu"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1531 elif test -f "$ac_srcdir/configure"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure" --help=recursive 1534 else 1535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1536 fi || ac_status=$? 1537 cd "$ac_pwd" || { ac_status=$?; break; } 1538 done 1539fi 1540 1541test -n "$ac_init_help" && exit $ac_status 1542if $ac_init_version; then 1543 cat <<\_ACEOF 1544configure 1545generated by GNU Autoconf 2.60 1546 1547Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1549This configure script is free software; the Free Software Foundation 1550gives unlimited permission to copy, distribute and modify it. 1551_ACEOF 1552 exit 1553fi 1554cat >config.log <<_ACEOF 1555This file contains any messages produced by compilers while 1556running configure, to aid debugging if configure makes a mistake. 1557 1558It was created by $as_me, which was 1559generated by GNU Autoconf 2.60. Invocation command line was 1560 1561 $ $0 $@ 1562 1563_ACEOF 1564exec 5>>config.log 1565{ 1566cat <<_ASUNAME 1567## --------- ## 1568## Platform. ## 1569## --------- ## 1570 1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1572uname -m = `(uname -m) 2>/dev/null || echo unknown` 1573uname -r = `(uname -r) 2>/dev/null || echo unknown` 1574uname -s = `(uname -s) 2>/dev/null || echo unknown` 1575uname -v = `(uname -v) 2>/dev/null || echo unknown` 1576 1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1578/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1579 1580/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1581/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1583/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1584/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1585/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1586/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1587 1588_ASUNAME 1589 1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1591for as_dir in $PATH 1592do 1593 IFS=$as_save_IFS 1594 test -z "$as_dir" && as_dir=. 1595 echo "PATH: $as_dir" 1596done 1597IFS=$as_save_IFS 1598 1599} >&5 1600 1601cat >&5 <<_ACEOF 1602 1603 1604## ----------- ## 1605## Core tests. ## 1606## ----------- ## 1607 1608_ACEOF 1609 1610 1611# Keep a trace of the command line. 1612# Strip out --no-create and --no-recursion so they do not pile up. 1613# Strip out --silent because we don't want to record it for future runs. 1614# Also quote any args containing shell meta-characters. 1615# Make two passes to allow for proper duplicate-argument suppression. 1616ac_configure_args= 1617ac_configure_args0= 1618ac_configure_args1= 1619ac_must_keep_next=false 1620for ac_pass in 1 2 1621do 1622 for ac_arg 1623 do 1624 case $ac_arg in 1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1627 | -silent | --silent | --silen | --sile | --sil) 1628 continue ;; 1629 *\'*) 1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1631 esac 1632 case $ac_pass in 1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1634 2) 1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1636 if test $ac_must_keep_next = true; then 1637 ac_must_keep_next=false # Got value, back to normal. 1638 else 1639 case $ac_arg in 1640 *=* | --config-cache | -C | -disable-* | --disable-* \ 1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1643 | -with-* | --with-* | -without-* | --without-* | --x) 1644 case "$ac_configure_args0 " in 1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1646 esac 1647 ;; 1648 -* ) ac_must_keep_next=true ;; 1649 esac 1650 fi 1651 ac_configure_args="$ac_configure_args '$ac_arg'" 1652 ;; 1653 esac 1654 done 1655done 1656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1657$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1658 1659# When interrupted or exit'd, cleanup temporary files, and complete 1660# config.log. We remove comments because anyway the quotes in there 1661# would cause problems or look ugly. 1662# WARNING: Use '\'' to represent an apostrophe within the trap. 1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1664trap 'exit_status=$? 1665 # Save into config.log some information that might help in debugging. 1666 { 1667 echo 1668 1669 cat <<\_ASBOX 1670## ---------------- ## 1671## Cache variables. ## 1672## ---------------- ## 1673_ASBOX 1674 echo 1675 # The following way of writing the cache mishandles newlines in values, 1676( 1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1678 eval ac_val=\$$ac_var 1679 case $ac_val in #( 1680 *${as_nl}*) 1681 case $ac_var in #( 1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1684 esac 1685 case $ac_var in #( 1686 _ | IFS | as_nl) ;; #( 1687 *) $as_unset $ac_var ;; 1688 esac ;; 1689 esac 1690 done 1691 (set) 2>&1 | 1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1693 *${as_nl}ac_space=\ *) 1694 sed -n \ 1695 "s/'\''/'\''\\\\'\'''\''/g; 1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1697 ;; #( 1698 *) 1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1700 ;; 1701 esac | 1702 sort 1703) 1704 echo 1705 1706 cat <<\_ASBOX 1707## ----------------- ## 1708## Output variables. ## 1709## ----------------- ## 1710_ASBOX 1711 echo 1712 for ac_var in $ac_subst_vars 1713 do 1714 eval ac_val=\$$ac_var 1715 case $ac_val in 1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1717 esac 1718 echo "$ac_var='\''$ac_val'\''" 1719 done | sort 1720 echo 1721 1722 if test -n "$ac_subst_files"; then 1723 cat <<\_ASBOX 1724## ------------------- ## 1725## File substitutions. ## 1726## ------------------- ## 1727_ASBOX 1728 echo 1729 for ac_var in $ac_subst_files 1730 do 1731 eval ac_val=\$$ac_var 1732 case $ac_val in 1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1734 esac 1735 echo "$ac_var='\''$ac_val'\''" 1736 done | sort 1737 echo 1738 fi 1739 1740 if test -s confdefs.h; then 1741 cat <<\_ASBOX 1742## ----------- ## 1743## confdefs.h. ## 1744## ----------- ## 1745_ASBOX 1746 echo 1747 cat confdefs.h 1748 echo 1749 fi 1750 test "$ac_signal" != 0 && 1751 echo "$as_me: caught signal $ac_signal" 1752 echo "$as_me: exit $exit_status" 1753 } >&5 1754 rm -f core *.core core.conftest.* && 1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1756 exit $exit_status 1757' 0 1758for ac_signal in 1 2 13 15; do 1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1760done 1761ac_signal=0 1762 1763# confdefs.h avoids OS command line length limits that DEFS can exceed. 1764rm -f -r conftest* confdefs.h 1765 1766# Predefined preprocessor variables. 1767 1768cat >>confdefs.h <<_ACEOF 1769#define PACKAGE_NAME "$PACKAGE_NAME" 1770_ACEOF 1771 1772 1773cat >>confdefs.h <<_ACEOF 1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1775_ACEOF 1776 1777 1778cat >>confdefs.h <<_ACEOF 1779#define PACKAGE_VERSION "$PACKAGE_VERSION" 1780_ACEOF 1781 1782 1783cat >>confdefs.h <<_ACEOF 1784#define PACKAGE_STRING "$PACKAGE_STRING" 1785_ACEOF 1786 1787 1788cat >>confdefs.h <<_ACEOF 1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1790_ACEOF 1791 1792 1793# Let the site file select an alternate cache file if it wants to. 1794# Prefer explicitly selected file to automatically selected ones. 1795if test -n "$CONFIG_SITE"; then 1796 set x "$CONFIG_SITE" 1797elif test "x$prefix" != xNONE; then 1798 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1799else 1800 set x "$ac_default_prefix/share/config.site" \ 1801 "$ac_default_prefix/etc/config.site" 1802fi 1803shift 1804for ac_site_file 1805do 1806 if test -r "$ac_site_file"; then 1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1808echo "$as_me: loading site script $ac_site_file" >&6;} 1809 sed 's/^/| /' "$ac_site_file" >&5 1810 . "$ac_site_file" 1811 fi 1812done 1813 1814if test -r "$cache_file"; then 1815 # Some versions of bash will fail to source /dev/null (special 1816 # files actually), so we avoid doing that. 1817 if test -f "$cache_file"; then 1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1819echo "$as_me: loading cache $cache_file" >&6;} 1820 case $cache_file in 1821 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1822 *) . "./$cache_file";; 1823 esac 1824 fi 1825else 1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1827echo "$as_me: creating cache $cache_file" >&6;} 1828 >$cache_file 1829fi 1830 1831# Check that the precious variables saved in the cache have kept the same 1832# value. 1833ac_cache_corrupted=false 1834for ac_var in $ac_precious_vars; do 1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1836 eval ac_new_set=\$ac_env_${ac_var}_set 1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1838 eval ac_new_val=\$ac_env_${ac_var}_value 1839 case $ac_old_set,$ac_new_set in 1840 set,) 1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1843 ac_cache_corrupted=: ;; 1844 ,set) 1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1847 ac_cache_corrupted=: ;; 1848 ,);; 1849 *) 1850 if test "x$ac_old_val" != "x$ac_new_val"; then 1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1854echo "$as_me: former value: $ac_old_val" >&2;} 1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1856echo "$as_me: current value: $ac_new_val" >&2;} 1857 ac_cache_corrupted=: 1858 fi;; 1859 esac 1860 # Pass precious variables to config.status. 1861 if test "$ac_new_set" = set; then 1862 case $ac_new_val in 1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1864 *) ac_arg=$ac_var=$ac_new_val ;; 1865 esac 1866 case " $ac_configure_args " in 1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1869 esac 1870 fi 1871done 1872if $ac_cache_corrupted; then 1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1874echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1877 { (exit 1); exit 1; }; } 1878fi 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896ac_ext=c 1897ac_cpp='$CPP $CPPFLAGS' 1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1900ac_compiler_gnu=$ac_cv_c_compiler_gnu 1901 1902 1903ac_aux_dir= 1904for ac_dir in conftools "$srcdir"/conftools; do 1905 if test -f "$ac_dir/install-sh"; then 1906 ac_aux_dir=$ac_dir 1907 ac_install_sh="$ac_aux_dir/install-sh -c" 1908 break 1909 elif test -f "$ac_dir/install.sh"; then 1910 ac_aux_dir=$ac_dir 1911 ac_install_sh="$ac_aux_dir/install.sh -c" 1912 break 1913 elif test -f "$ac_dir/shtool"; then 1914 ac_aux_dir=$ac_dir 1915 ac_install_sh="$ac_aux_dir/shtool install -c" 1916 break 1917 fi 1918done 1919if test -z "$ac_aux_dir"; then 1920 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&5 1921echo "$as_me: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&2;} 1922 { (exit 1); exit 1; }; } 1923fi 1924 1925# These three variables are undocumented and unsupported, 1926# and are intended to be withdrawn in a future Autoconf release. 1927# They can cause serious problems if a builder's source tree is in a directory 1928# whose full name contains unusual characters. 1929ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1930ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1931ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1932 1933 1934 1935am__api_version="1.7" 1936# Find a good install program. We prefer a C program (faster), 1937# so one script is as good as another. But avoid the broken or 1938# incompatible versions: 1939# SysV /etc/install, /usr/sbin/install 1940# SunOS /usr/etc/install 1941# IRIX /sbin/install 1942# AIX /bin/install 1943# AmigaOS /C/install, which installs bootblocks on floppy discs 1944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1945# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1947# OS/2's system install, which has a completely different semantic 1948# ./install, which can be erroneously created by make from ./install.sh. 1949{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1950echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1951if test -z "$INSTALL"; then 1952if test "${ac_cv_path_install+set}" = set; then 1953 echo $ECHO_N "(cached) $ECHO_C" >&6 1954else 1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1956for as_dir in $PATH 1957do 1958 IFS=$as_save_IFS 1959 test -z "$as_dir" && as_dir=. 1960 # Account for people who put trailing slashes in PATH elements. 1961case $as_dir/ in 1962 ./ | .// | /cC/* | \ 1963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1964 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1965 /usr/ucb/* ) ;; 1966 *) 1967 # OSF1 and SCO ODT 3.0 have their own names for install. 1968 # Don't use installbsd from OSF since it installs stuff as root 1969 # by default. 1970 for ac_prog in ginstall scoinst install; do 1971 for ac_exec_ext in '' $ac_executable_extensions; do 1972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1973 if test $ac_prog = install && 1974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1975 # AIX install. It has an incompatible calling convention. 1976 : 1977 elif test $ac_prog = install && 1978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1979 # program-specific install script used by HP pwplus--don't use. 1980 : 1981 else 1982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1983 break 3 1984 fi 1985 fi 1986 done 1987 done 1988 ;; 1989esac 1990done 1991IFS=$as_save_IFS 1992 1993 1994fi 1995 if test "${ac_cv_path_install+set}" = set; then 1996 INSTALL=$ac_cv_path_install 1997 else 1998 # As a last resort, use the slow shell script. Don't cache a 1999 # value for INSTALL within a source directory, because that will 2000 # break other packages using the cache if that directory is 2001 # removed, or if the value is a relative name. 2002 INSTALL=$ac_install_sh 2003 fi 2004fi 2005{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2006echo "${ECHO_T}$INSTALL" >&6; } 2007 2008# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2009# It thinks the first close brace ends the variable substitution. 2010test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2011 2012test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2013 2014test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2015 2016{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2017echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2018# Just in case 2019sleep 1 2020echo timestamp > conftest.file 2021# Do `set' in a subshell so we don't clobber the current shell's 2022# arguments. Must try -L first in case configure is actually a 2023# symlink; some systems play weird games with the mod time of symlinks 2024# (eg FreeBSD returns the mod time of the symlink's containing 2025# directory). 2026if ( 2027 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2028 if test "$*" = "X"; then 2029 # -L didn't work. 2030 set X `ls -t $srcdir/configure conftest.file` 2031 fi 2032 rm -f conftest.file 2033 if test "$*" != "X $srcdir/configure conftest.file" \ 2034 && test "$*" != "X conftest.file $srcdir/configure"; then 2035 2036 # If neither matched, then we have a broken ls. This can happen 2037 # if, for instance, CONFIG_SHELL is bash and it inherits a 2038 # broken ls alias from the environment. This has actually 2039 # happened. Such a system could not be considered "sane". 2040 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2041alias in your environment" >&5 2042echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2043alias in your environment" >&2;} 2044 { (exit 1); exit 1; }; } 2045 fi 2046 2047 test "$2" = conftest.file 2048 ) 2049then 2050 # Ok. 2051 : 2052else 2053 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2054Check your system clock" >&5 2055echo "$as_me: error: newly created file is older than distributed files! 2056Check your system clock" >&2;} 2057 { (exit 1); exit 1; }; } 2058fi 2059{ echo "$as_me:$LINENO: result: yes" >&5 2060echo "${ECHO_T}yes" >&6; } 2061test "$program_prefix" != NONE && 2062 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2063# Use a double $ so make ignores it. 2064test "$program_suffix" != NONE && 2065 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2066# Double any \ or $. echo might interpret backslashes. 2067# By default was `s,x,x', remove it if useless. 2068cat <<\_ACEOF >conftest.sed 2069s/[\\$]/&&/g;s/;s,x,x,$// 2070_ACEOF 2071program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2072rm -f conftest.sed 2073 2074 2075# expand $ac_aux_dir to an absolute path 2076am_aux_dir=`cd $ac_aux_dir && pwd` 2077 2078test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2079# Use eval to expand $SHELL 2080if eval "$MISSING --run true"; then 2081 am_missing_run="$MISSING --run " 2082else 2083 am_missing_run= 2084 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2085echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2086fi 2087 2088for ac_prog in gawk mawk nawk awk 2089do 2090 # Extract the first word of "$ac_prog", so it can be a program name with args. 2091set dummy $ac_prog; ac_word=$2 2092{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2094if test "${ac_cv_prog_AWK+set}" = set; then 2095 echo $ECHO_N "(cached) $ECHO_C" >&6 2096else 2097 if test -n "$AWK"; then 2098 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2099else 2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2101for as_dir in $PATH 2102do 2103 IFS=$as_save_IFS 2104 test -z "$as_dir" && as_dir=. 2105 for ac_exec_ext in '' $ac_executable_extensions; do 2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2107 ac_cv_prog_AWK="$ac_prog" 2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2109 break 2 2110 fi 2111done 2112done 2113IFS=$as_save_IFS 2114 2115fi 2116fi 2117AWK=$ac_cv_prog_AWK 2118if test -n "$AWK"; then 2119 { echo "$as_me:$LINENO: result: $AWK" >&5 2120echo "${ECHO_T}$AWK" >&6; } 2121else 2122 { echo "$as_me:$LINENO: result: no" >&5 2123echo "${ECHO_T}no" >&6; } 2124fi 2125 2126 2127 test -n "$AWK" && break 2128done 2129 2130{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2131echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2132set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2133if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2134 echo $ECHO_N "(cached) $ECHO_C" >&6 2135else 2136 cat >conftest.make <<\_ACEOF 2137SHELL = /bin/sh 2138all: 2139 @echo '@@@%%%=$(MAKE)=@@@%%%' 2140_ACEOF 2141# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2142case `${MAKE-make} -f conftest.make 2>/dev/null` in 2143 *@@@%%%=?*=@@@%%%*) 2144 eval ac_cv_prog_make_${ac_make}_set=yes;; 2145 *) 2146 eval ac_cv_prog_make_${ac_make}_set=no;; 2147esac 2148rm -f conftest.make 2149fi 2150if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2151 { echo "$as_me:$LINENO: result: yes" >&5 2152echo "${ECHO_T}yes" >&6; } 2153 SET_MAKE= 2154else 2155 { echo "$as_me:$LINENO: result: no" >&5 2156echo "${ECHO_T}no" >&6; } 2157 SET_MAKE="MAKE=${MAKE-make}" 2158fi 2159 2160rm -rf .tst 2>/dev/null 2161mkdir .tst 2>/dev/null 2162if test -d .tst; then 2163 am__leading_dot=. 2164else 2165 am__leading_dot=_ 2166fi 2167rmdir .tst 2>/dev/null 2168 2169 # test to see if srcdir already configured 2170if test "`cd $srcdir && pwd`" != "`pwd`" && 2171 test -f $srcdir/config.status; then 2172 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2173echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2174 { (exit 1); exit 1; }; } 2175fi 2176 2177# test whether we have cygpath 2178if test -z "$CYGPATH_W"; then 2179 if (cygpath --version) >/dev/null 2>/dev/null; then 2180 CYGPATH_W='cygpath -w' 2181 else 2182 CYGPATH_W=echo 2183 fi 2184fi 2185 2186 2187# Define the identity of the package. 2188 PACKAGE=EasySoap++ 2189 VERSION=0.8.0 2190 2191 2192cat >>confdefs.h <<_ACEOF 2193#define PACKAGE "$PACKAGE" 2194_ACEOF 2195 2196 2197cat >>confdefs.h <<_ACEOF 2198#define VERSION "$VERSION" 2199_ACEOF 2200 2201# Some tools Automake needs. 2202 2203ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2204 2205 2206AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2207 2208 2209AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2210 2211 2212AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2213 2214 2215MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2216 2217 2218AMTAR=${AMTAR-"${am_missing_run}tar"} 2219 2220install_sh=${install_sh-"$am_aux_dir/install-sh"} 2221 2222# Installed binaries are usually stripped using `strip' when the user 2223# run `make install-strip'. However `strip' might not be the right 2224# tool to use in cross-compilation environments, therefore Automake 2225# will honor the `STRIP' environment variable to overrule this program. 2226if test "$cross_compiling" != no; then 2227 if test -n "$ac_tool_prefix"; then 2228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2229set dummy ${ac_tool_prefix}strip; ac_word=$2 2230{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2232if test "${ac_cv_prog_STRIP+set}" = set; then 2233 echo $ECHO_N "(cached) $ECHO_C" >&6 2234else 2235 if test -n "$STRIP"; then 2236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2237else 2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239for as_dir in $PATH 2240do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 for ac_exec_ext in '' $ac_executable_extensions; do 2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2245 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2247 break 2 2248 fi 2249done 2250done 2251IFS=$as_save_IFS 2252 2253fi 2254fi 2255STRIP=$ac_cv_prog_STRIP 2256if test -n "$STRIP"; then 2257 { echo "$as_me:$LINENO: result: $STRIP" >&5 2258echo "${ECHO_T}$STRIP" >&6; } 2259else 2260 { echo "$as_me:$LINENO: result: no" >&5 2261echo "${ECHO_T}no" >&6; } 2262fi 2263 2264 2265fi 2266if test -z "$ac_cv_prog_STRIP"; then 2267 ac_ct_STRIP=$STRIP 2268 # Extract the first word of "strip", so it can be a program name with args. 2269set dummy strip; ac_word=$2 2270{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2272if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2273 echo $ECHO_N "(cached) $ECHO_C" >&6 2274else 2275 if test -n "$ac_ct_STRIP"; then 2276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2277else 2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279for as_dir in $PATH 2280do 2281 IFS=$as_save_IFS 2282 test -z "$as_dir" && as_dir=. 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 ac_cv_prog_ac_ct_STRIP="strip" 2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 break 2 2288 fi 2289done 2290done 2291IFS=$as_save_IFS 2292 2293fi 2294fi 2295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2296if test -n "$ac_ct_STRIP"; then 2297 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2298echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2299else 2300 { echo "$as_me:$LINENO: result: no" >&5 2301echo "${ECHO_T}no" >&6; } 2302fi 2303 2304 if test "x$ac_ct_STRIP" = x; then 2305 STRIP=":" 2306 else 2307 case $cross_compiling:$ac_tool_warned in 2308yes:) 2309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2310whose name does not start with the host triplet. If you think this 2311configuration is useful to you, please write to autoconf@gnu.org." >&5 2312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2313whose name does not start with the host triplet. If you think this 2314configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2315ac_tool_warned=yes ;; 2316esac 2317 STRIP=$ac_ct_STRIP 2318 fi 2319else 2320 STRIP="$ac_cv_prog_STRIP" 2321fi 2322 2323fi 2324INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2325 2326# We need awk for the "check" target. The system "awk" is bad on 2327# some platforms. 2328 2329 2330 2331ac_config_headers="$ac_config_headers include/easysoap/es_config.h" 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345# Make sure we can run config.sub. 2346$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2347 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2348echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2349 { (exit 1); exit 1; }; } 2350 2351{ echo "$as_me:$LINENO: checking build system type" >&5 2352echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2353if test "${ac_cv_build+set}" = set; then 2354 echo $ECHO_N "(cached) $ECHO_C" >&6 2355else 2356 ac_build_alias=$build_alias 2357test "x$ac_build_alias" = x && 2358 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2359test "x$ac_build_alias" = x && 2360 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2361echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2362 { (exit 1); exit 1; }; } 2363ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2364 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2365echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2366 { (exit 1); exit 1; }; } 2367 2368fi 2369{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2370echo "${ECHO_T}$ac_cv_build" >&6; } 2371case $ac_cv_build in 2372*-*-*) ;; 2373*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2374echo "$as_me: error: invalid value of canonical build" >&2;} 2375 { (exit 1); exit 1; }; };; 2376esac 2377build=$ac_cv_build 2378ac_save_IFS=$IFS; IFS='-' 2379set x $ac_cv_build 2380shift 2381build_cpu=$1 2382build_vendor=$2 2383shift; shift 2384# Remember, the first character of IFS is used to create $*, 2385# except with old shells: 2386build_os=$* 2387IFS=$ac_save_IFS 2388case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2389 2390 2391{ echo "$as_me:$LINENO: checking host system type" >&5 2392echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2393if test "${ac_cv_host+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test "x$host_alias" = x; then 2397 ac_cv_host=$ac_cv_build 2398else 2399 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2400 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2401echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2402 { (exit 1); exit 1; }; } 2403fi 2404 2405fi 2406{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2407echo "${ECHO_T}$ac_cv_host" >&6; } 2408case $ac_cv_host in 2409*-*-*) ;; 2410*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2411echo "$as_me: error: invalid value of canonical host" >&2;} 2412 { (exit 1); exit 1; }; };; 2413esac 2414host=$ac_cv_host 2415ac_save_IFS=$IFS; IFS='-' 2416set x $ac_cv_host 2417shift 2418host_cpu=$1 2419host_vendor=$2 2420shift; shift 2421# Remember, the first character of IFS is used to create $*, 2422# except with old shells: 2423host_os=$* 2424IFS=$ac_save_IFS 2425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2426 2427 2428case $host_os in 2429 *cygwin* ) CYGWIN=yes;; 2430 * ) CYGWIN=no;; 2431esac 2432 2433 2434ac_ext=cpp 2435ac_cpp='$CXXCPP $CPPFLAGS' 2436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2439if test -z "$CXX"; then 2440 if test -n "$CCC"; then 2441 CXX=$CCC 2442 else 2443 if test -n "$ac_tool_prefix"; then 2444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2445 do 2446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2448{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2450if test "${ac_cv_prog_CXX+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 if test -n "$CXX"; then 2454 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2455else 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 for ac_exec_ext in '' $ac_executable_extensions; do 2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2463 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468done 2469IFS=$as_save_IFS 2470 2471fi 2472fi 2473CXX=$ac_cv_prog_CXX 2474if test -n "$CXX"; then 2475 { echo "$as_me:$LINENO: result: $CXX" >&5 2476echo "${ECHO_T}$CXX" >&6; } 2477else 2478 { echo "$as_me:$LINENO: result: no" >&5 2479echo "${ECHO_T}no" >&6; } 2480fi 2481 2482 2483 test -n "$CXX" && break 2484 done 2485fi 2486if test -z "$CXX"; then 2487 ac_ct_CXX=$CXX 2488 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2489do 2490 # Extract the first word of "$ac_prog", so it can be a program name with args. 2491set dummy $ac_prog; ac_word=$2 2492{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2494if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2495 echo $ECHO_N "(cached) $ECHO_C" >&6 2496else 2497 if test -n "$ac_ct_CXX"; then 2498 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2507 ac_cv_prog_ac_ct_CXX="$ac_prog" 2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2518if test -n "$ac_ct_CXX"; then 2519 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2520echo "${ECHO_T}$ac_ct_CXX" >&6; } 2521else 2522 { echo "$as_me:$LINENO: result: no" >&5 2523echo "${ECHO_T}no" >&6; } 2524fi 2525 2526 2527 test -n "$ac_ct_CXX" && break 2528done 2529 2530 if test "x$ac_ct_CXX" = x; then 2531 CXX="g++" 2532 else 2533 case $cross_compiling:$ac_tool_warned in 2534yes:) 2535{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2536whose name does not start with the host triplet. If you think this 2537configuration is useful to you, please write to autoconf@gnu.org." >&5 2538echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2539whose name does not start with the host triplet. If you think this 2540configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2541ac_tool_warned=yes ;; 2542esac 2543 CXX=$ac_ct_CXX 2544 fi 2545fi 2546 2547 fi 2548fi 2549# Provide some information about the compiler. 2550echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2551ac_compiler=`set X $ac_compile; echo $2` 2552{ (ac_try="$ac_compiler --version >&5" 2553case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556esac 2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2558 (eval "$ac_compiler --version >&5") 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } 2562{ (ac_try="$ac_compiler -v >&5" 2563case "(($ac_try" in 2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2565 *) ac_try_echo=$ac_try;; 2566esac 2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2568 (eval "$ac_compiler -v >&5") 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } 2572{ (ac_try="$ac_compiler -V >&5" 2573case "(($ac_try" in 2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2575 *) ac_try_echo=$ac_try;; 2576esac 2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2578 (eval "$ac_compiler -V >&5") 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } 2582 2583cat >conftest.$ac_ext <<_ACEOF 2584/* confdefs.h. */ 2585_ACEOF 2586cat confdefs.h >>conftest.$ac_ext 2587cat >>conftest.$ac_ext <<_ACEOF 2588/* end confdefs.h. */ 2589 2590int 2591main () 2592{ 2593 2594 ; 2595 return 0; 2596} 2597_ACEOF 2598ac_clean_files_save=$ac_clean_files 2599ac_clean_files="$ac_clean_files a.out a.exe b.out" 2600# Try to create an executable without -o first, disregard a.out. 2601# It will help us diagnose broken compilers, and finding out an intuition 2602# of exeext. 2603{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2604echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 2605ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2606# 2607# List of possible output files, starting from the most likely. 2608# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2609# only as a last resort. b.out is created by i960 compilers. 2610ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2611# 2612# The IRIX 6 linker writes into existing files which may not be 2613# executable, retaining their permissions. Remove them first so a 2614# subsequent execution test works. 2615ac_rmfiles= 2616for ac_file in $ac_files 2617do 2618 case $ac_file in 2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2620 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2621 esac 2622done 2623rm -f $ac_rmfiles 2624 2625if { (ac_try="$ac_link_default" 2626case "(($ac_try" in 2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2628 *) ac_try_echo=$ac_try;; 2629esac 2630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2631 (eval "$ac_link_default") 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; then 2635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2636# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2637# in a Makefile. We should not override ac_cv_exeext if it was cached, 2638# so that the user can short-circuit this test for compilers unknown to 2639# Autoconf. 2640for ac_file in $ac_files 2641do 2642 test -f "$ac_file" || continue 2643 case $ac_file in 2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2645 ;; 2646 [ab].out ) 2647 # We found the default executable, but exeext='' is most 2648 # certainly right. 2649 break;; 2650 *.* ) 2651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2652 then :; else 2653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2654 fi 2655 # We set ac_cv_exeext here because the later test for it is not 2656 # safe: cross compilers may not add the suffix if given an `-o' 2657 # argument, so we may need to know it at that point already. 2658 # Even if this section looks crufty: it has the advantage of 2659 # actually working. 2660 break;; 2661 * ) 2662 break;; 2663 esac 2664done 2665test "$ac_cv_exeext" = no && ac_cv_exeext= 2666 2667else 2668 echo "$as_me: failed program was:" >&5 2669sed 's/^/| /' conftest.$ac_ext >&5 2670 2671{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2672See \`config.log' for more details." >&5 2673echo "$as_me: error: C++ compiler cannot create executables 2674See \`config.log' for more details." >&2;} 2675 { (exit 77); exit 77; }; } 2676fi 2677 2678ac_exeext=$ac_cv_exeext 2679{ echo "$as_me:$LINENO: result: $ac_file" >&5 2680echo "${ECHO_T}$ac_file" >&6; } 2681 2682# Check that the compiler produces executables we can run. If not, either 2683# the compiler is broken, or we cross compile. 2684{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2685echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 2686# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2687# If not cross compiling, check that we can run a simple program. 2688if test "$cross_compiling" != yes; then 2689 if { ac_try='./$ac_file' 2690 { (case "(($ac_try" in 2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2692 *) ac_try_echo=$ac_try;; 2693esac 2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2695 (eval "$ac_try") 2>&5 2696 ac_status=$? 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); }; }; then 2699 cross_compiling=no 2700 else 2701 if test "$cross_compiling" = maybe; then 2702 cross_compiling=yes 2703 else 2704 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2705If you meant to cross compile, use \`--host'. 2706See \`config.log' for more details." >&5 2707echo "$as_me: error: cannot run C++ compiled programs. 2708If you meant to cross compile, use \`--host'. 2709See \`config.log' for more details." >&2;} 2710 { (exit 1); exit 1; }; } 2711 fi 2712 fi 2713fi 2714{ echo "$as_me:$LINENO: result: yes" >&5 2715echo "${ECHO_T}yes" >&6; } 2716 2717rm -f a.out a.exe conftest$ac_cv_exeext b.out 2718ac_clean_files=$ac_clean_files_save 2719# Check that the compiler produces executables we can run. If not, either 2720# the compiler is broken, or we cross compile. 2721{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2722echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2723{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2724echo "${ECHO_T}$cross_compiling" >&6; } 2725 2726{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2727echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2728if { (ac_try="$ac_link" 2729case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732esac 2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_link") 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); }; then 2738 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2740# work properly (i.e., refer to `conftest.exe'), while it won't with 2741# `rm'. 2742for ac_file in conftest.exe conftest conftest.*; do 2743 test -f "$ac_file" || continue 2744 case $ac_file in 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2747 break;; 2748 * ) break;; 2749 esac 2750done 2751else 2752 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2753See \`config.log' for more details." >&5 2754echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2755See \`config.log' for more details." >&2;} 2756 { (exit 1); exit 1; }; } 2757fi 2758 2759rm -f conftest$ac_cv_exeext 2760{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2761echo "${ECHO_T}$ac_cv_exeext" >&6; } 2762 2763rm -f conftest.$ac_ext 2764EXEEXT=$ac_cv_exeext 2765ac_exeext=$EXEEXT 2766{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2767echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2768if test "${ac_cv_objext+set}" = set; then 2769 echo $ECHO_N "(cached) $ECHO_C" >&6 2770else 2771 cat >conftest.$ac_ext <<_ACEOF 2772/* confdefs.h. */ 2773_ACEOF 2774cat confdefs.h >>conftest.$ac_ext 2775cat >>conftest.$ac_ext <<_ACEOF 2776/* end confdefs.h. */ 2777 2778int 2779main () 2780{ 2781 2782 ; 2783 return 0; 2784} 2785_ACEOF 2786rm -f conftest.o conftest.obj 2787if { (ac_try="$ac_compile" 2788case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2793 (eval "$ac_compile") 2>&5 2794 ac_status=$? 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); }; then 2797 for ac_file in conftest.o conftest.obj conftest.*; do 2798 test -f "$ac_file" || continue; 2799 case $ac_file in 2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2802 break;; 2803 esac 2804done 2805else 2806 echo "$as_me: failed program was:" >&5 2807sed 's/^/| /' conftest.$ac_ext >&5 2808 2809{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2810See \`config.log' for more details." >&5 2811echo "$as_me: error: cannot compute suffix of object files: cannot compile 2812See \`config.log' for more details." >&2;} 2813 { (exit 1); exit 1; }; } 2814fi 2815 2816rm -f conftest.$ac_cv_objext conftest.$ac_ext 2817fi 2818{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2819echo "${ECHO_T}$ac_cv_objext" >&6; } 2820OBJEXT=$ac_cv_objext 2821ac_objext=$OBJEXT 2822{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2823echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2825 echo $ECHO_N "(cached) $ECHO_C" >&6 2826else 2827 cat >conftest.$ac_ext <<_ACEOF 2828/* confdefs.h. */ 2829_ACEOF 2830cat confdefs.h >>conftest.$ac_ext 2831cat >>conftest.$ac_ext <<_ACEOF 2832/* end confdefs.h. */ 2833 2834int 2835main () 2836{ 2837#ifndef __GNUC__ 2838 choke me 2839#endif 2840 2841 ; 2842 return 0; 2843} 2844_ACEOF 2845rm -f conftest.$ac_objext 2846if { (ac_try="$ac_compile" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2852 (eval "$ac_compile") 2>conftest.er1 2853 ac_status=$? 2854 grep -v '^ *+' conftest.er1 >conftest.err 2855 rm -f conftest.er1 2856 cat conftest.err >&5 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); } && 2859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2860 { (case "(($ac_try" in 2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2862 *) ac_try_echo=$ac_try;; 2863esac 2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2865 (eval "$ac_try") 2>&5 2866 ac_status=$? 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); }; } && 2869 { ac_try='test -s conftest.$ac_objext' 2870 { (case "(($ac_try" in 2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2872 *) ac_try_echo=$ac_try;; 2873esac 2874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2875 (eval "$ac_try") 2>&5 2876 ac_status=$? 2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2878 (exit $ac_status); }; }; then 2879 ac_compiler_gnu=yes 2880else 2881 echo "$as_me: failed program was:" >&5 2882sed 's/^/| /' conftest.$ac_ext >&5 2883 2884 ac_compiler_gnu=no 2885fi 2886 2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2888ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2889 2890fi 2891{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2892echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2893GXX=`test $ac_compiler_gnu = yes && echo yes` 2894ac_test_CXXFLAGS=${CXXFLAGS+set} 2895ac_save_CXXFLAGS=$CXXFLAGS 2896{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2897echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2898if test "${ac_cv_prog_cxx_g+set}" = set; then 2899 echo $ECHO_N "(cached) $ECHO_C" >&6 2900else 2901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2902 ac_cxx_werror_flag=yes 2903 ac_cv_prog_cxx_g=no 2904 CXXFLAGS="-g" 2905 cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911 2912int 2913main () 2914{ 2915 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920rm -f conftest.$ac_objext 2921if { (ac_try="$ac_compile" 2922case "(($ac_try" in 2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2924 *) ac_try_echo=$ac_try;; 2925esac 2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2927 (eval "$ac_compile") 2>conftest.er1 2928 ac_status=$? 2929 grep -v '^ *+' conftest.er1 >conftest.err 2930 rm -f conftest.er1 2931 cat conftest.err >&5 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2933 (exit $ac_status); } && 2934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2935 { (case "(($ac_try" in 2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2937 *) ac_try_echo=$ac_try;; 2938esac 2939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2940 (eval "$ac_try") 2>&5 2941 ac_status=$? 2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2943 (exit $ac_status); }; } && 2944 { ac_try='test -s conftest.$ac_objext' 2945 { (case "(($ac_try" in 2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2947 *) ac_try_echo=$ac_try;; 2948esac 2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2950 (eval "$ac_try") 2>&5 2951 ac_status=$? 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2953 (exit $ac_status); }; }; then 2954 ac_cv_prog_cxx_g=yes 2955else 2956 echo "$as_me: failed program was:" >&5 2957sed 's/^/| /' conftest.$ac_ext >&5 2958 2959 CXXFLAGS="" 2960 cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966 2967int 2968main () 2969{ 2970 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975rm -f conftest.$ac_objext 2976if { (ac_try="$ac_compile" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_compile") 2>conftest.er1 2983 ac_status=$? 2984 grep -v '^ *+' conftest.er1 >conftest.err 2985 rm -f conftest.er1 2986 cat conftest.err >&5 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); } && 2989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2990 { (case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2995 (eval "$ac_try") 2>&5 2996 ac_status=$? 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); }; } && 2999 { ac_try='test -s conftest.$ac_objext' 3000 { (case "(($ac_try" in 3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3002 *) ac_try_echo=$ac_try;; 3003esac 3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3005 (eval "$ac_try") 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); }; }; then 3009 : 3010else 3011 echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3015 CXXFLAGS="-g" 3016 cat >conftest.$ac_ext <<_ACEOF 3017/* confdefs.h. */ 3018_ACEOF 3019cat confdefs.h >>conftest.$ac_ext 3020cat >>conftest.$ac_ext <<_ACEOF 3021/* end confdefs.h. */ 3022 3023int 3024main () 3025{ 3026 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031rm -f conftest.$ac_objext 3032if { (ac_try="$ac_compile" 3033case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3038 (eval "$ac_compile") 2>conftest.er1 3039 ac_status=$? 3040 grep -v '^ *+' conftest.er1 >conftest.err 3041 rm -f conftest.er1 3042 cat conftest.err >&5 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); } && 3045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3046 { (case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_try") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; } && 3055 { ac_try='test -s conftest.$ac_objext' 3056 { (case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3061 (eval "$ac_try") 2>&5 3062 ac_status=$? 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); }; }; then 3065 ac_cv_prog_cxx_g=yes 3066else 3067 echo "$as_me: failed program was:" >&5 3068sed 's/^/| /' conftest.$ac_ext >&5 3069 3070 3071fi 3072 3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3074fi 3075 3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3077fi 3078 3079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3080 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3081fi 3082{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3083echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3084if test "$ac_test_CXXFLAGS" = set; then 3085 CXXFLAGS=$ac_save_CXXFLAGS 3086elif test $ac_cv_prog_cxx_g = yes; then 3087 if test "$GXX" = yes; then 3088 CXXFLAGS="-g -O2" 3089 else 3090 CXXFLAGS="-g" 3091 fi 3092else 3093 if test "$GXX" = yes; then 3094 CXXFLAGS="-O2" 3095 else 3096 CXXFLAGS= 3097 fi 3098fi 3099ac_ext=c 3100ac_cpp='$CPP $CPPFLAGS' 3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3103ac_compiler_gnu=$ac_cv_c_compiler_gnu 3104DEPDIR="${am__leading_dot}deps" 3105 3106ac_config_commands="$ac_config_commands depfiles" 3107 3108 3109am_make=${MAKE-make} 3110cat > confinc << 'END' 3111am__doit: 3112 @echo done 3113.PHONY: am__doit 3114END 3115# If we don't find an include directive, just comment out the code. 3116{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3117echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3118am__include="#" 3119am__quote= 3120_am_result=none 3121# First try GNU make style include. 3122echo "include confinc" > confmf 3123# We grep out `Entering directory' and `Leaving directory' 3124# messages which can occur if `w' ends up in MAKEFLAGS. 3125# In particular we don't look at `^make:' because GNU make might 3126# be invoked under some other name (usually "gmake"), in which 3127# case it prints its new name instead of `make'. 3128if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3129 am__include=include 3130 am__quote= 3131 _am_result=GNU 3132fi 3133# Now try BSD make style include. 3134if test "$am__include" = "#"; then 3135 echo '.include "confinc"' > confmf 3136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3137 am__include=.include 3138 am__quote="\"" 3139 _am_result=BSD 3140 fi 3141fi 3142 3143 3144{ echo "$as_me:$LINENO: result: $_am_result" >&5 3145echo "${ECHO_T}$_am_result" >&6; } 3146rm -f confinc confmf 3147 3148# Check whether --enable-dependency-tracking was given. 3149if test "${enable_dependency_tracking+set}" = set; then 3150 enableval=$enable_dependency_tracking; 3151fi 3152 3153if test "x$enable_dependency_tracking" != xno; then 3154 am_depcomp="$ac_aux_dir/depcomp" 3155 AMDEPBACKSLASH='\' 3156fi 3157 3158 3159if test "x$enable_dependency_tracking" != xno; then 3160 AMDEP_TRUE= 3161 AMDEP_FALSE='#' 3162else 3163 AMDEP_TRUE='#' 3164 AMDEP_FALSE= 3165fi 3166 3167 3168 3169 3170depcc="$CXX" am_compiler_list= 3171 3172{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3173echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3174if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3175 echo $ECHO_N "(cached) $ECHO_C" >&6 3176else 3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3178 # We make a subdir and do the tests there. Otherwise we can end up 3179 # making bogus files that we don't know about and never remove. For 3180 # instance it was reported that on HP-UX the gcc test will end up 3181 # making a dummy file named `D' -- because `-MD' means `put the output 3182 # in D'. 3183 mkdir conftest.dir 3184 # Copy depcomp to subdir because otherwise we won't find it if we're 3185 # using a relative directory. 3186 cp "$am_depcomp" conftest.dir 3187 cd conftest.dir 3188 # We will build objects and dependencies in a subdirectory because 3189 # it helps to detect inapplicable dependency modes. For instance 3190 # both Tru64's cc and ICC support -MD to output dependencies as a 3191 # side effect of compilation, but ICC will put the dependencies in 3192 # the current directory while Tru64 will put them in the object 3193 # directory. 3194 mkdir sub 3195 3196 am_cv_CXX_dependencies_compiler_type=none 3197 if test "$am_compiler_list" = ""; then 3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3199 fi 3200 for depmode in $am_compiler_list; do 3201 # Setup a source with many dependencies, because some compilers 3202 # like to wrap large dependency lists on column 80 (with \), and 3203 # we should not choose a depcomp mode which is confused by this. 3204 # 3205 # We need to recreate these files for each test, as the compiler may 3206 # overwrite some of them when testing with obscure command lines. 3207 # This happens at least with the AIX C compiler. 3208 : > sub/conftest.c 3209 for i in 1 2 3 4 5 6; do 3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3211 : > sub/conftst$i.h 3212 done 3213 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3214 3215 case $depmode in 3216 nosideeffect) 3217 # after this tag, mechanisms are not by side-effect, so they'll 3218 # only be used when explicitly requested 3219 if test "x$enable_dependency_tracking" = xyes; then 3220 continue 3221 else 3222 break 3223 fi 3224 ;; 3225 none) break ;; 3226 esac 3227 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3228 # mode. It turns out that the SunPro C++ compiler does not properly 3229 # handle `-M -o', and we need to detect this. 3230 if depmode=$depmode \ 3231 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3233 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3234 >/dev/null 2>conftest.err && 3235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3236 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3238 # icc doesn't choke on unknown options, it will just issue warnings 3239 # (even with -Werror). So we grep stderr for any message 3240 # that says an option was ignored. 3241 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3242 am_cv_CXX_dependencies_compiler_type=$depmode 3243 break 3244 fi 3245 fi 3246 done 3247 3248 cd .. 3249 rm -rf conftest.dir 3250else 3251 am_cv_CXX_dependencies_compiler_type=none 3252fi 3253 3254fi 3255{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3256echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3257CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3258 3259 3260 3261if 3262 test "x$enable_dependency_tracking" != xno \ 3263 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3264 am__fastdepCXX_TRUE= 3265 am__fastdepCXX_FALSE='#' 3266else 3267 am__fastdepCXX_TRUE='#' 3268 am__fastdepCXX_FALSE= 3269fi 3270 3271 3272for ac_prog in gawk mawk nawk awk 3273do 3274 # Extract the first word of "$ac_prog", so it can be a program name with args. 3275set dummy $ac_prog; ac_word=$2 3276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3278if test "${ac_cv_prog_AWK+set}" = set; then 3279 echo $ECHO_N "(cached) $ECHO_C" >&6 3280else 3281 if test -n "$AWK"; then 3282 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3283else 3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285for as_dir in $PATH 3286do 3287 IFS=$as_save_IFS 3288 test -z "$as_dir" && as_dir=. 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3291 ac_cv_prog_AWK="$ac_prog" 3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3293 break 2 3294 fi 3295done 3296done 3297IFS=$as_save_IFS 3298 3299fi 3300fi 3301AWK=$ac_cv_prog_AWK 3302if test -n "$AWK"; then 3303 { echo "$as_me:$LINENO: result: $AWK" >&5 3304echo "${ECHO_T}$AWK" >&6; } 3305else 3306 { echo "$as_me:$LINENO: result: no" >&5 3307echo "${ECHO_T}no" >&6; } 3308fi 3309 3310 3311 test -n "$AWK" && break 3312done 3313 3314ac_ext=c 3315ac_cpp='$CPP $CPPFLAGS' 3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3318ac_compiler_gnu=$ac_cv_c_compiler_gnu 3319if test -n "$ac_tool_prefix"; then 3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3321set dummy ${ac_tool_prefix}gcc; ac_word=$2 3322{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3324if test "${ac_cv_prog_CC+set}" = set; then 3325 echo $ECHO_N "(cached) $ECHO_C" >&6 3326else 3327 if test -n "$CC"; then 3328 ac_cv_prog_CC="$CC" # Let the user override the test. 3329else 3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3331for as_dir in $PATH 3332do 3333 IFS=$as_save_IFS 3334 test -z "$as_dir" && as_dir=. 3335 for ac_exec_ext in '' $ac_executable_extensions; do 3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3337 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3339 break 2 3340 fi 3341done 3342done 3343IFS=$as_save_IFS 3344 3345fi 3346fi 3347CC=$ac_cv_prog_CC 3348if test -n "$CC"; then 3349 { echo "$as_me:$LINENO: result: $CC" >&5 3350echo "${ECHO_T}$CC" >&6; } 3351else 3352 { echo "$as_me:$LINENO: result: no" >&5 3353echo "${ECHO_T}no" >&6; } 3354fi 3355 3356 3357fi 3358if test -z "$ac_cv_prog_CC"; then 3359 ac_ct_CC=$CC 3360 # Extract the first word of "gcc", so it can be a program name with args. 3361set dummy gcc; ac_word=$2 3362{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3365 echo $ECHO_N "(cached) $ECHO_C" >&6 3366else 3367 if test -n "$ac_ct_CC"; then 3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3369else 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_exec_ext in '' $ac_executable_extensions; do 3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3377 ac_cv_prog_ac_ct_CC="gcc" 3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3379 break 2 3380 fi 3381done 3382done 3383IFS=$as_save_IFS 3384 3385fi 3386fi 3387ac_ct_CC=$ac_cv_prog_ac_ct_CC 3388if test -n "$ac_ct_CC"; then 3389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3390echo "${ECHO_T}$ac_ct_CC" >&6; } 3391else 3392 { echo "$as_me:$LINENO: result: no" >&5 3393echo "${ECHO_T}no" >&6; } 3394fi 3395 3396 if test "x$ac_ct_CC" = x; then 3397 CC="" 3398 else 3399 case $cross_compiling:$ac_tool_warned in 3400yes:) 3401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3402whose name does not start with the host triplet. If you think this 3403configuration is useful to you, please write to autoconf@gnu.org." >&5 3404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3405whose name does not start with the host triplet. If you think this 3406configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3407ac_tool_warned=yes ;; 3408esac 3409 CC=$ac_ct_CC 3410 fi 3411else 3412 CC="$ac_cv_prog_CC" 3413fi 3414 3415if test -z "$CC"; then 3416 if test -n "$ac_tool_prefix"; then 3417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3418set dummy ${ac_tool_prefix}cc; ac_word=$2 3419{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3421if test "${ac_cv_prog_CC+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423else 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3434 ac_cv_prog_CC="${ac_tool_prefix}cc" 3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439done 3440IFS=$as_save_IFS 3441 3442fi 3443fi 3444CC=$ac_cv_prog_CC 3445if test -n "$CC"; then 3446 { echo "$as_me:$LINENO: result: $CC" >&5 3447echo "${ECHO_T}$CC" >&6; } 3448else 3449 { echo "$as_me:$LINENO: result: no" >&5 3450echo "${ECHO_T}no" >&6; } 3451fi 3452 3453 3454 fi 3455fi 3456if test -z "$CC"; then 3457 # Extract the first word of "cc", so it can be a program name with args. 3458set dummy cc; ac_word=$2 3459{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3461if test "${ac_cv_prog_CC+set}" = set; then 3462 echo $ECHO_N "(cached) $ECHO_C" >&6 3463else 3464 if test -n "$CC"; then 3465 ac_cv_prog_CC="$CC" # Let the user override the test. 3466else 3467 ac_prog_rejected=no 3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3469for as_dir in $PATH 3470do 3471 IFS=$as_save_IFS 3472 test -z "$as_dir" && as_dir=. 3473 for ac_exec_ext in '' $ac_executable_extensions; do 3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3476 ac_prog_rejected=yes 3477 continue 3478 fi 3479 ac_cv_prog_CC="cc" 3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3481 break 2 3482 fi 3483done 3484done 3485IFS=$as_save_IFS 3486 3487if test $ac_prog_rejected = yes; then 3488 # We found a bogon in the path, so make sure we never use it. 3489 set dummy $ac_cv_prog_CC 3490 shift 3491 if test $# != 0; then 3492 # We chose a different compiler from the bogus one. 3493 # However, it has the same basename, so the bogon will be chosen 3494 # first if we set CC to just the basename; use the full file name. 3495 shift 3496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3497 fi 3498fi 3499fi 3500fi 3501CC=$ac_cv_prog_CC 3502if test -n "$CC"; then 3503 { echo "$as_me:$LINENO: result: $CC" >&5 3504echo "${ECHO_T}$CC" >&6; } 3505else 3506 { echo "$as_me:$LINENO: result: no" >&5 3507echo "${ECHO_T}no" >&6; } 3508fi 3509 3510 3511fi 3512if test -z "$CC"; then 3513 if test -n "$ac_tool_prefix"; then 3514 for ac_prog in cl.exe 3515 do 3516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3517set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3520if test "${ac_cv_prog_CC+set}" = set; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522else 3523 if test -n "$CC"; then 3524 ac_cv_prog_CC="$CC" # Let the user override the test. 3525else 3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3527for as_dir in $PATH 3528do 3529 IFS=$as_save_IFS 3530 test -z "$as_dir" && as_dir=. 3531 for ac_exec_ext in '' $ac_executable_extensions; do 3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3535 break 2 3536 fi 3537done 3538done 3539IFS=$as_save_IFS 3540 3541fi 3542fi 3543CC=$ac_cv_prog_CC 3544if test -n "$CC"; then 3545 { echo "$as_me:$LINENO: result: $CC" >&5 3546echo "${ECHO_T}$CC" >&6; } 3547else 3548 { echo "$as_me:$LINENO: result: no" >&5 3549echo "${ECHO_T}no" >&6; } 3550fi 3551 3552 3553 test -n "$CC" && break 3554 done 3555fi 3556if test -z "$CC"; then 3557 ac_ct_CC=$CC 3558 for ac_prog in cl.exe 3559do 3560 # Extract the first word of "$ac_prog", so it can be a program name with args. 3561set dummy $ac_prog; ac_word=$2 3562{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3565 echo $ECHO_N "(cached) $ECHO_C" >&6 3566else 3567 if test -n "$ac_ct_CC"; then 3568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3569else 3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3571for as_dir in $PATH 3572do 3573 IFS=$as_save_IFS 3574 test -z "$as_dir" && as_dir=. 3575 for ac_exec_ext in '' $ac_executable_extensions; do 3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3577 ac_cv_prog_ac_ct_CC="$ac_prog" 3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3579 break 2 3580 fi 3581done 3582done 3583IFS=$as_save_IFS 3584 3585fi 3586fi 3587ac_ct_CC=$ac_cv_prog_ac_ct_CC 3588if test -n "$ac_ct_CC"; then 3589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3590echo "${ECHO_T}$ac_ct_CC" >&6; } 3591else 3592 { echo "$as_me:$LINENO: result: no" >&5 3593echo "${ECHO_T}no" >&6; } 3594fi 3595 3596 3597 test -n "$ac_ct_CC" && break 3598done 3599 3600 if test "x$ac_ct_CC" = x; then 3601 CC="" 3602 else 3603 case $cross_compiling:$ac_tool_warned in 3604yes:) 3605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3606whose name does not start with the host triplet. If you think this 3607configuration is useful to you, please write to autoconf@gnu.org." >&5 3608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3609whose name does not start with the host triplet. If you think this 3610configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3611ac_tool_warned=yes ;; 3612esac 3613 CC=$ac_ct_CC 3614 fi 3615fi 3616 3617fi 3618 3619 3620test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3621See \`config.log' for more details." >&5 3622echo "$as_me: error: no acceptable C compiler found in \$PATH 3623See \`config.log' for more details." >&2;} 3624 { (exit 1); exit 1; }; } 3625 3626# Provide some information about the compiler. 3627echo "$as_me:$LINENO: checking for C compiler version" >&5 3628ac_compiler=`set X $ac_compile; echo $2` 3629{ (ac_try="$ac_compiler --version >&5" 3630case "(($ac_try" in 3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3632 *) ac_try_echo=$ac_try;; 3633esac 3634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3635 (eval "$ac_compiler --version >&5") 2>&5 3636 ac_status=$? 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); } 3639{ (ac_try="$ac_compiler -v >&5" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3645 (eval "$ac_compiler -v >&5") 2>&5 3646 ac_status=$? 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } 3649{ (ac_try="$ac_compiler -V >&5" 3650case "(($ac_try" in 3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3652 *) ac_try_echo=$ac_try;; 3653esac 3654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3655 (eval "$ac_compiler -V >&5") 2>&5 3656 ac_status=$? 3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3658 (exit $ac_status); } 3659 3660{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3661echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3662if test "${ac_cv_c_compiler_gnu+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 cat >conftest.$ac_ext <<_ACEOF 3666/* confdefs.h. */ 3667_ACEOF 3668cat confdefs.h >>conftest.$ac_ext 3669cat >>conftest.$ac_ext <<_ACEOF 3670/* end confdefs.h. */ 3671 3672int 3673main () 3674{ 3675#ifndef __GNUC__ 3676 choke me 3677#endif 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683rm -f conftest.$ac_objext 3684if { (ac_try="$ac_compile" 3685case "(($ac_try" in 3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3687 *) ac_try_echo=$ac_try;; 3688esac 3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3690 (eval "$ac_compile") 2>conftest.er1 3691 ac_status=$? 3692 grep -v '^ *+' conftest.er1 >conftest.err 3693 rm -f conftest.er1 3694 cat conftest.err >&5 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3696 (exit $ac_status); } && 3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3698 { (case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701esac 3702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3703 (eval "$ac_try") 2>&5 3704 ac_status=$? 3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3706 (exit $ac_status); }; } && 3707 { ac_try='test -s conftest.$ac_objext' 3708 { (case "(($ac_try" in 3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3710 *) ac_try_echo=$ac_try;; 3711esac 3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3713 (eval "$ac_try") 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; }; then 3717 ac_compiler_gnu=yes 3718else 3719 echo "$as_me: failed program was:" >&5 3720sed 's/^/| /' conftest.$ac_ext >&5 3721 3722 ac_compiler_gnu=no 3723fi 3724 3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3726ac_cv_c_compiler_gnu=$ac_compiler_gnu 3727 3728fi 3729{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3731GCC=`test $ac_compiler_gnu = yes && echo yes` 3732ac_test_CFLAGS=${CFLAGS+set} 3733ac_save_CFLAGS=$CFLAGS 3734{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3735echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3736if test "${ac_cv_prog_cc_g+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 ac_save_c_werror_flag=$ac_c_werror_flag 3740 ac_c_werror_flag=yes 3741 ac_cv_prog_cc_g=no 3742 CFLAGS="-g" 3743 cat >conftest.$ac_ext <<_ACEOF 3744/* confdefs.h. */ 3745_ACEOF 3746cat confdefs.h >>conftest.$ac_ext 3747cat >>conftest.$ac_ext <<_ACEOF 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753 3754 ; 3755 return 0; 3756} 3757_ACEOF 3758rm -f conftest.$ac_objext 3759if { (ac_try="$ac_compile" 3760case "(($ac_try" in 3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3762 *) ac_try_echo=$ac_try;; 3763esac 3764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3765 (eval "$ac_compile") 2>conftest.er1 3766 ac_status=$? 3767 grep -v '^ *+' conftest.er1 >conftest.err 3768 rm -f conftest.er1 3769 cat conftest.err >&5 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 (exit $ac_status); } && 3772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3773 { (case "(($ac_try" in 3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3775 *) ac_try_echo=$ac_try;; 3776esac 3777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3778 (eval "$ac_try") 2>&5 3779 ac_status=$? 3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3781 (exit $ac_status); }; } && 3782 { ac_try='test -s conftest.$ac_objext' 3783 { (case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786esac 3787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3788 (eval "$ac_try") 2>&5 3789 ac_status=$? 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); }; }; then 3792 ac_cv_prog_cc_g=yes 3793else 3794 echo "$as_me: failed program was:" >&5 3795sed 's/^/| /' conftest.$ac_ext >&5 3796 3797 CFLAGS="" 3798 cat >conftest.$ac_ext <<_ACEOF 3799/* confdefs.h. */ 3800_ACEOF 3801cat confdefs.h >>conftest.$ac_ext 3802cat >>conftest.$ac_ext <<_ACEOF 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813rm -f conftest.$ac_objext 3814if { (ac_try="$ac_compile" 3815case "(($ac_try" in 3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3817 *) ac_try_echo=$ac_try;; 3818esac 3819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3820 (eval "$ac_compile") 2>conftest.er1 3821 ac_status=$? 3822 grep -v '^ *+' conftest.er1 >conftest.err 3823 rm -f conftest.er1 3824 cat conftest.err >&5 3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3826 (exit $ac_status); } && 3827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3828 { (case "(($ac_try" in 3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3830 *) ac_try_echo=$ac_try;; 3831esac 3832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3833 (eval "$ac_try") 2>&5 3834 ac_status=$? 3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3836 (exit $ac_status); }; } && 3837 { ac_try='test -s conftest.$ac_objext' 3838 { (case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3843 (eval "$ac_try") 2>&5 3844 ac_status=$? 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); }; }; then 3847 : 3848else 3849 echo "$as_me: failed program was:" >&5 3850sed 's/^/| /' conftest.$ac_ext >&5 3851 3852 ac_c_werror_flag=$ac_save_c_werror_flag 3853 CFLAGS="-g" 3854 cat >conftest.$ac_ext <<_ACEOF 3855/* confdefs.h. */ 3856_ACEOF 3857cat confdefs.h >>conftest.$ac_ext 3858cat >>conftest.$ac_ext <<_ACEOF 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869rm -f conftest.$ac_objext 3870if { (ac_try="$ac_compile" 3871case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3876 (eval "$ac_compile") 2>conftest.er1 3877 ac_status=$? 3878 grep -v '^ *+' conftest.er1 >conftest.err 3879 rm -f conftest.er1 3880 cat conftest.err >&5 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); } && 3883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3884 { (case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3889 (eval "$ac_try") 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); }; } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3899 (eval "$ac_try") 2>&5 3900 ac_status=$? 3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); }; }; then 3903 ac_cv_prog_cc_g=yes 3904else 3905 echo "$as_me: failed program was:" >&5 3906sed 's/^/| /' conftest.$ac_ext >&5 3907 3908 3909fi 3910 3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3912fi 3913 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915fi 3916 3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3918 ac_c_werror_flag=$ac_save_c_werror_flag 3919fi 3920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3922if test "$ac_test_CFLAGS" = set; then 3923 CFLAGS=$ac_save_CFLAGS 3924elif test $ac_cv_prog_cc_g = yes; then 3925 if test "$GCC" = yes; then 3926 CFLAGS="-g -O2" 3927 else 3928 CFLAGS="-g" 3929 fi 3930else 3931 if test "$GCC" = yes; then 3932 CFLAGS="-O2" 3933 else 3934 CFLAGS= 3935 fi 3936fi 3937{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3938echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3939if test "${ac_cv_prog_cc_c89+set}" = set; then 3940 echo $ECHO_N "(cached) $ECHO_C" >&6 3941else 3942 ac_cv_prog_cc_c89=no 3943ac_save_CC=$CC 3944cat >conftest.$ac_ext <<_ACEOF 3945/* confdefs.h. */ 3946_ACEOF 3947cat confdefs.h >>conftest.$ac_ext 3948cat >>conftest.$ac_ext <<_ACEOF 3949/* end confdefs.h. */ 3950#include <stdarg.h> 3951#include <stdio.h> 3952#include <sys/types.h> 3953#include <sys/stat.h> 3954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3955struct buf { int x; }; 3956FILE * (*rcsopen) (struct buf *, struct stat *, int); 3957static char *e (p, i) 3958 char **p; 3959 int i; 3960{ 3961 return p[i]; 3962} 3963static char *f (char * (*g) (char **, int), char **p, ...) 3964{ 3965 char *s; 3966 va_list v; 3967 va_start (v,p); 3968 s = g (p, va_arg (v,int)); 3969 va_end (v); 3970 return s; 3971} 3972 3973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3974 function prototypes and stuff, but not '\xHH' hex character constants. 3975 These don't provoke an error unfortunately, instead are silently treated 3976 as 'x'. The following induces an error, until -std is added to get 3977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3978 array size at least. It's necessary to write '\x00'==0 to get something 3979 that's true only with -std. */ 3980int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3981 3982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3983 inside strings and character constants. */ 3984#define FOO(x) 'x' 3985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3986 3987int test (int i, double x); 3988struct s1 {int (*f) (int a);}; 3989struct s2 {int (*f) (double a);}; 3990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3991int argc; 3992char **argv; 3993int 3994main () 3995{ 3996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3997 ; 3998 return 0; 3999} 4000_ACEOF 4001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4003do 4004 CC="$ac_save_CC $ac_arg" 4005 rm -f conftest.$ac_objext 4006if { (ac_try="$ac_compile" 4007case "(($ac_try" in 4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4009 *) ac_try_echo=$ac_try;; 4010esac 4011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4012 (eval "$ac_compile") 2>conftest.er1 4013 ac_status=$? 4014 grep -v '^ *+' conftest.er1 >conftest.err 4015 rm -f conftest.er1 4016 cat conftest.err >&5 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } && 4019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4020 { (case "(($ac_try" in 4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4022 *) ac_try_echo=$ac_try;; 4023esac 4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4025 (eval "$ac_try") 2>&5 4026 ac_status=$? 4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028 (exit $ac_status); }; } && 4029 { ac_try='test -s conftest.$ac_objext' 4030 { (case "(($ac_try" in 4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4032 *) ac_try_echo=$ac_try;; 4033esac 4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4035 (eval "$ac_try") 2>&5 4036 ac_status=$? 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4038 (exit $ac_status); }; }; then 4039 ac_cv_prog_cc_c89=$ac_arg 4040else 4041 echo "$as_me: failed program was:" >&5 4042sed 's/^/| /' conftest.$ac_ext >&5 4043 4044 4045fi 4046 4047rm -f core conftest.err conftest.$ac_objext 4048 test "x$ac_cv_prog_cc_c89" != "xno" && break 4049done 4050rm -f conftest.$ac_ext 4051CC=$ac_save_CC 4052 4053fi 4054# AC_CACHE_VAL 4055case "x$ac_cv_prog_cc_c89" in 4056 x) 4057 { echo "$as_me:$LINENO: result: none needed" >&5 4058echo "${ECHO_T}none needed" >&6; } ;; 4059 xno) 4060 { echo "$as_me:$LINENO: result: unsupported" >&5 4061echo "${ECHO_T}unsupported" >&6; } ;; 4062 *) 4063 CC="$CC $ac_cv_prog_cc_c89" 4064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4065echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4066esac 4067 4068 4069ac_ext=c 4070ac_cpp='$CPP $CPPFLAGS' 4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4073ac_compiler_gnu=$ac_cv_c_compiler_gnu 4074 4075depcc="$CC" am_compiler_list= 4076 4077{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4078echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4079if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4083 # We make a subdir and do the tests there. Otherwise we can end up 4084 # making bogus files that we don't know about and never remove. For 4085 # instance it was reported that on HP-UX the gcc test will end up 4086 # making a dummy file named `D' -- because `-MD' means `put the output 4087 # in D'. 4088 mkdir conftest.dir 4089 # Copy depcomp to subdir because otherwise we won't find it if we're 4090 # using a relative directory. 4091 cp "$am_depcomp" conftest.dir 4092 cd conftest.dir 4093 # We will build objects and dependencies in a subdirectory because 4094 # it helps to detect inapplicable dependency modes. For instance 4095 # both Tru64's cc and ICC support -MD to output dependencies as a 4096 # side effect of compilation, but ICC will put the dependencies in 4097 # the current directory while Tru64 will put them in the object 4098 # directory. 4099 mkdir sub 4100 4101 am_cv_CC_dependencies_compiler_type=none 4102 if test "$am_compiler_list" = ""; then 4103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4104 fi 4105 for depmode in $am_compiler_list; do 4106 # Setup a source with many dependencies, because some compilers 4107 # like to wrap large dependency lists on column 80 (with \), and 4108 # we should not choose a depcomp mode which is confused by this. 4109 # 4110 # We need to recreate these files for each test, as the compiler may 4111 # overwrite some of them when testing with obscure command lines. 4112 # This happens at least with the AIX C compiler. 4113 : > sub/conftest.c 4114 for i in 1 2 3 4 5 6; do 4115 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4116 : > sub/conftst$i.h 4117 done 4118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4119 4120 case $depmode in 4121 nosideeffect) 4122 # after this tag, mechanisms are not by side-effect, so they'll 4123 # only be used when explicitly requested 4124 if test "x$enable_dependency_tracking" = xyes; then 4125 continue 4126 else 4127 break 4128 fi 4129 ;; 4130 none) break ;; 4131 esac 4132 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4133 # mode. It turns out that the SunPro C++ compiler does not properly 4134 # handle `-M -o', and we need to detect this. 4135 if depmode=$depmode \ 4136 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4138 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4139 >/dev/null 2>conftest.err && 4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4141 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4143 # icc doesn't choke on unknown options, it will just issue warnings 4144 # (even with -Werror). So we grep stderr for any message 4145 # that says an option was ignored. 4146 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4147 am_cv_CC_dependencies_compiler_type=$depmode 4148 break 4149 fi 4150 fi 4151 done 4152 4153 cd .. 4154 rm -rf conftest.dir 4155else 4156 am_cv_CC_dependencies_compiler_type=none 4157fi 4158 4159fi 4160{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4161echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4162CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4163 4164 4165 4166if 4167 test "x$enable_dependency_tracking" != xno \ 4168 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4169 am__fastdepCC_TRUE= 4170 am__fastdepCC_FALSE='#' 4171else 4172 am__fastdepCC_TRUE='#' 4173 am__fastdepCC_FALSE= 4174fi 4175 4176 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4183echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4184# On Suns, sometimes $CPP names a directory. 4185if test -n "$CPP" && test -d "$CPP"; then 4186 CPP= 4187fi 4188if test -z "$CPP"; then 4189 if test "${ac_cv_prog_CPP+set}" = set; then 4190 echo $ECHO_N "(cached) $ECHO_C" >&6 4191else 4192 # Double quotes because CPP needs to be expanded 4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4194 do 4195 ac_preproc_ok=false 4196for ac_c_preproc_warn_flag in '' yes 4197do 4198 # Use a header file that comes with gcc, so configuring glibc 4199 # with a fresh cross-compiler works. 4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4201 # <limits.h> exists even on freestanding compilers. 4202 # On the NeXT, cc -E runs the code through the compiler's parser, 4203 # not just through cpp. "Syntax error" is here to catch this case. 4204 cat >conftest.$ac_ext <<_ACEOF 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#ifdef __STDC__ 4211# include <limits.h> 4212#else 4213# include <assert.h> 4214#endif 4215 Syntax error 4216_ACEOF 4217if { (ac_try="$ac_cpp conftest.$ac_ext" 4218case "(($ac_try" in 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4220 *) ac_try_echo=$ac_try;; 4221esac 4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4224 ac_status=$? 4225 grep -v '^ *+' conftest.er1 >conftest.err 4226 rm -f conftest.er1 4227 cat conftest.err >&5 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } >/dev/null; then 4230 if test -s conftest.err; then 4231 ac_cpp_err=$ac_c_preproc_warn_flag 4232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4233 else 4234 ac_cpp_err= 4235 fi 4236else 4237 ac_cpp_err=yes 4238fi 4239if test -z "$ac_cpp_err"; then 4240 : 4241else 4242 echo "$as_me: failed program was:" >&5 4243sed 's/^/| /' conftest.$ac_ext >&5 4244 4245 # Broken: fails on valid input. 4246continue 4247fi 4248 4249rm -f conftest.err conftest.$ac_ext 4250 4251 # OK, works on sane cases. Now check whether nonexistent headers 4252 # can be detected and how. 4253 cat >conftest.$ac_ext <<_ACEOF 4254/* confdefs.h. */ 4255_ACEOF 4256cat confdefs.h >>conftest.$ac_ext 4257cat >>conftest.$ac_ext <<_ACEOF 4258/* end confdefs.h. */ 4259#include <ac_nonexistent.h> 4260_ACEOF 4261if { (ac_try="$ac_cpp conftest.$ac_ext" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } >/dev/null; then 4274 if test -s conftest.err; then 4275 ac_cpp_err=$ac_c_preproc_warn_flag 4276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4277 else 4278 ac_cpp_err= 4279 fi 4280else 4281 ac_cpp_err=yes 4282fi 4283if test -z "$ac_cpp_err"; then 4284 # Broken: success on invalid input. 4285continue 4286else 4287 echo "$as_me: failed program was:" >&5 4288sed 's/^/| /' conftest.$ac_ext >&5 4289 4290 # Passes both tests. 4291ac_preproc_ok=: 4292break 4293fi 4294 4295rm -f conftest.err conftest.$ac_ext 4296 4297done 4298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4299rm -f conftest.err conftest.$ac_ext 4300if $ac_preproc_ok; then 4301 break 4302fi 4303 4304 done 4305 ac_cv_prog_CPP=$CPP 4306 4307fi 4308 CPP=$ac_cv_prog_CPP 4309else 4310 ac_cv_prog_CPP=$CPP 4311fi 4312{ echo "$as_me:$LINENO: result: $CPP" >&5 4313echo "${ECHO_T}$CPP" >&6; } 4314ac_preproc_ok=false 4315for ac_c_preproc_warn_flag in '' yes 4316do 4317 # Use a header file that comes with gcc, so configuring glibc 4318 # with a fresh cross-compiler works. 4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4320 # <limits.h> exists even on freestanding compilers. 4321 # On the NeXT, cc -E runs the code through the compiler's parser, 4322 # not just through cpp. "Syntax error" is here to catch this case. 4323 cat >conftest.$ac_ext <<_ACEOF 4324/* confdefs.h. */ 4325_ACEOF 4326cat confdefs.h >>conftest.$ac_ext 4327cat >>conftest.$ac_ext <<_ACEOF 4328/* end confdefs.h. */ 4329#ifdef __STDC__ 4330# include <limits.h> 4331#else 4332# include <assert.h> 4333#endif 4334 Syntax error 4335_ACEOF 4336if { (ac_try="$ac_cpp conftest.$ac_ext" 4337case "(($ac_try" in 4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4339 *) ac_try_echo=$ac_try;; 4340esac 4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4343 ac_status=$? 4344 grep -v '^ *+' conftest.er1 >conftest.err 4345 rm -f conftest.er1 4346 cat conftest.err >&5 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); } >/dev/null; then 4349 if test -s conftest.err; then 4350 ac_cpp_err=$ac_c_preproc_warn_flag 4351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4352 else 4353 ac_cpp_err= 4354 fi 4355else 4356 ac_cpp_err=yes 4357fi 4358if test -z "$ac_cpp_err"; then 4359 : 4360else 4361 echo "$as_me: failed program was:" >&5 4362sed 's/^/| /' conftest.$ac_ext >&5 4363 4364 # Broken: fails on valid input. 4365continue 4366fi 4367 4368rm -f conftest.err conftest.$ac_ext 4369 4370 # OK, works on sane cases. Now check whether nonexistent headers 4371 # can be detected and how. 4372 cat >conftest.$ac_ext <<_ACEOF 4373/* confdefs.h. */ 4374_ACEOF 4375cat confdefs.h >>conftest.$ac_ext 4376cat >>conftest.$ac_ext <<_ACEOF 4377/* end confdefs.h. */ 4378#include <ac_nonexistent.h> 4379_ACEOF 4380if { (ac_try="$ac_cpp conftest.$ac_ext" 4381case "(($ac_try" in 4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4383 *) ac_try_echo=$ac_try;; 4384esac 4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4387 ac_status=$? 4388 grep -v '^ *+' conftest.er1 >conftest.err 4389 rm -f conftest.er1 4390 cat conftest.err >&5 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } >/dev/null; then 4393 if test -s conftest.err; then 4394 ac_cpp_err=$ac_c_preproc_warn_flag 4395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4396 else 4397 ac_cpp_err= 4398 fi 4399else 4400 ac_cpp_err=yes 4401fi 4402if test -z "$ac_cpp_err"; then 4403 # Broken: success on invalid input. 4404continue 4405else 4406 echo "$as_me: failed program was:" >&5 4407sed 's/^/| /' conftest.$ac_ext >&5 4408 4409 # Passes both tests. 4410ac_preproc_ok=: 4411break 4412fi 4413 4414rm -f conftest.err conftest.$ac_ext 4415 4416done 4417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4418rm -f conftest.err conftest.$ac_ext 4419if $ac_preproc_ok; then 4420 : 4421else 4422 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4423See \`config.log' for more details." >&5 4424echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4425See \`config.log' for more details." >&2;} 4426 { (exit 1); exit 1; }; } 4427fi 4428 4429ac_ext=c 4430ac_cpp='$CPP $CPPFLAGS' 4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4433ac_compiler_gnu=$ac_cv_c_compiler_gnu 4434 4435# Find a good install program. We prefer a C program (faster), 4436# so one script is as good as another. But avoid the broken or 4437# incompatible versions: 4438# SysV /etc/install, /usr/sbin/install 4439# SunOS /usr/etc/install 4440# IRIX /sbin/install 4441# AIX /bin/install 4442# AmigaOS /C/install, which installs bootblocks on floppy discs 4443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4444# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4446# OS/2's system install, which has a completely different semantic 4447# ./install, which can be erroneously created by make from ./install.sh. 4448{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4449echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4450if test -z "$INSTALL"; then 4451if test "${ac_cv_path_install+set}" = set; then 4452 echo $ECHO_N "(cached) $ECHO_C" >&6 4453else 4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4455for as_dir in $PATH 4456do 4457 IFS=$as_save_IFS 4458 test -z "$as_dir" && as_dir=. 4459 # Account for people who put trailing slashes in PATH elements. 4460case $as_dir/ in 4461 ./ | .// | /cC/* | \ 4462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4463 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4464 /usr/ucb/* ) ;; 4465 *) 4466 # OSF1 and SCO ODT 3.0 have their own names for install. 4467 # Don't use installbsd from OSF since it installs stuff as root 4468 # by default. 4469 for ac_prog in ginstall scoinst install; do 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 4472 if test $ac_prog = install && 4473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4474 # AIX install. It has an incompatible calling convention. 4475 : 4476 elif test $ac_prog = install && 4477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4478 # program-specific install script used by HP pwplus--don't use. 4479 : 4480 else 4481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4482 break 3 4483 fi 4484 fi 4485 done 4486 done 4487 ;; 4488esac 4489done 4490IFS=$as_save_IFS 4491 4492 4493fi 4494 if test "${ac_cv_path_install+set}" = set; then 4495 INSTALL=$ac_cv_path_install 4496 else 4497 # As a last resort, use the slow shell script. Don't cache a 4498 # value for INSTALL within a source directory, because that will 4499 # break other packages using the cache if that directory is 4500 # removed, or if the value is a relative name. 4501 INSTALL=$ac_install_sh 4502 fi 4503fi 4504{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4505echo "${ECHO_T}$INSTALL" >&6; } 4506 4507# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4508# It thinks the first close brace ends the variable substitution. 4509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4510 4511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4512 4513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4514 4515{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4516echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4517LN_S=$as_ln_s 4518if test "$LN_S" = "ln -s"; then 4519 { echo "$as_me:$LINENO: result: yes" >&5 4520echo "${ECHO_T}yes" >&6; } 4521else 4522 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4523echo "${ECHO_T}no, using $LN_S" >&6; } 4524fi 4525 4526{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4527echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4528set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4529if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4530 echo $ECHO_N "(cached) $ECHO_C" >&6 4531else 4532 cat >conftest.make <<\_ACEOF 4533SHELL = /bin/sh 4534all: 4535 @echo '@@@%%%=$(MAKE)=@@@%%%' 4536_ACEOF 4537# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4538case `${MAKE-make} -f conftest.make 2>/dev/null` in 4539 *@@@%%%=?*=@@@%%%*) 4540 eval ac_cv_prog_make_${ac_make}_set=yes;; 4541 *) 4542 eval ac_cv_prog_make_${ac_make}_set=no;; 4543esac 4544rm -f conftest.make 4545fi 4546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4547 { echo "$as_me:$LINENO: result: yes" >&5 4548echo "${ECHO_T}yes" >&6; } 4549 SET_MAKE= 4550else 4551 { echo "$as_me:$LINENO: result: no" >&5 4552echo "${ECHO_T}no" >&6; } 4553 SET_MAKE="MAKE=${MAKE-make}" 4554fi 4555 4556# Check whether --enable-shared was given. 4557if test "${enable_shared+set}" = set; then 4558 enableval=$enable_shared; p=${PACKAGE-default} 4559 case $enableval in 4560 yes) enable_shared=yes ;; 4561 no) enable_shared=no ;; 4562 *) 4563 enable_shared=no 4564 # Look at the argument we got. We use all the common list separators. 4565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4566 for pkg in $enableval; do 4567 IFS="$lt_save_ifs" 4568 if test "X$pkg" = "X$p"; then 4569 enable_shared=yes 4570 fi 4571 done 4572 IFS="$lt_save_ifs" 4573 ;; 4574 esac 4575else 4576 enable_shared=yes 4577fi 4578 4579 4580# Check whether --enable-static was given. 4581if test "${enable_static+set}" = set; then 4582 enableval=$enable_static; p=${PACKAGE-default} 4583 case $enableval in 4584 yes) enable_static=yes ;; 4585 no) enable_static=no ;; 4586 *) 4587 enable_static=no 4588 # Look at the argument we got. We use all the common list separators. 4589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4590 for pkg in $enableval; do 4591 IFS="$lt_save_ifs" 4592 if test "X$pkg" = "X$p"; then 4593 enable_static=yes 4594 fi 4595 done 4596 IFS="$lt_save_ifs" 4597 ;; 4598 esac 4599else 4600 enable_static=yes 4601fi 4602 4603 4604# Check whether --enable-fast-install was given. 4605if test "${enable_fast_install+set}" = set; then 4606 enableval=$enable_fast_install; p=${PACKAGE-default} 4607 case $enableval in 4608 yes) enable_fast_install=yes ;; 4609 no) enable_fast_install=no ;; 4610 *) 4611 enable_fast_install=no 4612 # Look at the argument we got. We use all the common list separators. 4613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4614 for pkg in $enableval; do 4615 IFS="$lt_save_ifs" 4616 if test "X$pkg" = "X$p"; then 4617 enable_fast_install=yes 4618 fi 4619 done 4620 IFS="$lt_save_ifs" 4621 ;; 4622 esac 4623else 4624 enable_fast_install=yes 4625fi 4626 4627 4628{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4629echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4630if test "${lt_cv_path_SED+set}" = set; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 # Loop through the user's path and test for sed and gsed. 4634# Then use that list of sed's as ones to test for truncation. 4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH 4637do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for lt_ac_prog in sed gsed; do 4641 for ac_exec_ext in '' $ac_executable_extensions; do 4642 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4643 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4644 fi 4645 done 4646 done 4647done 4648lt_ac_max=0 4649lt_ac_count=0 4650# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4651# along with /bin/sed that truncates output. 4652for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4653 test ! -f $lt_ac_sed && continue 4654 cat /dev/null > conftest.in 4655 lt_ac_count=0 4656 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4657 # Check for GNU sed and select it if it is found. 4658 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4659 lt_cv_path_SED=$lt_ac_sed 4660 break 4661 fi 4662 while true; do 4663 cat conftest.in conftest.in >conftest.tmp 4664 mv -f conftest.tmp conftest.in 4665 cp conftest.in conftest.nl 4666 echo >>conftest.nl 4667 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4668 cmp -s conftest.out conftest.nl || break 4669 # 10000 chars as input seems more than enough 4670 test $lt_ac_count -gt 10 && break 4671 lt_ac_count=`expr $lt_ac_count + 1` 4672 if test $lt_ac_count -gt $lt_ac_max; then 4673 lt_ac_max=$lt_ac_count 4674 lt_cv_path_SED=$lt_ac_sed 4675 fi 4676 done 4677done 4678 4679fi 4680 4681SED=$lt_cv_path_SED 4682{ echo "$as_me:$LINENO: result: $SED" >&5 4683echo "${ECHO_T}$SED" >&6; } 4684 4685{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4686echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4687if test "${ac_cv_path_GREP+set}" = set; then 4688 echo $ECHO_N "(cached) $ECHO_C" >&6 4689else 4690 # Extract the first word of "grep ggrep" to use in msg output 4691if test -z "$GREP"; then 4692set dummy grep ggrep; ac_prog_name=$2 4693if test "${ac_cv_path_GREP+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 ac_path_GREP_found=false 4697# Loop through the user's path and test for each of PROGNAME-LIST 4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4700do 4701 IFS=$as_save_IFS 4702 test -z "$as_dir" && as_dir=. 4703 for ac_prog in grep ggrep; do 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4706 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4707 # Check for GNU ac_path_GREP and select it if it is found. 4708 # Check for GNU $ac_path_GREP 4709case `"$ac_path_GREP" --version 2>&1` in 4710*GNU*) 4711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4712*) 4713 ac_count=0 4714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4715 while : 4716 do 4717 cat "conftest.in" "conftest.in" >"conftest.tmp" 4718 mv "conftest.tmp" "conftest.in" 4719 cp "conftest.in" "conftest.nl" 4720 echo 'GREP' >> "conftest.nl" 4721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4723 ac_count=`expr $ac_count + 1` 4724 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4725 # Best one so far, save it but keep looking for a better one 4726 ac_cv_path_GREP="$ac_path_GREP" 4727 ac_path_GREP_max=$ac_count 4728 fi 4729 # 10*(2^10) chars as input seems more than enough 4730 test $ac_count -gt 10 && break 4731 done 4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4733esac 4734 4735 4736 $ac_path_GREP_found && break 3 4737 done 4738done 4739 4740done 4741IFS=$as_save_IFS 4742 4743 4744fi 4745 4746GREP="$ac_cv_path_GREP" 4747if test -z "$GREP"; then 4748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4749echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4750 { (exit 1); exit 1; }; } 4751fi 4752 4753else 4754 ac_cv_path_GREP=$GREP 4755fi 4756 4757 4758fi 4759{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4760echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4761 GREP="$ac_cv_path_GREP" 4762 4763 4764{ echo "$as_me:$LINENO: checking for egrep" >&5 4765echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4766if test "${ac_cv_path_EGREP+set}" = set; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768else 4769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4770 then ac_cv_path_EGREP="$GREP -E" 4771 else 4772 # Extract the first word of "egrep" to use in msg output 4773if test -z "$EGREP"; then 4774set dummy egrep; ac_prog_name=$2 4775if test "${ac_cv_path_EGREP+set}" = set; then 4776 echo $ECHO_N "(cached) $ECHO_C" >&6 4777else 4778 ac_path_EGREP_found=false 4779# Loop through the user's path and test for each of PROGNAME-LIST 4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4782do 4783 IFS=$as_save_IFS 4784 test -z "$as_dir" && as_dir=. 4785 for ac_prog in egrep; do 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4788 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4789 # Check for GNU ac_path_EGREP and select it if it is found. 4790 # Check for GNU $ac_path_EGREP 4791case `"$ac_path_EGREP" --version 2>&1` in 4792*GNU*) 4793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4794*) 4795 ac_count=0 4796 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4797 while : 4798 do 4799 cat "conftest.in" "conftest.in" >"conftest.tmp" 4800 mv "conftest.tmp" "conftest.in" 4801 cp "conftest.in" "conftest.nl" 4802 echo 'EGREP' >> "conftest.nl" 4803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4805 ac_count=`expr $ac_count + 1` 4806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4807 # Best one so far, save it but keep looking for a better one 4808 ac_cv_path_EGREP="$ac_path_EGREP" 4809 ac_path_EGREP_max=$ac_count 4810 fi 4811 # 10*(2^10) chars as input seems more than enough 4812 test $ac_count -gt 10 && break 4813 done 4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4815esac 4816 4817 4818 $ac_path_EGREP_found && break 3 4819 done 4820done 4821 4822done 4823IFS=$as_save_IFS 4824 4825 4826fi 4827 4828EGREP="$ac_cv_path_EGREP" 4829if test -z "$EGREP"; then 4830 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4831echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4832 { (exit 1); exit 1; }; } 4833fi 4834 4835else 4836 ac_cv_path_EGREP=$EGREP 4837fi 4838 4839 4840 fi 4841fi 4842{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4843echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4844 EGREP="$ac_cv_path_EGREP" 4845 4846 4847 4848# Check whether --with-gnu-ld was given. 4849if test "${with_gnu_ld+set}" = set; then 4850 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4851else 4852 with_gnu_ld=no 4853fi 4854 4855ac_prog=ld 4856if test "$GCC" = yes; then 4857 # Check if gcc -print-prog-name=ld gives a path. 4858 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4859echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4860 case $host in 4861 *-*-mingw*) 4862 # gcc leaves a trailing carriage return which upsets mingw 4863 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4864 *) 4865 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4866 esac 4867 case $ac_prog in 4868 # Accept absolute paths. 4869 [\\/]* | ?:[\\/]*) 4870 re_direlt='/[^/][^/]*/\.\./' 4871 # Canonicalize the pathname of ld 4872 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4873 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4874 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4875 done 4876 test -z "$LD" && LD="$ac_prog" 4877 ;; 4878 "") 4879 # If it fails, then pretend we aren't using GCC. 4880 ac_prog=ld 4881 ;; 4882 *) 4883 # If it is relative, then search for the first ld in PATH. 4884 with_gnu_ld=unknown 4885 ;; 4886 esac 4887elif test "$with_gnu_ld" = yes; then 4888 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4889echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4890else 4891 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4892echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4893fi 4894if test "${lt_cv_path_LD+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 if test -z "$LD"; then 4898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4899 for ac_dir in $PATH; do 4900 IFS="$lt_save_ifs" 4901 test -z "$ac_dir" && ac_dir=. 4902 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4903 lt_cv_path_LD="$ac_dir/$ac_prog" 4904 # Check to see if the program is GNU ld. I'd rather use --version, 4905 # but apparently some variants of GNU ld only accept -v. 4906 # Break only if it was the GNU/non-GNU ld that we prefer. 4907 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4908 *GNU* | *'with BFD'*) 4909 test "$with_gnu_ld" != no && break 4910 ;; 4911 *) 4912 test "$with_gnu_ld" != yes && break 4913 ;; 4914 esac 4915 fi 4916 done 4917 IFS="$lt_save_ifs" 4918else 4919 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4920fi 4921fi 4922 4923LD="$lt_cv_path_LD" 4924if test -n "$LD"; then 4925 { echo "$as_me:$LINENO: result: $LD" >&5 4926echo "${ECHO_T}$LD" >&6; } 4927else 4928 { echo "$as_me:$LINENO: result: no" >&5 4929echo "${ECHO_T}no" >&6; } 4930fi 4931test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4932echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4933 { (exit 1); exit 1; }; } 4934{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4935echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4936if test "${lt_cv_prog_gnu_ld+set}" = set; then 4937 echo $ECHO_N "(cached) $ECHO_C" >&6 4938else 4939 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4940case `$LD -v 2>&1 </dev/null` in 4941*GNU* | *'with BFD'*) 4942 lt_cv_prog_gnu_ld=yes 4943 ;; 4944*) 4945 lt_cv_prog_gnu_ld=no 4946 ;; 4947esac 4948fi 4949{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4950echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4951with_gnu_ld=$lt_cv_prog_gnu_ld 4952 4953 4954{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4955echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4956if test "${lt_cv_ld_reload_flag+set}" = set; then 4957 echo $ECHO_N "(cached) $ECHO_C" >&6 4958else 4959 lt_cv_ld_reload_flag='-r' 4960fi 4961{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4962echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4963reload_flag=$lt_cv_ld_reload_flag 4964case $reload_flag in 4965"" | " "*) ;; 4966*) reload_flag=" $reload_flag" ;; 4967esac 4968reload_cmds='$LD$reload_flag -o $output$reload_objs' 4969case $host_os in 4970 darwin*) 4971 if test "$GCC" = yes; then 4972 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4973 else 4974 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4975 fi 4976 ;; 4977esac 4978 4979{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4980echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4981if test "${lt_cv_path_NM+set}" = set; then 4982 echo $ECHO_N "(cached) $ECHO_C" >&6 4983else 4984 if test -n "$NM"; then 4985 # Let the user override the test. 4986 lt_cv_path_NM="$NM" 4987else 4988 lt_nm_to_check="${ac_tool_prefix}nm" 4989 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4990 lt_nm_to_check="$lt_nm_to_check nm" 4991 fi 4992 for lt_tmp_nm in $lt_nm_to_check; do 4993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4994 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4995 IFS="$lt_save_ifs" 4996 test -z "$ac_dir" && ac_dir=. 4997 tmp_nm="$ac_dir/$lt_tmp_nm" 4998 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4999 # Check to see if the nm accepts a BSD-compat flag. 5000 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5001 # nm: unknown option "B" ignored 5002 # Tru64's nm complains that /dev/null is an invalid object file 5003 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5004 */dev/null* | *'Invalid file or object type'*) 5005 lt_cv_path_NM="$tmp_nm -B" 5006 break 5007 ;; 5008 *) 5009 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5010 */dev/null*) 5011 lt_cv_path_NM="$tmp_nm -p" 5012 break 5013 ;; 5014 *) 5015 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5016 continue # so that we can try to find one that supports BSD flags 5017 ;; 5018 esac 5019 ;; 5020 esac 5021 fi 5022 done 5023 IFS="$lt_save_ifs" 5024 done 5025 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5026fi 5027fi 5028{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5029echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5030NM="$lt_cv_path_NM" 5031 5032{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5033echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 5034if test "${lt_cv_deplibs_check_method+set}" = set; then 5035 echo $ECHO_N "(cached) $ECHO_C" >&6 5036else 5037 lt_cv_file_magic_cmd='$MAGIC_CMD' 5038lt_cv_file_magic_test_file= 5039lt_cv_deplibs_check_method='unknown' 5040# Need to set the preceding variable on all platforms that support 5041# interlibrary dependencies. 5042# 'none' -- dependencies not supported. 5043# `unknown' -- same as none, but documents that we really don't know. 5044# 'pass_all' -- all dependencies passed with no checks. 5045# 'test_compile' -- check by making test program. 5046# 'file_magic [[regex]]' -- check by looking for files in library path 5047# which responds to the $file_magic_cmd with a given extended regex. 5048# If you have `file' or equivalent on your system and you're not sure 5049# whether `pass_all' will *always* work, you probably want this one. 5050 5051case $host_os in 5052aix4* | aix5*) 5053 lt_cv_deplibs_check_method=pass_all 5054 ;; 5055 5056beos*) 5057 lt_cv_deplibs_check_method=pass_all 5058 ;; 5059 5060bsdi[45]*) 5061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5062 lt_cv_file_magic_cmd='/usr/bin/file -L' 5063 lt_cv_file_magic_test_file=/shlib/libc.so 5064 ;; 5065 5066cygwin*) 5067 # func_win32_libid is a shell function defined in ltmain.sh 5068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5069 lt_cv_file_magic_cmd='func_win32_libid' 5070 ;; 5071 5072mingw* | pw32*) 5073 # Base MSYS/MinGW do not provide the 'file' command needed by 5074 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5075 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5076 lt_cv_file_magic_cmd='$OBJDUMP -f' 5077 ;; 5078 5079darwin* | rhapsody*) 5080 lt_cv_deplibs_check_method=pass_all 5081 ;; 5082 5083freebsd* | kfreebsd*-gnu | dragonfly*) 5084 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5085 case $host_cpu in 5086 i*86 ) 5087 # Not sure whether the presence of OpenBSD here was a mistake. 5088 # Let's accept both of them until this is cleared up. 5089 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5090 lt_cv_file_magic_cmd=/usr/bin/file 5091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5092 ;; 5093 esac 5094 else 5095 lt_cv_deplibs_check_method=pass_all 5096 fi 5097 ;; 5098 5099gnu*) 5100 lt_cv_deplibs_check_method=pass_all 5101 ;; 5102 5103hpux10.20* | hpux11*) 5104 lt_cv_file_magic_cmd=/usr/bin/file 5105 case $host_cpu in 5106 ia64*) 5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5108 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5109 ;; 5110 hppa*64*) 5111 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]' 5112 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5113 ;; 5114 *) 5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5116 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5117 ;; 5118 esac 5119 ;; 5120 5121interix3*) 5122 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5124 ;; 5125 5126irix5* | irix6* | nonstopux*) 5127 case $LD in 5128 *-32|*"-32 ") libmagic=32-bit;; 5129 *-n32|*"-n32 ") libmagic=N32;; 5130 *-64|*"-64 ") libmagic=64-bit;; 5131 *) libmagic=never-match;; 5132 esac 5133 lt_cv_deplibs_check_method=pass_all 5134 ;; 5135 5136# This must be Linux ELF. 5137linux*) 5138 lt_cv_deplibs_check_method=pass_all 5139 ;; 5140 5141netbsd*) 5142 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5144 else 5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5146 fi 5147 ;; 5148 5149newos6*) 5150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5151 lt_cv_file_magic_cmd=/usr/bin/file 5152 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5153 ;; 5154 5155nto-qnx*) 5156 lt_cv_deplibs_check_method=unknown 5157 ;; 5158 5159openbsd*) 5160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5162 else 5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5164 fi 5165 ;; 5166 5167osf3* | osf4* | osf5*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171solaris*) 5172 lt_cv_deplibs_check_method=pass_all 5173 ;; 5174 5175sysv4 | sysv4.3*) 5176 case $host_vendor in 5177 motorola) 5178 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]' 5179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5180 ;; 5181 ncr) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184 sequent) 5185 lt_cv_file_magic_cmd='/bin/file' 5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5187 ;; 5188 sni) 5189 lt_cv_file_magic_cmd='/bin/file' 5190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5191 lt_cv_file_magic_test_file=/lib/libc.so 5192 ;; 5193 siemens) 5194 lt_cv_deplibs_check_method=pass_all 5195 ;; 5196 pc) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199 esac 5200 ;; 5201 5202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5203 lt_cv_deplibs_check_method=pass_all 5204 ;; 5205esac 5206 5207fi 5208{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5209echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5210file_magic_cmd=$lt_cv_file_magic_cmd 5211deplibs_check_method=$lt_cv_deplibs_check_method 5212test -z "$deplibs_check_method" && deplibs_check_method=unknown 5213 5214 5215 5216 5217# If no C compiler was specified, use CC. 5218LTCC=${LTCC-"$CC"} 5219 5220# If no C compiler flags were specified, use CFLAGS. 5221LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5222 5223# Allow CC to be a program name with arguments. 5224compiler=$CC 5225 5226 5227# Check whether --enable-libtool-lock was given. 5228if test "${enable_libtool_lock+set}" = set; then 5229 enableval=$enable_libtool_lock; 5230fi 5231 5232test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5233 5234# Some flags need to be propagated to the compiler or linker for good 5235# libtool support. 5236case $host in 5237ia64-*-hpux*) 5238 # Find out which ABI we are using. 5239 echo 'int i;' > conftest.$ac_ext 5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5241 (eval $ac_compile) 2>&5 5242 ac_status=$? 5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5244 (exit $ac_status); }; then 5245 case `/usr/bin/file conftest.$ac_objext` in 5246 *ELF-32*) 5247 HPUX_IA64_MODE="32" 5248 ;; 5249 *ELF-64*) 5250 HPUX_IA64_MODE="64" 5251 ;; 5252 esac 5253 fi 5254 rm -rf conftest* 5255 ;; 5256*-*-irix6*) 5257 # Find out which ABI we are using. 5258 echo '#line 5258 "configure"' > conftest.$ac_ext 5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5260 (eval $ac_compile) 2>&5 5261 ac_status=$? 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); }; then 5264 if test "$lt_cv_prog_gnu_ld" = yes; then 5265 case `/usr/bin/file conftest.$ac_objext` in 5266 *32-bit*) 5267 LD="${LD-ld} -melf32bsmip" 5268 ;; 5269 *N32*) 5270 LD="${LD-ld} -melf32bmipn32" 5271 ;; 5272 *64-bit*) 5273 LD="${LD-ld} -melf64bmip" 5274 ;; 5275 esac 5276 else 5277 case `/usr/bin/file conftest.$ac_objext` in 5278 *32-bit*) 5279 LD="${LD-ld} -32" 5280 ;; 5281 *N32*) 5282 LD="${LD-ld} -n32" 5283 ;; 5284 *64-bit*) 5285 LD="${LD-ld} -64" 5286 ;; 5287 esac 5288 fi 5289 fi 5290 rm -rf conftest* 5291 ;; 5292 5293x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5294 # Find out which ABI we are using. 5295 echo 'int i;' > conftest.$ac_ext 5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5297 (eval $ac_compile) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); }; then 5301 case `/usr/bin/file conftest.o` in 5302 *32-bit*) 5303 case $host in 5304 x86_64-*linux*) 5305 LD="${LD-ld} -m elf_i386" 5306 ;; 5307 ppc64-*linux*|powerpc64-*linux*) 5308 LD="${LD-ld} -m elf32ppclinux" 5309 ;; 5310 s390x-*linux*) 5311 LD="${LD-ld} -m elf_s390" 5312 ;; 5313 sparc64-*linux*) 5314 LD="${LD-ld} -m elf32_sparc" 5315 ;; 5316 esac 5317 ;; 5318 *64-bit*) 5319 case $host in 5320 x86_64-*linux*) 5321 LD="${LD-ld} -m elf_x86_64" 5322 ;; 5323 ppc*-*linux*|powerpc*-*linux*) 5324 LD="${LD-ld} -m elf64ppc" 5325 ;; 5326 s390*-*linux*) 5327 LD="${LD-ld} -m elf64_s390" 5328 ;; 5329 sparc*-*linux*) 5330 LD="${LD-ld} -m elf64_sparc" 5331 ;; 5332 esac 5333 ;; 5334 esac 5335 fi 5336 rm -rf conftest* 5337 ;; 5338 5339*-*-sco3.2v5*) 5340 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5341 SAVE_CFLAGS="$CFLAGS" 5342 CFLAGS="$CFLAGS -belf" 5343 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5344echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5345if test "${lt_cv_cc_needs_belf+set}" = set; then 5346 echo $ECHO_N "(cached) $ECHO_C" >&6 5347else 5348 ac_ext=c 5349ac_cpp='$CPP $CPPFLAGS' 5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5352ac_compiler_gnu=$ac_cv_c_compiler_gnu 5353 5354 cat >conftest.$ac_ext <<_ACEOF 5355/* confdefs.h. */ 5356_ACEOF 5357cat confdefs.h >>conftest.$ac_ext 5358cat >>conftest.$ac_ext <<_ACEOF 5359/* end confdefs.h. */ 5360 5361int 5362main () 5363{ 5364 5365 ; 5366 return 0; 5367} 5368_ACEOF 5369rm -f conftest.$ac_objext conftest$ac_exeext 5370if { (ac_try="$ac_link" 5371case "(($ac_try" in 5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5373 *) ac_try_echo=$ac_try;; 5374esac 5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5376 (eval "$ac_link") 2>conftest.er1 5377 ac_status=$? 5378 grep -v '^ *+' conftest.er1 >conftest.err 5379 rm -f conftest.er1 5380 cat conftest.err >&5 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5382 (exit $ac_status); } && 5383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5384 { (case "(($ac_try" in 5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5386 *) ac_try_echo=$ac_try;; 5387esac 5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5389 (eval "$ac_try") 2>&5 5390 ac_status=$? 5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5392 (exit $ac_status); }; } && 5393 { ac_try='test -s conftest$ac_exeext' 5394 { (case "(($ac_try" in 5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5396 *) ac_try_echo=$ac_try;; 5397esac 5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5399 (eval "$ac_try") 2>&5 5400 ac_status=$? 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5402 (exit $ac_status); }; }; then 5403 lt_cv_cc_needs_belf=yes 5404else 5405 echo "$as_me: failed program was:" >&5 5406sed 's/^/| /' conftest.$ac_ext >&5 5407 5408 lt_cv_cc_needs_belf=no 5409fi 5410 5411rm -f core conftest.err conftest.$ac_objext \ 5412 conftest$ac_exeext conftest.$ac_ext 5413 ac_ext=c 5414ac_cpp='$CPP $CPPFLAGS' 5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5417ac_compiler_gnu=$ac_cv_c_compiler_gnu 5418 5419fi 5420{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5421echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5422 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5424 CFLAGS="$SAVE_CFLAGS" 5425 fi 5426 ;; 5427sparc*-*solaris*) 5428 # Find out which ABI we are using. 5429 echo 'int i;' > conftest.$ac_ext 5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5431 (eval $ac_compile) 2>&5 5432 ac_status=$? 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); }; then 5435 case `/usr/bin/file conftest.o` in 5436 *64-bit*) 5437 case $lt_cv_prog_gnu_ld in 5438 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5439 *) LD="${LD-ld} -64" ;; 5440 esac 5441 ;; 5442 esac 5443 fi 5444 rm -rf conftest* 5445 ;; 5446 5447 5448esac 5449 5450need_locks="$enable_libtool_lock" 5451 5452 5453 5454{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5455echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5456if test "${ac_cv_header_stdc+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 cat >conftest.$ac_ext <<_ACEOF 5460/* confdefs.h. */ 5461_ACEOF 5462cat confdefs.h >>conftest.$ac_ext 5463cat >>conftest.$ac_ext <<_ACEOF 5464/* end confdefs.h. */ 5465#include <stdlib.h> 5466#include <stdarg.h> 5467#include <string.h> 5468#include <float.h> 5469 5470int 5471main () 5472{ 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478rm -f conftest.$ac_objext 5479if { (ac_try="$ac_compile" 5480case "(($ac_try" in 5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5482 *) ac_try_echo=$ac_try;; 5483esac 5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5485 (eval "$ac_compile") 2>conftest.er1 5486 ac_status=$? 5487 grep -v '^ *+' conftest.er1 >conftest.err 5488 rm -f conftest.er1 5489 cat conftest.err >&5 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); } && 5492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5493 { (case "(($ac_try" in 5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5495 *) ac_try_echo=$ac_try;; 5496esac 5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5498 (eval "$ac_try") 2>&5 5499 ac_status=$? 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); }; } && 5502 { ac_try='test -s conftest.$ac_objext' 5503 { (case "(($ac_try" in 5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5505 *) ac_try_echo=$ac_try;; 5506esac 5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5508 (eval "$ac_try") 2>&5 5509 ac_status=$? 5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5511 (exit $ac_status); }; }; then 5512 ac_cv_header_stdc=yes 5513else 5514 echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 ac_cv_header_stdc=no 5518fi 5519 5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5521 5522if test $ac_cv_header_stdc = yes; then 5523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5524 cat >conftest.$ac_ext <<_ACEOF 5525/* confdefs.h. */ 5526_ACEOF 5527cat confdefs.h >>conftest.$ac_ext 5528cat >>conftest.$ac_ext <<_ACEOF 5529/* end confdefs.h. */ 5530#include <string.h> 5531 5532_ACEOF 5533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5534 $EGREP "memchr" >/dev/null 2>&1; then 5535 : 5536else 5537 ac_cv_header_stdc=no 5538fi 5539rm -f conftest* 5540 5541fi 5542 5543if test $ac_cv_header_stdc = yes; then 5544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5545 cat >conftest.$ac_ext <<_ACEOF 5546/* confdefs.h. */ 5547_ACEOF 5548cat confdefs.h >>conftest.$ac_ext 5549cat >>conftest.$ac_ext <<_ACEOF 5550/* end confdefs.h. */ 5551#include <stdlib.h> 5552 5553_ACEOF 5554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5555 $EGREP "free" >/dev/null 2>&1; then 5556 : 5557else 5558 ac_cv_header_stdc=no 5559fi 5560rm -f conftest* 5561 5562fi 5563 5564if test $ac_cv_header_stdc = yes; then 5565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5566 if test "$cross_compiling" = yes; then 5567 : 5568else 5569 cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575#include <ctype.h> 5576#include <stdlib.h> 5577#if ((' ' & 0x0FF) == 0x020) 5578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5580#else 5581# define ISLOWER(c) \ 5582 (('a' <= (c) && (c) <= 'i') \ 5583 || ('j' <= (c) && (c) <= 'r') \ 5584 || ('s' <= (c) && (c) <= 'z')) 5585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5586#endif 5587 5588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5589int 5590main () 5591{ 5592 int i; 5593 for (i = 0; i < 256; i++) 5594 if (XOR (islower (i), ISLOWER (i)) 5595 || toupper (i) != TOUPPER (i)) 5596 return 2; 5597 return 0; 5598} 5599_ACEOF 5600rm -f conftest$ac_exeext 5601if { (ac_try="$ac_link" 5602case "(($ac_try" in 5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5604 *) ac_try_echo=$ac_try;; 5605esac 5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5607 (eval "$ac_link") 2>&5 5608 ac_status=$? 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5611 { (case "(($ac_try" in 5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5613 *) ac_try_echo=$ac_try;; 5614esac 5615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5616 (eval "$ac_try") 2>&5 5617 ac_status=$? 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); }; }; then 5620 : 5621else 5622 echo "$as_me: program exited with status $ac_status" >&5 5623echo "$as_me: failed program was:" >&5 5624sed 's/^/| /' conftest.$ac_ext >&5 5625 5626( exit $ac_status ) 5627ac_cv_header_stdc=no 5628fi 5629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5630fi 5631 5632 5633fi 5634fi 5635{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5636echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5637if test $ac_cv_header_stdc = yes; then 5638 5639cat >>confdefs.h <<\_ACEOF 5640#define STDC_HEADERS 1 5641_ACEOF 5642 5643fi 5644 5645# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5656 inttypes.h stdint.h unistd.h 5657do 5658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5659{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5662 echo $ECHO_N "(cached) $ECHO_C" >&6 5663else 5664 cat >conftest.$ac_ext <<_ACEOF 5665/* confdefs.h. */ 5666_ACEOF 5667cat confdefs.h >>conftest.$ac_ext 5668cat >>conftest.$ac_ext <<_ACEOF 5669/* end confdefs.h. */ 5670$ac_includes_default 5671 5672#include <$ac_header> 5673_ACEOF 5674rm -f conftest.$ac_objext 5675if { (ac_try="$ac_compile" 5676case "(($ac_try" in 5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5678 *) ac_try_echo=$ac_try;; 5679esac 5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5681 (eval "$ac_compile") 2>conftest.er1 5682 ac_status=$? 5683 grep -v '^ *+' conftest.er1 >conftest.err 5684 rm -f conftest.er1 5685 cat conftest.err >&5 5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5687 (exit $ac_status); } && 5688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5689 { (case "(($ac_try" in 5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5691 *) ac_try_echo=$ac_try;; 5692esac 5693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5694 (eval "$ac_try") 2>&5 5695 ac_status=$? 5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 (exit $ac_status); }; } && 5698 { ac_try='test -s conftest.$ac_objext' 5699 { (case "(($ac_try" in 5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5701 *) ac_try_echo=$ac_try;; 5702esac 5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5704 (eval "$ac_try") 2>&5 5705 ac_status=$? 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); }; }; then 5708 eval "$as_ac_Header=yes" 5709else 5710 echo "$as_me: failed program was:" >&5 5711sed 's/^/| /' conftest.$ac_ext >&5 5712 5713 eval "$as_ac_Header=no" 5714fi 5715 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5717fi 5718ac_res=`eval echo '${'$as_ac_Header'}'` 5719 { echo "$as_me:$LINENO: result: $ac_res" >&5 5720echo "${ECHO_T}$ac_res" >&6; } 5721if test `eval echo '${'$as_ac_Header'}'` = yes; then 5722 cat >>confdefs.h <<_ACEOF 5723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5724_ACEOF 5725 5726fi 5727 5728done 5729 5730 5731 5732for ac_header in dlfcn.h 5733do 5734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5736 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5739 echo $ECHO_N "(cached) $ECHO_C" >&6 5740fi 5741ac_res=`eval echo '${'$as_ac_Header'}'` 5742 { echo "$as_me:$LINENO: result: $ac_res" >&5 5743echo "${ECHO_T}$ac_res" >&6; } 5744else 5745 # Is the header compilable? 5746{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5748cat >conftest.$ac_ext <<_ACEOF 5749/* confdefs.h. */ 5750_ACEOF 5751cat confdefs.h >>conftest.$ac_ext 5752cat >>conftest.$ac_ext <<_ACEOF 5753/* end confdefs.h. */ 5754$ac_includes_default 5755#include <$ac_header> 5756_ACEOF 5757rm -f conftest.$ac_objext 5758if { (ac_try="$ac_compile" 5759case "(($ac_try" in 5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5761 *) ac_try_echo=$ac_try;; 5762esac 5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5764 (eval "$ac_compile") 2>conftest.er1 5765 ac_status=$? 5766 grep -v '^ *+' conftest.er1 >conftest.err 5767 rm -f conftest.er1 5768 cat conftest.err >&5 5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5770 (exit $ac_status); } && 5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5772 { (case "(($ac_try" in 5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5774 *) ac_try_echo=$ac_try;; 5775esac 5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5777 (eval "$ac_try") 2>&5 5778 ac_status=$? 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); }; } && 5781 { ac_try='test -s conftest.$ac_objext' 5782 { (case "(($ac_try" in 5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5784 *) ac_try_echo=$ac_try;; 5785esac 5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5787 (eval "$ac_try") 2>&5 5788 ac_status=$? 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); }; }; then 5791 ac_header_compiler=yes 5792else 5793 echo "$as_me: failed program was:" >&5 5794sed 's/^/| /' conftest.$ac_ext >&5 5795 5796 ac_header_compiler=no 5797fi 5798 5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5800{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5801echo "${ECHO_T}$ac_header_compiler" >&6; } 5802 5803# Is the header present? 5804{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5806cat >conftest.$ac_ext <<_ACEOF 5807/* confdefs.h. */ 5808_ACEOF 5809cat confdefs.h >>conftest.$ac_ext 5810cat >>conftest.$ac_ext <<_ACEOF 5811/* end confdefs.h. */ 5812#include <$ac_header> 5813_ACEOF 5814if { (ac_try="$ac_cpp conftest.$ac_ext" 5815case "(($ac_try" in 5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5817 *) ac_try_echo=$ac_try;; 5818esac 5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5821 ac_status=$? 5822 grep -v '^ *+' conftest.er1 >conftest.err 5823 rm -f conftest.er1 5824 cat conftest.err >&5 5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5826 (exit $ac_status); } >/dev/null; then 5827 if test -s conftest.err; then 5828 ac_cpp_err=$ac_c_preproc_warn_flag 5829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5830 else 5831 ac_cpp_err= 5832 fi 5833else 5834 ac_cpp_err=yes 5835fi 5836if test -z "$ac_cpp_err"; then 5837 ac_header_preproc=yes 5838else 5839 echo "$as_me: failed program was:" >&5 5840sed 's/^/| /' conftest.$ac_ext >&5 5841 5842 ac_header_preproc=no 5843fi 5844 5845rm -f conftest.err conftest.$ac_ext 5846{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5847echo "${ECHO_T}$ac_header_preproc" >&6; } 5848 5849# So? What about this header? 5850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5851 yes:no: ) 5852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5856 ac_header_preproc=yes 5857 ;; 5858 no:yes:* ) 5859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5871 5872 ;; 5873esac 5874{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5877 echo $ECHO_N "(cached) $ECHO_C" >&6 5878else 5879 eval "$as_ac_Header=\$ac_header_preproc" 5880fi 5881ac_res=`eval echo '${'$as_ac_Header'}'` 5882 { echo "$as_me:$LINENO: result: $ac_res" >&5 5883echo "${ECHO_T}$ac_res" >&6; } 5884 5885fi 5886if test `eval echo '${'$as_ac_Header'}'` = yes; then 5887 cat >>confdefs.h <<_ACEOF 5888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5889_ACEOF 5890 5891fi 5892 5893done 5894 5895 5896 5897if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5899 (test "X$CXX" != "Xg++"))) ; then 5900 ac_ext=cpp 5901ac_cpp='$CXXCPP $CPPFLAGS' 5902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5905{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5906echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5907if test -z "$CXXCPP"; then 5908 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5909 echo $ECHO_N "(cached) $ECHO_C" >&6 5910else 5911 # Double quotes because CXXCPP needs to be expanded 5912 for CXXCPP in "$CXX -E" "/lib/cpp" 5913 do 5914 ac_preproc_ok=false 5915for ac_cxx_preproc_warn_flag in '' yes 5916do 5917 # Use a header file that comes with gcc, so configuring glibc 5918 # with a fresh cross-compiler works. 5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5920 # <limits.h> exists even on freestanding compilers. 5921 # On the NeXT, cc -E runs the code through the compiler's parser, 5922 # not just through cpp. "Syntax error" is here to catch this case. 5923 cat >conftest.$ac_ext <<_ACEOF 5924/* confdefs.h. */ 5925_ACEOF 5926cat confdefs.h >>conftest.$ac_ext 5927cat >>conftest.$ac_ext <<_ACEOF 5928/* end confdefs.h. */ 5929#ifdef __STDC__ 5930# include <limits.h> 5931#else 5932# include <assert.h> 5933#endif 5934 Syntax error 5935_ACEOF 5936if { (ac_try="$ac_cpp conftest.$ac_ext" 5937case "(($ac_try" in 5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5939 *) ac_try_echo=$ac_try;; 5940esac 5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5943 ac_status=$? 5944 grep -v '^ *+' conftest.er1 >conftest.err 5945 rm -f conftest.er1 5946 cat conftest.err >&5 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); } >/dev/null; then 5949 if test -s conftest.err; then 5950 ac_cpp_err=$ac_cxx_preproc_warn_flag 5951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5952 else 5953 ac_cpp_err= 5954 fi 5955else 5956 ac_cpp_err=yes 5957fi 5958if test -z "$ac_cpp_err"; then 5959 : 5960else 5961 echo "$as_me: failed program was:" >&5 5962sed 's/^/| /' conftest.$ac_ext >&5 5963 5964 # Broken: fails on valid input. 5965continue 5966fi 5967 5968rm -f conftest.err conftest.$ac_ext 5969 5970 # OK, works on sane cases. Now check whether nonexistent headers 5971 # can be detected and how. 5972 cat >conftest.$ac_ext <<_ACEOF 5973/* confdefs.h. */ 5974_ACEOF 5975cat confdefs.h >>conftest.$ac_ext 5976cat >>conftest.$ac_ext <<_ACEOF 5977/* end confdefs.h. */ 5978#include <ac_nonexistent.h> 5979_ACEOF 5980if { (ac_try="$ac_cpp conftest.$ac_ext" 5981case "(($ac_try" in 5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5983 *) ac_try_echo=$ac_try;; 5984esac 5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5987 ac_status=$? 5988 grep -v '^ *+' conftest.er1 >conftest.err 5989 rm -f conftest.er1 5990 cat conftest.err >&5 5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 (exit $ac_status); } >/dev/null; then 5993 if test -s conftest.err; then 5994 ac_cpp_err=$ac_cxx_preproc_warn_flag 5995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5996 else 5997 ac_cpp_err= 5998 fi 5999else 6000 ac_cpp_err=yes 6001fi 6002if test -z "$ac_cpp_err"; then 6003 # Broken: success on invalid input. 6004continue 6005else 6006 echo "$as_me: failed program was:" >&5 6007sed 's/^/| /' conftest.$ac_ext >&5 6008 6009 # Passes both tests. 6010ac_preproc_ok=: 6011break 6012fi 6013 6014rm -f conftest.err conftest.$ac_ext 6015 6016done 6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6018rm -f conftest.err conftest.$ac_ext 6019if $ac_preproc_ok; then 6020 break 6021fi 6022 6023 done 6024 ac_cv_prog_CXXCPP=$CXXCPP 6025 6026fi 6027 CXXCPP=$ac_cv_prog_CXXCPP 6028else 6029 ac_cv_prog_CXXCPP=$CXXCPP 6030fi 6031{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6032echo "${ECHO_T}$CXXCPP" >&6; } 6033ac_preproc_ok=false 6034for ac_cxx_preproc_warn_flag in '' yes 6035do 6036 # Use a header file that comes with gcc, so configuring glibc 6037 # with a fresh cross-compiler works. 6038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6039 # <limits.h> exists even on freestanding compilers. 6040 # On the NeXT, cc -E runs the code through the compiler's parser, 6041 # not just through cpp. "Syntax error" is here to catch this case. 6042 cat >conftest.$ac_ext <<_ACEOF 6043/* confdefs.h. */ 6044_ACEOF 6045cat confdefs.h >>conftest.$ac_ext 6046cat >>conftest.$ac_ext <<_ACEOF 6047/* end confdefs.h. */ 6048#ifdef __STDC__ 6049# include <limits.h> 6050#else 6051# include <assert.h> 6052#endif 6053 Syntax error 6054_ACEOF 6055if { (ac_try="$ac_cpp conftest.$ac_ext" 6056case "(($ac_try" in 6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6058 *) ac_try_echo=$ac_try;; 6059esac 6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6062 ac_status=$? 6063 grep -v '^ *+' conftest.er1 >conftest.err 6064 rm -f conftest.er1 6065 cat conftest.err >&5 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } >/dev/null; then 6068 if test -s conftest.err; then 6069 ac_cpp_err=$ac_cxx_preproc_warn_flag 6070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6071 else 6072 ac_cpp_err= 6073 fi 6074else 6075 ac_cpp_err=yes 6076fi 6077if test -z "$ac_cpp_err"; then 6078 : 6079else 6080 echo "$as_me: failed program was:" >&5 6081sed 's/^/| /' conftest.$ac_ext >&5 6082 6083 # Broken: fails on valid input. 6084continue 6085fi 6086 6087rm -f conftest.err conftest.$ac_ext 6088 6089 # OK, works on sane cases. Now check whether nonexistent headers 6090 # can be detected and how. 6091 cat >conftest.$ac_ext <<_ACEOF 6092/* confdefs.h. */ 6093_ACEOF 6094cat confdefs.h >>conftest.$ac_ext 6095cat >>conftest.$ac_ext <<_ACEOF 6096/* end confdefs.h. */ 6097#include <ac_nonexistent.h> 6098_ACEOF 6099if { (ac_try="$ac_cpp conftest.$ac_ext" 6100case "(($ac_try" in 6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6102 *) ac_try_echo=$ac_try;; 6103esac 6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6106 ac_status=$? 6107 grep -v '^ *+' conftest.er1 >conftest.err 6108 rm -f conftest.er1 6109 cat conftest.err >&5 6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6111 (exit $ac_status); } >/dev/null; then 6112 if test -s conftest.err; then 6113 ac_cpp_err=$ac_cxx_preproc_warn_flag 6114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6115 else 6116 ac_cpp_err= 6117 fi 6118else 6119 ac_cpp_err=yes 6120fi 6121if test -z "$ac_cpp_err"; then 6122 # Broken: success on invalid input. 6123continue 6124else 6125 echo "$as_me: failed program was:" >&5 6126sed 's/^/| /' conftest.$ac_ext >&5 6127 6128 # Passes both tests. 6129ac_preproc_ok=: 6130break 6131fi 6132 6133rm -f conftest.err conftest.$ac_ext 6134 6135done 6136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6137rm -f conftest.err conftest.$ac_ext 6138if $ac_preproc_ok; then 6139 : 6140else 6141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6142See \`config.log' for more details." >&5 6143echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6144See \`config.log' for more details." >&2;} 6145 { (exit 1); exit 1; }; } 6146fi 6147 6148ac_ext=cpp 6149ac_cpp='$CXXCPP $CPPFLAGS' 6150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6153 6154fi 6155 6156 6157ac_ext=f 6158ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6159ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6160ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6161if test -n "$ac_tool_prefix"; then 6162 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6163 do 6164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6168if test "${ac_cv_prog_F77+set}" = set; then 6169 echo $ECHO_N "(cached) $ECHO_C" >&6 6170else 6171 if test -n "$F77"; then 6172 ac_cv_prog_F77="$F77" # Let the user override the test. 6173else 6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_exec_ext in '' $ac_executable_extensions; do 6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6181 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6183 break 2 6184 fi 6185done 6186done 6187IFS=$as_save_IFS 6188 6189fi 6190fi 6191F77=$ac_cv_prog_F77 6192if test -n "$F77"; then 6193 { echo "$as_me:$LINENO: result: $F77" >&5 6194echo "${ECHO_T}$F77" >&6; } 6195else 6196 { echo "$as_me:$LINENO: result: no" >&5 6197echo "${ECHO_T}no" >&6; } 6198fi 6199 6200 6201 test -n "$F77" && break 6202 done 6203fi 6204if test -z "$F77"; then 6205 ac_ct_F77=$F77 6206 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6207do 6208 # Extract the first word of "$ac_prog", so it can be a program name with args. 6209set dummy $ac_prog; ac_word=$2 6210{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6212if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6213 echo $ECHO_N "(cached) $ECHO_C" >&6 6214else 6215 if test -n "$ac_ct_F77"; then 6216 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6217else 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219for as_dir in $PATH 6220do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6225 ac_cv_prog_ac_ct_F77="$ac_prog" 6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229done 6230done 6231IFS=$as_save_IFS 6232 6233fi 6234fi 6235ac_ct_F77=$ac_cv_prog_ac_ct_F77 6236if test -n "$ac_ct_F77"; then 6237 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6238echo "${ECHO_T}$ac_ct_F77" >&6; } 6239else 6240 { echo "$as_me:$LINENO: result: no" >&5 6241echo "${ECHO_T}no" >&6; } 6242fi 6243 6244 6245 test -n "$ac_ct_F77" && break 6246done 6247 6248 if test "x$ac_ct_F77" = x; then 6249 F77="" 6250 else 6251 case $cross_compiling:$ac_tool_warned in 6252yes:) 6253{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6254whose name does not start with the host triplet. If you think this 6255configuration is useful to you, please write to autoconf@gnu.org." >&5 6256echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6257whose name does not start with the host triplet. If you think this 6258configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6259ac_tool_warned=yes ;; 6260esac 6261 F77=$ac_ct_F77 6262 fi 6263fi 6264 6265 6266# Provide some information about the compiler. 6267echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6268ac_compiler=`set X $ac_compile; echo $2` 6269{ (ac_try="$ac_compiler --version >&5" 6270case "(($ac_try" in 6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6272 *) ac_try_echo=$ac_try;; 6273esac 6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6275 (eval "$ac_compiler --version >&5") 2>&5 6276 ac_status=$? 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 (exit $ac_status); } 6279{ (ac_try="$ac_compiler -v >&5" 6280case "(($ac_try" in 6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6282 *) ac_try_echo=$ac_try;; 6283esac 6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6285 (eval "$ac_compiler -v >&5") 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); } 6289{ (ac_try="$ac_compiler -V >&5" 6290case "(($ac_try" in 6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6292 *) ac_try_echo=$ac_try;; 6293esac 6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6295 (eval "$ac_compiler -V >&5") 2>&5 6296 ac_status=$? 6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); } 6299rm -f a.out 6300 6301# If we don't use `.F' as extension, the preprocessor is not run on the 6302# input file. (Note that this only needs to work for GNU compilers.) 6303ac_save_ext=$ac_ext 6304ac_ext=F 6305{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6306echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6307if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309else 6310 cat >conftest.$ac_ext <<_ACEOF 6311 program main 6312#ifndef __GNUC__ 6313 choke me 6314#endif 6315 6316 end 6317_ACEOF 6318rm -f conftest.$ac_objext 6319if { (ac_try="$ac_compile" 6320case "(($ac_try" in 6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6322 *) ac_try_echo=$ac_try;; 6323esac 6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6325 (eval "$ac_compile") 2>conftest.er1 6326 ac_status=$? 6327 grep -v '^ *+' conftest.er1 >conftest.err 6328 rm -f conftest.er1 6329 cat conftest.err >&5 6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6331 (exit $ac_status); } && 6332 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6333 { (case "(($ac_try" in 6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6335 *) ac_try_echo=$ac_try;; 6336esac 6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6338 (eval "$ac_try") 2>&5 6339 ac_status=$? 6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); }; } && 6342 { ac_try='test -s conftest.$ac_objext' 6343 { (case "(($ac_try" in 6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6345 *) ac_try_echo=$ac_try;; 6346esac 6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6348 (eval "$ac_try") 2>&5 6349 ac_status=$? 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); }; }; then 6352 ac_compiler_gnu=yes 6353else 6354 echo "$as_me: failed program was:" >&5 6355sed 's/^/| /' conftest.$ac_ext >&5 6356 6357 ac_compiler_gnu=no 6358fi 6359 6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6361ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6362 6363fi 6364{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6365echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6366ac_ext=$ac_save_ext 6367ac_test_FFLAGS=${FFLAGS+set} 6368ac_save_FFLAGS=$FFLAGS 6369FFLAGS= 6370{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6371echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6372if test "${ac_cv_prog_f77_g+set}" = set; then 6373 echo $ECHO_N "(cached) $ECHO_C" >&6 6374else 6375 FFLAGS=-g 6376cat >conftest.$ac_ext <<_ACEOF 6377 program main 6378 6379 end 6380_ACEOF 6381rm -f conftest.$ac_objext 6382if { (ac_try="$ac_compile" 6383case "(($ac_try" in 6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6385 *) ac_try_echo=$ac_try;; 6386esac 6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6388 (eval "$ac_compile") 2>conftest.er1 6389 ac_status=$? 6390 grep -v '^ *+' conftest.er1 >conftest.err 6391 rm -f conftest.er1 6392 cat conftest.err >&5 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); } && 6395 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6396 { (case "(($ac_try" in 6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6398 *) ac_try_echo=$ac_try;; 6399esac 6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6401 (eval "$ac_try") 2>&5 6402 ac_status=$? 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); }; } && 6405 { ac_try='test -s conftest.$ac_objext' 6406 { (case "(($ac_try" in 6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6408 *) ac_try_echo=$ac_try;; 6409esac 6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6411 (eval "$ac_try") 2>&5 6412 ac_status=$? 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); }; }; then 6415 ac_cv_prog_f77_g=yes 6416else 6417 echo "$as_me: failed program was:" >&5 6418sed 's/^/| /' conftest.$ac_ext >&5 6419 6420 ac_cv_prog_f77_g=no 6421fi 6422 6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6424 6425fi 6426{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6427echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6428if test "$ac_test_FFLAGS" = set; then 6429 FFLAGS=$ac_save_FFLAGS 6430elif test $ac_cv_prog_f77_g = yes; then 6431 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6432 FFLAGS="-g -O2" 6433 else 6434 FFLAGS="-g" 6435 fi 6436else 6437 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6438 FFLAGS="-O2" 6439 else 6440 FFLAGS= 6441 fi 6442fi 6443 6444G77=`test $ac_compiler_gnu = yes && echo yes` 6445ac_ext=c 6446ac_cpp='$CPP $CPPFLAGS' 6447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6449ac_compiler_gnu=$ac_cv_c_compiler_gnu 6450 6451 6452 6453# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6454 6455# find the maximum length of command line arguments 6456{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6457echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6458if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6459 echo $ECHO_N "(cached) $ECHO_C" >&6 6460else 6461 i=0 6462 teststring="ABCD" 6463 6464 case $build_os in 6465 msdosdjgpp*) 6466 # On DJGPP, this test can blow up pretty badly due to problems in libc 6467 # (any single argument exceeding 2000 bytes causes a buffer overrun 6468 # during glob expansion). Even if it were fixed, the result of this 6469 # check would be larger than it should be. 6470 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6471 ;; 6472 6473 gnu*) 6474 # Under GNU Hurd, this test is not required because there is 6475 # no limit to the length of command line arguments. 6476 # Libtool will interpret -1 as no limit whatsoever 6477 lt_cv_sys_max_cmd_len=-1; 6478 ;; 6479 6480 cygwin* | mingw*) 6481 # On Win9x/ME, this test blows up -- it succeeds, but takes 6482 # about 5 minutes as the teststring grows exponentially. 6483 # Worse, since 9x/ME are not pre-emptively multitasking, 6484 # you end up with a "frozen" computer, even though with patience 6485 # the test eventually succeeds (with a max line length of 256k). 6486 # Instead, let's just punt: use the minimum linelength reported by 6487 # all of the supported platforms: 8192 (on NT/2K/XP). 6488 lt_cv_sys_max_cmd_len=8192; 6489 ;; 6490 6491 amigaos*) 6492 # On AmigaOS with pdksh, this test takes hours, literally. 6493 # So we just punt and use a minimum line length of 8192. 6494 lt_cv_sys_max_cmd_len=8192; 6495 ;; 6496 6497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6498 # This has been around since 386BSD, at least. Likely further. 6499 if test -x /sbin/sysctl; then 6500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6501 elif test -x /usr/sbin/sysctl; then 6502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6503 else 6504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6505 fi 6506 # And add a safety zone 6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6509 ;; 6510 6511 interix*) 6512 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6513 lt_cv_sys_max_cmd_len=196608 6514 ;; 6515 6516 osf*) 6517 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6518 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6519 # nice to cause kernel panics so lets avoid the loop below. 6520 # First set a reasonable default. 6521 lt_cv_sys_max_cmd_len=16384 6522 # 6523 if test -x /sbin/sysconfig; then 6524 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6525 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6526 esac 6527 fi 6528 ;; 6529 sco3.2v5*) 6530 lt_cv_sys_max_cmd_len=102400 6531 ;; 6532 sysv5* | sco5v6* | sysv4.2uw2*) 6533 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6534 if test -n "$kargmax"; then 6535 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6536 else 6537 lt_cv_sys_max_cmd_len=32768 6538 fi 6539 ;; 6540 *) 6541 # If test is not a shell built-in, we'll probably end up computing a 6542 # maximum length that is only half of the actual maximum length, but 6543 # we can't tell. 6544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6545 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6546 = "XX$teststring") >/dev/null 2>&1 && 6547 new_result=`expr "X$teststring" : ".*" 2>&1` && 6548 lt_cv_sys_max_cmd_len=$new_result && 6549 test $i != 17 # 1/2 MB should be enough 6550 do 6551 i=`expr $i + 1` 6552 teststring=$teststring$teststring 6553 done 6554 teststring= 6555 # Add a significant safety factor because C++ compilers can tack on massive 6556 # amounts of additional arguments before passing them to the linker. 6557 # It appears as though 1/2 is a usable value. 6558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6559 ;; 6560 esac 6561 6562fi 6563 6564if test -n $lt_cv_sys_max_cmd_len ; then 6565 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6566echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6567else 6568 { echo "$as_me:$LINENO: result: none" >&5 6569echo "${ECHO_T}none" >&6; } 6570fi 6571 6572 6573 6574 6575# Check for command to grab the raw symbol name followed by C symbol from nm. 6576{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6577echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6578if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580else 6581 6582# These are sane defaults that work on at least a few old systems. 6583# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6584 6585# Character class describing NM global symbol codes. 6586symcode='[BCDEGRST]' 6587 6588# Regexp to match symbols that can be accessed directly from C. 6589sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6590 6591# Transform an extracted symbol line into a proper C declaration 6592lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6593 6594# Transform an extracted symbol line into symbol name and symbol address 6595lt_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'" 6596 6597# Define system-specific variables. 6598case $host_os in 6599aix*) 6600 symcode='[BCDT]' 6601 ;; 6602cygwin* | mingw* | pw32*) 6603 symcode='[ABCDGISTW]' 6604 ;; 6605hpux*) # Its linker distinguishes data from code symbols 6606 if test "$host_cpu" = ia64; then 6607 symcode='[ABCDEGRST]' 6608 fi 6609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6610 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'" 6611 ;; 6612linux*) 6613 if test "$host_cpu" = ia64; then 6614 symcode='[ABCDGIRSTW]' 6615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6616 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'" 6617 fi 6618 ;; 6619irix* | nonstopux*) 6620 symcode='[BCDEGRST]' 6621 ;; 6622osf*) 6623 symcode='[BCDEGQRST]' 6624 ;; 6625solaris*) 6626 symcode='[BDRT]' 6627 ;; 6628sco3.2v5*) 6629 symcode='[DT]' 6630 ;; 6631sysv4.2uw2*) 6632 symcode='[DT]' 6633 ;; 6634sysv5* | sco5v6* | unixware* | OpenUNIX*) 6635 symcode='[ABDT]' 6636 ;; 6637sysv4) 6638 symcode='[DFNSTU]' 6639 ;; 6640esac 6641 6642# Handle CRLF in mingw tool chain 6643opt_cr= 6644case $build_os in 6645mingw*) 6646 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6647 ;; 6648esac 6649 6650# If we're using GNU nm, then use its standard symbol codes. 6651case `$NM -V 2>&1` in 6652*GNU* | *'with BFD'*) 6653 symcode='[ABCDGIRSTW]' ;; 6654esac 6655 6656# Try without a prefix undercore, then with it. 6657for ac_symprfx in "" "_"; do 6658 6659 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6660 symxfrm="\\1 $ac_symprfx\\2 \\2" 6661 6662 # Write the raw and C identifiers. 6663 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6664 6665 # Check to see that the pipe works correctly. 6666 pipe_works=no 6667 6668 rm -f conftest* 6669 cat > conftest.$ac_ext <<EOF 6670#ifdef __cplusplus 6671extern "C" { 6672#endif 6673char nm_test_var; 6674void nm_test_func(){} 6675#ifdef __cplusplus 6676} 6677#endif 6678int main(){nm_test_var='a';nm_test_func();return(0);} 6679EOF 6680 6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6682 (eval $ac_compile) 2>&5 6683 ac_status=$? 6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); }; then 6686 # Now try to grab the symbols. 6687 nlist=conftest.nm 6688 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); } && test -s "$nlist"; then 6693 # Try sorting and uniquifying the output. 6694 if sort "$nlist" | uniq > "$nlist"T; then 6695 mv -f "$nlist"T "$nlist" 6696 else 6697 rm -f "$nlist"T 6698 fi 6699 6700 # Make sure that we snagged all the symbols we need. 6701 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6702 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6703 cat <<EOF > conftest.$ac_ext 6704#ifdef __cplusplus 6705extern "C" { 6706#endif 6707 6708EOF 6709 # Now generate the symbol file. 6710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6711 6712 cat <<EOF >> conftest.$ac_ext 6713#if defined (__STDC__) && __STDC__ 6714# define lt_ptr_t void * 6715#else 6716# define lt_ptr_t char * 6717# define const 6718#endif 6719 6720/* The mapping between symbol names and symbols. */ 6721const struct { 6722 const char *name; 6723 lt_ptr_t address; 6724} 6725lt_preloaded_symbols[] = 6726{ 6727EOF 6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6729 cat <<\EOF >> conftest.$ac_ext 6730 {0, (lt_ptr_t) 0} 6731}; 6732 6733#ifdef __cplusplus 6734} 6735#endif 6736EOF 6737 # Now try linking the two files. 6738 mv -f conftest.$ac_objext conftstm.$ac_objext 6739 lt_save_LIBS="$LIBS" 6740 lt_save_CFLAGS="$CFLAGS" 6741 LIBS="conftstm.$ac_objext" 6742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6744 (eval $ac_link) 2>&5 6745 ac_status=$? 6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6747 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6748 pipe_works=yes 6749 fi 6750 LIBS="$lt_save_LIBS" 6751 CFLAGS="$lt_save_CFLAGS" 6752 else 6753 echo "cannot find nm_test_func in $nlist" >&5 6754 fi 6755 else 6756 echo "cannot find nm_test_var in $nlist" >&5 6757 fi 6758 else 6759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6760 fi 6761 else 6762 echo "$progname: failed program was:" >&5 6763 cat conftest.$ac_ext >&5 6764 fi 6765 rm -f conftest* conftst* 6766 6767 # Do not use the global_symbol_pipe unless it works. 6768 if test "$pipe_works" = yes; then 6769 break 6770 else 6771 lt_cv_sys_global_symbol_pipe= 6772 fi 6773done 6774 6775fi 6776 6777if test -z "$lt_cv_sys_global_symbol_pipe"; then 6778 lt_cv_sys_global_symbol_to_cdecl= 6779fi 6780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6781 { echo "$as_me:$LINENO: result: failed" >&5 6782echo "${ECHO_T}failed" >&6; } 6783else 6784 { echo "$as_me:$LINENO: result: ok" >&5 6785echo "${ECHO_T}ok" >&6; } 6786fi 6787 6788{ echo "$as_me:$LINENO: checking for objdir" >&5 6789echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6790if test "${lt_cv_objdir+set}" = set; then 6791 echo $ECHO_N "(cached) $ECHO_C" >&6 6792else 6793 rm -f .libs 2>/dev/null 6794mkdir .libs 2>/dev/null 6795if test -d .libs; then 6796 lt_cv_objdir=.libs 6797else 6798 # MS-DOS does not allow filenames that begin with a dot. 6799 lt_cv_objdir=_libs 6800fi 6801rmdir .libs 2>/dev/null 6802fi 6803{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6804echo "${ECHO_T}$lt_cv_objdir" >&6; } 6805objdir=$lt_cv_objdir 6806 6807 6808 6809 6810 6811case $host_os in 6812aix3*) 6813 # AIX sometimes has problems with the GCC collect2 program. For some 6814 # reason, if we set the COLLECT_NAMES environment variable, the problems 6815 # vanish in a puff of smoke. 6816 if test "X${COLLECT_NAMES+set}" != Xset; then 6817 COLLECT_NAMES= 6818 export COLLECT_NAMES 6819 fi 6820 ;; 6821esac 6822 6823# Sed substitution that helps us do robust quoting. It backslashifies 6824# metacharacters that are still active within double-quoted strings. 6825Xsed='sed -e 1s/^X//' 6826sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6827 6828# Same as above, but do not quote variable references. 6829double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6830 6831# Sed substitution to delay expansion of an escaped shell variable in a 6832# double_quote_subst'ed string. 6833delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6834 6835# Sed substitution to avoid accidental globbing in evaled expressions 6836no_glob_subst='s/\*/\\\*/g' 6837 6838# Constants: 6839rm="rm -f" 6840 6841# Global variables: 6842default_ofile=libtool 6843can_build_shared=yes 6844 6845# All known linkers require a `.a' archive for static linking (except MSVC, 6846# which needs '.lib'). 6847libext=a 6848ltmain="$ac_aux_dir/ltmain.sh" 6849ofile="$default_ofile" 6850with_gnu_ld="$lt_cv_prog_gnu_ld" 6851 6852if test -n "$ac_tool_prefix"; then 6853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6854set dummy ${ac_tool_prefix}ar; ac_word=$2 6855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6857if test "${ac_cv_prog_AR+set}" = set; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859else 6860 if test -n "$AR"; then 6861 ac_cv_prog_AR="$AR" # Let the user override the test. 6862else 6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864for as_dir in $PATH 6865do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6870 ac_cv_prog_AR="${ac_tool_prefix}ar" 6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874done 6875done 6876IFS=$as_save_IFS 6877 6878fi 6879fi 6880AR=$ac_cv_prog_AR 6881if test -n "$AR"; then 6882 { echo "$as_me:$LINENO: result: $AR" >&5 6883echo "${ECHO_T}$AR" >&6; } 6884else 6885 { echo "$as_me:$LINENO: result: no" >&5 6886echo "${ECHO_T}no" >&6; } 6887fi 6888 6889 6890fi 6891if test -z "$ac_cv_prog_AR"; then 6892 ac_ct_AR=$AR 6893 # Extract the first word of "ar", so it can be a program name with args. 6894set dummy ar; ac_word=$2 6895{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6897if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6898 echo $ECHO_N "(cached) $ECHO_C" >&6 6899else 6900 if test -n "$ac_ct_AR"; then 6901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6910 ac_cv_prog_ac_ct_AR="ar" 6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914done 6915done 6916IFS=$as_save_IFS 6917 6918fi 6919fi 6920ac_ct_AR=$ac_cv_prog_ac_ct_AR 6921if test -n "$ac_ct_AR"; then 6922 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6923echo "${ECHO_T}$ac_ct_AR" >&6; } 6924else 6925 { echo "$as_me:$LINENO: result: no" >&5 6926echo "${ECHO_T}no" >&6; } 6927fi 6928 6929 if test "x$ac_ct_AR" = x; then 6930 AR="false" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933yes:) 6934{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6935whose name does not start with the host triplet. If you think this 6936configuration is useful to you, please write to autoconf@gnu.org." >&5 6937echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6938whose name does not start with the host triplet. If you think this 6939configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 AR=$ac_ct_AR 6943 fi 6944else 6945 AR="$ac_cv_prog_AR" 6946fi 6947 6948if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6953if test "${ac_cv_prog_RANLIB+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 if test -n "$RANLIB"; then 6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976RANLIB=$ac_cv_prog_RANLIB 6977if test -n "$RANLIB"; then 6978 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6979echo "${ECHO_T}$RANLIB" >&6; } 6980else 6981 { echo "$as_me:$LINENO: result: no" >&5 6982echo "${ECHO_T}no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_RANLIB"; then 6988 ac_ct_RANLIB=$RANLIB 6989 # Extract the first word of "ranlib", so it can be a program name with args. 6990set dummy ranlib; ac_word=$2 6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6994 echo $ECHO_N "(cached) $ECHO_C" >&6 6995else 6996 if test -n "$ac_ct_RANLIB"; then 6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7006 ac_cv_prog_ac_ct_RANLIB="ranlib" 7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7017if test -n "$ac_ct_RANLIB"; then 7018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7019echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7020else 7021 { echo "$as_me:$LINENO: result: no" >&5 7022echo "${ECHO_T}no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_RANLIB" = x; then 7026 RANLIB=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7031whose name does not start with the host triplet. If you think this 7032configuration is useful to you, please write to autoconf@gnu.org." >&5 7033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7034whose name does not start with the host triplet. If you think this 7035configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7036ac_tool_warned=yes ;; 7037esac 7038 RANLIB=$ac_ct_RANLIB 7039 fi 7040else 7041 RANLIB="$ac_cv_prog_RANLIB" 7042fi 7043 7044if test -n "$ac_tool_prefix"; then 7045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7046set dummy ${ac_tool_prefix}strip; ac_word=$2 7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7049if test "${ac_cv_prog_STRIP+set}" = set; then 7050 echo $ECHO_N "(cached) $ECHO_C" >&6 7051else 7052 if test -n "$STRIP"; then 7053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7054else 7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056for as_dir in $PATH 7057do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_exec_ext in '' $ac_executable_extensions; do 7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7062 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7064 break 2 7065 fi 7066done 7067done 7068IFS=$as_save_IFS 7069 7070fi 7071fi 7072STRIP=$ac_cv_prog_STRIP 7073if test -n "$STRIP"; then 7074 { echo "$as_me:$LINENO: result: $STRIP" >&5 7075echo "${ECHO_T}$STRIP" >&6; } 7076else 7077 { echo "$as_me:$LINENO: result: no" >&5 7078echo "${ECHO_T}no" >&6; } 7079fi 7080 7081 7082fi 7083if test -z "$ac_cv_prog_STRIP"; then 7084 ac_ct_STRIP=$STRIP 7085 # Extract the first word of "strip", so it can be a program name with args. 7086set dummy strip; ac_word=$2 7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7090 echo $ECHO_N "(cached) $ECHO_C" >&6 7091else 7092 if test -n "$ac_ct_STRIP"; then 7093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7094else 7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7096for as_dir in $PATH 7097do 7098 IFS=$as_save_IFS 7099 test -z "$as_dir" && as_dir=. 7100 for ac_exec_ext in '' $ac_executable_extensions; do 7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7102 ac_cv_prog_ac_ct_STRIP="strip" 7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7104 break 2 7105 fi 7106done 7107done 7108IFS=$as_save_IFS 7109 7110fi 7111fi 7112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7113if test -n "$ac_ct_STRIP"; then 7114 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7115echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7116else 7117 { echo "$as_me:$LINENO: result: no" >&5 7118echo "${ECHO_T}no" >&6; } 7119fi 7120 7121 if test "x$ac_ct_STRIP" = x; then 7122 STRIP=":" 7123 else 7124 case $cross_compiling:$ac_tool_warned in 7125yes:) 7126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7127whose name does not start with the host triplet. If you think this 7128configuration is useful to you, please write to autoconf@gnu.org." >&5 7129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7130whose name does not start with the host triplet. If you think this 7131configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7132ac_tool_warned=yes ;; 7133esac 7134 STRIP=$ac_ct_STRIP 7135 fi 7136else 7137 STRIP="$ac_cv_prog_STRIP" 7138fi 7139 7140 7141old_CC="$CC" 7142old_CFLAGS="$CFLAGS" 7143 7144# Set sane defaults for various variables 7145test -z "$AR" && AR=ar 7146test -z "$AR_FLAGS" && AR_FLAGS=cru 7147test -z "$AS" && AS=as 7148test -z "$CC" && CC=cc 7149test -z "$LTCC" && LTCC=$CC 7150test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7151test -z "$DLLTOOL" && DLLTOOL=dlltool 7152test -z "$LD" && LD=ld 7153test -z "$LN_S" && LN_S="ln -s" 7154test -z "$MAGIC_CMD" && MAGIC_CMD=file 7155test -z "$NM" && NM=nm 7156test -z "$SED" && SED=sed 7157test -z "$OBJDUMP" && OBJDUMP=objdump 7158test -z "$RANLIB" && RANLIB=: 7159test -z "$STRIP" && STRIP=: 7160test -z "$ac_objext" && ac_objext=o 7161 7162# Determine commands to create old-style static archives. 7163old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7164old_postinstall_cmds='chmod 644 $oldlib' 7165old_postuninstall_cmds= 7166 7167if test -n "$RANLIB"; then 7168 case $host_os in 7169 openbsd*) 7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7171 ;; 7172 *) 7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7174 ;; 7175 esac 7176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7177fi 7178 7179for cc_temp in $compiler""; do 7180 case $cc_temp in 7181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7183 \-*) ;; 7184 *) break;; 7185 esac 7186done 7187cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7188 7189 7190# Only perform the check for file, if the check method requires it 7191case $deplibs_check_method in 7192file_magic*) 7193 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7194 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7195echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7196if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7197 echo $ECHO_N "(cached) $ECHO_C" >&6 7198else 7199 case $MAGIC_CMD in 7200[\\/*] | ?:[\\/]*) 7201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7202 ;; 7203*) 7204 lt_save_MAGIC_CMD="$MAGIC_CMD" 7205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7207 for ac_dir in $ac_dummy; do 7208 IFS="$lt_save_ifs" 7209 test -z "$ac_dir" && ac_dir=. 7210 if test -f $ac_dir/${ac_tool_prefix}file; then 7211 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7212 if test -n "$file_magic_test_file"; then 7213 case $deplibs_check_method in 7214 "file_magic "*) 7215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7218 $EGREP "$file_magic_regex" > /dev/null; then 7219 : 7220 else 7221 cat <<EOF 1>&2 7222 7223*** Warning: the command libtool uses to detect shared libraries, 7224*** $file_magic_cmd, produces output that libtool cannot recognize. 7225*** The result is that libtool may fail to recognize shared libraries 7226*** as such. This will affect the creation of libtool libraries that 7227*** depend on shared libraries, but programs linked with such libtool 7228*** libraries will work regardless of this problem. Nevertheless, you 7229*** may want to report the problem to your system manager and/or to 7230*** bug-libtool@gnu.org 7231 7232EOF 7233 fi ;; 7234 esac 7235 fi 7236 break 7237 fi 7238 done 7239 IFS="$lt_save_ifs" 7240 MAGIC_CMD="$lt_save_MAGIC_CMD" 7241 ;; 7242esac 7243fi 7244 7245MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7246if test -n "$MAGIC_CMD"; then 7247 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7248echo "${ECHO_T}$MAGIC_CMD" >&6; } 7249else 7250 { echo "$as_me:$LINENO: result: no" >&5 7251echo "${ECHO_T}no" >&6; } 7252fi 7253 7254if test -z "$lt_cv_path_MAGIC_CMD"; then 7255 if test -n "$ac_tool_prefix"; then 7256 { echo "$as_me:$LINENO: checking for file" >&5 7257echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7258if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7259 echo $ECHO_N "(cached) $ECHO_C" >&6 7260else 7261 case $MAGIC_CMD in 7262[\\/*] | ?:[\\/]*) 7263 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7264 ;; 7265*) 7266 lt_save_MAGIC_CMD="$MAGIC_CMD" 7267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7269 for ac_dir in $ac_dummy; do 7270 IFS="$lt_save_ifs" 7271 test -z "$ac_dir" && ac_dir=. 7272 if test -f $ac_dir/file; then 7273 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7274 if test -n "$file_magic_test_file"; then 7275 case $deplibs_check_method in 7276 "file_magic "*) 7277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7280 $EGREP "$file_magic_regex" > /dev/null; then 7281 : 7282 else 7283 cat <<EOF 1>&2 7284 7285*** Warning: the command libtool uses to detect shared libraries, 7286*** $file_magic_cmd, produces output that libtool cannot recognize. 7287*** The result is that libtool may fail to recognize shared libraries 7288*** as such. This will affect the creation of libtool libraries that 7289*** depend on shared libraries, but programs linked with such libtool 7290*** libraries will work regardless of this problem. Nevertheless, you 7291*** may want to report the problem to your system manager and/or to 7292*** bug-libtool@gnu.org 7293 7294EOF 7295 fi ;; 7296 esac 7297 fi 7298 break 7299 fi 7300 done 7301 IFS="$lt_save_ifs" 7302 MAGIC_CMD="$lt_save_MAGIC_CMD" 7303 ;; 7304esac 7305fi 7306 7307MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7308if test -n "$MAGIC_CMD"; then 7309 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7310echo "${ECHO_T}$MAGIC_CMD" >&6; } 7311else 7312 { echo "$as_me:$LINENO: result: no" >&5 7313echo "${ECHO_T}no" >&6; } 7314fi 7315 7316 else 7317 MAGIC_CMD=: 7318 fi 7319fi 7320 7321 fi 7322 ;; 7323esac 7324 7325enable_dlopen=no 7326enable_win32_dll=no 7327 7328# Check whether --enable-libtool-lock was given. 7329if test "${enable_libtool_lock+set}" = set; then 7330 enableval=$enable_libtool_lock; 7331fi 7332 7333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7334 7335 7336# Check whether --with-pic was given. 7337if test "${with_pic+set}" = set; then 7338 withval=$with_pic; pic_mode="$withval" 7339else 7340 pic_mode=default 7341fi 7342 7343test -z "$pic_mode" && pic_mode=default 7344 7345# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 7346# 7347# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 7348# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 7349# calls AC_LIBTOOL_CONFIG and creates libtool. 7350# 7351{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 7352echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; } 7353if test "x$ltmain" = "x" ; then 7354 { echo "$as_me:$LINENO: result: no" >&5 7355echo "${ECHO_T}no" >&6; } 7356 { { echo "$as_me:$LINENO: error: 7357 7358*** [Gentoo] sanity check failed! *** 7359*** \$ltmain is not defined, please check the patch for consistency! *** 7360" >&5 7361echo "$as_me: error: 7362 7363*** [Gentoo] sanity check failed! *** 7364*** \$ltmain is not defined, please check the patch for consistency! *** 7365" >&2;} 7366 { (exit 1); exit 1; }; } 7367fi 7368gentoo_lt_version="1.5.22" 7369gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 7370if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 7371 { echo "$as_me:$LINENO: result: no" >&5 7372echo "${ECHO_T}no" >&6; } 7373 { { echo "$as_me:$LINENO: error: 7374 7375*** [Gentoo] sanity check failed! *** 7376*** libtool.m4 and ltmain.sh have a version mismatch! *** 7377*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7378 7379Please run: 7380 7381 libtoolize --copy --force 7382 7383if appropriate, please contact the maintainer of this 7384package (or your distribution) for help. 7385" >&5 7386echo "$as_me: error: 7387 7388*** [Gentoo] sanity check failed! *** 7389*** libtool.m4 and ltmain.sh have a version mismatch! *** 7390*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7391 7392Please run: 7393 7394 libtoolize --copy --force 7395 7396if appropriate, please contact the maintainer of this 7397package (or your distribution) for help. 7398" >&2;} 7399 { (exit 1); exit 1; }; } 7400else 7401 { echo "$as_me:$LINENO: result: yes" >&5 7402echo "${ECHO_T}yes" >&6; } 7403fi 7404 7405 7406# Use C for the default configuration in the libtool script 7407tagname= 7408lt_save_CC="$CC" 7409ac_ext=c 7410ac_cpp='$CPP $CPPFLAGS' 7411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7413ac_compiler_gnu=$ac_cv_c_compiler_gnu 7414 7415 7416# Source file extension for C test sources. 7417ac_ext=c 7418 7419# Object file extension for compiled C test sources. 7420objext=o 7421objext=$objext 7422 7423# Code to be used in simple compile tests 7424lt_simple_compile_test_code="int some_variable = 0;\n" 7425 7426# Code to be used in simple link tests 7427lt_simple_link_test_code='int main(){return(0);}\n' 7428 7429 7430# If no C compiler was specified, use CC. 7431LTCC=${LTCC-"$CC"} 7432 7433# If no C compiler flags were specified, use CFLAGS. 7434LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7435 7436# Allow CC to be a program name with arguments. 7437compiler=$CC 7438 7439 7440# save warnings/boilerplate of simple test code 7441ac_outfile=conftest.$ac_objext 7442printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7443eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7444_lt_compiler_boilerplate=`cat conftest.err` 7445$rm conftest* 7446 7447ac_outfile=conftest.$ac_objext 7448printf "$lt_simple_link_test_code" >conftest.$ac_ext 7449eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7450_lt_linker_boilerplate=`cat conftest.err` 7451$rm conftest* 7452 7453 7454 7455lt_prog_compiler_no_builtin_flag= 7456 7457if test "$GCC" = yes; then 7458 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7459 7460 7461{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7462echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7463if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7464 echo $ECHO_N "(cached) $ECHO_C" >&6 7465else 7466 lt_cv_prog_compiler_rtti_exceptions=no 7467 ac_outfile=conftest.$ac_objext 7468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7469 lt_compiler_flag="-fno-rtti -fno-exceptions" 7470 # Insert the option either (1) after the last *FLAGS variable, or 7471 # (2) before a word containing "conftest.", or (3) at the end. 7472 # Note that $ac_compile itself does not contain backslashes and begins 7473 # with a dollar sign (not a hyphen), so the echo should work correctly. 7474 # The option is referenced via a variable to avoid confusing sed. 7475 lt_compile=`echo "$ac_compile" | $SED \ 7476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7478 -e 's:$: $lt_compiler_flag:'` 7479 (eval echo "\"\$as_me:7479: $lt_compile\"" >&5) 7480 (eval "$lt_compile" 2>conftest.err) 7481 ac_status=$? 7482 cat conftest.err >&5 7483 echo "$as_me:7483: \$? = $ac_status" >&5 7484 if (exit $ac_status) && test -s "$ac_outfile"; then 7485 # The compiler can only warn and ignore the option if not recognized 7486 # So say no if there are warnings other than the usual output. 7487 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7490 lt_cv_prog_compiler_rtti_exceptions=yes 7491 fi 7492 fi 7493 $rm conftest* 7494 7495fi 7496{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7497echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7498 7499if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7501else 7502 : 7503fi 7504 7505fi 7506 7507lt_prog_compiler_wl= 7508lt_prog_compiler_pic= 7509lt_prog_compiler_static= 7510 7511{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7512echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7513 7514 if test "$GCC" = yes; then 7515 lt_prog_compiler_wl='-Wl,' 7516 lt_prog_compiler_static='-static' 7517 7518 case $host_os in 7519 aix*) 7520 # All AIX code is PIC. 7521 if test "$host_cpu" = ia64; then 7522 # AIX 5 now supports IA64 processor 7523 lt_prog_compiler_static='-Bstatic' 7524 fi 7525 ;; 7526 7527 amigaos*) 7528 # FIXME: we need at least 68020 code to build shared libraries, but 7529 # adding the `-m68020' flag to GCC prevents building anything better, 7530 # like `-m68040'. 7531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7532 ;; 7533 7534 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7535 # PIC is the default for these OSes. 7536 ;; 7537 7538 mingw* | pw32* | os2*) 7539 # This hack is so that the source file can tell whether it is being 7540 # built for inclusion in a dll (and should export symbols for example). 7541 lt_prog_compiler_pic='-DDLL_EXPORT' 7542 ;; 7543 7544 darwin* | rhapsody*) 7545 # PIC is the default on this platform 7546 # Common symbols not allowed in MH_DYLIB files 7547 lt_prog_compiler_pic='-fno-common' 7548 ;; 7549 7550 interix3*) 7551 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7552 # Instead, we relocate shared libraries at runtime. 7553 ;; 7554 7555 msdosdjgpp*) 7556 # Just because we use GCC doesn't mean we suddenly get shared libraries 7557 # on systems that don't support them. 7558 lt_prog_compiler_can_build_shared=no 7559 enable_shared=no 7560 ;; 7561 7562 sysv4*MP*) 7563 if test -d /usr/nec; then 7564 lt_prog_compiler_pic=-Kconform_pic 7565 fi 7566 ;; 7567 7568 hpux*) 7569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7570 # not for PA HP-UX. 7571 case $host_cpu in 7572 hppa*64*|ia64*) 7573 # +Z the default 7574 ;; 7575 *) 7576 lt_prog_compiler_pic='-fPIC' 7577 ;; 7578 esac 7579 ;; 7580 7581 *) 7582 lt_prog_compiler_pic='-fPIC' 7583 ;; 7584 esac 7585 else 7586 # PORTME Check for flag to pass linker flags through the system compiler. 7587 case $host_os in 7588 aix*) 7589 lt_prog_compiler_wl='-Wl,' 7590 if test "$host_cpu" = ia64; then 7591 # AIX 5 now supports IA64 processor 7592 lt_prog_compiler_static='-Bstatic' 7593 else 7594 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7595 fi 7596 ;; 7597 darwin*) 7598 # PIC is the default on this platform 7599 # Common symbols not allowed in MH_DYLIB files 7600 case $cc_basename in 7601 xlc*) 7602 lt_prog_compiler_pic='-qnocommon' 7603 lt_prog_compiler_wl='-Wl,' 7604 ;; 7605 esac 7606 ;; 7607 7608 mingw* | pw32* | os2*) 7609 # This hack is so that the source file can tell whether it is being 7610 # built for inclusion in a dll (and should export symbols for example). 7611 lt_prog_compiler_pic='-DDLL_EXPORT' 7612 ;; 7613 7614 hpux9* | hpux10* | hpux11*) 7615 lt_prog_compiler_wl='-Wl,' 7616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7617 # not for PA HP-UX. 7618 case $host_cpu in 7619 hppa*64*|ia64*) 7620 # +Z the default 7621 ;; 7622 *) 7623 lt_prog_compiler_pic='+Z' 7624 ;; 7625 esac 7626 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7627 lt_prog_compiler_static='${wl}-a ${wl}archive' 7628 ;; 7629 7630 irix5* | irix6* | nonstopux*) 7631 lt_prog_compiler_wl='-Wl,' 7632 # PIC (with -KPIC) is the default. 7633 lt_prog_compiler_static='-non_shared' 7634 ;; 7635 7636 newsos6) 7637 lt_prog_compiler_pic='-KPIC' 7638 lt_prog_compiler_static='-Bstatic' 7639 ;; 7640 7641 linux*) 7642 case $cc_basename in 7643 icc* | ecc*) 7644 lt_prog_compiler_wl='-Wl,' 7645 lt_prog_compiler_pic='-KPIC' 7646 lt_prog_compiler_static='-static' 7647 ;; 7648 pgcc* | pgf77* | pgf90* | pgf95*) 7649 # Portland Group compilers (*not* the Pentium gcc compiler, 7650 # which looks to be a dead project) 7651 lt_prog_compiler_wl='-Wl,' 7652 lt_prog_compiler_pic='-fpic' 7653 lt_prog_compiler_static='-Bstatic' 7654 ;; 7655 ccc*) 7656 lt_prog_compiler_wl='-Wl,' 7657 # All Alpha code is PIC. 7658 lt_prog_compiler_static='-non_shared' 7659 ;; 7660 esac 7661 ;; 7662 7663 osf3* | osf4* | osf5*) 7664 lt_prog_compiler_wl='-Wl,' 7665 # All OSF/1 code is PIC. 7666 lt_prog_compiler_static='-non_shared' 7667 ;; 7668 7669 solaris*) 7670 lt_prog_compiler_pic='-KPIC' 7671 lt_prog_compiler_static='-Bstatic' 7672 case $cc_basename in 7673 f77* | f90* | f95*) 7674 lt_prog_compiler_wl='-Qoption ld ';; 7675 *) 7676 lt_prog_compiler_wl='-Wl,';; 7677 esac 7678 ;; 7679 7680 sunos4*) 7681 lt_prog_compiler_wl='-Qoption ld ' 7682 lt_prog_compiler_pic='-PIC' 7683 lt_prog_compiler_static='-Bstatic' 7684 ;; 7685 7686 sysv4 | sysv4.2uw2* | sysv4.3*) 7687 lt_prog_compiler_wl='-Wl,' 7688 lt_prog_compiler_pic='-KPIC' 7689 lt_prog_compiler_static='-Bstatic' 7690 ;; 7691 7692 sysv4*MP*) 7693 if test -d /usr/nec ;then 7694 lt_prog_compiler_pic='-Kconform_pic' 7695 lt_prog_compiler_static='-Bstatic' 7696 fi 7697 ;; 7698 7699 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7700 lt_prog_compiler_wl='-Wl,' 7701 lt_prog_compiler_pic='-KPIC' 7702 lt_prog_compiler_static='-Bstatic' 7703 ;; 7704 7705 unicos*) 7706 lt_prog_compiler_wl='-Wl,' 7707 lt_prog_compiler_can_build_shared=no 7708 ;; 7709 7710 uts4*) 7711 lt_prog_compiler_pic='-pic' 7712 lt_prog_compiler_static='-Bstatic' 7713 ;; 7714 7715 *) 7716 lt_prog_compiler_can_build_shared=no 7717 ;; 7718 esac 7719 fi 7720 7721{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7722echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7723 7724# 7725# Check to make sure the PIC flag actually works. 7726# 7727if test -n "$lt_prog_compiler_pic"; then 7728 7729{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7730echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7731if test "${lt_prog_compiler_pic_works+set}" = set; then 7732 echo $ECHO_N "(cached) $ECHO_C" >&6 7733else 7734 lt_prog_compiler_pic_works=no 7735 ac_outfile=conftest.$ac_objext 7736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7738 # Insert the option either (1) after the last *FLAGS variable, or 7739 # (2) before a word containing "conftest.", or (3) at the end. 7740 # Note that $ac_compile itself does not contain backslashes and begins 7741 # with a dollar sign (not a hyphen), so the echo should work correctly. 7742 # The option is referenced via a variable to avoid confusing sed. 7743 lt_compile=`echo "$ac_compile" | $SED \ 7744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7746 -e 's:$: $lt_compiler_flag:'` 7747 (eval echo "\"\$as_me:7747: $lt_compile\"" >&5) 7748 (eval "$lt_compile" 2>conftest.err) 7749 ac_status=$? 7750 cat conftest.err >&5 7751 echo "$as_me:7751: \$? = $ac_status" >&5 7752 if (exit $ac_status) && test -s "$ac_outfile"; then 7753 # The compiler can only warn and ignore the option if not recognized 7754 # So say no if there are warnings other than the usual output. 7755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7758 lt_prog_compiler_pic_works=yes 7759 fi 7760 fi 7761 $rm conftest* 7762 7763fi 7764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7765echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7766 7767if test x"$lt_prog_compiler_pic_works" = xyes; then 7768 case $lt_prog_compiler_pic in 7769 "" | " "*) ;; 7770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7771 esac 7772else 7773 lt_prog_compiler_pic= 7774 lt_prog_compiler_can_build_shared=no 7775fi 7776 7777fi 7778case $host_os in 7779 # For platforms which do not support PIC, -DPIC is meaningless: 7780 *djgpp*) 7781 lt_prog_compiler_pic= 7782 ;; 7783 *) 7784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7785 ;; 7786esac 7787 7788# 7789# Check to make sure the static flag actually works. 7790# 7791wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7792{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7793echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7794if test "${lt_prog_compiler_static_works+set}" = set; then 7795 echo $ECHO_N "(cached) $ECHO_C" >&6 7796else 7797 lt_prog_compiler_static_works=no 7798 save_LDFLAGS="$LDFLAGS" 7799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7800 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7802 # The linker can only warn and ignore the option if not recognized 7803 # So say no if there are warnings 7804 if test -s conftest.err; then 7805 # Append any errors to the config.log. 7806 cat conftest.err 1>&5 7807 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7809 if diff conftest.exp conftest.er2 >/dev/null; then 7810 lt_prog_compiler_static_works=yes 7811 fi 7812 else 7813 lt_prog_compiler_static_works=yes 7814 fi 7815 fi 7816 $rm conftest* 7817 LDFLAGS="$save_LDFLAGS" 7818 7819fi 7820{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7821echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7822 7823if test x"$lt_prog_compiler_static_works" = xyes; then 7824 : 7825else 7826 lt_prog_compiler_static= 7827fi 7828 7829 7830{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7831echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7832if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7833 echo $ECHO_N "(cached) $ECHO_C" >&6 7834else 7835 lt_cv_prog_compiler_c_o=no 7836 $rm -r conftest 2>/dev/null 7837 mkdir conftest 7838 cd conftest 7839 mkdir out 7840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7841 7842 lt_compiler_flag="-o out/conftest2.$ac_objext" 7843 # Insert the option either (1) after the last *FLAGS variable, or 7844 # (2) before a word containing "conftest.", or (3) at the end. 7845 # Note that $ac_compile itself does not contain backslashes and begins 7846 # with a dollar sign (not a hyphen), so the echo should work correctly. 7847 lt_compile=`echo "$ac_compile" | $SED \ 7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7850 -e 's:$: $lt_compiler_flag:'` 7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5) 7852 (eval "$lt_compile" 2>out/conftest.err) 7853 ac_status=$? 7854 cat out/conftest.err >&5 7855 echo "$as_me:7855: \$? = $ac_status" >&5 7856 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7857 then 7858 # The compiler can only warn and ignore the option if not recognized 7859 # So say no if there are warnings 7860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7863 lt_cv_prog_compiler_c_o=yes 7864 fi 7865 fi 7866 chmod u+w . 2>&5 7867 $rm conftest* 7868 # SGI C++ compiler will create directory out/ii_files/ for 7869 # template instantiation 7870 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7871 $rm out/* && rmdir out 7872 cd .. 7873 rmdir conftest 7874 $rm conftest* 7875 7876fi 7877{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7878echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7879 7880 7881hard_links="nottested" 7882if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7883 # do not overwrite the value of need_locks provided by the user 7884 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7885echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7886 hard_links=yes 7887 $rm conftest* 7888 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7889 touch conftest.a 7890 ln conftest.a conftest.b 2>&5 || hard_links=no 7891 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7892 { echo "$as_me:$LINENO: result: $hard_links" >&5 7893echo "${ECHO_T}$hard_links" >&6; } 7894 if test "$hard_links" = no; then 7895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7896echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7897 need_locks=warn 7898 fi 7899else 7900 need_locks=no 7901fi 7902 7903{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7904echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7905 7906 runpath_var= 7907 allow_undefined_flag= 7908 enable_shared_with_static_runtimes=no 7909 archive_cmds= 7910 archive_expsym_cmds= 7911 old_archive_From_new_cmds= 7912 old_archive_from_expsyms_cmds= 7913 export_dynamic_flag_spec= 7914 whole_archive_flag_spec= 7915 thread_safe_flag_spec= 7916 hardcode_libdir_flag_spec= 7917 hardcode_libdir_flag_spec_ld= 7918 hardcode_libdir_separator= 7919 hardcode_direct=no 7920 hardcode_minus_L=no 7921 hardcode_shlibpath_var=unsupported 7922 link_all_deplibs=unknown 7923 hardcode_automatic=no 7924 module_cmds= 7925 module_expsym_cmds= 7926 always_export_symbols=no 7927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7928 # include_expsyms should be a list of space-separated symbols to be *always* 7929 # included in the symbol list 7930 include_expsyms= 7931 # exclude_expsyms can be an extended regexp of symbols to exclude 7932 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7934 # as well as any symbol that contains `d'. 7935 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7937 # platforms (ab)use it in PIC code, but their linkers get confused if 7938 # the symbol is explicitly referenced. Since portable code cannot 7939 # rely on this symbol name, it's probably fine to never include it in 7940 # preloaded symbol tables. 7941 extract_expsyms_cmds= 7942 # Just being paranoid about ensuring that cc_basename is set. 7943 for cc_temp in $compiler""; do 7944 case $cc_temp in 7945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7947 \-*) ;; 7948 *) break;; 7949 esac 7950done 7951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7952 7953 case $host_os in 7954 cygwin* | mingw* | pw32*) 7955 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7956 # When not using gcc, we currently assume that we are using 7957 # Microsoft Visual C++. 7958 if test "$GCC" != yes; then 7959 with_gnu_ld=no 7960 fi 7961 ;; 7962 interix*) 7963 # we just hope/assume this is gcc and not c89 (= MSVC++) 7964 with_gnu_ld=yes 7965 ;; 7966 openbsd*) 7967 with_gnu_ld=no 7968 ;; 7969 esac 7970 7971 ld_shlibs=yes 7972 if test "$with_gnu_ld" = yes; then 7973 # If archive_cmds runs LD, not CC, wlarc should be empty 7974 wlarc='${wl}' 7975 7976 # Set some defaults for GNU ld with shared library support. These 7977 # are reset later if shared libraries are not supported. Putting them 7978 # here allows them to be overridden if necessary. 7979 runpath_var=LD_RUN_PATH 7980 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7981 export_dynamic_flag_spec='${wl}--export-dynamic' 7982 # ancient GNU ld didn't support --whole-archive et. al. 7983 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7984 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7985 else 7986 whole_archive_flag_spec= 7987 fi 7988 supports_anon_versioning=no 7989 case `$LD -v 2>/dev/null` in 7990 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7991 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7992 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7993 *\ 2.11.*) ;; # other 2.11 versions 7994 *) supports_anon_versioning=yes ;; 7995 esac 7996 7997 # See if GNU ld supports shared libraries. 7998 case $host_os in 7999 aix3* | aix4* | aix5*) 8000 # On AIX/PPC, the GNU linker is very broken 8001 if test "$host_cpu" != ia64; then 8002 ld_shlibs=no 8003 cat <<EOF 1>&2 8004 8005*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8006*** to be unable to reliably create shared libraries on AIX. 8007*** Therefore, libtool is disabling shared libraries support. If you 8008*** really care for shared libraries, you may want to modify your PATH 8009*** so that a non-GNU linker is found, and then restart. 8010 8011EOF 8012 fi 8013 ;; 8014 8015 amigaos*) 8016 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)' 8017 hardcode_libdir_flag_spec='-L$libdir' 8018 hardcode_minus_L=yes 8019 8020 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8021 # that the semantics of dynamic libraries on AmigaOS, at least up 8022 # to version 4, is to share data among multiple programs linked 8023 # with the same dynamic library. Since this doesn't match the 8024 # behavior of shared libraries on other platforms, we can't use 8025 # them. 8026 ld_shlibs=no 8027 ;; 8028 8029 beos*) 8030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8031 allow_undefined_flag=unsupported 8032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8033 # support --undefined. This deserves some investigation. FIXME 8034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8035 else 8036 ld_shlibs=no 8037 fi 8038 ;; 8039 8040 cygwin* | mingw* | pw32*) 8041 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8042 # as there is no search path for DLLs. 8043 hardcode_libdir_flag_spec='-L$libdir' 8044 allow_undefined_flag=unsupported 8045 always_export_symbols=no 8046 enable_shared_with_static_runtimes=yes 8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8048 8049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8051 # If the export-symbols file already is a .def file (1st line 8052 # is EXPORTS), use it as is; otherwise, prepend... 8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8054 cp $export_symbols $output_objdir/$soname.def; 8055 else 8056 echo EXPORTS > $output_objdir/$soname.def; 8057 cat $export_symbols >> $output_objdir/$soname.def; 8058 fi~ 8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8060 else 8061 ld_shlibs=no 8062 fi 8063 ;; 8064 8065 interix3*) 8066 hardcode_direct=no 8067 hardcode_shlibpath_var=no 8068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8069 export_dynamic_flag_spec='${wl}-E' 8070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8071 # Instead, shared libraries are loaded at an image base (0x10000000 by 8072 # default) and relocated if they conflict, which is a slow very memory 8073 # consuming and fragmenting process. To avoid this, we pick a random, 8074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8075 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8077 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' 8078 ;; 8079 8080 linux*) 8081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8082 tmp_addflag= 8083 case $cc_basename,$host_cpu in 8084 pgcc*) # Portland Group C compiler 8085 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' 8086 tmp_addflag=' $pic_flag' 8087 ;; 8088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8089 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' 8090 tmp_addflag=' $pic_flag -Mnomain' ;; 8091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8092 tmp_addflag=' -i_dynamic' ;; 8093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8094 tmp_addflag=' -i_dynamic -nofor_main' ;; 8095 ifc* | ifort*) # Intel Fortran compiler 8096 tmp_addflag=' -nofor_main' ;; 8097 esac 8098 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8099 8100 if test $supports_anon_versioning = yes; then 8101 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8103 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8104 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8105 fi 8106 else 8107 ld_shlibs=no 8108 fi 8109 ;; 8110 8111 netbsd*) 8112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8114 wlarc= 8115 else 8116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8118 fi 8119 ;; 8120 8121 solaris*) 8122 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8123 ld_shlibs=no 8124 cat <<EOF 1>&2 8125 8126*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8127*** create shared libraries on Solaris systems. Therefore, libtool 8128*** is disabling shared libraries support. We urge you to upgrade GNU 8129*** binutils to release 2.9.1 or newer. Another option is to modify 8130*** your PATH or compiler configuration so that the native linker is 8131*** used, and then restart. 8132 8133EOF 8134 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8137 else 8138 ld_shlibs=no 8139 fi 8140 ;; 8141 8142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8143 case `$LD -v 2>&1` in 8144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8145 ld_shlibs=no 8146 cat <<_LT_EOF 1>&2 8147 8148*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8149*** reliably create shared libraries on SCO systems. Therefore, libtool 8150*** is disabling shared libraries support. We urge you to upgrade GNU 8151*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8152*** your PATH or compiler configuration so that the native linker is 8153*** used, and then restart. 8154 8155_LT_EOF 8156 ;; 8157 *) 8158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8159 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8162 else 8163 ld_shlibs=no 8164 fi 8165 ;; 8166 esac 8167 ;; 8168 8169 sunos4*) 8170 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8171 wlarc= 8172 hardcode_direct=yes 8173 hardcode_shlibpath_var=no 8174 ;; 8175 8176 *) 8177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8180 else 8181 ld_shlibs=no 8182 fi 8183 ;; 8184 esac 8185 8186 if test "$ld_shlibs" = no; then 8187 runpath_var= 8188 hardcode_libdir_flag_spec= 8189 export_dynamic_flag_spec= 8190 whole_archive_flag_spec= 8191 fi 8192 else 8193 # PORTME fill in a description of your system's linker (not GNU ld) 8194 case $host_os in 8195 aix3*) 8196 allow_undefined_flag=unsupported 8197 always_export_symbols=yes 8198 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' 8199 # Note: this linker hardcodes the directories in LIBPATH if there 8200 # are no directories specified by -L. 8201 hardcode_minus_L=yes 8202 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8203 # Neither direct hardcoding nor static linking is supported with a 8204 # broken collect2. 8205 hardcode_direct=unsupported 8206 fi 8207 ;; 8208 8209 aix4* | aix5*) 8210 if test "$host_cpu" = ia64; then 8211 # On IA64, the linker does run time linking by default, so we don't 8212 # have to do anything special. 8213 aix_use_runtimelinking=no 8214 exp_sym_flag='-Bexport' 8215 no_entry_flag="" 8216 else 8217 # If we're using GNU nm, then we don't want the "-C" option. 8218 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8219 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8220 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' 8221 else 8222 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' 8223 fi 8224 aix_use_runtimelinking=no 8225 8226 # Test if we are trying to use run time linking or normal 8227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8228 # need to do runtime linking. 8229 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8230 for ld_flag in $LDFLAGS; do 8231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8232 aix_use_runtimelinking=yes 8233 break 8234 fi 8235 done 8236 ;; 8237 esac 8238 8239 exp_sym_flag='-bexport' 8240 no_entry_flag='-bnoentry' 8241 fi 8242 8243 # When large executables or shared objects are built, AIX ld can 8244 # have problems creating the table of contents. If linking a library 8245 # or program results in "error TOC overflow" add -mminimal-toc to 8246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8248 8249 archive_cmds='' 8250 hardcode_direct=yes 8251 hardcode_libdir_separator=':' 8252 link_all_deplibs=yes 8253 8254 if test "$GCC" = yes; then 8255 case $host_os in aix4.[012]|aix4.[012].*) 8256 # We only want to do this on AIX 4.2 and lower, the check 8257 # below for broken collect2 doesn't work under 4.3+ 8258 collect2name=`${CC} -print-prog-name=collect2` 8259 if test -f "$collect2name" && \ 8260 strings "$collect2name" | grep resolve_lib_name >/dev/null 8261 then 8262 # We have reworked collect2 8263 hardcode_direct=yes 8264 else 8265 # We have old collect2 8266 hardcode_direct=unsupported 8267 # It fails to find uninstalled libraries when the uninstalled 8268 # path is not listed in the libpath. Setting hardcode_minus_L 8269 # to unsupported forces relinking 8270 hardcode_minus_L=yes 8271 hardcode_libdir_flag_spec='-L$libdir' 8272 hardcode_libdir_separator= 8273 fi 8274 ;; 8275 esac 8276 shared_flag='-shared' 8277 if test "$aix_use_runtimelinking" = yes; then 8278 shared_flag="$shared_flag "'${wl}-G' 8279 fi 8280 else 8281 # not using gcc 8282 if test "$host_cpu" = ia64; then 8283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8284 # chokes on -Wl,-G. The following line is correct: 8285 shared_flag='-G' 8286 else 8287 if test "$aix_use_runtimelinking" = yes; then 8288 shared_flag='${wl}-G' 8289 else 8290 shared_flag='${wl}-bM:SRE' 8291 fi 8292 fi 8293 fi 8294 8295 # It seems that -bexpall does not export symbols beginning with 8296 # underscore (_), so it is better to generate a list of symbols to export. 8297 always_export_symbols=yes 8298 if test "$aix_use_runtimelinking" = yes; then 8299 # Warning - without using the other runtime loading flags (-brtl), 8300 # -berok will link without error, but may produce a broken library. 8301 allow_undefined_flag='-berok' 8302 # Determine the default libpath from the value encoded in an empty executable. 8303 cat >conftest.$ac_ext <<_ACEOF 8304/* confdefs.h. */ 8305_ACEOF 8306cat confdefs.h >>conftest.$ac_ext 8307cat >>conftest.$ac_ext <<_ACEOF 8308/* end confdefs.h. */ 8309 8310int 8311main () 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318rm -f conftest.$ac_objext conftest$ac_exeext 8319if { (ac_try="$ac_link" 8320case "(($ac_try" in 8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8322 *) ac_try_echo=$ac_try;; 8323esac 8324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8325 (eval "$ac_link") 2>conftest.er1 8326 ac_status=$? 8327 grep -v '^ *+' conftest.er1 >conftest.err 8328 rm -f conftest.er1 8329 cat conftest.err >&5 8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8331 (exit $ac_status); } && 8332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8333 { (case "(($ac_try" in 8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8335 *) ac_try_echo=$ac_try;; 8336esac 8337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8338 (eval "$ac_try") 2>&5 8339 ac_status=$? 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8341 (exit $ac_status); }; } && 8342 { ac_try='test -s conftest$ac_exeext' 8343 { (case "(($ac_try" in 8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8345 *) ac_try_echo=$ac_try;; 8346esac 8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8348 (eval "$ac_try") 2>&5 8349 ac_status=$? 8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8351 (exit $ac_status); }; }; then 8352 8353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8354}'` 8355# Check for a 64-bit object if we didn't find anything. 8356if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8357}'`; fi 8358else 8359 echo "$as_me: failed program was:" >&5 8360sed 's/^/| /' conftest.$ac_ext >&5 8361 8362 8363fi 8364 8365rm -f core conftest.err conftest.$ac_objext \ 8366 conftest$ac_exeext conftest.$ac_ext 8367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8368 8369 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8370 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" 8371 else 8372 if test "$host_cpu" = ia64; then 8373 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8374 allow_undefined_flag="-z nodefs" 8375 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" 8376 else 8377 # Determine the default libpath from the value encoded in an empty executable. 8378 cat >conftest.$ac_ext <<_ACEOF 8379/* confdefs.h. */ 8380_ACEOF 8381cat confdefs.h >>conftest.$ac_ext 8382cat >>conftest.$ac_ext <<_ACEOF 8383/* end confdefs.h. */ 8384 8385int 8386main () 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393rm -f conftest.$ac_objext conftest$ac_exeext 8394if { (ac_try="$ac_link" 8395case "(($ac_try" in 8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8397 *) ac_try_echo=$ac_try;; 8398esac 8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8400 (eval "$ac_link") 2>conftest.er1 8401 ac_status=$? 8402 grep -v '^ *+' conftest.er1 >conftest.err 8403 rm -f conftest.er1 8404 cat conftest.err >&5 8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8406 (exit $ac_status); } && 8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8408 { (case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411esac 8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_try") 2>&5 8414 ac_status=$? 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 (exit $ac_status); }; } && 8417 { ac_try='test -s conftest$ac_exeext' 8418 { (case "(($ac_try" in 8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8420 *) ac_try_echo=$ac_try;; 8421esac 8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8423 (eval "$ac_try") 2>&5 8424 ac_status=$? 8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8426 (exit $ac_status); }; }; then 8427 8428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8429}'` 8430# Check for a 64-bit object if we didn't find anything. 8431if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8432}'`; fi 8433else 8434 echo "$as_me: failed program was:" >&5 8435sed 's/^/| /' conftest.$ac_ext >&5 8436 8437 8438fi 8439 8440rm -f core conftest.err conftest.$ac_objext \ 8441 conftest$ac_exeext conftest.$ac_ext 8442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8443 8444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8445 # Warning - without using the other run time loading flags, 8446 # -berok will link without error, but may produce a broken library. 8447 no_undefined_flag=' ${wl}-bernotok' 8448 allow_undefined_flag=' ${wl}-berok' 8449 # Exported symbols can be pulled into shared objects from archives 8450 whole_archive_flag_spec='$convenience' 8451 archive_cmds_need_lc=yes 8452 # This is similar to how AIX traditionally builds its shared libraries. 8453 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' 8454 fi 8455 fi 8456 ;; 8457 8458 amigaos*) 8459 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)' 8460 hardcode_libdir_flag_spec='-L$libdir' 8461 hardcode_minus_L=yes 8462 # see comment about different semantics on the GNU ld section 8463 ld_shlibs=no 8464 ;; 8465 8466 bsdi[45]*) 8467 export_dynamic_flag_spec=-rdynamic 8468 ;; 8469 8470 cygwin* | mingw* | pw32*) 8471 # When not using gcc, we currently assume that we are using 8472 # Microsoft Visual C++. 8473 # hardcode_libdir_flag_spec is actually meaningless, as there is 8474 # no search path for DLLs. 8475 hardcode_libdir_flag_spec=' ' 8476 allow_undefined_flag=unsupported 8477 # Tell ltmain to make .lib files, not .a files. 8478 libext=lib 8479 # Tell ltmain to make .dll files, not .so files. 8480 shrext_cmds=".dll" 8481 # FIXME: Setting linknames here is a bad hack. 8482 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8483 # The linker will automatically build a .lib file if we build a DLL. 8484 old_archive_From_new_cmds='true' 8485 # FIXME: Should let the user specify the lib program. 8486 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8487 fix_srcfile_path='`cygpath -w "$srcfile"`' 8488 enable_shared_with_static_runtimes=yes 8489 ;; 8490 8491 darwin* | rhapsody*) 8492 case $host_os in 8493 rhapsody* | darwin1.[012]) 8494 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8495 ;; 8496 *) # Darwin 1.3 on 8497 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8498 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8499 else 8500 case ${MACOSX_DEPLOYMENT_TARGET} in 8501 10.[012]) 8502 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8503 ;; 8504 10.*) 8505 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8506 ;; 8507 esac 8508 fi 8509 ;; 8510 esac 8511 archive_cmds_need_lc=no 8512 hardcode_direct=no 8513 hardcode_automatic=yes 8514 hardcode_shlibpath_var=unsupported 8515 whole_archive_flag_spec='' 8516 link_all_deplibs=yes 8517 if test "$GCC" = yes ; then 8518 output_verbose_link_cmd='echo' 8519 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8522 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}' 8523 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}' 8524 else 8525 case $cc_basename in 8526 xlc*) 8527 output_verbose_link_cmd='echo' 8528 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8529 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8530 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8531 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8532 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}' 8533 ;; 8534 *) 8535 ld_shlibs=no 8536 ;; 8537 esac 8538 fi 8539 ;; 8540 8541 dgux*) 8542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8543 hardcode_libdir_flag_spec='-L$libdir' 8544 hardcode_shlibpath_var=no 8545 ;; 8546 8547 freebsd1*) 8548 ld_shlibs=no 8549 ;; 8550 8551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8552 # support. Future versions do this automatically, but an explicit c++rt0.o 8553 # does not break anything, and helps significantly (at the cost of a little 8554 # extra space). 8555 freebsd2.2*) 8556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8557 hardcode_libdir_flag_spec='-R$libdir' 8558 hardcode_direct=yes 8559 hardcode_shlibpath_var=no 8560 ;; 8561 8562 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8563 freebsd2*) 8564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8565 hardcode_direct=yes 8566 hardcode_minus_L=yes 8567 hardcode_shlibpath_var=no 8568 ;; 8569 8570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8571 freebsd* | kfreebsd*-gnu | dragonfly*) 8572 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8573 hardcode_libdir_flag_spec='-R$libdir' 8574 hardcode_direct=yes 8575 hardcode_shlibpath_var=no 8576 ;; 8577 8578 hpux9*) 8579 if test "$GCC" = yes; then 8580 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 -f $output_objdir/$soname $lib' 8581 else 8582 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 -f $output_objdir/$soname $lib' 8583 fi 8584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8585 hardcode_libdir_separator=: 8586 hardcode_direct=yes 8587 8588 # hardcode_minus_L: Not really in the search PATH, 8589 # but as the default location of the library. 8590 hardcode_minus_L=yes 8591 export_dynamic_flag_spec='${wl}-E' 8592 ;; 8593 8594 hpux10*) 8595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8597 else 8598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8599 fi 8600 if test "$with_gnu_ld" = no; then 8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8602 hardcode_libdir_separator=: 8603 8604 hardcode_direct=yes 8605 export_dynamic_flag_spec='${wl}-E' 8606 8607 # hardcode_minus_L: Not really in the search PATH, 8608 # but as the default location of the library. 8609 hardcode_minus_L=yes 8610 fi 8611 ;; 8612 8613 hpux11*) 8614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8615 case $host_cpu in 8616 hppa*64*) 8617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8618 ;; 8619 ia64*) 8620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8621 ;; 8622 *) 8623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8624 ;; 8625 esac 8626 else 8627 case $host_cpu in 8628 hppa*64*) 8629 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8630 ;; 8631 ia64*) 8632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8633 ;; 8634 *) 8635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8636 ;; 8637 esac 8638 fi 8639 if test "$with_gnu_ld" = no; then 8640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8641 hardcode_libdir_separator=: 8642 8643 case $host_cpu in 8644 hppa*64*|ia64*) 8645 hardcode_libdir_flag_spec_ld='+b $libdir' 8646 hardcode_direct=no 8647 hardcode_shlibpath_var=no 8648 ;; 8649 *) 8650 hardcode_direct=yes 8651 export_dynamic_flag_spec='${wl}-E' 8652 8653 # hardcode_minus_L: Not really in the search PATH, 8654 # but as the default location of the library. 8655 hardcode_minus_L=yes 8656 ;; 8657 esac 8658 fi 8659 ;; 8660 8661 irix5* | irix6* | nonstopux*) 8662 if test "$GCC" = yes; then 8663 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' 8664 else 8665 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' 8666 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8667 fi 8668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8669 hardcode_libdir_separator=: 8670 link_all_deplibs=yes 8671 ;; 8672 8673 netbsd*) 8674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8676 else 8677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8678 fi 8679 hardcode_libdir_flag_spec='-R$libdir' 8680 hardcode_direct=yes 8681 hardcode_shlibpath_var=no 8682 ;; 8683 8684 newsos6) 8685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8686 hardcode_direct=yes 8687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8688 hardcode_libdir_separator=: 8689 hardcode_shlibpath_var=no 8690 ;; 8691 8692 openbsd*) 8693 hardcode_direct=yes 8694 hardcode_shlibpath_var=no 8695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8699 export_dynamic_flag_spec='${wl}-E' 8700 else 8701 case $host_os in 8702 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8704 hardcode_libdir_flag_spec='-R$libdir' 8705 ;; 8706 *) 8707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8709 ;; 8710 esac 8711 fi 8712 ;; 8713 8714 os2*) 8715 hardcode_libdir_flag_spec='-L$libdir' 8716 hardcode_minus_L=yes 8717 allow_undefined_flag=unsupported 8718 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' 8719 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8720 ;; 8721 8722 osf3*) 8723 if test "$GCC" = yes; then 8724 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8725 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' 8726 else 8727 allow_undefined_flag=' -expect_unresolved \*' 8728 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' 8729 fi 8730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8731 hardcode_libdir_separator=: 8732 ;; 8733 8734 osf4* | osf5*) # as osf3* with the addition of -msym flag 8735 if test "$GCC" = yes; then 8736 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8737 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' 8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8739 else 8740 allow_undefined_flag=' -expect_unresolved \*' 8741 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' 8742 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8743 $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' 8744 8745 # Both c and cxx compiler support -rpath directly 8746 hardcode_libdir_flag_spec='-rpath $libdir' 8747 fi 8748 hardcode_libdir_separator=: 8749 ;; 8750 8751 solaris*) 8752 no_undefined_flag=' -z text' 8753 if test "$GCC" = yes; then 8754 wlarc='${wl}' 8755 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8758 else 8759 wlarc='' 8760 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8761 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8763 fi 8764 hardcode_libdir_flag_spec='-R$libdir' 8765 hardcode_shlibpath_var=no 8766 case $host_os in 8767 solaris2.[0-5] | solaris2.[0-5].*) ;; 8768 *) 8769 # The compiler driver will combine linker options so we 8770 # cannot just pass the convience library names through 8771 # without $wl, iff we do not link with $LD. 8772 # Luckily, gcc supports the same syntax we need for Sun Studio. 8773 # Supported since Solaris 2.6 (maybe 2.5.1?) 8774 case $wlarc in 8775 '') 8776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8777 *) 8778 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8779 esac ;; 8780 esac 8781 link_all_deplibs=yes 8782 ;; 8783 8784 sunos4*) 8785 if test "x$host_vendor" = xsequent; then 8786 # Use $CC to link under sequent, because it throws in some extra .o 8787 # files that make .init and .fini sections work. 8788 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8789 else 8790 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8791 fi 8792 hardcode_libdir_flag_spec='-L$libdir' 8793 hardcode_direct=yes 8794 hardcode_minus_L=yes 8795 hardcode_shlibpath_var=no 8796 ;; 8797 8798 sysv4) 8799 case $host_vendor in 8800 sni) 8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8802 hardcode_direct=yes # is this really true??? 8803 ;; 8804 siemens) 8805 ## LD is ld it makes a PLAMLIB 8806 ## CC just makes a GrossModule. 8807 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8808 reload_cmds='$CC -r -o $output$reload_objs' 8809 hardcode_direct=no 8810 ;; 8811 motorola) 8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8813 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8814 ;; 8815 esac 8816 runpath_var='LD_RUN_PATH' 8817 hardcode_shlibpath_var=no 8818 ;; 8819 8820 sysv4.3*) 8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8822 hardcode_shlibpath_var=no 8823 export_dynamic_flag_spec='-Bexport' 8824 ;; 8825 8826 sysv4*MP*) 8827 if test -d /usr/nec; then 8828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8829 hardcode_shlibpath_var=no 8830 runpath_var=LD_RUN_PATH 8831 hardcode_runpath_var=yes 8832 ld_shlibs=yes 8833 fi 8834 ;; 8835 8836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8837 no_undefined_flag='${wl}-z,text' 8838 archive_cmds_need_lc=no 8839 hardcode_shlibpath_var=no 8840 runpath_var='LD_RUN_PATH' 8841 8842 if test "$GCC" = yes; then 8843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8845 else 8846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8848 fi 8849 ;; 8850 8851 sysv5* | sco3.2v5* | sco5v6*) 8852 # Note: We can NOT use -z defs as we might desire, because we do not 8853 # link with -lc, and that would cause any symbols used from libc to 8854 # always be unresolved, which means just about no library would 8855 # ever link correctly. If we're not using GNU ld we use -z text 8856 # though, which does catch some bad symbols but isn't as heavy-handed 8857 # as -z defs. 8858 no_undefined_flag='${wl}-z,text' 8859 allow_undefined_flag='${wl}-z,nodefs' 8860 archive_cmds_need_lc=no 8861 hardcode_shlibpath_var=no 8862 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8863 hardcode_libdir_separator=':' 8864 link_all_deplibs=yes 8865 export_dynamic_flag_spec='${wl}-Bexport' 8866 runpath_var='LD_RUN_PATH' 8867 8868 if test "$GCC" = yes; then 8869 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8870 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8871 else 8872 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8873 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8874 fi 8875 ;; 8876 8877 uts4*) 8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8879 hardcode_libdir_flag_spec='-L$libdir' 8880 hardcode_shlibpath_var=no 8881 ;; 8882 8883 *) 8884 ld_shlibs=no 8885 ;; 8886 esac 8887 fi 8888 8889{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8890echo "${ECHO_T}$ld_shlibs" >&6; } 8891test "$ld_shlibs" = no && can_build_shared=no 8892 8893# 8894# Do we need to explicitly link libc? 8895# 8896case "x$archive_cmds_need_lc" in 8897x|xyes) 8898 # Assume -lc should be added 8899 archive_cmds_need_lc=yes 8900 8901 if test "$enable_shared" = yes && test "$GCC" = yes; then 8902 case $archive_cmds in 8903 *'~'*) 8904 # FIXME: we may have to deal with multi-command sequences. 8905 ;; 8906 '$CC '*) 8907 # Test whether the compiler implicitly links with -lc since on some 8908 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8909 # to ld, don't add -lc before -lgcc. 8910 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8911echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8912 $rm conftest* 8913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8914 8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8916 (eval $ac_compile) 2>&5 8917 ac_status=$? 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); } 2>conftest.err; then 8920 soname=conftest 8921 lib=conftest 8922 libobjs=conftest.$ac_objext 8923 deplibs= 8924 wl=$lt_prog_compiler_wl 8925 pic_flag=$lt_prog_compiler_pic 8926 compiler_flags=-v 8927 linker_flags=-v 8928 verstring= 8929 output_objdir=. 8930 libname=conftest 8931 lt_save_allow_undefined_flag=$allow_undefined_flag 8932 allow_undefined_flag= 8933 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8934 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8935 ac_status=$? 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); } 8938 then 8939 archive_cmds_need_lc=no 8940 else 8941 archive_cmds_need_lc=yes 8942 fi 8943 allow_undefined_flag=$lt_save_allow_undefined_flag 8944 else 8945 cat conftest.err 1>&5 8946 fi 8947 $rm conftest* 8948 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8949echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8950 ;; 8951 esac 8952 fi 8953 ;; 8954esac 8955 8956{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8957echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8958library_names_spec= 8959libname_spec='lib$name' 8960soname_spec= 8961shrext_cmds=".so" 8962postinstall_cmds= 8963postuninstall_cmds= 8964finish_cmds= 8965finish_eval= 8966shlibpath_var= 8967shlibpath_overrides_runpath=unknown 8968version_type=none 8969dynamic_linker="$host_os ld.so" 8970sys_lib_dlsearch_path_spec="/lib /usr/lib" 8971if test "$GCC" = yes; then 8972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8973 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8974 # if the path contains ";" then we assume it to be the separator 8975 # otherwise default to the standard path separator (i.e. ":") - it is 8976 # assumed that no part of a normal pathname contains ";" but that should 8977 # okay in the real world where ";" in dirpaths is itself problematic. 8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8979 else 8980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8981 fi 8982else 8983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8984fi 8985need_lib_prefix=unknown 8986hardcode_into_libs=no 8987 8988# when you set need_version to no, make sure it does not cause -set_version 8989# flags to be left without arguments 8990need_version=unknown 8991 8992case $host_os in 8993aix3*) 8994 version_type=linux 8995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8996 shlibpath_var=LIBPATH 8997 8998 # AIX 3 has no versioning support, so we append a major version to the name. 8999 soname_spec='${libname}${release}${shared_ext}$major' 9000 ;; 9001 9002aix4* | aix5*) 9003 version_type=linux 9004 need_lib_prefix=no 9005 need_version=no 9006 hardcode_into_libs=yes 9007 if test "$host_cpu" = ia64; then 9008 # AIX 5 supports IA64 9009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9010 shlibpath_var=LD_LIBRARY_PATH 9011 else 9012 # With GCC up to 2.95.x, collect2 would create an import file 9013 # for dependence libraries. The import file would start with 9014 # the line `#! .'. This would cause the generated library to 9015 # depend on `.', always an invalid library. This was fixed in 9016 # development snapshots of GCC prior to 3.0. 9017 case $host_os in 9018 aix4 | aix4.[01] | aix4.[01].*) 9019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9020 echo ' yes ' 9021 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9022 : 9023 else 9024 can_build_shared=no 9025 fi 9026 ;; 9027 esac 9028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9029 # soname into executable. Probably we can add versioning support to 9030 # collect2, so additional links can be useful in future. 9031 if test "$aix_use_runtimelinking" = yes; then 9032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9033 # instead of lib<name>.a to let people know that these are not 9034 # typical AIX shared libraries. 9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9036 else 9037 # We preserve .a as extension for shared libraries through AIX4.2 9038 # and later when we are not doing run time linking. 9039 library_names_spec='${libname}${release}.a $libname.a' 9040 soname_spec='${libname}${release}${shared_ext}$major' 9041 fi 9042 shlibpath_var=LIBPATH 9043 fi 9044 ;; 9045 9046amigaos*) 9047 library_names_spec='$libname.ixlibrary $libname.a' 9048 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9049 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' 9050 ;; 9051 9052beos*) 9053 library_names_spec='${libname}${shared_ext}' 9054 dynamic_linker="$host_os ld.so" 9055 shlibpath_var=LIBRARY_PATH 9056 ;; 9057 9058bsdi[45]*) 9059 version_type=linux 9060 need_version=no 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9062 soname_spec='${libname}${release}${shared_ext}$major' 9063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9064 shlibpath_var=LD_LIBRARY_PATH 9065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9067 # the default ld.so.conf also contains /usr/contrib/lib and 9068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9069 # libtool to hard-code these into programs 9070 ;; 9071 9072cygwin* | mingw* | pw32*) 9073 version_type=windows 9074 shrext_cmds=".dll" 9075 need_version=no 9076 need_lib_prefix=no 9077 9078 case $GCC,$host_os in 9079 yes,cygwin* | yes,mingw* | yes,pw32*) 9080 library_names_spec='$libname.dll.a' 9081 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9082 postinstall_cmds='base_file=`basename \${file}`~ 9083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9084 dldir=$destdir/`dirname \$dlpath`~ 9085 test -d \$dldir || mkdir -p \$dldir~ 9086 $install_prog $dir/$dlname \$dldir/$dlname~ 9087 chmod a+x \$dldir/$dlname' 9088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9089 dlpath=$dir/\$dldll~ 9090 $rm \$dlpath' 9091 shlibpath_overrides_runpath=yes 9092 9093 case $host_os in 9094 cygwin*) 9095 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9097 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9098 ;; 9099 mingw*) 9100 # MinGW DLLs use traditional 'lib' prefix 9101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9103 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9104 # It is most probably a Windows format PATH printed by 9105 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9106 # path with ; separators, and with drive letters. We can handle the 9107 # drive letters (cygwin fileutils understands them), so leave them, 9108 # especially as we might pass files found there to a mingw objdump, 9109 # which wouldn't understand a cygwinified path. Ahh. 9110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9111 else 9112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9113 fi 9114 ;; 9115 pw32*) 9116 # pw32 DLLs use 'pw' prefix rather than 'lib' 9117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9118 ;; 9119 esac 9120 ;; 9121 9122 linux*) 9123 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9125 supports_anon_versioning=no 9126 case `$LD -v 2>/dev/null` in 9127 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9130 *\ 2.11.*) ;; # other 2.11 versions 9131 *) supports_anon_versioning=yes ;; 9132 esac 9133 if test $supports_anon_versioning = yes; then 9134 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9135cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9136$echo "local: *; };" >> $output_objdir/$libname.ver~ 9137 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9138 else 9139 $archive_expsym_cmds="$archive_cmds" 9140 fi 9141 else 9142 ld_shlibs=no 9143 fi 9144 ;; 9145 9146 *) 9147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9148 ;; 9149 esac 9150 dynamic_linker='Win32 ld.exe' 9151 # FIXME: first we should search . and the directory the executable is in 9152 shlibpath_var=PATH 9153 ;; 9154 9155darwin* | rhapsody*) 9156 dynamic_linker="$host_os dyld" 9157 version_type=darwin 9158 need_lib_prefix=no 9159 need_version=no 9160 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9161 soname_spec='${libname}${release}${major}$shared_ext' 9162 shlibpath_overrides_runpath=yes 9163 shlibpath_var=DYLD_LIBRARY_PATH 9164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9165 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9166 if test "$GCC" = yes; then 9167 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9168 else 9169 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9170 fi 9171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9172 ;; 9173 9174dgux*) 9175 version_type=linux 9176 need_lib_prefix=no 9177 need_version=no 9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9179 soname_spec='${libname}${release}${shared_ext}$major' 9180 shlibpath_var=LD_LIBRARY_PATH 9181 ;; 9182 9183freebsd1*) 9184 dynamic_linker=no 9185 ;; 9186 9187kfreebsd*-gnu) 9188 version_type=linux 9189 need_lib_prefix=no 9190 need_version=no 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 shlibpath_overrides_runpath=no 9195 hardcode_into_libs=yes 9196 dynamic_linker='GNU ld.so' 9197 ;; 9198 9199freebsd* | dragonfly*) 9200 # DragonFly does not have aout. When/if they implement a new 9201 # versioning mechanism, adjust this. 9202 if test -x /usr/bin/objformat; then 9203 objformat=`/usr/bin/objformat` 9204 else 9205 case $host_os in 9206 freebsd[123]*) objformat=aout ;; 9207 *) objformat=elf ;; 9208 esac 9209 fi 9210 # Handle Gentoo/FreeBSD as it was Linux 9211 case $host_vendor in 9212 gentoo) 9213 version_type=linux ;; 9214 *) 9215 version_type=freebsd-$objformat ;; 9216 esac 9217 9218 case $version_type in 9219 freebsd-elf*) 9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9221 need_version=no 9222 need_lib_prefix=no 9223 ;; 9224 freebsd-*) 9225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9226 need_version=yes 9227 ;; 9228 linux) 9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9230 soname_spec='${libname}${release}${shared_ext}$major' 9231 need_lib_prefix=no 9232 need_version=no 9233 ;; 9234 esac 9235 shlibpath_var=LD_LIBRARY_PATH 9236 case $host_os in 9237 freebsd2*) 9238 shlibpath_overrides_runpath=yes 9239 ;; 9240 freebsd3.[01]* | freebsdelf3.[01]*) 9241 shlibpath_overrides_runpath=yes 9242 hardcode_into_libs=yes 9243 ;; 9244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9246 shlibpath_overrides_runpath=no 9247 hardcode_into_libs=yes 9248 ;; 9249 freebsd*) # from 4.6 on 9250 shlibpath_overrides_runpath=yes 9251 hardcode_into_libs=yes 9252 ;; 9253 esac 9254 ;; 9255 9256gnu*) 9257 version_type=linux 9258 need_lib_prefix=no 9259 need_version=no 9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9261 soname_spec='${libname}${release}${shared_ext}$major' 9262 shlibpath_var=LD_LIBRARY_PATH 9263 hardcode_into_libs=yes 9264 ;; 9265 9266hpux9* | hpux10* | hpux11*) 9267 # Give a soname corresponding to the major version so that dld.sl refuses to 9268 # link against other versions. 9269 version_type=sunos 9270 need_lib_prefix=no 9271 need_version=no 9272 case $host_cpu in 9273 ia64*) 9274 shrext_cmds='.so' 9275 hardcode_into_libs=yes 9276 dynamic_linker="$host_os dld.so" 9277 shlibpath_var=LD_LIBRARY_PATH 9278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9280 soname_spec='${libname}${release}${shared_ext}$major' 9281 if test "X$HPUX_IA64_MODE" = X32; then 9282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9283 else 9284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9285 fi 9286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9287 ;; 9288 hppa*64*) 9289 shrext_cmds='.sl' 9290 hardcode_into_libs=yes 9291 dynamic_linker="$host_os dld.sl" 9292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9295 soname_spec='${libname}${release}${shared_ext}$major' 9296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9298 ;; 9299 *) 9300 shrext_cmds='.sl' 9301 dynamic_linker="$host_os dld.sl" 9302 shlibpath_var=SHLIB_PATH 9303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9305 soname_spec='${libname}${release}${shared_ext}$major' 9306 ;; 9307 esac 9308 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9309 postinstall_cmds='chmod 555 $lib' 9310 ;; 9311 9312interix3*) 9313 version_type=linux 9314 need_lib_prefix=no 9315 need_version=no 9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9317 soname_spec='${libname}${release}${shared_ext}$major' 9318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9319 shlibpath_var=LD_LIBRARY_PATH 9320 shlibpath_overrides_runpath=no 9321 hardcode_into_libs=yes 9322 ;; 9323 9324irix5* | irix6* | nonstopux*) 9325 case $host_os in 9326 nonstopux*) version_type=nonstopux ;; 9327 *) 9328 if test "$lt_cv_prog_gnu_ld" = yes; then 9329 version_type=linux 9330 else 9331 version_type=irix 9332 fi ;; 9333 esac 9334 need_lib_prefix=no 9335 need_version=no 9336 soname_spec='${libname}${release}${shared_ext}$major' 9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9338 case $host_os in 9339 irix5* | nonstopux*) 9340 libsuff= shlibsuff= 9341 ;; 9342 *) 9343 case $LD in # libtool.m4 will add one of these switches to LD 9344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9345 libsuff= shlibsuff= libmagic=32-bit;; 9346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9347 libsuff=32 shlibsuff=N32 libmagic=N32;; 9348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9349 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9350 *) libsuff= shlibsuff= libmagic=never-match;; 9351 esac 9352 ;; 9353 esac 9354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9355 shlibpath_overrides_runpath=no 9356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9358 hardcode_into_libs=yes 9359 ;; 9360 9361# No shared lib support for Linux oldld, aout, or coff. 9362linux*oldld* | linux*aout* | linux*coff*) 9363 dynamic_linker=no 9364 ;; 9365 9366# This must be Linux ELF. 9367linux*) 9368 version_type=linux 9369 need_lib_prefix=no 9370 need_version=no 9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9372 soname_spec='${libname}${release}${shared_ext}$major' 9373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9374 shlibpath_var=LD_LIBRARY_PATH 9375 shlibpath_overrides_runpath=no 9376 # This implies no fast_install, which is unacceptable. 9377 # Some rework will be needed to allow for fast_install 9378 # before this can be enabled. 9379 hardcode_into_libs=yes 9380 9381 # Append ld.so.conf contents to the search path 9382 if test -f /etc/ld.so.conf; then 9383 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9385 fi 9386 9387 # We used to test for /lib/ld.so.1 and disable shared libraries on 9388 # powerpc, because MkLinux only supported shared libraries with the 9389 # GNU dynamic linker. Since this was broken with cross compilers, 9390 # most powerpc-linux boxes support dynamic linking these days and 9391 # people can always --disable-shared, the test was removed, and we 9392 # assume the GNU/Linux dynamic linker is in use. 9393 dynamic_linker='GNU/Linux ld.so' 9394 ;; 9395 9396knetbsd*-gnu) 9397 version_type=linux 9398 need_lib_prefix=no 9399 need_version=no 9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9401 soname_spec='${libname}${release}${shared_ext}$major' 9402 shlibpath_var=LD_LIBRARY_PATH 9403 shlibpath_overrides_runpath=no 9404 hardcode_into_libs=yes 9405 dynamic_linker='GNU ld.so' 9406 ;; 9407 9408netbsd*) 9409 version_type=sunos 9410 need_lib_prefix=no 9411 need_version=no 9412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9415 dynamic_linker='NetBSD (a.out) ld.so' 9416 else 9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9418 soname_spec='${libname}${release}${shared_ext}$major' 9419 dynamic_linker='NetBSD ld.elf_so' 9420 fi 9421 shlibpath_var=LD_LIBRARY_PATH 9422 shlibpath_overrides_runpath=yes 9423 hardcode_into_libs=yes 9424 ;; 9425 9426newsos6) 9427 version_type=linux 9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9429 shlibpath_var=LD_LIBRARY_PATH 9430 shlibpath_overrides_runpath=yes 9431 ;; 9432 9433nto-qnx*) 9434 version_type=linux 9435 need_lib_prefix=no 9436 need_version=no 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9438 soname_spec='${libname}${release}${shared_ext}$major' 9439 shlibpath_var=LD_LIBRARY_PATH 9440 shlibpath_overrides_runpath=yes 9441 ;; 9442 9443openbsd*) 9444 version_type=sunos 9445 sys_lib_dlsearch_path_spec="/usr/lib" 9446 need_lib_prefix=no 9447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9448 case $host_os in 9449 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9450 *) need_version=no ;; 9451 esac 9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9454 shlibpath_var=LD_LIBRARY_PATH 9455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9456 case $host_os in 9457 openbsd2.[89] | openbsd2.[89].*) 9458 shlibpath_overrides_runpath=no 9459 ;; 9460 *) 9461 shlibpath_overrides_runpath=yes 9462 ;; 9463 esac 9464 else 9465 shlibpath_overrides_runpath=yes 9466 fi 9467 ;; 9468 9469os2*) 9470 libname_spec='$name' 9471 shrext_cmds=".dll" 9472 need_lib_prefix=no 9473 library_names_spec='$libname${shared_ext} $libname.a' 9474 dynamic_linker='OS/2 ld.exe' 9475 shlibpath_var=LIBPATH 9476 ;; 9477 9478osf3* | osf4* | osf5*) 9479 version_type=osf 9480 need_lib_prefix=no 9481 need_version=no 9482 soname_spec='${libname}${release}${shared_ext}$major' 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9484 shlibpath_var=LD_LIBRARY_PATH 9485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9487 ;; 9488 9489solaris*) 9490 version_type=linux 9491 need_lib_prefix=no 9492 need_version=no 9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9494 soname_spec='${libname}${release}${shared_ext}$major' 9495 shlibpath_var=LD_LIBRARY_PATH 9496 shlibpath_overrides_runpath=yes 9497 hardcode_into_libs=yes 9498 # ldd complains unless libraries are executable 9499 postinstall_cmds='chmod +x $lib' 9500 ;; 9501 9502sunos4*) 9503 version_type=sunos 9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9506 shlibpath_var=LD_LIBRARY_PATH 9507 shlibpath_overrides_runpath=yes 9508 if test "$with_gnu_ld" = yes; then 9509 need_lib_prefix=no 9510 fi 9511 need_version=yes 9512 ;; 9513 9514sysv4 | sysv4.3*) 9515 version_type=linux 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9517 soname_spec='${libname}${release}${shared_ext}$major' 9518 shlibpath_var=LD_LIBRARY_PATH 9519 case $host_vendor in 9520 sni) 9521 shlibpath_overrides_runpath=no 9522 need_lib_prefix=no 9523 export_dynamic_flag_spec='${wl}-Blargedynsym' 9524 runpath_var=LD_RUN_PATH 9525 ;; 9526 siemens) 9527 need_lib_prefix=no 9528 ;; 9529 motorola) 9530 need_lib_prefix=no 9531 need_version=no 9532 shlibpath_overrides_runpath=no 9533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9534 ;; 9535 esac 9536 ;; 9537 9538sysv4*MP*) 9539 if test -d /usr/nec ;then 9540 version_type=linux 9541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9542 soname_spec='$libname${shared_ext}.$major' 9543 shlibpath_var=LD_LIBRARY_PATH 9544 fi 9545 ;; 9546 9547sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9548 version_type=freebsd-elf 9549 need_lib_prefix=no 9550 need_version=no 9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9552 soname_spec='${libname}${release}${shared_ext}$major' 9553 shlibpath_var=LD_LIBRARY_PATH 9554 hardcode_into_libs=yes 9555 if test "$with_gnu_ld" = yes; then 9556 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9557 shlibpath_overrides_runpath=no 9558 else 9559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9560 shlibpath_overrides_runpath=yes 9561 case $host_os in 9562 sco3.2v5*) 9563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9564 ;; 9565 esac 9566 fi 9567 sys_lib_dlsearch_path_spec='/usr/lib' 9568 ;; 9569 9570uts4*) 9571 version_type=linux 9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9573 soname_spec='${libname}${release}${shared_ext}$major' 9574 shlibpath_var=LD_LIBRARY_PATH 9575 ;; 9576 9577*) 9578 dynamic_linker=no 9579 ;; 9580esac 9581{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9582echo "${ECHO_T}$dynamic_linker" >&6; } 9583test "$dynamic_linker" = no && can_build_shared=no 9584 9585variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9586if test "$GCC" = yes; then 9587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9588fi 9589 9590{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9591echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9592hardcode_action= 9593if test -n "$hardcode_libdir_flag_spec" || \ 9594 test -n "$runpath_var" || \ 9595 test "X$hardcode_automatic" = "Xyes" ; then 9596 9597 # We can hardcode non-existant directories. 9598 if test "$hardcode_direct" != no && 9599 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9600 # have to relink, otherwise we might link with an installed library 9601 # when we should be linking with a yet-to-be-installed one 9602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9603 test "$hardcode_minus_L" != no; then 9604 # Linking always hardcodes the temporary library directory. 9605 hardcode_action=relink 9606 else 9607 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9608 hardcode_action=immediate 9609 fi 9610else 9611 # We cannot hardcode anything, or else we can only hardcode existing 9612 # directories. 9613 hardcode_action=unsupported 9614fi 9615{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9616echo "${ECHO_T}$hardcode_action" >&6; } 9617 9618if test "$hardcode_action" = relink; then 9619 # Fast installation is not supported 9620 enable_fast_install=no 9621elif test "$shlibpath_overrides_runpath" = yes || 9622 test "$enable_shared" = no; then 9623 # Fast installation is not necessary 9624 enable_fast_install=needless 9625fi 9626 9627striplib= 9628old_striplib= 9629{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9630echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9631if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9633 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9634 { echo "$as_me:$LINENO: result: yes" >&5 9635echo "${ECHO_T}yes" >&6; } 9636else 9637# FIXME - insert some real tests, host_os isn't really good enough 9638 case $host_os in 9639 darwin*) 9640 if test -n "$STRIP" ; then 9641 striplib="$STRIP -x" 9642 { echo "$as_me:$LINENO: result: yes" >&5 9643echo "${ECHO_T}yes" >&6; } 9644 else 9645 { echo "$as_me:$LINENO: result: no" >&5 9646echo "${ECHO_T}no" >&6; } 9647fi 9648 ;; 9649 *) 9650 { echo "$as_me:$LINENO: result: no" >&5 9651echo "${ECHO_T}no" >&6; } 9652 ;; 9653 esac 9654fi 9655 9656if test "x$enable_dlopen" != xyes; then 9657 enable_dlopen=unknown 9658 enable_dlopen_self=unknown 9659 enable_dlopen_self_static=unknown 9660else 9661 lt_cv_dlopen=no 9662 lt_cv_dlopen_libs= 9663 9664 case $host_os in 9665 beos*) 9666 lt_cv_dlopen="load_add_on" 9667 lt_cv_dlopen_libs= 9668 lt_cv_dlopen_self=yes 9669 ;; 9670 9671 mingw* | pw32*) 9672 lt_cv_dlopen="LoadLibrary" 9673 lt_cv_dlopen_libs= 9674 ;; 9675 9676 cygwin*) 9677 lt_cv_dlopen="dlopen" 9678 lt_cv_dlopen_libs= 9679 ;; 9680 9681 darwin*) 9682 # if libdl is installed we need to link against it 9683 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9685if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9686 echo $ECHO_N "(cached) $ECHO_C" >&6 9687else 9688 ac_check_lib_save_LIBS=$LIBS 9689LIBS="-ldl $LIBS" 9690cat >conftest.$ac_ext <<_ACEOF 9691/* confdefs.h. */ 9692_ACEOF 9693cat confdefs.h >>conftest.$ac_ext 9694cat >>conftest.$ac_ext <<_ACEOF 9695/* end confdefs.h. */ 9696 9697/* Override any GCC internal prototype to avoid an error. 9698 Use char because int might match the return type of a GCC 9699 builtin and then its argument prototype would still apply. */ 9700#ifdef __cplusplus 9701extern "C" 9702#endif 9703char dlopen (); 9704int 9705main () 9706{ 9707return dlopen (); 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712rm -f conftest.$ac_objext conftest$ac_exeext 9713if { (ac_try="$ac_link" 9714case "(($ac_try" in 9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9716 *) ac_try_echo=$ac_try;; 9717esac 9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9719 (eval "$ac_link") 2>conftest.er1 9720 ac_status=$? 9721 grep -v '^ *+' conftest.er1 >conftest.err 9722 rm -f conftest.er1 9723 cat conftest.err >&5 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); } && 9726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9727 { (case "(($ac_try" in 9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9729 *) ac_try_echo=$ac_try;; 9730esac 9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9732 (eval "$ac_try") 2>&5 9733 ac_status=$? 9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9735 (exit $ac_status); }; } && 9736 { ac_try='test -s conftest$ac_exeext' 9737 { (case "(($ac_try" in 9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9739 *) ac_try_echo=$ac_try;; 9740esac 9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9742 (eval "$ac_try") 2>&5 9743 ac_status=$? 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 (exit $ac_status); }; }; then 9746 ac_cv_lib_dl_dlopen=yes 9747else 9748 echo "$as_me: failed program was:" >&5 9749sed 's/^/| /' conftest.$ac_ext >&5 9750 9751 ac_cv_lib_dl_dlopen=no 9752fi 9753 9754rm -f core conftest.err conftest.$ac_objext \ 9755 conftest$ac_exeext conftest.$ac_ext 9756LIBS=$ac_check_lib_save_LIBS 9757fi 9758{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9759echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9760if test $ac_cv_lib_dl_dlopen = yes; then 9761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9762else 9763 9764 lt_cv_dlopen="dyld" 9765 lt_cv_dlopen_libs= 9766 lt_cv_dlopen_self=yes 9767 9768fi 9769 9770 ;; 9771 9772 *) 9773 { echo "$as_me:$LINENO: checking for shl_load" >&5 9774echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9775if test "${ac_cv_func_shl_load+set}" = set; then 9776 echo $ECHO_N "(cached) $ECHO_C" >&6 9777else 9778 cat >conftest.$ac_ext <<_ACEOF 9779/* confdefs.h. */ 9780_ACEOF 9781cat confdefs.h >>conftest.$ac_ext 9782cat >>conftest.$ac_ext <<_ACEOF 9783/* end confdefs.h. */ 9784/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9786#define shl_load innocuous_shl_load 9787 9788/* System header to define __stub macros and hopefully few prototypes, 9789 which can conflict with char shl_load (); below. 9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9791 <limits.h> exists even on freestanding compilers. */ 9792 9793#ifdef __STDC__ 9794# include <limits.h> 9795#else 9796# include <assert.h> 9797#endif 9798 9799#undef shl_load 9800 9801/* Override any GCC internal prototype to avoid an error. 9802 Use char because int might match the return type of a GCC 9803 builtin and then its argument prototype would still apply. */ 9804#ifdef __cplusplus 9805extern "C" 9806#endif 9807char shl_load (); 9808/* The GNU C library defines this for functions which it implements 9809 to always fail with ENOSYS. Some functions are actually named 9810 something starting with __ and the normal name is an alias. */ 9811#if defined __stub_shl_load || defined __stub___shl_load 9812choke me 9813#endif 9814 9815int 9816main () 9817{ 9818return shl_load (); 9819 ; 9820 return 0; 9821} 9822_ACEOF 9823rm -f conftest.$ac_objext conftest$ac_exeext 9824if { (ac_try="$ac_link" 9825case "(($ac_try" in 9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9827 *) ac_try_echo=$ac_try;; 9828esac 9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9830 (eval "$ac_link") 2>conftest.er1 9831 ac_status=$? 9832 grep -v '^ *+' conftest.er1 >conftest.err 9833 rm -f conftest.er1 9834 cat conftest.err >&5 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); } && 9837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9838 { (case "(($ac_try" in 9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9840 *) ac_try_echo=$ac_try;; 9841esac 9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9843 (eval "$ac_try") 2>&5 9844 ac_status=$? 9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9846 (exit $ac_status); }; } && 9847 { ac_try='test -s conftest$ac_exeext' 9848 { (case "(($ac_try" in 9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9850 *) ac_try_echo=$ac_try;; 9851esac 9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9853 (eval "$ac_try") 2>&5 9854 ac_status=$? 9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 (exit $ac_status); }; }; then 9857 ac_cv_func_shl_load=yes 9858else 9859 echo "$as_me: failed program was:" >&5 9860sed 's/^/| /' conftest.$ac_ext >&5 9861 9862 ac_cv_func_shl_load=no 9863fi 9864 9865rm -f core conftest.err conftest.$ac_objext \ 9866 conftest$ac_exeext conftest.$ac_ext 9867fi 9868{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9869echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9870if test $ac_cv_func_shl_load = yes; then 9871 lt_cv_dlopen="shl_load" 9872else 9873 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9874echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9875if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9876 echo $ECHO_N "(cached) $ECHO_C" >&6 9877else 9878 ac_check_lib_save_LIBS=$LIBS 9879LIBS="-ldld $LIBS" 9880cat >conftest.$ac_ext <<_ACEOF 9881/* confdefs.h. */ 9882_ACEOF 9883cat confdefs.h >>conftest.$ac_ext 9884cat >>conftest.$ac_ext <<_ACEOF 9885/* end confdefs.h. */ 9886 9887/* Override any GCC internal prototype to avoid an error. 9888 Use char because int might match the return type of a GCC 9889 builtin and then its argument prototype would still apply. */ 9890#ifdef __cplusplus 9891extern "C" 9892#endif 9893char shl_load (); 9894int 9895main () 9896{ 9897return shl_load (); 9898 ; 9899 return 0; 9900} 9901_ACEOF 9902rm -f conftest.$ac_objext conftest$ac_exeext 9903if { (ac_try="$ac_link" 9904case "(($ac_try" in 9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9906 *) ac_try_echo=$ac_try;; 9907esac 9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9909 (eval "$ac_link") 2>conftest.er1 9910 ac_status=$? 9911 grep -v '^ *+' conftest.er1 >conftest.err 9912 rm -f conftest.er1 9913 cat conftest.err >&5 9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9915 (exit $ac_status); } && 9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9917 { (case "(($ac_try" in 9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9919 *) ac_try_echo=$ac_try;; 9920esac 9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9922 (eval "$ac_try") 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); }; } && 9926 { ac_try='test -s conftest$ac_exeext' 9927 { (case "(($ac_try" in 9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9929 *) ac_try_echo=$ac_try;; 9930esac 9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9932 (eval "$ac_try") 2>&5 9933 ac_status=$? 9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9935 (exit $ac_status); }; }; then 9936 ac_cv_lib_dld_shl_load=yes 9937else 9938 echo "$as_me: failed program was:" >&5 9939sed 's/^/| /' conftest.$ac_ext >&5 9940 9941 ac_cv_lib_dld_shl_load=no 9942fi 9943 9944rm -f core conftest.err conftest.$ac_objext \ 9945 conftest$ac_exeext conftest.$ac_ext 9946LIBS=$ac_check_lib_save_LIBS 9947fi 9948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9949echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9950if test $ac_cv_lib_dld_shl_load = yes; then 9951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9952else 9953 { echo "$as_me:$LINENO: checking for dlopen" >&5 9954echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9955if test "${ac_cv_func_dlopen+set}" = set; then 9956 echo $ECHO_N "(cached) $ECHO_C" >&6 9957else 9958 cat >conftest.$ac_ext <<_ACEOF 9959/* confdefs.h. */ 9960_ACEOF 9961cat confdefs.h >>conftest.$ac_ext 9962cat >>conftest.$ac_ext <<_ACEOF 9963/* end confdefs.h. */ 9964/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9966#define dlopen innocuous_dlopen 9967 9968/* System header to define __stub macros and hopefully few prototypes, 9969 which can conflict with char dlopen (); below. 9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9971 <limits.h> exists even on freestanding compilers. */ 9972 9973#ifdef __STDC__ 9974# include <limits.h> 9975#else 9976# include <assert.h> 9977#endif 9978 9979#undef dlopen 9980 9981/* Override any GCC internal prototype to avoid an error. 9982 Use char because int might match the return type of a GCC 9983 builtin and then its argument prototype would still apply. */ 9984#ifdef __cplusplus 9985extern "C" 9986#endif 9987char dlopen (); 9988/* The GNU C library defines this for functions which it implements 9989 to always fail with ENOSYS. Some functions are actually named 9990 something starting with __ and the normal name is an alias. */ 9991#if defined __stub_dlopen || defined __stub___dlopen 9992choke me 9993#endif 9994 9995int 9996main () 9997{ 9998return dlopen (); 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003rm -f conftest.$ac_objext conftest$ac_exeext 10004if { (ac_try="$ac_link" 10005case "(($ac_try" in 10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10007 *) ac_try_echo=$ac_try;; 10008esac 10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10010 (eval "$ac_link") 2>conftest.er1 10011 ac_status=$? 10012 grep -v '^ *+' conftest.er1 >conftest.err 10013 rm -f conftest.er1 10014 cat conftest.err >&5 10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10016 (exit $ac_status); } && 10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10018 { (case "(($ac_try" in 10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10020 *) ac_try_echo=$ac_try;; 10021esac 10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10023 (eval "$ac_try") 2>&5 10024 ac_status=$? 10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10026 (exit $ac_status); }; } && 10027 { ac_try='test -s conftest$ac_exeext' 10028 { (case "(($ac_try" in 10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10030 *) ac_try_echo=$ac_try;; 10031esac 10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10033 (eval "$ac_try") 2>&5 10034 ac_status=$? 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 (exit $ac_status); }; }; then 10037 ac_cv_func_dlopen=yes 10038else 10039 echo "$as_me: failed program was:" >&5 10040sed 's/^/| /' conftest.$ac_ext >&5 10041 10042 ac_cv_func_dlopen=no 10043fi 10044 10045rm -f core conftest.err conftest.$ac_objext \ 10046 conftest$ac_exeext conftest.$ac_ext 10047fi 10048{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10049echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10050if test $ac_cv_func_dlopen = yes; then 10051 lt_cv_dlopen="dlopen" 10052else 10053 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10054echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10055if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10056 echo $ECHO_N "(cached) $ECHO_C" >&6 10057else 10058 ac_check_lib_save_LIBS=$LIBS 10059LIBS="-ldl $LIBS" 10060cat >conftest.$ac_ext <<_ACEOF 10061/* confdefs.h. */ 10062_ACEOF 10063cat confdefs.h >>conftest.$ac_ext 10064cat >>conftest.$ac_ext <<_ACEOF 10065/* end confdefs.h. */ 10066 10067/* Override any GCC internal prototype to avoid an error. 10068 Use char because int might match the return type of a GCC 10069 builtin and then its argument prototype would still apply. */ 10070#ifdef __cplusplus 10071extern "C" 10072#endif 10073char dlopen (); 10074int 10075main () 10076{ 10077return dlopen (); 10078 ; 10079 return 0; 10080} 10081_ACEOF 10082rm -f conftest.$ac_objext conftest$ac_exeext 10083if { (ac_try="$ac_link" 10084case "(($ac_try" in 10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10086 *) ac_try_echo=$ac_try;; 10087esac 10088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10089 (eval "$ac_link") 2>conftest.er1 10090 ac_status=$? 10091 grep -v '^ *+' conftest.er1 >conftest.err 10092 rm -f conftest.er1 10093 cat conftest.err >&5 10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10095 (exit $ac_status); } && 10096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10097 { (case "(($ac_try" in 10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10099 *) ac_try_echo=$ac_try;; 10100esac 10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10102 (eval "$ac_try") 2>&5 10103 ac_status=$? 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); }; } && 10106 { ac_try='test -s conftest$ac_exeext' 10107 { (case "(($ac_try" in 10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10109 *) ac_try_echo=$ac_try;; 10110esac 10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10112 (eval "$ac_try") 2>&5 10113 ac_status=$? 10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10115 (exit $ac_status); }; }; then 10116 ac_cv_lib_dl_dlopen=yes 10117else 10118 echo "$as_me: failed program was:" >&5 10119sed 's/^/| /' conftest.$ac_ext >&5 10120 10121 ac_cv_lib_dl_dlopen=no 10122fi 10123 10124rm -f core conftest.err conftest.$ac_objext \ 10125 conftest$ac_exeext conftest.$ac_ext 10126LIBS=$ac_check_lib_save_LIBS 10127fi 10128{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10130if test $ac_cv_lib_dl_dlopen = yes; then 10131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10132else 10133 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10135if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10136 echo $ECHO_N "(cached) $ECHO_C" >&6 10137else 10138 ac_check_lib_save_LIBS=$LIBS 10139LIBS="-lsvld $LIBS" 10140cat >conftest.$ac_ext <<_ACEOF 10141/* confdefs.h. */ 10142_ACEOF 10143cat confdefs.h >>conftest.$ac_ext 10144cat >>conftest.$ac_ext <<_ACEOF 10145/* end confdefs.h. */ 10146 10147/* Override any GCC internal prototype to avoid an error. 10148 Use char because int might match the return type of a GCC 10149 builtin and then its argument prototype would still apply. */ 10150#ifdef __cplusplus 10151extern "C" 10152#endif 10153char dlopen (); 10154int 10155main () 10156{ 10157return dlopen (); 10158 ; 10159 return 0; 10160} 10161_ACEOF 10162rm -f conftest.$ac_objext conftest$ac_exeext 10163if { (ac_try="$ac_link" 10164case "(($ac_try" in 10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10166 *) ac_try_echo=$ac_try;; 10167esac 10168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10169 (eval "$ac_link") 2>conftest.er1 10170 ac_status=$? 10171 grep -v '^ *+' conftest.er1 >conftest.err 10172 rm -f conftest.er1 10173 cat conftest.err >&5 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); } && 10176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10177 { (case "(($ac_try" in 10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10179 *) ac_try_echo=$ac_try;; 10180esac 10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10182 (eval "$ac_try") 2>&5 10183 ac_status=$? 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 (exit $ac_status); }; } && 10186 { ac_try='test -s conftest$ac_exeext' 10187 { (case "(($ac_try" in 10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10189 *) ac_try_echo=$ac_try;; 10190esac 10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10192 (eval "$ac_try") 2>&5 10193 ac_status=$? 10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10195 (exit $ac_status); }; }; then 10196 ac_cv_lib_svld_dlopen=yes 10197else 10198 echo "$as_me: failed program was:" >&5 10199sed 's/^/| /' conftest.$ac_ext >&5 10200 10201 ac_cv_lib_svld_dlopen=no 10202fi 10203 10204rm -f core conftest.err conftest.$ac_objext \ 10205 conftest$ac_exeext conftest.$ac_ext 10206LIBS=$ac_check_lib_save_LIBS 10207fi 10208{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10209echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10210if test $ac_cv_lib_svld_dlopen = yes; then 10211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10212else 10213 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10214echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10215if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10216 echo $ECHO_N "(cached) $ECHO_C" >&6 10217else 10218 ac_check_lib_save_LIBS=$LIBS 10219LIBS="-ldld $LIBS" 10220cat >conftest.$ac_ext <<_ACEOF 10221/* confdefs.h. */ 10222_ACEOF 10223cat confdefs.h >>conftest.$ac_ext 10224cat >>conftest.$ac_ext <<_ACEOF 10225/* end confdefs.h. */ 10226 10227/* Override any GCC internal prototype to avoid an error. 10228 Use char because int might match the return type of a GCC 10229 builtin and then its argument prototype would still apply. */ 10230#ifdef __cplusplus 10231extern "C" 10232#endif 10233char dld_link (); 10234int 10235main () 10236{ 10237return dld_link (); 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242rm -f conftest.$ac_objext conftest$ac_exeext 10243if { (ac_try="$ac_link" 10244case "(($ac_try" in 10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10246 *) ac_try_echo=$ac_try;; 10247esac 10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10249 (eval "$ac_link") 2>conftest.er1 10250 ac_status=$? 10251 grep -v '^ *+' conftest.er1 >conftest.err 10252 rm -f conftest.er1 10253 cat conftest.err >&5 10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10255 (exit $ac_status); } && 10256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10257 { (case "(($ac_try" in 10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10259 *) ac_try_echo=$ac_try;; 10260esac 10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10262 (eval "$ac_try") 2>&5 10263 ac_status=$? 10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10265 (exit $ac_status); }; } && 10266 { ac_try='test -s conftest$ac_exeext' 10267 { (case "(($ac_try" in 10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10269 *) ac_try_echo=$ac_try;; 10270esac 10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10272 (eval "$ac_try") 2>&5 10273 ac_status=$? 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10275 (exit $ac_status); }; }; then 10276 ac_cv_lib_dld_dld_link=yes 10277else 10278 echo "$as_me: failed program was:" >&5 10279sed 's/^/| /' conftest.$ac_ext >&5 10280 10281 ac_cv_lib_dld_dld_link=no 10282fi 10283 10284rm -f core conftest.err conftest.$ac_objext \ 10285 conftest$ac_exeext conftest.$ac_ext 10286LIBS=$ac_check_lib_save_LIBS 10287fi 10288{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10289echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10290if test $ac_cv_lib_dld_dld_link = yes; then 10291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10292fi 10293 10294 10295fi 10296 10297 10298fi 10299 10300 10301fi 10302 10303 10304fi 10305 10306 10307fi 10308 10309 ;; 10310 esac 10311 10312 if test "x$lt_cv_dlopen" != xno; then 10313 enable_dlopen=yes 10314 else 10315 enable_dlopen=no 10316 fi 10317 10318 case $lt_cv_dlopen in 10319 dlopen) 10320 save_CPPFLAGS="$CPPFLAGS" 10321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10322 10323 save_LDFLAGS="$LDFLAGS" 10324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10325 10326 save_LIBS="$LIBS" 10327 LIBS="$lt_cv_dlopen_libs $LIBS" 10328 10329 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10330echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10331if test "${lt_cv_dlopen_self+set}" = set; then 10332 echo $ECHO_N "(cached) $ECHO_C" >&6 10333else 10334 if test "$cross_compiling" = yes; then : 10335 lt_cv_dlopen_self=cross 10336else 10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10338 lt_status=$lt_dlunknown 10339 cat > conftest.$ac_ext <<EOF 10340#line 10340 "configure" 10341#include "confdefs.h" 10342 10343#if HAVE_DLFCN_H 10344#include <dlfcn.h> 10345#endif 10346 10347#include <stdio.h> 10348 10349#ifdef RTLD_GLOBAL 10350# define LT_DLGLOBAL RTLD_GLOBAL 10351#else 10352# ifdef DL_GLOBAL 10353# define LT_DLGLOBAL DL_GLOBAL 10354# else 10355# define LT_DLGLOBAL 0 10356# endif 10357#endif 10358 10359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10360 find out it does not work in some platform. */ 10361#ifndef LT_DLLAZY_OR_NOW 10362# ifdef RTLD_LAZY 10363# define LT_DLLAZY_OR_NOW RTLD_LAZY 10364# else 10365# ifdef DL_LAZY 10366# define LT_DLLAZY_OR_NOW DL_LAZY 10367# else 10368# ifdef RTLD_NOW 10369# define LT_DLLAZY_OR_NOW RTLD_NOW 10370# else 10371# ifdef DL_NOW 10372# define LT_DLLAZY_OR_NOW DL_NOW 10373# else 10374# define LT_DLLAZY_OR_NOW 0 10375# endif 10376# endif 10377# endif 10378# endif 10379#endif 10380 10381#ifdef __cplusplus 10382extern "C" void exit (int); 10383#endif 10384 10385void fnord() { int i=42;} 10386int main () 10387{ 10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10389 int status = $lt_dlunknown; 10390 10391 if (self) 10392 { 10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10395 /* dlclose (self); */ 10396 } 10397 else 10398 puts (dlerror ()); 10399 10400 exit (status); 10401} 10402EOF 10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10404 (eval $ac_link) 2>&5 10405 ac_status=$? 10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10408 (./conftest; exit; ) >&5 2>/dev/null 10409 lt_status=$? 10410 case x$lt_status in 10411 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10412 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10413 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10414 esac 10415 else : 10416 # compilation failed 10417 lt_cv_dlopen_self=no 10418 fi 10419fi 10420rm -fr conftest* 10421 10422 10423fi 10424{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10425echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10426 10427 if test "x$lt_cv_dlopen_self" = xyes; then 10428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10429 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10430echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10431if test "${lt_cv_dlopen_self_static+set}" = set; then 10432 echo $ECHO_N "(cached) $ECHO_C" >&6 10433else 10434 if test "$cross_compiling" = yes; then : 10435 lt_cv_dlopen_self_static=cross 10436else 10437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10438 lt_status=$lt_dlunknown 10439 cat > conftest.$ac_ext <<EOF 10440#line 10440 "configure" 10441#include "confdefs.h" 10442 10443#if HAVE_DLFCN_H 10444#include <dlfcn.h> 10445#endif 10446 10447#include <stdio.h> 10448 10449#ifdef RTLD_GLOBAL 10450# define LT_DLGLOBAL RTLD_GLOBAL 10451#else 10452# ifdef DL_GLOBAL 10453# define LT_DLGLOBAL DL_GLOBAL 10454# else 10455# define LT_DLGLOBAL 0 10456# endif 10457#endif 10458 10459/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10460 find out it does not work in some platform. */ 10461#ifndef LT_DLLAZY_OR_NOW 10462# ifdef RTLD_LAZY 10463# define LT_DLLAZY_OR_NOW RTLD_LAZY 10464# else 10465# ifdef DL_LAZY 10466# define LT_DLLAZY_OR_NOW DL_LAZY 10467# else 10468# ifdef RTLD_NOW 10469# define LT_DLLAZY_OR_NOW RTLD_NOW 10470# else 10471# ifdef DL_NOW 10472# define LT_DLLAZY_OR_NOW DL_NOW 10473# else 10474# define LT_DLLAZY_OR_NOW 0 10475# endif 10476# endif 10477# endif 10478# endif 10479#endif 10480 10481#ifdef __cplusplus 10482extern "C" void exit (int); 10483#endif 10484 10485void fnord() { int i=42;} 10486int main () 10487{ 10488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10489 int status = $lt_dlunknown; 10490 10491 if (self) 10492 { 10493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10495 /* dlclose (self); */ 10496 } 10497 else 10498 puts (dlerror ()); 10499 10500 exit (status); 10501} 10502EOF 10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10504 (eval $ac_link) 2>&5 10505 ac_status=$? 10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10508 (./conftest; exit; ) >&5 2>/dev/null 10509 lt_status=$? 10510 case x$lt_status in 10511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10513 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10514 esac 10515 else : 10516 # compilation failed 10517 lt_cv_dlopen_self_static=no 10518 fi 10519fi 10520rm -fr conftest* 10521 10522 10523fi 10524{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10525echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10526 fi 10527 10528 CPPFLAGS="$save_CPPFLAGS" 10529 LDFLAGS="$save_LDFLAGS" 10530 LIBS="$save_LIBS" 10531 ;; 10532 esac 10533 10534 case $lt_cv_dlopen_self in 10535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10536 *) enable_dlopen_self=unknown ;; 10537 esac 10538 10539 case $lt_cv_dlopen_self_static in 10540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10541 *) enable_dlopen_self_static=unknown ;; 10542 esac 10543fi 10544 10545 10546# Report which library types will actually be built 10547{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10548echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10549{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10550echo "${ECHO_T}$can_build_shared" >&6; } 10551 10552{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10553echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10554test "$can_build_shared" = "no" && enable_shared=no 10555 10556# On AIX, shared libraries and static libraries use the same namespace, and 10557# are all built from PIC. 10558case $host_os in 10559aix3*) 10560 test "$enable_shared" = yes && enable_static=no 10561 if test -n "$RANLIB"; then 10562 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10563 postinstall_cmds='$RANLIB $lib' 10564 fi 10565 ;; 10566 10567aix4* | aix5*) 10568 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10569 test "$enable_shared" = yes && enable_static=no 10570 fi 10571 ;; 10572esac 10573{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10574echo "${ECHO_T}$enable_shared" >&6; } 10575 10576{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10577echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10578# Make sure either enable_shared or enable_static is yes. 10579test "$enable_shared" = yes || enable_static=yes 10580{ echo "$as_me:$LINENO: result: $enable_static" >&5 10581echo "${ECHO_T}$enable_static" >&6; } 10582 10583# The else clause should only fire when bootstrapping the 10584# libtool distribution, otherwise you forgot to ship ltmain.sh 10585# with your package, and you will get complaints that there are 10586# no rules to generate ltmain.sh. 10587if test -f "$ltmain"; then 10588 # See if we are running on zsh, and set the options which allow our commands through 10589 # without removal of \ escapes. 10590 if test -n "${ZSH_VERSION+set}" ; then 10591 setopt NO_GLOB_SUBST 10592 fi 10593 # Now quote all the things that may contain metacharacters while being 10594 # careful not to overquote the AC_SUBSTed values. We take copies of the 10595 # variables and quote the copies for generation of the libtool script. 10596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10597 SED SHELL STRIP \ 10598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10600 deplibs_check_method reload_flag reload_cmds need_locks \ 10601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10602 lt_cv_sys_global_symbol_to_c_name_address \ 10603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10604 old_postinstall_cmds old_postuninstall_cmds \ 10605 compiler \ 10606 CC \ 10607 LD \ 10608 lt_prog_compiler_wl \ 10609 lt_prog_compiler_pic \ 10610 lt_prog_compiler_static \ 10611 lt_prog_compiler_no_builtin_flag \ 10612 export_dynamic_flag_spec \ 10613 thread_safe_flag_spec \ 10614 whole_archive_flag_spec \ 10615 enable_shared_with_static_runtimes \ 10616 old_archive_cmds \ 10617 old_archive_from_new_cmds \ 10618 predep_objects \ 10619 postdep_objects \ 10620 predeps \ 10621 postdeps \ 10622 compiler_lib_search_path \ 10623 archive_cmds \ 10624 archive_expsym_cmds \ 10625 postinstall_cmds \ 10626 postuninstall_cmds \ 10627 old_archive_from_expsyms_cmds \ 10628 allow_undefined_flag \ 10629 no_undefined_flag \ 10630 export_symbols_cmds \ 10631 hardcode_libdir_flag_spec \ 10632 hardcode_libdir_flag_spec_ld \ 10633 hardcode_libdir_separator \ 10634 hardcode_automatic \ 10635 module_cmds \ 10636 module_expsym_cmds \ 10637 lt_cv_prog_compiler_c_o \ 10638 exclude_expsyms \ 10639 include_expsyms; do 10640 10641 case $var in 10642 old_archive_cmds | \ 10643 old_archive_from_new_cmds | \ 10644 archive_cmds | \ 10645 archive_expsym_cmds | \ 10646 module_cmds | \ 10647 module_expsym_cmds | \ 10648 old_archive_from_expsyms_cmds | \ 10649 export_symbols_cmds | \ 10650 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10651 postinstall_cmds | postuninstall_cmds | \ 10652 old_postinstall_cmds | old_postuninstall_cmds | \ 10653 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10654 # Double-quote double-evaled strings. 10655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10656 ;; 10657 *) 10658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10659 ;; 10660 esac 10661 done 10662 10663 case $lt_echo in 10664 *'\$0 --fallback-echo"') 10665 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10666 ;; 10667 esac 10668 10669cfgfile="${ofile}T" 10670 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10671 $rm -f "$cfgfile" 10672 { echo "$as_me:$LINENO: creating $ofile" >&5 10673echo "$as_me: creating $ofile" >&6;} 10674 10675 cat <<__EOF__ >> "$cfgfile" 10676#! $SHELL 10677 10678# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10679# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10680# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10681# 10682# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10683# Free Software Foundation, Inc. 10684# 10685# This file is part of GNU Libtool: 10686# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10687# 10688# This program is free software; you can redistribute it and/or modify 10689# it under the terms of the GNU General Public License as published by 10690# the Free Software Foundation; either version 2 of the License, or 10691# (at your option) any later version. 10692# 10693# This program is distributed in the hope that it will be useful, but 10694# WITHOUT ANY WARRANTY; without even the implied warranty of 10695# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10696# General Public License for more details. 10697# 10698# You should have received a copy of the GNU General Public License 10699# along with this program; if not, write to the Free Software 10700# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10701# 10702# As a special exception to the GNU General Public License, if you 10703# distribute this file as part of a program that contains a 10704# configuration script generated by Autoconf, you may include it under 10705# the same distribution terms that you use for the rest of that program. 10706 10707# A sed program that does not truncate output. 10708SED=$lt_SED 10709 10710# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10711Xsed="$SED -e 1s/^X//" 10712 10713# The HP-UX ksh and POSIX shell print the target directory to stdout 10714# if CDPATH is set. 10715(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10716 10717# The names of the tagged configurations supported by this script. 10718available_tags= 10719 10720# ### BEGIN LIBTOOL CONFIG 10721 10722# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10723 10724# Shell to use when invoking shell scripts. 10725SHELL=$lt_SHELL 10726 10727# Whether or not to build shared libraries. 10728build_libtool_libs=$enable_shared 10729 10730# Whether or not to build static libraries. 10731build_old_libs=$enable_static 10732 10733# Whether or not to add -lc for building shared libraries. 10734build_libtool_need_lc=$archive_cmds_need_lc 10735 10736# Whether or not to disallow shared libs when runtime libs are static 10737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10738 10739# Whether or not to optimize for fast installation. 10740fast_install=$enable_fast_install 10741 10742# The host system. 10743host_alias=$host_alias 10744host=$host 10745host_os=$host_os 10746 10747# The build system. 10748build_alias=$build_alias 10749build=$build 10750build_os=$build_os 10751 10752# An echo program that does not interpret backslashes. 10753echo=$lt_echo 10754 10755# The archiver. 10756AR=$lt_AR 10757AR_FLAGS=$lt_AR_FLAGS 10758 10759# A C compiler. 10760LTCC=$lt_LTCC 10761 10762# LTCC compiler flags. 10763LTCFLAGS=$lt_LTCFLAGS 10764 10765# A language-specific compiler. 10766CC=$lt_compiler 10767 10768# Is the compiler the GNU C compiler? 10769with_gcc=$GCC 10770 10771# An ERE matcher. 10772EGREP=$lt_EGREP 10773 10774# The linker used to build libraries. 10775LD=$lt_LD 10776 10777# Whether we need hard or soft links. 10778LN_S=$lt_LN_S 10779 10780# A BSD-compatible nm program. 10781NM=$lt_NM 10782 10783# A symbol stripping program 10784STRIP=$lt_STRIP 10785 10786# Used to examine libraries when file_magic_cmd begins "file" 10787MAGIC_CMD=$MAGIC_CMD 10788 10789# Used on cygwin: DLL creation program. 10790DLLTOOL="$DLLTOOL" 10791 10792# Used on cygwin: object dumper. 10793OBJDUMP="$OBJDUMP" 10794 10795# Used on cygwin: assembler. 10796AS="$AS" 10797 10798# The name of the directory that contains temporary libtool files. 10799objdir=$objdir 10800 10801# How to create reloadable object files. 10802reload_flag=$lt_reload_flag 10803reload_cmds=$lt_reload_cmds 10804 10805# How to pass a linker flag through the compiler. 10806wl=$lt_lt_prog_compiler_wl 10807 10808# Object file suffix (normally "o"). 10809objext="$ac_objext" 10810 10811# Old archive suffix (normally "a"). 10812libext="$libext" 10813 10814# Shared library suffix (normally ".so"). 10815shrext_cmds='$shrext_cmds' 10816 10817# Executable file suffix (normally ""). 10818exeext="$exeext" 10819 10820# Additional compiler flags for building library objects. 10821pic_flag=$lt_lt_prog_compiler_pic 10822pic_mode=$pic_mode 10823 10824# What is the maximum length of a command? 10825max_cmd_len=$lt_cv_sys_max_cmd_len 10826 10827# Does compiler simultaneously support -c and -o options? 10828compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10829 10830# Must we lock files when doing compilation? 10831need_locks=$lt_need_locks 10832 10833# Do we need the lib prefix for modules? 10834need_lib_prefix=$need_lib_prefix 10835 10836# Do we need a version for libraries? 10837need_version=$need_version 10838 10839# Whether dlopen is supported. 10840dlopen_support=$enable_dlopen 10841 10842# Whether dlopen of programs is supported. 10843dlopen_self=$enable_dlopen_self 10844 10845# Whether dlopen of statically linked programs is supported. 10846dlopen_self_static=$enable_dlopen_self_static 10847 10848# Compiler flag to prevent dynamic linking. 10849link_static_flag=$lt_lt_prog_compiler_static 10850 10851# Compiler flag to turn off builtin functions. 10852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10853 10854# Compiler flag to allow reflexive dlopens. 10855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10856 10857# Compiler flag to generate shared objects directly from archives. 10858whole_archive_flag_spec=$lt_whole_archive_flag_spec 10859 10860# Compiler flag to generate thread-safe objects. 10861thread_safe_flag_spec=$lt_thread_safe_flag_spec 10862 10863# Library versioning type. 10864version_type=$version_type 10865 10866# Format of library name prefix. 10867libname_spec=$lt_libname_spec 10868 10869# List of archive names. First name is the real one, the rest are links. 10870# The last name is the one that the linker finds with -lNAME. 10871library_names_spec=$lt_library_names_spec 10872 10873# The coded name of the library, if different from the real name. 10874soname_spec=$lt_soname_spec 10875 10876# Commands used to build and install an old-style archive. 10877RANLIB=$lt_RANLIB 10878old_archive_cmds=$lt_old_archive_cmds 10879old_postinstall_cmds=$lt_old_postinstall_cmds 10880old_postuninstall_cmds=$lt_old_postuninstall_cmds 10881 10882# Create an old-style archive from a shared archive. 10883old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10884 10885# Create a temporary old-style archive to link instead of a shared archive. 10886old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10887 10888# Commands used to build and install a shared archive. 10889archive_cmds=$lt_archive_cmds 10890archive_expsym_cmds=$lt_archive_expsym_cmds 10891postinstall_cmds=$lt_postinstall_cmds 10892postuninstall_cmds=$lt_postuninstall_cmds 10893 10894# Commands used to build a loadable module (assumed same as above if empty) 10895module_cmds=$lt_module_cmds 10896module_expsym_cmds=$lt_module_expsym_cmds 10897 10898# Commands to strip libraries. 10899old_striplib=$lt_old_striplib 10900striplib=$lt_striplib 10901 10902# Dependencies to place before the objects being linked to create a 10903# shared library. 10904predep_objects=$lt_predep_objects 10905 10906# Dependencies to place after the objects being linked to create a 10907# shared library. 10908postdep_objects=$lt_postdep_objects 10909 10910# Dependencies to place before the objects being linked to create a 10911# shared library. 10912predeps=$lt_predeps 10913 10914# Dependencies to place after the objects being linked to create a 10915# shared library. 10916postdeps=$lt_postdeps 10917 10918# The library search path used internally by the compiler when linking 10919# a shared library. 10920compiler_lib_search_path=$lt_compiler_lib_search_path 10921 10922# Method to check whether dependent libraries are shared objects. 10923deplibs_check_method=$lt_deplibs_check_method 10924 10925# Command to use when deplibs_check_method == file_magic. 10926file_magic_cmd=$lt_file_magic_cmd 10927 10928# Flag that allows shared libraries with undefined symbols to be built. 10929allow_undefined_flag=$lt_allow_undefined_flag 10930 10931# Flag that forces no undefined symbols. 10932no_undefined_flag=$lt_no_undefined_flag 10933 10934# Commands used to finish a libtool library installation in a directory. 10935finish_cmds=$lt_finish_cmds 10936 10937# Same as above, but a single script fragment to be evaled but not shown. 10938finish_eval=$lt_finish_eval 10939 10940# Take the output of nm and produce a listing of raw symbols and C names. 10941global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10942 10943# Transform the output of nm in a proper C declaration 10944global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10945 10946# Transform the output of nm in a C name address pair 10947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10948 10949# This is the shared library runtime path variable. 10950runpath_var=$runpath_var 10951 10952# This is the shared library path variable. 10953shlibpath_var=$shlibpath_var 10954 10955# Is shlibpath searched before the hard-coded library search path? 10956shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10957 10958# How to hardcode a shared library path into an executable. 10959hardcode_action=$hardcode_action 10960 10961# Whether we should hardcode library paths into libraries. 10962hardcode_into_libs=$hardcode_into_libs 10963 10964# Flag to hardcode \$libdir into a binary during linking. 10965# This must work even if \$libdir does not exist. 10966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10967 10968# If ld is used when linking, flag to hardcode \$libdir into 10969# a binary during linking. This must work even if \$libdir does 10970# not exist. 10971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10972 10973# Whether we need a single -rpath flag with a separated argument. 10974hardcode_libdir_separator=$lt_hardcode_libdir_separator 10975 10976# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10977# resulting binary. 10978hardcode_direct=$hardcode_direct 10979 10980# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10981# resulting binary. 10982hardcode_minus_L=$hardcode_minus_L 10983 10984# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10985# the resulting binary. 10986hardcode_shlibpath_var=$hardcode_shlibpath_var 10987 10988# Set to yes if building a shared library automatically hardcodes DIR into the library 10989# and all subsequent libraries and executables linked against it. 10990hardcode_automatic=$hardcode_automatic 10991 10992# Variables whose values should be saved in libtool wrapper scripts and 10993# restored at relink time. 10994variables_saved_for_relink="$variables_saved_for_relink" 10995 10996# Whether libtool must link a program against all its dependency libraries. 10997link_all_deplibs=$link_all_deplibs 10998 10999# Compile-time system search path for libraries 11000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11001 11002# Run-time system search path for libraries 11003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11004 11005# Fix the shell variable \$srcfile for the compiler. 11006fix_srcfile_path="$fix_srcfile_path" 11007 11008# Set to yes if exported symbols are required. 11009always_export_symbols=$always_export_symbols 11010 11011# The commands to list exported symbols. 11012export_symbols_cmds=$lt_export_symbols_cmds 11013 11014# The commands to extract the exported symbol list from a shared archive. 11015extract_expsyms_cmds=$lt_extract_expsyms_cmds 11016 11017# Symbols that should not be listed in the preloaded symbols. 11018exclude_expsyms=$lt_exclude_expsyms 11019 11020# Symbols that must always be exported. 11021include_expsyms=$lt_include_expsyms 11022 11023# ### END LIBTOOL CONFIG 11024 11025__EOF__ 11026 11027 11028 case $host_os in 11029 aix3*) 11030 cat <<\EOF >> "$cfgfile" 11031 11032# AIX sometimes has problems with the GCC collect2 program. For some 11033# reason, if we set the COLLECT_NAMES environment variable, the problems 11034# vanish in a puff of smoke. 11035if test "X${COLLECT_NAMES+set}" != Xset; then 11036 COLLECT_NAMES= 11037 export COLLECT_NAMES 11038fi 11039EOF 11040 ;; 11041 esac 11042 11043 # We use sed instead of cat because bash on DJGPP gets confused if 11044 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11045 # text mode, it properly converts lines to CR/LF. This bash problem 11046 # is reportedly fixed, but why not run on old versions too? 11047 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11048 11049 mv -f "$cfgfile" "$ofile" || \ 11050 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11051 chmod +x "$ofile" 11052 11053else 11054 # If there is no Makefile yet, we rely on a make rule to execute 11055 # `config.status --recheck' to rerun these tests and create the 11056 # libtool script then. 11057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11058 if test -f "$ltmain_in"; then 11059 test -f Makefile && make "$ltmain" 11060 fi 11061fi 11062 11063 11064ac_ext=c 11065ac_cpp='$CPP $CPPFLAGS' 11066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11068ac_compiler_gnu=$ac_cv_c_compiler_gnu 11069 11070CC="$lt_save_CC" 11071 11072 11073# Check whether --with-tags was given. 11074if test "${with_tags+set}" = set; then 11075 withval=$with_tags; tagnames="$withval" 11076fi 11077 11078 11079if test -f "$ltmain" && test -n "$tagnames"; then 11080 if test ! -f "${ofile}"; then 11081 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11082echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11083 fi 11084 11085 if test -z "$LTCC"; then 11086 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11087 if test -z "$LTCC"; then 11088 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11089echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11090 else 11091 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11092echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11093 fi 11094 fi 11095 if test -z "$LTCFLAGS"; then 11096 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11097 fi 11098 11099 # Extract list of available tagged configurations in $ofile. 11100 # Note that this assumes the entire list is on one line. 11101 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11102 11103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11104 for tagname in $tagnames; do 11105 IFS="$lt_save_ifs" 11106 # Check whether tagname contains only valid characters 11107 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11108 "") ;; 11109 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11110echo "$as_me: error: invalid tag name: $tagname" >&2;} 11111 { (exit 1); exit 1; }; } 11112 ;; 11113 esac 11114 11115 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11116 then 11117 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11118echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11119 { (exit 1); exit 1; }; } 11120 fi 11121 11122 # Update the list of available tags. 11123 if test -n "$tagname"; then 11124 echo appending configuration tag \"$tagname\" to $ofile 11125 11126 case $tagname in 11127 CXX) 11128 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11129 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11130 (test "X$CXX" != "Xg++"))) ; then 11131 ac_ext=cpp 11132ac_cpp='$CXXCPP $CPPFLAGS' 11133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11136 11137 11138 11139 11140archive_cmds_need_lc_CXX=no 11141allow_undefined_flag_CXX= 11142always_export_symbols_CXX=no 11143archive_expsym_cmds_CXX= 11144export_dynamic_flag_spec_CXX= 11145hardcode_direct_CXX=no 11146hardcode_libdir_flag_spec_CXX= 11147hardcode_libdir_flag_spec_ld_CXX= 11148hardcode_libdir_separator_CXX= 11149hardcode_minus_L_CXX=no 11150hardcode_shlibpath_var_CXX=unsupported 11151hardcode_automatic_CXX=no 11152module_cmds_CXX= 11153module_expsym_cmds_CXX= 11154link_all_deplibs_CXX=unknown 11155old_archive_cmds_CXX=$old_archive_cmds 11156no_undefined_flag_CXX= 11157whole_archive_flag_spec_CXX= 11158enable_shared_with_static_runtimes_CXX=no 11159 11160# Dependencies to place before and after the object being linked: 11161predep_objects_CXX= 11162postdep_objects_CXX= 11163predeps_CXX= 11164postdeps_CXX= 11165compiler_lib_search_path_CXX= 11166 11167# Source file extension for C++ test sources. 11168ac_ext=cpp 11169 11170# Object file extension for compiled C++ test sources. 11171objext=o 11172objext_CXX=$objext 11173 11174# Code to be used in simple compile tests 11175lt_simple_compile_test_code="int some_variable = 0;\n" 11176 11177# Code to be used in simple link tests 11178lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11179 11180# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11181 11182# If no C compiler was specified, use CC. 11183LTCC=${LTCC-"$CC"} 11184 11185# If no C compiler flags were specified, use CFLAGS. 11186LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11187 11188# Allow CC to be a program name with arguments. 11189compiler=$CC 11190 11191 11192# save warnings/boilerplate of simple test code 11193ac_outfile=conftest.$ac_objext 11194printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11196_lt_compiler_boilerplate=`cat conftest.err` 11197$rm conftest* 11198 11199ac_outfile=conftest.$ac_objext 11200printf "$lt_simple_link_test_code" >conftest.$ac_ext 11201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11202_lt_linker_boilerplate=`cat conftest.err` 11203$rm conftest* 11204 11205 11206# Allow CC to be a program name with arguments. 11207lt_save_CC=$CC 11208lt_save_LD=$LD 11209lt_save_GCC=$GCC 11210GCC=$GXX 11211lt_save_with_gnu_ld=$with_gnu_ld 11212lt_save_path_LD=$lt_cv_path_LD 11213if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11214 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11215else 11216 $as_unset lt_cv_prog_gnu_ld 11217fi 11218if test -n "${lt_cv_path_LDCXX+set}"; then 11219 lt_cv_path_LD=$lt_cv_path_LDCXX 11220else 11221 $as_unset lt_cv_path_LD 11222fi 11223test -z "${LDCXX+set}" || LD=$LDCXX 11224CC=${CXX-"c++"} 11225compiler=$CC 11226compiler_CXX=$CC 11227for cc_temp in $compiler""; do 11228 case $cc_temp in 11229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11231 \-*) ;; 11232 *) break;; 11233 esac 11234done 11235cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11236 11237 11238# We don't want -fno-exception wen compiling C++ code, so set the 11239# no_builtin_flag separately 11240if test "$GXX" = yes; then 11241 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11242else 11243 lt_prog_compiler_no_builtin_flag_CXX= 11244fi 11245 11246if test "$GXX" = yes; then 11247 # Set up default GNU C++ configuration 11248 11249 11250# Check whether --with-gnu-ld was given. 11251if test "${with_gnu_ld+set}" = set; then 11252 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11253else 11254 with_gnu_ld=no 11255fi 11256 11257ac_prog=ld 11258if test "$GCC" = yes; then 11259 # Check if gcc -print-prog-name=ld gives a path. 11260 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11261echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11262 case $host in 11263 *-*-mingw*) 11264 # gcc leaves a trailing carriage return which upsets mingw 11265 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11266 *) 11267 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11268 esac 11269 case $ac_prog in 11270 # Accept absolute paths. 11271 [\\/]* | ?:[\\/]*) 11272 re_direlt='/[^/][^/]*/\.\./' 11273 # Canonicalize the pathname of ld 11274 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11275 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11276 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11277 done 11278 test -z "$LD" && LD="$ac_prog" 11279 ;; 11280 "") 11281 # If it fails, then pretend we aren't using GCC. 11282 ac_prog=ld 11283 ;; 11284 *) 11285 # If it is relative, then search for the first ld in PATH. 11286 with_gnu_ld=unknown 11287 ;; 11288 esac 11289elif test "$with_gnu_ld" = yes; then 11290 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11291echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11292else 11293 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11294echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11295fi 11296if test "${lt_cv_path_LD+set}" = set; then 11297 echo $ECHO_N "(cached) $ECHO_C" >&6 11298else 11299 if test -z "$LD"; then 11300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11301 for ac_dir in $PATH; do 11302 IFS="$lt_save_ifs" 11303 test -z "$ac_dir" && ac_dir=. 11304 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11305 lt_cv_path_LD="$ac_dir/$ac_prog" 11306 # Check to see if the program is GNU ld. I'd rather use --version, 11307 # but apparently some variants of GNU ld only accept -v. 11308 # Break only if it was the GNU/non-GNU ld that we prefer. 11309 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11310 *GNU* | *'with BFD'*) 11311 test "$with_gnu_ld" != no && break 11312 ;; 11313 *) 11314 test "$with_gnu_ld" != yes && break 11315 ;; 11316 esac 11317 fi 11318 done 11319 IFS="$lt_save_ifs" 11320else 11321 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11322fi 11323fi 11324 11325LD="$lt_cv_path_LD" 11326if test -n "$LD"; then 11327 { echo "$as_me:$LINENO: result: $LD" >&5 11328echo "${ECHO_T}$LD" >&6; } 11329else 11330 { echo "$as_me:$LINENO: result: no" >&5 11331echo "${ECHO_T}no" >&6; } 11332fi 11333test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11334echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11335 { (exit 1); exit 1; }; } 11336{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11337echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11338if test "${lt_cv_prog_gnu_ld+set}" = set; then 11339 echo $ECHO_N "(cached) $ECHO_C" >&6 11340else 11341 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11342case `$LD -v 2>&1 </dev/null` in 11343*GNU* | *'with BFD'*) 11344 lt_cv_prog_gnu_ld=yes 11345 ;; 11346*) 11347 lt_cv_prog_gnu_ld=no 11348 ;; 11349esac 11350fi 11351{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11352echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11353with_gnu_ld=$lt_cv_prog_gnu_ld 11354 11355 11356 11357 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11358 # archiving commands below assume that GNU ld is being used. 11359 if test "$with_gnu_ld" = yes; then 11360 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11361 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' 11362 11363 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11365 11366 # If archive_cmds runs LD, not CC, wlarc should be empty 11367 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11368 # investigate it a little bit more. (MM) 11369 wlarc='${wl}' 11370 11371 # ancient GNU ld didn't support --whole-archive et. al. 11372 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11373 grep 'no-whole-archive' > /dev/null; then 11374 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11375 else 11376 whole_archive_flag_spec_CXX= 11377 fi 11378 else 11379 with_gnu_ld=no 11380 wlarc= 11381 11382 # A generic and very simple default shared library creation 11383 # command for GNU C++ for the case where it uses the native 11384 # linker, instead of GNU ld. If possible, this setting should 11385 # overridden to take advantage of the native linker features on 11386 # the platform it is being used on. 11387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11388 fi 11389 11390 # Commands to make compiler produce verbose output that lists 11391 # what "hidden" libraries, object files and flags are used when 11392 # linking a shared library. 11393 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11394 11395else 11396 GXX=no 11397 with_gnu_ld=no 11398 wlarc= 11399fi 11400 11401# PORTME: fill in a description of your system's C++ link characteristics 11402{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11403echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11404ld_shlibs_CXX=yes 11405case $host_os in 11406 aix3*) 11407 # FIXME: insert proper C++ library support 11408 ld_shlibs_CXX=no 11409 ;; 11410 aix4* | aix5*) 11411 if test "$host_cpu" = ia64; then 11412 # On IA64, the linker does run time linking by default, so we don't 11413 # have to do anything special. 11414 aix_use_runtimelinking=no 11415 exp_sym_flag='-Bexport' 11416 no_entry_flag="" 11417 else 11418 aix_use_runtimelinking=no 11419 11420 # Test if we are trying to use run time linking or normal 11421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11422 # need to do runtime linking. 11423 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11424 for ld_flag in $LDFLAGS; do 11425 case $ld_flag in 11426 *-brtl*) 11427 aix_use_runtimelinking=yes 11428 break 11429 ;; 11430 esac 11431 done 11432 ;; 11433 esac 11434 11435 exp_sym_flag='-bexport' 11436 no_entry_flag='-bnoentry' 11437 fi 11438 11439 # When large executables or shared objects are built, AIX ld can 11440 # have problems creating the table of contents. If linking a library 11441 # or program results in "error TOC overflow" add -mminimal-toc to 11442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11444 11445 archive_cmds_CXX='' 11446 hardcode_direct_CXX=yes 11447 hardcode_libdir_separator_CXX=':' 11448 link_all_deplibs_CXX=yes 11449 11450 if test "$GXX" = yes; then 11451 case $host_os in aix4.[012]|aix4.[012].*) 11452 # We only want to do this on AIX 4.2 and lower, the check 11453 # below for broken collect2 doesn't work under 4.3+ 11454 collect2name=`${CC} -print-prog-name=collect2` 11455 if test -f "$collect2name" && \ 11456 strings "$collect2name" | grep resolve_lib_name >/dev/null 11457 then 11458 # We have reworked collect2 11459 hardcode_direct_CXX=yes 11460 else 11461 # We have old collect2 11462 hardcode_direct_CXX=unsupported 11463 # It fails to find uninstalled libraries when the uninstalled 11464 # path is not listed in the libpath. Setting hardcode_minus_L 11465 # to unsupported forces relinking 11466 hardcode_minus_L_CXX=yes 11467 hardcode_libdir_flag_spec_CXX='-L$libdir' 11468 hardcode_libdir_separator_CXX= 11469 fi 11470 ;; 11471 esac 11472 shared_flag='-shared' 11473 if test "$aix_use_runtimelinking" = yes; then 11474 shared_flag="$shared_flag "'${wl}-G' 11475 fi 11476 else 11477 # not using gcc 11478 if test "$host_cpu" = ia64; then 11479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11480 # chokes on -Wl,-G. The following line is correct: 11481 shared_flag='-G' 11482 else 11483 if test "$aix_use_runtimelinking" = yes; then 11484 shared_flag='${wl}-G' 11485 else 11486 shared_flag='${wl}-bM:SRE' 11487 fi 11488 fi 11489 fi 11490 11491 # It seems that -bexpall does not export symbols beginning with 11492 # underscore (_), so it is better to generate a list of symbols to export. 11493 always_export_symbols_CXX=yes 11494 if test "$aix_use_runtimelinking" = yes; then 11495 # Warning - without using the other runtime loading flags (-brtl), 11496 # -berok will link without error, but may produce a broken library. 11497 allow_undefined_flag_CXX='-berok' 11498 # Determine the default libpath from the value encoded in an empty executable. 11499 cat >conftest.$ac_ext <<_ACEOF 11500/* confdefs.h. */ 11501_ACEOF 11502cat confdefs.h >>conftest.$ac_ext 11503cat >>conftest.$ac_ext <<_ACEOF 11504/* end confdefs.h. */ 11505 11506int 11507main () 11508{ 11509 11510 ; 11511 return 0; 11512} 11513_ACEOF 11514rm -f conftest.$ac_objext conftest$ac_exeext 11515if { (ac_try="$ac_link" 11516case "(($ac_try" in 11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11518 *) ac_try_echo=$ac_try;; 11519esac 11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11521 (eval "$ac_link") 2>conftest.er1 11522 ac_status=$? 11523 grep -v '^ *+' conftest.er1 >conftest.err 11524 rm -f conftest.er1 11525 cat conftest.err >&5 11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11527 (exit $ac_status); } && 11528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11529 { (case "(($ac_try" in 11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11531 *) ac_try_echo=$ac_try;; 11532esac 11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11534 (eval "$ac_try") 2>&5 11535 ac_status=$? 11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11537 (exit $ac_status); }; } && 11538 { ac_try='test -s conftest$ac_exeext' 11539 { (case "(($ac_try" in 11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11541 *) ac_try_echo=$ac_try;; 11542esac 11543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11544 (eval "$ac_try") 2>&5 11545 ac_status=$? 11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11547 (exit $ac_status); }; }; then 11548 11549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11550}'` 11551# Check for a 64-bit object if we didn't find anything. 11552if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11553}'`; fi 11554else 11555 echo "$as_me: failed program was:" >&5 11556sed 's/^/| /' conftest.$ac_ext >&5 11557 11558 11559fi 11560 11561rm -f core conftest.err conftest.$ac_objext \ 11562 conftest$ac_exeext conftest.$ac_ext 11563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11564 11565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11566 11567 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" 11568 else 11569 if test "$host_cpu" = ia64; then 11570 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11571 allow_undefined_flag_CXX="-z nodefs" 11572 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" 11573 else 11574 # Determine the default libpath from the value encoded in an empty executable. 11575 cat >conftest.$ac_ext <<_ACEOF 11576/* confdefs.h. */ 11577_ACEOF 11578cat confdefs.h >>conftest.$ac_ext 11579cat >>conftest.$ac_ext <<_ACEOF 11580/* end confdefs.h. */ 11581 11582int 11583main () 11584{ 11585 11586 ; 11587 return 0; 11588} 11589_ACEOF 11590rm -f conftest.$ac_objext conftest$ac_exeext 11591if { (ac_try="$ac_link" 11592case "(($ac_try" in 11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11594 *) ac_try_echo=$ac_try;; 11595esac 11596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11597 (eval "$ac_link") 2>conftest.er1 11598 ac_status=$? 11599 grep -v '^ *+' conftest.er1 >conftest.err 11600 rm -f conftest.er1 11601 cat conftest.err >&5 11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11603 (exit $ac_status); } && 11604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11605 { (case "(($ac_try" in 11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11607 *) ac_try_echo=$ac_try;; 11608esac 11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11610 (eval "$ac_try") 2>&5 11611 ac_status=$? 11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11613 (exit $ac_status); }; } && 11614 { ac_try='test -s conftest$ac_exeext' 11615 { (case "(($ac_try" in 11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11617 *) ac_try_echo=$ac_try;; 11618esac 11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11620 (eval "$ac_try") 2>&5 11621 ac_status=$? 11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); }; }; then 11624 11625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11626}'` 11627# Check for a 64-bit object if we didn't find anything. 11628if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11629}'`; fi 11630else 11631 echo "$as_me: failed program was:" >&5 11632sed 's/^/| /' conftest.$ac_ext >&5 11633 11634 11635fi 11636 11637rm -f core conftest.err conftest.$ac_objext \ 11638 conftest$ac_exeext conftest.$ac_ext 11639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11640 11641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11642 # Warning - without using the other run time loading flags, 11643 # -berok will link without error, but may produce a broken library. 11644 no_undefined_flag_CXX=' ${wl}-bernotok' 11645 allow_undefined_flag_CXX=' ${wl}-berok' 11646 # Exported symbols can be pulled into shared objects from archives 11647 whole_archive_flag_spec_CXX='$convenience' 11648 archive_cmds_need_lc_CXX=yes 11649 # This is similar to how AIX traditionally builds its shared libraries. 11650 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' 11651 fi 11652 fi 11653 ;; 11654 11655 beos*) 11656 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11657 allow_undefined_flag_CXX=unsupported 11658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11659 # support --undefined. This deserves some investigation. FIXME 11660 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11661 else 11662 ld_shlibs_CXX=no 11663 fi 11664 ;; 11665 11666 chorus*) 11667 case $cc_basename in 11668 *) 11669 # FIXME: insert proper C++ library support 11670 ld_shlibs_CXX=no 11671 ;; 11672 esac 11673 ;; 11674 11675 cygwin* | mingw* | pw32*) 11676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11677 # as there is no search path for DLLs. 11678 hardcode_libdir_flag_spec_CXX='-L$libdir' 11679 allow_undefined_flag_CXX=unsupported 11680 always_export_symbols_CXX=no 11681 enable_shared_with_static_runtimes_CXX=yes 11682 11683 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11684 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' 11685 # If the export-symbols file already is a .def file (1st line 11686 # is EXPORTS), use it as is; otherwise, prepend... 11687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11688 cp $export_symbols $output_objdir/$soname.def; 11689 else 11690 echo EXPORTS > $output_objdir/$soname.def; 11691 cat $export_symbols >> $output_objdir/$soname.def; 11692 fi~ 11693 $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' 11694 else 11695 ld_shlibs_CXX=no 11696 fi 11697 ;; 11698 darwin* | rhapsody*) 11699 case $host_os in 11700 rhapsody* | darwin1.[012]) 11701 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11702 ;; 11703 *) # Darwin 1.3 on 11704 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11705 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11706 else 11707 case ${MACOSX_DEPLOYMENT_TARGET} in 11708 10.[012]) 11709 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11710 ;; 11711 10.*) 11712 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11713 ;; 11714 esac 11715 fi 11716 ;; 11717 esac 11718 archive_cmds_need_lc_CXX=no 11719 hardcode_direct_CXX=no 11720 hardcode_automatic_CXX=yes 11721 hardcode_shlibpath_var_CXX=unsupported 11722 whole_archive_flag_spec_CXX='' 11723 link_all_deplibs_CXX=yes 11724 11725 if test "$GXX" = yes ; then 11726 lt_int_apple_cc_single_mod=no 11727 output_verbose_link_cmd='echo' 11728 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11729 lt_int_apple_cc_single_mod=yes 11730 fi 11731 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11732 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11733 else 11734 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' 11735 fi 11736 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11738 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11739 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}' 11740 else 11741 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}' 11742 fi 11743 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}' 11744 else 11745 case $cc_basename in 11746 xlc*) 11747 output_verbose_link_cmd='echo' 11748 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11749 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11751 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11752 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}' 11753 ;; 11754 *) 11755 ld_shlibs_CXX=no 11756 ;; 11757 esac 11758 fi 11759 ;; 11760 11761 dgux*) 11762 case $cc_basename in 11763 ec++*) 11764 # FIXME: insert proper C++ library support 11765 ld_shlibs_CXX=no 11766 ;; 11767 ghcx*) 11768 # Green Hills C++ Compiler 11769 # FIXME: insert proper C++ library support 11770 ld_shlibs_CXX=no 11771 ;; 11772 *) 11773 # FIXME: insert proper C++ library support 11774 ld_shlibs_CXX=no 11775 ;; 11776 esac 11777 ;; 11778 freebsd[12]*) 11779 # C++ shared libraries reported to be fairly broken before switch to ELF 11780 ld_shlibs_CXX=no 11781 ;; 11782 freebsd-elf*) 11783 archive_cmds_need_lc_CXX=no 11784 ;; 11785 freebsd* | kfreebsd*-gnu | dragonfly*) 11786 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11787 # conventions 11788 ld_shlibs_CXX=yes 11789 ;; 11790 gnu*) 11791 ;; 11792 hpux9*) 11793 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11794 hardcode_libdir_separator_CXX=: 11795 export_dynamic_flag_spec_CXX='${wl}-E' 11796 hardcode_direct_CXX=yes 11797 hardcode_minus_L_CXX=yes # Not in the search PATH, 11798 # but as the default 11799 # location of the library. 11800 11801 case $cc_basename in 11802 CC*) 11803 # FIXME: insert proper C++ library support 11804 ld_shlibs_CXX=no 11805 ;; 11806 aCC*) 11807 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 -f $output_objdir/$soname $lib' 11808 # Commands to make compiler produce verbose output that lists 11809 # what "hidden" libraries, object files and flags are used when 11810 # linking a shared library. 11811 # 11812 # There doesn't appear to be a way to prevent this compiler from 11813 # explicitly linking system object files so we need to strip them 11814 # from the output so that they don't get included in the library 11815 # dependencies. 11816 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' 11817 ;; 11818 *) 11819 if test "$GXX" = yes; then 11820 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 -f $output_objdir/$soname $lib' 11821 else 11822 # FIXME: insert proper C++ library support 11823 ld_shlibs_CXX=no 11824 fi 11825 ;; 11826 esac 11827 ;; 11828 hpux10*|hpux11*) 11829 if test $with_gnu_ld = no; then 11830 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11831 hardcode_libdir_separator_CXX=: 11832 11833 case $host_cpu in 11834 hppa*64*|ia64*) 11835 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11836 ;; 11837 *) 11838 export_dynamic_flag_spec_CXX='${wl}-E' 11839 ;; 11840 esac 11841 fi 11842 case $host_cpu in 11843 hppa*64*|ia64*) 11844 hardcode_direct_CXX=no 11845 hardcode_shlibpath_var_CXX=no 11846 ;; 11847 *) 11848 hardcode_direct_CXX=yes 11849 hardcode_minus_L_CXX=yes # Not in the search PATH, 11850 # but as the default 11851 # location of the library. 11852 ;; 11853 esac 11854 11855 case $cc_basename in 11856 CC*) 11857 # FIXME: insert proper C++ library support 11858 ld_shlibs_CXX=no 11859 ;; 11860 aCC*) 11861 case $host_cpu in 11862 hppa*64*) 11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11864 ;; 11865 ia64*) 11866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11867 ;; 11868 *) 11869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11870 ;; 11871 esac 11872 # Commands to make compiler produce verbose output that lists 11873 # what "hidden" libraries, object files and flags are used when 11874 # linking a shared library. 11875 # 11876 # There doesn't appear to be a way to prevent this compiler from 11877 # explicitly linking system object files so we need to strip them 11878 # from the output so that they don't get included in the library 11879 # dependencies. 11880 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' 11881 ;; 11882 *) 11883 if test "$GXX" = yes; then 11884 if test $with_gnu_ld = no; then 11885 case $host_cpu in 11886 hppa*64*) 11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11888 ;; 11889 ia64*) 11890 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11891 ;; 11892 *) 11893 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' 11894 ;; 11895 esac 11896 fi 11897 else 11898 # FIXME: insert proper C++ library support 11899 ld_shlibs_CXX=no 11900 fi 11901 ;; 11902 esac 11903 ;; 11904 interix3*) 11905 hardcode_direct_CXX=no 11906 hardcode_shlibpath_var_CXX=no 11907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11908 export_dynamic_flag_spec_CXX='${wl}-E' 11909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11910 # Instead, shared libraries are loaded at an image base (0x10000000 by 11911 # default) and relocated if they conflict, which is a slow very memory 11912 # consuming and fragmenting process. To avoid this, we pick a random, 11913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11914 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11915 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' 11916 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' 11917 ;; 11918 irix5* | irix6*) 11919 case $cc_basename in 11920 CC*) 11921 # SGI C++ 11922 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' 11923 11924 # Archives containing C++ object files must be created using 11925 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11926 # necessary to make sure instantiated templates are included 11927 # in the archive. 11928 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11929 ;; 11930 *) 11931 if test "$GXX" = yes; then 11932 if test "$with_gnu_ld" = no; then 11933 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' 11934 else 11935 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' 11936 fi 11937 fi 11938 link_all_deplibs_CXX=yes 11939 ;; 11940 esac 11941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11942 hardcode_libdir_separator_CXX=: 11943 ;; 11944 linux*) 11945 case $cc_basename in 11946 KCC*) 11947 # Kuck and Associates, Inc. (KAI) C++ Compiler 11948 11949 # KCC will only create a shared library if the output file 11950 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11951 # to its proper name (with version) after linking. 11952 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 -f \$templib $lib' 11953 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 -f \$templib $lib' 11954 # Commands to make compiler produce verbose output that lists 11955 # what "hidden" libraries, object files and flags are used when 11956 # linking a shared library. 11957 # 11958 # There doesn't appear to be a way to prevent this compiler from 11959 # explicitly linking system object files so we need to strip them 11960 # from the output so that they don't get included in the library 11961 # dependencies. 11962 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' 11963 11964 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11965 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11966 11967 # Archives containing C++ object files must be created using 11968 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11969 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11970 ;; 11971 icpc*) 11972 # Intel C++ 11973 with_gnu_ld=yes 11974 # version 8.0 and above of icpc choke on multiply defined symbols 11975 # if we add $predep_objects and $postdep_objects, however 7.1 and 11976 # earlier do not add the objects themselves. 11977 case `$CC -V 2>&1` in 11978 *"Version 7."*) 11979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11980 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' 11981 ;; 11982 *) # Version 8.0 or newer 11983 tmp_idyn= 11984 case $host_cpu in 11985 ia64*) tmp_idyn=' -i_dynamic';; 11986 esac 11987 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11988 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' 11989 ;; 11990 esac 11991 archive_cmds_need_lc_CXX=no 11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11993 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11994 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11995 ;; 11996 pgCC*) 11997 # Portland Group C++ compiler 11998 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11999 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' 12000 12001 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12003 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' 12004 ;; 12005 cxx*) 12006 # Compaq C++ 12007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12008 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' 12009 12010 runpath_var=LD_RUN_PATH 12011 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12012 hardcode_libdir_separator_CXX=: 12013 12014 # Commands to make compiler produce verbose output that lists 12015 # what "hidden" libraries, object files and flags are used when 12016 # linking a shared library. 12017 # 12018 # There doesn't appear to be a way to prevent this compiler from 12019 # explicitly linking system object files so we need to strip them 12020 # from the output so that they don't get included in the library 12021 # dependencies. 12022 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' 12023 ;; 12024 esac 12025 ;; 12026 lynxos*) 12027 # FIXME: insert proper C++ library support 12028 ld_shlibs_CXX=no 12029 ;; 12030 m88k*) 12031 # FIXME: insert proper C++ library support 12032 ld_shlibs_CXX=no 12033 ;; 12034 mvs*) 12035 case $cc_basename in 12036 cxx*) 12037 # FIXME: insert proper C++ library support 12038 ld_shlibs_CXX=no 12039 ;; 12040 *) 12041 # FIXME: insert proper C++ library support 12042 ld_shlibs_CXX=no 12043 ;; 12044 esac 12045 ;; 12046 netbsd*) 12047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12048 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12049 wlarc= 12050 hardcode_libdir_flag_spec_CXX='-R$libdir' 12051 hardcode_direct_CXX=yes 12052 hardcode_shlibpath_var_CXX=no 12053 fi 12054 # Workaround some broken pre-1.5 toolchains 12055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12056 ;; 12057 openbsd2*) 12058 # C++ shared libraries are fairly broken 12059 ld_shlibs_CXX=no 12060 ;; 12061 openbsd*) 12062 hardcode_direct_CXX=yes 12063 hardcode_shlibpath_var_CXX=no 12064 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12067 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12068 export_dynamic_flag_spec_CXX='${wl}-E' 12069 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12070 fi 12071 output_verbose_link_cmd='echo' 12072 ;; 12073 osf3*) 12074 case $cc_basename in 12075 KCC*) 12076 # Kuck and Associates, Inc. (KAI) C++ Compiler 12077 12078 # KCC will only create a shared library if the output file 12079 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12080 # to its proper name (with version) after linking. 12081 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 -f \$templib $lib' 12082 12083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12084 hardcode_libdir_separator_CXX=: 12085 12086 # Archives containing C++ object files must be created using 12087 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12088 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12089 12090 ;; 12091 RCC*) 12092 # Rational C++ 2.4.1 12093 # FIXME: insert proper C++ library support 12094 ld_shlibs_CXX=no 12095 ;; 12096 cxx*) 12097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12098 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' 12099 12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12101 hardcode_libdir_separator_CXX=: 12102 12103 # Commands to make compiler produce verbose output that lists 12104 # what "hidden" libraries, object files and flags are used when 12105 # linking a shared library. 12106 # 12107 # There doesn't appear to be a way to prevent this compiler from 12108 # explicitly linking system object files so we need to strip them 12109 # from the output so that they don't get included in the library 12110 # dependencies. 12111 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' 12112 ;; 12113 *) 12114 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12115 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12116 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' 12117 12118 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12119 hardcode_libdir_separator_CXX=: 12120 12121 # Commands to make compiler produce verbose output that lists 12122 # what "hidden" libraries, object files and flags are used when 12123 # linking a shared library. 12124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12125 12126 else 12127 # FIXME: insert proper C++ library support 12128 ld_shlibs_CXX=no 12129 fi 12130 ;; 12131 esac 12132 ;; 12133 osf4* | osf5*) 12134 case $cc_basename in 12135 KCC*) 12136 # Kuck and Associates, Inc. (KAI) C++ Compiler 12137 12138 # KCC will only create a shared library if the output file 12139 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12140 # to its proper name (with version) after linking. 12141 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 -f \$templib $lib' 12142 12143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12144 hardcode_libdir_separator_CXX=: 12145 12146 # Archives containing C++ object files must be created using 12147 # the KAI C++ compiler. 12148 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12149 ;; 12150 RCC*) 12151 # Rational C++ 2.4.1 12152 # FIXME: insert proper C++ library support 12153 ld_shlibs_CXX=no 12154 ;; 12155 cxx*) 12156 allow_undefined_flag_CXX=' -expect_unresolved \*' 12157 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' 12158 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12159 echo "-hidden">> $lib.exp~ 12160 $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~ 12161 $rm $lib.exp' 12162 12163 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12164 hardcode_libdir_separator_CXX=: 12165 12166 # Commands to make compiler produce verbose output that lists 12167 # what "hidden" libraries, object files and flags are used when 12168 # linking a shared library. 12169 # 12170 # There doesn't appear to be a way to prevent this compiler from 12171 # explicitly linking system object files so we need to strip them 12172 # from the output so that they don't get included in the library 12173 # dependencies. 12174 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' 12175 ;; 12176 *) 12177 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12178 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12179 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' 12180 12181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12182 hardcode_libdir_separator_CXX=: 12183 12184 # Commands to make compiler produce verbose output that lists 12185 # what "hidden" libraries, object files and flags are used when 12186 # linking a shared library. 12187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12188 12189 else 12190 # FIXME: insert proper C++ library support 12191 ld_shlibs_CXX=no 12192 fi 12193 ;; 12194 esac 12195 ;; 12196 psos*) 12197 # FIXME: insert proper C++ library support 12198 ld_shlibs_CXX=no 12199 ;; 12200 sunos4*) 12201 case $cc_basename in 12202 CC*) 12203 # Sun C++ 4.x 12204 # FIXME: insert proper C++ library support 12205 ld_shlibs_CXX=no 12206 ;; 12207 lcc*) 12208 # Lucid 12209 # FIXME: insert proper C++ library support 12210 ld_shlibs_CXX=no 12211 ;; 12212 *) 12213 # FIXME: insert proper C++ library support 12214 ld_shlibs_CXX=no 12215 ;; 12216 esac 12217 ;; 12218 solaris*) 12219 case $cc_basename in 12220 CC*) 12221 # Sun C++ 4.2, 5.x and Centerline C++ 12222 archive_cmds_need_lc_CXX=yes 12223 no_undefined_flag_CXX=' -zdefs' 12224 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12225 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12226 $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' 12227 12228 hardcode_libdir_flag_spec_CXX='-R$libdir' 12229 hardcode_shlibpath_var_CXX=no 12230 case $host_os in 12231 solaris2.[0-5] | solaris2.[0-5].*) ;; 12232 *) 12233 # The C++ compiler is used as linker so we must use $wl 12234 # flag to pass the commands to the underlying system 12235 # linker. We must also pass each convience library through 12236 # to the system linker between allextract/defaultextract. 12237 # The C++ compiler will combine linker options so we 12238 # cannot just pass the convience library names through 12239 # without $wl. 12240 # Supported since Solaris 2.6 (maybe 2.5.1?) 12241 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12242 ;; 12243 esac 12244 link_all_deplibs_CXX=yes 12245 12246 output_verbose_link_cmd='echo' 12247 12248 # Archives containing C++ object files must be created using 12249 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12250 # necessary to make sure instantiated templates are included 12251 # in the archive. 12252 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12253 ;; 12254 gcx*) 12255 # Green Hills C++ Compiler 12256 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12257 12258 # The C++ compiler must be used to create the archive. 12259 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12260 ;; 12261 *) 12262 # GNU C++ compiler with Solaris linker 12263 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12264 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12265 if $CC --version | grep -v '^2\.7' > /dev/null; then 12266 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12267 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12268 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12269 12270 # Commands to make compiler produce verbose output that lists 12271 # what "hidden" libraries, object files and flags are used when 12272 # linking a shared library. 12273 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12274 else 12275 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12276 # platform. 12277 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12278 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12279 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12280 12281 # Commands to make compiler produce verbose output that lists 12282 # what "hidden" libraries, object files and flags are used when 12283 # linking a shared library. 12284 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12285 fi 12286 12287 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12288 fi 12289 ;; 12290 esac 12291 ;; 12292 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12293 no_undefined_flag_CXX='${wl}-z,text' 12294 archive_cmds_need_lc_CXX=no 12295 hardcode_shlibpath_var_CXX=no 12296 runpath_var='LD_RUN_PATH' 12297 12298 case $cc_basename in 12299 CC*) 12300 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12301 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12302 ;; 12303 *) 12304 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12305 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12306 ;; 12307 esac 12308 ;; 12309 sysv5* | sco3.2v5* | sco5v6*) 12310 # Note: We can NOT use -z defs as we might desire, because we do not 12311 # link with -lc, and that would cause any symbols used from libc to 12312 # always be unresolved, which means just about no library would 12313 # ever link correctly. If we're not using GNU ld we use -z text 12314 # though, which does catch some bad symbols but isn't as heavy-handed 12315 # as -z defs. 12316 # For security reasons, it is highly recommended that you always 12317 # use absolute paths for naming shared libraries, and exclude the 12318 # DT_RUNPATH tag from executables and libraries. But doing so 12319 # requires that you compile everything twice, which is a pain. 12320 # So that behaviour is only enabled if SCOABSPATH is set to a 12321 # non-empty value in the environment. Most likely only useful for 12322 # creating official distributions of packages. 12323 # This is a hack until libtool officially supports absolute path 12324 # names for shared libraries. 12325 no_undefined_flag_CXX='${wl}-z,text' 12326 allow_undefined_flag_CXX='${wl}-z,nodefs' 12327 archive_cmds_need_lc_CXX=no 12328 hardcode_shlibpath_var_CXX=no 12329 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12330 hardcode_libdir_separator_CXX=':' 12331 link_all_deplibs_CXX=yes 12332 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12333 runpath_var='LD_RUN_PATH' 12334 12335 case $cc_basename in 12336 CC*) 12337 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12338 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12339 ;; 12340 *) 12341 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12342 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12343 ;; 12344 esac 12345 ;; 12346 tandem*) 12347 case $cc_basename in 12348 NCC*) 12349 # NonStop-UX NCC 3.20 12350 # FIXME: insert proper C++ library support 12351 ld_shlibs_CXX=no 12352 ;; 12353 *) 12354 # FIXME: insert proper C++ library support 12355 ld_shlibs_CXX=no 12356 ;; 12357 esac 12358 ;; 12359 vxworks*) 12360 # FIXME: insert proper C++ library support 12361 ld_shlibs_CXX=no 12362 ;; 12363 *) 12364 # FIXME: insert proper C++ library support 12365 ld_shlibs_CXX=no 12366 ;; 12367esac 12368{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12369echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12370test "$ld_shlibs_CXX" = no && can_build_shared=no 12371 12372GCC_CXX="$GXX" 12373LD_CXX="$LD" 12374 12375 12376cat > conftest.$ac_ext <<EOF 12377class Foo 12378{ 12379public: 12380 Foo (void) { a = 0; } 12381private: 12382 int a; 12383}; 12384EOF 12385 12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12387 (eval $ac_compile) 2>&5 12388 ac_status=$? 12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12390 (exit $ac_status); }; then 12391 # Parse the compiler output and extract the necessary 12392 # objects, libraries and library flags. 12393 12394 # Sentinel used to keep track of whether or not we are before 12395 # the conftest object file. 12396 pre_test_object_deps_done=no 12397 12398 # The `*' in the case matches for architectures that use `case' in 12399 # $output_verbose_cmd can trigger glob expansion during the loop 12400 # eval without this substitution. 12401 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12402 12403 for p in `eval $output_verbose_link_cmd`; do 12404 case $p in 12405 12406 -L* | -R* | -l*) 12407 # Some compilers place space between "-{L,R}" and the path. 12408 # Remove the space. 12409 if test $p = "-L" \ 12410 || test $p = "-R"; then 12411 prev=$p 12412 continue 12413 else 12414 prev= 12415 fi 12416 12417 if test "$pre_test_object_deps_done" = no; then 12418 case $p in 12419 -L* | -R*) 12420 # Internal compiler library paths should come after those 12421 # provided the user. The postdeps already come after the 12422 # user supplied libs so there is no need to process them. 12423 if test -z "$compiler_lib_search_path_CXX"; then 12424 compiler_lib_search_path_CXX="${prev}${p}" 12425 else 12426 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12427 fi 12428 ;; 12429 # The "-l" case would never come before the object being 12430 # linked, so don't bother handling this case. 12431 esac 12432 else 12433 if test -z "$postdeps_CXX"; then 12434 postdeps_CXX="${prev}${p}" 12435 else 12436 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12437 fi 12438 fi 12439 ;; 12440 12441 *.$objext) 12442 # This assumes that the test object file only shows up 12443 # once in the compiler output. 12444 if test "$p" = "conftest.$objext"; then 12445 pre_test_object_deps_done=yes 12446 continue 12447 fi 12448 12449 if test "$pre_test_object_deps_done" = no; then 12450 if test -z "$predep_objects_CXX"; then 12451 predep_objects_CXX="$p" 12452 else 12453 predep_objects_CXX="$predep_objects_CXX $p" 12454 fi 12455 else 12456 if test -z "$postdep_objects_CXX"; then 12457 postdep_objects_CXX="$p" 12458 else 12459 postdep_objects_CXX="$postdep_objects_CXX $p" 12460 fi 12461 fi 12462 ;; 12463 12464 *) ;; # Ignore the rest. 12465 12466 esac 12467 done 12468 12469 # Clean up. 12470 rm -f a.out a.exe 12471else 12472 echo "libtool.m4: error: problem compiling CXX test program" 12473fi 12474 12475$rm -f confest.$objext 12476 12477# PORTME: override above test on systems where it is broken 12478case $host_os in 12479interix3*) 12480 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12481 # hack all around it, let's just trust "g++" to DTRT. 12482 predep_objects_CXX= 12483 postdep_objects_CXX= 12484 postdeps_CXX= 12485 ;; 12486 12487solaris*) 12488 case $cc_basename in 12489 CC*) 12490 # Adding this requires a known-good setup of shared libraries for 12491 # Sun compiler versions before 5.6, else PIC objects from an old 12492 # archive will be linked into the output, leading to subtle bugs. 12493 postdeps_CXX='-lCstd -lCrun' 12494 ;; 12495 esac 12496 ;; 12497esac 12498 12499 12500case " $postdeps_CXX " in 12501*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12502esac 12503 12504lt_prog_compiler_wl_CXX= 12505lt_prog_compiler_pic_CXX= 12506lt_prog_compiler_static_CXX= 12507 12508{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12510 12511 # C++ specific cases for pic, static, wl, etc. 12512 if test "$GXX" = yes; then 12513 lt_prog_compiler_wl_CXX='-Wl,' 12514 lt_prog_compiler_static_CXX='-static' 12515 12516 case $host_os in 12517 aix*) 12518 # All AIX code is PIC. 12519 if test "$host_cpu" = ia64; then 12520 # AIX 5 now supports IA64 processor 12521 lt_prog_compiler_static_CXX='-Bstatic' 12522 fi 12523 ;; 12524 amigaos*) 12525 # FIXME: we need at least 68020 code to build shared libraries, but 12526 # adding the `-m68020' flag to GCC prevents building anything better, 12527 # like `-m68040'. 12528 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12529 ;; 12530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12531 # PIC is the default for these OSes. 12532 ;; 12533 mingw* | os2* | pw32*) 12534 # This hack is so that the source file can tell whether it is being 12535 # built for inclusion in a dll (and should export symbols for example). 12536 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12537 ;; 12538 darwin* | rhapsody*) 12539 # PIC is the default on this platform 12540 # Common symbols not allowed in MH_DYLIB files 12541 lt_prog_compiler_pic_CXX='-fno-common' 12542 ;; 12543 *djgpp*) 12544 # DJGPP does not support shared libraries at all 12545 lt_prog_compiler_pic_CXX= 12546 ;; 12547 interix3*) 12548 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12549 # Instead, we relocate shared libraries at runtime. 12550 ;; 12551 sysv4*MP*) 12552 if test -d /usr/nec; then 12553 lt_prog_compiler_pic_CXX=-Kconform_pic 12554 fi 12555 ;; 12556 hpux*) 12557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12558 # not for PA HP-UX. 12559 case $host_cpu in 12560 hppa*64*|ia64*) 12561 ;; 12562 *) 12563 lt_prog_compiler_pic_CXX='-fPIC' 12564 ;; 12565 esac 12566 ;; 12567 *) 12568 lt_prog_compiler_pic_CXX='-fPIC' 12569 ;; 12570 esac 12571 else 12572 case $host_os in 12573 aix4* | aix5*) 12574 # All AIX code is PIC. 12575 if test "$host_cpu" = ia64; then 12576 # AIX 5 now supports IA64 processor 12577 lt_prog_compiler_static_CXX='-Bstatic' 12578 else 12579 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12580 fi 12581 ;; 12582 chorus*) 12583 case $cc_basename in 12584 cxch68*) 12585 # Green Hills C++ Compiler 12586 # _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" 12587 ;; 12588 esac 12589 ;; 12590 darwin*) 12591 # PIC is the default on this platform 12592 # Common symbols not allowed in MH_DYLIB files 12593 case $cc_basename in 12594 xlc*) 12595 lt_prog_compiler_pic_CXX='-qnocommon' 12596 lt_prog_compiler_wl_CXX='-Wl,' 12597 ;; 12598 esac 12599 ;; 12600 dgux*) 12601 case $cc_basename in 12602 ec++*) 12603 lt_prog_compiler_pic_CXX='-KPIC' 12604 ;; 12605 ghcx*) 12606 # Green Hills C++ Compiler 12607 lt_prog_compiler_pic_CXX='-pic' 12608 ;; 12609 *) 12610 ;; 12611 esac 12612 ;; 12613 freebsd* | kfreebsd*-gnu | dragonfly*) 12614 # FreeBSD uses GNU C++ 12615 ;; 12616 hpux9* | hpux10* | hpux11*) 12617 case $cc_basename in 12618 CC*) 12619 lt_prog_compiler_wl_CXX='-Wl,' 12620 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12621 if test "$host_cpu" != ia64; then 12622 lt_prog_compiler_pic_CXX='+Z' 12623 fi 12624 ;; 12625 aCC*) 12626 lt_prog_compiler_wl_CXX='-Wl,' 12627 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12628 case $host_cpu in 12629 hppa*64*|ia64*) 12630 # +Z the default 12631 ;; 12632 *) 12633 lt_prog_compiler_pic_CXX='+Z' 12634 ;; 12635 esac 12636 ;; 12637 *) 12638 ;; 12639 esac 12640 ;; 12641 interix*) 12642 # This is c89, which is MS Visual C++ (no shared libs) 12643 # Anyone wants to do a port? 12644 ;; 12645 irix5* | irix6* | nonstopux*) 12646 case $cc_basename in 12647 CC*) 12648 lt_prog_compiler_wl_CXX='-Wl,' 12649 lt_prog_compiler_static_CXX='-non_shared' 12650 # CC pic flag -KPIC is the default. 12651 ;; 12652 *) 12653 ;; 12654 esac 12655 ;; 12656 linux*) 12657 case $cc_basename in 12658 KCC*) 12659 # KAI C++ Compiler 12660 lt_prog_compiler_wl_CXX='--backend -Wl,' 12661 lt_prog_compiler_pic_CXX='-fPIC' 12662 ;; 12663 icpc* | ecpc*) 12664 # Intel C++ 12665 lt_prog_compiler_wl_CXX='-Wl,' 12666 lt_prog_compiler_pic_CXX='-KPIC' 12667 lt_prog_compiler_static_CXX='-static' 12668 ;; 12669 pgCC*) 12670 # Portland Group C++ compiler. 12671 lt_prog_compiler_wl_CXX='-Wl,' 12672 lt_prog_compiler_pic_CXX='-fpic' 12673 lt_prog_compiler_static_CXX='-Bstatic' 12674 ;; 12675 cxx*) 12676 # Compaq C++ 12677 # Make sure the PIC flag is empty. It appears that all Alpha 12678 # Linux and Compaq Tru64 Unix objects are PIC. 12679 lt_prog_compiler_pic_CXX= 12680 lt_prog_compiler_static_CXX='-non_shared' 12681 ;; 12682 *) 12683 ;; 12684 esac 12685 ;; 12686 lynxos*) 12687 ;; 12688 m88k*) 12689 ;; 12690 mvs*) 12691 case $cc_basename in 12692 cxx*) 12693 lt_prog_compiler_pic_CXX='-W c,exportall' 12694 ;; 12695 *) 12696 ;; 12697 esac 12698 ;; 12699 netbsd*) 12700 ;; 12701 osf3* | osf4* | osf5*) 12702 case $cc_basename in 12703 KCC*) 12704 lt_prog_compiler_wl_CXX='--backend -Wl,' 12705 ;; 12706 RCC*) 12707 # Rational C++ 2.4.1 12708 lt_prog_compiler_pic_CXX='-pic' 12709 ;; 12710 cxx*) 12711 # Digital/Compaq C++ 12712 lt_prog_compiler_wl_CXX='-Wl,' 12713 # Make sure the PIC flag is empty. It appears that all Alpha 12714 # Linux and Compaq Tru64 Unix objects are PIC. 12715 lt_prog_compiler_pic_CXX= 12716 lt_prog_compiler_static_CXX='-non_shared' 12717 ;; 12718 *) 12719 ;; 12720 esac 12721 ;; 12722 psos*) 12723 ;; 12724 solaris*) 12725 case $cc_basename in 12726 CC*) 12727 # Sun C++ 4.2, 5.x and Centerline C++ 12728 lt_prog_compiler_pic_CXX='-KPIC' 12729 lt_prog_compiler_static_CXX='-Bstatic' 12730 lt_prog_compiler_wl_CXX='-Qoption ld ' 12731 ;; 12732 gcx*) 12733 # Green Hills C++ Compiler 12734 lt_prog_compiler_pic_CXX='-PIC' 12735 ;; 12736 *) 12737 ;; 12738 esac 12739 ;; 12740 sunos4*) 12741 case $cc_basename in 12742 CC*) 12743 # Sun C++ 4.x 12744 lt_prog_compiler_pic_CXX='-pic' 12745 lt_prog_compiler_static_CXX='-Bstatic' 12746 ;; 12747 lcc*) 12748 # Lucid 12749 lt_prog_compiler_pic_CXX='-pic' 12750 ;; 12751 *) 12752 ;; 12753 esac 12754 ;; 12755 tandem*) 12756 case $cc_basename in 12757 NCC*) 12758 # NonStop-UX NCC 3.20 12759 lt_prog_compiler_pic_CXX='-KPIC' 12760 ;; 12761 *) 12762 ;; 12763 esac 12764 ;; 12765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12766 case $cc_basename in 12767 CC*) 12768 lt_prog_compiler_wl_CXX='-Wl,' 12769 lt_prog_compiler_pic_CXX='-KPIC' 12770 lt_prog_compiler_static_CXX='-Bstatic' 12771 ;; 12772 esac 12773 ;; 12774 vxworks*) 12775 ;; 12776 *) 12777 lt_prog_compiler_can_build_shared_CXX=no 12778 ;; 12779 esac 12780 fi 12781 12782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12783echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12784 12785# 12786# Check to make sure the PIC flag actually works. 12787# 12788if test -n "$lt_prog_compiler_pic_CXX"; then 12789 12790{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12791echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12792if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12793 echo $ECHO_N "(cached) $ECHO_C" >&6 12794else 12795 lt_prog_compiler_pic_works_CXX=no 12796 ac_outfile=conftest.$ac_objext 12797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12798 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12799 # Insert the option either (1) after the last *FLAGS variable, or 12800 # (2) before a word containing "conftest.", or (3) at the end. 12801 # Note that $ac_compile itself does not contain backslashes and begins 12802 # with a dollar sign (not a hyphen), so the echo should work correctly. 12803 # The option is referenced via a variable to avoid confusing sed. 12804 lt_compile=`echo "$ac_compile" | $SED \ 12805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12807 -e 's:$: $lt_compiler_flag:'` 12808 (eval echo "\"\$as_me:12808: $lt_compile\"" >&5) 12809 (eval "$lt_compile" 2>conftest.err) 12810 ac_status=$? 12811 cat conftest.err >&5 12812 echo "$as_me:12812: \$? = $ac_status" >&5 12813 if (exit $ac_status) && test -s "$ac_outfile"; then 12814 # The compiler can only warn and ignore the option if not recognized 12815 # So say no if there are warnings other than the usual output. 12816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12819 lt_prog_compiler_pic_works_CXX=yes 12820 fi 12821 fi 12822 $rm conftest* 12823 12824fi 12825{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12826echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12827 12828if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12829 case $lt_prog_compiler_pic_CXX in 12830 "" | " "*) ;; 12831 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12832 esac 12833else 12834 lt_prog_compiler_pic_CXX= 12835 lt_prog_compiler_can_build_shared_CXX=no 12836fi 12837 12838fi 12839case $host_os in 12840 # For platforms which do not support PIC, -DPIC is meaningless: 12841 *djgpp*) 12842 lt_prog_compiler_pic_CXX= 12843 ;; 12844 *) 12845 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12846 ;; 12847esac 12848 12849# 12850# Check to make sure the static flag actually works. 12851# 12852wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12853{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12854echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12855if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12856 echo $ECHO_N "(cached) $ECHO_C" >&6 12857else 12858 lt_prog_compiler_static_works_CXX=no 12859 save_LDFLAGS="$LDFLAGS" 12860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12861 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12863 # The linker can only warn and ignore the option if not recognized 12864 # So say no if there are warnings 12865 if test -s conftest.err; then 12866 # Append any errors to the config.log. 12867 cat conftest.err 1>&5 12868 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12870 if diff conftest.exp conftest.er2 >/dev/null; then 12871 lt_prog_compiler_static_works_CXX=yes 12872 fi 12873 else 12874 lt_prog_compiler_static_works_CXX=yes 12875 fi 12876 fi 12877 $rm conftest* 12878 LDFLAGS="$save_LDFLAGS" 12879 12880fi 12881{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12882echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12883 12884if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12885 : 12886else 12887 lt_prog_compiler_static_CXX= 12888fi 12889 12890 12891{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12892echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12893if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12894 echo $ECHO_N "(cached) $ECHO_C" >&6 12895else 12896 lt_cv_prog_compiler_c_o_CXX=no 12897 $rm -r conftest 2>/dev/null 12898 mkdir conftest 12899 cd conftest 12900 mkdir out 12901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12902 12903 lt_compiler_flag="-o out/conftest2.$ac_objext" 12904 # Insert the option either (1) after the last *FLAGS variable, or 12905 # (2) before a word containing "conftest.", or (3) at the end. 12906 # Note that $ac_compile itself does not contain backslashes and begins 12907 # with a dollar sign (not a hyphen), so the echo should work correctly. 12908 lt_compile=`echo "$ac_compile" | $SED \ 12909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12911 -e 's:$: $lt_compiler_flag:'` 12912 (eval echo "\"\$as_me:12912: $lt_compile\"" >&5) 12913 (eval "$lt_compile" 2>out/conftest.err) 12914 ac_status=$? 12915 cat out/conftest.err >&5 12916 echo "$as_me:12916: \$? = $ac_status" >&5 12917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12918 then 12919 # The compiler can only warn and ignore the option if not recognized 12920 # So say no if there are warnings 12921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12924 lt_cv_prog_compiler_c_o_CXX=yes 12925 fi 12926 fi 12927 chmod u+w . 2>&5 12928 $rm conftest* 12929 # SGI C++ compiler will create directory out/ii_files/ for 12930 # template instantiation 12931 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12932 $rm out/* && rmdir out 12933 cd .. 12934 rmdir conftest 12935 $rm conftest* 12936 12937fi 12938{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12939echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12940 12941 12942hard_links="nottested" 12943if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12944 # do not overwrite the value of need_locks provided by the user 12945 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12946echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12947 hard_links=yes 12948 $rm conftest* 12949 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12950 touch conftest.a 12951 ln conftest.a conftest.b 2>&5 || hard_links=no 12952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12953 { echo "$as_me:$LINENO: result: $hard_links" >&5 12954echo "${ECHO_T}$hard_links" >&6; } 12955 if test "$hard_links" = no; then 12956 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12957echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12958 need_locks=warn 12959 fi 12960else 12961 need_locks=no 12962fi 12963 12964{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12965echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12966 12967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12968 case $host_os in 12969 aix4* | aix5*) 12970 # If we're using GNU nm, then we don't want the "-C" option. 12971 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12972 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12973 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' 12974 else 12975 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' 12976 fi 12977 ;; 12978 pw32*) 12979 export_symbols_cmds_CXX="$ltdll_cmds" 12980 ;; 12981 cygwin* | mingw*) 12982 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' 12983 ;; 12984 *) 12985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12986 ;; 12987 esac 12988 12989{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12990echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12991test "$ld_shlibs_CXX" = no && can_build_shared=no 12992 12993# 12994# Do we need to explicitly link libc? 12995# 12996case "x$archive_cmds_need_lc_CXX" in 12997x|xyes) 12998 # Assume -lc should be added 12999 archive_cmds_need_lc_CXX=yes 13000 13001 if test "$enable_shared" = yes && test "$GCC" = yes; then 13002 case $archive_cmds_CXX in 13003 *'~'*) 13004 # FIXME: we may have to deal with multi-command sequences. 13005 ;; 13006 '$CC '*) 13007 # Test whether the compiler implicitly links with -lc since on some 13008 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13009 # to ld, don't add -lc before -lgcc. 13010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13011echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13012 $rm conftest* 13013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13014 13015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13016 (eval $ac_compile) 2>&5 13017 ac_status=$? 13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13019 (exit $ac_status); } 2>conftest.err; then 13020 soname=conftest 13021 lib=conftest 13022 libobjs=conftest.$ac_objext 13023 deplibs= 13024 wl=$lt_prog_compiler_wl_CXX 13025 pic_flag=$lt_prog_compiler_pic_CXX 13026 compiler_flags=-v 13027 linker_flags=-v 13028 verstring= 13029 output_objdir=. 13030 libname=conftest 13031 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13032 allow_undefined_flag_CXX= 13033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13034 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13035 ac_status=$? 13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13037 (exit $ac_status); } 13038 then 13039 archive_cmds_need_lc_CXX=no 13040 else 13041 archive_cmds_need_lc_CXX=yes 13042 fi 13043 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13044 else 13045 cat conftest.err 1>&5 13046 fi 13047 $rm conftest* 13048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13049echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13050 ;; 13051 esac 13052 fi 13053 ;; 13054esac 13055 13056{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13057echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13058library_names_spec= 13059libname_spec='lib$name' 13060soname_spec= 13061shrext_cmds=".so" 13062postinstall_cmds= 13063postuninstall_cmds= 13064finish_cmds= 13065finish_eval= 13066shlibpath_var= 13067shlibpath_overrides_runpath=unknown 13068version_type=none 13069dynamic_linker="$host_os ld.so" 13070sys_lib_dlsearch_path_spec="/lib /usr/lib" 13071if test "$GCC" = yes; then 13072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13073 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13074 # if the path contains ";" then we assume it to be the separator 13075 # otherwise default to the standard path separator (i.e. ":") - it is 13076 # assumed that no part of a normal pathname contains ";" but that should 13077 # okay in the real world where ";" in dirpaths is itself problematic. 13078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13079 else 13080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13081 fi 13082else 13083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13084fi 13085need_lib_prefix=unknown 13086hardcode_into_libs=no 13087 13088# when you set need_version to no, make sure it does not cause -set_version 13089# flags to be left without arguments 13090need_version=unknown 13091 13092case $host_os in 13093aix3*) 13094 version_type=linux 13095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13096 shlibpath_var=LIBPATH 13097 13098 # AIX 3 has no versioning support, so we append a major version to the name. 13099 soname_spec='${libname}${release}${shared_ext}$major' 13100 ;; 13101 13102aix4* | aix5*) 13103 version_type=linux 13104 need_lib_prefix=no 13105 need_version=no 13106 hardcode_into_libs=yes 13107 if test "$host_cpu" = ia64; then 13108 # AIX 5 supports IA64 13109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13110 shlibpath_var=LD_LIBRARY_PATH 13111 else 13112 # With GCC up to 2.95.x, collect2 would create an import file 13113 # for dependence libraries. The import file would start with 13114 # the line `#! .'. This would cause the generated library to 13115 # depend on `.', always an invalid library. This was fixed in 13116 # development snapshots of GCC prior to 3.0. 13117 case $host_os in 13118 aix4 | aix4.[01] | aix4.[01].*) 13119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13120 echo ' yes ' 13121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13122 : 13123 else 13124 can_build_shared=no 13125 fi 13126 ;; 13127 esac 13128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13129 # soname into executable. Probably we can add versioning support to 13130 # collect2, so additional links can be useful in future. 13131 if test "$aix_use_runtimelinking" = yes; then 13132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13133 # instead of lib<name>.a to let people know that these are not 13134 # typical AIX shared libraries. 13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13136 else 13137 # We preserve .a as extension for shared libraries through AIX4.2 13138 # and later when we are not doing run time linking. 13139 library_names_spec='${libname}${release}.a $libname.a' 13140 soname_spec='${libname}${release}${shared_ext}$major' 13141 fi 13142 shlibpath_var=LIBPATH 13143 fi 13144 ;; 13145 13146amigaos*) 13147 library_names_spec='$libname.ixlibrary $libname.a' 13148 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13149 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' 13150 ;; 13151 13152beos*) 13153 library_names_spec='${libname}${shared_ext}' 13154 dynamic_linker="$host_os ld.so" 13155 shlibpath_var=LIBRARY_PATH 13156 ;; 13157 13158bsdi[45]*) 13159 version_type=linux 13160 need_version=no 13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13162 soname_spec='${libname}${release}${shared_ext}$major' 13163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13164 shlibpath_var=LD_LIBRARY_PATH 13165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13167 # the default ld.so.conf also contains /usr/contrib/lib and 13168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13169 # libtool to hard-code these into programs 13170 ;; 13171 13172cygwin* | mingw* | pw32*) 13173 version_type=windows 13174 shrext_cmds=".dll" 13175 need_version=no 13176 need_lib_prefix=no 13177 13178 case $GCC,$host_os in 13179 yes,cygwin* | yes,mingw* | yes,pw32*) 13180 library_names_spec='$libname.dll.a' 13181 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13182 postinstall_cmds='base_file=`basename \${file}`~ 13183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13184 dldir=$destdir/`dirname \$dlpath`~ 13185 test -d \$dldir || mkdir -p \$dldir~ 13186 $install_prog $dir/$dlname \$dldir/$dlname~ 13187 chmod a+x \$dldir/$dlname' 13188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13189 dlpath=$dir/\$dldll~ 13190 $rm \$dlpath' 13191 shlibpath_overrides_runpath=yes 13192 13193 case $host_os in 13194 cygwin*) 13195 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13198 ;; 13199 mingw*) 13200 # MinGW DLLs use traditional 'lib' prefix 13201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13204 # It is most probably a Windows format PATH printed by 13205 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13206 # path with ; separators, and with drive letters. We can handle the 13207 # drive letters (cygwin fileutils understands them), so leave them, 13208 # especially as we might pass files found there to a mingw objdump, 13209 # which wouldn't understand a cygwinified path. Ahh. 13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13211 else 13212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13213 fi 13214 ;; 13215 pw32*) 13216 # pw32 DLLs use 'pw' prefix rather than 'lib' 13217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13218 ;; 13219 esac 13220 ;; 13221 13222 linux*) 13223 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 13224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13225 supports_anon_versioning=no 13226 case `$LD -v 2>/dev/null` in 13227 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13228 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13229 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13230 *\ 2.11.*) ;; # other 2.11 versions 13231 *) supports_anon_versioning=yes ;; 13232 esac 13233 if test $supports_anon_versioning = yes; then 13234 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 13235cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13236$echo "local: *; };" >> $output_objdir/$libname.ver~ 13237 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13238 else 13239 $archive_expsym_cmds="$archive_cmds" 13240 fi 13241 else 13242 ld_shlibs=no 13243 fi 13244 ;; 13245 13246 *) 13247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13248 ;; 13249 esac 13250 dynamic_linker='Win32 ld.exe' 13251 # FIXME: first we should search . and the directory the executable is in 13252 shlibpath_var=PATH 13253 ;; 13254 13255darwin* | rhapsody*) 13256 dynamic_linker="$host_os dyld" 13257 version_type=darwin 13258 need_lib_prefix=no 13259 need_version=no 13260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13261 soname_spec='${libname}${release}${major}$shared_ext' 13262 shlibpath_overrides_runpath=yes 13263 shlibpath_var=DYLD_LIBRARY_PATH 13264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13266 if test "$GCC" = yes; then 13267 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13268 else 13269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13270 fi 13271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13272 ;; 13273 13274dgux*) 13275 version_type=linux 13276 need_lib_prefix=no 13277 need_version=no 13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13279 soname_spec='${libname}${release}${shared_ext}$major' 13280 shlibpath_var=LD_LIBRARY_PATH 13281 ;; 13282 13283freebsd1*) 13284 dynamic_linker=no 13285 ;; 13286 13287kfreebsd*-gnu) 13288 version_type=linux 13289 need_lib_prefix=no 13290 need_version=no 13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13292 soname_spec='${libname}${release}${shared_ext}$major' 13293 shlibpath_var=LD_LIBRARY_PATH 13294 shlibpath_overrides_runpath=no 13295 hardcode_into_libs=yes 13296 dynamic_linker='GNU ld.so' 13297 ;; 13298 13299freebsd* | dragonfly*) 13300 # DragonFly does not have aout. When/if they implement a new 13301 # versioning mechanism, adjust this. 13302 if test -x /usr/bin/objformat; then 13303 objformat=`/usr/bin/objformat` 13304 else 13305 case $host_os in 13306 freebsd[123]*) objformat=aout ;; 13307 *) objformat=elf ;; 13308 esac 13309 fi 13310 # Handle Gentoo/FreeBSD as it was Linux 13311 case $host_vendor in 13312 gentoo) 13313 version_type=linux ;; 13314 *) 13315 version_type=freebsd-$objformat ;; 13316 esac 13317 13318 case $version_type in 13319 freebsd-elf*) 13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13321 need_version=no 13322 need_lib_prefix=no 13323 ;; 13324 freebsd-*) 13325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13326 need_version=yes 13327 ;; 13328 linux) 13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13330 soname_spec='${libname}${release}${shared_ext}$major' 13331 need_lib_prefix=no 13332 need_version=no 13333 ;; 13334 esac 13335 shlibpath_var=LD_LIBRARY_PATH 13336 case $host_os in 13337 freebsd2*) 13338 shlibpath_overrides_runpath=yes 13339 ;; 13340 freebsd3.[01]* | freebsdelf3.[01]*) 13341 shlibpath_overrides_runpath=yes 13342 hardcode_into_libs=yes 13343 ;; 13344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13346 shlibpath_overrides_runpath=no 13347 hardcode_into_libs=yes 13348 ;; 13349 freebsd*) # from 4.6 on 13350 shlibpath_overrides_runpath=yes 13351 hardcode_into_libs=yes 13352 ;; 13353 esac 13354 ;; 13355 13356gnu*) 13357 version_type=linux 13358 need_lib_prefix=no 13359 need_version=no 13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13361 soname_spec='${libname}${release}${shared_ext}$major' 13362 shlibpath_var=LD_LIBRARY_PATH 13363 hardcode_into_libs=yes 13364 ;; 13365 13366hpux9* | hpux10* | hpux11*) 13367 # Give a soname corresponding to the major version so that dld.sl refuses to 13368 # link against other versions. 13369 version_type=sunos 13370 need_lib_prefix=no 13371 need_version=no 13372 case $host_cpu in 13373 ia64*) 13374 shrext_cmds='.so' 13375 hardcode_into_libs=yes 13376 dynamic_linker="$host_os dld.so" 13377 shlibpath_var=LD_LIBRARY_PATH 13378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13380 soname_spec='${libname}${release}${shared_ext}$major' 13381 if test "X$HPUX_IA64_MODE" = X32; then 13382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13383 else 13384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13385 fi 13386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13387 ;; 13388 hppa*64*) 13389 shrext_cmds='.sl' 13390 hardcode_into_libs=yes 13391 dynamic_linker="$host_os dld.sl" 13392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13395 soname_spec='${libname}${release}${shared_ext}$major' 13396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13398 ;; 13399 *) 13400 shrext_cmds='.sl' 13401 dynamic_linker="$host_os dld.sl" 13402 shlibpath_var=SHLIB_PATH 13403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13405 soname_spec='${libname}${release}${shared_ext}$major' 13406 ;; 13407 esac 13408 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13409 postinstall_cmds='chmod 555 $lib' 13410 ;; 13411 13412interix3*) 13413 version_type=linux 13414 need_lib_prefix=no 13415 need_version=no 13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13417 soname_spec='${libname}${release}${shared_ext}$major' 13418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13419 shlibpath_var=LD_LIBRARY_PATH 13420 shlibpath_overrides_runpath=no 13421 hardcode_into_libs=yes 13422 ;; 13423 13424irix5* | irix6* | nonstopux*) 13425 case $host_os in 13426 nonstopux*) version_type=nonstopux ;; 13427 *) 13428 if test "$lt_cv_prog_gnu_ld" = yes; then 13429 version_type=linux 13430 else 13431 version_type=irix 13432 fi ;; 13433 esac 13434 need_lib_prefix=no 13435 need_version=no 13436 soname_spec='${libname}${release}${shared_ext}$major' 13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13438 case $host_os in 13439 irix5* | nonstopux*) 13440 libsuff= shlibsuff= 13441 ;; 13442 *) 13443 case $LD in # libtool.m4 will add one of these switches to LD 13444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13445 libsuff= shlibsuff= libmagic=32-bit;; 13446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13447 libsuff=32 shlibsuff=N32 libmagic=N32;; 13448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13449 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13450 *) libsuff= shlibsuff= libmagic=never-match;; 13451 esac 13452 ;; 13453 esac 13454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13455 shlibpath_overrides_runpath=no 13456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13458 hardcode_into_libs=yes 13459 ;; 13460 13461# No shared lib support for Linux oldld, aout, or coff. 13462linux*oldld* | linux*aout* | linux*coff*) 13463 dynamic_linker=no 13464 ;; 13465 13466# This must be Linux ELF. 13467linux*) 13468 version_type=linux 13469 need_lib_prefix=no 13470 need_version=no 13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13472 soname_spec='${libname}${release}${shared_ext}$major' 13473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13474 shlibpath_var=LD_LIBRARY_PATH 13475 shlibpath_overrides_runpath=no 13476 # This implies no fast_install, which is unacceptable. 13477 # Some rework will be needed to allow for fast_install 13478 # before this can be enabled. 13479 hardcode_into_libs=yes 13480 13481 # Append ld.so.conf contents to the search path 13482 if test -f /etc/ld.so.conf; then 13483 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13485 fi 13486 13487 # We used to test for /lib/ld.so.1 and disable shared libraries on 13488 # powerpc, because MkLinux only supported shared libraries with the 13489 # GNU dynamic linker. Since this was broken with cross compilers, 13490 # most powerpc-linux boxes support dynamic linking these days and 13491 # people can always --disable-shared, the test was removed, and we 13492 # assume the GNU/Linux dynamic linker is in use. 13493 dynamic_linker='GNU/Linux ld.so' 13494 ;; 13495 13496knetbsd*-gnu) 13497 version_type=linux 13498 need_lib_prefix=no 13499 need_version=no 13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13501 soname_spec='${libname}${release}${shared_ext}$major' 13502 shlibpath_var=LD_LIBRARY_PATH 13503 shlibpath_overrides_runpath=no 13504 hardcode_into_libs=yes 13505 dynamic_linker='GNU ld.so' 13506 ;; 13507 13508netbsd*) 13509 version_type=sunos 13510 need_lib_prefix=no 13511 need_version=no 13512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13515 dynamic_linker='NetBSD (a.out) ld.so' 13516 else 13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13518 soname_spec='${libname}${release}${shared_ext}$major' 13519 dynamic_linker='NetBSD ld.elf_so' 13520 fi 13521 shlibpath_var=LD_LIBRARY_PATH 13522 shlibpath_overrides_runpath=yes 13523 hardcode_into_libs=yes 13524 ;; 13525 13526newsos6) 13527 version_type=linux 13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13529 shlibpath_var=LD_LIBRARY_PATH 13530 shlibpath_overrides_runpath=yes 13531 ;; 13532 13533nto-qnx*) 13534 version_type=linux 13535 need_lib_prefix=no 13536 need_version=no 13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13538 soname_spec='${libname}${release}${shared_ext}$major' 13539 shlibpath_var=LD_LIBRARY_PATH 13540 shlibpath_overrides_runpath=yes 13541 ;; 13542 13543openbsd*) 13544 version_type=sunos 13545 sys_lib_dlsearch_path_spec="/usr/lib" 13546 need_lib_prefix=no 13547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13548 case $host_os in 13549 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13550 *) need_version=no ;; 13551 esac 13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13554 shlibpath_var=LD_LIBRARY_PATH 13555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13556 case $host_os in 13557 openbsd2.[89] | openbsd2.[89].*) 13558 shlibpath_overrides_runpath=no 13559 ;; 13560 *) 13561 shlibpath_overrides_runpath=yes 13562 ;; 13563 esac 13564 else 13565 shlibpath_overrides_runpath=yes 13566 fi 13567 ;; 13568 13569os2*) 13570 libname_spec='$name' 13571 shrext_cmds=".dll" 13572 need_lib_prefix=no 13573 library_names_spec='$libname${shared_ext} $libname.a' 13574 dynamic_linker='OS/2 ld.exe' 13575 shlibpath_var=LIBPATH 13576 ;; 13577 13578osf3* | osf4* | osf5*) 13579 version_type=osf 13580 need_lib_prefix=no 13581 need_version=no 13582 soname_spec='${libname}${release}${shared_ext}$major' 13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13584 shlibpath_var=LD_LIBRARY_PATH 13585 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13586 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13587 ;; 13588 13589solaris*) 13590 version_type=linux 13591 need_lib_prefix=no 13592 need_version=no 13593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13594 soname_spec='${libname}${release}${shared_ext}$major' 13595 shlibpath_var=LD_LIBRARY_PATH 13596 shlibpath_overrides_runpath=yes 13597 hardcode_into_libs=yes 13598 # ldd complains unless libraries are executable 13599 postinstall_cmds='chmod +x $lib' 13600 ;; 13601 13602sunos4*) 13603 version_type=sunos 13604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13606 shlibpath_var=LD_LIBRARY_PATH 13607 shlibpath_overrides_runpath=yes 13608 if test "$with_gnu_ld" = yes; then 13609 need_lib_prefix=no 13610 fi 13611 need_version=yes 13612 ;; 13613 13614sysv4 | sysv4.3*) 13615 version_type=linux 13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13617 soname_spec='${libname}${release}${shared_ext}$major' 13618 shlibpath_var=LD_LIBRARY_PATH 13619 case $host_vendor in 13620 sni) 13621 shlibpath_overrides_runpath=no 13622 need_lib_prefix=no 13623 export_dynamic_flag_spec='${wl}-Blargedynsym' 13624 runpath_var=LD_RUN_PATH 13625 ;; 13626 siemens) 13627 need_lib_prefix=no 13628 ;; 13629 motorola) 13630 need_lib_prefix=no 13631 need_version=no 13632 shlibpath_overrides_runpath=no 13633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13634 ;; 13635 esac 13636 ;; 13637 13638sysv4*MP*) 13639 if test -d /usr/nec ;then 13640 version_type=linux 13641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13642 soname_spec='$libname${shared_ext}.$major' 13643 shlibpath_var=LD_LIBRARY_PATH 13644 fi 13645 ;; 13646 13647sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13648 version_type=freebsd-elf 13649 need_lib_prefix=no 13650 need_version=no 13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13652 soname_spec='${libname}${release}${shared_ext}$major' 13653 shlibpath_var=LD_LIBRARY_PATH 13654 hardcode_into_libs=yes 13655 if test "$with_gnu_ld" = yes; then 13656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13657 shlibpath_overrides_runpath=no 13658 else 13659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13660 shlibpath_overrides_runpath=yes 13661 case $host_os in 13662 sco3.2v5*) 13663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13664 ;; 13665 esac 13666 fi 13667 sys_lib_dlsearch_path_spec='/usr/lib' 13668 ;; 13669 13670uts4*) 13671 version_type=linux 13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13673 soname_spec='${libname}${release}${shared_ext}$major' 13674 shlibpath_var=LD_LIBRARY_PATH 13675 ;; 13676 13677*) 13678 dynamic_linker=no 13679 ;; 13680esac 13681{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13682echo "${ECHO_T}$dynamic_linker" >&6; } 13683test "$dynamic_linker" = no && can_build_shared=no 13684 13685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13686if test "$GCC" = yes; then 13687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13688fi 13689 13690{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13691echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13692hardcode_action_CXX= 13693if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13694 test -n "$runpath_var_CXX" || \ 13695 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13696 13697 # We can hardcode non-existant directories. 13698 if test "$hardcode_direct_CXX" != no && 13699 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13700 # have to relink, otherwise we might link with an installed library 13701 # when we should be linking with a yet-to-be-installed one 13702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13703 test "$hardcode_minus_L_CXX" != no; then 13704 # Linking always hardcodes the temporary library directory. 13705 hardcode_action_CXX=relink 13706 else 13707 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13708 hardcode_action_CXX=immediate 13709 fi 13710else 13711 # We cannot hardcode anything, or else we can only hardcode existing 13712 # directories. 13713 hardcode_action_CXX=unsupported 13714fi 13715{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13716echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13717 13718if test "$hardcode_action_CXX" = relink; then 13719 # Fast installation is not supported 13720 enable_fast_install=no 13721elif test "$shlibpath_overrides_runpath" = yes || 13722 test "$enable_shared" = no; then 13723 # Fast installation is not necessary 13724 enable_fast_install=needless 13725fi 13726 13727 13728# The else clause should only fire when bootstrapping the 13729# libtool distribution, otherwise you forgot to ship ltmain.sh 13730# with your package, and you will get complaints that there are 13731# no rules to generate ltmain.sh. 13732if test -f "$ltmain"; then 13733 # See if we are running on zsh, and set the options which allow our commands through 13734 # without removal of \ escapes. 13735 if test -n "${ZSH_VERSION+set}" ; then 13736 setopt NO_GLOB_SUBST 13737 fi 13738 # Now quote all the things that may contain metacharacters while being 13739 # careful not to overquote the AC_SUBSTed values. We take copies of the 13740 # variables and quote the copies for generation of the libtool script. 13741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13742 SED SHELL STRIP \ 13743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13745 deplibs_check_method reload_flag reload_cmds need_locks \ 13746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13747 lt_cv_sys_global_symbol_to_c_name_address \ 13748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13749 old_postinstall_cmds old_postuninstall_cmds \ 13750 compiler_CXX \ 13751 CC_CXX \ 13752 LD_CXX \ 13753 lt_prog_compiler_wl_CXX \ 13754 lt_prog_compiler_pic_CXX \ 13755 lt_prog_compiler_static_CXX \ 13756 lt_prog_compiler_no_builtin_flag_CXX \ 13757 export_dynamic_flag_spec_CXX \ 13758 thread_safe_flag_spec_CXX \ 13759 whole_archive_flag_spec_CXX \ 13760 enable_shared_with_static_runtimes_CXX \ 13761 old_archive_cmds_CXX \ 13762 old_archive_from_new_cmds_CXX \ 13763 predep_objects_CXX \ 13764 postdep_objects_CXX \ 13765 predeps_CXX \ 13766 postdeps_CXX \ 13767 compiler_lib_search_path_CXX \ 13768 archive_cmds_CXX \ 13769 archive_expsym_cmds_CXX \ 13770 postinstall_cmds_CXX \ 13771 postuninstall_cmds_CXX \ 13772 old_archive_from_expsyms_cmds_CXX \ 13773 allow_undefined_flag_CXX \ 13774 no_undefined_flag_CXX \ 13775 export_symbols_cmds_CXX \ 13776 hardcode_libdir_flag_spec_CXX \ 13777 hardcode_libdir_flag_spec_ld_CXX \ 13778 hardcode_libdir_separator_CXX \ 13779 hardcode_automatic_CXX \ 13780 module_cmds_CXX \ 13781 module_expsym_cmds_CXX \ 13782 lt_cv_prog_compiler_c_o_CXX \ 13783 exclude_expsyms_CXX \ 13784 include_expsyms_CXX; do 13785 13786 case $var in 13787 old_archive_cmds_CXX | \ 13788 old_archive_from_new_cmds_CXX | \ 13789 archive_cmds_CXX | \ 13790 archive_expsym_cmds_CXX | \ 13791 module_cmds_CXX | \ 13792 module_expsym_cmds_CXX | \ 13793 old_archive_from_expsyms_cmds_CXX | \ 13794 export_symbols_cmds_CXX | \ 13795 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13796 postinstall_cmds | postuninstall_cmds | \ 13797 old_postinstall_cmds | old_postuninstall_cmds | \ 13798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13799 # Double-quote double-evaled strings. 13800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13801 ;; 13802 *) 13803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13804 ;; 13805 esac 13806 done 13807 13808 case $lt_echo in 13809 *'\$0 --fallback-echo"') 13810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13811 ;; 13812 esac 13813 13814cfgfile="$ofile" 13815 13816 cat <<__EOF__ >> "$cfgfile" 13817# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13818 13819# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13820 13821# Shell to use when invoking shell scripts. 13822SHELL=$lt_SHELL 13823 13824# Whether or not to build shared libraries. 13825build_libtool_libs=$enable_shared 13826 13827# Whether or not to build static libraries. 13828build_old_libs=$enable_static 13829 13830# Whether or not to add -lc for building shared libraries. 13831build_libtool_need_lc=$archive_cmds_need_lc_CXX 13832 13833# Whether or not to disallow shared libs when runtime libs are static 13834allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13835 13836# Whether or not to optimize for fast installation. 13837fast_install=$enable_fast_install 13838 13839# The host system. 13840host_alias=$host_alias 13841host=$host 13842host_os=$host_os 13843 13844# The build system. 13845build_alias=$build_alias 13846build=$build 13847build_os=$build_os 13848 13849# An echo program that does not interpret backslashes. 13850echo=$lt_echo 13851 13852# The archiver. 13853AR=$lt_AR 13854AR_FLAGS=$lt_AR_FLAGS 13855 13856# A C compiler. 13857LTCC=$lt_LTCC 13858 13859# LTCC compiler flags. 13860LTCFLAGS=$lt_LTCFLAGS 13861 13862# A language-specific compiler. 13863CC=$lt_compiler_CXX 13864 13865# Is the compiler the GNU C compiler? 13866with_gcc=$GCC_CXX 13867 13868# An ERE matcher. 13869EGREP=$lt_EGREP 13870 13871# The linker used to build libraries. 13872LD=$lt_LD_CXX 13873 13874# Whether we need hard or soft links. 13875LN_S=$lt_LN_S 13876 13877# A BSD-compatible nm program. 13878NM=$lt_NM 13879 13880# A symbol stripping program 13881STRIP=$lt_STRIP 13882 13883# Used to examine libraries when file_magic_cmd begins "file" 13884MAGIC_CMD=$MAGIC_CMD 13885 13886# Used on cygwin: DLL creation program. 13887DLLTOOL="$DLLTOOL" 13888 13889# Used on cygwin: object dumper. 13890OBJDUMP="$OBJDUMP" 13891 13892# Used on cygwin: assembler. 13893AS="$AS" 13894 13895# The name of the directory that contains temporary libtool files. 13896objdir=$objdir 13897 13898# How to create reloadable object files. 13899reload_flag=$lt_reload_flag 13900reload_cmds=$lt_reload_cmds 13901 13902# How to pass a linker flag through the compiler. 13903wl=$lt_lt_prog_compiler_wl_CXX 13904 13905# Object file suffix (normally "o"). 13906objext="$ac_objext" 13907 13908# Old archive suffix (normally "a"). 13909libext="$libext" 13910 13911# Shared library suffix (normally ".so"). 13912shrext_cmds='$shrext_cmds' 13913 13914# Executable file suffix (normally ""). 13915exeext="$exeext" 13916 13917# Additional compiler flags for building library objects. 13918pic_flag=$lt_lt_prog_compiler_pic_CXX 13919pic_mode=$pic_mode 13920 13921# What is the maximum length of a command? 13922max_cmd_len=$lt_cv_sys_max_cmd_len 13923 13924# Does compiler simultaneously support -c and -o options? 13925compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13926 13927# Must we lock files when doing compilation? 13928need_locks=$lt_need_locks 13929 13930# Do we need the lib prefix for modules? 13931need_lib_prefix=$need_lib_prefix 13932 13933# Do we need a version for libraries? 13934need_version=$need_version 13935 13936# Whether dlopen is supported. 13937dlopen_support=$enable_dlopen 13938 13939# Whether dlopen of programs is supported. 13940dlopen_self=$enable_dlopen_self 13941 13942# Whether dlopen of statically linked programs is supported. 13943dlopen_self_static=$enable_dlopen_self_static 13944 13945# Compiler flag to prevent dynamic linking. 13946link_static_flag=$lt_lt_prog_compiler_static_CXX 13947 13948# Compiler flag to turn off builtin functions. 13949no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13950 13951# Compiler flag to allow reflexive dlopens. 13952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13953 13954# Compiler flag to generate shared objects directly from archives. 13955whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13956 13957# Compiler flag to generate thread-safe objects. 13958thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13959 13960# Library versioning type. 13961version_type=$version_type 13962 13963# Format of library name prefix. 13964libname_spec=$lt_libname_spec 13965 13966# List of archive names. First name is the real one, the rest are links. 13967# The last name is the one that the linker finds with -lNAME. 13968library_names_spec=$lt_library_names_spec 13969 13970# The coded name of the library, if different from the real name. 13971soname_spec=$lt_soname_spec 13972 13973# Commands used to build and install an old-style archive. 13974RANLIB=$lt_RANLIB 13975old_archive_cmds=$lt_old_archive_cmds_CXX 13976old_postinstall_cmds=$lt_old_postinstall_cmds 13977old_postuninstall_cmds=$lt_old_postuninstall_cmds 13978 13979# Create an old-style archive from a shared archive. 13980old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13981 13982# Create a temporary old-style archive to link instead of a shared archive. 13983old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13984 13985# Commands used to build and install a shared archive. 13986archive_cmds=$lt_archive_cmds_CXX 13987archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13988postinstall_cmds=$lt_postinstall_cmds 13989postuninstall_cmds=$lt_postuninstall_cmds 13990 13991# Commands used to build a loadable module (assumed same as above if empty) 13992module_cmds=$lt_module_cmds_CXX 13993module_expsym_cmds=$lt_module_expsym_cmds_CXX 13994 13995# Commands to strip libraries. 13996old_striplib=$lt_old_striplib 13997striplib=$lt_striplib 13998 13999# Dependencies to place before the objects being linked to create a 14000# shared library. 14001predep_objects=$lt_predep_objects_CXX 14002 14003# Dependencies to place after the objects being linked to create a 14004# shared library. 14005postdep_objects=$lt_postdep_objects_CXX 14006 14007# Dependencies to place before the objects being linked to create a 14008# shared library. 14009predeps=$lt_predeps_CXX 14010 14011# Dependencies to place after the objects being linked to create a 14012# shared library. 14013postdeps=$lt_postdeps_CXX 14014 14015# The library search path used internally by the compiler when linking 14016# a shared library. 14017compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14018 14019# Method to check whether dependent libraries are shared objects. 14020deplibs_check_method=$lt_deplibs_check_method 14021 14022# Command to use when deplibs_check_method == file_magic. 14023file_magic_cmd=$lt_file_magic_cmd 14024 14025# Flag that allows shared libraries with undefined symbols to be built. 14026allow_undefined_flag=$lt_allow_undefined_flag_CXX 14027 14028# Flag that forces no undefined symbols. 14029no_undefined_flag=$lt_no_undefined_flag_CXX 14030 14031# Commands used to finish a libtool library installation in a directory. 14032finish_cmds=$lt_finish_cmds 14033 14034# Same as above, but a single script fragment to be evaled but not shown. 14035finish_eval=$lt_finish_eval 14036 14037# Take the output of nm and produce a listing of raw symbols and C names. 14038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14039 14040# Transform the output of nm in a proper C declaration 14041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14042 14043# Transform the output of nm in a C name address pair 14044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14045 14046# This is the shared library runtime path variable. 14047runpath_var=$runpath_var 14048 14049# This is the shared library path variable. 14050shlibpath_var=$shlibpath_var 14051 14052# Is shlibpath searched before the hard-coded library search path? 14053shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14054 14055# How to hardcode a shared library path into an executable. 14056hardcode_action=$hardcode_action_CXX 14057 14058# Whether we should hardcode library paths into libraries. 14059hardcode_into_libs=$hardcode_into_libs 14060 14061# Flag to hardcode \$libdir into a binary during linking. 14062# This must work even if \$libdir does not exist. 14063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14064 14065# If ld is used when linking, flag to hardcode \$libdir into 14066# a binary during linking. This must work even if \$libdir does 14067# not exist. 14068hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14069 14070# Whether we need a single -rpath flag with a separated argument. 14071hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14072 14073# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14074# resulting binary. 14075hardcode_direct=$hardcode_direct_CXX 14076 14077# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14078# resulting binary. 14079hardcode_minus_L=$hardcode_minus_L_CXX 14080 14081# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14082# the resulting binary. 14083hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14084 14085# Set to yes if building a shared library automatically hardcodes DIR into the library 14086# and all subsequent libraries and executables linked against it. 14087hardcode_automatic=$hardcode_automatic_CXX 14088 14089# Variables whose values should be saved in libtool wrapper scripts and 14090# restored at relink time. 14091variables_saved_for_relink="$variables_saved_for_relink" 14092 14093# Whether libtool must link a program against all its dependency libraries. 14094link_all_deplibs=$link_all_deplibs_CXX 14095 14096# Compile-time system search path for libraries 14097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14098 14099# Run-time system search path for libraries 14100sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14101 14102# Fix the shell variable \$srcfile for the compiler. 14103fix_srcfile_path="$fix_srcfile_path_CXX" 14104 14105# Set to yes if exported symbols are required. 14106always_export_symbols=$always_export_symbols_CXX 14107 14108# The commands to list exported symbols. 14109export_symbols_cmds=$lt_export_symbols_cmds_CXX 14110 14111# The commands to extract the exported symbol list from a shared archive. 14112extract_expsyms_cmds=$lt_extract_expsyms_cmds 14113 14114# Symbols that should not be listed in the preloaded symbols. 14115exclude_expsyms=$lt_exclude_expsyms_CXX 14116 14117# Symbols that must always be exported. 14118include_expsyms=$lt_include_expsyms_CXX 14119 14120# ### END LIBTOOL TAG CONFIG: $tagname 14121 14122__EOF__ 14123 14124 14125else 14126 # If there is no Makefile yet, we rely on a make rule to execute 14127 # `config.status --recheck' to rerun these tests and create the 14128 # libtool script then. 14129 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14130 if test -f "$ltmain_in"; then 14131 test -f Makefile && make "$ltmain" 14132 fi 14133fi 14134 14135 14136ac_ext=c 14137ac_cpp='$CPP $CPPFLAGS' 14138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14140ac_compiler_gnu=$ac_cv_c_compiler_gnu 14141 14142CC=$lt_save_CC 14143LDCXX=$LD 14144LD=$lt_save_LD 14145GCC=$lt_save_GCC 14146with_gnu_ldcxx=$with_gnu_ld 14147with_gnu_ld=$lt_save_with_gnu_ld 14148lt_cv_path_LDCXX=$lt_cv_path_LD 14149lt_cv_path_LD=$lt_save_path_LD 14150lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14151lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14152 14153 else 14154 tagname="" 14155 fi 14156 ;; 14157 14158 F77) 14159 if test -n "$F77" && test "X$F77" != "Xno"; then 14160 14161ac_ext=f 14162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14164ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14165 14166 14167archive_cmds_need_lc_F77=no 14168allow_undefined_flag_F77= 14169always_export_symbols_F77=no 14170archive_expsym_cmds_F77= 14171export_dynamic_flag_spec_F77= 14172hardcode_direct_F77=no 14173hardcode_libdir_flag_spec_F77= 14174hardcode_libdir_flag_spec_ld_F77= 14175hardcode_libdir_separator_F77= 14176hardcode_minus_L_F77=no 14177hardcode_automatic_F77=no 14178module_cmds_F77= 14179module_expsym_cmds_F77= 14180link_all_deplibs_F77=unknown 14181old_archive_cmds_F77=$old_archive_cmds 14182no_undefined_flag_F77= 14183whole_archive_flag_spec_F77= 14184enable_shared_with_static_runtimes_F77=no 14185 14186# Source file extension for f77 test sources. 14187ac_ext=f 14188 14189# Object file extension for compiled f77 test sources. 14190objext=o 14191objext_F77=$objext 14192 14193# Code to be used in simple compile tests 14194lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14195 14196# Code to be used in simple link tests 14197lt_simple_link_test_code=" program t\n end\n" 14198 14199# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14200 14201# If no C compiler was specified, use CC. 14202LTCC=${LTCC-"$CC"} 14203 14204# If no C compiler flags were specified, use CFLAGS. 14205LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14206 14207# Allow CC to be a program name with arguments. 14208compiler=$CC 14209 14210 14211# save warnings/boilerplate of simple test code 14212ac_outfile=conftest.$ac_objext 14213printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14214eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14215_lt_compiler_boilerplate=`cat conftest.err` 14216$rm conftest* 14217 14218ac_outfile=conftest.$ac_objext 14219printf "$lt_simple_link_test_code" >conftest.$ac_ext 14220eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14221_lt_linker_boilerplate=`cat conftest.err` 14222$rm conftest* 14223 14224 14225# Allow CC to be a program name with arguments. 14226lt_save_CC="$CC" 14227CC=${F77-"f77"} 14228compiler=$CC 14229compiler_F77=$CC 14230for cc_temp in $compiler""; do 14231 case $cc_temp in 14232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14234 \-*) ;; 14235 *) break;; 14236 esac 14237done 14238cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14239 14240 14241{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14242echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14243{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14244echo "${ECHO_T}$can_build_shared" >&6; } 14245 14246{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14247echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14248test "$can_build_shared" = "no" && enable_shared=no 14249 14250# On AIX, shared libraries and static libraries use the same namespace, and 14251# are all built from PIC. 14252case $host_os in 14253aix3*) 14254 test "$enable_shared" = yes && enable_static=no 14255 if test -n "$RANLIB"; then 14256 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14257 postinstall_cmds='$RANLIB $lib' 14258 fi 14259 ;; 14260aix4* | aix5*) 14261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14262 test "$enable_shared" = yes && enable_static=no 14263 fi 14264 ;; 14265esac 14266{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14267echo "${ECHO_T}$enable_shared" >&6; } 14268 14269{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14270echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14271# Make sure either enable_shared or enable_static is yes. 14272test "$enable_shared" = yes || enable_static=yes 14273{ echo "$as_me:$LINENO: result: $enable_static" >&5 14274echo "${ECHO_T}$enable_static" >&6; } 14275 14276GCC_F77="$G77" 14277LD_F77="$LD" 14278 14279lt_prog_compiler_wl_F77= 14280lt_prog_compiler_pic_F77= 14281lt_prog_compiler_static_F77= 14282 14283{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14284echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14285 14286 if test "$GCC" = yes; then 14287 lt_prog_compiler_wl_F77='-Wl,' 14288 lt_prog_compiler_static_F77='-static' 14289 14290 case $host_os in 14291 aix*) 14292 # All AIX code is PIC. 14293 if test "$host_cpu" = ia64; then 14294 # AIX 5 now supports IA64 processor 14295 lt_prog_compiler_static_F77='-Bstatic' 14296 fi 14297 ;; 14298 14299 amigaos*) 14300 # FIXME: we need at least 68020 code to build shared libraries, but 14301 # adding the `-m68020' flag to GCC prevents building anything better, 14302 # like `-m68040'. 14303 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14304 ;; 14305 14306 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14307 # PIC is the default for these OSes. 14308 ;; 14309 14310 mingw* | pw32* | os2*) 14311 # This hack is so that the source file can tell whether it is being 14312 # built for inclusion in a dll (and should export symbols for example). 14313 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14314 ;; 14315 14316 darwin* | rhapsody*) 14317 # PIC is the default on this platform 14318 # Common symbols not allowed in MH_DYLIB files 14319 lt_prog_compiler_pic_F77='-fno-common' 14320 ;; 14321 14322 interix3*) 14323 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14324 # Instead, we relocate shared libraries at runtime. 14325 ;; 14326 14327 msdosdjgpp*) 14328 # Just because we use GCC doesn't mean we suddenly get shared libraries 14329 # on systems that don't support them. 14330 lt_prog_compiler_can_build_shared_F77=no 14331 enable_shared=no 14332 ;; 14333 14334 sysv4*MP*) 14335 if test -d /usr/nec; then 14336 lt_prog_compiler_pic_F77=-Kconform_pic 14337 fi 14338 ;; 14339 14340 hpux*) 14341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14342 # not for PA HP-UX. 14343 case $host_cpu in 14344 hppa*64*|ia64*) 14345 # +Z the default 14346 ;; 14347 *) 14348 lt_prog_compiler_pic_F77='-fPIC' 14349 ;; 14350 esac 14351 ;; 14352 14353 *) 14354 lt_prog_compiler_pic_F77='-fPIC' 14355 ;; 14356 esac 14357 else 14358 # PORTME Check for flag to pass linker flags through the system compiler. 14359 case $host_os in 14360 aix*) 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 if test "$host_cpu" = ia64; then 14363 # AIX 5 now supports IA64 processor 14364 lt_prog_compiler_static_F77='-Bstatic' 14365 else 14366 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14367 fi 14368 ;; 14369 darwin*) 14370 # PIC is the default on this platform 14371 # Common symbols not allowed in MH_DYLIB files 14372 case $cc_basename in 14373 xlc*) 14374 lt_prog_compiler_pic_F77='-qnocommon' 14375 lt_prog_compiler_wl_F77='-Wl,' 14376 ;; 14377 esac 14378 ;; 14379 14380 mingw* | pw32* | os2*) 14381 # This hack is so that the source file can tell whether it is being 14382 # built for inclusion in a dll (and should export symbols for example). 14383 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14384 ;; 14385 14386 hpux9* | hpux10* | hpux11*) 14387 lt_prog_compiler_wl_F77='-Wl,' 14388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14389 # not for PA HP-UX. 14390 case $host_cpu in 14391 hppa*64*|ia64*) 14392 # +Z the default 14393 ;; 14394 *) 14395 lt_prog_compiler_pic_F77='+Z' 14396 ;; 14397 esac 14398 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14399 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14400 ;; 14401 14402 irix5* | irix6* | nonstopux*) 14403 lt_prog_compiler_wl_F77='-Wl,' 14404 # PIC (with -KPIC) is the default. 14405 lt_prog_compiler_static_F77='-non_shared' 14406 ;; 14407 14408 newsos6) 14409 lt_prog_compiler_pic_F77='-KPIC' 14410 lt_prog_compiler_static_F77='-Bstatic' 14411 ;; 14412 14413 linux*) 14414 case $cc_basename in 14415 icc* | ecc*) 14416 lt_prog_compiler_wl_F77='-Wl,' 14417 lt_prog_compiler_pic_F77='-KPIC' 14418 lt_prog_compiler_static_F77='-static' 14419 ;; 14420 pgcc* | pgf77* | pgf90* | pgf95*) 14421 # Portland Group compilers (*not* the Pentium gcc compiler, 14422 # which looks to be a dead project) 14423 lt_prog_compiler_wl_F77='-Wl,' 14424 lt_prog_compiler_pic_F77='-fpic' 14425 lt_prog_compiler_static_F77='-Bstatic' 14426 ;; 14427 ccc*) 14428 lt_prog_compiler_wl_F77='-Wl,' 14429 # All Alpha code is PIC. 14430 lt_prog_compiler_static_F77='-non_shared' 14431 ;; 14432 esac 14433 ;; 14434 14435 osf3* | osf4* | osf5*) 14436 lt_prog_compiler_wl_F77='-Wl,' 14437 # All OSF/1 code is PIC. 14438 lt_prog_compiler_static_F77='-non_shared' 14439 ;; 14440 14441 solaris*) 14442 lt_prog_compiler_pic_F77='-KPIC' 14443 lt_prog_compiler_static_F77='-Bstatic' 14444 case $cc_basename in 14445 f77* | f90* | f95*) 14446 lt_prog_compiler_wl_F77='-Qoption ld ';; 14447 *) 14448 lt_prog_compiler_wl_F77='-Wl,';; 14449 esac 14450 ;; 14451 14452 sunos4*) 14453 lt_prog_compiler_wl_F77='-Qoption ld ' 14454 lt_prog_compiler_pic_F77='-PIC' 14455 lt_prog_compiler_static_F77='-Bstatic' 14456 ;; 14457 14458 sysv4 | sysv4.2uw2* | sysv4.3*) 14459 lt_prog_compiler_wl_F77='-Wl,' 14460 lt_prog_compiler_pic_F77='-KPIC' 14461 lt_prog_compiler_static_F77='-Bstatic' 14462 ;; 14463 14464 sysv4*MP*) 14465 if test -d /usr/nec ;then 14466 lt_prog_compiler_pic_F77='-Kconform_pic' 14467 lt_prog_compiler_static_F77='-Bstatic' 14468 fi 14469 ;; 14470 14471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14472 lt_prog_compiler_wl_F77='-Wl,' 14473 lt_prog_compiler_pic_F77='-KPIC' 14474 lt_prog_compiler_static_F77='-Bstatic' 14475 ;; 14476 14477 unicos*) 14478 lt_prog_compiler_wl_F77='-Wl,' 14479 lt_prog_compiler_can_build_shared_F77=no 14480 ;; 14481 14482 uts4*) 14483 lt_prog_compiler_pic_F77='-pic' 14484 lt_prog_compiler_static_F77='-Bstatic' 14485 ;; 14486 14487 *) 14488 lt_prog_compiler_can_build_shared_F77=no 14489 ;; 14490 esac 14491 fi 14492 14493{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14494echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14495 14496# 14497# Check to make sure the PIC flag actually works. 14498# 14499if test -n "$lt_prog_compiler_pic_F77"; then 14500 14501{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14502echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14503if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14504 echo $ECHO_N "(cached) $ECHO_C" >&6 14505else 14506 lt_prog_compiler_pic_works_F77=no 14507 ac_outfile=conftest.$ac_objext 14508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14509 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14510 # Insert the option either (1) after the last *FLAGS variable, or 14511 # (2) before a word containing "conftest.", or (3) at the end. 14512 # Note that $ac_compile itself does not contain backslashes and begins 14513 # with a dollar sign (not a hyphen), so the echo should work correctly. 14514 # The option is referenced via a variable to avoid confusing sed. 14515 lt_compile=`echo "$ac_compile" | $SED \ 14516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14518 -e 's:$: $lt_compiler_flag:'` 14519 (eval echo "\"\$as_me:14519: $lt_compile\"" >&5) 14520 (eval "$lt_compile" 2>conftest.err) 14521 ac_status=$? 14522 cat conftest.err >&5 14523 echo "$as_me:14523: \$? = $ac_status" >&5 14524 if (exit $ac_status) && test -s "$ac_outfile"; then 14525 # The compiler can only warn and ignore the option if not recognized 14526 # So say no if there are warnings other than the usual output. 14527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14530 lt_prog_compiler_pic_works_F77=yes 14531 fi 14532 fi 14533 $rm conftest* 14534 14535fi 14536{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14537echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14538 14539if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14540 case $lt_prog_compiler_pic_F77 in 14541 "" | " "*) ;; 14542 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14543 esac 14544else 14545 lt_prog_compiler_pic_F77= 14546 lt_prog_compiler_can_build_shared_F77=no 14547fi 14548 14549fi 14550case $host_os in 14551 # For platforms which do not support PIC, -DPIC is meaningless: 14552 *djgpp*) 14553 lt_prog_compiler_pic_F77= 14554 ;; 14555 *) 14556 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14557 ;; 14558esac 14559 14560# 14561# Check to make sure the static flag actually works. 14562# 14563wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14564{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14565echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14566if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14567 echo $ECHO_N "(cached) $ECHO_C" >&6 14568else 14569 lt_prog_compiler_static_works_F77=no 14570 save_LDFLAGS="$LDFLAGS" 14571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14572 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14574 # The linker can only warn and ignore the option if not recognized 14575 # So say no if there are warnings 14576 if test -s conftest.err; then 14577 # Append any errors to the config.log. 14578 cat conftest.err 1>&5 14579 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14581 if diff conftest.exp conftest.er2 >/dev/null; then 14582 lt_prog_compiler_static_works_F77=yes 14583 fi 14584 else 14585 lt_prog_compiler_static_works_F77=yes 14586 fi 14587 fi 14588 $rm conftest* 14589 LDFLAGS="$save_LDFLAGS" 14590 14591fi 14592{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14593echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14594 14595if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14596 : 14597else 14598 lt_prog_compiler_static_F77= 14599fi 14600 14601 14602{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14603echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14604if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14605 echo $ECHO_N "(cached) $ECHO_C" >&6 14606else 14607 lt_cv_prog_compiler_c_o_F77=no 14608 $rm -r conftest 2>/dev/null 14609 mkdir conftest 14610 cd conftest 14611 mkdir out 14612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14613 14614 lt_compiler_flag="-o out/conftest2.$ac_objext" 14615 # Insert the option either (1) after the last *FLAGS variable, or 14616 # (2) before a word containing "conftest.", or (3) at the end. 14617 # Note that $ac_compile itself does not contain backslashes and begins 14618 # with a dollar sign (not a hyphen), so the echo should work correctly. 14619 lt_compile=`echo "$ac_compile" | $SED \ 14620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14622 -e 's:$: $lt_compiler_flag:'` 14623 (eval echo "\"\$as_me:14623: $lt_compile\"" >&5) 14624 (eval "$lt_compile" 2>out/conftest.err) 14625 ac_status=$? 14626 cat out/conftest.err >&5 14627 echo "$as_me:14627: \$? = $ac_status" >&5 14628 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14629 then 14630 # The compiler can only warn and ignore the option if not recognized 14631 # So say no if there are warnings 14632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14635 lt_cv_prog_compiler_c_o_F77=yes 14636 fi 14637 fi 14638 chmod u+w . 2>&5 14639 $rm conftest* 14640 # SGI C++ compiler will create directory out/ii_files/ for 14641 # template instantiation 14642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14643 $rm out/* && rmdir out 14644 cd .. 14645 rmdir conftest 14646 $rm conftest* 14647 14648fi 14649{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14650echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14651 14652 14653hard_links="nottested" 14654if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14655 # do not overwrite the value of need_locks provided by the user 14656 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14657echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14658 hard_links=yes 14659 $rm conftest* 14660 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14661 touch conftest.a 14662 ln conftest.a conftest.b 2>&5 || hard_links=no 14663 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14664 { echo "$as_me:$LINENO: result: $hard_links" >&5 14665echo "${ECHO_T}$hard_links" >&6; } 14666 if test "$hard_links" = no; then 14667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14668echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14669 need_locks=warn 14670 fi 14671else 14672 need_locks=no 14673fi 14674 14675{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14676echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14677 14678 runpath_var= 14679 allow_undefined_flag_F77= 14680 enable_shared_with_static_runtimes_F77=no 14681 archive_cmds_F77= 14682 archive_expsym_cmds_F77= 14683 old_archive_From_new_cmds_F77= 14684 old_archive_from_expsyms_cmds_F77= 14685 export_dynamic_flag_spec_F77= 14686 whole_archive_flag_spec_F77= 14687 thread_safe_flag_spec_F77= 14688 hardcode_libdir_flag_spec_F77= 14689 hardcode_libdir_flag_spec_ld_F77= 14690 hardcode_libdir_separator_F77= 14691 hardcode_direct_F77=no 14692 hardcode_minus_L_F77=no 14693 hardcode_shlibpath_var_F77=unsupported 14694 link_all_deplibs_F77=unknown 14695 hardcode_automatic_F77=no 14696 module_cmds_F77= 14697 module_expsym_cmds_F77= 14698 always_export_symbols_F77=no 14699 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14700 # include_expsyms should be a list of space-separated symbols to be *always* 14701 # included in the symbol list 14702 include_expsyms_F77= 14703 # exclude_expsyms can be an extended regexp of symbols to exclude 14704 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14706 # as well as any symbol that contains `d'. 14707 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14709 # platforms (ab)use it in PIC code, but their linkers get confused if 14710 # the symbol is explicitly referenced. Since portable code cannot 14711 # rely on this symbol name, it's probably fine to never include it in 14712 # preloaded symbol tables. 14713 extract_expsyms_cmds= 14714 # Just being paranoid about ensuring that cc_basename is set. 14715 for cc_temp in $compiler""; do 14716 case $cc_temp in 14717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14719 \-*) ;; 14720 *) break;; 14721 esac 14722done 14723cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14724 14725 case $host_os in 14726 cygwin* | mingw* | pw32*) 14727 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14728 # When not using gcc, we currently assume that we are using 14729 # Microsoft Visual C++. 14730 if test "$GCC" != yes; then 14731 with_gnu_ld=no 14732 fi 14733 ;; 14734 interix*) 14735 # we just hope/assume this is gcc and not c89 (= MSVC++) 14736 with_gnu_ld=yes 14737 ;; 14738 openbsd*) 14739 with_gnu_ld=no 14740 ;; 14741 esac 14742 14743 ld_shlibs_F77=yes 14744 if test "$with_gnu_ld" = yes; then 14745 # If archive_cmds runs LD, not CC, wlarc should be empty 14746 wlarc='${wl}' 14747 14748 # Set some defaults for GNU ld with shared library support. These 14749 # are reset later if shared libraries are not supported. Putting them 14750 # here allows them to be overridden if necessary. 14751 runpath_var=LD_RUN_PATH 14752 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14753 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14754 # ancient GNU ld didn't support --whole-archive et. al. 14755 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14756 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14757 else 14758 whole_archive_flag_spec_F77= 14759 fi 14760 supports_anon_versioning=no 14761 case `$LD -v 2>/dev/null` in 14762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14765 *\ 2.11.*) ;; # other 2.11 versions 14766 *) supports_anon_versioning=yes ;; 14767 esac 14768 14769 # See if GNU ld supports shared libraries. 14770 case $host_os in 14771 aix3* | aix4* | aix5*) 14772 # On AIX/PPC, the GNU linker is very broken 14773 if test "$host_cpu" != ia64; then 14774 ld_shlibs_F77=no 14775 cat <<EOF 1>&2 14776 14777*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14778*** to be unable to reliably create shared libraries on AIX. 14779*** Therefore, libtool is disabling shared libraries support. If you 14780*** really care for shared libraries, you may want to modify your PATH 14781*** so that a non-GNU linker is found, and then restart. 14782 14783EOF 14784 fi 14785 ;; 14786 14787 amigaos*) 14788 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)' 14789 hardcode_libdir_flag_spec_F77='-L$libdir' 14790 hardcode_minus_L_F77=yes 14791 14792 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14793 # that the semantics of dynamic libraries on AmigaOS, at least up 14794 # to version 4, is to share data among multiple programs linked 14795 # with the same dynamic library. Since this doesn't match the 14796 # behavior of shared libraries on other platforms, we can't use 14797 # them. 14798 ld_shlibs_F77=no 14799 ;; 14800 14801 beos*) 14802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14803 allow_undefined_flag_F77=unsupported 14804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14805 # support --undefined. This deserves some investigation. FIXME 14806 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14807 else 14808 ld_shlibs_F77=no 14809 fi 14810 ;; 14811 14812 cygwin* | mingw* | pw32*) 14813 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14814 # as there is no search path for DLLs. 14815 hardcode_libdir_flag_spec_F77='-L$libdir' 14816 allow_undefined_flag_F77=unsupported 14817 always_export_symbols_F77=no 14818 enable_shared_with_static_runtimes_F77=yes 14819 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14820 14821 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14823 # If the export-symbols file already is a .def file (1st line 14824 # is EXPORTS), use it as is; otherwise, prepend... 14825 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14826 cp $export_symbols $output_objdir/$soname.def; 14827 else 14828 echo EXPORTS > $output_objdir/$soname.def; 14829 cat $export_symbols >> $output_objdir/$soname.def; 14830 fi~ 14831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14832 else 14833 ld_shlibs_F77=no 14834 fi 14835 ;; 14836 14837 interix3*) 14838 hardcode_direct_F77=no 14839 hardcode_shlibpath_var_F77=no 14840 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14841 export_dynamic_flag_spec_F77='${wl}-E' 14842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14843 # Instead, shared libraries are loaded at an image base (0x10000000 by 14844 # default) and relocated if they conflict, which is a slow very memory 14845 # consuming and fragmenting process. To avoid this, we pick a random, 14846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14847 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14848 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' 14849 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' 14850 ;; 14851 14852 linux*) 14853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14854 tmp_addflag= 14855 case $cc_basename,$host_cpu in 14856 pgcc*) # Portland Group C compiler 14857 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' 14858 tmp_addflag=' $pic_flag' 14859 ;; 14860 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14861 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' 14862 tmp_addflag=' $pic_flag -Mnomain' ;; 14863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14864 tmp_addflag=' -i_dynamic' ;; 14865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14866 tmp_addflag=' -i_dynamic -nofor_main' ;; 14867 ifc* | ifort*) # Intel Fortran compiler 14868 tmp_addflag=' -nofor_main' ;; 14869 esac 14870 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14871 14872 if test $supports_anon_versioning = yes; then 14873 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14875 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14876 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14877 fi 14878 else 14879 ld_shlibs_F77=no 14880 fi 14881 ;; 14882 14883 netbsd*) 14884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14885 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14886 wlarc= 14887 else 14888 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14889 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14890 fi 14891 ;; 14892 14893 solaris*) 14894 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14895 ld_shlibs_F77=no 14896 cat <<EOF 1>&2 14897 14898*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14899*** create shared libraries on Solaris systems. Therefore, libtool 14900*** is disabling shared libraries support. We urge you to upgrade GNU 14901*** binutils to release 2.9.1 or newer. Another option is to modify 14902*** your PATH or compiler configuration so that the native linker is 14903*** used, and then restart. 14904 14905EOF 14906 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14907 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14908 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14909 else 14910 ld_shlibs_F77=no 14911 fi 14912 ;; 14913 14914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14915 case `$LD -v 2>&1` in 14916 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14917 ld_shlibs_F77=no 14918 cat <<_LT_EOF 1>&2 14919 14920*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14921*** reliably create shared libraries on SCO systems. Therefore, libtool 14922*** is disabling shared libraries support. We urge you to upgrade GNU 14923*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14924*** your PATH or compiler configuration so that the native linker is 14925*** used, and then restart. 14926 14927_LT_EOF 14928 ;; 14929 *) 14930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14931 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14932 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14933 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14934 else 14935 ld_shlibs_F77=no 14936 fi 14937 ;; 14938 esac 14939 ;; 14940 14941 sunos4*) 14942 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14943 wlarc= 14944 hardcode_direct_F77=yes 14945 hardcode_shlibpath_var_F77=no 14946 ;; 14947 14948 *) 14949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14951 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14952 else 14953 ld_shlibs_F77=no 14954 fi 14955 ;; 14956 esac 14957 14958 if test "$ld_shlibs_F77" = no; then 14959 runpath_var= 14960 hardcode_libdir_flag_spec_F77= 14961 export_dynamic_flag_spec_F77= 14962 whole_archive_flag_spec_F77= 14963 fi 14964 else 14965 # PORTME fill in a description of your system's linker (not GNU ld) 14966 case $host_os in 14967 aix3*) 14968 allow_undefined_flag_F77=unsupported 14969 always_export_symbols_F77=yes 14970 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' 14971 # Note: this linker hardcodes the directories in LIBPATH if there 14972 # are no directories specified by -L. 14973 hardcode_minus_L_F77=yes 14974 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14975 # Neither direct hardcoding nor static linking is supported with a 14976 # broken collect2. 14977 hardcode_direct_F77=unsupported 14978 fi 14979 ;; 14980 14981 aix4* | aix5*) 14982 if test "$host_cpu" = ia64; then 14983 # On IA64, the linker does run time linking by default, so we don't 14984 # have to do anything special. 14985 aix_use_runtimelinking=no 14986 exp_sym_flag='-Bexport' 14987 no_entry_flag="" 14988 else 14989 # If we're using GNU nm, then we don't want the "-C" option. 14990 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14991 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14992 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' 14993 else 14994 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' 14995 fi 14996 aix_use_runtimelinking=no 14997 14998 # Test if we are trying to use run time linking or normal 14999 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15000 # need to do runtime linking. 15001 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15002 for ld_flag in $LDFLAGS; do 15003 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15004 aix_use_runtimelinking=yes 15005 break 15006 fi 15007 done 15008 ;; 15009 esac 15010 15011 exp_sym_flag='-bexport' 15012 no_entry_flag='-bnoentry' 15013 fi 15014 15015 # When large executables or shared objects are built, AIX ld can 15016 # have problems creating the table of contents. If linking a library 15017 # or program results in "error TOC overflow" add -mminimal-toc to 15018 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15019 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15020 15021 archive_cmds_F77='' 15022 hardcode_direct_F77=yes 15023 hardcode_libdir_separator_F77=':' 15024 link_all_deplibs_F77=yes 15025 15026 if test "$GCC" = yes; then 15027 case $host_os in aix4.[012]|aix4.[012].*) 15028 # We only want to do this on AIX 4.2 and lower, the check 15029 # below for broken collect2 doesn't work under 4.3+ 15030 collect2name=`${CC} -print-prog-name=collect2` 15031 if test -f "$collect2name" && \ 15032 strings "$collect2name" | grep resolve_lib_name >/dev/null 15033 then 15034 # We have reworked collect2 15035 hardcode_direct_F77=yes 15036 else 15037 # We have old collect2 15038 hardcode_direct_F77=unsupported 15039 # It fails to find uninstalled libraries when the uninstalled 15040 # path is not listed in the libpath. Setting hardcode_minus_L 15041 # to unsupported forces relinking 15042 hardcode_minus_L_F77=yes 15043 hardcode_libdir_flag_spec_F77='-L$libdir' 15044 hardcode_libdir_separator_F77= 15045 fi 15046 ;; 15047 esac 15048 shared_flag='-shared' 15049 if test "$aix_use_runtimelinking" = yes; then 15050 shared_flag="$shared_flag "'${wl}-G' 15051 fi 15052 else 15053 # not using gcc 15054 if test "$host_cpu" = ia64; then 15055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15056 # chokes on -Wl,-G. The following line is correct: 15057 shared_flag='-G' 15058 else 15059 if test "$aix_use_runtimelinking" = yes; then 15060 shared_flag='${wl}-G' 15061 else 15062 shared_flag='${wl}-bM:SRE' 15063 fi 15064 fi 15065 fi 15066 15067 # It seems that -bexpall does not export symbols beginning with 15068 # underscore (_), so it is better to generate a list of symbols to export. 15069 always_export_symbols_F77=yes 15070 if test "$aix_use_runtimelinking" = yes; then 15071 # Warning - without using the other runtime loading flags (-brtl), 15072 # -berok will link without error, but may produce a broken library. 15073 allow_undefined_flag_F77='-berok' 15074 # Determine the default libpath from the value encoded in an empty executable. 15075 cat >conftest.$ac_ext <<_ACEOF 15076 program main 15077 15078 end 15079_ACEOF 15080rm -f conftest.$ac_objext conftest$ac_exeext 15081if { (ac_try="$ac_link" 15082case "(($ac_try" in 15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15084 *) ac_try_echo=$ac_try;; 15085esac 15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15087 (eval "$ac_link") 2>conftest.er1 15088 ac_status=$? 15089 grep -v '^ *+' conftest.er1 >conftest.err 15090 rm -f conftest.er1 15091 cat conftest.err >&5 15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15093 (exit $ac_status); } && 15094 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15095 { (case "(($ac_try" in 15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15097 *) ac_try_echo=$ac_try;; 15098esac 15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15100 (eval "$ac_try") 2>&5 15101 ac_status=$? 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 (exit $ac_status); }; } && 15104 { ac_try='test -s conftest$ac_exeext' 15105 { (case "(($ac_try" in 15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15107 *) ac_try_echo=$ac_try;; 15108esac 15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15110 (eval "$ac_try") 2>&5 15111 ac_status=$? 15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15113 (exit $ac_status); }; }; then 15114 15115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15116}'` 15117# Check for a 64-bit object if we didn't find anything. 15118if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15119}'`; fi 15120else 15121 echo "$as_me: failed program was:" >&5 15122sed 's/^/| /' conftest.$ac_ext >&5 15123 15124 15125fi 15126 15127rm -f core conftest.err conftest.$ac_objext \ 15128 conftest$ac_exeext conftest.$ac_ext 15129if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15130 15131 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15132 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" 15133 else 15134 if test "$host_cpu" = ia64; then 15135 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15136 allow_undefined_flag_F77="-z nodefs" 15137 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" 15138 else 15139 # Determine the default libpath from the value encoded in an empty executable. 15140 cat >conftest.$ac_ext <<_ACEOF 15141 program main 15142 15143 end 15144_ACEOF 15145rm -f conftest.$ac_objext conftest$ac_exeext 15146if { (ac_try="$ac_link" 15147case "(($ac_try" in 15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15149 *) ac_try_echo=$ac_try;; 15150esac 15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15152 (eval "$ac_link") 2>conftest.er1 15153 ac_status=$? 15154 grep -v '^ *+' conftest.er1 >conftest.err 15155 rm -f conftest.er1 15156 cat conftest.err >&5 15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15158 (exit $ac_status); } && 15159 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15160 { (case "(($ac_try" in 15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15162 *) ac_try_echo=$ac_try;; 15163esac 15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15165 (eval "$ac_try") 2>&5 15166 ac_status=$? 15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15168 (exit $ac_status); }; } && 15169 { ac_try='test -s conftest$ac_exeext' 15170 { (case "(($ac_try" in 15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15172 *) ac_try_echo=$ac_try;; 15173esac 15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15175 (eval "$ac_try") 2>&5 15176 ac_status=$? 15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15178 (exit $ac_status); }; }; then 15179 15180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15181}'` 15182# Check for a 64-bit object if we didn't find anything. 15183if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15184}'`; fi 15185else 15186 echo "$as_me: failed program was:" >&5 15187sed 's/^/| /' conftest.$ac_ext >&5 15188 15189 15190fi 15191 15192rm -f core conftest.err conftest.$ac_objext \ 15193 conftest$ac_exeext conftest.$ac_ext 15194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15195 15196 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15197 # Warning - without using the other run time loading flags, 15198 # -berok will link without error, but may produce a broken library. 15199 no_undefined_flag_F77=' ${wl}-bernotok' 15200 allow_undefined_flag_F77=' ${wl}-berok' 15201 # Exported symbols can be pulled into shared objects from archives 15202 whole_archive_flag_spec_F77='$convenience' 15203 archive_cmds_need_lc_F77=yes 15204 # This is similar to how AIX traditionally builds its shared libraries. 15205 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' 15206 fi 15207 fi 15208 ;; 15209 15210 amigaos*) 15211 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)' 15212 hardcode_libdir_flag_spec_F77='-L$libdir' 15213 hardcode_minus_L_F77=yes 15214 # see comment about different semantics on the GNU ld section 15215 ld_shlibs_F77=no 15216 ;; 15217 15218 bsdi[45]*) 15219 export_dynamic_flag_spec_F77=-rdynamic 15220 ;; 15221 15222 cygwin* | mingw* | pw32*) 15223 # When not using gcc, we currently assume that we are using 15224 # Microsoft Visual C++. 15225 # hardcode_libdir_flag_spec is actually meaningless, as there is 15226 # no search path for DLLs. 15227 hardcode_libdir_flag_spec_F77=' ' 15228 allow_undefined_flag_F77=unsupported 15229 # Tell ltmain to make .lib files, not .a files. 15230 libext=lib 15231 # Tell ltmain to make .dll files, not .so files. 15232 shrext_cmds=".dll" 15233 # FIXME: Setting linknames here is a bad hack. 15234 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15235 # The linker will automatically build a .lib file if we build a DLL. 15236 old_archive_From_new_cmds_F77='true' 15237 # FIXME: Should let the user specify the lib program. 15238 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15239 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15240 enable_shared_with_static_runtimes_F77=yes 15241 ;; 15242 15243 darwin* | rhapsody*) 15244 case $host_os in 15245 rhapsody* | darwin1.[012]) 15246 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15247 ;; 15248 *) # Darwin 1.3 on 15249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15250 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15251 else 15252 case ${MACOSX_DEPLOYMENT_TARGET} in 15253 10.[012]) 15254 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15255 ;; 15256 10.*) 15257 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15258 ;; 15259 esac 15260 fi 15261 ;; 15262 esac 15263 archive_cmds_need_lc_F77=no 15264 hardcode_direct_F77=no 15265 hardcode_automatic_F77=yes 15266 hardcode_shlibpath_var_F77=unsupported 15267 whole_archive_flag_spec_F77='' 15268 link_all_deplibs_F77=yes 15269 if test "$GCC" = yes ; then 15270 output_verbose_link_cmd='echo' 15271 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15272 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15274 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}' 15275 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}' 15276 else 15277 case $cc_basename in 15278 xlc*) 15279 output_verbose_link_cmd='echo' 15280 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15281 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15282 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15283 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15284 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}' 15285 ;; 15286 *) 15287 ld_shlibs_F77=no 15288 ;; 15289 esac 15290 fi 15291 ;; 15292 15293 dgux*) 15294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15295 hardcode_libdir_flag_spec_F77='-L$libdir' 15296 hardcode_shlibpath_var_F77=no 15297 ;; 15298 15299 freebsd1*) 15300 ld_shlibs_F77=no 15301 ;; 15302 15303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15304 # support. Future versions do this automatically, but an explicit c++rt0.o 15305 # does not break anything, and helps significantly (at the cost of a little 15306 # extra space). 15307 freebsd2.2*) 15308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15309 hardcode_libdir_flag_spec_F77='-R$libdir' 15310 hardcode_direct_F77=yes 15311 hardcode_shlibpath_var_F77=no 15312 ;; 15313 15314 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15315 freebsd2*) 15316 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15317 hardcode_direct_F77=yes 15318 hardcode_minus_L_F77=yes 15319 hardcode_shlibpath_var_F77=no 15320 ;; 15321 15322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15323 freebsd* | kfreebsd*-gnu | dragonfly*) 15324 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15325 hardcode_libdir_flag_spec_F77='-R$libdir' 15326 hardcode_direct_F77=yes 15327 hardcode_shlibpath_var_F77=no 15328 ;; 15329 15330 hpux9*) 15331 if test "$GCC" = yes; then 15332 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 -f $output_objdir/$soname $lib' 15333 else 15334 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 -f $output_objdir/$soname $lib' 15335 fi 15336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15337 hardcode_libdir_separator_F77=: 15338 hardcode_direct_F77=yes 15339 15340 # hardcode_minus_L: Not really in the search PATH, 15341 # but as the default location of the library. 15342 hardcode_minus_L_F77=yes 15343 export_dynamic_flag_spec_F77='${wl}-E' 15344 ;; 15345 15346 hpux10*) 15347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15348 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15349 else 15350 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15351 fi 15352 if test "$with_gnu_ld" = no; then 15353 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15354 hardcode_libdir_separator_F77=: 15355 15356 hardcode_direct_F77=yes 15357 export_dynamic_flag_spec_F77='${wl}-E' 15358 15359 # hardcode_minus_L: Not really in the search PATH, 15360 # but as the default location of the library. 15361 hardcode_minus_L_F77=yes 15362 fi 15363 ;; 15364 15365 hpux11*) 15366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15367 case $host_cpu in 15368 hppa*64*) 15369 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15370 ;; 15371 ia64*) 15372 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15373 ;; 15374 *) 15375 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15376 ;; 15377 esac 15378 else 15379 case $host_cpu in 15380 hppa*64*) 15381 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15382 ;; 15383 ia64*) 15384 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15385 ;; 15386 *) 15387 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15388 ;; 15389 esac 15390 fi 15391 if test "$with_gnu_ld" = no; then 15392 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15393 hardcode_libdir_separator_F77=: 15394 15395 case $host_cpu in 15396 hppa*64*|ia64*) 15397 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15398 hardcode_direct_F77=no 15399 hardcode_shlibpath_var_F77=no 15400 ;; 15401 *) 15402 hardcode_direct_F77=yes 15403 export_dynamic_flag_spec_F77='${wl}-E' 15404 15405 # hardcode_minus_L: Not really in the search PATH, 15406 # but as the default location of the library. 15407 hardcode_minus_L_F77=yes 15408 ;; 15409 esac 15410 fi 15411 ;; 15412 15413 irix5* | irix6* | nonstopux*) 15414 if test "$GCC" = yes; then 15415 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' 15416 else 15417 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' 15418 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15419 fi 15420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15421 hardcode_libdir_separator_F77=: 15422 link_all_deplibs_F77=yes 15423 ;; 15424 15425 netbsd*) 15426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15427 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15428 else 15429 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15430 fi 15431 hardcode_libdir_flag_spec_F77='-R$libdir' 15432 hardcode_direct_F77=yes 15433 hardcode_shlibpath_var_F77=no 15434 ;; 15435 15436 newsos6) 15437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15438 hardcode_direct_F77=yes 15439 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15440 hardcode_libdir_separator_F77=: 15441 hardcode_shlibpath_var_F77=no 15442 ;; 15443 15444 openbsd*) 15445 hardcode_direct_F77=yes 15446 hardcode_shlibpath_var_F77=no 15447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15448 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15449 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15450 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15451 export_dynamic_flag_spec_F77='${wl}-E' 15452 else 15453 case $host_os in 15454 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15455 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15456 hardcode_libdir_flag_spec_F77='-R$libdir' 15457 ;; 15458 *) 15459 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15460 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15461 ;; 15462 esac 15463 fi 15464 ;; 15465 15466 os2*) 15467 hardcode_libdir_flag_spec_F77='-L$libdir' 15468 hardcode_minus_L_F77=yes 15469 allow_undefined_flag_F77=unsupported 15470 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' 15471 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15472 ;; 15473 15474 osf3*) 15475 if test "$GCC" = yes; then 15476 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15477 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' 15478 else 15479 allow_undefined_flag_F77=' -expect_unresolved \*' 15480 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' 15481 fi 15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15483 hardcode_libdir_separator_F77=: 15484 ;; 15485 15486 osf4* | osf5*) # as osf3* with the addition of -msym flag 15487 if test "$GCC" = yes; then 15488 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15489 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' 15490 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15491 else 15492 allow_undefined_flag_F77=' -expect_unresolved \*' 15493 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' 15494 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~ 15495 $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' 15496 15497 # Both c and cxx compiler support -rpath directly 15498 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15499 fi 15500 hardcode_libdir_separator_F77=: 15501 ;; 15502 15503 solaris*) 15504 no_undefined_flag_F77=' -z text' 15505 if test "$GCC" = yes; then 15506 wlarc='${wl}' 15507 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15508 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15509 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15510 else 15511 wlarc='' 15512 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15513 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15514 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15515 fi 15516 hardcode_libdir_flag_spec_F77='-R$libdir' 15517 hardcode_shlibpath_var_F77=no 15518 case $host_os in 15519 solaris2.[0-5] | solaris2.[0-5].*) ;; 15520 *) 15521 # The compiler driver will combine linker options so we 15522 # cannot just pass the convience library names through 15523 # without $wl, iff we do not link with $LD. 15524 # Luckily, gcc supports the same syntax we need for Sun Studio. 15525 # Supported since Solaris 2.6 (maybe 2.5.1?) 15526 case $wlarc in 15527 '') 15528 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15529 *) 15530 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15531 esac ;; 15532 esac 15533 link_all_deplibs_F77=yes 15534 ;; 15535 15536 sunos4*) 15537 if test "x$host_vendor" = xsequent; then 15538 # Use $CC to link under sequent, because it throws in some extra .o 15539 # files that make .init and .fini sections work. 15540 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15541 else 15542 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15543 fi 15544 hardcode_libdir_flag_spec_F77='-L$libdir' 15545 hardcode_direct_F77=yes 15546 hardcode_minus_L_F77=yes 15547 hardcode_shlibpath_var_F77=no 15548 ;; 15549 15550 sysv4) 15551 case $host_vendor in 15552 sni) 15553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15554 hardcode_direct_F77=yes # is this really true??? 15555 ;; 15556 siemens) 15557 ## LD is ld it makes a PLAMLIB 15558 ## CC just makes a GrossModule. 15559 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15560 reload_cmds_F77='$CC -r -o $output$reload_objs' 15561 hardcode_direct_F77=no 15562 ;; 15563 motorola) 15564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15565 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15566 ;; 15567 esac 15568 runpath_var='LD_RUN_PATH' 15569 hardcode_shlibpath_var_F77=no 15570 ;; 15571 15572 sysv4.3*) 15573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15574 hardcode_shlibpath_var_F77=no 15575 export_dynamic_flag_spec_F77='-Bexport' 15576 ;; 15577 15578 sysv4*MP*) 15579 if test -d /usr/nec; then 15580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15581 hardcode_shlibpath_var_F77=no 15582 runpath_var=LD_RUN_PATH 15583 hardcode_runpath_var=yes 15584 ld_shlibs_F77=yes 15585 fi 15586 ;; 15587 15588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15589 no_undefined_flag_F77='${wl}-z,text' 15590 archive_cmds_need_lc_F77=no 15591 hardcode_shlibpath_var_F77=no 15592 runpath_var='LD_RUN_PATH' 15593 15594 if test "$GCC" = yes; then 15595 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15596 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15597 else 15598 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15599 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15600 fi 15601 ;; 15602 15603 sysv5* | sco3.2v5* | sco5v6*) 15604 # Note: We can NOT use -z defs as we might desire, because we do not 15605 # link with -lc, and that would cause any symbols used from libc to 15606 # always be unresolved, which means just about no library would 15607 # ever link correctly. If we're not using GNU ld we use -z text 15608 # though, which does catch some bad symbols but isn't as heavy-handed 15609 # as -z defs. 15610 no_undefined_flag_F77='${wl}-z,text' 15611 allow_undefined_flag_F77='${wl}-z,nodefs' 15612 archive_cmds_need_lc_F77=no 15613 hardcode_shlibpath_var_F77=no 15614 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15615 hardcode_libdir_separator_F77=':' 15616 link_all_deplibs_F77=yes 15617 export_dynamic_flag_spec_F77='${wl}-Bexport' 15618 runpath_var='LD_RUN_PATH' 15619 15620 if test "$GCC" = yes; then 15621 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15622 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15623 else 15624 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15625 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15626 fi 15627 ;; 15628 15629 uts4*) 15630 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15631 hardcode_libdir_flag_spec_F77='-L$libdir' 15632 hardcode_shlibpath_var_F77=no 15633 ;; 15634 15635 *) 15636 ld_shlibs_F77=no 15637 ;; 15638 esac 15639 fi 15640 15641{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15642echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15643test "$ld_shlibs_F77" = no && can_build_shared=no 15644 15645# 15646# Do we need to explicitly link libc? 15647# 15648case "x$archive_cmds_need_lc_F77" in 15649x|xyes) 15650 # Assume -lc should be added 15651 archive_cmds_need_lc_F77=yes 15652 15653 if test "$enable_shared" = yes && test "$GCC" = yes; then 15654 case $archive_cmds_F77 in 15655 *'~'*) 15656 # FIXME: we may have to deal with multi-command sequences. 15657 ;; 15658 '$CC '*) 15659 # Test whether the compiler implicitly links with -lc since on some 15660 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15661 # to ld, don't add -lc before -lgcc. 15662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15663echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15664 $rm conftest* 15665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15666 15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15668 (eval $ac_compile) 2>&5 15669 ac_status=$? 15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15671 (exit $ac_status); } 2>conftest.err; then 15672 soname=conftest 15673 lib=conftest 15674 libobjs=conftest.$ac_objext 15675 deplibs= 15676 wl=$lt_prog_compiler_wl_F77 15677 pic_flag=$lt_prog_compiler_pic_F77 15678 compiler_flags=-v 15679 linker_flags=-v 15680 verstring= 15681 output_objdir=. 15682 libname=conftest 15683 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15684 allow_undefined_flag_F77= 15685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15686 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15687 ac_status=$? 15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15689 (exit $ac_status); } 15690 then 15691 archive_cmds_need_lc_F77=no 15692 else 15693 archive_cmds_need_lc_F77=yes 15694 fi 15695 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15696 else 15697 cat conftest.err 1>&5 15698 fi 15699 $rm conftest* 15700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15701echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15702 ;; 15703 esac 15704 fi 15705 ;; 15706esac 15707 15708{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15710library_names_spec= 15711libname_spec='lib$name' 15712soname_spec= 15713shrext_cmds=".so" 15714postinstall_cmds= 15715postuninstall_cmds= 15716finish_cmds= 15717finish_eval= 15718shlibpath_var= 15719shlibpath_overrides_runpath=unknown 15720version_type=none 15721dynamic_linker="$host_os ld.so" 15722sys_lib_dlsearch_path_spec="/lib /usr/lib" 15723if test "$GCC" = yes; then 15724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15726 # if the path contains ";" then we assume it to be the separator 15727 # otherwise default to the standard path separator (i.e. ":") - it is 15728 # assumed that no part of a normal pathname contains ";" but that should 15729 # okay in the real world where ";" in dirpaths is itself problematic. 15730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15731 else 15732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15733 fi 15734else 15735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15736fi 15737need_lib_prefix=unknown 15738hardcode_into_libs=no 15739 15740# when you set need_version to no, make sure it does not cause -set_version 15741# flags to be left without arguments 15742need_version=unknown 15743 15744case $host_os in 15745aix3*) 15746 version_type=linux 15747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15748 shlibpath_var=LIBPATH 15749 15750 # AIX 3 has no versioning support, so we append a major version to the name. 15751 soname_spec='${libname}${release}${shared_ext}$major' 15752 ;; 15753 15754aix4* | aix5*) 15755 version_type=linux 15756 need_lib_prefix=no 15757 need_version=no 15758 hardcode_into_libs=yes 15759 if test "$host_cpu" = ia64; then 15760 # AIX 5 supports IA64 15761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15762 shlibpath_var=LD_LIBRARY_PATH 15763 else 15764 # With GCC up to 2.95.x, collect2 would create an import file 15765 # for dependence libraries. The import file would start with 15766 # the line `#! .'. This would cause the generated library to 15767 # depend on `.', always an invalid library. This was fixed in 15768 # development snapshots of GCC prior to 3.0. 15769 case $host_os in 15770 aix4 | aix4.[01] | aix4.[01].*) 15771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15772 echo ' yes ' 15773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15774 : 15775 else 15776 can_build_shared=no 15777 fi 15778 ;; 15779 esac 15780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15781 # soname into executable. Probably we can add versioning support to 15782 # collect2, so additional links can be useful in future. 15783 if test "$aix_use_runtimelinking" = yes; then 15784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15785 # instead of lib<name>.a to let people know that these are not 15786 # typical AIX shared libraries. 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15788 else 15789 # We preserve .a as extension for shared libraries through AIX4.2 15790 # and later when we are not doing run time linking. 15791 library_names_spec='${libname}${release}.a $libname.a' 15792 soname_spec='${libname}${release}${shared_ext}$major' 15793 fi 15794 shlibpath_var=LIBPATH 15795 fi 15796 ;; 15797 15798amigaos*) 15799 library_names_spec='$libname.ixlibrary $libname.a' 15800 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15801 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' 15802 ;; 15803 15804beos*) 15805 library_names_spec='${libname}${shared_ext}' 15806 dynamic_linker="$host_os ld.so" 15807 shlibpath_var=LIBRARY_PATH 15808 ;; 15809 15810bsdi[45]*) 15811 version_type=linux 15812 need_version=no 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15814 soname_spec='${libname}${release}${shared_ext}$major' 15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15816 shlibpath_var=LD_LIBRARY_PATH 15817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15819 # the default ld.so.conf also contains /usr/contrib/lib and 15820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15821 # libtool to hard-code these into programs 15822 ;; 15823 15824cygwin* | mingw* | pw32*) 15825 version_type=windows 15826 shrext_cmds=".dll" 15827 need_version=no 15828 need_lib_prefix=no 15829 15830 case $GCC,$host_os in 15831 yes,cygwin* | yes,mingw* | yes,pw32*) 15832 library_names_spec='$libname.dll.a' 15833 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15834 postinstall_cmds='base_file=`basename \${file}`~ 15835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15836 dldir=$destdir/`dirname \$dlpath`~ 15837 test -d \$dldir || mkdir -p \$dldir~ 15838 $install_prog $dir/$dlname \$dldir/$dlname~ 15839 chmod a+x \$dldir/$dlname' 15840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15841 dlpath=$dir/\$dldll~ 15842 $rm \$dlpath' 15843 shlibpath_overrides_runpath=yes 15844 15845 case $host_os in 15846 cygwin*) 15847 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15850 ;; 15851 mingw*) 15852 # MinGW DLLs use traditional 'lib' prefix 15853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15856 # It is most probably a Windows format PATH printed by 15857 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15858 # path with ; separators, and with drive letters. We can handle the 15859 # drive letters (cygwin fileutils understands them), so leave them, 15860 # especially as we might pass files found there to a mingw objdump, 15861 # which wouldn't understand a cygwinified path. Ahh. 15862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15863 else 15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15865 fi 15866 ;; 15867 pw32*) 15868 # pw32 DLLs use 'pw' prefix rather than 'lib' 15869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15870 ;; 15871 esac 15872 ;; 15873 15874 linux*) 15875 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 15876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15877 supports_anon_versioning=no 15878 case `$LD -v 2>/dev/null` in 15879 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15880 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15881 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15882 *\ 2.11.*) ;; # other 2.11 versions 15883 *) supports_anon_versioning=yes ;; 15884 esac 15885 if test $supports_anon_versioning = yes; then 15886 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 15887cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15888$echo "local: *; };" >> $output_objdir/$libname.ver~ 15889 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15890 else 15891 $archive_expsym_cmds="$archive_cmds" 15892 fi 15893 else 15894 ld_shlibs=no 15895 fi 15896 ;; 15897 15898 *) 15899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15900 ;; 15901 esac 15902 dynamic_linker='Win32 ld.exe' 15903 # FIXME: first we should search . and the directory the executable is in 15904 shlibpath_var=PATH 15905 ;; 15906 15907darwin* | rhapsody*) 15908 dynamic_linker="$host_os dyld" 15909 version_type=darwin 15910 need_lib_prefix=no 15911 need_version=no 15912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15913 soname_spec='${libname}${release}${major}$shared_ext' 15914 shlibpath_overrides_runpath=yes 15915 shlibpath_var=DYLD_LIBRARY_PATH 15916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15917 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15918 if test "$GCC" = yes; then 15919 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15920 else 15921 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15922 fi 15923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15924 ;; 15925 15926dgux*) 15927 version_type=linux 15928 need_lib_prefix=no 15929 need_version=no 15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15931 soname_spec='${libname}${release}${shared_ext}$major' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 ;; 15934 15935freebsd1*) 15936 dynamic_linker=no 15937 ;; 15938 15939kfreebsd*-gnu) 15940 version_type=linux 15941 need_lib_prefix=no 15942 need_version=no 15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15944 soname_spec='${libname}${release}${shared_ext}$major' 15945 shlibpath_var=LD_LIBRARY_PATH 15946 shlibpath_overrides_runpath=no 15947 hardcode_into_libs=yes 15948 dynamic_linker='GNU ld.so' 15949 ;; 15950 15951freebsd* | dragonfly*) 15952 # DragonFly does not have aout. When/if they implement a new 15953 # versioning mechanism, adjust this. 15954 if test -x /usr/bin/objformat; then 15955 objformat=`/usr/bin/objformat` 15956 else 15957 case $host_os in 15958 freebsd[123]*) objformat=aout ;; 15959 *) objformat=elf ;; 15960 esac 15961 fi 15962 # Handle Gentoo/FreeBSD as it was Linux 15963 case $host_vendor in 15964 gentoo) 15965 version_type=linux ;; 15966 *) 15967 version_type=freebsd-$objformat ;; 15968 esac 15969 15970 case $version_type in 15971 freebsd-elf*) 15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15973 need_version=no 15974 need_lib_prefix=no 15975 ;; 15976 freebsd-*) 15977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15978 need_version=yes 15979 ;; 15980 linux) 15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15982 soname_spec='${libname}${release}${shared_ext}$major' 15983 need_lib_prefix=no 15984 need_version=no 15985 ;; 15986 esac 15987 shlibpath_var=LD_LIBRARY_PATH 15988 case $host_os in 15989 freebsd2*) 15990 shlibpath_overrides_runpath=yes 15991 ;; 15992 freebsd3.[01]* | freebsdelf3.[01]*) 15993 shlibpath_overrides_runpath=yes 15994 hardcode_into_libs=yes 15995 ;; 15996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15998 shlibpath_overrides_runpath=no 15999 hardcode_into_libs=yes 16000 ;; 16001 freebsd*) # from 4.6 on 16002 shlibpath_overrides_runpath=yes 16003 hardcode_into_libs=yes 16004 ;; 16005 esac 16006 ;; 16007 16008gnu*) 16009 version_type=linux 16010 need_lib_prefix=no 16011 need_version=no 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16013 soname_spec='${libname}${release}${shared_ext}$major' 16014 shlibpath_var=LD_LIBRARY_PATH 16015 hardcode_into_libs=yes 16016 ;; 16017 16018hpux9* | hpux10* | hpux11*) 16019 # Give a soname corresponding to the major version so that dld.sl refuses to 16020 # link against other versions. 16021 version_type=sunos 16022 need_lib_prefix=no 16023 need_version=no 16024 case $host_cpu in 16025 ia64*) 16026 shrext_cmds='.so' 16027 hardcode_into_libs=yes 16028 dynamic_linker="$host_os dld.so" 16029 shlibpath_var=LD_LIBRARY_PATH 16030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16032 soname_spec='${libname}${release}${shared_ext}$major' 16033 if test "X$HPUX_IA64_MODE" = X32; then 16034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16035 else 16036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16037 fi 16038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16039 ;; 16040 hppa*64*) 16041 shrext_cmds='.sl' 16042 hardcode_into_libs=yes 16043 dynamic_linker="$host_os dld.sl" 16044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16047 soname_spec='${libname}${release}${shared_ext}$major' 16048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16050 ;; 16051 *) 16052 shrext_cmds='.sl' 16053 dynamic_linker="$host_os dld.sl" 16054 shlibpath_var=SHLIB_PATH 16055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16057 soname_spec='${libname}${release}${shared_ext}$major' 16058 ;; 16059 esac 16060 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16061 postinstall_cmds='chmod 555 $lib' 16062 ;; 16063 16064interix3*) 16065 version_type=linux 16066 need_lib_prefix=no 16067 need_version=no 16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16069 soname_spec='${libname}${release}${shared_ext}$major' 16070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 shlibpath_overrides_runpath=no 16073 hardcode_into_libs=yes 16074 ;; 16075 16076irix5* | irix6* | nonstopux*) 16077 case $host_os in 16078 nonstopux*) version_type=nonstopux ;; 16079 *) 16080 if test "$lt_cv_prog_gnu_ld" = yes; then 16081 version_type=linux 16082 else 16083 version_type=irix 16084 fi ;; 16085 esac 16086 need_lib_prefix=no 16087 need_version=no 16088 soname_spec='${libname}${release}${shared_ext}$major' 16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16090 case $host_os in 16091 irix5* | nonstopux*) 16092 libsuff= shlibsuff= 16093 ;; 16094 *) 16095 case $LD in # libtool.m4 will add one of these switches to LD 16096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16097 libsuff= shlibsuff= libmagic=32-bit;; 16098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16099 libsuff=32 shlibsuff=N32 libmagic=N32;; 16100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16101 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16102 *) libsuff= shlibsuff= libmagic=never-match;; 16103 esac 16104 ;; 16105 esac 16106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16107 shlibpath_overrides_runpath=no 16108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16110 hardcode_into_libs=yes 16111 ;; 16112 16113# No shared lib support for Linux oldld, aout, or coff. 16114linux*oldld* | linux*aout* | linux*coff*) 16115 dynamic_linker=no 16116 ;; 16117 16118# This must be Linux ELF. 16119linux*) 16120 version_type=linux 16121 need_lib_prefix=no 16122 need_version=no 16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16124 soname_spec='${libname}${release}${shared_ext}$major' 16125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16126 shlibpath_var=LD_LIBRARY_PATH 16127 shlibpath_overrides_runpath=no 16128 # This implies no fast_install, which is unacceptable. 16129 # Some rework will be needed to allow for fast_install 16130 # before this can be enabled. 16131 hardcode_into_libs=yes 16132 16133 # Append ld.so.conf contents to the search path 16134 if test -f /etc/ld.so.conf; then 16135 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16137 fi 16138 16139 # We used to test for /lib/ld.so.1 and disable shared libraries on 16140 # powerpc, because MkLinux only supported shared libraries with the 16141 # GNU dynamic linker. Since this was broken with cross compilers, 16142 # most powerpc-linux boxes support dynamic linking these days and 16143 # people can always --disable-shared, the test was removed, and we 16144 # assume the GNU/Linux dynamic linker is in use. 16145 dynamic_linker='GNU/Linux ld.so' 16146 ;; 16147 16148knetbsd*-gnu) 16149 version_type=linux 16150 need_lib_prefix=no 16151 need_version=no 16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16153 soname_spec='${libname}${release}${shared_ext}$major' 16154 shlibpath_var=LD_LIBRARY_PATH 16155 shlibpath_overrides_runpath=no 16156 hardcode_into_libs=yes 16157 dynamic_linker='GNU ld.so' 16158 ;; 16159 16160netbsd*) 16161 version_type=sunos 16162 need_lib_prefix=no 16163 need_version=no 16164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16167 dynamic_linker='NetBSD (a.out) ld.so' 16168 else 16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16170 soname_spec='${libname}${release}${shared_ext}$major' 16171 dynamic_linker='NetBSD ld.elf_so' 16172 fi 16173 shlibpath_var=LD_LIBRARY_PATH 16174 shlibpath_overrides_runpath=yes 16175 hardcode_into_libs=yes 16176 ;; 16177 16178newsos6) 16179 version_type=linux 16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16181 shlibpath_var=LD_LIBRARY_PATH 16182 shlibpath_overrides_runpath=yes 16183 ;; 16184 16185nto-qnx*) 16186 version_type=linux 16187 need_lib_prefix=no 16188 need_version=no 16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16190 soname_spec='${libname}${release}${shared_ext}$major' 16191 shlibpath_var=LD_LIBRARY_PATH 16192 shlibpath_overrides_runpath=yes 16193 ;; 16194 16195openbsd*) 16196 version_type=sunos 16197 sys_lib_dlsearch_path_spec="/usr/lib" 16198 need_lib_prefix=no 16199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16200 case $host_os in 16201 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16202 *) need_version=no ;; 16203 esac 16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16206 shlibpath_var=LD_LIBRARY_PATH 16207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16208 case $host_os in 16209 openbsd2.[89] | openbsd2.[89].*) 16210 shlibpath_overrides_runpath=no 16211 ;; 16212 *) 16213 shlibpath_overrides_runpath=yes 16214 ;; 16215 esac 16216 else 16217 shlibpath_overrides_runpath=yes 16218 fi 16219 ;; 16220 16221os2*) 16222 libname_spec='$name' 16223 shrext_cmds=".dll" 16224 need_lib_prefix=no 16225 library_names_spec='$libname${shared_ext} $libname.a' 16226 dynamic_linker='OS/2 ld.exe' 16227 shlibpath_var=LIBPATH 16228 ;; 16229 16230osf3* | osf4* | osf5*) 16231 version_type=osf 16232 need_lib_prefix=no 16233 need_version=no 16234 soname_spec='${libname}${release}${shared_ext}$major' 16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16239 ;; 16240 16241solaris*) 16242 version_type=linux 16243 need_lib_prefix=no 16244 need_version=no 16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16246 soname_spec='${libname}${release}${shared_ext}$major' 16247 shlibpath_var=LD_LIBRARY_PATH 16248 shlibpath_overrides_runpath=yes 16249 hardcode_into_libs=yes 16250 # ldd complains unless libraries are executable 16251 postinstall_cmds='chmod +x $lib' 16252 ;; 16253 16254sunos4*) 16255 version_type=sunos 16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 shlibpath_overrides_runpath=yes 16260 if test "$with_gnu_ld" = yes; then 16261 need_lib_prefix=no 16262 fi 16263 need_version=yes 16264 ;; 16265 16266sysv4 | sysv4.3*) 16267 version_type=linux 16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16269 soname_spec='${libname}${release}${shared_ext}$major' 16270 shlibpath_var=LD_LIBRARY_PATH 16271 case $host_vendor in 16272 sni) 16273 shlibpath_overrides_runpath=no 16274 need_lib_prefix=no 16275 export_dynamic_flag_spec='${wl}-Blargedynsym' 16276 runpath_var=LD_RUN_PATH 16277 ;; 16278 siemens) 16279 need_lib_prefix=no 16280 ;; 16281 motorola) 16282 need_lib_prefix=no 16283 need_version=no 16284 shlibpath_overrides_runpath=no 16285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16286 ;; 16287 esac 16288 ;; 16289 16290sysv4*MP*) 16291 if test -d /usr/nec ;then 16292 version_type=linux 16293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16294 soname_spec='$libname${shared_ext}.$major' 16295 shlibpath_var=LD_LIBRARY_PATH 16296 fi 16297 ;; 16298 16299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16300 version_type=freebsd-elf 16301 need_lib_prefix=no 16302 need_version=no 16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16304 soname_spec='${libname}${release}${shared_ext}$major' 16305 shlibpath_var=LD_LIBRARY_PATH 16306 hardcode_into_libs=yes 16307 if test "$with_gnu_ld" = yes; then 16308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16309 shlibpath_overrides_runpath=no 16310 else 16311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16312 shlibpath_overrides_runpath=yes 16313 case $host_os in 16314 sco3.2v5*) 16315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16316 ;; 16317 esac 16318 fi 16319 sys_lib_dlsearch_path_spec='/usr/lib' 16320 ;; 16321 16322uts4*) 16323 version_type=linux 16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16325 soname_spec='${libname}${release}${shared_ext}$major' 16326 shlibpath_var=LD_LIBRARY_PATH 16327 ;; 16328 16329*) 16330 dynamic_linker=no 16331 ;; 16332esac 16333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16334echo "${ECHO_T}$dynamic_linker" >&6; } 16335test "$dynamic_linker" = no && can_build_shared=no 16336 16337variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16338if test "$GCC" = yes; then 16339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16340fi 16341 16342{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16344hardcode_action_F77= 16345if test -n "$hardcode_libdir_flag_spec_F77" || \ 16346 test -n "$runpath_var_F77" || \ 16347 test "X$hardcode_automatic_F77" = "Xyes" ; then 16348 16349 # We can hardcode non-existant directories. 16350 if test "$hardcode_direct_F77" != no && 16351 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16352 # have to relink, otherwise we might link with an installed library 16353 # when we should be linking with a yet-to-be-installed one 16354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16355 test "$hardcode_minus_L_F77" != no; then 16356 # Linking always hardcodes the temporary library directory. 16357 hardcode_action_F77=relink 16358 else 16359 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16360 hardcode_action_F77=immediate 16361 fi 16362else 16363 # We cannot hardcode anything, or else we can only hardcode existing 16364 # directories. 16365 hardcode_action_F77=unsupported 16366fi 16367{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16368echo "${ECHO_T}$hardcode_action_F77" >&6; } 16369 16370if test "$hardcode_action_F77" = relink; then 16371 # Fast installation is not supported 16372 enable_fast_install=no 16373elif test "$shlibpath_overrides_runpath" = yes || 16374 test "$enable_shared" = no; then 16375 # Fast installation is not necessary 16376 enable_fast_install=needless 16377fi 16378 16379 16380# The else clause should only fire when bootstrapping the 16381# libtool distribution, otherwise you forgot to ship ltmain.sh 16382# with your package, and you will get complaints that there are 16383# no rules to generate ltmain.sh. 16384if test -f "$ltmain"; then 16385 # See if we are running on zsh, and set the options which allow our commands through 16386 # without removal of \ escapes. 16387 if test -n "${ZSH_VERSION+set}" ; then 16388 setopt NO_GLOB_SUBST 16389 fi 16390 # Now quote all the things that may contain metacharacters while being 16391 # careful not to overquote the AC_SUBSTed values. We take copies of the 16392 # variables and quote the copies for generation of the libtool script. 16393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16394 SED SHELL STRIP \ 16395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16397 deplibs_check_method reload_flag reload_cmds need_locks \ 16398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16399 lt_cv_sys_global_symbol_to_c_name_address \ 16400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16401 old_postinstall_cmds old_postuninstall_cmds \ 16402 compiler_F77 \ 16403 CC_F77 \ 16404 LD_F77 \ 16405 lt_prog_compiler_wl_F77 \ 16406 lt_prog_compiler_pic_F77 \ 16407 lt_prog_compiler_static_F77 \ 16408 lt_prog_compiler_no_builtin_flag_F77 \ 16409 export_dynamic_flag_spec_F77 \ 16410 thread_safe_flag_spec_F77 \ 16411 whole_archive_flag_spec_F77 \ 16412 enable_shared_with_static_runtimes_F77 \ 16413 old_archive_cmds_F77 \ 16414 old_archive_from_new_cmds_F77 \ 16415 predep_objects_F77 \ 16416 postdep_objects_F77 \ 16417 predeps_F77 \ 16418 postdeps_F77 \ 16419 compiler_lib_search_path_F77 \ 16420 archive_cmds_F77 \ 16421 archive_expsym_cmds_F77 \ 16422 postinstall_cmds_F77 \ 16423 postuninstall_cmds_F77 \ 16424 old_archive_from_expsyms_cmds_F77 \ 16425 allow_undefined_flag_F77 \ 16426 no_undefined_flag_F77 \ 16427 export_symbols_cmds_F77 \ 16428 hardcode_libdir_flag_spec_F77 \ 16429 hardcode_libdir_flag_spec_ld_F77 \ 16430 hardcode_libdir_separator_F77 \ 16431 hardcode_automatic_F77 \ 16432 module_cmds_F77 \ 16433 module_expsym_cmds_F77 \ 16434 lt_cv_prog_compiler_c_o_F77 \ 16435 exclude_expsyms_F77 \ 16436 include_expsyms_F77; do 16437 16438 case $var in 16439 old_archive_cmds_F77 | \ 16440 old_archive_from_new_cmds_F77 | \ 16441 archive_cmds_F77 | \ 16442 archive_expsym_cmds_F77 | \ 16443 module_cmds_F77 | \ 16444 module_expsym_cmds_F77 | \ 16445 old_archive_from_expsyms_cmds_F77 | \ 16446 export_symbols_cmds_F77 | \ 16447 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16448 postinstall_cmds | postuninstall_cmds | \ 16449 old_postinstall_cmds | old_postuninstall_cmds | \ 16450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16451 # Double-quote double-evaled strings. 16452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16453 ;; 16454 *) 16455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16456 ;; 16457 esac 16458 done 16459 16460 case $lt_echo in 16461 *'\$0 --fallback-echo"') 16462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16463 ;; 16464 esac 16465 16466cfgfile="$ofile" 16467 16468 cat <<__EOF__ >> "$cfgfile" 16469# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16470 16471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16472 16473# Shell to use when invoking shell scripts. 16474SHELL=$lt_SHELL 16475 16476# Whether or not to build shared libraries. 16477build_libtool_libs=$enable_shared 16478 16479# Whether or not to build static libraries. 16480build_old_libs=$enable_static 16481 16482# Whether or not to add -lc for building shared libraries. 16483build_libtool_need_lc=$archive_cmds_need_lc_F77 16484 16485# Whether or not to disallow shared libs when runtime libs are static 16486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16487 16488# Whether or not to optimize for fast installation. 16489fast_install=$enable_fast_install 16490 16491# The host system. 16492host_alias=$host_alias 16493host=$host 16494host_os=$host_os 16495 16496# The build system. 16497build_alias=$build_alias 16498build=$build 16499build_os=$build_os 16500 16501# An echo program that does not interpret backslashes. 16502echo=$lt_echo 16503 16504# The archiver. 16505AR=$lt_AR 16506AR_FLAGS=$lt_AR_FLAGS 16507 16508# A C compiler. 16509LTCC=$lt_LTCC 16510 16511# LTCC compiler flags. 16512LTCFLAGS=$lt_LTCFLAGS 16513 16514# A language-specific compiler. 16515CC=$lt_compiler_F77 16516 16517# Is the compiler the GNU C compiler? 16518with_gcc=$GCC_F77 16519 16520# An ERE matcher. 16521EGREP=$lt_EGREP 16522 16523# The linker used to build libraries. 16524LD=$lt_LD_F77 16525 16526# Whether we need hard or soft links. 16527LN_S=$lt_LN_S 16528 16529# A BSD-compatible nm program. 16530NM=$lt_NM 16531 16532# A symbol stripping program 16533STRIP=$lt_STRIP 16534 16535# Used to examine libraries when file_magic_cmd begins "file" 16536MAGIC_CMD=$MAGIC_CMD 16537 16538# Used on cygwin: DLL creation program. 16539DLLTOOL="$DLLTOOL" 16540 16541# Used on cygwin: object dumper. 16542OBJDUMP="$OBJDUMP" 16543 16544# Used on cygwin: assembler. 16545AS="$AS" 16546 16547# The name of the directory that contains temporary libtool files. 16548objdir=$objdir 16549 16550# How to create reloadable object files. 16551reload_flag=$lt_reload_flag 16552reload_cmds=$lt_reload_cmds 16553 16554# How to pass a linker flag through the compiler. 16555wl=$lt_lt_prog_compiler_wl_F77 16556 16557# Object file suffix (normally "o"). 16558objext="$ac_objext" 16559 16560# Old archive suffix (normally "a"). 16561libext="$libext" 16562 16563# Shared library suffix (normally ".so"). 16564shrext_cmds='$shrext_cmds' 16565 16566# Executable file suffix (normally ""). 16567exeext="$exeext" 16568 16569# Additional compiler flags for building library objects. 16570pic_flag=$lt_lt_prog_compiler_pic_F77 16571pic_mode=$pic_mode 16572 16573# What is the maximum length of a command? 16574max_cmd_len=$lt_cv_sys_max_cmd_len 16575 16576# Does compiler simultaneously support -c and -o options? 16577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16578 16579# Must we lock files when doing compilation? 16580need_locks=$lt_need_locks 16581 16582# Do we need the lib prefix for modules? 16583need_lib_prefix=$need_lib_prefix 16584 16585# Do we need a version for libraries? 16586need_version=$need_version 16587 16588# Whether dlopen is supported. 16589dlopen_support=$enable_dlopen 16590 16591# Whether dlopen of programs is supported. 16592dlopen_self=$enable_dlopen_self 16593 16594# Whether dlopen of statically linked programs is supported. 16595dlopen_self_static=$enable_dlopen_self_static 16596 16597# Compiler flag to prevent dynamic linking. 16598link_static_flag=$lt_lt_prog_compiler_static_F77 16599 16600# Compiler flag to turn off builtin functions. 16601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16602 16603# Compiler flag to allow reflexive dlopens. 16604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16605 16606# Compiler flag to generate shared objects directly from archives. 16607whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16608 16609# Compiler flag to generate thread-safe objects. 16610thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16611 16612# Library versioning type. 16613version_type=$version_type 16614 16615# Format of library name prefix. 16616libname_spec=$lt_libname_spec 16617 16618# List of archive names. First name is the real one, the rest are links. 16619# The last name is the one that the linker finds with -lNAME. 16620library_names_spec=$lt_library_names_spec 16621 16622# The coded name of the library, if different from the real name. 16623soname_spec=$lt_soname_spec 16624 16625# Commands used to build and install an old-style archive. 16626RANLIB=$lt_RANLIB 16627old_archive_cmds=$lt_old_archive_cmds_F77 16628old_postinstall_cmds=$lt_old_postinstall_cmds 16629old_postuninstall_cmds=$lt_old_postuninstall_cmds 16630 16631# Create an old-style archive from a shared archive. 16632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16633 16634# Create a temporary old-style archive to link instead of a shared archive. 16635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16636 16637# Commands used to build and install a shared archive. 16638archive_cmds=$lt_archive_cmds_F77 16639archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16640postinstall_cmds=$lt_postinstall_cmds 16641postuninstall_cmds=$lt_postuninstall_cmds 16642 16643# Commands used to build a loadable module (assumed same as above if empty) 16644module_cmds=$lt_module_cmds_F77 16645module_expsym_cmds=$lt_module_expsym_cmds_F77 16646 16647# Commands to strip libraries. 16648old_striplib=$lt_old_striplib 16649striplib=$lt_striplib 16650 16651# Dependencies to place before the objects being linked to create a 16652# shared library. 16653predep_objects=$lt_predep_objects_F77 16654 16655# Dependencies to place after the objects being linked to create a 16656# shared library. 16657postdep_objects=$lt_postdep_objects_F77 16658 16659# Dependencies to place before the objects being linked to create a 16660# shared library. 16661predeps=$lt_predeps_F77 16662 16663# Dependencies to place after the objects being linked to create a 16664# shared library. 16665postdeps=$lt_postdeps_F77 16666 16667# The library search path used internally by the compiler when linking 16668# a shared library. 16669compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16670 16671# Method to check whether dependent libraries are shared objects. 16672deplibs_check_method=$lt_deplibs_check_method 16673 16674# Command to use when deplibs_check_method == file_magic. 16675file_magic_cmd=$lt_file_magic_cmd 16676 16677# Flag that allows shared libraries with undefined symbols to be built. 16678allow_undefined_flag=$lt_allow_undefined_flag_F77 16679 16680# Flag that forces no undefined symbols. 16681no_undefined_flag=$lt_no_undefined_flag_F77 16682 16683# Commands used to finish a libtool library installation in a directory. 16684finish_cmds=$lt_finish_cmds 16685 16686# Same as above, but a single script fragment to be evaled but not shown. 16687finish_eval=$lt_finish_eval 16688 16689# Take the output of nm and produce a listing of raw symbols and C names. 16690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16691 16692# Transform the output of nm in a proper C declaration 16693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16694 16695# Transform the output of nm in a C name address pair 16696global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16697 16698# This is the shared library runtime path variable. 16699runpath_var=$runpath_var 16700 16701# This is the shared library path variable. 16702shlibpath_var=$shlibpath_var 16703 16704# Is shlibpath searched before the hard-coded library search path? 16705shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16706 16707# How to hardcode a shared library path into an executable. 16708hardcode_action=$hardcode_action_F77 16709 16710# Whether we should hardcode library paths into libraries. 16711hardcode_into_libs=$hardcode_into_libs 16712 16713# Flag to hardcode \$libdir into a binary during linking. 16714# This must work even if \$libdir does not exist. 16715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16716 16717# If ld is used when linking, flag to hardcode \$libdir into 16718# a binary during linking. This must work even if \$libdir does 16719# not exist. 16720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16721 16722# Whether we need a single -rpath flag with a separated argument. 16723hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16724 16725# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16726# resulting binary. 16727hardcode_direct=$hardcode_direct_F77 16728 16729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16730# resulting binary. 16731hardcode_minus_L=$hardcode_minus_L_F77 16732 16733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16734# the resulting binary. 16735hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16736 16737# Set to yes if building a shared library automatically hardcodes DIR into the library 16738# and all subsequent libraries and executables linked against it. 16739hardcode_automatic=$hardcode_automatic_F77 16740 16741# Variables whose values should be saved in libtool wrapper scripts and 16742# restored at relink time. 16743variables_saved_for_relink="$variables_saved_for_relink" 16744 16745# Whether libtool must link a program against all its dependency libraries. 16746link_all_deplibs=$link_all_deplibs_F77 16747 16748# Compile-time system search path for libraries 16749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16750 16751# Run-time system search path for libraries 16752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16753 16754# Fix the shell variable \$srcfile for the compiler. 16755fix_srcfile_path="$fix_srcfile_path_F77" 16756 16757# Set to yes if exported symbols are required. 16758always_export_symbols=$always_export_symbols_F77 16759 16760# The commands to list exported symbols. 16761export_symbols_cmds=$lt_export_symbols_cmds_F77 16762 16763# The commands to extract the exported symbol list from a shared archive. 16764extract_expsyms_cmds=$lt_extract_expsyms_cmds 16765 16766# Symbols that should not be listed in the preloaded symbols. 16767exclude_expsyms=$lt_exclude_expsyms_F77 16768 16769# Symbols that must always be exported. 16770include_expsyms=$lt_include_expsyms_F77 16771 16772# ### END LIBTOOL TAG CONFIG: $tagname 16773 16774__EOF__ 16775 16776 16777else 16778 # If there is no Makefile yet, we rely on a make rule to execute 16779 # `config.status --recheck' to rerun these tests and create the 16780 # libtool script then. 16781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16782 if test -f "$ltmain_in"; then 16783 test -f Makefile && make "$ltmain" 16784 fi 16785fi 16786 16787 16788ac_ext=c 16789ac_cpp='$CPP $CPPFLAGS' 16790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16792ac_compiler_gnu=$ac_cv_c_compiler_gnu 16793 16794CC="$lt_save_CC" 16795 16796 else 16797 tagname="" 16798 fi 16799 ;; 16800 16801 GCJ) 16802 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16803 16804 16805# Source file extension for Java test sources. 16806ac_ext=java 16807 16808# Object file extension for compiled Java test sources. 16809objext=o 16810objext_GCJ=$objext 16811 16812# Code to be used in simple compile tests 16813lt_simple_compile_test_code="class foo {}\n" 16814 16815# Code to be used in simple link tests 16816lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16817 16818# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16819 16820# If no C compiler was specified, use CC. 16821LTCC=${LTCC-"$CC"} 16822 16823# If no C compiler flags were specified, use CFLAGS. 16824LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16825 16826# Allow CC to be a program name with arguments. 16827compiler=$CC 16828 16829 16830# save warnings/boilerplate of simple test code 16831ac_outfile=conftest.$ac_objext 16832printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16833eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16834_lt_compiler_boilerplate=`cat conftest.err` 16835$rm conftest* 16836 16837ac_outfile=conftest.$ac_objext 16838printf "$lt_simple_link_test_code" >conftest.$ac_ext 16839eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16840_lt_linker_boilerplate=`cat conftest.err` 16841$rm conftest* 16842 16843 16844# Allow CC to be a program name with arguments. 16845lt_save_CC="$CC" 16846CC=${GCJ-"gcj"} 16847compiler=$CC 16848compiler_GCJ=$CC 16849for cc_temp in $compiler""; do 16850 case $cc_temp in 16851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16853 \-*) ;; 16854 *) break;; 16855 esac 16856done 16857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16858 16859 16860# GCJ did not exist at the time GCC didn't implicitly link libc in. 16861archive_cmds_need_lc_GCJ=no 16862 16863old_archive_cmds_GCJ=$old_archive_cmds 16864 16865 16866lt_prog_compiler_no_builtin_flag_GCJ= 16867 16868if test "$GCC" = yes; then 16869 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16870 16871 16872{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16873echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16874if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16875 echo $ECHO_N "(cached) $ECHO_C" >&6 16876else 16877 lt_cv_prog_compiler_rtti_exceptions=no 16878 ac_outfile=conftest.$ac_objext 16879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16880 lt_compiler_flag="-fno-rtti -fno-exceptions" 16881 # Insert the option either (1) after the last *FLAGS variable, or 16882 # (2) before a word containing "conftest.", or (3) at the end. 16883 # Note that $ac_compile itself does not contain backslashes and begins 16884 # with a dollar sign (not a hyphen), so the echo should work correctly. 16885 # The option is referenced via a variable to avoid confusing sed. 16886 lt_compile=`echo "$ac_compile" | $SED \ 16887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16889 -e 's:$: $lt_compiler_flag:'` 16890 (eval echo "\"\$as_me:16890: $lt_compile\"" >&5) 16891 (eval "$lt_compile" 2>conftest.err) 16892 ac_status=$? 16893 cat conftest.err >&5 16894 echo "$as_me:16894: \$? = $ac_status" >&5 16895 if (exit $ac_status) && test -s "$ac_outfile"; then 16896 # The compiler can only warn and ignore the option if not recognized 16897 # So say no if there are warnings other than the usual output. 16898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16901 lt_cv_prog_compiler_rtti_exceptions=yes 16902 fi 16903 fi 16904 $rm conftest* 16905 16906fi 16907{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16908echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16909 16910if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16911 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16912else 16913 : 16914fi 16915 16916fi 16917 16918lt_prog_compiler_wl_GCJ= 16919lt_prog_compiler_pic_GCJ= 16920lt_prog_compiler_static_GCJ= 16921 16922{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16923echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16924 16925 if test "$GCC" = yes; then 16926 lt_prog_compiler_wl_GCJ='-Wl,' 16927 lt_prog_compiler_static_GCJ='-static' 16928 16929 case $host_os in 16930 aix*) 16931 # All AIX code is PIC. 16932 if test "$host_cpu" = ia64; then 16933 # AIX 5 now supports IA64 processor 16934 lt_prog_compiler_static_GCJ='-Bstatic' 16935 fi 16936 ;; 16937 16938 amigaos*) 16939 # FIXME: we need at least 68020 code to build shared libraries, but 16940 # adding the `-m68020' flag to GCC prevents building anything better, 16941 # like `-m68040'. 16942 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16943 ;; 16944 16945 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16946 # PIC is the default for these OSes. 16947 ;; 16948 16949 mingw* | pw32* | os2*) 16950 # This hack is so that the source file can tell whether it is being 16951 # built for inclusion in a dll (and should export symbols for example). 16952 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16953 ;; 16954 16955 darwin* | rhapsody*) 16956 # PIC is the default on this platform 16957 # Common symbols not allowed in MH_DYLIB files 16958 lt_prog_compiler_pic_GCJ='-fno-common' 16959 ;; 16960 16961 interix3*) 16962 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16963 # Instead, we relocate shared libraries at runtime. 16964 ;; 16965 16966 msdosdjgpp*) 16967 # Just because we use GCC doesn't mean we suddenly get shared libraries 16968 # on systems that don't support them. 16969 lt_prog_compiler_can_build_shared_GCJ=no 16970 enable_shared=no 16971 ;; 16972 16973 sysv4*MP*) 16974 if test -d /usr/nec; then 16975 lt_prog_compiler_pic_GCJ=-Kconform_pic 16976 fi 16977 ;; 16978 16979 hpux*) 16980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16981 # not for PA HP-UX. 16982 case $host_cpu in 16983 hppa*64*|ia64*) 16984 # +Z the default 16985 ;; 16986 *) 16987 lt_prog_compiler_pic_GCJ='-fPIC' 16988 ;; 16989 esac 16990 ;; 16991 16992 *) 16993 lt_prog_compiler_pic_GCJ='-fPIC' 16994 ;; 16995 esac 16996 else 16997 # PORTME Check for flag to pass linker flags through the system compiler. 16998 case $host_os in 16999 aix*) 17000 lt_prog_compiler_wl_GCJ='-Wl,' 17001 if test "$host_cpu" = ia64; then 17002 # AIX 5 now supports IA64 processor 17003 lt_prog_compiler_static_GCJ='-Bstatic' 17004 else 17005 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17006 fi 17007 ;; 17008 darwin*) 17009 # PIC is the default on this platform 17010 # Common symbols not allowed in MH_DYLIB files 17011 case $cc_basename in 17012 xlc*) 17013 lt_prog_compiler_pic_GCJ='-qnocommon' 17014 lt_prog_compiler_wl_GCJ='-Wl,' 17015 ;; 17016 esac 17017 ;; 17018 17019 mingw* | pw32* | os2*) 17020 # This hack is so that the source file can tell whether it is being 17021 # built for inclusion in a dll (and should export symbols for example). 17022 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17023 ;; 17024 17025 hpux9* | hpux10* | hpux11*) 17026 lt_prog_compiler_wl_GCJ='-Wl,' 17027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17028 # not for PA HP-UX. 17029 case $host_cpu in 17030 hppa*64*|ia64*) 17031 # +Z the default 17032 ;; 17033 *) 17034 lt_prog_compiler_pic_GCJ='+Z' 17035 ;; 17036 esac 17037 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17038 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17039 ;; 17040 17041 irix5* | irix6* | nonstopux*) 17042 lt_prog_compiler_wl_GCJ='-Wl,' 17043 # PIC (with -KPIC) is the default. 17044 lt_prog_compiler_static_GCJ='-non_shared' 17045 ;; 17046 17047 newsos6) 17048 lt_prog_compiler_pic_GCJ='-KPIC' 17049 lt_prog_compiler_static_GCJ='-Bstatic' 17050 ;; 17051 17052 linux*) 17053 case $cc_basename in 17054 icc* | ecc*) 17055 lt_prog_compiler_wl_GCJ='-Wl,' 17056 lt_prog_compiler_pic_GCJ='-KPIC' 17057 lt_prog_compiler_static_GCJ='-static' 17058 ;; 17059 pgcc* | pgf77* | pgf90* | pgf95*) 17060 # Portland Group compilers (*not* the Pentium gcc compiler, 17061 # which looks to be a dead project) 17062 lt_prog_compiler_wl_GCJ='-Wl,' 17063 lt_prog_compiler_pic_GCJ='-fpic' 17064 lt_prog_compiler_static_GCJ='-Bstatic' 17065 ;; 17066 ccc*) 17067 lt_prog_compiler_wl_GCJ='-Wl,' 17068 # All Alpha code is PIC. 17069 lt_prog_compiler_static_GCJ='-non_shared' 17070 ;; 17071 esac 17072 ;; 17073 17074 osf3* | osf4* | osf5*) 17075 lt_prog_compiler_wl_GCJ='-Wl,' 17076 # All OSF/1 code is PIC. 17077 lt_prog_compiler_static_GCJ='-non_shared' 17078 ;; 17079 17080 solaris*) 17081 lt_prog_compiler_pic_GCJ='-KPIC' 17082 lt_prog_compiler_static_GCJ='-Bstatic' 17083 case $cc_basename in 17084 f77* | f90* | f95*) 17085 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17086 *) 17087 lt_prog_compiler_wl_GCJ='-Wl,';; 17088 esac 17089 ;; 17090 17091 sunos4*) 17092 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17093 lt_prog_compiler_pic_GCJ='-PIC' 17094 lt_prog_compiler_static_GCJ='-Bstatic' 17095 ;; 17096 17097 sysv4 | sysv4.2uw2* | sysv4.3*) 17098 lt_prog_compiler_wl_GCJ='-Wl,' 17099 lt_prog_compiler_pic_GCJ='-KPIC' 17100 lt_prog_compiler_static_GCJ='-Bstatic' 17101 ;; 17102 17103 sysv4*MP*) 17104 if test -d /usr/nec ;then 17105 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17106 lt_prog_compiler_static_GCJ='-Bstatic' 17107 fi 17108 ;; 17109 17110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17111 lt_prog_compiler_wl_GCJ='-Wl,' 17112 lt_prog_compiler_pic_GCJ='-KPIC' 17113 lt_prog_compiler_static_GCJ='-Bstatic' 17114 ;; 17115 17116 unicos*) 17117 lt_prog_compiler_wl_GCJ='-Wl,' 17118 lt_prog_compiler_can_build_shared_GCJ=no 17119 ;; 17120 17121 uts4*) 17122 lt_prog_compiler_pic_GCJ='-pic' 17123 lt_prog_compiler_static_GCJ='-Bstatic' 17124 ;; 17125 17126 *) 17127 lt_prog_compiler_can_build_shared_GCJ=no 17128 ;; 17129 esac 17130 fi 17131 17132{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17133echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17134 17135# 17136# Check to make sure the PIC flag actually works. 17137# 17138if test -n "$lt_prog_compiler_pic_GCJ"; then 17139 17140{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17141echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17142if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17143 echo $ECHO_N "(cached) $ECHO_C" >&6 17144else 17145 lt_prog_compiler_pic_works_GCJ=no 17146 ac_outfile=conftest.$ac_objext 17147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17148 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17149 # Insert the option either (1) after the last *FLAGS variable, or 17150 # (2) before a word containing "conftest.", or (3) at the end. 17151 # Note that $ac_compile itself does not contain backslashes and begins 17152 # with a dollar sign (not a hyphen), so the echo should work correctly. 17153 # The option is referenced via a variable to avoid confusing sed. 17154 lt_compile=`echo "$ac_compile" | $SED \ 17155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17157 -e 's:$: $lt_compiler_flag:'` 17158 (eval echo "\"\$as_me:17158: $lt_compile\"" >&5) 17159 (eval "$lt_compile" 2>conftest.err) 17160 ac_status=$? 17161 cat conftest.err >&5 17162 echo "$as_me:17162: \$? = $ac_status" >&5 17163 if (exit $ac_status) && test -s "$ac_outfile"; then 17164 # The compiler can only warn and ignore the option if not recognized 17165 # So say no if there are warnings other than the usual output. 17166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17169 lt_prog_compiler_pic_works_GCJ=yes 17170 fi 17171 fi 17172 $rm conftest* 17173 17174fi 17175{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17176echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17177 17178if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17179 case $lt_prog_compiler_pic_GCJ in 17180 "" | " "*) ;; 17181 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17182 esac 17183else 17184 lt_prog_compiler_pic_GCJ= 17185 lt_prog_compiler_can_build_shared_GCJ=no 17186fi 17187 17188fi 17189case $host_os in 17190 # For platforms which do not support PIC, -DPIC is meaningless: 17191 *djgpp*) 17192 lt_prog_compiler_pic_GCJ= 17193 ;; 17194 *) 17195 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17196 ;; 17197esac 17198 17199# 17200# Check to make sure the static flag actually works. 17201# 17202wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17203{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17204echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17205if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17206 echo $ECHO_N "(cached) $ECHO_C" >&6 17207else 17208 lt_prog_compiler_static_works_GCJ=no 17209 save_LDFLAGS="$LDFLAGS" 17210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17211 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17213 # The linker can only warn and ignore the option if not recognized 17214 # So say no if there are warnings 17215 if test -s conftest.err; then 17216 # Append any errors to the config.log. 17217 cat conftest.err 1>&5 17218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17220 if diff conftest.exp conftest.er2 >/dev/null; then 17221 lt_prog_compiler_static_works_GCJ=yes 17222 fi 17223 else 17224 lt_prog_compiler_static_works_GCJ=yes 17225 fi 17226 fi 17227 $rm conftest* 17228 LDFLAGS="$save_LDFLAGS" 17229 17230fi 17231{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17232echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17233 17234if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17235 : 17236else 17237 lt_prog_compiler_static_GCJ= 17238fi 17239 17240 17241{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17242echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17243if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17244 echo $ECHO_N "(cached) $ECHO_C" >&6 17245else 17246 lt_cv_prog_compiler_c_o_GCJ=no 17247 $rm -r conftest 2>/dev/null 17248 mkdir conftest 17249 cd conftest 17250 mkdir out 17251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17252 17253 lt_compiler_flag="-o out/conftest2.$ac_objext" 17254 # Insert the option either (1) after the last *FLAGS variable, or 17255 # (2) before a word containing "conftest.", or (3) at the end. 17256 # Note that $ac_compile itself does not contain backslashes and begins 17257 # with a dollar sign (not a hyphen), so the echo should work correctly. 17258 lt_compile=`echo "$ac_compile" | $SED \ 17259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17261 -e 's:$: $lt_compiler_flag:'` 17262 (eval echo "\"\$as_me:17262: $lt_compile\"" >&5) 17263 (eval "$lt_compile" 2>out/conftest.err) 17264 ac_status=$? 17265 cat out/conftest.err >&5 17266 echo "$as_me:17266: \$? = $ac_status" >&5 17267 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17268 then 17269 # The compiler can only warn and ignore the option if not recognized 17270 # So say no if there are warnings 17271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17274 lt_cv_prog_compiler_c_o_GCJ=yes 17275 fi 17276 fi 17277 chmod u+w . 2>&5 17278 $rm conftest* 17279 # SGI C++ compiler will create directory out/ii_files/ for 17280 # template instantiation 17281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17282 $rm out/* && rmdir out 17283 cd .. 17284 rmdir conftest 17285 $rm conftest* 17286 17287fi 17288{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17289echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17290 17291 17292hard_links="nottested" 17293if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17294 # do not overwrite the value of need_locks provided by the user 17295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17296echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17297 hard_links=yes 17298 $rm conftest* 17299 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17300 touch conftest.a 17301 ln conftest.a conftest.b 2>&5 || hard_links=no 17302 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17303 { echo "$as_me:$LINENO: result: $hard_links" >&5 17304echo "${ECHO_T}$hard_links" >&6; } 17305 if test "$hard_links" = no; then 17306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17307echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17308 need_locks=warn 17309 fi 17310else 17311 need_locks=no 17312fi 17313 17314{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17316 17317 runpath_var= 17318 allow_undefined_flag_GCJ= 17319 enable_shared_with_static_runtimes_GCJ=no 17320 archive_cmds_GCJ= 17321 archive_expsym_cmds_GCJ= 17322 old_archive_From_new_cmds_GCJ= 17323 old_archive_from_expsyms_cmds_GCJ= 17324 export_dynamic_flag_spec_GCJ= 17325 whole_archive_flag_spec_GCJ= 17326 thread_safe_flag_spec_GCJ= 17327 hardcode_libdir_flag_spec_GCJ= 17328 hardcode_libdir_flag_spec_ld_GCJ= 17329 hardcode_libdir_separator_GCJ= 17330 hardcode_direct_GCJ=no 17331 hardcode_minus_L_GCJ=no 17332 hardcode_shlibpath_var_GCJ=unsupported 17333 link_all_deplibs_GCJ=unknown 17334 hardcode_automatic_GCJ=no 17335 module_cmds_GCJ= 17336 module_expsym_cmds_GCJ= 17337 always_export_symbols_GCJ=no 17338 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17339 # include_expsyms should be a list of space-separated symbols to be *always* 17340 # included in the symbol list 17341 include_expsyms_GCJ= 17342 # exclude_expsyms can be an extended regexp of symbols to exclude 17343 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17345 # as well as any symbol that contains `d'. 17346 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17348 # platforms (ab)use it in PIC code, but their linkers get confused if 17349 # the symbol is explicitly referenced. Since portable code cannot 17350 # rely on this symbol name, it's probably fine to never include it in 17351 # preloaded symbol tables. 17352 extract_expsyms_cmds= 17353 # Just being paranoid about ensuring that cc_basename is set. 17354 for cc_temp in $compiler""; do 17355 case $cc_temp in 17356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17358 \-*) ;; 17359 *) break;; 17360 esac 17361done 17362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17363 17364 case $host_os in 17365 cygwin* | mingw* | pw32*) 17366 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17367 # When not using gcc, we currently assume that we are using 17368 # Microsoft Visual C++. 17369 if test "$GCC" != yes; then 17370 with_gnu_ld=no 17371 fi 17372 ;; 17373 interix*) 17374 # we just hope/assume this is gcc and not c89 (= MSVC++) 17375 with_gnu_ld=yes 17376 ;; 17377 openbsd*) 17378 with_gnu_ld=no 17379 ;; 17380 esac 17381 17382 ld_shlibs_GCJ=yes 17383 if test "$with_gnu_ld" = yes; then 17384 # If archive_cmds runs LD, not CC, wlarc should be empty 17385 wlarc='${wl}' 17386 17387 # Set some defaults for GNU ld with shared library support. These 17388 # are reset later if shared libraries are not supported. Putting them 17389 # here allows them to be overridden if necessary. 17390 runpath_var=LD_RUN_PATH 17391 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17392 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17393 # ancient GNU ld didn't support --whole-archive et. al. 17394 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17395 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17396 else 17397 whole_archive_flag_spec_GCJ= 17398 fi 17399 supports_anon_versioning=no 17400 case `$LD -v 2>/dev/null` in 17401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17404 *\ 2.11.*) ;; # other 2.11 versions 17405 *) supports_anon_versioning=yes ;; 17406 esac 17407 17408 # See if GNU ld supports shared libraries. 17409 case $host_os in 17410 aix3* | aix4* | aix5*) 17411 # On AIX/PPC, the GNU linker is very broken 17412 if test "$host_cpu" != ia64; then 17413 ld_shlibs_GCJ=no 17414 cat <<EOF 1>&2 17415 17416*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17417*** to be unable to reliably create shared libraries on AIX. 17418*** Therefore, libtool is disabling shared libraries support. If you 17419*** really care for shared libraries, you may want to modify your PATH 17420*** so that a non-GNU linker is found, and then restart. 17421 17422EOF 17423 fi 17424 ;; 17425 17426 amigaos*) 17427 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)' 17428 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17429 hardcode_minus_L_GCJ=yes 17430 17431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17432 # that the semantics of dynamic libraries on AmigaOS, at least up 17433 # to version 4, is to share data among multiple programs linked 17434 # with the same dynamic library. Since this doesn't match the 17435 # behavior of shared libraries on other platforms, we can't use 17436 # them. 17437 ld_shlibs_GCJ=no 17438 ;; 17439 17440 beos*) 17441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17442 allow_undefined_flag_GCJ=unsupported 17443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17444 # support --undefined. This deserves some investigation. FIXME 17445 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17446 else 17447 ld_shlibs_GCJ=no 17448 fi 17449 ;; 17450 17451 cygwin* | mingw* | pw32*) 17452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17453 # as there is no search path for DLLs. 17454 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17455 allow_undefined_flag_GCJ=unsupported 17456 always_export_symbols_GCJ=no 17457 enable_shared_with_static_runtimes_GCJ=yes 17458 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17459 17460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17462 # If the export-symbols file already is a .def file (1st line 17463 # is EXPORTS), use it as is; otherwise, prepend... 17464 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17465 cp $export_symbols $output_objdir/$soname.def; 17466 else 17467 echo EXPORTS > $output_objdir/$soname.def; 17468 cat $export_symbols >> $output_objdir/$soname.def; 17469 fi~ 17470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17471 else 17472 ld_shlibs_GCJ=no 17473 fi 17474 ;; 17475 17476 interix3*) 17477 hardcode_direct_GCJ=no 17478 hardcode_shlibpath_var_GCJ=no 17479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17480 export_dynamic_flag_spec_GCJ='${wl}-E' 17481 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17482 # Instead, shared libraries are loaded at an image base (0x10000000 by 17483 # default) and relocated if they conflict, which is a slow very memory 17484 # consuming and fragmenting process. To avoid this, we pick a random, 17485 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17486 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17487 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' 17488 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' 17489 ;; 17490 17491 linux*) 17492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17493 tmp_addflag= 17494 case $cc_basename,$host_cpu in 17495 pgcc*) # Portland Group C compiler 17496 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' 17497 tmp_addflag=' $pic_flag' 17498 ;; 17499 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17500 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' 17501 tmp_addflag=' $pic_flag -Mnomain' ;; 17502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17503 tmp_addflag=' -i_dynamic' ;; 17504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17505 tmp_addflag=' -i_dynamic -nofor_main' ;; 17506 ifc* | ifort*) # Intel Fortran compiler 17507 tmp_addflag=' -nofor_main' ;; 17508 esac 17509 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17510 17511 if test $supports_anon_versioning = yes; then 17512 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17514 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17515 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17516 fi 17517 else 17518 ld_shlibs_GCJ=no 17519 fi 17520 ;; 17521 17522 netbsd*) 17523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17524 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17525 wlarc= 17526 else 17527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17528 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17529 fi 17530 ;; 17531 17532 solaris*) 17533 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17534 ld_shlibs_GCJ=no 17535 cat <<EOF 1>&2 17536 17537*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17538*** create shared libraries on Solaris systems. Therefore, libtool 17539*** is disabling shared libraries support. We urge you to upgrade GNU 17540*** binutils to release 2.9.1 or newer. Another option is to modify 17541*** your PATH or compiler configuration so that the native linker is 17542*** used, and then restart. 17543 17544EOF 17545 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17548 else 17549 ld_shlibs_GCJ=no 17550 fi 17551 ;; 17552 17553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17554 case `$LD -v 2>&1` in 17555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17556 ld_shlibs_GCJ=no 17557 cat <<_LT_EOF 1>&2 17558 17559*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17560*** reliably create shared libraries on SCO systems. Therefore, libtool 17561*** is disabling shared libraries support. We urge you to upgrade GNU 17562*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17563*** your PATH or compiler configuration so that the native linker is 17564*** used, and then restart. 17565 17566_LT_EOF 17567 ;; 17568 *) 17569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17570 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17573 else 17574 ld_shlibs_GCJ=no 17575 fi 17576 ;; 17577 esac 17578 ;; 17579 17580 sunos4*) 17581 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17582 wlarc= 17583 hardcode_direct_GCJ=yes 17584 hardcode_shlibpath_var_GCJ=no 17585 ;; 17586 17587 *) 17588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17589 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17590 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17591 else 17592 ld_shlibs_GCJ=no 17593 fi 17594 ;; 17595 esac 17596 17597 if test "$ld_shlibs_GCJ" = no; then 17598 runpath_var= 17599 hardcode_libdir_flag_spec_GCJ= 17600 export_dynamic_flag_spec_GCJ= 17601 whole_archive_flag_spec_GCJ= 17602 fi 17603 else 17604 # PORTME fill in a description of your system's linker (not GNU ld) 17605 case $host_os in 17606 aix3*) 17607 allow_undefined_flag_GCJ=unsupported 17608 always_export_symbols_GCJ=yes 17609 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' 17610 # Note: this linker hardcodes the directories in LIBPATH if there 17611 # are no directories specified by -L. 17612 hardcode_minus_L_GCJ=yes 17613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17614 # Neither direct hardcoding nor static linking is supported with a 17615 # broken collect2. 17616 hardcode_direct_GCJ=unsupported 17617 fi 17618 ;; 17619 17620 aix4* | aix5*) 17621 if test "$host_cpu" = ia64; then 17622 # On IA64, the linker does run time linking by default, so we don't 17623 # have to do anything special. 17624 aix_use_runtimelinking=no 17625 exp_sym_flag='-Bexport' 17626 no_entry_flag="" 17627 else 17628 # If we're using GNU nm, then we don't want the "-C" option. 17629 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17630 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17631 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' 17632 else 17633 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' 17634 fi 17635 aix_use_runtimelinking=no 17636 17637 # Test if we are trying to use run time linking or normal 17638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17639 # need to do runtime linking. 17640 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17641 for ld_flag in $LDFLAGS; do 17642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17643 aix_use_runtimelinking=yes 17644 break 17645 fi 17646 done 17647 ;; 17648 esac 17649 17650 exp_sym_flag='-bexport' 17651 no_entry_flag='-bnoentry' 17652 fi 17653 17654 # When large executables or shared objects are built, AIX ld can 17655 # have problems creating the table of contents. If linking a library 17656 # or program results in "error TOC overflow" add -mminimal-toc to 17657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17659 17660 archive_cmds_GCJ='' 17661 hardcode_direct_GCJ=yes 17662 hardcode_libdir_separator_GCJ=':' 17663 link_all_deplibs_GCJ=yes 17664 17665 if test "$GCC" = yes; then 17666 case $host_os in aix4.[012]|aix4.[012].*) 17667 # We only want to do this on AIX 4.2 and lower, the check 17668 # below for broken collect2 doesn't work under 4.3+ 17669 collect2name=`${CC} -print-prog-name=collect2` 17670 if test -f "$collect2name" && \ 17671 strings "$collect2name" | grep resolve_lib_name >/dev/null 17672 then 17673 # We have reworked collect2 17674 hardcode_direct_GCJ=yes 17675 else 17676 # We have old collect2 17677 hardcode_direct_GCJ=unsupported 17678 # It fails to find uninstalled libraries when the uninstalled 17679 # path is not listed in the libpath. Setting hardcode_minus_L 17680 # to unsupported forces relinking 17681 hardcode_minus_L_GCJ=yes 17682 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17683 hardcode_libdir_separator_GCJ= 17684 fi 17685 ;; 17686 esac 17687 shared_flag='-shared' 17688 if test "$aix_use_runtimelinking" = yes; then 17689 shared_flag="$shared_flag "'${wl}-G' 17690 fi 17691 else 17692 # not using gcc 17693 if test "$host_cpu" = ia64; then 17694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17695 # chokes on -Wl,-G. The following line is correct: 17696 shared_flag='-G' 17697 else 17698 if test "$aix_use_runtimelinking" = yes; then 17699 shared_flag='${wl}-G' 17700 else 17701 shared_flag='${wl}-bM:SRE' 17702 fi 17703 fi 17704 fi 17705 17706 # It seems that -bexpall does not export symbols beginning with 17707 # underscore (_), so it is better to generate a list of symbols to export. 17708 always_export_symbols_GCJ=yes 17709 if test "$aix_use_runtimelinking" = yes; then 17710 # Warning - without using the other runtime loading flags (-brtl), 17711 # -berok will link without error, but may produce a broken library. 17712 allow_undefined_flag_GCJ='-berok' 17713 # Determine the default libpath from the value encoded in an empty executable. 17714 cat >conftest.$ac_ext <<_ACEOF 17715/* confdefs.h. */ 17716_ACEOF 17717cat confdefs.h >>conftest.$ac_ext 17718cat >>conftest.$ac_ext <<_ACEOF 17719/* end confdefs.h. */ 17720 17721int 17722main () 17723{ 17724 17725 ; 17726 return 0; 17727} 17728_ACEOF 17729rm -f conftest.$ac_objext conftest$ac_exeext 17730if { (ac_try="$ac_link" 17731case "(($ac_try" in 17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17733 *) ac_try_echo=$ac_try;; 17734esac 17735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17736 (eval "$ac_link") 2>conftest.er1 17737 ac_status=$? 17738 grep -v '^ *+' conftest.er1 >conftest.err 17739 rm -f conftest.er1 17740 cat conftest.err >&5 17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17742 (exit $ac_status); } && 17743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17744 { (case "(($ac_try" in 17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17746 *) ac_try_echo=$ac_try;; 17747esac 17748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17749 (eval "$ac_try") 2>&5 17750 ac_status=$? 17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17752 (exit $ac_status); }; } && 17753 { ac_try='test -s conftest$ac_exeext' 17754 { (case "(($ac_try" in 17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17756 *) ac_try_echo=$ac_try;; 17757esac 17758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17759 (eval "$ac_try") 2>&5 17760 ac_status=$? 17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17762 (exit $ac_status); }; }; then 17763 17764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17765}'` 17766# Check for a 64-bit object if we didn't find anything. 17767if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17768}'`; fi 17769else 17770 echo "$as_me: failed program was:" >&5 17771sed 's/^/| /' conftest.$ac_ext >&5 17772 17773 17774fi 17775 17776rm -f core conftest.err conftest.$ac_objext \ 17777 conftest$ac_exeext conftest.$ac_ext 17778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17779 17780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17781 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" 17782 else 17783 if test "$host_cpu" = ia64; then 17784 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17785 allow_undefined_flag_GCJ="-z nodefs" 17786 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" 17787 else 17788 # Determine the default libpath from the value encoded in an empty executable. 17789 cat >conftest.$ac_ext <<_ACEOF 17790/* confdefs.h. */ 17791_ACEOF 17792cat confdefs.h >>conftest.$ac_ext 17793cat >>conftest.$ac_ext <<_ACEOF 17794/* end confdefs.h. */ 17795 17796int 17797main () 17798{ 17799 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804rm -f conftest.$ac_objext conftest$ac_exeext 17805if { (ac_try="$ac_link" 17806case "(($ac_try" in 17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17808 *) ac_try_echo=$ac_try;; 17809esac 17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17811 (eval "$ac_link") 2>conftest.er1 17812 ac_status=$? 17813 grep -v '^ *+' conftest.er1 >conftest.err 17814 rm -f conftest.er1 17815 cat conftest.err >&5 17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17817 (exit $ac_status); } && 17818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17819 { (case "(($ac_try" in 17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17821 *) ac_try_echo=$ac_try;; 17822esac 17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17824 (eval "$ac_try") 2>&5 17825 ac_status=$? 17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17827 (exit $ac_status); }; } && 17828 { ac_try='test -s conftest$ac_exeext' 17829 { (case "(($ac_try" in 17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17831 *) ac_try_echo=$ac_try;; 17832esac 17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17834 (eval "$ac_try") 2>&5 17835 ac_status=$? 17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17837 (exit $ac_status); }; }; then 17838 17839aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17840}'` 17841# Check for a 64-bit object if we didn't find anything. 17842if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17843}'`; fi 17844else 17845 echo "$as_me: failed program was:" >&5 17846sed 's/^/| /' conftest.$ac_ext >&5 17847 17848 17849fi 17850 17851rm -f core conftest.err conftest.$ac_objext \ 17852 conftest$ac_exeext conftest.$ac_ext 17853if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17854 17855 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17856 # Warning - without using the other run time loading flags, 17857 # -berok will link without error, but may produce a broken library. 17858 no_undefined_flag_GCJ=' ${wl}-bernotok' 17859 allow_undefined_flag_GCJ=' ${wl}-berok' 17860 # Exported symbols can be pulled into shared objects from archives 17861 whole_archive_flag_spec_GCJ='$convenience' 17862 archive_cmds_need_lc_GCJ=yes 17863 # This is similar to how AIX traditionally builds its shared libraries. 17864 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' 17865 fi 17866 fi 17867 ;; 17868 17869 amigaos*) 17870 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)' 17871 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17872 hardcode_minus_L_GCJ=yes 17873 # see comment about different semantics on the GNU ld section 17874 ld_shlibs_GCJ=no 17875 ;; 17876 17877 bsdi[45]*) 17878 export_dynamic_flag_spec_GCJ=-rdynamic 17879 ;; 17880 17881 cygwin* | mingw* | pw32*) 17882 # When not using gcc, we currently assume that we are using 17883 # Microsoft Visual C++. 17884 # hardcode_libdir_flag_spec is actually meaningless, as there is 17885 # no search path for DLLs. 17886 hardcode_libdir_flag_spec_GCJ=' ' 17887 allow_undefined_flag_GCJ=unsupported 17888 # Tell ltmain to make .lib files, not .a files. 17889 libext=lib 17890 # Tell ltmain to make .dll files, not .so files. 17891 shrext_cmds=".dll" 17892 # FIXME: Setting linknames here is a bad hack. 17893 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17894 # The linker will automatically build a .lib file if we build a DLL. 17895 old_archive_From_new_cmds_GCJ='true' 17896 # FIXME: Should let the user specify the lib program. 17897 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17898 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17899 enable_shared_with_static_runtimes_GCJ=yes 17900 ;; 17901 17902 darwin* | rhapsody*) 17903 case $host_os in 17904 rhapsody* | darwin1.[012]) 17905 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17906 ;; 17907 *) # Darwin 1.3 on 17908 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17909 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17910 else 17911 case ${MACOSX_DEPLOYMENT_TARGET} in 17912 10.[012]) 17913 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17914 ;; 17915 10.*) 17916 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17917 ;; 17918 esac 17919 fi 17920 ;; 17921 esac 17922 archive_cmds_need_lc_GCJ=no 17923 hardcode_direct_GCJ=no 17924 hardcode_automatic_GCJ=yes 17925 hardcode_shlibpath_var_GCJ=unsupported 17926 whole_archive_flag_spec_GCJ='' 17927 link_all_deplibs_GCJ=yes 17928 if test "$GCC" = yes ; then 17929 output_verbose_link_cmd='echo' 17930 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17931 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17932 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17933 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}' 17934 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}' 17935 else 17936 case $cc_basename in 17937 xlc*) 17938 output_verbose_link_cmd='echo' 17939 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17940 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17942 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17943 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}' 17944 ;; 17945 *) 17946 ld_shlibs_GCJ=no 17947 ;; 17948 esac 17949 fi 17950 ;; 17951 17952 dgux*) 17953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17954 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17955 hardcode_shlibpath_var_GCJ=no 17956 ;; 17957 17958 freebsd1*) 17959 ld_shlibs_GCJ=no 17960 ;; 17961 17962 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17963 # support. Future versions do this automatically, but an explicit c++rt0.o 17964 # does not break anything, and helps significantly (at the cost of a little 17965 # extra space). 17966 freebsd2.2*) 17967 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17968 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17969 hardcode_direct_GCJ=yes 17970 hardcode_shlibpath_var_GCJ=no 17971 ;; 17972 17973 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17974 freebsd2*) 17975 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17976 hardcode_direct_GCJ=yes 17977 hardcode_minus_L_GCJ=yes 17978 hardcode_shlibpath_var_GCJ=no 17979 ;; 17980 17981 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17982 freebsd* | kfreebsd*-gnu | dragonfly*) 17983 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17984 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17985 hardcode_direct_GCJ=yes 17986 hardcode_shlibpath_var_GCJ=no 17987 ;; 17988 17989 hpux9*) 17990 if test "$GCC" = yes; then 17991 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 -f $output_objdir/$soname $lib' 17992 else 17993 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 -f $output_objdir/$soname $lib' 17994 fi 17995 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17996 hardcode_libdir_separator_GCJ=: 17997 hardcode_direct_GCJ=yes 17998 17999 # hardcode_minus_L: Not really in the search PATH, 18000 # but as the default location of the library. 18001 hardcode_minus_L_GCJ=yes 18002 export_dynamic_flag_spec_GCJ='${wl}-E' 18003 ;; 18004 18005 hpux10*) 18006 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18007 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18008 else 18009 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18010 fi 18011 if test "$with_gnu_ld" = no; then 18012 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18013 hardcode_libdir_separator_GCJ=: 18014 18015 hardcode_direct_GCJ=yes 18016 export_dynamic_flag_spec_GCJ='${wl}-E' 18017 18018 # hardcode_minus_L: Not really in the search PATH, 18019 # but as the default location of the library. 18020 hardcode_minus_L_GCJ=yes 18021 fi 18022 ;; 18023 18024 hpux11*) 18025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18026 case $host_cpu in 18027 hppa*64*) 18028 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18029 ;; 18030 ia64*) 18031 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18032 ;; 18033 *) 18034 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18035 ;; 18036 esac 18037 else 18038 case $host_cpu in 18039 hppa*64*) 18040 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18041 ;; 18042 ia64*) 18043 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18044 ;; 18045 *) 18046 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18047 ;; 18048 esac 18049 fi 18050 if test "$with_gnu_ld" = no; then 18051 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18052 hardcode_libdir_separator_GCJ=: 18053 18054 case $host_cpu in 18055 hppa*64*|ia64*) 18056 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18057 hardcode_direct_GCJ=no 18058 hardcode_shlibpath_var_GCJ=no 18059 ;; 18060 *) 18061 hardcode_direct_GCJ=yes 18062 export_dynamic_flag_spec_GCJ='${wl}-E' 18063 18064 # hardcode_minus_L: Not really in the search PATH, 18065 # but as the default location of the library. 18066 hardcode_minus_L_GCJ=yes 18067 ;; 18068 esac 18069 fi 18070 ;; 18071 18072 irix5* | irix6* | nonstopux*) 18073 if test "$GCC" = yes; then 18074 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' 18075 else 18076 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' 18077 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18078 fi 18079 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18080 hardcode_libdir_separator_GCJ=: 18081 link_all_deplibs_GCJ=yes 18082 ;; 18083 18084 netbsd*) 18085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18086 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18087 else 18088 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18089 fi 18090 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18091 hardcode_direct_GCJ=yes 18092 hardcode_shlibpath_var_GCJ=no 18093 ;; 18094 18095 newsos6) 18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18097 hardcode_direct_GCJ=yes 18098 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18099 hardcode_libdir_separator_GCJ=: 18100 hardcode_shlibpath_var_GCJ=no 18101 ;; 18102 18103 openbsd*) 18104 hardcode_direct_GCJ=yes 18105 hardcode_shlibpath_var_GCJ=no 18106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18107 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18108 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18110 export_dynamic_flag_spec_GCJ='${wl}-E' 18111 else 18112 case $host_os in 18113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18114 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18115 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18116 ;; 18117 *) 18118 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18120 ;; 18121 esac 18122 fi 18123 ;; 18124 18125 os2*) 18126 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18127 hardcode_minus_L_GCJ=yes 18128 allow_undefined_flag_GCJ=unsupported 18129 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' 18130 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18131 ;; 18132 18133 osf3*) 18134 if test "$GCC" = yes; then 18135 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18136 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' 18137 else 18138 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18139 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' 18140 fi 18141 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18142 hardcode_libdir_separator_GCJ=: 18143 ;; 18144 18145 osf4* | osf5*) # as osf3* with the addition of -msym flag 18146 if test "$GCC" = yes; then 18147 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18148 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' 18149 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18150 else 18151 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18152 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' 18153 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~ 18154 $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' 18155 18156 # Both c and cxx compiler support -rpath directly 18157 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18158 fi 18159 hardcode_libdir_separator_GCJ=: 18160 ;; 18161 18162 solaris*) 18163 no_undefined_flag_GCJ=' -z text' 18164 if test "$GCC" = yes; then 18165 wlarc='${wl}' 18166 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18167 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18168 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18169 else 18170 wlarc='' 18171 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18172 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18174 fi 18175 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18176 hardcode_shlibpath_var_GCJ=no 18177 case $host_os in 18178 solaris2.[0-5] | solaris2.[0-5].*) ;; 18179 *) 18180 # The compiler driver will combine linker options so we 18181 # cannot just pass the convience library names through 18182 # without $wl, iff we do not link with $LD. 18183 # Luckily, gcc supports the same syntax we need for Sun Studio. 18184 # Supported since Solaris 2.6 (maybe 2.5.1?) 18185 case $wlarc in 18186 '') 18187 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18188 *) 18189 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18190 esac ;; 18191 esac 18192 link_all_deplibs_GCJ=yes 18193 ;; 18194 18195 sunos4*) 18196 if test "x$host_vendor" = xsequent; then 18197 # Use $CC to link under sequent, because it throws in some extra .o 18198 # files that make .init and .fini sections work. 18199 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18200 else 18201 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18202 fi 18203 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18204 hardcode_direct_GCJ=yes 18205 hardcode_minus_L_GCJ=yes 18206 hardcode_shlibpath_var_GCJ=no 18207 ;; 18208 18209 sysv4) 18210 case $host_vendor in 18211 sni) 18212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18213 hardcode_direct_GCJ=yes # is this really true??? 18214 ;; 18215 siemens) 18216 ## LD is ld it makes a PLAMLIB 18217 ## CC just makes a GrossModule. 18218 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18219 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18220 hardcode_direct_GCJ=no 18221 ;; 18222 motorola) 18223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18224 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18225 ;; 18226 esac 18227 runpath_var='LD_RUN_PATH' 18228 hardcode_shlibpath_var_GCJ=no 18229 ;; 18230 18231 sysv4.3*) 18232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18233 hardcode_shlibpath_var_GCJ=no 18234 export_dynamic_flag_spec_GCJ='-Bexport' 18235 ;; 18236 18237 sysv4*MP*) 18238 if test -d /usr/nec; then 18239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18240 hardcode_shlibpath_var_GCJ=no 18241 runpath_var=LD_RUN_PATH 18242 hardcode_runpath_var=yes 18243 ld_shlibs_GCJ=yes 18244 fi 18245 ;; 18246 18247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18248 no_undefined_flag_GCJ='${wl}-z,text' 18249 archive_cmds_need_lc_GCJ=no 18250 hardcode_shlibpath_var_GCJ=no 18251 runpath_var='LD_RUN_PATH' 18252 18253 if test "$GCC" = yes; then 18254 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18255 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18256 else 18257 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18258 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18259 fi 18260 ;; 18261 18262 sysv5* | sco3.2v5* | sco5v6*) 18263 # Note: We can NOT use -z defs as we might desire, because we do not 18264 # link with -lc, and that would cause any symbols used from libc to 18265 # always be unresolved, which means just about no library would 18266 # ever link correctly. If we're not using GNU ld we use -z text 18267 # though, which does catch some bad symbols but isn't as heavy-handed 18268 # as -z defs. 18269 no_undefined_flag_GCJ='${wl}-z,text' 18270 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18271 archive_cmds_need_lc_GCJ=no 18272 hardcode_shlibpath_var_GCJ=no 18273 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18274 hardcode_libdir_separator_GCJ=':' 18275 link_all_deplibs_GCJ=yes 18276 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18277 runpath_var='LD_RUN_PATH' 18278 18279 if test "$GCC" = yes; then 18280 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18281 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18282 else 18283 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18284 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18285 fi 18286 ;; 18287 18288 uts4*) 18289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18290 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18291 hardcode_shlibpath_var_GCJ=no 18292 ;; 18293 18294 *) 18295 ld_shlibs_GCJ=no 18296 ;; 18297 esac 18298 fi 18299 18300{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18301echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18302test "$ld_shlibs_GCJ" = no && can_build_shared=no 18303 18304# 18305# Do we need to explicitly link libc? 18306# 18307case "x$archive_cmds_need_lc_GCJ" in 18308x|xyes) 18309 # Assume -lc should be added 18310 archive_cmds_need_lc_GCJ=yes 18311 18312 if test "$enable_shared" = yes && test "$GCC" = yes; then 18313 case $archive_cmds_GCJ in 18314 *'~'*) 18315 # FIXME: we may have to deal with multi-command sequences. 18316 ;; 18317 '$CC '*) 18318 # Test whether the compiler implicitly links with -lc since on some 18319 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18320 # to ld, don't add -lc before -lgcc. 18321 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18322echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18323 $rm conftest* 18324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18325 18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18327 (eval $ac_compile) 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); } 2>conftest.err; then 18331 soname=conftest 18332 lib=conftest 18333 libobjs=conftest.$ac_objext 18334 deplibs= 18335 wl=$lt_prog_compiler_wl_GCJ 18336 pic_flag=$lt_prog_compiler_pic_GCJ 18337 compiler_flags=-v 18338 linker_flags=-v 18339 verstring= 18340 output_objdir=. 18341 libname=conftest 18342 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18343 allow_undefined_flag_GCJ= 18344 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18345 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18346 ac_status=$? 18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18348 (exit $ac_status); } 18349 then 18350 archive_cmds_need_lc_GCJ=no 18351 else 18352 archive_cmds_need_lc_GCJ=yes 18353 fi 18354 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18355 else 18356 cat conftest.err 1>&5 18357 fi 18358 $rm conftest* 18359 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18360echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18361 ;; 18362 esac 18363 fi 18364 ;; 18365esac 18366 18367{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18368echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18369library_names_spec= 18370libname_spec='lib$name' 18371soname_spec= 18372shrext_cmds=".so" 18373postinstall_cmds= 18374postuninstall_cmds= 18375finish_cmds= 18376finish_eval= 18377shlibpath_var= 18378shlibpath_overrides_runpath=unknown 18379version_type=none 18380dynamic_linker="$host_os ld.so" 18381sys_lib_dlsearch_path_spec="/lib /usr/lib" 18382if test "$GCC" = yes; then 18383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18384 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18385 # if the path contains ";" then we assume it to be the separator 18386 # otherwise default to the standard path separator (i.e. ":") - it is 18387 # assumed that no part of a normal pathname contains ";" but that should 18388 # okay in the real world where ";" in dirpaths is itself problematic. 18389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18390 else 18391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18392 fi 18393else 18394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18395fi 18396need_lib_prefix=unknown 18397hardcode_into_libs=no 18398 18399# when you set need_version to no, make sure it does not cause -set_version 18400# flags to be left without arguments 18401need_version=unknown 18402 18403case $host_os in 18404aix3*) 18405 version_type=linux 18406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18407 shlibpath_var=LIBPATH 18408 18409 # AIX 3 has no versioning support, so we append a major version to the name. 18410 soname_spec='${libname}${release}${shared_ext}$major' 18411 ;; 18412 18413aix4* | aix5*) 18414 version_type=linux 18415 need_lib_prefix=no 18416 need_version=no 18417 hardcode_into_libs=yes 18418 if test "$host_cpu" = ia64; then 18419 # AIX 5 supports IA64 18420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18421 shlibpath_var=LD_LIBRARY_PATH 18422 else 18423 # With GCC up to 2.95.x, collect2 would create an import file 18424 # for dependence libraries. The import file would start with 18425 # the line `#! .'. This would cause the generated library to 18426 # depend on `.', always an invalid library. This was fixed in 18427 # development snapshots of GCC prior to 3.0. 18428 case $host_os in 18429 aix4 | aix4.[01] | aix4.[01].*) 18430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18431 echo ' yes ' 18432 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18433 : 18434 else 18435 can_build_shared=no 18436 fi 18437 ;; 18438 esac 18439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18440 # soname into executable. Probably we can add versioning support to 18441 # collect2, so additional links can be useful in future. 18442 if test "$aix_use_runtimelinking" = yes; then 18443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18444 # instead of lib<name>.a to let people know that these are not 18445 # typical AIX shared libraries. 18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18447 else 18448 # We preserve .a as extension for shared libraries through AIX4.2 18449 # and later when we are not doing run time linking. 18450 library_names_spec='${libname}${release}.a $libname.a' 18451 soname_spec='${libname}${release}${shared_ext}$major' 18452 fi 18453 shlibpath_var=LIBPATH 18454 fi 18455 ;; 18456 18457amigaos*) 18458 library_names_spec='$libname.ixlibrary $libname.a' 18459 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18460 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' 18461 ;; 18462 18463beos*) 18464 library_names_spec='${libname}${shared_ext}' 18465 dynamic_linker="$host_os ld.so" 18466 shlibpath_var=LIBRARY_PATH 18467 ;; 18468 18469bsdi[45]*) 18470 version_type=linux 18471 need_version=no 18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18473 soname_spec='${libname}${release}${shared_ext}$major' 18474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18475 shlibpath_var=LD_LIBRARY_PATH 18476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18478 # the default ld.so.conf also contains /usr/contrib/lib and 18479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18480 # libtool to hard-code these into programs 18481 ;; 18482 18483cygwin* | mingw* | pw32*) 18484 version_type=windows 18485 shrext_cmds=".dll" 18486 need_version=no 18487 need_lib_prefix=no 18488 18489 case $GCC,$host_os in 18490 yes,cygwin* | yes,mingw* | yes,pw32*) 18491 library_names_spec='$libname.dll.a' 18492 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18493 postinstall_cmds='base_file=`basename \${file}`~ 18494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18495 dldir=$destdir/`dirname \$dlpath`~ 18496 test -d \$dldir || mkdir -p \$dldir~ 18497 $install_prog $dir/$dlname \$dldir/$dlname~ 18498 chmod a+x \$dldir/$dlname' 18499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18500 dlpath=$dir/\$dldll~ 18501 $rm \$dlpath' 18502 shlibpath_overrides_runpath=yes 18503 18504 case $host_os in 18505 cygwin*) 18506 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18508 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18509 ;; 18510 mingw*) 18511 # MinGW DLLs use traditional 'lib' prefix 18512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18514 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18515 # It is most probably a Windows format PATH printed by 18516 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18517 # path with ; separators, and with drive letters. We can handle the 18518 # drive letters (cygwin fileutils understands them), so leave them, 18519 # especially as we might pass files found there to a mingw objdump, 18520 # which wouldn't understand a cygwinified path. Ahh. 18521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18522 else 18523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18524 fi 18525 ;; 18526 pw32*) 18527 # pw32 DLLs use 'pw' prefix rather than 'lib' 18528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18529 ;; 18530 esac 18531 ;; 18532 18533 linux*) 18534 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 18535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18536 supports_anon_versioning=no 18537 case `$LD -v 2>/dev/null` in 18538 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18541 *\ 2.11.*) ;; # other 2.11 versions 18542 *) supports_anon_versioning=yes ;; 18543 esac 18544 if test $supports_anon_versioning = yes; then 18545 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 18546cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18547$echo "local: *; };" >> $output_objdir/$libname.ver~ 18548 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18549 else 18550 $archive_expsym_cmds="$archive_cmds" 18551 fi 18552 else 18553 ld_shlibs=no 18554 fi 18555 ;; 18556 18557 *) 18558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18559 ;; 18560 esac 18561 dynamic_linker='Win32 ld.exe' 18562 # FIXME: first we should search . and the directory the executable is in 18563 shlibpath_var=PATH 18564 ;; 18565 18566darwin* | rhapsody*) 18567 dynamic_linker="$host_os dyld" 18568 version_type=darwin 18569 need_lib_prefix=no 18570 need_version=no 18571 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18572 soname_spec='${libname}${release}${major}$shared_ext' 18573 shlibpath_overrides_runpath=yes 18574 shlibpath_var=DYLD_LIBRARY_PATH 18575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18576 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18577 if test "$GCC" = yes; then 18578 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18579 else 18580 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18581 fi 18582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18583 ;; 18584 18585dgux*) 18586 version_type=linux 18587 need_lib_prefix=no 18588 need_version=no 18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18590 soname_spec='${libname}${release}${shared_ext}$major' 18591 shlibpath_var=LD_LIBRARY_PATH 18592 ;; 18593 18594freebsd1*) 18595 dynamic_linker=no 18596 ;; 18597 18598kfreebsd*-gnu) 18599 version_type=linux 18600 need_lib_prefix=no 18601 need_version=no 18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18603 soname_spec='${libname}${release}${shared_ext}$major' 18604 shlibpath_var=LD_LIBRARY_PATH 18605 shlibpath_overrides_runpath=no 18606 hardcode_into_libs=yes 18607 dynamic_linker='GNU ld.so' 18608 ;; 18609 18610freebsd* | dragonfly*) 18611 # DragonFly does not have aout. When/if they implement a new 18612 # versioning mechanism, adjust this. 18613 if test -x /usr/bin/objformat; then 18614 objformat=`/usr/bin/objformat` 18615 else 18616 case $host_os in 18617 freebsd[123]*) objformat=aout ;; 18618 *) objformat=elf ;; 18619 esac 18620 fi 18621 # Handle Gentoo/FreeBSD as it was Linux 18622 case $host_vendor in 18623 gentoo) 18624 version_type=linux ;; 18625 *) 18626 version_type=freebsd-$objformat ;; 18627 esac 18628 18629 case $version_type in 18630 freebsd-elf*) 18631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18632 need_version=no 18633 need_lib_prefix=no 18634 ;; 18635 freebsd-*) 18636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18637 need_version=yes 18638 ;; 18639 linux) 18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18641 soname_spec='${libname}${release}${shared_ext}$major' 18642 need_lib_prefix=no 18643 need_version=no 18644 ;; 18645 esac 18646 shlibpath_var=LD_LIBRARY_PATH 18647 case $host_os in 18648 freebsd2*) 18649 shlibpath_overrides_runpath=yes 18650 ;; 18651 freebsd3.[01]* | freebsdelf3.[01]*) 18652 shlibpath_overrides_runpath=yes 18653 hardcode_into_libs=yes 18654 ;; 18655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18657 shlibpath_overrides_runpath=no 18658 hardcode_into_libs=yes 18659 ;; 18660 freebsd*) # from 4.6 on 18661 shlibpath_overrides_runpath=yes 18662 hardcode_into_libs=yes 18663 ;; 18664 esac 18665 ;; 18666 18667gnu*) 18668 version_type=linux 18669 need_lib_prefix=no 18670 need_version=no 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 shlibpath_var=LD_LIBRARY_PATH 18674 hardcode_into_libs=yes 18675 ;; 18676 18677hpux9* | hpux10* | hpux11*) 18678 # Give a soname corresponding to the major version so that dld.sl refuses to 18679 # link against other versions. 18680 version_type=sunos 18681 need_lib_prefix=no 18682 need_version=no 18683 case $host_cpu in 18684 ia64*) 18685 shrext_cmds='.so' 18686 hardcode_into_libs=yes 18687 dynamic_linker="$host_os dld.so" 18688 shlibpath_var=LD_LIBRARY_PATH 18689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18691 soname_spec='${libname}${release}${shared_ext}$major' 18692 if test "X$HPUX_IA64_MODE" = X32; then 18693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18694 else 18695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18696 fi 18697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18698 ;; 18699 hppa*64*) 18700 shrext_cmds='.sl' 18701 hardcode_into_libs=yes 18702 dynamic_linker="$host_os dld.sl" 18703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18706 soname_spec='${libname}${release}${shared_ext}$major' 18707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18709 ;; 18710 *) 18711 shrext_cmds='.sl' 18712 dynamic_linker="$host_os dld.sl" 18713 shlibpath_var=SHLIB_PATH 18714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18716 soname_spec='${libname}${release}${shared_ext}$major' 18717 ;; 18718 esac 18719 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18720 postinstall_cmds='chmod 555 $lib' 18721 ;; 18722 18723interix3*) 18724 version_type=linux 18725 need_lib_prefix=no 18726 need_version=no 18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18728 soname_spec='${libname}${release}${shared_ext}$major' 18729 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18730 shlibpath_var=LD_LIBRARY_PATH 18731 shlibpath_overrides_runpath=no 18732 hardcode_into_libs=yes 18733 ;; 18734 18735irix5* | irix6* | nonstopux*) 18736 case $host_os in 18737 nonstopux*) version_type=nonstopux ;; 18738 *) 18739 if test "$lt_cv_prog_gnu_ld" = yes; then 18740 version_type=linux 18741 else 18742 version_type=irix 18743 fi ;; 18744 esac 18745 need_lib_prefix=no 18746 need_version=no 18747 soname_spec='${libname}${release}${shared_ext}$major' 18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18749 case $host_os in 18750 irix5* | nonstopux*) 18751 libsuff= shlibsuff= 18752 ;; 18753 *) 18754 case $LD in # libtool.m4 will add one of these switches to LD 18755 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18756 libsuff= shlibsuff= libmagic=32-bit;; 18757 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18758 libsuff=32 shlibsuff=N32 libmagic=N32;; 18759 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18760 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18761 *) libsuff= shlibsuff= libmagic=never-match;; 18762 esac 18763 ;; 18764 esac 18765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18766 shlibpath_overrides_runpath=no 18767 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18768 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18769 hardcode_into_libs=yes 18770 ;; 18771 18772# No shared lib support for Linux oldld, aout, or coff. 18773linux*oldld* | linux*aout* | linux*coff*) 18774 dynamic_linker=no 18775 ;; 18776 18777# This must be Linux ELF. 18778linux*) 18779 version_type=linux 18780 need_lib_prefix=no 18781 need_version=no 18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18783 soname_spec='${libname}${release}${shared_ext}$major' 18784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18785 shlibpath_var=LD_LIBRARY_PATH 18786 shlibpath_overrides_runpath=no 18787 # This implies no fast_install, which is unacceptable. 18788 # Some rework will be needed to allow for fast_install 18789 # before this can be enabled. 18790 hardcode_into_libs=yes 18791 18792 # Append ld.so.conf contents to the search path 18793 if test -f /etc/ld.so.conf; then 18794 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18795 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18796 fi 18797 18798 # We used to test for /lib/ld.so.1 and disable shared libraries on 18799 # powerpc, because MkLinux only supported shared libraries with the 18800 # GNU dynamic linker. Since this was broken with cross compilers, 18801 # most powerpc-linux boxes support dynamic linking these days and 18802 # people can always --disable-shared, the test was removed, and we 18803 # assume the GNU/Linux dynamic linker is in use. 18804 dynamic_linker='GNU/Linux ld.so' 18805 ;; 18806 18807knetbsd*-gnu) 18808 version_type=linux 18809 need_lib_prefix=no 18810 need_version=no 18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18812 soname_spec='${libname}${release}${shared_ext}$major' 18813 shlibpath_var=LD_LIBRARY_PATH 18814 shlibpath_overrides_runpath=no 18815 hardcode_into_libs=yes 18816 dynamic_linker='GNU ld.so' 18817 ;; 18818 18819netbsd*) 18820 version_type=sunos 18821 need_lib_prefix=no 18822 need_version=no 18823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18826 dynamic_linker='NetBSD (a.out) ld.so' 18827 else 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18829 soname_spec='${libname}${release}${shared_ext}$major' 18830 dynamic_linker='NetBSD ld.elf_so' 18831 fi 18832 shlibpath_var=LD_LIBRARY_PATH 18833 shlibpath_overrides_runpath=yes 18834 hardcode_into_libs=yes 18835 ;; 18836 18837newsos6) 18838 version_type=linux 18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18840 shlibpath_var=LD_LIBRARY_PATH 18841 shlibpath_overrides_runpath=yes 18842 ;; 18843 18844nto-qnx*) 18845 version_type=linux 18846 need_lib_prefix=no 18847 need_version=no 18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18849 soname_spec='${libname}${release}${shared_ext}$major' 18850 shlibpath_var=LD_LIBRARY_PATH 18851 shlibpath_overrides_runpath=yes 18852 ;; 18853 18854openbsd*) 18855 version_type=sunos 18856 sys_lib_dlsearch_path_spec="/usr/lib" 18857 need_lib_prefix=no 18858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18859 case $host_os in 18860 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18861 *) need_version=no ;; 18862 esac 18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18865 shlibpath_var=LD_LIBRARY_PATH 18866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18867 case $host_os in 18868 openbsd2.[89] | openbsd2.[89].*) 18869 shlibpath_overrides_runpath=no 18870 ;; 18871 *) 18872 shlibpath_overrides_runpath=yes 18873 ;; 18874 esac 18875 else 18876 shlibpath_overrides_runpath=yes 18877 fi 18878 ;; 18879 18880os2*) 18881 libname_spec='$name' 18882 shrext_cmds=".dll" 18883 need_lib_prefix=no 18884 library_names_spec='$libname${shared_ext} $libname.a' 18885 dynamic_linker='OS/2 ld.exe' 18886 shlibpath_var=LIBPATH 18887 ;; 18888 18889osf3* | osf4* | osf5*) 18890 version_type=osf 18891 need_lib_prefix=no 18892 need_version=no 18893 soname_spec='${libname}${release}${shared_ext}$major' 18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18895 shlibpath_var=LD_LIBRARY_PATH 18896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18898 ;; 18899 18900solaris*) 18901 version_type=linux 18902 need_lib_prefix=no 18903 need_version=no 18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18905 soname_spec='${libname}${release}${shared_ext}$major' 18906 shlibpath_var=LD_LIBRARY_PATH 18907 shlibpath_overrides_runpath=yes 18908 hardcode_into_libs=yes 18909 # ldd complains unless libraries are executable 18910 postinstall_cmds='chmod +x $lib' 18911 ;; 18912 18913sunos4*) 18914 version_type=sunos 18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18917 shlibpath_var=LD_LIBRARY_PATH 18918 shlibpath_overrides_runpath=yes 18919 if test "$with_gnu_ld" = yes; then 18920 need_lib_prefix=no 18921 fi 18922 need_version=yes 18923 ;; 18924 18925sysv4 | sysv4.3*) 18926 version_type=linux 18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18928 soname_spec='${libname}${release}${shared_ext}$major' 18929 shlibpath_var=LD_LIBRARY_PATH 18930 case $host_vendor in 18931 sni) 18932 shlibpath_overrides_runpath=no 18933 need_lib_prefix=no 18934 export_dynamic_flag_spec='${wl}-Blargedynsym' 18935 runpath_var=LD_RUN_PATH 18936 ;; 18937 siemens) 18938 need_lib_prefix=no 18939 ;; 18940 motorola) 18941 need_lib_prefix=no 18942 need_version=no 18943 shlibpath_overrides_runpath=no 18944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18945 ;; 18946 esac 18947 ;; 18948 18949sysv4*MP*) 18950 if test -d /usr/nec ;then 18951 version_type=linux 18952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18953 soname_spec='$libname${shared_ext}.$major' 18954 shlibpath_var=LD_LIBRARY_PATH 18955 fi 18956 ;; 18957 18958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18959 version_type=freebsd-elf 18960 need_lib_prefix=no 18961 need_version=no 18962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18963 soname_spec='${libname}${release}${shared_ext}$major' 18964 shlibpath_var=LD_LIBRARY_PATH 18965 hardcode_into_libs=yes 18966 if test "$with_gnu_ld" = yes; then 18967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18968 shlibpath_overrides_runpath=no 18969 else 18970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18971 shlibpath_overrides_runpath=yes 18972 case $host_os in 18973 sco3.2v5*) 18974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18975 ;; 18976 esac 18977 fi 18978 sys_lib_dlsearch_path_spec='/usr/lib' 18979 ;; 18980 18981uts4*) 18982 version_type=linux 18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18984 soname_spec='${libname}${release}${shared_ext}$major' 18985 shlibpath_var=LD_LIBRARY_PATH 18986 ;; 18987 18988*) 18989 dynamic_linker=no 18990 ;; 18991esac 18992{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18993echo "${ECHO_T}$dynamic_linker" >&6; } 18994test "$dynamic_linker" = no && can_build_shared=no 18995 18996variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18997if test "$GCC" = yes; then 18998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18999fi 19000 19001{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19002echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 19003hardcode_action_GCJ= 19004if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19005 test -n "$runpath_var_GCJ" || \ 19006 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19007 19008 # We can hardcode non-existant directories. 19009 if test "$hardcode_direct_GCJ" != no && 19010 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19011 # have to relink, otherwise we might link with an installed library 19012 # when we should be linking with a yet-to-be-installed one 19013 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19014 test "$hardcode_minus_L_GCJ" != no; then 19015 # Linking always hardcodes the temporary library directory. 19016 hardcode_action_GCJ=relink 19017 else 19018 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19019 hardcode_action_GCJ=immediate 19020 fi 19021else 19022 # We cannot hardcode anything, or else we can only hardcode existing 19023 # directories. 19024 hardcode_action_GCJ=unsupported 19025fi 19026{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19027echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 19028 19029if test "$hardcode_action_GCJ" = relink; then 19030 # Fast installation is not supported 19031 enable_fast_install=no 19032elif test "$shlibpath_overrides_runpath" = yes || 19033 test "$enable_shared" = no; then 19034 # Fast installation is not necessary 19035 enable_fast_install=needless 19036fi 19037 19038 19039# The else clause should only fire when bootstrapping the 19040# libtool distribution, otherwise you forgot to ship ltmain.sh 19041# with your package, and you will get complaints that there are 19042# no rules to generate ltmain.sh. 19043if test -f "$ltmain"; then 19044 # See if we are running on zsh, and set the options which allow our commands through 19045 # without removal of \ escapes. 19046 if test -n "${ZSH_VERSION+set}" ; then 19047 setopt NO_GLOB_SUBST 19048 fi 19049 # Now quote all the things that may contain metacharacters while being 19050 # careful not to overquote the AC_SUBSTed values. We take copies of the 19051 # variables and quote the copies for generation of the libtool script. 19052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19053 SED SHELL STRIP \ 19054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19056 deplibs_check_method reload_flag reload_cmds need_locks \ 19057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19058 lt_cv_sys_global_symbol_to_c_name_address \ 19059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19060 old_postinstall_cmds old_postuninstall_cmds \ 19061 compiler_GCJ \ 19062 CC_GCJ \ 19063 LD_GCJ \ 19064 lt_prog_compiler_wl_GCJ \ 19065 lt_prog_compiler_pic_GCJ \ 19066 lt_prog_compiler_static_GCJ \ 19067 lt_prog_compiler_no_builtin_flag_GCJ \ 19068 export_dynamic_flag_spec_GCJ \ 19069 thread_safe_flag_spec_GCJ \ 19070 whole_archive_flag_spec_GCJ \ 19071 enable_shared_with_static_runtimes_GCJ \ 19072 old_archive_cmds_GCJ \ 19073 old_archive_from_new_cmds_GCJ \ 19074 predep_objects_GCJ \ 19075 postdep_objects_GCJ \ 19076 predeps_GCJ \ 19077 postdeps_GCJ \ 19078 compiler_lib_search_path_GCJ \ 19079 archive_cmds_GCJ \ 19080 archive_expsym_cmds_GCJ \ 19081 postinstall_cmds_GCJ \ 19082 postuninstall_cmds_GCJ \ 19083 old_archive_from_expsyms_cmds_GCJ \ 19084 allow_undefined_flag_GCJ \ 19085 no_undefined_flag_GCJ \ 19086 export_symbols_cmds_GCJ \ 19087 hardcode_libdir_flag_spec_GCJ \ 19088 hardcode_libdir_flag_spec_ld_GCJ \ 19089 hardcode_libdir_separator_GCJ \ 19090 hardcode_automatic_GCJ \ 19091 module_cmds_GCJ \ 19092 module_expsym_cmds_GCJ \ 19093 lt_cv_prog_compiler_c_o_GCJ \ 19094 exclude_expsyms_GCJ \ 19095 include_expsyms_GCJ; do 19096 19097 case $var in 19098 old_archive_cmds_GCJ | \ 19099 old_archive_from_new_cmds_GCJ | \ 19100 archive_cmds_GCJ | \ 19101 archive_expsym_cmds_GCJ | \ 19102 module_cmds_GCJ | \ 19103 module_expsym_cmds_GCJ | \ 19104 old_archive_from_expsyms_cmds_GCJ | \ 19105 export_symbols_cmds_GCJ | \ 19106 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19107 postinstall_cmds | postuninstall_cmds | \ 19108 old_postinstall_cmds | old_postuninstall_cmds | \ 19109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19110 # Double-quote double-evaled strings. 19111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19112 ;; 19113 *) 19114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19115 ;; 19116 esac 19117 done 19118 19119 case $lt_echo in 19120 *'\$0 --fallback-echo"') 19121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19122 ;; 19123 esac 19124 19125cfgfile="$ofile" 19126 19127 cat <<__EOF__ >> "$cfgfile" 19128# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19129 19130# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19131 19132# Shell to use when invoking shell scripts. 19133SHELL=$lt_SHELL 19134 19135# Whether or not to build shared libraries. 19136build_libtool_libs=$enable_shared 19137 19138# Whether or not to build static libraries. 19139build_old_libs=$enable_static 19140 19141# Whether or not to add -lc for building shared libraries. 19142build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19143 19144# Whether or not to disallow shared libs when runtime libs are static 19145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19146 19147# Whether or not to optimize for fast installation. 19148fast_install=$enable_fast_install 19149 19150# The host system. 19151host_alias=$host_alias 19152host=$host 19153host_os=$host_os 19154 19155# The build system. 19156build_alias=$build_alias 19157build=$build 19158build_os=$build_os 19159 19160# An echo program that does not interpret backslashes. 19161echo=$lt_echo 19162 19163# The archiver. 19164AR=$lt_AR 19165AR_FLAGS=$lt_AR_FLAGS 19166 19167# A C compiler. 19168LTCC=$lt_LTCC 19169 19170# LTCC compiler flags. 19171LTCFLAGS=$lt_LTCFLAGS 19172 19173# A language-specific compiler. 19174CC=$lt_compiler_GCJ 19175 19176# Is the compiler the GNU C compiler? 19177with_gcc=$GCC_GCJ 19178 19179# An ERE matcher. 19180EGREP=$lt_EGREP 19181 19182# The linker used to build libraries. 19183LD=$lt_LD_GCJ 19184 19185# Whether we need hard or soft links. 19186LN_S=$lt_LN_S 19187 19188# A BSD-compatible nm program. 19189NM=$lt_NM 19190 19191# A symbol stripping program 19192STRIP=$lt_STRIP 19193 19194# Used to examine libraries when file_magic_cmd begins "file" 19195MAGIC_CMD=$MAGIC_CMD 19196 19197# Used on cygwin: DLL creation program. 19198DLLTOOL="$DLLTOOL" 19199 19200# Used on cygwin: object dumper. 19201OBJDUMP="$OBJDUMP" 19202 19203# Used on cygwin: assembler. 19204AS="$AS" 19205 19206# The name of the directory that contains temporary libtool files. 19207objdir=$objdir 19208 19209# How to create reloadable object files. 19210reload_flag=$lt_reload_flag 19211reload_cmds=$lt_reload_cmds 19212 19213# How to pass a linker flag through the compiler. 19214wl=$lt_lt_prog_compiler_wl_GCJ 19215 19216# Object file suffix (normally "o"). 19217objext="$ac_objext" 19218 19219# Old archive suffix (normally "a"). 19220libext="$libext" 19221 19222# Shared library suffix (normally ".so"). 19223shrext_cmds='$shrext_cmds' 19224 19225# Executable file suffix (normally ""). 19226exeext="$exeext" 19227 19228# Additional compiler flags for building library objects. 19229pic_flag=$lt_lt_prog_compiler_pic_GCJ 19230pic_mode=$pic_mode 19231 19232# What is the maximum length of a command? 19233max_cmd_len=$lt_cv_sys_max_cmd_len 19234 19235# Does compiler simultaneously support -c and -o options? 19236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19237 19238# Must we lock files when doing compilation? 19239need_locks=$lt_need_locks 19240 19241# Do we need the lib prefix for modules? 19242need_lib_prefix=$need_lib_prefix 19243 19244# Do we need a version for libraries? 19245need_version=$need_version 19246 19247# Whether dlopen is supported. 19248dlopen_support=$enable_dlopen 19249 19250# Whether dlopen of programs is supported. 19251dlopen_self=$enable_dlopen_self 19252 19253# Whether dlopen of statically linked programs is supported. 19254dlopen_self_static=$enable_dlopen_self_static 19255 19256# Compiler flag to prevent dynamic linking. 19257link_static_flag=$lt_lt_prog_compiler_static_GCJ 19258 19259# Compiler flag to turn off builtin functions. 19260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19261 19262# Compiler flag to allow reflexive dlopens. 19263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19264 19265# Compiler flag to generate shared objects directly from archives. 19266whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19267 19268# Compiler flag to generate thread-safe objects. 19269thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19270 19271# Library versioning type. 19272version_type=$version_type 19273 19274# Format of library name prefix. 19275libname_spec=$lt_libname_spec 19276 19277# List of archive names. First name is the real one, the rest are links. 19278# The last name is the one that the linker finds with -lNAME. 19279library_names_spec=$lt_library_names_spec 19280 19281# The coded name of the library, if different from the real name. 19282soname_spec=$lt_soname_spec 19283 19284# Commands used to build and install an old-style archive. 19285RANLIB=$lt_RANLIB 19286old_archive_cmds=$lt_old_archive_cmds_GCJ 19287old_postinstall_cmds=$lt_old_postinstall_cmds 19288old_postuninstall_cmds=$lt_old_postuninstall_cmds 19289 19290# Create an old-style archive from a shared archive. 19291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19292 19293# Create a temporary old-style archive to link instead of a shared archive. 19294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19295 19296# Commands used to build and install a shared archive. 19297archive_cmds=$lt_archive_cmds_GCJ 19298archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19299postinstall_cmds=$lt_postinstall_cmds 19300postuninstall_cmds=$lt_postuninstall_cmds 19301 19302# Commands used to build a loadable module (assumed same as above if empty) 19303module_cmds=$lt_module_cmds_GCJ 19304module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19305 19306# Commands to strip libraries. 19307old_striplib=$lt_old_striplib 19308striplib=$lt_striplib 19309 19310# Dependencies to place before the objects being linked to create a 19311# shared library. 19312predep_objects=$lt_predep_objects_GCJ 19313 19314# Dependencies to place after the objects being linked to create a 19315# shared library. 19316postdep_objects=$lt_postdep_objects_GCJ 19317 19318# Dependencies to place before the objects being linked to create a 19319# shared library. 19320predeps=$lt_predeps_GCJ 19321 19322# Dependencies to place after the objects being linked to create a 19323# shared library. 19324postdeps=$lt_postdeps_GCJ 19325 19326# The library search path used internally by the compiler when linking 19327# a shared library. 19328compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19329 19330# Method to check whether dependent libraries are shared objects. 19331deplibs_check_method=$lt_deplibs_check_method 19332 19333# Command to use when deplibs_check_method == file_magic. 19334file_magic_cmd=$lt_file_magic_cmd 19335 19336# Flag that allows shared libraries with undefined symbols to be built. 19337allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19338 19339# Flag that forces no undefined symbols. 19340no_undefined_flag=$lt_no_undefined_flag_GCJ 19341 19342# Commands used to finish a libtool library installation in a directory. 19343finish_cmds=$lt_finish_cmds 19344 19345# Same as above, but a single script fragment to be evaled but not shown. 19346finish_eval=$lt_finish_eval 19347 19348# Take the output of nm and produce a listing of raw symbols and C names. 19349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19350 19351# Transform the output of nm in a proper C declaration 19352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19353 19354# Transform the output of nm in a C name address pair 19355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19356 19357# This is the shared library runtime path variable. 19358runpath_var=$runpath_var 19359 19360# This is the shared library path variable. 19361shlibpath_var=$shlibpath_var 19362 19363# Is shlibpath searched before the hard-coded library search path? 19364shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19365 19366# How to hardcode a shared library path into an executable. 19367hardcode_action=$hardcode_action_GCJ 19368 19369# Whether we should hardcode library paths into libraries. 19370hardcode_into_libs=$hardcode_into_libs 19371 19372# Flag to hardcode \$libdir into a binary during linking. 19373# This must work even if \$libdir does not exist. 19374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19375 19376# If ld is used when linking, flag to hardcode \$libdir into 19377# a binary during linking. This must work even if \$libdir does 19378# not exist. 19379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19380 19381# Whether we need a single -rpath flag with a separated argument. 19382hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19383 19384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19385# resulting binary. 19386hardcode_direct=$hardcode_direct_GCJ 19387 19388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19389# resulting binary. 19390hardcode_minus_L=$hardcode_minus_L_GCJ 19391 19392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19393# the resulting binary. 19394hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19395 19396# Set to yes if building a shared library automatically hardcodes DIR into the library 19397# and all subsequent libraries and executables linked against it. 19398hardcode_automatic=$hardcode_automatic_GCJ 19399 19400# Variables whose values should be saved in libtool wrapper scripts and 19401# restored at relink time. 19402variables_saved_for_relink="$variables_saved_for_relink" 19403 19404# Whether libtool must link a program against all its dependency libraries. 19405link_all_deplibs=$link_all_deplibs_GCJ 19406 19407# Compile-time system search path for libraries 19408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19409 19410# Run-time system search path for libraries 19411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19412 19413# Fix the shell variable \$srcfile for the compiler. 19414fix_srcfile_path="$fix_srcfile_path_GCJ" 19415 19416# Set to yes if exported symbols are required. 19417always_export_symbols=$always_export_symbols_GCJ 19418 19419# The commands to list exported symbols. 19420export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19421 19422# The commands to extract the exported symbol list from a shared archive. 19423extract_expsyms_cmds=$lt_extract_expsyms_cmds 19424 19425# Symbols that should not be listed in the preloaded symbols. 19426exclude_expsyms=$lt_exclude_expsyms_GCJ 19427 19428# Symbols that must always be exported. 19429include_expsyms=$lt_include_expsyms_GCJ 19430 19431# ### END LIBTOOL TAG CONFIG: $tagname 19432 19433__EOF__ 19434 19435 19436else 19437 # If there is no Makefile yet, we rely on a make rule to execute 19438 # `config.status --recheck' to rerun these tests and create the 19439 # libtool script then. 19440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19441 if test -f "$ltmain_in"; then 19442 test -f Makefile && make "$ltmain" 19443 fi 19444fi 19445 19446 19447ac_ext=c 19448ac_cpp='$CPP $CPPFLAGS' 19449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19451ac_compiler_gnu=$ac_cv_c_compiler_gnu 19452 19453CC="$lt_save_CC" 19454 19455 else 19456 tagname="" 19457 fi 19458 ;; 19459 19460 RC) 19461 19462 19463# Source file extension for RC test sources. 19464ac_ext=rc 19465 19466# Object file extension for compiled RC test sources. 19467objext=o 19468objext_RC=$objext 19469 19470# Code to be used in simple compile tests 19471lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19472 19473# Code to be used in simple link tests 19474lt_simple_link_test_code="$lt_simple_compile_test_code" 19475 19476# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19477 19478# If no C compiler was specified, use CC. 19479LTCC=${LTCC-"$CC"} 19480 19481# If no C compiler flags were specified, use CFLAGS. 19482LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19483 19484# Allow CC to be a program name with arguments. 19485compiler=$CC 19486 19487 19488# save warnings/boilerplate of simple test code 19489ac_outfile=conftest.$ac_objext 19490printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19491eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19492_lt_compiler_boilerplate=`cat conftest.err` 19493$rm conftest* 19494 19495ac_outfile=conftest.$ac_objext 19496printf "$lt_simple_link_test_code" >conftest.$ac_ext 19497eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19498_lt_linker_boilerplate=`cat conftest.err` 19499$rm conftest* 19500 19501 19502# Allow CC to be a program name with arguments. 19503lt_save_CC="$CC" 19504CC=${RC-"windres"} 19505compiler=$CC 19506compiler_RC=$CC 19507for cc_temp in $compiler""; do 19508 case $cc_temp in 19509 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19510 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19511 \-*) ;; 19512 *) break;; 19513 esac 19514done 19515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19516 19517lt_cv_prog_compiler_c_o_RC=yes 19518 19519# The else clause should only fire when bootstrapping the 19520# libtool distribution, otherwise you forgot to ship ltmain.sh 19521# with your package, and you will get complaints that there are 19522# no rules to generate ltmain.sh. 19523if test -f "$ltmain"; then 19524 # See if we are running on zsh, and set the options which allow our commands through 19525 # without removal of \ escapes. 19526 if test -n "${ZSH_VERSION+set}" ; then 19527 setopt NO_GLOB_SUBST 19528 fi 19529 # Now quote all the things that may contain metacharacters while being 19530 # careful not to overquote the AC_SUBSTed values. We take copies of the 19531 # variables and quote the copies for generation of the libtool script. 19532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19533 SED SHELL STRIP \ 19534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19536 deplibs_check_method reload_flag reload_cmds need_locks \ 19537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19538 lt_cv_sys_global_symbol_to_c_name_address \ 19539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19540 old_postinstall_cmds old_postuninstall_cmds \ 19541 compiler_RC \ 19542 CC_RC \ 19543 LD_RC \ 19544 lt_prog_compiler_wl_RC \ 19545 lt_prog_compiler_pic_RC \ 19546 lt_prog_compiler_static_RC \ 19547 lt_prog_compiler_no_builtin_flag_RC \ 19548 export_dynamic_flag_spec_RC \ 19549 thread_safe_flag_spec_RC \ 19550 whole_archive_flag_spec_RC \ 19551 enable_shared_with_static_runtimes_RC \ 19552 old_archive_cmds_RC \ 19553 old_archive_from_new_cmds_RC \ 19554 predep_objects_RC \ 19555 postdep_objects_RC \ 19556 predeps_RC \ 19557 postdeps_RC \ 19558 compiler_lib_search_path_RC \ 19559 archive_cmds_RC \ 19560 archive_expsym_cmds_RC \ 19561 postinstall_cmds_RC \ 19562 postuninstall_cmds_RC \ 19563 old_archive_from_expsyms_cmds_RC \ 19564 allow_undefined_flag_RC \ 19565 no_undefined_flag_RC \ 19566 export_symbols_cmds_RC \ 19567 hardcode_libdir_flag_spec_RC \ 19568 hardcode_libdir_flag_spec_ld_RC \ 19569 hardcode_libdir_separator_RC \ 19570 hardcode_automatic_RC \ 19571 module_cmds_RC \ 19572 module_expsym_cmds_RC \ 19573 lt_cv_prog_compiler_c_o_RC \ 19574 exclude_expsyms_RC \ 19575 include_expsyms_RC; do 19576 19577 case $var in 19578 old_archive_cmds_RC | \ 19579 old_archive_from_new_cmds_RC | \ 19580 archive_cmds_RC | \ 19581 archive_expsym_cmds_RC | \ 19582 module_cmds_RC | \ 19583 module_expsym_cmds_RC | \ 19584 old_archive_from_expsyms_cmds_RC | \ 19585 export_symbols_cmds_RC | \ 19586 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19587 postinstall_cmds | postuninstall_cmds | \ 19588 old_postinstall_cmds | old_postuninstall_cmds | \ 19589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19590 # Double-quote double-evaled strings. 19591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19592 ;; 19593 *) 19594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19595 ;; 19596 esac 19597 done 19598 19599 case $lt_echo in 19600 *'\$0 --fallback-echo"') 19601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19602 ;; 19603 esac 19604 19605cfgfile="$ofile" 19606 19607 cat <<__EOF__ >> "$cfgfile" 19608# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19609 19610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19611 19612# Shell to use when invoking shell scripts. 19613SHELL=$lt_SHELL 19614 19615# Whether or not to build shared libraries. 19616build_libtool_libs=$enable_shared 19617 19618# Whether or not to build static libraries. 19619build_old_libs=$enable_static 19620 19621# Whether or not to add -lc for building shared libraries. 19622build_libtool_need_lc=$archive_cmds_need_lc_RC 19623 19624# Whether or not to disallow shared libs when runtime libs are static 19625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19626 19627# Whether or not to optimize for fast installation. 19628fast_install=$enable_fast_install 19629 19630# The host system. 19631host_alias=$host_alias 19632host=$host 19633host_os=$host_os 19634 19635# The build system. 19636build_alias=$build_alias 19637build=$build 19638build_os=$build_os 19639 19640# An echo program that does not interpret backslashes. 19641echo=$lt_echo 19642 19643# The archiver. 19644AR=$lt_AR 19645AR_FLAGS=$lt_AR_FLAGS 19646 19647# A C compiler. 19648LTCC=$lt_LTCC 19649 19650# LTCC compiler flags. 19651LTCFLAGS=$lt_LTCFLAGS 19652 19653# A language-specific compiler. 19654CC=$lt_compiler_RC 19655 19656# Is the compiler the GNU C compiler? 19657with_gcc=$GCC_RC 19658 19659# An ERE matcher. 19660EGREP=$lt_EGREP 19661 19662# The linker used to build libraries. 19663LD=$lt_LD_RC 19664 19665# Whether we need hard or soft links. 19666LN_S=$lt_LN_S 19667 19668# A BSD-compatible nm program. 19669NM=$lt_NM 19670 19671# A symbol stripping program 19672STRIP=$lt_STRIP 19673 19674# Used to examine libraries when file_magic_cmd begins "file" 19675MAGIC_CMD=$MAGIC_CMD 19676 19677# Used on cygwin: DLL creation program. 19678DLLTOOL="$DLLTOOL" 19679 19680# Used on cygwin: object dumper. 19681OBJDUMP="$OBJDUMP" 19682 19683# Used on cygwin: assembler. 19684AS="$AS" 19685 19686# The name of the directory that contains temporary libtool files. 19687objdir=$objdir 19688 19689# How to create reloadable object files. 19690reload_flag=$lt_reload_flag 19691reload_cmds=$lt_reload_cmds 19692 19693# How to pass a linker flag through the compiler. 19694wl=$lt_lt_prog_compiler_wl_RC 19695 19696# Object file suffix (normally "o"). 19697objext="$ac_objext" 19698 19699# Old archive suffix (normally "a"). 19700libext="$libext" 19701 19702# Shared library suffix (normally ".so"). 19703shrext_cmds='$shrext_cmds' 19704 19705# Executable file suffix (normally ""). 19706exeext="$exeext" 19707 19708# Additional compiler flags for building library objects. 19709pic_flag=$lt_lt_prog_compiler_pic_RC 19710pic_mode=$pic_mode 19711 19712# What is the maximum length of a command? 19713max_cmd_len=$lt_cv_sys_max_cmd_len 19714 19715# Does compiler simultaneously support -c and -o options? 19716compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19717 19718# Must we lock files when doing compilation? 19719need_locks=$lt_need_locks 19720 19721# Do we need the lib prefix for modules? 19722need_lib_prefix=$need_lib_prefix 19723 19724# Do we need a version for libraries? 19725need_version=$need_version 19726 19727# Whether dlopen is supported. 19728dlopen_support=$enable_dlopen 19729 19730# Whether dlopen of programs is supported. 19731dlopen_self=$enable_dlopen_self 19732 19733# Whether dlopen of statically linked programs is supported. 19734dlopen_self_static=$enable_dlopen_self_static 19735 19736# Compiler flag to prevent dynamic linking. 19737link_static_flag=$lt_lt_prog_compiler_static_RC 19738 19739# Compiler flag to turn off builtin functions. 19740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19741 19742# Compiler flag to allow reflexive dlopens. 19743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19744 19745# Compiler flag to generate shared objects directly from archives. 19746whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19747 19748# Compiler flag to generate thread-safe objects. 19749thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19750 19751# Library versioning type. 19752version_type=$version_type 19753 19754# Format of library name prefix. 19755libname_spec=$lt_libname_spec 19756 19757# List of archive names. First name is the real one, the rest are links. 19758# The last name is the one that the linker finds with -lNAME. 19759library_names_spec=$lt_library_names_spec 19760 19761# The coded name of the library, if different from the real name. 19762soname_spec=$lt_soname_spec 19763 19764# Commands used to build and install an old-style archive. 19765RANLIB=$lt_RANLIB 19766old_archive_cmds=$lt_old_archive_cmds_RC 19767old_postinstall_cmds=$lt_old_postinstall_cmds 19768old_postuninstall_cmds=$lt_old_postuninstall_cmds 19769 19770# Create an old-style archive from a shared archive. 19771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19772 19773# Create a temporary old-style archive to link instead of a shared archive. 19774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19775 19776# Commands used to build and install a shared archive. 19777archive_cmds=$lt_archive_cmds_RC 19778archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19779postinstall_cmds=$lt_postinstall_cmds 19780postuninstall_cmds=$lt_postuninstall_cmds 19781 19782# Commands used to build a loadable module (assumed same as above if empty) 19783module_cmds=$lt_module_cmds_RC 19784module_expsym_cmds=$lt_module_expsym_cmds_RC 19785 19786# Commands to strip libraries. 19787old_striplib=$lt_old_striplib 19788striplib=$lt_striplib 19789 19790# Dependencies to place before the objects being linked to create a 19791# shared library. 19792predep_objects=$lt_predep_objects_RC 19793 19794# Dependencies to place after the objects being linked to create a 19795# shared library. 19796postdep_objects=$lt_postdep_objects_RC 19797 19798# Dependencies to place before the objects being linked to create a 19799# shared library. 19800predeps=$lt_predeps_RC 19801 19802# Dependencies to place after the objects being linked to create a 19803# shared library. 19804postdeps=$lt_postdeps_RC 19805 19806# The library search path used internally by the compiler when linking 19807# a shared library. 19808compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19809 19810# Method to check whether dependent libraries are shared objects. 19811deplibs_check_method=$lt_deplibs_check_method 19812 19813# Command to use when deplibs_check_method == file_magic. 19814file_magic_cmd=$lt_file_magic_cmd 19815 19816# Flag that allows shared libraries with undefined symbols to be built. 19817allow_undefined_flag=$lt_allow_undefined_flag_RC 19818 19819# Flag that forces no undefined symbols. 19820no_undefined_flag=$lt_no_undefined_flag_RC 19821 19822# Commands used to finish a libtool library installation in a directory. 19823finish_cmds=$lt_finish_cmds 19824 19825# Same as above, but a single script fragment to be evaled but not shown. 19826finish_eval=$lt_finish_eval 19827 19828# Take the output of nm and produce a listing of raw symbols and C names. 19829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19830 19831# Transform the output of nm in a proper C declaration 19832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19833 19834# Transform the output of nm in a C name address pair 19835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19836 19837# This is the shared library runtime path variable. 19838runpath_var=$runpath_var 19839 19840# This is the shared library path variable. 19841shlibpath_var=$shlibpath_var 19842 19843# Is shlibpath searched before the hard-coded library search path? 19844shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19845 19846# How to hardcode a shared library path into an executable. 19847hardcode_action=$hardcode_action_RC 19848 19849# Whether we should hardcode library paths into libraries. 19850hardcode_into_libs=$hardcode_into_libs 19851 19852# Flag to hardcode \$libdir into a binary during linking. 19853# This must work even if \$libdir does not exist. 19854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19855 19856# If ld is used when linking, flag to hardcode \$libdir into 19857# a binary during linking. This must work even if \$libdir does 19858# not exist. 19859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19860 19861# Whether we need a single -rpath flag with a separated argument. 19862hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19863 19864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19865# resulting binary. 19866hardcode_direct=$hardcode_direct_RC 19867 19868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19869# resulting binary. 19870hardcode_minus_L=$hardcode_minus_L_RC 19871 19872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19873# the resulting binary. 19874hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19875 19876# Set to yes if building a shared library automatically hardcodes DIR into the library 19877# and all subsequent libraries and executables linked against it. 19878hardcode_automatic=$hardcode_automatic_RC 19879 19880# Variables whose values should be saved in libtool wrapper scripts and 19881# restored at relink time. 19882variables_saved_for_relink="$variables_saved_for_relink" 19883 19884# Whether libtool must link a program against all its dependency libraries. 19885link_all_deplibs=$link_all_deplibs_RC 19886 19887# Compile-time system search path for libraries 19888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19889 19890# Run-time system search path for libraries 19891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19892 19893# Fix the shell variable \$srcfile for the compiler. 19894fix_srcfile_path="$fix_srcfile_path_RC" 19895 19896# Set to yes if exported symbols are required. 19897always_export_symbols=$always_export_symbols_RC 19898 19899# The commands to list exported symbols. 19900export_symbols_cmds=$lt_export_symbols_cmds_RC 19901 19902# The commands to extract the exported symbol list from a shared archive. 19903extract_expsyms_cmds=$lt_extract_expsyms_cmds 19904 19905# Symbols that should not be listed in the preloaded symbols. 19906exclude_expsyms=$lt_exclude_expsyms_RC 19907 19908# Symbols that must always be exported. 19909include_expsyms=$lt_include_expsyms_RC 19910 19911# ### END LIBTOOL TAG CONFIG: $tagname 19912 19913__EOF__ 19914 19915 19916else 19917 # If there is no Makefile yet, we rely on a make rule to execute 19918 # `config.status --recheck' to rerun these tests and create the 19919 # libtool script then. 19920 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19921 if test -f "$ltmain_in"; then 19922 test -f Makefile && make "$ltmain" 19923 fi 19924fi 19925 19926 19927ac_ext=c 19928ac_cpp='$CPP $CPPFLAGS' 19929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19931ac_compiler_gnu=$ac_cv_c_compiler_gnu 19932 19933CC="$lt_save_CC" 19934 19935 ;; 19936 19937 *) 19938 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19939echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19940 { (exit 1); exit 1; }; } 19941 ;; 19942 esac 19943 19944 # Append the new tag name to the list of available tags. 19945 if test -n "$tagname" ; then 19946 available_tags="$available_tags $tagname" 19947 fi 19948 fi 19949 done 19950 IFS="$lt_save_ifs" 19951 19952 # Now substitute the updated list of available tags. 19953 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19954 mv -f "${ofile}T" "$ofile" 19955 chmod +x "$ofile" 19956 else 19957 rm -f "${ofile}T" 19958 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19959echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19960 { (exit 1); exit 1; }; } 19961 fi 19962fi 19963 19964 19965 19966# This can be used to rebuild libtool when needed 19967LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19968 19969# Always use our own libtool. 19970LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19971 19972# Prevent multiple expansion 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993# Extract the first word of "makedepend", so it can be a program name with args. 19994set dummy makedepend; ac_word=$2 19995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19997if test "${ac_cv_path_MAKEDEPEND+set}" = set; then 19998 echo $ECHO_N "(cached) $ECHO_C" >&6 19999else 20000 case $MAKEDEPEND in 20001 [\\/]* | ?:[\\/]*) 20002 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. 20003 ;; 20004 *) 20005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20006for as_dir in $PATH 20007do 20008 IFS=$as_save_IFS 20009 test -z "$as_dir" && as_dir=. 20010 for ac_exec_ext in '' $ac_executable_extensions; do 20011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20012 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" 20013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20014 break 2 20015 fi 20016done 20017done 20018IFS=$as_save_IFS 20019 20020 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUE" 20021 ;; 20022esac 20023fi 20024MAKEDEPEND=$ac_cv_path_MAKEDEPEND 20025if test -n "$MAKEDEPEND"; then 20026 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 20027echo "${ECHO_T}$MAKEDEPEND" >&6; } 20028else 20029 { echo "$as_me:$LINENO: result: no" >&5 20030echo "${ECHO_T}no" >&6; } 20031fi 20032 20033 20034 20035{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 20036echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } 20037if test "${ac_cv_cxx_namespaces+set}" = set; then 20038 echo $ECHO_N "(cached) $ECHO_C" >&6 20039else 20040 20041 ac_ext=cpp 20042ac_cpp='$CXXCPP $CPPFLAGS' 20043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20046 20047 cat >conftest.$ac_ext <<_ACEOF 20048/* confdefs.h. */ 20049_ACEOF 20050cat confdefs.h >>conftest.$ac_ext 20051cat >>conftest.$ac_ext <<_ACEOF 20052/* end confdefs.h. */ 20053namespace Outer { namespace Inner { int i = 0; }} 20054int 20055main () 20056{ 20057using namespace Outer::Inner; return i; 20058 ; 20059 return 0; 20060} 20061_ACEOF 20062rm -f conftest.$ac_objext 20063if { (ac_try="$ac_compile" 20064case "(($ac_try" in 20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20066 *) ac_try_echo=$ac_try;; 20067esac 20068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20069 (eval "$ac_compile") 2>conftest.er1 20070 ac_status=$? 20071 grep -v '^ *+' conftest.er1 >conftest.err 20072 rm -f conftest.er1 20073 cat conftest.err >&5 20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20075 (exit $ac_status); } && 20076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20077 { (case "(($ac_try" in 20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20079 *) ac_try_echo=$ac_try;; 20080esac 20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20082 (eval "$ac_try") 2>&5 20083 ac_status=$? 20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20085 (exit $ac_status); }; } && 20086 { ac_try='test -s conftest.$ac_objext' 20087 { (case "(($ac_try" in 20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20089 *) ac_try_echo=$ac_try;; 20090esac 20091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20092 (eval "$ac_try") 2>&5 20093 ac_status=$? 20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20095 (exit $ac_status); }; }; then 20096 ac_cv_cxx_namespaces=yes 20097else 20098 echo "$as_me: failed program was:" >&5 20099sed 's/^/| /' conftest.$ac_ext >&5 20100 20101 ac_cv_cxx_namespaces=no 20102fi 20103 20104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20105 ac_ext=c 20106ac_cpp='$CPP $CPPFLAGS' 20107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20109ac_compiler_gnu=$ac_cv_c_compiler_gnu 20110 20111 20112fi 20113{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 20114echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } 20115if test "$ac_cv_cxx_namespaces" = yes; then 20116 20117cat >>confdefs.h <<\_ACEOF 20118#define HAVE_NAMESPACES 20119_ACEOF 20120 20121fi 20122 20123{ echo "$as_me:$LINENO: checking whether the compiler supports use of the template keyword as a qualifier" >&5 20124echo $ECHO_N "checking whether the compiler supports use of the template keyword as a qualifier... $ECHO_C" >&6; } 20125if test "${ac_cv_cxx_template_keyword_qualifier+set}" = set; then 20126 echo $ECHO_N "(cached) $ECHO_C" >&6 20127else 20128 20129 ac_ext=cpp 20130ac_cpp='$CXXCPP $CPPFLAGS' 20131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20134 20135 cat >conftest.$ac_ext <<_ACEOF 20136/* confdefs.h. */ 20137_ACEOF 20138cat confdefs.h >>conftest.$ac_ext 20139cat >>conftest.$ac_ext <<_ACEOF 20140/* end confdefs.h. */ 20141 20142 class X 20143 { 20144 public: 20145 template<int> void member() {} 20146 template<int> static void static_member() {} 20147 }; 20148 template<class T> void f(T* p) 20149 { 20150 p->template member<200>(); // OK: < starts template argument 20151 T::template static_member<100>(); // OK: < starts explicit qualification 20152 } 20153 20154int 20155main () 20156{ 20157X x; f(&x); return 0; 20158 ; 20159 return 0; 20160} 20161_ACEOF 20162rm -f conftest.$ac_objext 20163if { (ac_try="$ac_compile" 20164case "(($ac_try" in 20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20166 *) ac_try_echo=$ac_try;; 20167esac 20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20169 (eval "$ac_compile") 2>conftest.er1 20170 ac_status=$? 20171 grep -v '^ *+' conftest.er1 >conftest.err 20172 rm -f conftest.er1 20173 cat conftest.err >&5 20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20175 (exit $ac_status); } && 20176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20177 { (case "(($ac_try" in 20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20179 *) ac_try_echo=$ac_try;; 20180esac 20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20182 (eval "$ac_try") 2>&5 20183 ac_status=$? 20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20185 (exit $ac_status); }; } && 20186 { ac_try='test -s conftest.$ac_objext' 20187 { (case "(($ac_try" in 20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20189 *) ac_try_echo=$ac_try;; 20190esac 20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20192 (eval "$ac_try") 2>&5 20193 ac_status=$? 20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20195 (exit $ac_status); }; }; then 20196 ac_cv_cxx_template_keyword_qualifier=yes 20197else 20198 echo "$as_me: failed program was:" >&5 20199sed 's/^/| /' conftest.$ac_ext >&5 20200 20201 ac_cv_cxx_template_keyword_qualifier=no 20202fi 20203 20204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20205 ac_ext=c 20206ac_cpp='$CPP $CPPFLAGS' 20207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20209ac_compiler_gnu=$ac_cv_c_compiler_gnu 20210 20211 20212fi 20213{ echo "$as_me:$LINENO: result: $ac_cv_cxx_template_keyword_qualifier" >&5 20214echo "${ECHO_T}$ac_cv_cxx_template_keyword_qualifier" >&6; } 20215if test "$ac_cv_cxx_template_keyword_qualifier" = yes; then 20216 20217cat >>confdefs.h <<\_ACEOF 20218#define HAVE_TEMPLATE_KEYWORD_QUALIFIER 20219_ACEOF 20220 20221fi 20222 20223{ echo "$as_me:$LINENO: checking whether the compiler supports partial specialization" >&5 20224echo $ECHO_N "checking whether the compiler supports partial specialization... $ECHO_C" >&6; } 20225if test "${ac_cv_cxx_partial_specialization+set}" = set; then 20226 echo $ECHO_N "(cached) $ECHO_C" >&6 20227else 20228 20229 ac_ext=cpp 20230ac_cpp='$CXXCPP $CPPFLAGS' 20231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20234 20235 cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241 20242template<class T, int N> class A { public : enum e { z = 0 }; }; 20243template<int N> class A<double, N> { public : enum e { z = 1 }; }; 20244template<class T> class A<T, 2> { public : enum e { z = 2 }; }; 20245 20246int 20247main () 20248{ 20249return (A<int,3>::z == 0) && (A<double,3>::z == 1) && (A<float,2>::z == 2); 20250 ; 20251 return 0; 20252} 20253_ACEOF 20254rm -f conftest.$ac_objext 20255if { (ac_try="$ac_compile" 20256case "(($ac_try" in 20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20258 *) ac_try_echo=$ac_try;; 20259esac 20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20261 (eval "$ac_compile") 2>conftest.er1 20262 ac_status=$? 20263 grep -v '^ *+' conftest.er1 >conftest.err 20264 rm -f conftest.er1 20265 cat conftest.err >&5 20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20267 (exit $ac_status); } && 20268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20269 { (case "(($ac_try" in 20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20271 *) ac_try_echo=$ac_try;; 20272esac 20273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20274 (eval "$ac_try") 2>&5 20275 ac_status=$? 20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20277 (exit $ac_status); }; } && 20278 { ac_try='test -s conftest.$ac_objext' 20279 { (case "(($ac_try" in 20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20281 *) ac_try_echo=$ac_try;; 20282esac 20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20284 (eval "$ac_try") 2>&5 20285 ac_status=$? 20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20287 (exit $ac_status); }; }; then 20288 ac_cv_cxx_partial_specialization=yes 20289else 20290 echo "$as_me: failed program was:" >&5 20291sed 's/^/| /' conftest.$ac_ext >&5 20292 20293 ac_cv_cxx_partial_specialization=no 20294fi 20295 20296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20297 ac_ext=c 20298ac_cpp='$CPP $CPPFLAGS' 20299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20301ac_compiler_gnu=$ac_cv_c_compiler_gnu 20302 20303 20304fi 20305{ echo "$as_me:$LINENO: result: $ac_cv_cxx_partial_specialization" >&5 20306echo "${ECHO_T}$ac_cv_cxx_partial_specialization" >&6; } 20307if test "$ac_cv_cxx_partial_specialization" = yes; then 20308 20309cat >>confdefs.h <<\_ACEOF 20310#define HAVE_PARTIAL_SPECIALIZATION 20311_ACEOF 20312 20313fi 20314 20315{ echo "$as_me:$LINENO: checking whether the compiler recognizes typename" >&5 20316echo $ECHO_N "checking whether the compiler recognizes typename... $ECHO_C" >&6; } 20317if test "${ac_cv_cxx_typename+set}" = set; then 20318 echo $ECHO_N "(cached) $ECHO_C" >&6 20319else 20320 20321 ac_ext=cpp 20322ac_cpp='$CXXCPP $CPPFLAGS' 20323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20326 20327 cat >conftest.$ac_ext <<_ACEOF 20328/* confdefs.h. */ 20329_ACEOF 20330cat confdefs.h >>conftest.$ac_ext 20331cat >>conftest.$ac_ext <<_ACEOF 20332/* end confdefs.h. */ 20333template<typename T>class X {public:X(){}}; 20334int 20335main () 20336{ 20337X<float> z; return 0; 20338 ; 20339 return 0; 20340} 20341_ACEOF 20342rm -f conftest.$ac_objext 20343if { (ac_try="$ac_compile" 20344case "(($ac_try" in 20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20346 *) ac_try_echo=$ac_try;; 20347esac 20348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20349 (eval "$ac_compile") 2>conftest.er1 20350 ac_status=$? 20351 grep -v '^ *+' conftest.er1 >conftest.err 20352 rm -f conftest.er1 20353 cat conftest.err >&5 20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20355 (exit $ac_status); } && 20356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20357 { (case "(($ac_try" in 20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20359 *) ac_try_echo=$ac_try;; 20360esac 20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20362 (eval "$ac_try") 2>&5 20363 ac_status=$? 20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20365 (exit $ac_status); }; } && 20366 { ac_try='test -s conftest.$ac_objext' 20367 { (case "(($ac_try" in 20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20369 *) ac_try_echo=$ac_try;; 20370esac 20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20372 (eval "$ac_try") 2>&5 20373 ac_status=$? 20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20375 (exit $ac_status); }; }; then 20376 ac_cv_cxx_typename=yes 20377else 20378 echo "$as_me: failed program was:" >&5 20379sed 's/^/| /' conftest.$ac_ext >&5 20380 20381 ac_cv_cxx_typename=no 20382fi 20383 20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20385 ac_ext=c 20386ac_cpp='$CPP $CPPFLAGS' 20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20389ac_compiler_gnu=$ac_cv_c_compiler_gnu 20390 20391 20392fi 20393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5 20394echo "${ECHO_T}$ac_cv_cxx_typename" >&6; } 20395if test "$ac_cv_cxx_typename" = yes; then 20396 20397cat >>confdefs.h <<\_ACEOF 20398#define HAVE_TYPENAME 20399_ACEOF 20400 20401fi 20402 20403 20404 20405{ echo "$as_me:$LINENO: checking for main in -lgcc" >&5 20406echo $ECHO_N "checking for main in -lgcc... $ECHO_C" >&6; } 20407if test "${ac_cv_lib_gcc_main+set}" = set; then 20408 echo $ECHO_N "(cached) $ECHO_C" >&6 20409else 20410 ac_check_lib_save_LIBS=$LIBS 20411LIBS="-lgcc $LIBS" 20412cat >conftest.$ac_ext <<_ACEOF 20413/* confdefs.h. */ 20414_ACEOF 20415cat confdefs.h >>conftest.$ac_ext 20416cat >>conftest.$ac_ext <<_ACEOF 20417/* end confdefs.h. */ 20418 20419 20420int 20421main () 20422{ 20423return main (); 20424 ; 20425 return 0; 20426} 20427_ACEOF 20428rm -f conftest.$ac_objext conftest$ac_exeext 20429if { (ac_try="$ac_link" 20430case "(($ac_try" in 20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20432 *) ac_try_echo=$ac_try;; 20433esac 20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20435 (eval "$ac_link") 2>conftest.er1 20436 ac_status=$? 20437 grep -v '^ *+' conftest.er1 >conftest.err 20438 rm -f conftest.er1 20439 cat conftest.err >&5 20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20441 (exit $ac_status); } && 20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20443 { (case "(($ac_try" in 20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20445 *) ac_try_echo=$ac_try;; 20446esac 20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20448 (eval "$ac_try") 2>&5 20449 ac_status=$? 20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 (exit $ac_status); }; } && 20452 { ac_try='test -s conftest$ac_exeext' 20453 { (case "(($ac_try" in 20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20455 *) ac_try_echo=$ac_try;; 20456esac 20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20458 (eval "$ac_try") 2>&5 20459 ac_status=$? 20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20461 (exit $ac_status); }; }; then 20462 ac_cv_lib_gcc_main=yes 20463else 20464 echo "$as_me: failed program was:" >&5 20465sed 's/^/| /' conftest.$ac_ext >&5 20466 20467 ac_cv_lib_gcc_main=no 20468fi 20469 20470rm -f core conftest.err conftest.$ac_objext \ 20471 conftest$ac_exeext conftest.$ac_ext 20472LIBS=$ac_check_lib_save_LIBS 20473fi 20474{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc_main" >&5 20475echo "${ECHO_T}$ac_cv_lib_gcc_main" >&6; } 20476if test $ac_cv_lib_gcc_main = yes; then 20477 cat >>confdefs.h <<_ACEOF 20478#define HAVE_LIBGCC 1 20479_ACEOF 20480 20481 LIBS="-lgcc $LIBS" 20482 20483fi 20484 20485 20486{ echo "$as_me:$LINENO: checking for main in -lgcc_s" >&5 20487echo $ECHO_N "checking for main in -lgcc_s... $ECHO_C" >&6; } 20488if test "${ac_cv_lib_gcc_s_main+set}" = set; then 20489 echo $ECHO_N "(cached) $ECHO_C" >&6 20490else 20491 ac_check_lib_save_LIBS=$LIBS 20492LIBS="-lgcc_s $LIBS" 20493cat >conftest.$ac_ext <<_ACEOF 20494/* confdefs.h. */ 20495_ACEOF 20496cat confdefs.h >>conftest.$ac_ext 20497cat >>conftest.$ac_ext <<_ACEOF 20498/* end confdefs.h. */ 20499 20500 20501int 20502main () 20503{ 20504return main (); 20505 ; 20506 return 0; 20507} 20508_ACEOF 20509rm -f conftest.$ac_objext conftest$ac_exeext 20510if { (ac_try="$ac_link" 20511case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514esac 20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_link") 2>conftest.er1 20517 ac_status=$? 20518 grep -v '^ *+' conftest.er1 >conftest.err 20519 rm -f conftest.er1 20520 cat conftest.err >&5 20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20522 (exit $ac_status); } && 20523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20524 { (case "(($ac_try" in 20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20526 *) ac_try_echo=$ac_try;; 20527esac 20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20529 (eval "$ac_try") 2>&5 20530 ac_status=$? 20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20532 (exit $ac_status); }; } && 20533 { ac_try='test -s conftest$ac_exeext' 20534 { (case "(($ac_try" in 20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20536 *) ac_try_echo=$ac_try;; 20537esac 20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20539 (eval "$ac_try") 2>&5 20540 ac_status=$? 20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20542 (exit $ac_status); }; }; then 20543 ac_cv_lib_gcc_s_main=yes 20544else 20545 echo "$as_me: failed program was:" >&5 20546sed 's/^/| /' conftest.$ac_ext >&5 20547 20548 ac_cv_lib_gcc_s_main=no 20549fi 20550 20551rm -f core conftest.err conftest.$ac_objext \ 20552 conftest$ac_exeext conftest.$ac_ext 20553LIBS=$ac_check_lib_save_LIBS 20554fi 20555{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc_s_main" >&5 20556echo "${ECHO_T}$ac_cv_lib_gcc_s_main" >&6; } 20557if test $ac_cv_lib_gcc_s_main = yes; then 20558 cat >>confdefs.h <<_ACEOF 20559#define HAVE_LIBGCC_S 1 20560_ACEOF 20561 20562 LIBS="-lgcc_s $LIBS" 20563 20564fi 20565 20566 20567{ echo "$as_me:$LINENO: checking for isnan in -lm" >&5 20568echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6; } 20569if test "${ac_cv_lib_m_isnan+set}" = set; then 20570 echo $ECHO_N "(cached) $ECHO_C" >&6 20571else 20572 ac_check_lib_save_LIBS=$LIBS 20573LIBS="-lm $LIBS" 20574cat >conftest.$ac_ext <<_ACEOF 20575/* confdefs.h. */ 20576_ACEOF 20577cat confdefs.h >>conftest.$ac_ext 20578cat >>conftest.$ac_ext <<_ACEOF 20579/* end confdefs.h. */ 20580 20581/* Override any GCC internal prototype to avoid an error. 20582 Use char because int might match the return type of a GCC 20583 builtin and then its argument prototype would still apply. */ 20584#ifdef __cplusplus 20585extern "C" 20586#endif 20587char isnan (); 20588int 20589main () 20590{ 20591return isnan (); 20592 ; 20593 return 0; 20594} 20595_ACEOF 20596rm -f conftest.$ac_objext conftest$ac_exeext 20597if { (ac_try="$ac_link" 20598case "(($ac_try" in 20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20600 *) ac_try_echo=$ac_try;; 20601esac 20602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20603 (eval "$ac_link") 2>conftest.er1 20604 ac_status=$? 20605 grep -v '^ *+' conftest.er1 >conftest.err 20606 rm -f conftest.er1 20607 cat conftest.err >&5 20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20609 (exit $ac_status); } && 20610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20611 { (case "(($ac_try" in 20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20613 *) ac_try_echo=$ac_try;; 20614esac 20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20616 (eval "$ac_try") 2>&5 20617 ac_status=$? 20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20619 (exit $ac_status); }; } && 20620 { ac_try='test -s conftest$ac_exeext' 20621 { (case "(($ac_try" in 20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20623 *) ac_try_echo=$ac_try;; 20624esac 20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20626 (eval "$ac_try") 2>&5 20627 ac_status=$? 20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20629 (exit $ac_status); }; }; then 20630 ac_cv_lib_m_isnan=yes 20631else 20632 echo "$as_me: failed program was:" >&5 20633sed 's/^/| /' conftest.$ac_ext >&5 20634 20635 ac_cv_lib_m_isnan=no 20636fi 20637 20638rm -f core conftest.err conftest.$ac_objext \ 20639 conftest$ac_exeext conftest.$ac_ext 20640LIBS=$ac_check_lib_save_LIBS 20641fi 20642{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5 20643echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6; } 20644if test $ac_cv_lib_m_isnan = yes; then 20645 cat >>confdefs.h <<_ACEOF 20646#define HAVE_LIBM 1 20647_ACEOF 20648 20649 LIBS="-lm $LIBS" 20650 20651fi 20652 20653 20654{ echo "$as_me:$LINENO: checking for main in -lstdc++" >&5 20655echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; } 20656if test "${ac_cv_lib_stdcpp_main+set}" = set; then 20657 echo $ECHO_N "(cached) $ECHO_C" >&6 20658else 20659 ac_check_lib_save_LIBS=$LIBS 20660LIBS="-lstdc++ $LIBS" 20661cat >conftest.$ac_ext <<_ACEOF 20662/* confdefs.h. */ 20663_ACEOF 20664cat confdefs.h >>conftest.$ac_ext 20665cat >>conftest.$ac_ext <<_ACEOF 20666/* end confdefs.h. */ 20667 20668 20669int 20670main () 20671{ 20672return main (); 20673 ; 20674 return 0; 20675} 20676_ACEOF 20677rm -f conftest.$ac_objext conftest$ac_exeext 20678if { (ac_try="$ac_link" 20679case "(($ac_try" in 20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20681 *) ac_try_echo=$ac_try;; 20682esac 20683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20684 (eval "$ac_link") 2>conftest.er1 20685 ac_status=$? 20686 grep -v '^ *+' conftest.er1 >conftest.err 20687 rm -f conftest.er1 20688 cat conftest.err >&5 20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20690 (exit $ac_status); } && 20691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20692 { (case "(($ac_try" in 20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20694 *) ac_try_echo=$ac_try;; 20695esac 20696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20697 (eval "$ac_try") 2>&5 20698 ac_status=$? 20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20700 (exit $ac_status); }; } && 20701 { ac_try='test -s conftest$ac_exeext' 20702 { (case "(($ac_try" in 20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20704 *) ac_try_echo=$ac_try;; 20705esac 20706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20707 (eval "$ac_try") 2>&5 20708 ac_status=$? 20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20710 (exit $ac_status); }; }; then 20711 ac_cv_lib_stdcpp_main=yes 20712else 20713 echo "$as_me: failed program was:" >&5 20714sed 's/^/| /' conftest.$ac_ext >&5 20715 20716 ac_cv_lib_stdcpp_main=no 20717fi 20718 20719rm -f core conftest.err conftest.$ac_objext \ 20720 conftest$ac_exeext conftest.$ac_ext 20721LIBS=$ac_check_lib_save_LIBS 20722fi 20723{ echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5 20724echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; } 20725if test $ac_cv_lib_stdcpp_main = yes; then 20726 cat >>confdefs.h <<_ACEOF 20727#define HAVE_LIBSTDC__ 1 20728_ACEOF 20729 20730 LIBS="-lstdc++ $LIBS" 20731 20732fi 20733 20734 20735{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20736echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 20737if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20738 echo $ECHO_N "(cached) $ECHO_C" >&6 20739else 20740 ac_check_lib_save_LIBS=$LIBS 20741LIBS="-lnsl $LIBS" 20742cat >conftest.$ac_ext <<_ACEOF 20743/* confdefs.h. */ 20744_ACEOF 20745cat confdefs.h >>conftest.$ac_ext 20746cat >>conftest.$ac_ext <<_ACEOF 20747/* end confdefs.h. */ 20748 20749/* Override any GCC internal prototype to avoid an error. 20750 Use char because int might match the return type of a GCC 20751 builtin and then its argument prototype would still apply. */ 20752#ifdef __cplusplus 20753extern "C" 20754#endif 20755char gethostbyname (); 20756int 20757main () 20758{ 20759return gethostbyname (); 20760 ; 20761 return 0; 20762} 20763_ACEOF 20764rm -f conftest.$ac_objext conftest$ac_exeext 20765if { (ac_try="$ac_link" 20766case "(($ac_try" in 20767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20768 *) ac_try_echo=$ac_try;; 20769esac 20770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20771 (eval "$ac_link") 2>conftest.er1 20772 ac_status=$? 20773 grep -v '^ *+' conftest.er1 >conftest.err 20774 rm -f conftest.er1 20775 cat conftest.err >&5 20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20777 (exit $ac_status); } && 20778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20779 { (case "(($ac_try" in 20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20781 *) ac_try_echo=$ac_try;; 20782esac 20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20784 (eval "$ac_try") 2>&5 20785 ac_status=$? 20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20787 (exit $ac_status); }; } && 20788 { ac_try='test -s conftest$ac_exeext' 20789 { (case "(($ac_try" in 20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20791 *) ac_try_echo=$ac_try;; 20792esac 20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20794 (eval "$ac_try") 2>&5 20795 ac_status=$? 20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20797 (exit $ac_status); }; }; then 20798 ac_cv_lib_nsl_gethostbyname=yes 20799else 20800 echo "$as_me: failed program was:" >&5 20801sed 's/^/| /' conftest.$ac_ext >&5 20802 20803 ac_cv_lib_nsl_gethostbyname=no 20804fi 20805 20806rm -f core conftest.err conftest.$ac_objext \ 20807 conftest$ac_exeext conftest.$ac_ext 20808LIBS=$ac_check_lib_save_LIBS 20809fi 20810{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 20811echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 20812if test $ac_cv_lib_nsl_gethostbyname = yes; then 20813 cat >>confdefs.h <<_ACEOF 20814#define HAVE_LIBNSL 1 20815_ACEOF 20816 20817 LIBS="-lnsl $LIBS" 20818 20819fi 20820 20821 20822{ echo "$as_me:$LINENO: checking for send in -lsocket" >&5 20823echo $ECHO_N "checking for send in -lsocket... $ECHO_C" >&6; } 20824if test "${ac_cv_lib_socket_send+set}" = set; then 20825 echo $ECHO_N "(cached) $ECHO_C" >&6 20826else 20827 ac_check_lib_save_LIBS=$LIBS 20828LIBS="-lsocket $LIBS" 20829cat >conftest.$ac_ext <<_ACEOF 20830/* confdefs.h. */ 20831_ACEOF 20832cat confdefs.h >>conftest.$ac_ext 20833cat >>conftest.$ac_ext <<_ACEOF 20834/* end confdefs.h. */ 20835 20836/* Override any GCC internal prototype to avoid an error. 20837 Use char because int might match the return type of a GCC 20838 builtin and then its argument prototype would still apply. */ 20839#ifdef __cplusplus 20840extern "C" 20841#endif 20842char send (); 20843int 20844main () 20845{ 20846return send (); 20847 ; 20848 return 0; 20849} 20850_ACEOF 20851rm -f conftest.$ac_objext conftest$ac_exeext 20852if { (ac_try="$ac_link" 20853case "(($ac_try" in 20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20855 *) ac_try_echo=$ac_try;; 20856esac 20857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20858 (eval "$ac_link") 2>conftest.er1 20859 ac_status=$? 20860 grep -v '^ *+' conftest.er1 >conftest.err 20861 rm -f conftest.er1 20862 cat conftest.err >&5 20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20864 (exit $ac_status); } && 20865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20866 { (case "(($ac_try" in 20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20868 *) ac_try_echo=$ac_try;; 20869esac 20870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20871 (eval "$ac_try") 2>&5 20872 ac_status=$? 20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20874 (exit $ac_status); }; } && 20875 { ac_try='test -s conftest$ac_exeext' 20876 { (case "(($ac_try" in 20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20878 *) ac_try_echo=$ac_try;; 20879esac 20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20881 (eval "$ac_try") 2>&5 20882 ac_status=$? 20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20884 (exit $ac_status); }; }; then 20885 ac_cv_lib_socket_send=yes 20886else 20887 echo "$as_me: failed program was:" >&5 20888sed 's/^/| /' conftest.$ac_ext >&5 20889 20890 ac_cv_lib_socket_send=no 20891fi 20892 20893rm -f core conftest.err conftest.$ac_objext \ 20894 conftest$ac_exeext conftest.$ac_ext 20895LIBS=$ac_check_lib_save_LIBS 20896fi 20897{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_send" >&5 20898echo "${ECHO_T}$ac_cv_lib_socket_send" >&6; } 20899if test $ac_cv_lib_socket_send = yes; then 20900 cat >>confdefs.h <<_ACEOF 20901#define HAVE_LIBSOCKET 1 20902_ACEOF 20903 20904 LIBS="-lsocket $LIBS" 20905 20906fi 20907 20908 20909{ echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5 20910echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6; } 20911if test "${ac_cv_lib_wsock32_WSAStartup+set}" = set; then 20912 echo $ECHO_N "(cached) $ECHO_C" >&6 20913else 20914 ac_check_lib_save_LIBS=$LIBS 20915LIBS="-lwsock32 $LIBS" 20916cat >conftest.$ac_ext <<_ACEOF 20917/* confdefs.h. */ 20918_ACEOF 20919cat confdefs.h >>conftest.$ac_ext 20920cat >>conftest.$ac_ext <<_ACEOF 20921/* end confdefs.h. */ 20922 20923/* Override any GCC internal prototype to avoid an error. 20924 Use char because int might match the return type of a GCC 20925 builtin and then its argument prototype would still apply. */ 20926#ifdef __cplusplus 20927extern "C" 20928#endif 20929char WSAStartup (); 20930int 20931main () 20932{ 20933return WSAStartup (); 20934 ; 20935 return 0; 20936} 20937_ACEOF 20938rm -f conftest.$ac_objext conftest$ac_exeext 20939if { (ac_try="$ac_link" 20940case "(($ac_try" in 20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20942 *) ac_try_echo=$ac_try;; 20943esac 20944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20945 (eval "$ac_link") 2>conftest.er1 20946 ac_status=$? 20947 grep -v '^ *+' conftest.er1 >conftest.err 20948 rm -f conftest.er1 20949 cat conftest.err >&5 20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20951 (exit $ac_status); } && 20952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20953 { (case "(($ac_try" in 20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20955 *) ac_try_echo=$ac_try;; 20956esac 20957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20958 (eval "$ac_try") 2>&5 20959 ac_status=$? 20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20961 (exit $ac_status); }; } && 20962 { ac_try='test -s conftest$ac_exeext' 20963 { (case "(($ac_try" in 20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20965 *) ac_try_echo=$ac_try;; 20966esac 20967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20968 (eval "$ac_try") 2>&5 20969 ac_status=$? 20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20971 (exit $ac_status); }; }; then 20972 ac_cv_lib_wsock32_WSAStartup=yes 20973else 20974 echo "$as_me: failed program was:" >&5 20975sed 's/^/| /' conftest.$ac_ext >&5 20976 20977 ac_cv_lib_wsock32_WSAStartup=no 20978fi 20979 20980rm -f core conftest.err conftest.$ac_objext \ 20981 conftest$ac_exeext conftest.$ac_ext 20982LIBS=$ac_check_lib_save_LIBS 20983fi 20984{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_WSAStartup" >&5 20985echo "${ECHO_T}$ac_cv_lib_wsock32_WSAStartup" >&6; } 20986if test $ac_cv_lib_wsock32_WSAStartup = yes; then 20987 cat >>confdefs.h <<_ACEOF 20988#define HAVE_LIBWSOCK32 1 20989_ACEOF 20990 20991 LIBS="-lwsock32 $LIBS" 20992 20993fi 20994 20995 20996{ echo "$as_me:$LINENO: checking for ERR_put_error in -lcrypto" >&5 20997echo $ECHO_N "checking for ERR_put_error in -lcrypto... $ECHO_C" >&6; } 20998if test "${ac_cv_lib_crypto_ERR_put_error+set}" = set; then 20999 echo $ECHO_N "(cached) $ECHO_C" >&6 21000else 21001 ac_check_lib_save_LIBS=$LIBS 21002LIBS="-lcrypto $LIBS" 21003cat >conftest.$ac_ext <<_ACEOF 21004/* confdefs.h. */ 21005_ACEOF 21006cat confdefs.h >>conftest.$ac_ext 21007cat >>conftest.$ac_ext <<_ACEOF 21008/* end confdefs.h. */ 21009 21010/* Override any GCC internal prototype to avoid an error. 21011 Use char because int might match the return type of a GCC 21012 builtin and then its argument prototype would still apply. */ 21013#ifdef __cplusplus 21014extern "C" 21015#endif 21016char ERR_put_error (); 21017int 21018main () 21019{ 21020return ERR_put_error (); 21021 ; 21022 return 0; 21023} 21024_ACEOF 21025rm -f conftest.$ac_objext conftest$ac_exeext 21026if { (ac_try="$ac_link" 21027case "(($ac_try" in 21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21029 *) ac_try_echo=$ac_try;; 21030esac 21031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21032 (eval "$ac_link") 2>conftest.er1 21033 ac_status=$? 21034 grep -v '^ *+' conftest.er1 >conftest.err 21035 rm -f conftest.er1 21036 cat conftest.err >&5 21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21038 (exit $ac_status); } && 21039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21040 { (case "(($ac_try" in 21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21042 *) ac_try_echo=$ac_try;; 21043esac 21044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21045 (eval "$ac_try") 2>&5 21046 ac_status=$? 21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21048 (exit $ac_status); }; } && 21049 { ac_try='test -s conftest$ac_exeext' 21050 { (case "(($ac_try" in 21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21052 *) ac_try_echo=$ac_try;; 21053esac 21054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21055 (eval "$ac_try") 2>&5 21056 ac_status=$? 21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21058 (exit $ac_status); }; }; then 21059 ac_cv_lib_crypto_ERR_put_error=yes 21060else 21061 echo "$as_me: failed program was:" >&5 21062sed 's/^/| /' conftest.$ac_ext >&5 21063 21064 ac_cv_lib_crypto_ERR_put_error=no 21065fi 21066 21067rm -f core conftest.err conftest.$ac_objext \ 21068 conftest$ac_exeext conftest.$ac_ext 21069LIBS=$ac_check_lib_save_LIBS 21070fi 21071{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_put_error" >&5 21072echo "${ECHO_T}$ac_cv_lib_crypto_ERR_put_error" >&6; } 21073if test $ac_cv_lib_crypto_ERR_put_error = yes; then 21074 cat >>confdefs.h <<_ACEOF 21075#define HAVE_LIBCRYPTO 1 21076_ACEOF 21077 21078 LIBS="-lcrypto $LIBS" 21079 21080fi 21081 21082 21083{ echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5 21084echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; } 21085if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then 21086 echo $ECHO_N "(cached) $ECHO_C" >&6 21087else 21088 ac_check_lib_save_LIBS=$LIBS 21089LIBS="-lssl $LIBS" 21090cat >conftest.$ac_ext <<_ACEOF 21091/* confdefs.h. */ 21092_ACEOF 21093cat confdefs.h >>conftest.$ac_ext 21094cat >>conftest.$ac_ext <<_ACEOF 21095/* end confdefs.h. */ 21096 21097/* Override any GCC internal prototype to avoid an error. 21098 Use char because int might match the return type of a GCC 21099 builtin and then its argument prototype would still apply. */ 21100#ifdef __cplusplus 21101extern "C" 21102#endif 21103char SSL_connect (); 21104int 21105main () 21106{ 21107return SSL_connect (); 21108 ; 21109 return 0; 21110} 21111_ACEOF 21112rm -f conftest.$ac_objext conftest$ac_exeext 21113if { (ac_try="$ac_link" 21114case "(($ac_try" in 21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21116 *) ac_try_echo=$ac_try;; 21117esac 21118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21119 (eval "$ac_link") 2>conftest.er1 21120 ac_status=$? 21121 grep -v '^ *+' conftest.er1 >conftest.err 21122 rm -f conftest.er1 21123 cat conftest.err >&5 21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21125 (exit $ac_status); } && 21126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21127 { (case "(($ac_try" in 21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21129 *) ac_try_echo=$ac_try;; 21130esac 21131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21132 (eval "$ac_try") 2>&5 21133 ac_status=$? 21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21135 (exit $ac_status); }; } && 21136 { ac_try='test -s conftest$ac_exeext' 21137 { (case "(($ac_try" in 21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21139 *) ac_try_echo=$ac_try;; 21140esac 21141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21142 (eval "$ac_try") 2>&5 21143 ac_status=$? 21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21145 (exit $ac_status); }; }; then 21146 ac_cv_lib_ssl_SSL_connect=yes 21147else 21148 echo "$as_me: failed program was:" >&5 21149sed 's/^/| /' conftest.$ac_ext >&5 21150 21151 ac_cv_lib_ssl_SSL_connect=no 21152fi 21153 21154rm -f core conftest.err conftest.$ac_objext \ 21155 conftest$ac_exeext conftest.$ac_ext 21156LIBS=$ac_check_lib_save_LIBS 21157fi 21158{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5 21159echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; } 21160if test $ac_cv_lib_ssl_SSL_connect = yes; then 21161 cat >>confdefs.h <<_ACEOF 21162#define HAVE_LIBSSL 1 21163_ACEOF 21164 21165 LIBS="-lssl $LIBS" 21166 21167fi 21168 21169 21170{ echo "$as_me:$LINENO: checking for XML_Parse in -lexpat" >&5 21171echo $ECHO_N "checking for XML_Parse in -lexpat... $ECHO_C" >&6; } 21172if test "${ac_cv_lib_expat_XML_Parse+set}" = set; then 21173 echo $ECHO_N "(cached) $ECHO_C" >&6 21174else 21175 ac_check_lib_save_LIBS=$LIBS 21176LIBS="-lexpat $LIBS" 21177cat >conftest.$ac_ext <<_ACEOF 21178/* confdefs.h. */ 21179_ACEOF 21180cat confdefs.h >>conftest.$ac_ext 21181cat >>conftest.$ac_ext <<_ACEOF 21182/* end confdefs.h. */ 21183 21184/* Override any GCC internal prototype to avoid an error. 21185 Use char because int might match the return type of a GCC 21186 builtin and then its argument prototype would still apply. */ 21187#ifdef __cplusplus 21188extern "C" 21189#endif 21190char XML_Parse (); 21191int 21192main () 21193{ 21194return XML_Parse (); 21195 ; 21196 return 0; 21197} 21198_ACEOF 21199rm -f conftest.$ac_objext conftest$ac_exeext 21200if { (ac_try="$ac_link" 21201case "(($ac_try" in 21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21203 *) ac_try_echo=$ac_try;; 21204esac 21205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21206 (eval "$ac_link") 2>conftest.er1 21207 ac_status=$? 21208 grep -v '^ *+' conftest.er1 >conftest.err 21209 rm -f conftest.er1 21210 cat conftest.err >&5 21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21212 (exit $ac_status); } && 21213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21214 { (case "(($ac_try" in 21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21216 *) ac_try_echo=$ac_try;; 21217esac 21218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21219 (eval "$ac_try") 2>&5 21220 ac_status=$? 21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21222 (exit $ac_status); }; } && 21223 { ac_try='test -s conftest$ac_exeext' 21224 { (case "(($ac_try" in 21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21226 *) ac_try_echo=$ac_try;; 21227esac 21228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21229 (eval "$ac_try") 2>&5 21230 ac_status=$? 21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21232 (exit $ac_status); }; }; then 21233 ac_cv_lib_expat_XML_Parse=yes 21234else 21235 echo "$as_me: failed program was:" >&5 21236sed 's/^/| /' conftest.$ac_ext >&5 21237 21238 ac_cv_lib_expat_XML_Parse=no 21239fi 21240 21241rm -f core conftest.err conftest.$ac_objext \ 21242 conftest$ac_exeext conftest.$ac_ext 21243LIBS=$ac_check_lib_save_LIBS 21244fi 21245{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_Parse" >&5 21246echo "${ECHO_T}$ac_cv_lib_expat_XML_Parse" >&6; } 21247if test $ac_cv_lib_expat_XML_Parse = yes; then 21248 cat >>confdefs.h <<_ACEOF 21249#define HAVE_LIBEXPAT 1 21250_ACEOF 21251 21252 LIBS="-lexpat $LIBS" 21253 21254else 21255 { { echo "$as_me:$LINENO: error: \"Could not find the XML parsing library 'expat'. Download and install from http://expat.sourceforge.net/\"" >&5 21256echo "$as_me: error: \"Could not find the XML parsing library 'expat'. Download and install from http://expat.sourceforge.net/\"" >&2;} 21257 { (exit 1); exit 1; }; } 21258fi 21259 21260if test "${ac_cv_header_expat_h+set}" = set; then 21261 { echo "$as_me:$LINENO: checking for expat.h" >&5 21262echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } 21263if test "${ac_cv_header_expat_h+set}" = set; then 21264 echo $ECHO_N "(cached) $ECHO_C" >&6 21265fi 21266{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 21267echo "${ECHO_T}$ac_cv_header_expat_h" >&6; } 21268else 21269 # Is the header compilable? 21270{ echo "$as_me:$LINENO: checking expat.h usability" >&5 21271echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; } 21272cat >conftest.$ac_ext <<_ACEOF 21273/* confdefs.h. */ 21274_ACEOF 21275cat confdefs.h >>conftest.$ac_ext 21276cat >>conftest.$ac_ext <<_ACEOF 21277/* end confdefs.h. */ 21278$ac_includes_default 21279#include <expat.h> 21280_ACEOF 21281rm -f conftest.$ac_objext 21282if { (ac_try="$ac_compile" 21283case "(($ac_try" in 21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21285 *) ac_try_echo=$ac_try;; 21286esac 21287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21288 (eval "$ac_compile") 2>conftest.er1 21289 ac_status=$? 21290 grep -v '^ *+' conftest.er1 >conftest.err 21291 rm -f conftest.er1 21292 cat conftest.err >&5 21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21294 (exit $ac_status); } && 21295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21296 { (case "(($ac_try" in 21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21298 *) ac_try_echo=$ac_try;; 21299esac 21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21301 (eval "$ac_try") 2>&5 21302 ac_status=$? 21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21304 (exit $ac_status); }; } && 21305 { ac_try='test -s conftest.$ac_objext' 21306 { (case "(($ac_try" in 21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21308 *) ac_try_echo=$ac_try;; 21309esac 21310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21311 (eval "$ac_try") 2>&5 21312 ac_status=$? 21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21314 (exit $ac_status); }; }; then 21315 ac_header_compiler=yes 21316else 21317 echo "$as_me: failed program was:" >&5 21318sed 's/^/| /' conftest.$ac_ext >&5 21319 21320 ac_header_compiler=no 21321fi 21322 21323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21325echo "${ECHO_T}$ac_header_compiler" >&6; } 21326 21327# Is the header present? 21328{ echo "$as_me:$LINENO: checking expat.h presence" >&5 21329echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; } 21330cat >conftest.$ac_ext <<_ACEOF 21331/* confdefs.h. */ 21332_ACEOF 21333cat confdefs.h >>conftest.$ac_ext 21334cat >>conftest.$ac_ext <<_ACEOF 21335/* end confdefs.h. */ 21336#include <expat.h> 21337_ACEOF 21338if { (ac_try="$ac_cpp conftest.$ac_ext" 21339case "(($ac_try" in 21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21341 *) ac_try_echo=$ac_try;; 21342esac 21343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21345 ac_status=$? 21346 grep -v '^ *+' conftest.er1 >conftest.err 21347 rm -f conftest.er1 21348 cat conftest.err >&5 21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21350 (exit $ac_status); } >/dev/null; then 21351 if test -s conftest.err; then 21352 ac_cpp_err=$ac_c_preproc_warn_flag 21353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21354 else 21355 ac_cpp_err= 21356 fi 21357else 21358 ac_cpp_err=yes 21359fi 21360if test -z "$ac_cpp_err"; then 21361 ac_header_preproc=yes 21362else 21363 echo "$as_me: failed program was:" >&5 21364sed 's/^/| /' conftest.$ac_ext >&5 21365 21366 ac_header_preproc=no 21367fi 21368 21369rm -f conftest.err conftest.$ac_ext 21370{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21371echo "${ECHO_T}$ac_header_preproc" >&6; } 21372 21373# So? What about this header? 21374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21375 yes:no: ) 21376 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 21377echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21378 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 21379echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} 21380 ac_header_preproc=yes 21381 ;; 21382 no:yes:* ) 21383 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 21384echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} 21385 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 21386echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} 21387 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 21388echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} 21389 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 21390echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} 21391 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 21392echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} 21393 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 21394echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} 21395 21396 ;; 21397esac 21398{ echo "$as_me:$LINENO: checking for expat.h" >&5 21399echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } 21400if test "${ac_cv_header_expat_h+set}" = set; then 21401 echo $ECHO_N "(cached) $ECHO_C" >&6 21402else 21403 ac_cv_header_expat_h=$ac_header_preproc 21404fi 21405{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 21406echo "${ECHO_T}$ac_cv_header_expat_h" >&6; } 21407 21408fi 21409if test $ac_cv_header_expat_h = yes; then 21410 : 21411else 21412 { { echo "$as_me:$LINENO: error: \"Could not find expat.h\"" >&5 21413echo "$as_me: error: \"Could not find expat.h\"" >&2;} 21414 { (exit 1); exit 1; }; } 21415fi 21416 21417 21418 21419 21420# Check whether --with-zlib was given. 21421if test "${with_zlib+set}" = set; then 21422 withval=$with_zlib; 21423 case "$withval" in 21424 no) 21425 { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5 21426echo "$as_me: WARNING: zlib disabled" >&2;} ;; 21427 *) 21428 if test -d "$withval"; then 21429 CPPFLAGS="$CPPFLAGS -I$withval/include" 21430 LDFLAGS="$LDFLAGS -L$withval/lib" 21431 fi 21432 21433 if test "${ac_cv_header_zlib_h+set}" = set; then 21434 { echo "$as_me:$LINENO: checking for zlib.h" >&5 21435echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 21436if test "${ac_cv_header_zlib_h+set}" = set; then 21437 echo $ECHO_N "(cached) $ECHO_C" >&6 21438fi 21439{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 21440echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 21441else 21442 # Is the header compilable? 21443{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 21444echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } 21445cat >conftest.$ac_ext <<_ACEOF 21446/* confdefs.h. */ 21447_ACEOF 21448cat confdefs.h >>conftest.$ac_ext 21449cat >>conftest.$ac_ext <<_ACEOF 21450/* end confdefs.h. */ 21451$ac_includes_default 21452#include <zlib.h> 21453_ACEOF 21454rm -f conftest.$ac_objext 21455if { (ac_try="$ac_compile" 21456case "(($ac_try" in 21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21458 *) ac_try_echo=$ac_try;; 21459esac 21460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21461 (eval "$ac_compile") 2>conftest.er1 21462 ac_status=$? 21463 grep -v '^ *+' conftest.er1 >conftest.err 21464 rm -f conftest.er1 21465 cat conftest.err >&5 21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21467 (exit $ac_status); } && 21468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21469 { (case "(($ac_try" in 21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21471 *) ac_try_echo=$ac_try;; 21472esac 21473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21474 (eval "$ac_try") 2>&5 21475 ac_status=$? 21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21477 (exit $ac_status); }; } && 21478 { ac_try='test -s conftest.$ac_objext' 21479 { (case "(($ac_try" in 21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21481 *) ac_try_echo=$ac_try;; 21482esac 21483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21484 (eval "$ac_try") 2>&5 21485 ac_status=$? 21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21487 (exit $ac_status); }; }; then 21488 ac_header_compiler=yes 21489else 21490 echo "$as_me: failed program was:" >&5 21491sed 's/^/| /' conftest.$ac_ext >&5 21492 21493 ac_header_compiler=no 21494fi 21495 21496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21497{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21498echo "${ECHO_T}$ac_header_compiler" >&6; } 21499 21500# Is the header present? 21501{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 21502echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } 21503cat >conftest.$ac_ext <<_ACEOF 21504/* confdefs.h. */ 21505_ACEOF 21506cat confdefs.h >>conftest.$ac_ext 21507cat >>conftest.$ac_ext <<_ACEOF 21508/* end confdefs.h. */ 21509#include <zlib.h> 21510_ACEOF 21511if { (ac_try="$ac_cpp conftest.$ac_ext" 21512case "(($ac_try" in 21513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21514 *) ac_try_echo=$ac_try;; 21515esac 21516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21518 ac_status=$? 21519 grep -v '^ *+' conftest.er1 >conftest.err 21520 rm -f conftest.er1 21521 cat conftest.err >&5 21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21523 (exit $ac_status); } >/dev/null; then 21524 if test -s conftest.err; then 21525 ac_cpp_err=$ac_c_preproc_warn_flag 21526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21527 else 21528 ac_cpp_err= 21529 fi 21530else 21531 ac_cpp_err=yes 21532fi 21533if test -z "$ac_cpp_err"; then 21534 ac_header_preproc=yes 21535else 21536 echo "$as_me: failed program was:" >&5 21537sed 's/^/| /' conftest.$ac_ext >&5 21538 21539 ac_header_preproc=no 21540fi 21541 21542rm -f conftest.err conftest.$ac_ext 21543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21544echo "${ECHO_T}$ac_header_preproc" >&6; } 21545 21546# So? What about this header? 21547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21548 yes:no: ) 21549 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 21550echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21551 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 21552echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 21553 ac_header_preproc=yes 21554 ;; 21555 no:yes:* ) 21556 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 21557echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 21558 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 21559echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 21560 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 21561echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 21562 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 21563echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 21564 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 21565echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 21566 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 21567echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 21568 21569 ;; 21570esac 21571{ echo "$as_me:$LINENO: checking for zlib.h" >&5 21572echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 21573if test "${ac_cv_header_zlib_h+set}" = set; then 21574 echo $ECHO_N "(cached) $ECHO_C" >&6 21575else 21576 ac_cv_header_zlib_h=$ac_header_preproc 21577fi 21578{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 21579echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 21580 21581fi 21582if test $ac_cv_header_zlib_h = yes; then 21583 21584 { echo "$as_me:$LINENO: checking for gzread in -lz" >&5 21585echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; } 21586if test "${ac_cv_lib_z_gzread+set}" = set; then 21587 echo $ECHO_N "(cached) $ECHO_C" >&6 21588else 21589 ac_check_lib_save_LIBS=$LIBS 21590LIBS="-lz $LIBS" 21591cat >conftest.$ac_ext <<_ACEOF 21592/* confdefs.h. */ 21593_ACEOF 21594cat confdefs.h >>conftest.$ac_ext 21595cat >>conftest.$ac_ext <<_ACEOF 21596/* end confdefs.h. */ 21597 21598/* Override any GCC internal prototype to avoid an error. 21599 Use char because int might match the return type of a GCC 21600 builtin and then its argument prototype would still apply. */ 21601#ifdef __cplusplus 21602extern "C" 21603#endif 21604char gzread (); 21605int 21606main () 21607{ 21608return gzread (); 21609 ; 21610 return 0; 21611} 21612_ACEOF 21613rm -f conftest.$ac_objext conftest$ac_exeext 21614if { (ac_try="$ac_link" 21615case "(($ac_try" in 21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21617 *) ac_try_echo=$ac_try;; 21618esac 21619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21620 (eval "$ac_link") 2>conftest.er1 21621 ac_status=$? 21622 grep -v '^ *+' conftest.er1 >conftest.err 21623 rm -f conftest.er1 21624 cat conftest.err >&5 21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21626 (exit $ac_status); } && 21627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21628 { (case "(($ac_try" in 21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21630 *) ac_try_echo=$ac_try;; 21631esac 21632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21633 (eval "$ac_try") 2>&5 21634 ac_status=$? 21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21636 (exit $ac_status); }; } && 21637 { ac_try='test -s conftest$ac_exeext' 21638 { (case "(($ac_try" in 21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21640 *) ac_try_echo=$ac_try;; 21641esac 21642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21643 (eval "$ac_try") 2>&5 21644 ac_status=$? 21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21646 (exit $ac_status); }; }; then 21647 ac_cv_lib_z_gzread=yes 21648else 21649 echo "$as_me: failed program was:" >&5 21650sed 's/^/| /' conftest.$ac_ext >&5 21651 21652 ac_cv_lib_z_gzread=no 21653fi 21654 21655rm -f core conftest.err conftest.$ac_objext \ 21656 conftest$ac_exeext conftest.$ac_ext 21657LIBS=$ac_check_lib_save_LIBS 21658fi 21659{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5 21660echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; } 21661if test $ac_cv_lib_z_gzread = yes; then 21662 21663 21664cat >>confdefs.h <<\_ACEOF 21665#define HAVE_LIBZ 1 21666_ACEOF 21667 21668 21669fi 21670, 21671 21672fi 21673 21674 21675 ;; 21676 esac 21677 21678fi 21679 21680 21681 21682 21683 21684 21685 21686ac_header_dirent=no 21687for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21688 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21689{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 21690echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 21691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21692 echo $ECHO_N "(cached) $ECHO_C" >&6 21693else 21694 cat >conftest.$ac_ext <<_ACEOF 21695/* confdefs.h. */ 21696_ACEOF 21697cat confdefs.h >>conftest.$ac_ext 21698cat >>conftest.$ac_ext <<_ACEOF 21699/* end confdefs.h. */ 21700#include <sys/types.h> 21701#include <$ac_hdr> 21702 21703int 21704main () 21705{ 21706if ((DIR *) 0) 21707return 0; 21708 ; 21709 return 0; 21710} 21711_ACEOF 21712rm -f conftest.$ac_objext 21713if { (ac_try="$ac_compile" 21714case "(($ac_try" in 21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21716 *) ac_try_echo=$ac_try;; 21717esac 21718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21719 (eval "$ac_compile") 2>conftest.er1 21720 ac_status=$? 21721 grep -v '^ *+' conftest.er1 >conftest.err 21722 rm -f conftest.er1 21723 cat conftest.err >&5 21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21725 (exit $ac_status); } && 21726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21727 { (case "(($ac_try" in 21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21729 *) ac_try_echo=$ac_try;; 21730esac 21731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21732 (eval "$ac_try") 2>&5 21733 ac_status=$? 21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21735 (exit $ac_status); }; } && 21736 { ac_try='test -s conftest.$ac_objext' 21737 { (case "(($ac_try" in 21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21739 *) ac_try_echo=$ac_try;; 21740esac 21741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21742 (eval "$ac_try") 2>&5 21743 ac_status=$? 21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21745 (exit $ac_status); }; }; then 21746 eval "$as_ac_Header=yes" 21747else 21748 echo "$as_me: failed program was:" >&5 21749sed 's/^/| /' conftest.$ac_ext >&5 21750 21751 eval "$as_ac_Header=no" 21752fi 21753 21754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21755fi 21756ac_res=`eval echo '${'$as_ac_Header'}'` 21757 { echo "$as_me:$LINENO: result: $ac_res" >&5 21758echo "${ECHO_T}$ac_res" >&6; } 21759if test `eval echo '${'$as_ac_Header'}'` = yes; then 21760 cat >>confdefs.h <<_ACEOF 21761#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21762_ACEOF 21763 21764ac_header_dirent=$ac_hdr; break 21765fi 21766 21767done 21768# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21769if test $ac_header_dirent = dirent.h; then 21770 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 21771echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 21772if test "${ac_cv_search_opendir+set}" = set; then 21773 echo $ECHO_N "(cached) $ECHO_C" >&6 21774else 21775 ac_func_search_save_LIBS=$LIBS 21776cat >conftest.$ac_ext <<_ACEOF 21777/* confdefs.h. */ 21778_ACEOF 21779cat confdefs.h >>conftest.$ac_ext 21780cat >>conftest.$ac_ext <<_ACEOF 21781/* end confdefs.h. */ 21782 21783/* Override any GCC internal prototype to avoid an error. 21784 Use char because int might match the return type of a GCC 21785 builtin and then its argument prototype would still apply. */ 21786#ifdef __cplusplus 21787extern "C" 21788#endif 21789char opendir (); 21790int 21791main () 21792{ 21793return opendir (); 21794 ; 21795 return 0; 21796} 21797_ACEOF 21798for ac_lib in '' dir; do 21799 if test -z "$ac_lib"; then 21800 ac_res="none required" 21801 else 21802 ac_res=-l$ac_lib 21803 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21804 fi 21805 rm -f conftest.$ac_objext conftest$ac_exeext 21806if { (ac_try="$ac_link" 21807case "(($ac_try" in 21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21809 *) ac_try_echo=$ac_try;; 21810esac 21811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21812 (eval "$ac_link") 2>conftest.er1 21813 ac_status=$? 21814 grep -v '^ *+' conftest.er1 >conftest.err 21815 rm -f conftest.er1 21816 cat conftest.err >&5 21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21818 (exit $ac_status); } && 21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21820 { (case "(($ac_try" in 21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21822 *) ac_try_echo=$ac_try;; 21823esac 21824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21825 (eval "$ac_try") 2>&5 21826 ac_status=$? 21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21828 (exit $ac_status); }; } && 21829 { ac_try='test -s conftest$ac_exeext' 21830 { (case "(($ac_try" in 21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21832 *) ac_try_echo=$ac_try;; 21833esac 21834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21835 (eval "$ac_try") 2>&5 21836 ac_status=$? 21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21838 (exit $ac_status); }; }; then 21839 ac_cv_search_opendir=$ac_res 21840else 21841 echo "$as_me: failed program was:" >&5 21842sed 's/^/| /' conftest.$ac_ext >&5 21843 21844 21845fi 21846 21847rm -f core conftest.err conftest.$ac_objext \ 21848 conftest$ac_exeext 21849 if test "${ac_cv_search_opendir+set}" = set; then 21850 break 21851fi 21852done 21853if test "${ac_cv_search_opendir+set}" = set; then 21854 : 21855else 21856 ac_cv_search_opendir=no 21857fi 21858rm conftest.$ac_ext 21859LIBS=$ac_func_search_save_LIBS 21860fi 21861{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 21862echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 21863ac_res=$ac_cv_search_opendir 21864if test "$ac_res" != no; then 21865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21866 21867fi 21868 21869else 21870 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 21871echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 21872if test "${ac_cv_search_opendir+set}" = set; then 21873 echo $ECHO_N "(cached) $ECHO_C" >&6 21874else 21875 ac_func_search_save_LIBS=$LIBS 21876cat >conftest.$ac_ext <<_ACEOF 21877/* confdefs.h. */ 21878_ACEOF 21879cat confdefs.h >>conftest.$ac_ext 21880cat >>conftest.$ac_ext <<_ACEOF 21881/* end confdefs.h. */ 21882 21883/* Override any GCC internal prototype to avoid an error. 21884 Use char because int might match the return type of a GCC 21885 builtin and then its argument prototype would still apply. */ 21886#ifdef __cplusplus 21887extern "C" 21888#endif 21889char opendir (); 21890int 21891main () 21892{ 21893return opendir (); 21894 ; 21895 return 0; 21896} 21897_ACEOF 21898for ac_lib in '' x; do 21899 if test -z "$ac_lib"; then 21900 ac_res="none required" 21901 else 21902 ac_res=-l$ac_lib 21903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21904 fi 21905 rm -f conftest.$ac_objext conftest$ac_exeext 21906if { (ac_try="$ac_link" 21907case "(($ac_try" in 21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21909 *) ac_try_echo=$ac_try;; 21910esac 21911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21912 (eval "$ac_link") 2>conftest.er1 21913 ac_status=$? 21914 grep -v '^ *+' conftest.er1 >conftest.err 21915 rm -f conftest.er1 21916 cat conftest.err >&5 21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21918 (exit $ac_status); } && 21919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21920 { (case "(($ac_try" in 21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21922 *) ac_try_echo=$ac_try;; 21923esac 21924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21925 (eval "$ac_try") 2>&5 21926 ac_status=$? 21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21928 (exit $ac_status); }; } && 21929 { ac_try='test -s conftest$ac_exeext' 21930 { (case "(($ac_try" in 21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21932 *) ac_try_echo=$ac_try;; 21933esac 21934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21935 (eval "$ac_try") 2>&5 21936 ac_status=$? 21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21938 (exit $ac_status); }; }; then 21939 ac_cv_search_opendir=$ac_res 21940else 21941 echo "$as_me: failed program was:" >&5 21942sed 's/^/| /' conftest.$ac_ext >&5 21943 21944 21945fi 21946 21947rm -f core conftest.err conftest.$ac_objext \ 21948 conftest$ac_exeext 21949 if test "${ac_cv_search_opendir+set}" = set; then 21950 break 21951fi 21952done 21953if test "${ac_cv_search_opendir+set}" = set; then 21954 : 21955else 21956 ac_cv_search_opendir=no 21957fi 21958rm conftest.$ac_ext 21959LIBS=$ac_func_search_save_LIBS 21960fi 21961{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 21962echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 21963ac_res=$ac_cv_search_opendir 21964if test "$ac_res" != no; then 21965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21966 21967fi 21968 21969fi 21970 21971{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21972echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 21973if test "${ac_cv_header_stdc+set}" = set; then 21974 echo $ECHO_N "(cached) $ECHO_C" >&6 21975else 21976 cat >conftest.$ac_ext <<_ACEOF 21977/* confdefs.h. */ 21978_ACEOF 21979cat confdefs.h >>conftest.$ac_ext 21980cat >>conftest.$ac_ext <<_ACEOF 21981/* end confdefs.h. */ 21982#include <stdlib.h> 21983#include <stdarg.h> 21984#include <string.h> 21985#include <float.h> 21986 21987int 21988main () 21989{ 21990 21991 ; 21992 return 0; 21993} 21994_ACEOF 21995rm -f conftest.$ac_objext 21996if { (ac_try="$ac_compile" 21997case "(($ac_try" in 21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21999 *) ac_try_echo=$ac_try;; 22000esac 22001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22002 (eval "$ac_compile") 2>conftest.er1 22003 ac_status=$? 22004 grep -v '^ *+' conftest.er1 >conftest.err 22005 rm -f conftest.er1 22006 cat conftest.err >&5 22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22008 (exit $ac_status); } && 22009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22010 { (case "(($ac_try" in 22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22012 *) ac_try_echo=$ac_try;; 22013esac 22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22015 (eval "$ac_try") 2>&5 22016 ac_status=$? 22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22018 (exit $ac_status); }; } && 22019 { ac_try='test -s conftest.$ac_objext' 22020 { (case "(($ac_try" in 22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22022 *) ac_try_echo=$ac_try;; 22023esac 22024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22025 (eval "$ac_try") 2>&5 22026 ac_status=$? 22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22028 (exit $ac_status); }; }; then 22029 ac_cv_header_stdc=yes 22030else 22031 echo "$as_me: failed program was:" >&5 22032sed 's/^/| /' conftest.$ac_ext >&5 22033 22034 ac_cv_header_stdc=no 22035fi 22036 22037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22038 22039if test $ac_cv_header_stdc = yes; then 22040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22041 cat >conftest.$ac_ext <<_ACEOF 22042/* confdefs.h. */ 22043_ACEOF 22044cat confdefs.h >>conftest.$ac_ext 22045cat >>conftest.$ac_ext <<_ACEOF 22046/* end confdefs.h. */ 22047#include <string.h> 22048 22049_ACEOF 22050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22051 $EGREP "memchr" >/dev/null 2>&1; then 22052 : 22053else 22054 ac_cv_header_stdc=no 22055fi 22056rm -f conftest* 22057 22058fi 22059 22060if test $ac_cv_header_stdc = yes; then 22061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22062 cat >conftest.$ac_ext <<_ACEOF 22063/* confdefs.h. */ 22064_ACEOF 22065cat confdefs.h >>conftest.$ac_ext 22066cat >>conftest.$ac_ext <<_ACEOF 22067/* end confdefs.h. */ 22068#include <stdlib.h> 22069 22070_ACEOF 22071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22072 $EGREP "free" >/dev/null 2>&1; then 22073 : 22074else 22075 ac_cv_header_stdc=no 22076fi 22077rm -f conftest* 22078 22079fi 22080 22081if test $ac_cv_header_stdc = yes; then 22082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22083 if test "$cross_compiling" = yes; then 22084 : 22085else 22086 cat >conftest.$ac_ext <<_ACEOF 22087/* confdefs.h. */ 22088_ACEOF 22089cat confdefs.h >>conftest.$ac_ext 22090cat >>conftest.$ac_ext <<_ACEOF 22091/* end confdefs.h. */ 22092#include <ctype.h> 22093#include <stdlib.h> 22094#if ((' ' & 0x0FF) == 0x020) 22095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22097#else 22098# define ISLOWER(c) \ 22099 (('a' <= (c) && (c) <= 'i') \ 22100 || ('j' <= (c) && (c) <= 'r') \ 22101 || ('s' <= (c) && (c) <= 'z')) 22102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22103#endif 22104 22105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22106int 22107main () 22108{ 22109 int i; 22110 for (i = 0; i < 256; i++) 22111 if (XOR (islower (i), ISLOWER (i)) 22112 || toupper (i) != TOUPPER (i)) 22113 return 2; 22114 return 0; 22115} 22116_ACEOF 22117rm -f conftest$ac_exeext 22118if { (ac_try="$ac_link" 22119case "(($ac_try" in 22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22121 *) ac_try_echo=$ac_try;; 22122esac 22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22124 (eval "$ac_link") 2>&5 22125 ac_status=$? 22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22128 { (case "(($ac_try" in 22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22130 *) ac_try_echo=$ac_try;; 22131esac 22132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22133 (eval "$ac_try") 2>&5 22134 ac_status=$? 22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22136 (exit $ac_status); }; }; then 22137 : 22138else 22139 echo "$as_me: program exited with status $ac_status" >&5 22140echo "$as_me: failed program was:" >&5 22141sed 's/^/| /' conftest.$ac_ext >&5 22142 22143( exit $ac_status ) 22144ac_cv_header_stdc=no 22145fi 22146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22147fi 22148 22149 22150fi 22151fi 22152{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 22153echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 22154if test $ac_cv_header_stdc = yes; then 22155 22156cat >>confdefs.h <<\_ACEOF 22157#define STDC_HEADERS 1 22158_ACEOF 22159 22160fi 22161 22162{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 22163echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 22164if test "${ac_cv_header_sys_wait_h+set}" = set; then 22165 echo $ECHO_N "(cached) $ECHO_C" >&6 22166else 22167 cat >conftest.$ac_ext <<_ACEOF 22168/* confdefs.h. */ 22169_ACEOF 22170cat confdefs.h >>conftest.$ac_ext 22171cat >>conftest.$ac_ext <<_ACEOF 22172/* end confdefs.h. */ 22173#include <sys/types.h> 22174#include <sys/wait.h> 22175#ifndef WEXITSTATUS 22176# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 22177#endif 22178#ifndef WIFEXITED 22179# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 22180#endif 22181 22182int 22183main () 22184{ 22185 int s; 22186 wait (&s); 22187 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 22188 ; 22189 return 0; 22190} 22191_ACEOF 22192rm -f conftest.$ac_objext 22193if { (ac_try="$ac_compile" 22194case "(($ac_try" in 22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22196 *) ac_try_echo=$ac_try;; 22197esac 22198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22199 (eval "$ac_compile") 2>conftest.er1 22200 ac_status=$? 22201 grep -v '^ *+' conftest.er1 >conftest.err 22202 rm -f conftest.er1 22203 cat conftest.err >&5 22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22205 (exit $ac_status); } && 22206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22207 { (case "(($ac_try" in 22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22209 *) ac_try_echo=$ac_try;; 22210esac 22211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22212 (eval "$ac_try") 2>&5 22213 ac_status=$? 22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22215 (exit $ac_status); }; } && 22216 { ac_try='test -s conftest.$ac_objext' 22217 { (case "(($ac_try" in 22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22219 *) ac_try_echo=$ac_try;; 22220esac 22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22222 (eval "$ac_try") 2>&5 22223 ac_status=$? 22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22225 (exit $ac_status); }; }; then 22226 ac_cv_header_sys_wait_h=yes 22227else 22228 echo "$as_me: failed program was:" >&5 22229sed 's/^/| /' conftest.$ac_ext >&5 22230 22231 ac_cv_header_sys_wait_h=no 22232fi 22233 22234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22235fi 22236{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 22237echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 22238if test $ac_cv_header_sys_wait_h = yes; then 22239 22240cat >>confdefs.h <<\_ACEOF 22241#define HAVE_SYS_WAIT_H 1 22242_ACEOF 22243 22244fi 22245 22246if test "${ac_cv_header_wchar_h+set}" = set; then 22247 { echo "$as_me:$LINENO: checking for wchar.h" >&5 22248echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } 22249if test "${ac_cv_header_wchar_h+set}" = set; then 22250 echo $ECHO_N "(cached) $ECHO_C" >&6 22251fi 22252{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 22253echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } 22254else 22255 # Is the header compilable? 22256{ echo "$as_me:$LINENO: checking wchar.h usability" >&5 22257echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } 22258cat >conftest.$ac_ext <<_ACEOF 22259/* confdefs.h. */ 22260_ACEOF 22261cat confdefs.h >>conftest.$ac_ext 22262cat >>conftest.$ac_ext <<_ACEOF 22263/* end confdefs.h. */ 22264$ac_includes_default 22265#include <wchar.h> 22266_ACEOF 22267rm -f conftest.$ac_objext 22268if { (ac_try="$ac_compile" 22269case "(($ac_try" in 22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22271 *) ac_try_echo=$ac_try;; 22272esac 22273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22274 (eval "$ac_compile") 2>conftest.er1 22275 ac_status=$? 22276 grep -v '^ *+' conftest.er1 >conftest.err 22277 rm -f conftest.er1 22278 cat conftest.err >&5 22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22280 (exit $ac_status); } && 22281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22282 { (case "(($ac_try" in 22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22284 *) ac_try_echo=$ac_try;; 22285esac 22286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22287 (eval "$ac_try") 2>&5 22288 ac_status=$? 22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22290 (exit $ac_status); }; } && 22291 { ac_try='test -s conftest.$ac_objext' 22292 { (case "(($ac_try" in 22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22294 *) ac_try_echo=$ac_try;; 22295esac 22296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22297 (eval "$ac_try") 2>&5 22298 ac_status=$? 22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22300 (exit $ac_status); }; }; then 22301 ac_header_compiler=yes 22302else 22303 echo "$as_me: failed program was:" >&5 22304sed 's/^/| /' conftest.$ac_ext >&5 22305 22306 ac_header_compiler=no 22307fi 22308 22309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22310{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22311echo "${ECHO_T}$ac_header_compiler" >&6; } 22312 22313# Is the header present? 22314{ echo "$as_me:$LINENO: checking wchar.h presence" >&5 22315echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } 22316cat >conftest.$ac_ext <<_ACEOF 22317/* confdefs.h. */ 22318_ACEOF 22319cat confdefs.h >>conftest.$ac_ext 22320cat >>conftest.$ac_ext <<_ACEOF 22321/* end confdefs.h. */ 22322#include <wchar.h> 22323_ACEOF 22324if { (ac_try="$ac_cpp conftest.$ac_ext" 22325case "(($ac_try" in 22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22327 *) ac_try_echo=$ac_try;; 22328esac 22329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22331 ac_status=$? 22332 grep -v '^ *+' conftest.er1 >conftest.err 22333 rm -f conftest.er1 22334 cat conftest.err >&5 22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22336 (exit $ac_status); } >/dev/null; then 22337 if test -s conftest.err; then 22338 ac_cpp_err=$ac_c_preproc_warn_flag 22339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22340 else 22341 ac_cpp_err= 22342 fi 22343else 22344 ac_cpp_err=yes 22345fi 22346if test -z "$ac_cpp_err"; then 22347 ac_header_preproc=yes 22348else 22349 echo "$as_me: failed program was:" >&5 22350sed 's/^/| /' conftest.$ac_ext >&5 22351 22352 ac_header_preproc=no 22353fi 22354 22355rm -f conftest.err conftest.$ac_ext 22356{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22357echo "${ECHO_T}$ac_header_preproc" >&6; } 22358 22359# So? What about this header? 22360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22361 yes:no: ) 22362 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 22363echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22364 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 22365echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} 22366 ac_header_preproc=yes 22367 ;; 22368 no:yes:* ) 22369 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 22370echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} 22371 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 22372echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} 22373 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 22374echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} 22375 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 22376echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} 22377 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 22378echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} 22379 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 22380echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} 22381 22382 ;; 22383esac 22384{ echo "$as_me:$LINENO: checking for wchar.h" >&5 22385echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } 22386if test "${ac_cv_header_wchar_h+set}" = set; then 22387 echo $ECHO_N "(cached) $ECHO_C" >&6 22388else 22389 ac_cv_header_wchar_h=$ac_header_preproc 22390fi 22391{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 22392echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } 22393 22394fi 22395if test $ac_cv_header_wchar_h = yes; then 22396 22397cat >>confdefs.h <<\_ACEOF 22398#define HAVE_WCHAR_H 1 22399_ACEOF 22400 22401else 22402 cat >conftest.$ac_ext <<_ACEOF 22403/* confdefs.h. */ 22404_ACEOF 22405cat confdefs.h >>conftest.$ac_ext 22406cat >>conftest.$ac_ext <<_ACEOF 22407/* end confdefs.h. */ 22408#include <stddef.h> 22409 22410_ACEOF 22411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22412 $EGREP "wchar_t" >/dev/null 2>&1; then 22413 22414cat >>confdefs.h <<\_ACEOF 22415#define STDDEF_HAS_WCHART 1 22416_ACEOF 22417 22418fi 22419rm -f conftest* 22420 22421fi 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446for ac_header in \ 22447 errno.h \ 22448 fcntl.h \ 22449 ieeefp.h \ 22450 malloc.h \ 22451 math.h \ 22452 memory.h \ 22453 netdb.h \ 22454 resolv.h \ 22455 stdlib.h \ 22456 string.h \ 22457 strings.h \ 22458 unistd.h \ 22459 arpa/inet.h \ 22460 arpa/nameser.h \ 22461 netinet/in.h \ 22462 netinet/tcp.h \ 22463 sys/filio.h \ 22464 sys/ioctl.h \ 22465 sys/socket.h \ 22466 sys/types.h \ 22467 sys/unistd.h \ 22468 22469do 22470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22472 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22475 echo $ECHO_N "(cached) $ECHO_C" >&6 22476fi 22477ac_res=`eval echo '${'$as_ac_Header'}'` 22478 { echo "$as_me:$LINENO: result: $ac_res" >&5 22479echo "${ECHO_T}$ac_res" >&6; } 22480else 22481 # Is the header compilable? 22482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22484cat >conftest.$ac_ext <<_ACEOF 22485/* confdefs.h. */ 22486_ACEOF 22487cat confdefs.h >>conftest.$ac_ext 22488cat >>conftest.$ac_ext <<_ACEOF 22489/* end confdefs.h. */ 22490$ac_includes_default 22491#include <$ac_header> 22492_ACEOF 22493rm -f conftest.$ac_objext 22494if { (ac_try="$ac_compile" 22495case "(($ac_try" in 22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22497 *) ac_try_echo=$ac_try;; 22498esac 22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22500 (eval "$ac_compile") 2>conftest.er1 22501 ac_status=$? 22502 grep -v '^ *+' conftest.er1 >conftest.err 22503 rm -f conftest.er1 22504 cat conftest.err >&5 22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22506 (exit $ac_status); } && 22507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22508 { (case "(($ac_try" in 22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22510 *) ac_try_echo=$ac_try;; 22511esac 22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22513 (eval "$ac_try") 2>&5 22514 ac_status=$? 22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22516 (exit $ac_status); }; } && 22517 { ac_try='test -s conftest.$ac_objext' 22518 { (case "(($ac_try" in 22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22520 *) ac_try_echo=$ac_try;; 22521esac 22522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22523 (eval "$ac_try") 2>&5 22524 ac_status=$? 22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22526 (exit $ac_status); }; }; then 22527 ac_header_compiler=yes 22528else 22529 echo "$as_me: failed program was:" >&5 22530sed 's/^/| /' conftest.$ac_ext >&5 22531 22532 ac_header_compiler=no 22533fi 22534 22535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22536{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22537echo "${ECHO_T}$ac_header_compiler" >&6; } 22538 22539# Is the header present? 22540{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22542cat >conftest.$ac_ext <<_ACEOF 22543/* confdefs.h. */ 22544_ACEOF 22545cat confdefs.h >>conftest.$ac_ext 22546cat >>conftest.$ac_ext <<_ACEOF 22547/* end confdefs.h. */ 22548#include <$ac_header> 22549_ACEOF 22550if { (ac_try="$ac_cpp conftest.$ac_ext" 22551case "(($ac_try" in 22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22553 *) ac_try_echo=$ac_try;; 22554esac 22555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22557 ac_status=$? 22558 grep -v '^ *+' conftest.er1 >conftest.err 22559 rm -f conftest.er1 22560 cat conftest.err >&5 22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22562 (exit $ac_status); } >/dev/null; then 22563 if test -s conftest.err; then 22564 ac_cpp_err=$ac_c_preproc_warn_flag 22565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22566 else 22567 ac_cpp_err= 22568 fi 22569else 22570 ac_cpp_err=yes 22571fi 22572if test -z "$ac_cpp_err"; then 22573 ac_header_preproc=yes 22574else 22575 echo "$as_me: failed program was:" >&5 22576sed 's/^/| /' conftest.$ac_ext >&5 22577 22578 ac_header_preproc=no 22579fi 22580 22581rm -f conftest.err conftest.$ac_ext 22582{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22583echo "${ECHO_T}$ac_header_preproc" >&6; } 22584 22585# So? What about this header? 22586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22587 yes:no: ) 22588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22592 ac_header_preproc=yes 22593 ;; 22594 no:yes:* ) 22595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22607 22608 ;; 22609esac 22610{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22613 echo $ECHO_N "(cached) $ECHO_C" >&6 22614else 22615 eval "$as_ac_Header=\$ac_header_preproc" 22616fi 22617ac_res=`eval echo '${'$as_ac_Header'}'` 22618 { echo "$as_me:$LINENO: result: $ac_res" >&5 22619echo "${ECHO_T}$ac_res" >&6; } 22620 22621fi 22622if test `eval echo '${'$as_ac_Header'}'` = yes; then 22623 cat >>confdefs.h <<_ACEOF 22624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22625_ACEOF 22626 22627fi 22628 22629done 22630 22631 22632 22633{ echo "$as_me:$LINENO: checking whether to use dmalloc library" >&5 22634echo $ECHO_N "checking whether to use dmalloc library... $ECHO_C" >&6; } 22635 22636# Check whether --with-dmalloc was given. 22637if test "${with_dmalloc+set}" = set; then 22638 withval=$with_dmalloc; if test "$withval" = "" -o "$withval" = "yes"; then 22639 ac_cv_dmalloc="/usr/local" 22640else 22641 ac_cv_dmalloc="$withval" 22642fi 22643{ echo "$as_me:$LINENO: result: yes" >&5 22644echo "${ECHO_T}yes" >&6; } 22645CPPFLAGS="$CPPFLAGS -DDEBUG_DMALLOC -DDMALLOC_FUNC_CHECK -I$ac_cv_dmalloc/include" 22646LDFLAGS="$LDFLAGS -L$ac_cv_dmalloc/lib" 22647LIBS="$LIBS -ldmalloc" 22648 22649else 22650 { echo "$as_me:$LINENO: result: no" >&5 22651echo "${ECHO_T}no" >&6; } 22652fi 22653 22654 22655 22656{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 22657echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 22658if test "${ac_cv_c_const+set}" = set; then 22659 echo $ECHO_N "(cached) $ECHO_C" >&6 22660else 22661 cat >conftest.$ac_ext <<_ACEOF 22662/* confdefs.h. */ 22663_ACEOF 22664cat confdefs.h >>conftest.$ac_ext 22665cat >>conftest.$ac_ext <<_ACEOF 22666/* end confdefs.h. */ 22667 22668int 22669main () 22670{ 22671/* FIXME: Include the comments suggested by Paul. */ 22672#ifndef __cplusplus 22673 /* Ultrix mips cc rejects this. */ 22674 typedef int charset[2]; 22675 const charset x; 22676 /* SunOS 4.1.1 cc rejects this. */ 22677 char const *const *ccp; 22678 char **p; 22679 /* NEC SVR4.0.2 mips cc rejects this. */ 22680 struct point {int x, y;}; 22681 static struct point const zero = {0,0}; 22682 /* AIX XL C 1.02.0.0 rejects this. 22683 It does not let you subtract one const X* pointer from another in 22684 an arm of an if-expression whose if-part is not a constant 22685 expression */ 22686 const char *g = "string"; 22687 ccp = &g + (g ? g-g : 0); 22688 /* HPUX 7.0 cc rejects these. */ 22689 ++ccp; 22690 p = (char**) ccp; 22691 ccp = (char const *const *) p; 22692 { /* SCO 3.2v4 cc rejects this. */ 22693 char *t; 22694 char const *s = 0 ? (char *) 0 : (char const *) 0; 22695 22696 *t++ = 0; 22697 if (s) return 0; 22698 } 22699 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22700 int x[] = {25, 17}; 22701 const int *foo = &x[0]; 22702 ++foo; 22703 } 22704 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22705 typedef const int *iptr; 22706 iptr p = 0; 22707 ++p; 22708 } 22709 { /* AIX XL C 1.02.0.0 rejects this saying 22710 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22711 struct s { int j; const int *ap[3]; }; 22712 struct s *b; b->j = 5; 22713 } 22714 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22715 const int foo = 10; 22716 if (!foo) return 0; 22717 } 22718 return !x[0] && !zero.x; 22719#endif 22720 22721 ; 22722 return 0; 22723} 22724_ACEOF 22725rm -f conftest.$ac_objext 22726if { (ac_try="$ac_compile" 22727case "(($ac_try" in 22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22729 *) ac_try_echo=$ac_try;; 22730esac 22731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22732 (eval "$ac_compile") 2>conftest.er1 22733 ac_status=$? 22734 grep -v '^ *+' conftest.er1 >conftest.err 22735 rm -f conftest.er1 22736 cat conftest.err >&5 22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22738 (exit $ac_status); } && 22739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22740 { (case "(($ac_try" in 22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22742 *) ac_try_echo=$ac_try;; 22743esac 22744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22745 (eval "$ac_try") 2>&5 22746 ac_status=$? 22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22748 (exit $ac_status); }; } && 22749 { ac_try='test -s conftest.$ac_objext' 22750 { (case "(($ac_try" in 22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22752 *) ac_try_echo=$ac_try;; 22753esac 22754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22755 (eval "$ac_try") 2>&5 22756 ac_status=$? 22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22758 (exit $ac_status); }; }; then 22759 ac_cv_c_const=yes 22760else 22761 echo "$as_me: failed program was:" >&5 22762sed 's/^/| /' conftest.$ac_ext >&5 22763 22764 ac_cv_c_const=no 22765fi 22766 22767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22768fi 22769{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 22770echo "${ECHO_T}$ac_cv_c_const" >&6; } 22771if test $ac_cv_c_const = no; then 22772 22773cat >>confdefs.h <<\_ACEOF 22774#define const 22775_ACEOF 22776 22777fi 22778 22779{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 22780echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } 22781if test "${ac_cv_type_uid_t+set}" = set; then 22782 echo $ECHO_N "(cached) $ECHO_C" >&6 22783else 22784 cat >conftest.$ac_ext <<_ACEOF 22785/* confdefs.h. */ 22786_ACEOF 22787cat confdefs.h >>conftest.$ac_ext 22788cat >>conftest.$ac_ext <<_ACEOF 22789/* end confdefs.h. */ 22790#include <sys/types.h> 22791 22792_ACEOF 22793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22794 $EGREP "uid_t" >/dev/null 2>&1; then 22795 ac_cv_type_uid_t=yes 22796else 22797 ac_cv_type_uid_t=no 22798fi 22799rm -f conftest* 22800 22801fi 22802{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 22803echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 22804if test $ac_cv_type_uid_t = no; then 22805 22806cat >>confdefs.h <<\_ACEOF 22807#define uid_t int 22808_ACEOF 22809 22810 22811cat >>confdefs.h <<\_ACEOF 22812#define gid_t int 22813_ACEOF 22814 22815fi 22816 22817{ echo "$as_me:$LINENO: checking for pid_t" >&5 22818echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 22819if test "${ac_cv_type_pid_t+set}" = set; then 22820 echo $ECHO_N "(cached) $ECHO_C" >&6 22821else 22822 cat >conftest.$ac_ext <<_ACEOF 22823/* confdefs.h. */ 22824_ACEOF 22825cat confdefs.h >>conftest.$ac_ext 22826cat >>conftest.$ac_ext <<_ACEOF 22827/* end confdefs.h. */ 22828$ac_includes_default 22829typedef pid_t ac__type_new_; 22830int 22831main () 22832{ 22833if ((ac__type_new_ *) 0) 22834 return 0; 22835if (sizeof (ac__type_new_)) 22836 return 0; 22837 ; 22838 return 0; 22839} 22840_ACEOF 22841rm -f conftest.$ac_objext 22842if { (ac_try="$ac_compile" 22843case "(($ac_try" in 22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22845 *) ac_try_echo=$ac_try;; 22846esac 22847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22848 (eval "$ac_compile") 2>conftest.er1 22849 ac_status=$? 22850 grep -v '^ *+' conftest.er1 >conftest.err 22851 rm -f conftest.er1 22852 cat conftest.err >&5 22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22854 (exit $ac_status); } && 22855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22856 { (case "(($ac_try" in 22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22858 *) ac_try_echo=$ac_try;; 22859esac 22860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22861 (eval "$ac_try") 2>&5 22862 ac_status=$? 22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22864 (exit $ac_status); }; } && 22865 { ac_try='test -s conftest.$ac_objext' 22866 { (case "(($ac_try" in 22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22868 *) ac_try_echo=$ac_try;; 22869esac 22870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22871 (eval "$ac_try") 2>&5 22872 ac_status=$? 22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22874 (exit $ac_status); }; }; then 22875 ac_cv_type_pid_t=yes 22876else 22877 echo "$as_me: failed program was:" >&5 22878sed 's/^/| /' conftest.$ac_ext >&5 22879 22880 ac_cv_type_pid_t=no 22881fi 22882 22883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22884fi 22885{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 22886echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 22887if test $ac_cv_type_pid_t = yes; then 22888 : 22889else 22890 22891cat >>confdefs.h <<_ACEOF 22892#define pid_t int 22893_ACEOF 22894 22895fi 22896 22897{ echo "$as_me:$LINENO: checking for size_t" >&5 22898echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 22899if test "${ac_cv_type_size_t+set}" = set; then 22900 echo $ECHO_N "(cached) $ECHO_C" >&6 22901else 22902 cat >conftest.$ac_ext <<_ACEOF 22903/* confdefs.h. */ 22904_ACEOF 22905cat confdefs.h >>conftest.$ac_ext 22906cat >>conftest.$ac_ext <<_ACEOF 22907/* end confdefs.h. */ 22908$ac_includes_default 22909typedef size_t ac__type_new_; 22910int 22911main () 22912{ 22913if ((ac__type_new_ *) 0) 22914 return 0; 22915if (sizeof (ac__type_new_)) 22916 return 0; 22917 ; 22918 return 0; 22919} 22920_ACEOF 22921rm -f conftest.$ac_objext 22922if { (ac_try="$ac_compile" 22923case "(($ac_try" in 22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22925 *) ac_try_echo=$ac_try;; 22926esac 22927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22928 (eval "$ac_compile") 2>conftest.er1 22929 ac_status=$? 22930 grep -v '^ *+' conftest.er1 >conftest.err 22931 rm -f conftest.er1 22932 cat conftest.err >&5 22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22934 (exit $ac_status); } && 22935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22936 { (case "(($ac_try" in 22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22938 *) ac_try_echo=$ac_try;; 22939esac 22940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22941 (eval "$ac_try") 2>&5 22942 ac_status=$? 22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22944 (exit $ac_status); }; } && 22945 { ac_try='test -s conftest.$ac_objext' 22946 { (case "(($ac_try" in 22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22948 *) ac_try_echo=$ac_try;; 22949esac 22950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22951 (eval "$ac_try") 2>&5 22952 ac_status=$? 22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22954 (exit $ac_status); }; }; then 22955 ac_cv_type_size_t=yes 22956else 22957 echo "$as_me: failed program was:" >&5 22958sed 's/^/| /' conftest.$ac_ext >&5 22959 22960 ac_cv_type_size_t=no 22961fi 22962 22963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22964fi 22965{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 22966echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 22967if test $ac_cv_type_size_t = yes; then 22968 : 22969else 22970 22971cat >>confdefs.h <<_ACEOF 22972#define size_t unsigned int 22973_ACEOF 22974 22975fi 22976 22977{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 22978echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 22979if test "${ac_cv_header_time+set}" = set; then 22980 echo $ECHO_N "(cached) $ECHO_C" >&6 22981else 22982 cat >conftest.$ac_ext <<_ACEOF 22983/* confdefs.h. */ 22984_ACEOF 22985cat confdefs.h >>conftest.$ac_ext 22986cat >>conftest.$ac_ext <<_ACEOF 22987/* end confdefs.h. */ 22988#include <sys/types.h> 22989#include <sys/time.h> 22990#include <time.h> 22991 22992int 22993main () 22994{ 22995if ((struct tm *) 0) 22996return 0; 22997 ; 22998 return 0; 22999} 23000_ACEOF 23001rm -f conftest.$ac_objext 23002if { (ac_try="$ac_compile" 23003case "(($ac_try" in 23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23005 *) ac_try_echo=$ac_try;; 23006esac 23007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23008 (eval "$ac_compile") 2>conftest.er1 23009 ac_status=$? 23010 grep -v '^ *+' conftest.er1 >conftest.err 23011 rm -f conftest.er1 23012 cat conftest.err >&5 23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23014 (exit $ac_status); } && 23015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23016 { (case "(($ac_try" in 23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23018 *) ac_try_echo=$ac_try;; 23019esac 23020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23021 (eval "$ac_try") 2>&5 23022 ac_status=$? 23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23024 (exit $ac_status); }; } && 23025 { ac_try='test -s conftest.$ac_objext' 23026 { (case "(($ac_try" in 23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23028 *) ac_try_echo=$ac_try;; 23029esac 23030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23031 (eval "$ac_try") 2>&5 23032 ac_status=$? 23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23034 (exit $ac_status); }; }; then 23035 ac_cv_header_time=yes 23036else 23037 echo "$as_me: failed program was:" >&5 23038sed 's/^/| /' conftest.$ac_ext >&5 23039 23040 ac_cv_header_time=no 23041fi 23042 23043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23044fi 23045{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 23046echo "${ECHO_T}$ac_cv_header_time" >&6; } 23047if test $ac_cv_header_time = yes; then 23048 23049cat >>confdefs.h <<\_ACEOF 23050#define TIME_WITH_SYS_TIME 1 23051_ACEOF 23052 23053fi 23054 23055{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 23056echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 23057if test "${ac_cv_struct_tm+set}" = set; then 23058 echo $ECHO_N "(cached) $ECHO_C" >&6 23059else 23060 cat >conftest.$ac_ext <<_ACEOF 23061/* confdefs.h. */ 23062_ACEOF 23063cat confdefs.h >>conftest.$ac_ext 23064cat >>conftest.$ac_ext <<_ACEOF 23065/* end confdefs.h. */ 23066#include <sys/types.h> 23067#include <time.h> 23068 23069int 23070main () 23071{ 23072struct tm *tp; tp->tm_sec; 23073 ; 23074 return 0; 23075} 23076_ACEOF 23077rm -f conftest.$ac_objext 23078if { (ac_try="$ac_compile" 23079case "(($ac_try" in 23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23081 *) ac_try_echo=$ac_try;; 23082esac 23083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23084 (eval "$ac_compile") 2>conftest.er1 23085 ac_status=$? 23086 grep -v '^ *+' conftest.er1 >conftest.err 23087 rm -f conftest.er1 23088 cat conftest.err >&5 23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23090 (exit $ac_status); } && 23091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23092 { (case "(($ac_try" in 23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23094 *) ac_try_echo=$ac_try;; 23095esac 23096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23097 (eval "$ac_try") 2>&5 23098 ac_status=$? 23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23100 (exit $ac_status); }; } && 23101 { ac_try='test -s conftest.$ac_objext' 23102 { (case "(($ac_try" in 23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23104 *) ac_try_echo=$ac_try;; 23105esac 23106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23107 (eval "$ac_try") 2>&5 23108 ac_status=$? 23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23110 (exit $ac_status); }; }; then 23111 ac_cv_struct_tm=time.h 23112else 23113 echo "$as_me: failed program was:" >&5 23114sed 's/^/| /' conftest.$ac_ext >&5 23115 23116 ac_cv_struct_tm=sys/time.h 23117fi 23118 23119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23120fi 23121{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 23122echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 23123if test $ac_cv_struct_tm = sys/time.h; then 23124 23125cat >>confdefs.h <<\_ACEOF 23126#define TM_IN_SYS_TIME 1 23127_ACEOF 23128 23129fi 23130 23131 23132{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 23133echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 23134if test "${ac_cv_type_signal+set}" = set; then 23135 echo $ECHO_N "(cached) $ECHO_C" >&6 23136else 23137 cat >conftest.$ac_ext <<_ACEOF 23138/* confdefs.h. */ 23139_ACEOF 23140cat confdefs.h >>conftest.$ac_ext 23141cat >>conftest.$ac_ext <<_ACEOF 23142/* end confdefs.h. */ 23143#include <sys/types.h> 23144#include <signal.h> 23145 23146int 23147main () 23148{ 23149return *(signal (0, 0)) (0) == 1; 23150 ; 23151 return 0; 23152} 23153_ACEOF 23154rm -f conftest.$ac_objext 23155if { (ac_try="$ac_compile" 23156case "(($ac_try" in 23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23158 *) ac_try_echo=$ac_try;; 23159esac 23160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23161 (eval "$ac_compile") 2>conftest.er1 23162 ac_status=$? 23163 grep -v '^ *+' conftest.er1 >conftest.err 23164 rm -f conftest.er1 23165 cat conftest.err >&5 23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23167 (exit $ac_status); } && 23168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23169 { (case "(($ac_try" in 23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23171 *) ac_try_echo=$ac_try;; 23172esac 23173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23174 (eval "$ac_try") 2>&5 23175 ac_status=$? 23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23177 (exit $ac_status); }; } && 23178 { ac_try='test -s conftest.$ac_objext' 23179 { (case "(($ac_try" in 23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23181 *) ac_try_echo=$ac_try;; 23182esac 23183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23184 (eval "$ac_try") 2>&5 23185 ac_status=$? 23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23187 (exit $ac_status); }; }; then 23188 ac_cv_type_signal=int 23189else 23190 echo "$as_me: failed program was:" >&5 23191sed 's/^/| /' conftest.$ac_ext >&5 23192 23193 ac_cv_type_signal=void 23194fi 23195 23196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23197fi 23198{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 23199echo "${ECHO_T}$ac_cv_type_signal" >&6; } 23200 23201cat >>confdefs.h <<_ACEOF 23202#define RETSIGTYPE $ac_cv_type_signal 23203_ACEOF 23204 23205 23206 23207for ac_func in vprintf 23208do 23209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23210{ echo "$as_me:$LINENO: checking for $ac_func" >&5 23211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 23212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23213 echo $ECHO_N "(cached) $ECHO_C" >&6 23214else 23215 cat >conftest.$ac_ext <<_ACEOF 23216/* confdefs.h. */ 23217_ACEOF 23218cat confdefs.h >>conftest.$ac_ext 23219cat >>conftest.$ac_ext <<_ACEOF 23220/* end confdefs.h. */ 23221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23222 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23223#define $ac_func innocuous_$ac_func 23224 23225/* System header to define __stub macros and hopefully few prototypes, 23226 which can conflict with char $ac_func (); below. 23227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23228 <limits.h> exists even on freestanding compilers. */ 23229 23230#ifdef __STDC__ 23231# include <limits.h> 23232#else 23233# include <assert.h> 23234#endif 23235 23236#undef $ac_func 23237 23238/* Override any GCC internal prototype to avoid an error. 23239 Use char because int might match the return type of a GCC 23240 builtin and then its argument prototype would still apply. */ 23241#ifdef __cplusplus 23242extern "C" 23243#endif 23244char $ac_func (); 23245/* The GNU C library defines this for functions which it implements 23246 to always fail with ENOSYS. Some functions are actually named 23247 something starting with __ and the normal name is an alias. */ 23248#if defined __stub_$ac_func || defined __stub___$ac_func 23249choke me 23250#endif 23251 23252int 23253main () 23254{ 23255return $ac_func (); 23256 ; 23257 return 0; 23258} 23259_ACEOF 23260rm -f conftest.$ac_objext conftest$ac_exeext 23261if { (ac_try="$ac_link" 23262case "(($ac_try" in 23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23264 *) ac_try_echo=$ac_try;; 23265esac 23266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23267 (eval "$ac_link") 2>conftest.er1 23268 ac_status=$? 23269 grep -v '^ *+' conftest.er1 >conftest.err 23270 rm -f conftest.er1 23271 cat conftest.err >&5 23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23273 (exit $ac_status); } && 23274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23275 { (case "(($ac_try" in 23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23277 *) ac_try_echo=$ac_try;; 23278esac 23279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23280 (eval "$ac_try") 2>&5 23281 ac_status=$? 23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23283 (exit $ac_status); }; } && 23284 { ac_try='test -s conftest$ac_exeext' 23285 { (case "(($ac_try" in 23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23287 *) ac_try_echo=$ac_try;; 23288esac 23289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23290 (eval "$ac_try") 2>&5 23291 ac_status=$? 23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23293 (exit $ac_status); }; }; then 23294 eval "$as_ac_var=yes" 23295else 23296 echo "$as_me: failed program was:" >&5 23297sed 's/^/| /' conftest.$ac_ext >&5 23298 23299 eval "$as_ac_var=no" 23300fi 23301 23302rm -f core conftest.err conftest.$ac_objext \ 23303 conftest$ac_exeext conftest.$ac_ext 23304fi 23305ac_res=`eval echo '${'$as_ac_var'}'` 23306 { echo "$as_me:$LINENO: result: $ac_res" >&5 23307echo "${ECHO_T}$ac_res" >&6; } 23308if test `eval echo '${'$as_ac_var'}'` = yes; then 23309 cat >>confdefs.h <<_ACEOF 23310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23311_ACEOF 23312 23313{ echo "$as_me:$LINENO: checking for _doprnt" >&5 23314echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 23315if test "${ac_cv_func__doprnt+set}" = set; then 23316 echo $ECHO_N "(cached) $ECHO_C" >&6 23317else 23318 cat >conftest.$ac_ext <<_ACEOF 23319/* confdefs.h. */ 23320_ACEOF 23321cat confdefs.h >>conftest.$ac_ext 23322cat >>conftest.$ac_ext <<_ACEOF 23323/* end confdefs.h. */ 23324/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 23325 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23326#define _doprnt innocuous__doprnt 23327 23328/* System header to define __stub macros and hopefully few prototypes, 23329 which can conflict with char _doprnt (); below. 23330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23331 <limits.h> exists even on freestanding compilers. */ 23332 23333#ifdef __STDC__ 23334# include <limits.h> 23335#else 23336# include <assert.h> 23337#endif 23338 23339#undef _doprnt 23340 23341/* Override any GCC internal prototype to avoid an error. 23342 Use char because int might match the return type of a GCC 23343 builtin and then its argument prototype would still apply. */ 23344#ifdef __cplusplus 23345extern "C" 23346#endif 23347char _doprnt (); 23348/* The GNU C library defines this for functions which it implements 23349 to always fail with ENOSYS. Some functions are actually named 23350 something starting with __ and the normal name is an alias. */ 23351#if defined __stub__doprnt || defined __stub____doprnt 23352choke me 23353#endif 23354 23355int 23356main () 23357{ 23358return _doprnt (); 23359 ; 23360 return 0; 23361} 23362_ACEOF 23363rm -f conftest.$ac_objext conftest$ac_exeext 23364if { (ac_try="$ac_link" 23365case "(($ac_try" in 23366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23367 *) ac_try_echo=$ac_try;; 23368esac 23369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23370 (eval "$ac_link") 2>conftest.er1 23371 ac_status=$? 23372 grep -v '^ *+' conftest.er1 >conftest.err 23373 rm -f conftest.er1 23374 cat conftest.err >&5 23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23376 (exit $ac_status); } && 23377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23378 { (case "(($ac_try" in 23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23380 *) ac_try_echo=$ac_try;; 23381esac 23382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23383 (eval "$ac_try") 2>&5 23384 ac_status=$? 23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23386 (exit $ac_status); }; } && 23387 { ac_try='test -s conftest$ac_exeext' 23388 { (case "(($ac_try" in 23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23390 *) ac_try_echo=$ac_try;; 23391esac 23392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23393 (eval "$ac_try") 2>&5 23394 ac_status=$? 23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23396 (exit $ac_status); }; }; then 23397 ac_cv_func__doprnt=yes 23398else 23399 echo "$as_me: failed program was:" >&5 23400sed 's/^/| /' conftest.$ac_ext >&5 23401 23402 ac_cv_func__doprnt=no 23403fi 23404 23405rm -f core conftest.err conftest.$ac_objext \ 23406 conftest$ac_exeext conftest.$ac_ext 23407fi 23408{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 23409echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 23410if test $ac_cv_func__doprnt = yes; then 23411 23412cat >>confdefs.h <<\_ACEOF 23413#define HAVE_DOPRNT 1 23414_ACEOF 23415 23416fi 23417 23418fi 23419done 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432for ac_func in \ 23433 mktime \ 23434 select \ 23435 socket \ 23436 strdup \ 23437 strtol \ 23438 strtoul \ 23439 snprintf \ 23440 strerror \ 23441 stricmp \ 23442 strcasecmp \ 23443 23444do 23445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23446{ echo "$as_me:$LINENO: checking for $ac_func" >&5 23447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 23448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23449 echo $ECHO_N "(cached) $ECHO_C" >&6 23450else 23451 cat >conftest.$ac_ext <<_ACEOF 23452/* confdefs.h. */ 23453_ACEOF 23454cat confdefs.h >>conftest.$ac_ext 23455cat >>conftest.$ac_ext <<_ACEOF 23456/* end confdefs.h. */ 23457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23458 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23459#define $ac_func innocuous_$ac_func 23460 23461/* System header to define __stub macros and hopefully few prototypes, 23462 which can conflict with char $ac_func (); below. 23463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23464 <limits.h> exists even on freestanding compilers. */ 23465 23466#ifdef __STDC__ 23467# include <limits.h> 23468#else 23469# include <assert.h> 23470#endif 23471 23472#undef $ac_func 23473 23474/* Override any GCC internal prototype to avoid an error. 23475 Use char because int might match the return type of a GCC 23476 builtin and then its argument prototype would still apply. */ 23477#ifdef __cplusplus 23478extern "C" 23479#endif 23480char $ac_func (); 23481/* The GNU C library defines this for functions which it implements 23482 to always fail with ENOSYS. Some functions are actually named 23483 something starting with __ and the normal name is an alias. */ 23484#if defined __stub_$ac_func || defined __stub___$ac_func 23485choke me 23486#endif 23487 23488int 23489main () 23490{ 23491return $ac_func (); 23492 ; 23493 return 0; 23494} 23495_ACEOF 23496rm -f conftest.$ac_objext conftest$ac_exeext 23497if { (ac_try="$ac_link" 23498case "(($ac_try" in 23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23500 *) ac_try_echo=$ac_try;; 23501esac 23502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23503 (eval "$ac_link") 2>conftest.er1 23504 ac_status=$? 23505 grep -v '^ *+' conftest.er1 >conftest.err 23506 rm -f conftest.er1 23507 cat conftest.err >&5 23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23509 (exit $ac_status); } && 23510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23511 { (case "(($ac_try" in 23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23513 *) ac_try_echo=$ac_try;; 23514esac 23515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23516 (eval "$ac_try") 2>&5 23517 ac_status=$? 23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23519 (exit $ac_status); }; } && 23520 { ac_try='test -s conftest$ac_exeext' 23521 { (case "(($ac_try" in 23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23523 *) ac_try_echo=$ac_try;; 23524esac 23525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23526 (eval "$ac_try") 2>&5 23527 ac_status=$? 23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23529 (exit $ac_status); }; }; then 23530 eval "$as_ac_var=yes" 23531else 23532 echo "$as_me: failed program was:" >&5 23533sed 's/^/| /' conftest.$ac_ext >&5 23534 23535 eval "$as_ac_var=no" 23536fi 23537 23538rm -f core conftest.err conftest.$ac_objext \ 23539 conftest$ac_exeext conftest.$ac_ext 23540fi 23541ac_res=`eval echo '${'$as_ac_var'}'` 23542 { echo "$as_me:$LINENO: result: $ac_res" >&5 23543echo "${ECHO_T}$ac_res" >&6; } 23544if test `eval echo '${'$as_ac_var'}'` = yes; then 23545 cat >>confdefs.h <<_ACEOF 23546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23547_ACEOF 23548 23549fi 23550done 23551 23552 23553ac_config_files="$ac_config_files Makefile proj/Makefile proj/win32/Makefile proj/win32/BCB5/Makefile proj/win32/MSVC6/Makefile proj/win32/MSVC7/Makefile proj/win32/MSVC7.1/Makefile proj/win32/MSVC8.0/Makefile include/Makefile include/easysoap/Makefile src/Makefile simpleserver/Makefile validator/Makefile tests/Makefile google/Makefile" 23554 23555cat >confcache <<\_ACEOF 23556# This file is a shell script that caches the results of configure 23557# tests run on this system so they can be shared between configure 23558# scripts and configure runs, see configure's option --config-cache. 23559# It is not useful on other systems. If it contains results you don't 23560# want to keep, you may remove or edit it. 23561# 23562# config.status only pays attention to the cache file if you give it 23563# the --recheck option to rerun configure. 23564# 23565# `ac_cv_env_foo' variables (set or unset) will be overridden when 23566# loading this file, other *unset* `ac_cv_foo' will be assigned the 23567# following values. 23568 23569_ACEOF 23570 23571# The following way of writing the cache mishandles newlines in values, 23572# but we know of no workaround that is simple, portable, and efficient. 23573# So, we kill variables containing newlines. 23574# Ultrix sh set writes to stderr and can't be redirected directly, 23575# and sets the high bit in the cache file unless we assign to the vars. 23576( 23577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23578 eval ac_val=\$$ac_var 23579 case $ac_val in #( 23580 *${as_nl}*) 23581 case $ac_var in #( 23582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23583echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23584 esac 23585 case $ac_var in #( 23586 _ | IFS | as_nl) ;; #( 23587 *) $as_unset $ac_var ;; 23588 esac ;; 23589 esac 23590 done 23591 23592 (set) 2>&1 | 23593 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23594 *${as_nl}ac_space=\ *) 23595 # `set' does not quote correctly, so add quotes (double-quote 23596 # substitution turns \\\\ into \\, and sed turns \\ into \). 23597 sed -n \ 23598 "s/'/'\\\\''/g; 23599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23600 ;; #( 23601 *) 23602 # `set' quotes correctly as required by POSIX, so do not add quotes. 23603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23604 ;; 23605 esac | 23606 sort 23607) | 23608 sed ' 23609 /^ac_cv_env_/b end 23610 t clear 23611 :clear 23612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23613 t end 23614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23615 :end' >>confcache 23616if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23617 if test -w "$cache_file"; then 23618 test "x$cache_file" != "x/dev/null" && 23619 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23620echo "$as_me: updating cache $cache_file" >&6;} 23621 cat confcache >$cache_file 23622 else 23623 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23624echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23625 fi 23626fi 23627rm -f confcache 23628 23629test "x$prefix" = xNONE && prefix=$ac_default_prefix 23630# Let make expand exec_prefix. 23631test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23632 23633DEFS=-DHAVE_CONFIG_H 23634 23635ac_libobjs= 23636ac_ltlibobjs= 23637for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23638 # 1. Remove the extension, and $U if already installed. 23639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23640 ac_i=`echo "$ac_i" | sed "$ac_script"` 23641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23642 # will be set to the directory where LIBOBJS objects are built. 23643 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23644 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23645done 23646LIBOBJS=$ac_libobjs 23647 23648LTLIBOBJS=$ac_ltlibobjs 23649 23650 23651if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23652 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23653Usually this means the macro was only invoked conditionally." >&5 23654echo "$as_me: error: conditional \"AMDEP\" was never defined. 23655Usually this means the macro was only invoked conditionally." >&2;} 23656 { (exit 1); exit 1; }; } 23657fi 23658if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23659 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23660Usually this means the macro was only invoked conditionally." >&5 23661echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23662Usually this means the macro was only invoked conditionally." >&2;} 23663 { (exit 1); exit 1; }; } 23664fi 23665if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23666 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23667Usually this means the macro was only invoked conditionally." >&5 23668echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23669Usually this means the macro was only invoked conditionally." >&2;} 23670 { (exit 1); exit 1; }; } 23671fi 23672 23673: ${CONFIG_STATUS=./config.status} 23674ac_clean_files_save=$ac_clean_files 23675ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23676{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23677echo "$as_me: creating $CONFIG_STATUS" >&6;} 23678cat >$CONFIG_STATUS <<_ACEOF 23679#! $SHELL 23680# Generated by $as_me. 23681# Run this file to recreate the current configuration. 23682# Compiler output produced by configure, useful for debugging 23683# configure, is in config.log if it exists. 23684 23685debug=false 23686ac_cs_recheck=false 23687ac_cs_silent=false 23688SHELL=\${CONFIG_SHELL-$SHELL} 23689_ACEOF 23690 23691cat >>$CONFIG_STATUS <<\_ACEOF 23692## --------------------- ## 23693## M4sh Initialization. ## 23694## --------------------- ## 23695 23696# Be Bourne compatible 23697if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23698 emulate sh 23699 NULLCMD=: 23700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23701 # is contrary to our usage. Disable this feature. 23702 alias -g '${1+"$@"}'='"$@"' 23703 setopt NO_GLOB_SUBST 23704else 23705 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23706fi 23707BIN_SH=xpg4; export BIN_SH # for Tru64 23708DUALCASE=1; export DUALCASE # for MKS sh 23709 23710 23711# PATH needs CR 23712# Avoid depending upon Character Ranges. 23713as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23714as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23715as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23716as_cr_digits='0123456789' 23717as_cr_alnum=$as_cr_Letters$as_cr_digits 23718 23719# The user is always right. 23720if test "${PATH_SEPARATOR+set}" != set; then 23721 echo "#! /bin/sh" >conf$$.sh 23722 echo "exit 0" >>conf$$.sh 23723 chmod +x conf$$.sh 23724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23725 PATH_SEPARATOR=';' 23726 else 23727 PATH_SEPARATOR=: 23728 fi 23729 rm -f conf$$.sh 23730fi 23731 23732# Support unset when possible. 23733if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23734 as_unset=unset 23735else 23736 as_unset=false 23737fi 23738 23739 23740# IFS 23741# We need space, tab and new line, in precisely that order. Quoting is 23742# there to prevent editors from complaining about space-tab. 23743# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23744# splitting by setting IFS to empty value.) 23745as_nl=' 23746' 23747IFS=" "" $as_nl" 23748 23749# Find who we are. Look in the path if we contain no directory separator. 23750case $0 in 23751 *[\\/]* ) as_myself=$0 ;; 23752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23753for as_dir in $PATH 23754do 23755 IFS=$as_save_IFS 23756 test -z "$as_dir" && as_dir=. 23757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23758done 23759IFS=$as_save_IFS 23760 23761 ;; 23762esac 23763# We did not find ourselves, most probably we were run as `sh COMMAND' 23764# in which case we are not to be found in the path. 23765if test "x$as_myself" = x; then 23766 as_myself=$0 23767fi 23768if test ! -f "$as_myself"; then 23769 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23770 { (exit 1); exit 1; } 23771fi 23772 23773# Work around bugs in pre-3.0 UWIN ksh. 23774for as_var in ENV MAIL MAILPATH 23775do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23776done 23777PS1='$ ' 23778PS2='> ' 23779PS4='+ ' 23780 23781# NLS nuisances. 23782for as_var in \ 23783 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23784 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23785 LC_TELEPHONE LC_TIME 23786do 23787 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23788 eval $as_var=C; export $as_var 23789 else 23790 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23791 fi 23792done 23793 23794# Required to use basename. 23795if expr a : '\(a\)' >/dev/null 2>&1 && 23796 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23797 as_expr=expr 23798else 23799 as_expr=false 23800fi 23801 23802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23803 as_basename=basename 23804else 23805 as_basename=false 23806fi 23807 23808 23809# Name of the executable. 23810as_me=`$as_basename -- "$0" || 23811$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23812 X"$0" : 'X\(//\)$' \| \ 23813 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23814echo X/"$0" | 23815 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23816 s//\1/ 23817 q 23818 } 23819 /^X\/\(\/\/\)$/{ 23820 s//\1/ 23821 q 23822 } 23823 /^X\/\(\/\).*/{ 23824 s//\1/ 23825 q 23826 } 23827 s/.*/./; q'` 23828 23829# CDPATH. 23830$as_unset CDPATH 23831 23832 23833 23834 as_lineno_1=$LINENO 23835 as_lineno_2=$LINENO 23836 test "x$as_lineno_1" != "x$as_lineno_2" && 23837 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23838 23839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23840 # uniformly replaced by the line number. The first 'sed' inserts a 23841 # line-number line after each line using $LINENO; the second 'sed' 23842 # does the real work. The second script uses 'N' to pair each 23843 # line-number line with the line containing $LINENO, and appends 23844 # trailing '-' during substitution so that $LINENO is not a special 23845 # case at line end. 23846 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23847 # scripts with optimization help from Paolo Bonzini. Blame Lee 23848 # E. McMahon (1931-1989) for sed's syntax. :-) 23849 sed -n ' 23850 p 23851 /[$]LINENO/= 23852 ' <$as_myself | 23853 sed ' 23854 s/[$]LINENO.*/&-/ 23855 t lineno 23856 b 23857 :lineno 23858 N 23859 :loop 23860 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23861 t loop 23862 s/-\n.*// 23863 ' >$as_me.lineno && 23864 chmod +x "$as_me.lineno" || 23865 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23866 { (exit 1); exit 1; }; } 23867 23868 # Don't try to exec as it changes $[0], causing all sort of problems 23869 # (the dirname of $[0] is not the place where we might find the 23870 # original and so on. Autoconf is especially sensitive to this). 23871 . "./$as_me.lineno" 23872 # Exit status is that of the last command. 23873 exit 23874} 23875 23876 23877if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23878 as_dirname=dirname 23879else 23880 as_dirname=false 23881fi 23882 23883ECHO_C= ECHO_N= ECHO_T= 23884case `echo -n x` in 23885-n*) 23886 case `echo 'x\c'` in 23887 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23888 *) ECHO_C='\c';; 23889 esac;; 23890*) 23891 ECHO_N='-n';; 23892esac 23893 23894if expr a : '\(a\)' >/dev/null 2>&1 && 23895 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23896 as_expr=expr 23897else 23898 as_expr=false 23899fi 23900 23901rm -f conf$$ conf$$.exe conf$$.file 23902if test -d conf$$.dir; then 23903 rm -f conf$$.dir/conf$$.file 23904else 23905 rm -f conf$$.dir 23906 mkdir conf$$.dir 23907fi 23908echo >conf$$.file 23909if ln -s conf$$.file conf$$ 2>/dev/null; then 23910 as_ln_s='ln -s' 23911 # ... but there are two gotchas: 23912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23914 # In both cases, we have to default to `cp -p'. 23915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23916 as_ln_s='cp -p' 23917elif ln conf$$.file conf$$ 2>/dev/null; then 23918 as_ln_s=ln 23919else 23920 as_ln_s='cp -p' 23921fi 23922rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23923rmdir conf$$.dir 2>/dev/null 23924 23925if mkdir -p . 2>/dev/null; then 23926 as_mkdir_p=: 23927else 23928 test -d ./-p && rmdir ./-p 23929 as_mkdir_p=false 23930fi 23931 23932# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23933# systems may use methods other than mode bits to determine executability. 23934cat >conf$$.file <<_ASEOF 23935#! /bin/sh 23936exit 0 23937_ASEOF 23938chmod +x conf$$.file 23939if test -x conf$$.file >/dev/null 2>&1; then 23940 as_executable_p="test -x" 23941else 23942 as_executable_p=: 23943fi 23944rm -f conf$$.file 23945 23946# Sed expression to map a string onto a valid CPP name. 23947as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23948 23949# Sed expression to map a string onto a valid variable name. 23950as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23951 23952 23953exec 6>&1 23954 23955# Save the log message, to keep $[0] and so on meaningful, and to 23956# report actual input values of CONFIG_FILES etc. instead of their 23957# values after options handling. 23958ac_log=" 23959This file was extended by $as_me, which was 23960generated by GNU Autoconf 2.60. Invocation command line was 23961 23962 CONFIG_FILES = $CONFIG_FILES 23963 CONFIG_HEADERS = $CONFIG_HEADERS 23964 CONFIG_LINKS = $CONFIG_LINKS 23965 CONFIG_COMMANDS = $CONFIG_COMMANDS 23966 $ $0 $@ 23967 23968on `(hostname || uname -n) 2>/dev/null | sed 1q` 23969" 23970 23971_ACEOF 23972 23973cat >>$CONFIG_STATUS <<_ACEOF 23974# Files that config.status was made for. 23975config_files="$ac_config_files" 23976config_headers="$ac_config_headers" 23977config_commands="$ac_config_commands" 23978 23979_ACEOF 23980 23981cat >>$CONFIG_STATUS <<\_ACEOF 23982ac_cs_usage="\ 23983\`$as_me' instantiates files from templates according to the 23984current configuration. 23985 23986Usage: $0 [OPTIONS] [FILE]... 23987 23988 -h, --help print this help, then exit 23989 -V, --version print version number, then exit 23990 -q, --quiet do not print progress messages 23991 -d, --debug don't remove temporary files 23992 --recheck update $as_me by reconfiguring in the same conditions 23993 --file=FILE[:TEMPLATE] 23994 instantiate the configuration file FILE 23995 --header=FILE[:TEMPLATE] 23996 instantiate the configuration header FILE 23997 23998Configuration files: 23999$config_files 24000 24001Configuration headers: 24002$config_headers 24003 24004Configuration commands: 24005$config_commands 24006 24007Report bugs to <bug-autoconf@gnu.org>." 24008 24009_ACEOF 24010cat >>$CONFIG_STATUS <<_ACEOF 24011ac_cs_version="\\ 24012config.status 24013configured by $0, generated by GNU Autoconf 2.60, 24014 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24015 24016Copyright (C) 2006 Free Software Foundation, Inc. 24017This config.status script is free software; the Free Software Foundation 24018gives unlimited permission to copy, distribute and modify it." 24019 24020ac_pwd='$ac_pwd' 24021srcdir='$srcdir' 24022INSTALL='$INSTALL' 24023_ACEOF 24024 24025cat >>$CONFIG_STATUS <<\_ACEOF 24026# If no file are specified by the user, then we need to provide default 24027# value. By we need to know if files were specified by the user. 24028ac_need_defaults=: 24029while test $# != 0 24030do 24031 case $1 in 24032 --*=*) 24033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24035 ac_shift=: 24036 ;; 24037 *) 24038 ac_option=$1 24039 ac_optarg=$2 24040 ac_shift=shift 24041 ;; 24042 esac 24043 24044 case $ac_option in 24045 # Handling of the options. 24046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24047 ac_cs_recheck=: ;; 24048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24049 echo "$ac_cs_version"; exit ;; 24050 --debug | --debu | --deb | --de | --d | -d ) 24051 debug=: ;; 24052 --file | --fil | --fi | --f ) 24053 $ac_shift 24054 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24055 ac_need_defaults=false;; 24056 --header | --heade | --head | --hea ) 24057 $ac_shift 24058 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24059 ac_need_defaults=false;; 24060 --he | --h) 24061 # Conflict between --help and --header 24062 { echo "$as_me: error: ambiguous option: $1 24063Try \`$0 --help' for more information." >&2 24064 { (exit 1); exit 1; }; };; 24065 --help | --hel | -h ) 24066 echo "$ac_cs_usage"; exit ;; 24067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24068 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24069 ac_cs_silent=: ;; 24070 24071 # This is an error. 24072 -*) { echo "$as_me: error: unrecognized option: $1 24073Try \`$0 --help' for more information." >&2 24074 { (exit 1); exit 1; }; } ;; 24075 24076 *) ac_config_targets="$ac_config_targets $1" 24077 ac_need_defaults=false ;; 24078 24079 esac 24080 shift 24081done 24082 24083ac_configure_extra_args= 24084 24085if $ac_cs_silent; then 24086 exec 6>/dev/null 24087 ac_configure_extra_args="$ac_configure_extra_args --silent" 24088fi 24089 24090_ACEOF 24091cat >>$CONFIG_STATUS <<_ACEOF 24092if \$ac_cs_recheck; then 24093 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24094 CONFIG_SHELL=$SHELL 24095 export CONFIG_SHELL 24096 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24097fi 24098 24099_ACEOF 24100cat >>$CONFIG_STATUS <<\_ACEOF 24101exec 5>>config.log 24102{ 24103 echo 24104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24105## Running $as_me. ## 24106_ASBOX 24107 echo "$ac_log" 24108} >&5 24109 24110_ACEOF 24111cat >>$CONFIG_STATUS <<_ACEOF 24112# 24113# INIT-COMMANDS 24114# 24115AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24116 24117_ACEOF 24118 24119cat >>$CONFIG_STATUS <<\_ACEOF 24120 24121# Handling of arguments. 24122for ac_config_target in $ac_config_targets 24123do 24124 case $ac_config_target in 24125 "include/easysoap/es_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/easysoap/es_config.h" ;; 24126 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24127 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24128 "proj/Makefile") CONFIG_FILES="$CONFIG_FILES proj/Makefile" ;; 24129 "proj/win32/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/Makefile" ;; 24130 "proj/win32/BCB5/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/BCB5/Makefile" ;; 24131 "proj/win32/MSVC6/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/MSVC6/Makefile" ;; 24132 "proj/win32/MSVC7/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/MSVC7/Makefile" ;; 24133 "proj/win32/MSVC7.1/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/MSVC7.1/Makefile" ;; 24134 "proj/win32/MSVC8.0/Makefile") CONFIG_FILES="$CONFIG_FILES proj/win32/MSVC8.0/Makefile" ;; 24135 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24136 "include/easysoap/Makefile") CONFIG_FILES="$CONFIG_FILES include/easysoap/Makefile" ;; 24137 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24138 "simpleserver/Makefile") CONFIG_FILES="$CONFIG_FILES simpleserver/Makefile" ;; 24139 "validator/Makefile") CONFIG_FILES="$CONFIG_FILES validator/Makefile" ;; 24140 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 24141 "google/Makefile") CONFIG_FILES="$CONFIG_FILES google/Makefile" ;; 24142 24143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24144echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24145 { (exit 1); exit 1; }; };; 24146 esac 24147done 24148 24149 24150# If the user did not use the arguments to specify the items to instantiate, 24151# then the envvar interface is used. Set only those that are not. 24152# We use the long form for the default assignment because of an extremely 24153# bizarre bug on SunOS 4.1.3. 24154if $ac_need_defaults; then 24155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24158fi 24159 24160# Have a temporary directory for convenience. Make it in the build tree 24161# simply because there is no reason against having it here, and in addition, 24162# creating and moving files from /tmp can sometimes cause problems. 24163# Hook for its removal unless debugging. 24164# Note that there is a small window in which the directory will not be cleaned: 24165# after its creation but before its name has been assigned to `$tmp'. 24166$debug || 24167{ 24168 tmp= 24169 trap 'exit_status=$? 24170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24171' 0 24172 trap '{ (exit 1); exit 1; }' 1 2 13 15 24173} 24174# Create a (secure) tmp directory for tmp files. 24175 24176{ 24177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24178 test -n "$tmp" && test -d "$tmp" 24179} || 24180{ 24181 tmp=./conf$$-$RANDOM 24182 (umask 077 && mkdir "$tmp") 24183} || 24184{ 24185 echo "$me: cannot create a temporary directory in ." >&2 24186 { (exit 1); exit 1; } 24187} 24188 24189# 24190# Set up the sed scripts for CONFIG_FILES section. 24191# 24192 24193# No need to generate the scripts if there are no CONFIG_FILES. 24194# This happens for instance when ./config.status config.h 24195if test -n "$CONFIG_FILES"; then 24196 24197_ACEOF 24198 24199 24200 24201ac_delim='%!_!# ' 24202for ac_last_try in false false false false false :; do 24203 cat >conf$$subs.sed <<_ACEOF 24204SHELL!$SHELL$ac_delim 24205PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 24206PACKAGE_NAME!$PACKAGE_NAME$ac_delim 24207PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 24208PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 24209PACKAGE_STRING!$PACKAGE_STRING$ac_delim 24210PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 24211exec_prefix!$exec_prefix$ac_delim 24212prefix!$prefix$ac_delim 24213program_transform_name!$program_transform_name$ac_delim 24214bindir!$bindir$ac_delim 24215sbindir!$sbindir$ac_delim 24216libexecdir!$libexecdir$ac_delim 24217datarootdir!$datarootdir$ac_delim 24218datadir!$datadir$ac_delim 24219sysconfdir!$sysconfdir$ac_delim 24220sharedstatedir!$sharedstatedir$ac_delim 24221localstatedir!$localstatedir$ac_delim 24222includedir!$includedir$ac_delim 24223oldincludedir!$oldincludedir$ac_delim 24224docdir!$docdir$ac_delim 24225infodir!$infodir$ac_delim 24226htmldir!$htmldir$ac_delim 24227dvidir!$dvidir$ac_delim 24228pdfdir!$pdfdir$ac_delim 24229psdir!$psdir$ac_delim 24230libdir!$libdir$ac_delim 24231localedir!$localedir$ac_delim 24232mandir!$mandir$ac_delim 24233DEFS!$DEFS$ac_delim 24234ECHO_C!$ECHO_C$ac_delim 24235ECHO_N!$ECHO_N$ac_delim 24236ECHO_T!$ECHO_T$ac_delim 24237LIBS!$LIBS$ac_delim 24238build_alias!$build_alias$ac_delim 24239host_alias!$host_alias$ac_delim 24240target_alias!$target_alias$ac_delim 24241INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 24242INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 24243INSTALL_DATA!$INSTALL_DATA$ac_delim 24244CYGPATH_W!$CYGPATH_W$ac_delim 24245PACKAGE!$PACKAGE$ac_delim 24246VERSION!$VERSION$ac_delim 24247ACLOCAL!$ACLOCAL$ac_delim 24248AUTOCONF!$AUTOCONF$ac_delim 24249AUTOMAKE!$AUTOMAKE$ac_delim 24250AUTOHEADER!$AUTOHEADER$ac_delim 24251MAKEINFO!$MAKEINFO$ac_delim 24252AMTAR!$AMTAR$ac_delim 24253install_sh!$install_sh$ac_delim 24254STRIP!$STRIP$ac_delim 24255INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 24256AWK!$AWK$ac_delim 24257SET_MAKE!$SET_MAKE$ac_delim 24258am__leading_dot!$am__leading_dot$ac_delim 24259build!$build$ac_delim 24260build_cpu!$build_cpu$ac_delim 24261build_vendor!$build_vendor$ac_delim 24262build_os!$build_os$ac_delim 24263host!$host$ac_delim 24264host_cpu!$host_cpu$ac_delim 24265host_vendor!$host_vendor$ac_delim 24266host_os!$host_os$ac_delim 24267CXX!$CXX$ac_delim 24268CXXFLAGS!$CXXFLAGS$ac_delim 24269LDFLAGS!$LDFLAGS$ac_delim 24270CPPFLAGS!$CPPFLAGS$ac_delim 24271ac_ct_CXX!$ac_ct_CXX$ac_delim 24272EXEEXT!$EXEEXT$ac_delim 24273OBJEXT!$OBJEXT$ac_delim 24274DEPDIR!$DEPDIR$ac_delim 24275am__include!$am__include$ac_delim 24276am__quote!$am__quote$ac_delim 24277AMDEP_TRUE!$AMDEP_TRUE$ac_delim 24278AMDEP_FALSE!$AMDEP_FALSE$ac_delim 24279AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 24280CXXDEPMODE!$CXXDEPMODE$ac_delim 24281am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 24282am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 24283CC!$CC$ac_delim 24284CFLAGS!$CFLAGS$ac_delim 24285ac_ct_CC!$ac_ct_CC$ac_delim 24286CCDEPMODE!$CCDEPMODE$ac_delim 24287am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 24288am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 24289CPP!$CPP$ac_delim 24290LN_S!$LN_S$ac_delim 24291GREP!$GREP$ac_delim 24292EGREP!$EGREP$ac_delim 24293ECHO!$ECHO$ac_delim 24294AR!$AR$ac_delim 24295RANLIB!$RANLIB$ac_delim 24296CXXCPP!$CXXCPP$ac_delim 24297F77!$F77$ac_delim 24298FFLAGS!$FFLAGS$ac_delim 24299ac_ct_F77!$ac_ct_F77$ac_delim 24300LIBTOOL!$LIBTOOL$ac_delim 24301_ACEOF 24302 24303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 24304 break 24305 elif $ac_last_try; then 24306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24307echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24308 { (exit 1); exit 1; }; } 24309 else 24310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24311 fi 24312done 24313 24314ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24315if test -n "$ac_eof"; then 24316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24317 ac_eof=`expr $ac_eof + 1` 24318fi 24319 24320cat >>$CONFIG_STATUS <<_ACEOF 24321cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 24322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24323_ACEOF 24324sed ' 24325s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24326s/^/s,@/; s/!/@,|#_!!_#|/ 24327:n 24328t n 24329s/'"$ac_delim"'$/,g/; t 24330s/$/\\/; p 24331N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24332' >>$CONFIG_STATUS <conf$$subs.sed 24333rm -f conf$$subs.sed 24334cat >>$CONFIG_STATUS <<_ACEOF 24335CEOF$ac_eof 24336_ACEOF 24337 24338 24339ac_delim='%!_!# ' 24340for ac_last_try in false false false false false :; do 24341 cat >conf$$subs.sed <<_ACEOF 24342MAKEDEPEND!$MAKEDEPEND$ac_delim 24343LIBOBJS!$LIBOBJS$ac_delim 24344LTLIBOBJS!$LTLIBOBJS$ac_delim 24345_ACEOF 24346 24347 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then 24348 break 24349 elif $ac_last_try; then 24350 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24351echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24352 { (exit 1); exit 1; }; } 24353 else 24354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24355 fi 24356done 24357 24358ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24359if test -n "$ac_eof"; then 24360 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24361 ac_eof=`expr $ac_eof + 1` 24362fi 24363 24364cat >>$CONFIG_STATUS <<_ACEOF 24365cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24366/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24367_ACEOF 24368sed ' 24369s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24370s/^/s,@/; s/!/@,|#_!!_#|/ 24371:n 24372t n 24373s/'"$ac_delim"'$/,g/; t 24374s/$/\\/; p 24375N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24376' >>$CONFIG_STATUS <conf$$subs.sed 24377rm -f conf$$subs.sed 24378cat >>$CONFIG_STATUS <<_ACEOF 24379:end 24380s/|#_!!_#|//g 24381CEOF$ac_eof 24382_ACEOF 24383 24384 24385# VPATH may cause trouble with some makes, so we remove $(srcdir), 24386# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24387# trailing colons and then remove the whole line if VPATH becomes empty 24388# (actually we leave an empty line to preserve line numbers). 24389if test "x$srcdir" = x.; then 24390 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24391s/:*\$(srcdir):*/:/ 24392s/:*\${srcdir}:*/:/ 24393s/:*@srcdir@:*/:/ 24394s/^\([^=]*=[ ]*\):*/\1/ 24395s/:*$// 24396s/^[^=]*=[ ]*$// 24397}' 24398fi 24399 24400cat >>$CONFIG_STATUS <<\_ACEOF 24401fi # test -n "$CONFIG_FILES" 24402 24403 24404for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24405do 24406 case $ac_tag in 24407 :[FHLC]) ac_mode=$ac_tag; continue;; 24408 esac 24409 case $ac_mode$ac_tag in 24410 :[FHL]*:*);; 24411 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24412echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24413 { (exit 1); exit 1; }; };; 24414 :[FH]-) ac_tag=-:-;; 24415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24416 esac 24417 ac_save_IFS=$IFS 24418 IFS=: 24419 set x $ac_tag 24420 IFS=$ac_save_IFS 24421 shift 24422 ac_file=$1 24423 shift 24424 24425 case $ac_mode in 24426 :L) ac_source=$1;; 24427 :[FH]) 24428 ac_file_inputs= 24429 for ac_f 24430 do 24431 case $ac_f in 24432 -) ac_f="$tmp/stdin";; 24433 *) # Look for the file first in the build tree, then in the source tree 24434 # (if the path is not absolute). The absolute path cannot be DOS-style, 24435 # because $ac_f cannot contain `:'. 24436 test -f "$ac_f" || 24437 case $ac_f in 24438 [\\/$]*) false;; 24439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24440 esac || 24441 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24442echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24443 { (exit 1); exit 1; }; };; 24444 esac 24445 ac_file_inputs="$ac_file_inputs $ac_f" 24446 done 24447 24448 # Let's still pretend it is `configure' which instantiates (i.e., don't 24449 # use $as_me), people would be surprised to read: 24450 # /* config.h. Generated by config.status. */ 24451 configure_input="Generated from "`IFS=: 24452 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24453 if test x"$ac_file" != x-; then 24454 configure_input="$ac_file. $configure_input" 24455 { echo "$as_me:$LINENO: creating $ac_file" >&5 24456echo "$as_me: creating $ac_file" >&6;} 24457 fi 24458 24459 case $ac_tag in 24460 *:-:* | *:-) cat >"$tmp/stdin";; 24461 esac 24462 ;; 24463 esac 24464 24465 ac_dir=`$as_dirname -- "$ac_file" || 24466$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24467 X"$ac_file" : 'X\(//\)[^/]' \| \ 24468 X"$ac_file" : 'X\(//\)$' \| \ 24469 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24470echo X"$ac_file" | 24471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24472 s//\1/ 24473 q 24474 } 24475 /^X\(\/\/\)[^/].*/{ 24476 s//\1/ 24477 q 24478 } 24479 /^X\(\/\/\)$/{ 24480 s//\1/ 24481 q 24482 } 24483 /^X\(\/\).*/{ 24484 s//\1/ 24485 q 24486 } 24487 s/.*/./; q'` 24488 { as_dir="$ac_dir" 24489 case $as_dir in #( 24490 -*) as_dir=./$as_dir;; 24491 esac 24492 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24493 as_dirs= 24494 while :; do 24495 case $as_dir in #( 24496 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24497 *) as_qdir=$as_dir;; 24498 esac 24499 as_dirs="'$as_qdir' $as_dirs" 24500 as_dir=`$as_dirname -- "$as_dir" || 24501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24502 X"$as_dir" : 'X\(//\)[^/]' \| \ 24503 X"$as_dir" : 'X\(//\)$' \| \ 24504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24505echo X"$as_dir" | 24506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24507 s//\1/ 24508 q 24509 } 24510 /^X\(\/\/\)[^/].*/{ 24511 s//\1/ 24512 q 24513 } 24514 /^X\(\/\/\)$/{ 24515 s//\1/ 24516 q 24517 } 24518 /^X\(\/\).*/{ 24519 s//\1/ 24520 q 24521 } 24522 s/.*/./; q'` 24523 test -d "$as_dir" && break 24524 done 24525 test -z "$as_dirs" || eval "mkdir $as_dirs" 24526 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24527echo "$as_me: error: cannot create directory $as_dir" >&2;} 24528 { (exit 1); exit 1; }; }; } 24529 ac_builddir=. 24530 24531case "$ac_dir" in 24532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24533*) 24534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24535 # A ".." for each directory in $ac_dir_suffix. 24536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24537 case $ac_top_builddir_sub in 24538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24540 esac ;; 24541esac 24542ac_abs_top_builddir=$ac_pwd 24543ac_abs_builddir=$ac_pwd$ac_dir_suffix 24544# for backward compatibility: 24545ac_top_builddir=$ac_top_build_prefix 24546 24547case $srcdir in 24548 .) # We are building in place. 24549 ac_srcdir=. 24550 ac_top_srcdir=$ac_top_builddir_sub 24551 ac_abs_top_srcdir=$ac_pwd ;; 24552 [\\/]* | ?:[\\/]* ) # Absolute name. 24553 ac_srcdir=$srcdir$ac_dir_suffix; 24554 ac_top_srcdir=$srcdir 24555 ac_abs_top_srcdir=$srcdir ;; 24556 *) # Relative name. 24557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24558 ac_top_srcdir=$ac_top_build_prefix$srcdir 24559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24560esac 24561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24562 24563 24564 case $ac_mode in 24565 :F) 24566 # 24567 # CONFIG_FILE 24568 # 24569 24570 case $INSTALL in 24571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24572 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24573 esac 24574_ACEOF 24575 24576cat >>$CONFIG_STATUS <<\_ACEOF 24577# If the template does not know about datarootdir, expand it. 24578# FIXME: This hack should be removed a few years after 2.60. 24579ac_datarootdir_hack=; ac_datarootdir_seen= 24580 24581case `sed -n '/datarootdir/ { 24582 p 24583 q 24584} 24585/@datadir@/p 24586/@docdir@/p 24587/@infodir@/p 24588/@localedir@/p 24589/@mandir@/p 24590' $ac_file_inputs` in 24591*datarootdir*) ac_datarootdir_seen=yes;; 24592*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24593 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24594echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24595_ACEOF 24596cat >>$CONFIG_STATUS <<_ACEOF 24597 ac_datarootdir_hack=' 24598 s&@datadir@&$datadir&g 24599 s&@docdir@&$docdir&g 24600 s&@infodir@&$infodir&g 24601 s&@localedir@&$localedir&g 24602 s&@mandir@&$mandir&g 24603 s&\\\${datarootdir}&$datarootdir&g' ;; 24604esac 24605_ACEOF 24606 24607# Neutralize VPATH when `$srcdir' = `.'. 24608# Shell code in configure.ac might set extrasub. 24609# FIXME: do we really want to maintain this feature? 24610cat >>$CONFIG_STATUS <<_ACEOF 24611 sed "$ac_vpsub 24612$extrasub 24613_ACEOF 24614cat >>$CONFIG_STATUS <<\_ACEOF 24615:t 24616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24617s&@configure_input@&$configure_input&;t t 24618s&@top_builddir@&$ac_top_builddir_sub&;t t 24619s&@srcdir@&$ac_srcdir&;t t 24620s&@abs_srcdir@&$ac_abs_srcdir&;t t 24621s&@top_srcdir@&$ac_top_srcdir&;t t 24622s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24623s&@builddir@&$ac_builddir&;t t 24624s&@abs_builddir@&$ac_abs_builddir&;t t 24625s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24626s&@INSTALL@&$ac_INSTALL&;t t 24627$ac_datarootdir_hack 24628" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24629 24630test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24631 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24633 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24634which seems to be undefined. Please make sure it is defined." >&5 24635echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24636which seems to be undefined. Please make sure it is defined." >&2;} 24637 24638 rm -f "$tmp/stdin" 24639 case $ac_file in 24640 -) cat "$tmp/out"; rm -f "$tmp/out";; 24641 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24642 esac 24643 ;; 24644 :H) 24645 # 24646 # CONFIG_HEADER 24647 # 24648_ACEOF 24649 24650# Transform confdefs.h into a sed script `conftest.defines', that 24651# substitutes the proper values into config.h.in to produce config.h. 24652rm -f conftest.defines conftest.tail 24653# First, append a space to every undef/define line, to ease matching. 24654echo 's/$/ /' >conftest.defines 24655# Then, protect against being on the right side of a sed subst, or in 24656# an unquoted here document, in config.status. If some macros were 24657# called several times there might be several #defines for the same 24658# symbol, which is useless. But do not sort them, since the last 24659# AC_DEFINE must be honored. 24660ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24661# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24662# NAME is the cpp macro being defined, VALUE is the value it is being given. 24663# PARAMS is the parameter list in the macro definition--in most cases, it's 24664# just an empty string. 24665ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24666ac_dB='\\)[ (].*,\\1define\\2' 24667ac_dC=' ' 24668ac_dD=' ,' 24669 24670uniq confdefs.h | 24671 sed -n ' 24672 t rset 24673 :rset 24674 s/^[ ]*#[ ]*define[ ][ ]*// 24675 t ok 24676 d 24677 :ok 24678 s/[\\&,]/\\&/g 24679 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24680 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24681 ' >>conftest.defines 24682 24683# Remove the space that was appended to ease matching. 24684# Then replace #undef with comments. This is necessary, for 24685# example, in the case of _POSIX_SOURCE, which is predefined and required 24686# on some systems where configure will not decide to define it. 24687# (The regexp can be short, since the line contains either #define or #undef.) 24688echo 's/ $// 24689s,^[ #]*u.*,/* & */,' >>conftest.defines 24690 24691# Break up conftest.defines: 24692ac_max_sed_lines=50 24693 24694# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24695# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24696# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24697# et cetera. 24698ac_in='$ac_file_inputs' 24699ac_out='"$tmp/out1"' 24700ac_nxt='"$tmp/out2"' 24701 24702while : 24703do 24704 # Write a here document: 24705 cat >>$CONFIG_STATUS <<_ACEOF 24706 # First, check the format of the line: 24707 cat >"\$tmp/defines.sed" <<\\CEOF 24708/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24709/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24710b 24711:def 24712_ACEOF 24713 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24714 echo 'CEOF 24715 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24716 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24717 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24718 grep . conftest.tail >/dev/null || break 24719 rm -f conftest.defines 24720 mv conftest.tail conftest.defines 24721done 24722rm -f conftest.defines conftest.tail 24723 24724echo "ac_result=$ac_in" >>$CONFIG_STATUS 24725cat >>$CONFIG_STATUS <<\_ACEOF 24726 if test x"$ac_file" != x-; then 24727 echo "/* $configure_input */" >"$tmp/config.h" 24728 cat "$ac_result" >>"$tmp/config.h" 24729 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24730 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24731echo "$as_me: $ac_file is unchanged" >&6;} 24732 else 24733 rm -f $ac_file 24734 mv "$tmp/config.h" $ac_file 24735 fi 24736 else 24737 echo "/* $configure_input */" 24738 cat "$ac_result" 24739 fi 24740 rm -f "$tmp/out12" 24741# Compute $ac_file's index in $config_headers. 24742_am_stamp_count=1 24743for _am_header in $config_headers :; do 24744 case $_am_header in 24745 $ac_file | $ac_file:* ) 24746 break ;; 24747 * ) 24748 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24749 esac 24750done 24751echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24752$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24753 X$ac_file : 'X\(//\)[^/]' \| \ 24754 X$ac_file : 'X\(//\)$' \| \ 24755 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24756echo X$ac_file | 24757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24758 s//\1/ 24759 q 24760 } 24761 /^X\(\/\/\)[^/].*/{ 24762 s//\1/ 24763 q 24764 } 24765 /^X\(\/\/\)$/{ 24766 s//\1/ 24767 q 24768 } 24769 /^X\(\/\).*/{ 24770 s//\1/ 24771 q 24772 } 24773 s/.*/./; q'`/stamp-h$_am_stamp_count 24774 ;; 24775 24776 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24777echo "$as_me: executing $ac_file commands" >&6;} 24778 ;; 24779 esac 24780 24781 24782 case $ac_file$ac_mode in 24783 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24784 # Strip MF so we end up with the name of the file. 24785 mf=`echo "$mf" | sed -e 's/:.*$//'` 24786 # Check whether this is an Automake generated Makefile or not. 24787 # We used to match only the files named `Makefile.in', but 24788 # some people rename them; so instead we look at the file content. 24789 # Grep'ing the first line is not enough: some people post-process 24790 # each Makefile.in and add a new line on top of each file to say so. 24791 # So let's grep whole file. 24792 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24793 dirpart=`$as_dirname -- "$mf" || 24794$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24795 X"$mf" : 'X\(//\)[^/]' \| \ 24796 X"$mf" : 'X\(//\)$' \| \ 24797 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24798echo X"$mf" | 24799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24800 s//\1/ 24801 q 24802 } 24803 /^X\(\/\/\)[^/].*/{ 24804 s//\1/ 24805 q 24806 } 24807 /^X\(\/\/\)$/{ 24808 s//\1/ 24809 q 24810 } 24811 /^X\(\/\).*/{ 24812 s//\1/ 24813 q 24814 } 24815 s/.*/./; q'` 24816 else 24817 continue 24818 fi 24819 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 24820 # Extract the definition of DEP_FILES from the Makefile without 24821 # running `make'. 24822 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 24823 test -z "$DEPDIR" && continue 24824 # When using ansi2knr, U may be empty or an underscore; expand it 24825 U=`sed -n -e '/^U = / s///p' < "$mf"` 24826 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 24827 # We invoke sed twice because it is the simplest approach to 24828 # changing $(DEPDIR) to its actual value in the expansion. 24829 for file in `sed -n -e ' 24830 /^DEP_FILES = .*\\\\$/ { 24831 s/^DEP_FILES = // 24832 :loop 24833 s/\\\\$// 24834 p 24835 n 24836 /\\\\$/ b loop 24837 p 24838 } 24839 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 24840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24841 # Make sure the directory exists. 24842 test -f "$dirpart/$file" && continue 24843 fdir=`$as_dirname -- "$file" || 24844$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24845 X"$file" : 'X\(//\)[^/]' \| \ 24846 X"$file" : 'X\(//\)$' \| \ 24847 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24848echo X"$file" | 24849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24850 s//\1/ 24851 q 24852 } 24853 /^X\(\/\/\)[^/].*/{ 24854 s//\1/ 24855 q 24856 } 24857 /^X\(\/\/\)$/{ 24858 s//\1/ 24859 q 24860 } 24861 /^X\(\/\).*/{ 24862 s//\1/ 24863 q 24864 } 24865 s/.*/./; q'` 24866 { as_dir=$dirpart/$fdir 24867 case $as_dir in #( 24868 -*) as_dir=./$as_dir;; 24869 esac 24870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24871 as_dirs= 24872 while :; do 24873 case $as_dir in #( 24874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24875 *) as_qdir=$as_dir;; 24876 esac 24877 as_dirs="'$as_qdir' $as_dirs" 24878 as_dir=`$as_dirname -- "$as_dir" || 24879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24880 X"$as_dir" : 'X\(//\)[^/]' \| \ 24881 X"$as_dir" : 'X\(//\)$' \| \ 24882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24883echo X"$as_dir" | 24884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24885 s//\1/ 24886 q 24887 } 24888 /^X\(\/\/\)[^/].*/{ 24889 s//\1/ 24890 q 24891 } 24892 /^X\(\/\/\)$/{ 24893 s//\1/ 24894 q 24895 } 24896 /^X\(\/\).*/{ 24897 s//\1/ 24898 q 24899 } 24900 s/.*/./; q'` 24901 test -d "$as_dir" && break 24902 done 24903 test -z "$as_dirs" || eval "mkdir $as_dirs" 24904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24905echo "$as_me: error: cannot create directory $as_dir" >&2;} 24906 { (exit 1); exit 1; }; }; } 24907 # echo "creating $dirpart/$file" 24908 echo '# dummy' > "$dirpart/$file" 24909 done 24910done 24911 ;; 24912 24913 esac 24914done # for ac_tag 24915 24916 24917{ (exit 0); exit 0; } 24918_ACEOF 24919chmod +x $CONFIG_STATUS 24920ac_clean_files=$ac_clean_files_save 24921 24922 24923# configure is writing to config.log, and then calls config.status. 24924# config.status does its own redirection, appending to config.log. 24925# Unfortunately, on DOS this fails, as config.log is still kept open 24926# by configure, so config.status won't be able to write to it; its 24927# output is simply discarded. So we exec the FD to /dev/null, 24928# effectively closing config.log, so it can be properly (re)opened and 24929# appended to by config.status. When coming back to configure, we 24930# need to make the FD available again. 24931if test "$no_create" != yes; then 24932 ac_cs_success=: 24933 ac_config_status_args= 24934 test "$silent" = yes && 24935 ac_config_status_args="$ac_config_status_args --quiet" 24936 exec 5>/dev/null 24937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24938 exec 5>>config.log 24939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24940 # would make configure fail if this is the last instruction. 24941 $ac_cs_success || { (exit 1); exit 1; } 24942fi 24943 24944 24945