1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libdisasm 0.23. 4# 5# Report bugs to <bastard-libdisasm@lists.sourceforge.net>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='libdisasm' 730PACKAGE_TARNAME='libdisasm' 731PACKAGE_VERSION='0.23' 732PACKAGE_STRING='libdisasm 0.23' 733PACKAGE_BUGREPORT='bastard-libdisasm@lists.sourceforge.net' 734 735ac_unique_file="libdisasm/x86_disasm.c" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834build 835build_cpu 836build_vendor 837build_os 838host 839host_cpu 840host_vendor 841host_os 842CC 843CFLAGS 844LDFLAGS 845CPPFLAGS 846ac_ct_CC 847EXEEXT 848OBJEXT 849DEPDIR 850am__include 851am__quote 852AMDEP_TRUE 853AMDEP_FALSE 854AMDEPBACKSLASH 855CCDEPMODE 856am__fastdepCC_TRUE 857am__fastdepCC_FALSE 858CPP 859GREP 860EGREP 861SED 862LN_S 863ECHO 864AR 865RANLIB 866CXX 867CXXFLAGS 868ac_ct_CXX 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872CXXCPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877LIBOBJS 878LTLIBOBJS' 879ac_subst_files='' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CPP 889CXX 890CXXFLAGS 891CCC 892CXXCPP 893F77 894FFLAGS' 895 896 897# Initialize some variables set by options. 898ac_init_help= 899ac_init_version=false 900# The variables have the same names as the options, with 901# dashes changed to underlines. 902cache_file=/dev/null 903exec_prefix=NONE 904no_create= 905no_recursion= 906prefix=NONE 907program_prefix=NONE 908program_suffix=NONE 909program_transform_name=s,x,x, 910silent= 911site= 912srcdir= 913verbose= 914x_includes=NONE 915x_libraries=NONE 916 917# Installation directory options. 918# These are left unexpanded so users can "make install exec_prefix=/foo" 919# and all the variables that are supposed to be based on exec_prefix 920# by default will actually change. 921# Use braces instead of parens because sh, perl, etc. also accept them. 922# (The list follows the same order as the GNU Coding Standards.) 923bindir='${exec_prefix}/bin' 924sbindir='${exec_prefix}/sbin' 925libexecdir='${exec_prefix}/libexec' 926datarootdir='${prefix}/share' 927datadir='${datarootdir}' 928sysconfdir='${prefix}/etc' 929sharedstatedir='${prefix}/com' 930localstatedir='${prefix}/var' 931includedir='${prefix}/include' 932oldincludedir='/usr/include' 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 934infodir='${datarootdir}/info' 935htmldir='${docdir}' 936dvidir='${docdir}' 937pdfdir='${docdir}' 938psdir='${docdir}' 939libdir='${exec_prefix}/lib' 940localedir='${datarootdir}/locale' 941mandir='${datarootdir}/man' 942 943ac_prev= 944ac_dashdash= 945for ac_option 946do 947 # If the previous option needs an argument, assign it. 948 if test -n "$ac_prev"; then 949 eval $ac_prev=\$ac_option 950 ac_prev= 951 continue 952 fi 953 954 case $ac_option in 955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1002 { (exit 1); exit 1; }; } 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1004 eval enable_$ac_feature=no ;; 1005 1006 -docdir | --docdir | --docdi | --doc | --do) 1007 ac_prev=docdir ;; 1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1009 docdir=$ac_optarg ;; 1010 1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1012 ac_prev=dvidir ;; 1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1014 dvidir=$ac_optarg ;; 1015 1016 -enable-* | --enable-*) 1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1021 { (exit 1); exit 1; }; } 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1023 eval enable_$ac_feature=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2 1218 { (exit 1); exit 1; }; } 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1220 eval with_$ac_package=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1229 eval with_$ac_package=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) { echo "$as_me: error: unrecognized option: $ac_option 1250Try \`$0 --help' for more information." >&2 1251 { (exit 1); exit 1; }; } 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1259 { (exit 1); exit 1; }; } 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 { echo "$as_me: error: missing argument to $ac_option" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280# Be sure to have absolute directory names. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir 1285do 1286 eval ac_val=\$$ac_var 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1292 { (exit 1); exit 1; }; } 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1307 If a cross compiler is detected then cross compile mode will be used." >&2 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 { echo "$as_me: error: Working directory cannot be determined" >&2 1323 { (exit 1); exit 1; }; } 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 { echo "$as_me: error: pwd does not report name of working directory" >&2 1326 { (exit 1); exit 1; }; } 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$0" || 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$0" : 'X\(//\)[^/]' \| \ 1336 X"$0" : 'X\(//\)$' \| \ 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1338echo X"$0" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1366 { (exit 1); exit 1; }; } 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1371 { (exit 1); exit 1; }; } 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures libdisasm 0.23 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libdisasm] 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462_ACEOF 1463fi 1464 1465if test -n "$ac_init_help"; then 1466 case $ac_init_help in 1467 short | recursive ) echo "Configuration of libdisasm 0.23:";; 1468 esac 1469 cat <<\_ACEOF 1470 1471Optional Features: 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --enable-maintainer-mode enable make rules and dependencies not useful 1475 (and sometimes confusing) to the casual installer 1476 --disable-dependency-tracking speeds up one-time build 1477 --enable-dependency-tracking do not reject slow dependency extractors 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --disable-libtool-lock avoid locking (might break parallel builds) 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-pic try to use only PIC/non-PIC objects [default=use 1489 both] 1490 --with-tags[=TAGS] include additional configurations [automatic] 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 CPP C preprocessor 1501 CXX C++ compiler command 1502 CXXFLAGS C++ compiler flags 1503 CXXCPP C++ preprocessor 1504 F77 Fortran 77 compiler command 1505 FFLAGS Fortran 77 compiler flags 1506 1507Use these variables to override the choices made by `configure' or to help 1508it to find libraries and programs with nonstandard names/locations. 1509 1510Report bugs to <bastard-libdisasm@lists.sourceforge.net>. 1511_ACEOF 1512ac_status=$? 1513fi 1514 1515if test "$ac_init_help" = "recursive"; then 1516 # If there are subdirs, report their specific --help. 1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1518 test -d "$ac_dir" || continue 1519 ac_builddir=. 1520 1521case "$ac_dir" in 1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523*) 1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1525 # A ".." for each directory in $ac_dir_suffix. 1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1527 case $ac_top_builddir_sub in 1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1530 esac ;; 1531esac 1532ac_abs_top_builddir=$ac_pwd 1533ac_abs_builddir=$ac_pwd$ac_dir_suffix 1534# for backward compatibility: 1535ac_top_builddir=$ac_top_build_prefix 1536 1537case $srcdir in 1538 .) # We are building in place. 1539 ac_srcdir=. 1540 ac_top_srcdir=$ac_top_builddir_sub 1541 ac_abs_top_srcdir=$ac_pwd ;; 1542 [\\/]* | ?:[\\/]* ) # Absolute name. 1543 ac_srcdir=$srcdir$ac_dir_suffix; 1544 ac_top_srcdir=$srcdir 1545 ac_abs_top_srcdir=$srcdir ;; 1546 *) # Relative name. 1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1548 ac_top_srcdir=$ac_top_build_prefix$srcdir 1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1550esac 1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1552 1553 cd "$ac_dir" || { ac_status=$?; continue; } 1554 # Check for guested configure. 1555 if test -f "$ac_srcdir/configure.gnu"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1558 elif test -f "$ac_srcdir/configure"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure" --help=recursive 1561 else 1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1563 fi || ac_status=$? 1564 cd "$ac_pwd" || { ac_status=$?; break; } 1565 done 1566fi 1567 1568test -n "$ac_init_help" && exit $ac_status 1569if $ac_init_version; then 1570 cat <<\_ACEOF 1571libdisasm configure 0.23 1572generated by GNU Autoconf 2.61 1573 1574Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1576This configure script is free software; the Free Software Foundation 1577gives unlimited permission to copy, distribute and modify it. 1578_ACEOF 1579 exit 1580fi 1581cat >config.log <<_ACEOF 1582This file contains any messages produced by compilers while 1583running configure, to aid debugging if configure makes a mistake. 1584 1585It was created by libdisasm $as_me 0.23, which was 1586generated by GNU Autoconf 2.61. Invocation command line was 1587 1588 $ $0 $@ 1589 1590_ACEOF 1591exec 5>>config.log 1592{ 1593cat <<_ASUNAME 1594## --------- ## 1595## Platform. ## 1596## --------- ## 1597 1598hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1599uname -m = `(uname -m) 2>/dev/null || echo unknown` 1600uname -r = `(uname -r) 2>/dev/null || echo unknown` 1601uname -s = `(uname -s) 2>/dev/null || echo unknown` 1602uname -v = `(uname -v) 2>/dev/null || echo unknown` 1603 1604/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1605/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1606 1607/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1608/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1609/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1610/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1611/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1612/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1613/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1614 1615_ASUNAME 1616 1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1618for as_dir in $PATH 1619do 1620 IFS=$as_save_IFS 1621 test -z "$as_dir" && as_dir=. 1622 echo "PATH: $as_dir" 1623done 1624IFS=$as_save_IFS 1625 1626} >&5 1627 1628cat >&5 <<_ACEOF 1629 1630 1631## ----------- ## 1632## Core tests. ## 1633## ----------- ## 1634 1635_ACEOF 1636 1637 1638# Keep a trace of the command line. 1639# Strip out --no-create and --no-recursion so they do not pile up. 1640# Strip out --silent because we don't want to record it for future runs. 1641# Also quote any args containing shell meta-characters. 1642# Make two passes to allow for proper duplicate-argument suppression. 1643ac_configure_args= 1644ac_configure_args0= 1645ac_configure_args1= 1646ac_must_keep_next=false 1647for ac_pass in 1 2 1648do 1649 for ac_arg 1650 do 1651 case $ac_arg in 1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1654 | -silent | --silent | --silen | --sile | --sil) 1655 continue ;; 1656 *\'*) 1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1658 esac 1659 case $ac_pass in 1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1661 2) 1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1663 if test $ac_must_keep_next = true; then 1664 ac_must_keep_next=false # Got value, back to normal. 1665 else 1666 case $ac_arg in 1667 *=* | --config-cache | -C | -disable-* | --disable-* \ 1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1670 | -with-* | --with-* | -without-* | --without-* | --x) 1671 case "$ac_configure_args0 " in 1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1673 esac 1674 ;; 1675 -* ) ac_must_keep_next=true ;; 1676 esac 1677 fi 1678 ac_configure_args="$ac_configure_args '$ac_arg'" 1679 ;; 1680 esac 1681 done 1682done 1683$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1684$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1685 1686# When interrupted or exit'd, cleanup temporary files, and complete 1687# config.log. We remove comments because anyway the quotes in there 1688# would cause problems or look ugly. 1689# WARNING: Use '\'' to represent an apostrophe within the trap. 1690# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1691trap 'exit_status=$? 1692 # Save into config.log some information that might help in debugging. 1693 { 1694 echo 1695 1696 cat <<\_ASBOX 1697## ---------------- ## 1698## Cache variables. ## 1699## ---------------- ## 1700_ASBOX 1701 echo 1702 # The following way of writing the cache mishandles newlines in values, 1703( 1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1705 eval ac_val=\$$ac_var 1706 case $ac_val in #( 1707 *${as_nl}*) 1708 case $ac_var in #( 1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1710echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1711 esac 1712 case $ac_var in #( 1713 _ | IFS | as_nl) ;; #( 1714 *) $as_unset $ac_var ;; 1715 esac ;; 1716 esac 1717 done 1718 (set) 2>&1 | 1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1720 *${as_nl}ac_space=\ *) 1721 sed -n \ 1722 "s/'\''/'\''\\\\'\'''\''/g; 1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1724 ;; #( 1725 *) 1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1727 ;; 1728 esac | 1729 sort 1730) 1731 echo 1732 1733 cat <<\_ASBOX 1734## ----------------- ## 1735## Output variables. ## 1736## ----------------- ## 1737_ASBOX 1738 echo 1739 for ac_var in $ac_subst_vars 1740 do 1741 eval ac_val=\$$ac_var 1742 case $ac_val in 1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1744 esac 1745 echo "$ac_var='\''$ac_val'\''" 1746 done | sort 1747 echo 1748 1749 if test -n "$ac_subst_files"; then 1750 cat <<\_ASBOX 1751## ------------------- ## 1752## File substitutions. ## 1753## ------------------- ## 1754_ASBOX 1755 echo 1756 for ac_var in $ac_subst_files 1757 do 1758 eval ac_val=\$$ac_var 1759 case $ac_val in 1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1761 esac 1762 echo "$ac_var='\''$ac_val'\''" 1763 done | sort 1764 echo 1765 fi 1766 1767 if test -s confdefs.h; then 1768 cat <<\_ASBOX 1769## ----------- ## 1770## confdefs.h. ## 1771## ----------- ## 1772_ASBOX 1773 echo 1774 cat confdefs.h 1775 echo 1776 fi 1777 test "$ac_signal" != 0 && 1778 echo "$as_me: caught signal $ac_signal" 1779 echo "$as_me: exit $exit_status" 1780 } >&5 1781 rm -f core *.core core.conftest.* && 1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1783 exit $exit_status 1784' 0 1785for ac_signal in 1 2 13 15; do 1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1787done 1788ac_signal=0 1789 1790# confdefs.h avoids OS command line length limits that DEFS can exceed. 1791rm -f -r conftest* confdefs.h 1792 1793# Predefined preprocessor variables. 1794 1795cat >>confdefs.h <<_ACEOF 1796#define PACKAGE_NAME "$PACKAGE_NAME" 1797_ACEOF 1798 1799 1800cat >>confdefs.h <<_ACEOF 1801#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1802_ACEOF 1803 1804 1805cat >>confdefs.h <<_ACEOF 1806#define PACKAGE_VERSION "$PACKAGE_VERSION" 1807_ACEOF 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE_STRING "$PACKAGE_STRING" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1817_ACEOF 1818 1819 1820# Let the site file select an alternate cache file if it wants to. 1821# Prefer explicitly selected file to automatically selected ones. 1822if test -n "$CONFIG_SITE"; then 1823 set x "$CONFIG_SITE" 1824elif test "x$prefix" != xNONE; then 1825 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1826else 1827 set x "$ac_default_prefix/share/config.site" \ 1828 "$ac_default_prefix/etc/config.site" 1829fi 1830shift 1831for ac_site_file 1832do 1833 if test -r "$ac_site_file"; then 1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1835echo "$as_me: loading site script $ac_site_file" >&6;} 1836 sed 's/^/| /' "$ac_site_file" >&5 1837 . "$ac_site_file" 1838 fi 1839done 1840 1841if test -r "$cache_file"; then 1842 # Some versions of bash will fail to source /dev/null (special 1843 # files actually), so we avoid doing that. 1844 if test -f "$cache_file"; then 1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1846echo "$as_me: loading cache $cache_file" >&6;} 1847 case $cache_file in 1848 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1849 *) . "./$cache_file";; 1850 esac 1851 fi 1852else 1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1854echo "$as_me: creating cache $cache_file" >&6;} 1855 >$cache_file 1856fi 1857 1858# Check that the precious variables saved in the cache have kept the same 1859# value. 1860ac_cache_corrupted=false 1861for ac_var in $ac_precious_vars; do 1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1863 eval ac_new_set=\$ac_env_${ac_var}_set 1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1865 eval ac_new_val=\$ac_env_${ac_var}_value 1866 case $ac_old_set,$ac_new_set in 1867 set,) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,set) 1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1873echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1874 ac_cache_corrupted=: ;; 1875 ,);; 1876 *) 1877 if test "x$ac_old_val" != "x$ac_new_val"; then 1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1879echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1881echo "$as_me: former value: $ac_old_val" >&2;} 1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1883echo "$as_me: current value: $ac_new_val" >&2;} 1884 ac_cache_corrupted=: 1885 fi;; 1886 esac 1887 # Pass precious variables to config.status. 1888 if test "$ac_new_set" = set; then 1889 case $ac_new_val in 1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 *) ac_arg=$ac_var=$ac_new_val ;; 1892 esac 1893 case " $ac_configure_args " in 1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1896 esac 1897 fi 1898done 1899if $ac_cache_corrupted; then 1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1901echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1903echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1904 { (exit 1); exit 1; }; } 1905fi 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931ac_ext=c 1932ac_cpp='$CPP $CPPFLAGS' 1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1935ac_compiler_gnu=$ac_cv_c_compiler_gnu 1936 1937 1938 1939am__api_version='1.10' 1940 1941ac_aux_dir= 1942for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1943 if test -f "$ac_dir/install-sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install-sh -c" 1946 break 1947 elif test -f "$ac_dir/install.sh"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/install.sh -c" 1950 break 1951 elif test -f "$ac_dir/shtool"; then 1952 ac_aux_dir=$ac_dir 1953 ac_install_sh="$ac_aux_dir/shtool install -c" 1954 break 1955 fi 1956done 1957if test -z "$ac_aux_dir"; then 1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1959echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1960 { (exit 1); exit 1; }; } 1961fi 1962 1963# These three variables are undocumented and unsupported, 1964# and are intended to be withdrawn in a future Autoconf release. 1965# They can cause serious problems if a builder's source tree is in a directory 1966# whose full name contains unusual characters. 1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1970 1971 1972# Find a good install program. We prefer a C program (faster), 1973# so one script is as good as another. But avoid the broken or 1974# incompatible versions: 1975# SysV /etc/install, /usr/sbin/install 1976# SunOS /usr/etc/install 1977# IRIX /sbin/install 1978# AIX /bin/install 1979# AmigaOS /C/install, which installs bootblocks on floppy discs 1980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1981# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1983# OS/2's system install, which has a completely different semantic 1984# ./install, which can be erroneously created by make from ./install.sh. 1985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1987if test -z "$INSTALL"; then 1988if test "${ac_cv_path_install+set}" = set; then 1989 echo $ECHO_N "(cached) $ECHO_C" >&6 1990else 1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1992for as_dir in $PATH 1993do 1994 IFS=$as_save_IFS 1995 test -z "$as_dir" && as_dir=. 1996 # Account for people who put trailing slashes in PATH elements. 1997case $as_dir/ in 1998 ./ | .// | /cC/* | \ 1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2001 /usr/ucb/* ) ;; 2002 *) 2003 # OSF1 and SCO ODT 3.0 have their own names for install. 2004 # Don't use installbsd from OSF since it installs stuff as root 2005 # by default. 2006 for ac_prog in ginstall scoinst install; do 2007 for ac_exec_ext in '' $ac_executable_extensions; do 2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2009 if test $ac_prog = install && 2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2011 # AIX install. It has an incompatible calling convention. 2012 : 2013 elif test $ac_prog = install && 2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2015 # program-specific install script used by HP pwplus--don't use. 2016 : 2017 else 2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2019 break 3 2020 fi 2021 fi 2022 done 2023 done 2024 ;; 2025esac 2026done 2027IFS=$as_save_IFS 2028 2029 2030fi 2031 if test "${ac_cv_path_install+set}" = set; then 2032 INSTALL=$ac_cv_path_install 2033 else 2034 # As a last resort, use the slow shell script. Don't cache a 2035 # value for INSTALL within a source directory, because that will 2036 # break other packages using the cache if that directory is 2037 # removed, or if the value is a relative name. 2038 INSTALL=$ac_install_sh 2039 fi 2040fi 2041{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2042echo "${ECHO_T}$INSTALL" >&6; } 2043 2044# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2045# It thinks the first close brace ends the variable substitution. 2046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2047 2048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2049 2050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2051 2052{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2053echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2054# Just in case 2055sleep 1 2056echo timestamp > conftest.file 2057# Do `set' in a subshell so we don't clobber the current shell's 2058# arguments. Must try -L first in case configure is actually a 2059# symlink; some systems play weird games with the mod time of symlinks 2060# (eg FreeBSD returns the mod time of the symlink's containing 2061# directory). 2062if ( 2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2064 if test "$*" = "X"; then 2065 # -L didn't work. 2066 set X `ls -t $srcdir/configure conftest.file` 2067 fi 2068 rm -f conftest.file 2069 if test "$*" != "X $srcdir/configure conftest.file" \ 2070 && test "$*" != "X conftest.file $srcdir/configure"; then 2071 2072 # If neither matched, then we have a broken ls. This can happen 2073 # if, for instance, CONFIG_SHELL is bash and it inherits a 2074 # broken ls alias from the environment. This has actually 2075 # happened. Such a system could not be considered "sane". 2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2077alias in your environment" >&5 2078echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2079alias in your environment" >&2;} 2080 { (exit 1); exit 1; }; } 2081 fi 2082 2083 test "$2" = conftest.file 2084 ) 2085then 2086 # Ok. 2087 : 2088else 2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2090Check your system clock" >&5 2091echo "$as_me: error: newly created file is older than distributed files! 2092Check your system clock" >&2;} 2093 { (exit 1); exit 1; }; } 2094fi 2095{ echo "$as_me:$LINENO: result: yes" >&5 2096echo "${ECHO_T}yes" >&6; } 2097test "$program_prefix" != NONE && 2098 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2099# Use a double $ so make ignores it. 2100test "$program_suffix" != NONE && 2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2102# Double any \ or $. echo might interpret backslashes. 2103# By default was `s,x,x', remove it if useless. 2104cat <<\_ACEOF >conftest.sed 2105s/[\\$]/&&/g;s/;s,x,x,$// 2106_ACEOF 2107program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2108rm -f conftest.sed 2109 2110# expand $ac_aux_dir to an absolute path 2111am_aux_dir=`cd $ac_aux_dir && pwd` 2112 2113test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2114# Use eval to expand $SHELL 2115if eval "$MISSING --run true"; then 2116 am_missing_run="$MISSING --run " 2117else 2118 am_missing_run= 2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2120echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2121fi 2122 2123{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2124echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2125if test -z "$MKDIR_P"; then 2126 if test "${ac_cv_path_mkdir+set}" = set; then 2127 echo $ECHO_N "(cached) $ECHO_C" >&6 2128else 2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2130for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2131do 2132 IFS=$as_save_IFS 2133 test -z "$as_dir" && as_dir=. 2134 for ac_prog in mkdir gmkdir; do 2135 for ac_exec_ext in '' $ac_executable_extensions; do 2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2138 'mkdir (GNU coreutils) '* | \ 2139 'mkdir (coreutils) '* | \ 2140 'mkdir (fileutils) '4.1*) 2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2142 break 3;; 2143 esac 2144 done 2145 done 2146done 2147IFS=$as_save_IFS 2148 2149fi 2150 2151 if test "${ac_cv_path_mkdir+set}" = set; then 2152 MKDIR_P="$ac_cv_path_mkdir -p" 2153 else 2154 # As a last resort, use the slow shell script. Don't cache a 2155 # value for MKDIR_P within a source directory, because that will 2156 # break other packages using the cache if that directory is 2157 # removed, or if the value is a relative name. 2158 test -d ./--version && rmdir ./--version 2159 MKDIR_P="$ac_install_sh -d" 2160 fi 2161fi 2162{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2163echo "${ECHO_T}$MKDIR_P" >&6; } 2164 2165mkdir_p="$MKDIR_P" 2166case $mkdir_p in 2167 [\\/$]* | ?:[\\/]*) ;; 2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2169esac 2170 2171for ac_prog in gawk mawk nawk awk 2172do 2173 # Extract the first word of "$ac_prog", so it can be a program name with args. 2174set dummy $ac_prog; ac_word=$2 2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2177if test "${ac_cv_prog_AWK+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&6 2179else 2180 if test -n "$AWK"; then 2181 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2182else 2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2184for as_dir in $PATH 2185do 2186 IFS=$as_save_IFS 2187 test -z "$as_dir" && as_dir=. 2188 for ac_exec_ext in '' $ac_executable_extensions; do 2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2190 ac_cv_prog_AWK="$ac_prog" 2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2192 break 2 2193 fi 2194done 2195done 2196IFS=$as_save_IFS 2197 2198fi 2199fi 2200AWK=$ac_cv_prog_AWK 2201if test -n "$AWK"; then 2202 { echo "$as_me:$LINENO: result: $AWK" >&5 2203echo "${ECHO_T}$AWK" >&6; } 2204else 2205 { echo "$as_me:$LINENO: result: no" >&5 2206echo "${ECHO_T}no" >&6; } 2207fi 2208 2209 2210 test -n "$AWK" && break 2211done 2212 2213{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2214echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2215set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2216if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2217 echo $ECHO_N "(cached) $ECHO_C" >&6 2218else 2219 cat >conftest.make <<\_ACEOF 2220SHELL = /bin/sh 2221all: 2222 @echo '@@@%%%=$(MAKE)=@@@%%%' 2223_ACEOF 2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2225case `${MAKE-make} -f conftest.make 2>/dev/null` in 2226 *@@@%%%=?*=@@@%%%*) 2227 eval ac_cv_prog_make_${ac_make}_set=yes;; 2228 *) 2229 eval ac_cv_prog_make_${ac_make}_set=no;; 2230esac 2231rm -f conftest.make 2232fi 2233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2234 { echo "$as_me:$LINENO: result: yes" >&5 2235echo "${ECHO_T}yes" >&6; } 2236 SET_MAKE= 2237else 2238 { echo "$as_me:$LINENO: result: no" >&5 2239echo "${ECHO_T}no" >&6; } 2240 SET_MAKE="MAKE=${MAKE-make}" 2241fi 2242 2243rm -rf .tst 2>/dev/null 2244mkdir .tst 2>/dev/null 2245if test -d .tst; then 2246 am__leading_dot=. 2247else 2248 am__leading_dot=_ 2249fi 2250rmdir .tst 2>/dev/null 2251 2252if test "`cd $srcdir && pwd`" != "`pwd`"; then 2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2254 # is not polluted with repeated "-I." 2255 am__isrc=' -I$(srcdir)' 2256 # test to see if srcdir already configured 2257 if test -f $srcdir/config.status; then 2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2259echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2260 { (exit 1); exit 1; }; } 2261 fi 2262fi 2263 2264# test whether we have cygpath 2265if test -z "$CYGPATH_W"; then 2266 if (cygpath --version) >/dev/null 2>/dev/null; then 2267 CYGPATH_W='cygpath -w' 2268 else 2269 CYGPATH_W=echo 2270 fi 2271fi 2272 2273 2274# Define the identity of the package. 2275 PACKAGE='libdisasm' 2276 VERSION='0.23' 2277 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE "$PACKAGE" 2281_ACEOF 2282 2283 2284cat >>confdefs.h <<_ACEOF 2285#define VERSION "$VERSION" 2286_ACEOF 2287 2288# Some tools Automake needs. 2289 2290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2291 2292 2293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2294 2295 2296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2297 2298 2299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2300 2301 2302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2303 2304install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2305 2306# Installed binaries are usually stripped using `strip' when the user 2307# run `make install-strip'. However `strip' might not be the right 2308# tool to use in cross-compilation environments, therefore Automake 2309# will honor the `STRIP' environment variable to overrule this program. 2310if test "$cross_compiling" != no; then 2311 if test -n "$ac_tool_prefix"; then 2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2313set dummy ${ac_tool_prefix}strip; ac_word=$2 2314{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2316if test "${ac_cv_prog_STRIP+set}" = set; then 2317 echo $ECHO_N "(cached) $ECHO_C" >&6 2318else 2319 if test -n "$STRIP"; then 2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2321else 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 for ac_exec_ext in '' $ac_executable_extensions; do 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2331 break 2 2332 fi 2333done 2334done 2335IFS=$as_save_IFS 2336 2337fi 2338fi 2339STRIP=$ac_cv_prog_STRIP 2340if test -n "$STRIP"; then 2341 { echo "$as_me:$LINENO: result: $STRIP" >&5 2342echo "${ECHO_T}$STRIP" >&6; } 2343else 2344 { echo "$as_me:$LINENO: result: no" >&5 2345echo "${ECHO_T}no" >&6; } 2346fi 2347 2348 2349fi 2350if test -z "$ac_cv_prog_STRIP"; then 2351 ac_ct_STRIP=$STRIP 2352 # Extract the first word of "strip", so it can be a program name with args. 2353set dummy strip; ac_word=$2 2354{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 if test -n "$ac_ct_STRIP"; then 2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_ac_ct_STRIP="strip" 2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2380if test -n "$ac_ct_STRIP"; then 2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2382echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2383else 2384 { echo "$as_me:$LINENO: result: no" >&5 2385echo "${ECHO_T}no" >&6; } 2386fi 2387 2388 if test "x$ac_ct_STRIP" = x; then 2389 STRIP=":" 2390 else 2391 case $cross_compiling:$ac_tool_warned in 2392yes:) 2393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2394whose name does not start with the host triplet. If you think this 2395configuration is useful to you, please write to autoconf@gnu.org." >&5 2396echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2397whose name does not start with the host triplet. If you think this 2398configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2399ac_tool_warned=yes ;; 2400esac 2401 STRIP=$ac_ct_STRIP 2402 fi 2403else 2404 STRIP="$ac_cv_prog_STRIP" 2405fi 2406 2407fi 2408INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2409 2410# We need awk for the "check" target. The system "awk" is bad on 2411# some platforms. 2412# Always define AMTAR for backward compatibility. 2413 2414AMTAR=${AMTAR-"${am_missing_run}tar"} 2415 2416am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2417 2418 2419 2420 2421 2422 2423ac_config_headers="$ac_config_headers config.h" 2424 2425{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2426echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2427 # Check whether --enable-maintainer-mode was given. 2428if test "${enable_maintainer_mode+set}" = set; then 2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2430else 2431 USE_MAINTAINER_MODE=no 2432fi 2433 2434 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2435echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2436 if test $USE_MAINTAINER_MODE = yes; then 2437 MAINTAINER_MODE_TRUE= 2438 MAINTAINER_MODE_FALSE='#' 2439else 2440 MAINTAINER_MODE_TRUE='#' 2441 MAINTAINER_MODE_FALSE= 2442fi 2443 2444 MAINT=$MAINTAINER_MODE_TRUE 2445 2446 2447 2448# Make sure we can run config.sub. 2449$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2450 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2451echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2452 { (exit 1); exit 1; }; } 2453 2454{ echo "$as_me:$LINENO: checking build system type" >&5 2455echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2456if test "${ac_cv_build+set}" = set; then 2457 echo $ECHO_N "(cached) $ECHO_C" >&6 2458else 2459 ac_build_alias=$build_alias 2460test "x$ac_build_alias" = x && 2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2462test "x$ac_build_alias" = x && 2463 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2464echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2465 { (exit 1); exit 1; }; } 2466ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2467 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2468echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2469 { (exit 1); exit 1; }; } 2470 2471fi 2472{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2473echo "${ECHO_T}$ac_cv_build" >&6; } 2474case $ac_cv_build in 2475*-*-*) ;; 2476*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2477echo "$as_me: error: invalid value of canonical build" >&2;} 2478 { (exit 1); exit 1; }; };; 2479esac 2480build=$ac_cv_build 2481ac_save_IFS=$IFS; IFS='-' 2482set x $ac_cv_build 2483shift 2484build_cpu=$1 2485build_vendor=$2 2486shift; shift 2487# Remember, the first character of IFS is used to create $*, 2488# except with old shells: 2489build_os=$* 2490IFS=$ac_save_IFS 2491case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2492 2493 2494{ echo "$as_me:$LINENO: checking host system type" >&5 2495echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2496if test "${ac_cv_host+set}" = set; then 2497 echo $ECHO_N "(cached) $ECHO_C" >&6 2498else 2499 if test "x$host_alias" = x; then 2500 ac_cv_host=$ac_cv_build 2501else 2502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2503 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2504echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2505 { (exit 1); exit 1; }; } 2506fi 2507 2508fi 2509{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2510echo "${ECHO_T}$ac_cv_host" >&6; } 2511case $ac_cv_host in 2512*-*-*) ;; 2513*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2514echo "$as_me: error: invalid value of canonical host" >&2;} 2515 { (exit 1); exit 1; }; };; 2516esac 2517host=$ac_cv_host 2518ac_save_IFS=$IFS; IFS='-' 2519set x $ac_cv_host 2520shift 2521host_cpu=$1 2522host_vendor=$2 2523shift; shift 2524# Remember, the first character of IFS is used to create $*, 2525# except with old shells: 2526host_os=$* 2527IFS=$ac_save_IFS 2528case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2529 2530 2531DEPDIR="${am__leading_dot}deps" 2532 2533ac_config_commands="$ac_config_commands depfiles" 2534 2535 2536am_make=${MAKE-make} 2537cat > confinc << 'END' 2538am__doit: 2539 @echo done 2540.PHONY: am__doit 2541END 2542# If we don't find an include directive, just comment out the code. 2543{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2544echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2545am__include="#" 2546am__quote= 2547_am_result=none 2548# First try GNU make style include. 2549echo "include confinc" > confmf 2550# We grep out `Entering directory' and `Leaving directory' 2551# messages which can occur if `w' ends up in MAKEFLAGS. 2552# In particular we don't look at `^make:' because GNU make might 2553# be invoked under some other name (usually "gmake"), in which 2554# case it prints its new name instead of `make'. 2555if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2556 am__include=include 2557 am__quote= 2558 _am_result=GNU 2559fi 2560# Now try BSD make style include. 2561if test "$am__include" = "#"; then 2562 echo '.include "confinc"' > confmf 2563 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2564 am__include=.include 2565 am__quote="\"" 2566 _am_result=BSD 2567 fi 2568fi 2569 2570 2571{ echo "$as_me:$LINENO: result: $_am_result" >&5 2572echo "${ECHO_T}$_am_result" >&6; } 2573rm -f confinc confmf 2574 2575# Check whether --enable-dependency-tracking was given. 2576if test "${enable_dependency_tracking+set}" = set; then 2577 enableval=$enable_dependency_tracking; 2578fi 2579 2580if test "x$enable_dependency_tracking" != xno; then 2581 am_depcomp="$ac_aux_dir/depcomp" 2582 AMDEPBACKSLASH='\' 2583fi 2584 if test "x$enable_dependency_tracking" != xno; then 2585 AMDEP_TRUE= 2586 AMDEP_FALSE='#' 2587else 2588 AMDEP_TRUE='#' 2589 AMDEP_FALSE= 2590fi 2591 2592 2593ac_ext=c 2594ac_cpp='$CPP $CPPFLAGS' 2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2597ac_compiler_gnu=$ac_cv_c_compiler_gnu 2598if test -n "$ac_tool_prefix"; then 2599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2600set dummy ${ac_tool_prefix}gcc; ac_word=$2 2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2603if test "${ac_cv_prog_CC+set}" = set; then 2604 echo $ECHO_N "(cached) $ECHO_C" >&6 2605else 2606 if test -n "$CC"; then 2607 ac_cv_prog_CC="$CC" # Let the user override the test. 2608else 2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2610for as_dir in $PATH 2611do 2612 IFS=$as_save_IFS 2613 test -z "$as_dir" && as_dir=. 2614 for ac_exec_ext in '' $ac_executable_extensions; do 2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2616 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2618 break 2 2619 fi 2620done 2621done 2622IFS=$as_save_IFS 2623 2624fi 2625fi 2626CC=$ac_cv_prog_CC 2627if test -n "$CC"; then 2628 { echo "$as_me:$LINENO: result: $CC" >&5 2629echo "${ECHO_T}$CC" >&6; } 2630else 2631 { echo "$as_me:$LINENO: result: no" >&5 2632echo "${ECHO_T}no" >&6; } 2633fi 2634 2635 2636fi 2637if test -z "$ac_cv_prog_CC"; then 2638 ac_ct_CC=$CC 2639 # Extract the first word of "gcc", so it can be a program name with args. 2640set dummy gcc; ac_word=$2 2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2644 echo $ECHO_N "(cached) $ECHO_C" >&6 2645else 2646 if test -n "$ac_ct_CC"; then 2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2648else 2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650for as_dir in $PATH 2651do 2652 IFS=$as_save_IFS 2653 test -z "$as_dir" && as_dir=. 2654 for ac_exec_ext in '' $ac_executable_extensions; do 2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2656 ac_cv_prog_ac_ct_CC="gcc" 2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2658 break 2 2659 fi 2660done 2661done 2662IFS=$as_save_IFS 2663 2664fi 2665fi 2666ac_ct_CC=$ac_cv_prog_ac_ct_CC 2667if test -n "$ac_ct_CC"; then 2668 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2669echo "${ECHO_T}$ac_ct_CC" >&6; } 2670else 2671 { echo "$as_me:$LINENO: result: no" >&5 2672echo "${ECHO_T}no" >&6; } 2673fi 2674 2675 if test "x$ac_ct_CC" = x; then 2676 CC="" 2677 else 2678 case $cross_compiling:$ac_tool_warned in 2679yes:) 2680{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2681whose name does not start with the host triplet. If you think this 2682configuration is useful to you, please write to autoconf@gnu.org." >&5 2683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2684whose name does not start with the host triplet. If you think this 2685configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2686ac_tool_warned=yes ;; 2687esac 2688 CC=$ac_ct_CC 2689 fi 2690else 2691 CC="$ac_cv_prog_CC" 2692fi 2693 2694if test -z "$CC"; then 2695 if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}cc; ac_word=$2 2698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2700if test "${ac_cv_prog_CC+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2713 ac_cv_prog_CC="${ac_tool_prefix}cc" 2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723CC=$ac_cv_prog_CC 2724if test -n "$CC"; then 2725 { echo "$as_me:$LINENO: result: $CC" >&5 2726echo "${ECHO_T}$CC" >&6; } 2727else 2728 { echo "$as_me:$LINENO: result: no" >&5 2729echo "${ECHO_T}no" >&6; } 2730fi 2731 2732 2733 fi 2734fi 2735if test -z "$CC"; then 2736 # Extract the first word of "cc", so it can be a program name with args. 2737set dummy cc; ac_word=$2 2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2740if test "${ac_cv_prog_CC+set}" = set; then 2741 echo $ECHO_N "(cached) $ECHO_C" >&6 2742else 2743 if test -n "$CC"; then 2744 ac_cv_prog_CC="$CC" # Let the user override the test. 2745else 2746 ac_prog_rejected=no 2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748for as_dir in $PATH 2749do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2755 ac_prog_rejected=yes 2756 continue 2757 fi 2758 ac_cv_prog_CC="cc" 2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2760 break 2 2761 fi 2762done 2763done 2764IFS=$as_save_IFS 2765 2766if test $ac_prog_rejected = yes; then 2767 # We found a bogon in the path, so make sure we never use it. 2768 set dummy $ac_cv_prog_CC 2769 shift 2770 if test $# != 0; then 2771 # We chose a different compiler from the bogus one. 2772 # However, it has the same basename, so the bogon will be chosen 2773 # first if we set CC to just the basename; use the full file name. 2774 shift 2775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2776 fi 2777fi 2778fi 2779fi 2780CC=$ac_cv_prog_CC 2781if test -n "$CC"; then 2782 { echo "$as_me:$LINENO: result: $CC" >&5 2783echo "${ECHO_T}$CC" >&6; } 2784else 2785 { echo "$as_me:$LINENO: result: no" >&5 2786echo "${ECHO_T}no" >&6; } 2787fi 2788 2789 2790fi 2791if test -z "$CC"; then 2792 if test -n "$ac_tool_prefix"; then 2793 for ac_prog in cl.exe 2794 do 2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2796set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2797{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2799if test "${ac_cv_prog_CC+set}" = set; then 2800 echo $ECHO_N "(cached) $ECHO_C" >&6 2801else 2802 if test -n "$CC"; then 2803 ac_cv_prog_CC="$CC" # Let the user override the test. 2804else 2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806for as_dir in $PATH 2807do 2808 IFS=$as_save_IFS 2809 test -z "$as_dir" && as_dir=. 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2814 break 2 2815 fi 2816done 2817done 2818IFS=$as_save_IFS 2819 2820fi 2821fi 2822CC=$ac_cv_prog_CC 2823if test -n "$CC"; then 2824 { echo "$as_me:$LINENO: result: $CC" >&5 2825echo "${ECHO_T}$CC" >&6; } 2826else 2827 { echo "$as_me:$LINENO: result: no" >&5 2828echo "${ECHO_T}no" >&6; } 2829fi 2830 2831 2832 test -n "$CC" && break 2833 done 2834fi 2835if test -z "$CC"; then 2836 ac_ct_CC=$CC 2837 for ac_prog in cl.exe 2838do 2839 # Extract the first word of "$ac_prog", so it can be a program name with args. 2840set dummy $ac_prog; ac_word=$2 2841{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2843if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2844 echo $ECHO_N "(cached) $ECHO_C" >&6 2845else 2846 if test -n "$ac_ct_CC"; then 2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2848else 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2856 ac_cv_prog_ac_ct_CC="$ac_prog" 2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866ac_ct_CC=$ac_cv_prog_ac_ct_CC 2867if test -n "$ac_ct_CC"; then 2868 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2869echo "${ECHO_T}$ac_ct_CC" >&6; } 2870else 2871 { echo "$as_me:$LINENO: result: no" >&5 2872echo "${ECHO_T}no" >&6; } 2873fi 2874 2875 2876 test -n "$ac_ct_CC" && break 2877done 2878 2879 if test "x$ac_ct_CC" = x; then 2880 CC="" 2881 else 2882 case $cross_compiling:$ac_tool_warned in 2883yes:) 2884{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2885whose name does not start with the host triplet. If you think this 2886configuration is useful to you, please write to autoconf@gnu.org." >&5 2887echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2888whose name does not start with the host triplet. If you think this 2889configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2890ac_tool_warned=yes ;; 2891esac 2892 CC=$ac_ct_CC 2893 fi 2894fi 2895 2896fi 2897 2898 2899test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2900See \`config.log' for more details." >&5 2901echo "$as_me: error: no acceptable C compiler found in \$PATH 2902See \`config.log' for more details." >&2;} 2903 { (exit 1); exit 1; }; } 2904 2905# Provide some information about the compiler. 2906echo "$as_me:$LINENO: checking for C compiler version" >&5 2907ac_compiler=`set X $ac_compile; echo $2` 2908{ (ac_try="$ac_compiler --version >&5" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compiler --version >&5") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918{ (ac_try="$ac_compiler -v >&5" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_compiler -v >&5") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); } 2928{ (ac_try="$ac_compiler -V >&5" 2929case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932esac 2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2934 (eval "$ac_compiler -V >&5") 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } 2938 2939cat >conftest.$ac_ext <<_ACEOF 2940/* confdefs.h. */ 2941_ACEOF 2942cat confdefs.h >>conftest.$ac_ext 2943cat >>conftest.$ac_ext <<_ACEOF 2944/* end confdefs.h. */ 2945 2946int 2947main () 2948{ 2949 2950 ; 2951 return 0; 2952} 2953_ACEOF 2954ac_clean_files_save=$ac_clean_files 2955ac_clean_files="$ac_clean_files a.out a.exe b.out" 2956# Try to create an executable without -o first, disregard a.out. 2957# It will help us diagnose broken compilers, and finding out an intuition 2958# of exeext. 2959{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2960echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2961ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2962# 2963# List of possible output files, starting from the most likely. 2964# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2965# only as a last resort. b.out is created by i960 compilers. 2966ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2967# 2968# The IRIX 6 linker writes into existing files which may not be 2969# executable, retaining their permissions. Remove them first so a 2970# subsequent execution test works. 2971ac_rmfiles= 2972for ac_file in $ac_files 2973do 2974 case $ac_file in 2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2976 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2977 esac 2978done 2979rm -f $ac_rmfiles 2980 2981if { (ac_try="$ac_link_default" 2982case "(($ac_try" in 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2984 *) ac_try_echo=$ac_try;; 2985esac 2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2987 (eval "$ac_link_default") 2>&5 2988 ac_status=$? 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); }; then 2991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2992# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2993# in a Makefile. We should not override ac_cv_exeext if it was cached, 2994# so that the user can short-circuit this test for compilers unknown to 2995# Autoconf. 2996for ac_file in $ac_files '' 2997do 2998 test -f "$ac_file" || continue 2999 case $ac_file in 3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3001 ;; 3002 [ab].out ) 3003 # We found the default executable, but exeext='' is most 3004 # certainly right. 3005 break;; 3006 *.* ) 3007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3008 then :; else 3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3010 fi 3011 # We set ac_cv_exeext here because the later test for it is not 3012 # safe: cross compilers may not add the suffix if given an `-o' 3013 # argument, so we may need to know it at that point already. 3014 # Even if this section looks crufty: it has the advantage of 3015 # actually working. 3016 break;; 3017 * ) 3018 break;; 3019 esac 3020done 3021test "$ac_cv_exeext" = no && ac_cv_exeext= 3022 3023else 3024 ac_file='' 3025fi 3026 3027{ echo "$as_me:$LINENO: result: $ac_file" >&5 3028echo "${ECHO_T}$ac_file" >&6; } 3029if test -z "$ac_file"; then 3030 echo "$as_me: failed program was:" >&5 3031sed 's/^/| /' conftest.$ac_ext >&5 3032 3033{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3034See \`config.log' for more details." >&5 3035echo "$as_me: error: C compiler cannot create executables 3036See \`config.log' for more details." >&2;} 3037 { (exit 77); exit 77; }; } 3038fi 3039 3040ac_exeext=$ac_cv_exeext 3041 3042# Check that the compiler produces executables we can run. If not, either 3043# the compiler is broken, or we cross compile. 3044{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3045echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3046# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3047# If not cross compiling, check that we can run a simple program. 3048if test "$cross_compiling" != yes; then 3049 if { ac_try='./$ac_file' 3050 { (case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053esac 3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3055 (eval "$ac_try") 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); }; }; then 3059 cross_compiling=no 3060 else 3061 if test "$cross_compiling" = maybe; then 3062 cross_compiling=yes 3063 else 3064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3065If you meant to cross compile, use \`--host'. 3066See \`config.log' for more details." >&5 3067echo "$as_me: error: cannot run C compiled programs. 3068If you meant to cross compile, use \`--host'. 3069See \`config.log' for more details." >&2;} 3070 { (exit 1); exit 1; }; } 3071 fi 3072 fi 3073fi 3074{ echo "$as_me:$LINENO: result: yes" >&5 3075echo "${ECHO_T}yes" >&6; } 3076 3077rm -f a.out a.exe conftest$ac_cv_exeext b.out 3078ac_clean_files=$ac_clean_files_save 3079# Check that the compiler produces executables we can run. If not, either 3080# the compiler is broken, or we cross compile. 3081{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3082echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3083{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3084echo "${ECHO_T}$cross_compiling" >&6; } 3085 3086{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3087echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3088if { (ac_try="$ac_link" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3094 (eval "$ac_link") 2>&5 3095 ac_status=$? 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); }; then 3098 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3099# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3100# work properly (i.e., refer to `conftest.exe'), while it won't with 3101# `rm'. 3102for ac_file in conftest.exe conftest conftest.*; do 3103 test -f "$ac_file" || continue 3104 case $ac_file in 3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3106 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3107 break;; 3108 * ) break;; 3109 esac 3110done 3111else 3112 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3113See \`config.log' for more details." >&5 3114echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3115See \`config.log' for more details." >&2;} 3116 { (exit 1); exit 1; }; } 3117fi 3118 3119rm -f conftest$ac_cv_exeext 3120{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3121echo "${ECHO_T}$ac_cv_exeext" >&6; } 3122 3123rm -f conftest.$ac_ext 3124EXEEXT=$ac_cv_exeext 3125ac_exeext=$EXEEXT 3126{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3127echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3128if test "${ac_cv_objext+set}" = set; then 3129 echo $ECHO_N "(cached) $ECHO_C" >&6 3130else 3131 cat >conftest.$ac_ext <<_ACEOF 3132/* confdefs.h. */ 3133_ACEOF 3134cat confdefs.h >>conftest.$ac_ext 3135cat >>conftest.$ac_ext <<_ACEOF 3136/* end confdefs.h. */ 3137 3138int 3139main () 3140{ 3141 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146rm -f conftest.o conftest.obj 3147if { (ac_try="$ac_compile" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3153 (eval "$ac_compile") 2>&5 3154 ac_status=$? 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); }; then 3157 for ac_file in conftest.o conftest.obj conftest.*; do 3158 test -f "$ac_file" || continue; 3159 case $ac_file in 3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3162 break;; 3163 esac 3164done 3165else 3166 echo "$as_me: failed program was:" >&5 3167sed 's/^/| /' conftest.$ac_ext >&5 3168 3169{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3170See \`config.log' for more details." >&5 3171echo "$as_me: error: cannot compute suffix of object files: cannot compile 3172See \`config.log' for more details." >&2;} 3173 { (exit 1); exit 1; }; } 3174fi 3175 3176rm -f conftest.$ac_cv_objext conftest.$ac_ext 3177fi 3178{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3179echo "${ECHO_T}$ac_cv_objext" >&6; } 3180OBJEXT=$ac_cv_objext 3181ac_objext=$OBJEXT 3182{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3183echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3184if test "${ac_cv_c_compiler_gnu+set}" = set; then 3185 echo $ECHO_N "(cached) $ECHO_C" >&6 3186else 3187 cat >conftest.$ac_ext <<_ACEOF 3188/* confdefs.h. */ 3189_ACEOF 3190cat confdefs.h >>conftest.$ac_ext 3191cat >>conftest.$ac_ext <<_ACEOF 3192/* end confdefs.h. */ 3193 3194int 3195main () 3196{ 3197#ifndef __GNUC__ 3198 choke me 3199#endif 3200 3201 ; 3202 return 0; 3203} 3204_ACEOF 3205rm -f conftest.$ac_objext 3206if { (ac_try="$ac_compile" 3207case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210esac 3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3212 (eval "$ac_compile") 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } && { 3219 test -z "$ac_c_werror_flag" || 3220 test ! -s conftest.err 3221 } && test -s conftest.$ac_objext; then 3222 ac_compiler_gnu=yes 3223else 3224 echo "$as_me: failed program was:" >&5 3225sed 's/^/| /' conftest.$ac_ext >&5 3226 3227 ac_compiler_gnu=no 3228fi 3229 3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3231ac_cv_c_compiler_gnu=$ac_compiler_gnu 3232 3233fi 3234{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3235echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3236GCC=`test $ac_compiler_gnu = yes && echo yes` 3237ac_test_CFLAGS=${CFLAGS+set} 3238ac_save_CFLAGS=$CFLAGS 3239{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3240echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3241if test "${ac_cv_prog_cc_g+set}" = set; then 3242 echo $ECHO_N "(cached) $ECHO_C" >&6 3243else 3244 ac_save_c_werror_flag=$ac_c_werror_flag 3245 ac_c_werror_flag=yes 3246 ac_cv_prog_cc_g=no 3247 CFLAGS="-g" 3248 cat >conftest.$ac_ext <<_ACEOF 3249/* confdefs.h. */ 3250_ACEOF 3251cat confdefs.h >>conftest.$ac_ext 3252cat >>conftest.$ac_ext <<_ACEOF 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263rm -f conftest.$ac_objext 3264if { (ac_try="$ac_compile" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3270 (eval "$ac_compile") 2>conftest.er1 3271 ac_status=$? 3272 grep -v '^ *+' conftest.er1 >conftest.err 3273 rm -f conftest.er1 3274 cat conftest.err >&5 3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3276 (exit $ac_status); } && { 3277 test -z "$ac_c_werror_flag" || 3278 test ! -s conftest.err 3279 } && test -s conftest.$ac_objext; then 3280 ac_cv_prog_cc_g=yes 3281else 3282 echo "$as_me: failed program was:" >&5 3283sed 's/^/| /' conftest.$ac_ext >&5 3284 3285 CFLAGS="" 3286 cat >conftest.$ac_ext <<_ACEOF 3287/* confdefs.h. */ 3288_ACEOF 3289cat confdefs.h >>conftest.$ac_ext 3290cat >>conftest.$ac_ext <<_ACEOF 3291/* end confdefs.h. */ 3292 3293int 3294main () 3295{ 3296 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301rm -f conftest.$ac_objext 3302if { (ac_try="$ac_compile" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3308 (eval "$ac_compile") 2>conftest.er1 3309 ac_status=$? 3310 grep -v '^ *+' conftest.er1 >conftest.err 3311 rm -f conftest.er1 3312 cat conftest.err >&5 3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3314 (exit $ac_status); } && { 3315 test -z "$ac_c_werror_flag" || 3316 test ! -s conftest.err 3317 } && test -s conftest.$ac_objext; then 3318 : 3319else 3320 echo "$as_me: failed program was:" >&5 3321sed 's/^/| /' conftest.$ac_ext >&5 3322 3323 ac_c_werror_flag=$ac_save_c_werror_flag 3324 CFLAGS="-g" 3325 cat >conftest.$ac_ext <<_ACEOF 3326/* confdefs.h. */ 3327_ACEOF 3328cat confdefs.h >>conftest.$ac_ext 3329cat >>conftest.$ac_ext <<_ACEOF 3330/* end confdefs.h. */ 3331 3332int 3333main () 3334{ 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340rm -f conftest.$ac_objext 3341if { (ac_try="$ac_compile" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3347 (eval "$ac_compile") 2>conftest.er1 3348 ac_status=$? 3349 grep -v '^ *+' conftest.er1 >conftest.err 3350 rm -f conftest.er1 3351 cat conftest.err >&5 3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3353 (exit $ac_status); } && { 3354 test -z "$ac_c_werror_flag" || 3355 test ! -s conftest.err 3356 } && test -s conftest.$ac_objext; then 3357 ac_cv_prog_cc_g=yes 3358else 3359 echo "$as_me: failed program was:" >&5 3360sed 's/^/| /' conftest.$ac_ext >&5 3361 3362 3363fi 3364 3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3366fi 3367 3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3369fi 3370 3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3372 ac_c_werror_flag=$ac_save_c_werror_flag 3373fi 3374{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3375echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3376if test "$ac_test_CFLAGS" = set; then 3377 CFLAGS=$ac_save_CFLAGS 3378elif test $ac_cv_prog_cc_g = yes; then 3379 if test "$GCC" = yes; then 3380 CFLAGS="-g -O2" 3381 else 3382 CFLAGS="-g" 3383 fi 3384else 3385 if test "$GCC" = yes; then 3386 CFLAGS="-O2" 3387 else 3388 CFLAGS= 3389 fi 3390fi 3391{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3392echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3393if test "${ac_cv_prog_cc_c89+set}" = set; then 3394 echo $ECHO_N "(cached) $ECHO_C" >&6 3395else 3396 ac_cv_prog_cc_c89=no 3397ac_save_CC=$CC 3398cat >conftest.$ac_ext <<_ACEOF 3399/* confdefs.h. */ 3400_ACEOF 3401cat confdefs.h >>conftest.$ac_ext 3402cat >>conftest.$ac_ext <<_ACEOF 3403/* end confdefs.h. */ 3404#include <stdarg.h> 3405#include <stdio.h> 3406#include <sys/types.h> 3407#include <sys/stat.h> 3408/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3409struct buf { int x; }; 3410FILE * (*rcsopen) (struct buf *, struct stat *, int); 3411static char *e (p, i) 3412 char **p; 3413 int i; 3414{ 3415 return p[i]; 3416} 3417static char *f (char * (*g) (char **, int), char **p, ...) 3418{ 3419 char *s; 3420 va_list v; 3421 va_start (v,p); 3422 s = g (p, va_arg (v,int)); 3423 va_end (v); 3424 return s; 3425} 3426 3427/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3428 function prototypes and stuff, but not '\xHH' hex character constants. 3429 These don't provoke an error unfortunately, instead are silently treated 3430 as 'x'. The following induces an error, until -std is added to get 3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3432 array size at least. It's necessary to write '\x00'==0 to get something 3433 that's true only with -std. */ 3434int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3435 3436/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3437 inside strings and character constants. */ 3438#define FOO(x) 'x' 3439int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3440 3441int test (int i, double x); 3442struct s1 {int (*f) (int a);}; 3443struct s2 {int (*f) (double a);}; 3444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3445int argc; 3446char **argv; 3447int 3448main () 3449{ 3450return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3457do 3458 CC="$ac_save_CC $ac_arg" 3459 rm -f conftest.$ac_objext 3460if { (ac_try="$ac_compile" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3466 (eval "$ac_compile") 2>conftest.er1 3467 ac_status=$? 3468 grep -v '^ *+' conftest.er1 >conftest.err 3469 rm -f conftest.er1 3470 cat conftest.err >&5 3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472 (exit $ac_status); } && { 3473 test -z "$ac_c_werror_flag" || 3474 test ! -s conftest.err 3475 } && test -s conftest.$ac_objext; then 3476 ac_cv_prog_cc_c89=$ac_arg 3477else 3478 echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481 3482fi 3483 3484rm -f core conftest.err conftest.$ac_objext 3485 test "x$ac_cv_prog_cc_c89" != "xno" && break 3486done 3487rm -f conftest.$ac_ext 3488CC=$ac_save_CC 3489 3490fi 3491# AC_CACHE_VAL 3492case "x$ac_cv_prog_cc_c89" in 3493 x) 3494 { echo "$as_me:$LINENO: result: none needed" >&5 3495echo "${ECHO_T}none needed" >&6; } ;; 3496 xno) 3497 { echo "$as_me:$LINENO: result: unsupported" >&5 3498echo "${ECHO_T}unsupported" >&6; } ;; 3499 *) 3500 CC="$CC $ac_cv_prog_cc_c89" 3501 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3502echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3503esac 3504 3505 3506ac_ext=c 3507ac_cpp='$CPP $CPPFLAGS' 3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3510ac_compiler_gnu=$ac_cv_c_compiler_gnu 3511 3512depcc="$CC" am_compiler_list= 3513 3514{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3515echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3516if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3517 echo $ECHO_N "(cached) $ECHO_C" >&6 3518else 3519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3520 # We make a subdir and do the tests there. Otherwise we can end up 3521 # making bogus files that we don't know about and never remove. For 3522 # instance it was reported that on HP-UX the gcc test will end up 3523 # making a dummy file named `D' -- because `-MD' means `put the output 3524 # in D'. 3525 mkdir conftest.dir 3526 # Copy depcomp to subdir because otherwise we won't find it if we're 3527 # using a relative directory. 3528 cp "$am_depcomp" conftest.dir 3529 cd conftest.dir 3530 # We will build objects and dependencies in a subdirectory because 3531 # it helps to detect inapplicable dependency modes. For instance 3532 # both Tru64's cc and ICC support -MD to output dependencies as a 3533 # side effect of compilation, but ICC will put the dependencies in 3534 # the current directory while Tru64 will put them in the object 3535 # directory. 3536 mkdir sub 3537 3538 am_cv_CC_dependencies_compiler_type=none 3539 if test "$am_compiler_list" = ""; then 3540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3541 fi 3542 for depmode in $am_compiler_list; do 3543 # Setup a source with many dependencies, because some compilers 3544 # like to wrap large dependency lists on column 80 (with \), and 3545 # we should not choose a depcomp mode which is confused by this. 3546 # 3547 # We need to recreate these files for each test, as the compiler may 3548 # overwrite some of them when testing with obscure command lines. 3549 # This happens at least with the AIX C compiler. 3550 : > sub/conftest.c 3551 for i in 1 2 3 4 5 6; do 3552 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3554 # Solaris 8's {/usr,}/bin/sh. 3555 touch sub/conftst$i.h 3556 done 3557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3558 3559 case $depmode in 3560 nosideeffect) 3561 # after this tag, mechanisms are not by side-effect, so they'll 3562 # only be used when explicitly requested 3563 if test "x$enable_dependency_tracking" = xyes; then 3564 continue 3565 else 3566 break 3567 fi 3568 ;; 3569 none) break ;; 3570 esac 3571 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3572 # mode. It turns out that the SunPro C++ compiler does not properly 3573 # handle `-M -o', and we need to detect this. 3574 if depmode=$depmode \ 3575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3578 >/dev/null 2>conftest.err && 3579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3581 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3583 # icc doesn't choke on unknown options, it will just issue warnings 3584 # or remarks (even with -Werror). So we grep stderr for any message 3585 # that says an option was ignored or not supported. 3586 # When given -MP, icc 7.0 and 7.1 complain thusly: 3587 # icc: Command line warning: ignoring option '-M'; no argument required 3588 # The diagnosis changed in icc 8.0: 3589 # icc: Command line remark: option '-MP' not supported 3590 if (grep 'ignoring option' conftest.err || 3591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3592 am_cv_CC_dependencies_compiler_type=$depmode 3593 break 3594 fi 3595 fi 3596 done 3597 3598 cd .. 3599 rm -rf conftest.dir 3600else 3601 am_cv_CC_dependencies_compiler_type=none 3602fi 3603 3604fi 3605{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3606echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3607CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3608 3609 if 3610 test "x$enable_dependency_tracking" != xno \ 3611 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3612 am__fastdepCC_TRUE= 3613 am__fastdepCC_FALSE='#' 3614else 3615 am__fastdepCC_TRUE='#' 3616 am__fastdepCC_FALSE= 3617fi 3618 3619 3620 3621{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3622echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3623if test "${ac_cv_search_strerror+set}" = set; then 3624 echo $ECHO_N "(cached) $ECHO_C" >&6 3625else 3626 ac_func_search_save_LIBS=$LIBS 3627cat >conftest.$ac_ext <<_ACEOF 3628/* confdefs.h. */ 3629_ACEOF 3630cat confdefs.h >>conftest.$ac_ext 3631cat >>conftest.$ac_ext <<_ACEOF 3632/* end confdefs.h. */ 3633 3634/* Override any GCC internal prototype to avoid an error. 3635 Use char because int might match the return type of a GCC 3636 builtin and then its argument prototype would still apply. */ 3637#ifdef __cplusplus 3638extern "C" 3639#endif 3640char strerror (); 3641int 3642main () 3643{ 3644return strerror (); 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649for ac_lib in '' cposix; do 3650 if test -z "$ac_lib"; then 3651 ac_res="none required" 3652 else 3653 ac_res=-l$ac_lib 3654 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3655 fi 3656 rm -f conftest.$ac_objext conftest$ac_exeext 3657if { (ac_try="$ac_link" 3658case "(($ac_try" in 3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3660 *) ac_try_echo=$ac_try;; 3661esac 3662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3663 (eval "$ac_link") 2>conftest.er1 3664 ac_status=$? 3665 grep -v '^ *+' conftest.er1 >conftest.err 3666 rm -f conftest.er1 3667 cat conftest.err >&5 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); } && { 3670 test -z "$ac_c_werror_flag" || 3671 test ! -s conftest.err 3672 } && test -s conftest$ac_exeext && 3673 $as_test_x conftest$ac_exeext; then 3674 ac_cv_search_strerror=$ac_res 3675else 3676 echo "$as_me: failed program was:" >&5 3677sed 's/^/| /' conftest.$ac_ext >&5 3678 3679 3680fi 3681 3682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3683 conftest$ac_exeext 3684 if test "${ac_cv_search_strerror+set}" = set; then 3685 break 3686fi 3687done 3688if test "${ac_cv_search_strerror+set}" = set; then 3689 : 3690else 3691 ac_cv_search_strerror=no 3692fi 3693rm conftest.$ac_ext 3694LIBS=$ac_func_search_save_LIBS 3695fi 3696{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3697echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3698ac_res=$ac_cv_search_strerror 3699if test "$ac_res" != no; then 3700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3701 3702fi 3703 3704ac_ext=c 3705ac_cpp='$CPP $CPPFLAGS' 3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708ac_compiler_gnu=$ac_cv_c_compiler_gnu 3709if test -n "$ac_tool_prefix"; then 3710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3711set dummy ${ac_tool_prefix}gcc; ac_word=$2 3712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3714if test "${ac_cv_prog_CC+set}" = set; then 3715 echo $ECHO_N "(cached) $ECHO_C" >&6 3716else 3717 if test -n "$CC"; then 3718 ac_cv_prog_CC="$CC" # Let the user override the test. 3719else 3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 test -z "$as_dir" && as_dir=. 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3727 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731done 3732done 3733IFS=$as_save_IFS 3734 3735fi 3736fi 3737CC=$ac_cv_prog_CC 3738if test -n "$CC"; then 3739 { echo "$as_me:$LINENO: result: $CC" >&5 3740echo "${ECHO_T}$CC" >&6; } 3741else 3742 { echo "$as_me:$LINENO: result: no" >&5 3743echo "${ECHO_T}no" >&6; } 3744fi 3745 3746 3747fi 3748if test -z "$ac_cv_prog_CC"; then 3749 ac_ct_CC=$CC 3750 # Extract the first word of "gcc", so it can be a program name with args. 3751set dummy gcc; ac_word=$2 3752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756else 3757 if test -n "$ac_ct_CC"; then 3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3759else 3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3761for as_dir in $PATH 3762do 3763 IFS=$as_save_IFS 3764 test -z "$as_dir" && as_dir=. 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3767 ac_cv_prog_ac_ct_CC="gcc" 3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3769 break 2 3770 fi 3771done 3772done 3773IFS=$as_save_IFS 3774 3775fi 3776fi 3777ac_ct_CC=$ac_cv_prog_ac_ct_CC 3778if test -n "$ac_ct_CC"; then 3779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3780echo "${ECHO_T}$ac_ct_CC" >&6; } 3781else 3782 { echo "$as_me:$LINENO: result: no" >&5 3783echo "${ECHO_T}no" >&6; } 3784fi 3785 3786 if test "x$ac_ct_CC" = x; then 3787 CC="" 3788 else 3789 case $cross_compiling:$ac_tool_warned in 3790yes:) 3791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3792whose name does not start with the host triplet. If you think this 3793configuration is useful to you, please write to autoconf@gnu.org." >&5 3794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3795whose name does not start with the host triplet. If you think this 3796configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3797ac_tool_warned=yes ;; 3798esac 3799 CC=$ac_ct_CC 3800 fi 3801else 3802 CC="$ac_cv_prog_CC" 3803fi 3804 3805if test -z "$CC"; then 3806 if test -n "$ac_tool_prefix"; then 3807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3808set dummy ${ac_tool_prefix}cc; ac_word=$2 3809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3811if test "${ac_cv_prog_CC+set}" = set; then 3812 echo $ECHO_N "(cached) $ECHO_C" >&6 3813else 3814 if test -n "$CC"; then 3815 ac_cv_prog_CC="$CC" # Let the user override the test. 3816else 3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818for as_dir in $PATH 3819do 3820 IFS=$as_save_IFS 3821 test -z "$as_dir" && as_dir=. 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3824 ac_cv_prog_CC="${ac_tool_prefix}cc" 3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3826 break 2 3827 fi 3828done 3829done 3830IFS=$as_save_IFS 3831 3832fi 3833fi 3834CC=$ac_cv_prog_CC 3835if test -n "$CC"; then 3836 { echo "$as_me:$LINENO: result: $CC" >&5 3837echo "${ECHO_T}$CC" >&6; } 3838else 3839 { echo "$as_me:$LINENO: result: no" >&5 3840echo "${ECHO_T}no" >&6; } 3841fi 3842 3843 3844 fi 3845fi 3846if test -z "$CC"; then 3847 # Extract the first word of "cc", so it can be a program name with args. 3848set dummy cc; ac_word=$2 3849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3851if test "${ac_cv_prog_CC+set}" = set; then 3852 echo $ECHO_N "(cached) $ECHO_C" >&6 3853else 3854 if test -n "$CC"; then 3855 ac_cv_prog_CC="$CC" # Let the user override the test. 3856else 3857 ac_prog_rejected=no 3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3859for as_dir in $PATH 3860do 3861 IFS=$as_save_IFS 3862 test -z "$as_dir" && as_dir=. 3863 for ac_exec_ext in '' $ac_executable_extensions; do 3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3866 ac_prog_rejected=yes 3867 continue 3868 fi 3869 ac_cv_prog_CC="cc" 3870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3871 break 2 3872 fi 3873done 3874done 3875IFS=$as_save_IFS 3876 3877if test $ac_prog_rejected = yes; then 3878 # We found a bogon in the path, so make sure we never use it. 3879 set dummy $ac_cv_prog_CC 3880 shift 3881 if test $# != 0; then 3882 # We chose a different compiler from the bogus one. 3883 # However, it has the same basename, so the bogon will be chosen 3884 # first if we set CC to just the basename; use the full file name. 3885 shift 3886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3887 fi 3888fi 3889fi 3890fi 3891CC=$ac_cv_prog_CC 3892if test -n "$CC"; then 3893 { echo "$as_me:$LINENO: result: $CC" >&5 3894echo "${ECHO_T}$CC" >&6; } 3895else 3896 { echo "$as_me:$LINENO: result: no" >&5 3897echo "${ECHO_T}no" >&6; } 3898fi 3899 3900 3901fi 3902if test -z "$CC"; then 3903 if test -n "$ac_tool_prefix"; then 3904 for ac_prog in cl.exe 3905 do 3906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3908{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3910if test "${ac_cv_prog_CC+set}" = set; then 3911 echo $ECHO_N "(cached) $ECHO_C" >&6 3912else 3913 if test -n "$CC"; then 3914 ac_cv_prog_CC="$CC" # Let the user override the test. 3915else 3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3917for as_dir in $PATH 3918do 3919 IFS=$as_save_IFS 3920 test -z "$as_dir" && as_dir=. 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3925 break 2 3926 fi 3927done 3928done 3929IFS=$as_save_IFS 3930 3931fi 3932fi 3933CC=$ac_cv_prog_CC 3934if test -n "$CC"; then 3935 { echo "$as_me:$LINENO: result: $CC" >&5 3936echo "${ECHO_T}$CC" >&6; } 3937else 3938 { echo "$as_me:$LINENO: result: no" >&5 3939echo "${ECHO_T}no" >&6; } 3940fi 3941 3942 3943 test -n "$CC" && break 3944 done 3945fi 3946if test -z "$CC"; then 3947 ac_ct_CC=$CC 3948 for ac_prog in cl.exe 3949do 3950 # Extract the first word of "$ac_prog", so it can be a program name with args. 3951set dummy $ac_prog; ac_word=$2 3952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3955 echo $ECHO_N "(cached) $ECHO_C" >&6 3956else 3957 if test -n "$ac_ct_CC"; then 3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3959else 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3967 ac_cv_prog_ac_ct_CC="$ac_prog" 3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3969 break 2 3970 fi 3971done 3972done 3973IFS=$as_save_IFS 3974 3975fi 3976fi 3977ac_ct_CC=$ac_cv_prog_ac_ct_CC 3978if test -n "$ac_ct_CC"; then 3979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3980echo "${ECHO_T}$ac_ct_CC" >&6; } 3981else 3982 { echo "$as_me:$LINENO: result: no" >&5 3983echo "${ECHO_T}no" >&6; } 3984fi 3985 3986 3987 test -n "$ac_ct_CC" && break 3988done 3989 3990 if test "x$ac_ct_CC" = x; then 3991 CC="" 3992 else 3993 case $cross_compiling:$ac_tool_warned in 3994yes:) 3995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3996whose name does not start with the host triplet. If you think this 3997configuration is useful to you, please write to autoconf@gnu.org." >&5 3998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3999whose name does not start with the host triplet. If you think this 4000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4001ac_tool_warned=yes ;; 4002esac 4003 CC=$ac_ct_CC 4004 fi 4005fi 4006 4007fi 4008 4009 4010test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4011See \`config.log' for more details." >&5 4012echo "$as_me: error: no acceptable C compiler found in \$PATH 4013See \`config.log' for more details." >&2;} 4014 { (exit 1); exit 1; }; } 4015 4016# Provide some information about the compiler. 4017echo "$as_me:$LINENO: checking for C compiler version" >&5 4018ac_compiler=`set X $ac_compile; echo $2` 4019{ (ac_try="$ac_compiler --version >&5" 4020case "(($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_compiler --version >&5") 2>&5 4026 ac_status=$? 4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028 (exit $ac_status); } 4029{ (ac_try="$ac_compiler -v >&5" 4030case "(($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_compiler -v >&5") 2>&5 4036 ac_status=$? 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4038 (exit $ac_status); } 4039{ (ac_try="$ac_compiler -V >&5" 4040case "(($ac_try" in 4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4042 *) ac_try_echo=$ac_try;; 4043esac 4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4045 (eval "$ac_compiler -V >&5") 2>&5 4046 ac_status=$? 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); } 4049 4050{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4051echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4052if test "${ac_cv_c_compiler_gnu+set}" = set; then 4053 echo $ECHO_N "(cached) $ECHO_C" >&6 4054else 4055 cat >conftest.$ac_ext <<_ACEOF 4056/* confdefs.h. */ 4057_ACEOF 4058cat confdefs.h >>conftest.$ac_ext 4059cat >>conftest.$ac_ext <<_ACEOF 4060/* end confdefs.h. */ 4061 4062int 4063main () 4064{ 4065#ifndef __GNUC__ 4066 choke me 4067#endif 4068 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073rm -f conftest.$ac_objext 4074if { (ac_try="$ac_compile" 4075case "(($ac_try" in 4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4077 *) ac_try_echo=$ac_try;; 4078esac 4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4080 (eval "$ac_compile") 2>conftest.er1 4081 ac_status=$? 4082 grep -v '^ *+' conftest.er1 >conftest.err 4083 rm -f conftest.er1 4084 cat conftest.err >&5 4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4086 (exit $ac_status); } && { 4087 test -z "$ac_c_werror_flag" || 4088 test ! -s conftest.err 4089 } && test -s conftest.$ac_objext; then 4090 ac_compiler_gnu=yes 4091else 4092 echo "$as_me: failed program was:" >&5 4093sed 's/^/| /' conftest.$ac_ext >&5 4094 4095 ac_compiler_gnu=no 4096fi 4097 4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4099ac_cv_c_compiler_gnu=$ac_compiler_gnu 4100 4101fi 4102{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4103echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4104GCC=`test $ac_compiler_gnu = yes && echo yes` 4105ac_test_CFLAGS=${CFLAGS+set} 4106ac_save_CFLAGS=$CFLAGS 4107{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4108echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4109if test "${ac_cv_prog_cc_g+set}" = set; then 4110 echo $ECHO_N "(cached) $ECHO_C" >&6 4111else 4112 ac_save_c_werror_flag=$ac_c_werror_flag 4113 ac_c_werror_flag=yes 4114 ac_cv_prog_cc_g=no 4115 CFLAGS="-g" 4116 cat >conftest.$ac_ext <<_ACEOF 4117/* confdefs.h. */ 4118_ACEOF 4119cat confdefs.h >>conftest.$ac_ext 4120cat >>conftest.$ac_ext <<_ACEOF 4121/* end confdefs.h. */ 4122 4123int 4124main () 4125{ 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131rm -f conftest.$ac_objext 4132if { (ac_try="$ac_compile" 4133case "(($ac_try" in 4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4135 *) ac_try_echo=$ac_try;; 4136esac 4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4138 (eval "$ac_compile") 2>conftest.er1 4139 ac_status=$? 4140 grep -v '^ *+' conftest.er1 >conftest.err 4141 rm -f conftest.er1 4142 cat conftest.err >&5 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4144 (exit $ac_status); } && { 4145 test -z "$ac_c_werror_flag" || 4146 test ! -s conftest.err 4147 } && test -s conftest.$ac_objext; then 4148 ac_cv_prog_cc_g=yes 4149else 4150 echo "$as_me: failed program was:" >&5 4151sed 's/^/| /' conftest.$ac_ext >&5 4152 4153 CFLAGS="" 4154 cat >conftest.$ac_ext <<_ACEOF 4155/* confdefs.h. */ 4156_ACEOF 4157cat confdefs.h >>conftest.$ac_ext 4158cat >>conftest.$ac_ext <<_ACEOF 4159/* end confdefs.h. */ 4160 4161int 4162main () 4163{ 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169rm -f conftest.$ac_objext 4170if { (ac_try="$ac_compile" 4171case "(($ac_try" in 4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4173 *) ac_try_echo=$ac_try;; 4174esac 4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4176 (eval "$ac_compile") 2>conftest.er1 4177 ac_status=$? 4178 grep -v '^ *+' conftest.er1 >conftest.err 4179 rm -f conftest.er1 4180 cat conftest.err >&5 4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4182 (exit $ac_status); } && { 4183 test -z "$ac_c_werror_flag" || 4184 test ! -s conftest.err 4185 } && test -s conftest.$ac_objext; then 4186 : 4187else 4188 echo "$as_me: failed program was:" >&5 4189sed 's/^/| /' conftest.$ac_ext >&5 4190 4191 ac_c_werror_flag=$ac_save_c_werror_flag 4192 CFLAGS="-g" 4193 cat >conftest.$ac_ext <<_ACEOF 4194/* confdefs.h. */ 4195_ACEOF 4196cat confdefs.h >>conftest.$ac_ext 4197cat >>conftest.$ac_ext <<_ACEOF 4198/* end confdefs.h. */ 4199 4200int 4201main () 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208rm -f conftest.$ac_objext 4209if { (ac_try="$ac_compile" 4210case "(($ac_try" in 4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4212 *) ac_try_echo=$ac_try;; 4213esac 4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4215 (eval "$ac_compile") 2>conftest.er1 4216 ac_status=$? 4217 grep -v '^ *+' conftest.er1 >conftest.err 4218 rm -f conftest.er1 4219 cat conftest.err >&5 4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4221 (exit $ac_status); } && { 4222 test -z "$ac_c_werror_flag" || 4223 test ! -s conftest.err 4224 } && test -s conftest.$ac_objext; then 4225 ac_cv_prog_cc_g=yes 4226else 4227 echo "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230 4231fi 4232 4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4234fi 4235 4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4237fi 4238 4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4240 ac_c_werror_flag=$ac_save_c_werror_flag 4241fi 4242{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4243echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4244if test "$ac_test_CFLAGS" = set; then 4245 CFLAGS=$ac_save_CFLAGS 4246elif test $ac_cv_prog_cc_g = yes; then 4247 if test "$GCC" = yes; then 4248 CFLAGS="-g -O2" 4249 else 4250 CFLAGS="-g" 4251 fi 4252else 4253 if test "$GCC" = yes; then 4254 CFLAGS="-O2" 4255 else 4256 CFLAGS= 4257 fi 4258fi 4259{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4260echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4261if test "${ac_cv_prog_cc_c89+set}" = set; then 4262 echo $ECHO_N "(cached) $ECHO_C" >&6 4263else 4264 ac_cv_prog_cc_c89=no 4265ac_save_CC=$CC 4266cat >conftest.$ac_ext <<_ACEOF 4267/* confdefs.h. */ 4268_ACEOF 4269cat confdefs.h >>conftest.$ac_ext 4270cat >>conftest.$ac_ext <<_ACEOF 4271/* end confdefs.h. */ 4272#include <stdarg.h> 4273#include <stdio.h> 4274#include <sys/types.h> 4275#include <sys/stat.h> 4276/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4277struct buf { int x; }; 4278FILE * (*rcsopen) (struct buf *, struct stat *, int); 4279static char *e (p, i) 4280 char **p; 4281 int i; 4282{ 4283 return p[i]; 4284} 4285static char *f (char * (*g) (char **, int), char **p, ...) 4286{ 4287 char *s; 4288 va_list v; 4289 va_start (v,p); 4290 s = g (p, va_arg (v,int)); 4291 va_end (v); 4292 return s; 4293} 4294 4295/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4296 function prototypes and stuff, but not '\xHH' hex character constants. 4297 These don't provoke an error unfortunately, instead are silently treated 4298 as 'x'. The following induces an error, until -std is added to get 4299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4300 array size at least. It's necessary to write '\x00'==0 to get something 4301 that's true only with -std. */ 4302int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4303 4304/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4305 inside strings and character constants. */ 4306#define FOO(x) 'x' 4307int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4308 4309int test (int i, double x); 4310struct s1 {int (*f) (int a);}; 4311struct s2 {int (*f) (double a);}; 4312int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4313int argc; 4314char **argv; 4315int 4316main () 4317{ 4318return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4319 ; 4320 return 0; 4321} 4322_ACEOF 4323for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4325do 4326 CC="$ac_save_CC $ac_arg" 4327 rm -f conftest.$ac_objext 4328if { (ac_try="$ac_compile" 4329case "(($ac_try" in 4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4331 *) ac_try_echo=$ac_try;; 4332esac 4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4334 (eval "$ac_compile") 2>conftest.er1 4335 ac_status=$? 4336 grep -v '^ *+' conftest.er1 >conftest.err 4337 rm -f conftest.er1 4338 cat conftest.err >&5 4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); } && { 4341 test -z "$ac_c_werror_flag" || 4342 test ! -s conftest.err 4343 } && test -s conftest.$ac_objext; then 4344 ac_cv_prog_cc_c89=$ac_arg 4345else 4346 echo "$as_me: failed program was:" >&5 4347sed 's/^/| /' conftest.$ac_ext >&5 4348 4349 4350fi 4351 4352rm -f core conftest.err conftest.$ac_objext 4353 test "x$ac_cv_prog_cc_c89" != "xno" && break 4354done 4355rm -f conftest.$ac_ext 4356CC=$ac_save_CC 4357 4358fi 4359# AC_CACHE_VAL 4360case "x$ac_cv_prog_cc_c89" in 4361 x) 4362 { echo "$as_me:$LINENO: result: none needed" >&5 4363echo "${ECHO_T}none needed" >&6; } ;; 4364 xno) 4365 { echo "$as_me:$LINENO: result: unsupported" >&5 4366echo "${ECHO_T}unsupported" >&6; } ;; 4367 *) 4368 CC="$CC $ac_cv_prog_cc_c89" 4369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4370echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4371esac 4372 4373 4374ac_ext=c 4375ac_cpp='$CPP $CPPFLAGS' 4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4378ac_compiler_gnu=$ac_cv_c_compiler_gnu 4379 4380depcc="$CC" am_compiler_list= 4381 4382{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4383echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4384if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4385 echo $ECHO_N "(cached) $ECHO_C" >&6 4386else 4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4388 # We make a subdir and do the tests there. Otherwise we can end up 4389 # making bogus files that we don't know about and never remove. For 4390 # instance it was reported that on HP-UX the gcc test will end up 4391 # making a dummy file named `D' -- because `-MD' means `put the output 4392 # in D'. 4393 mkdir conftest.dir 4394 # Copy depcomp to subdir because otherwise we won't find it if we're 4395 # using a relative directory. 4396 cp "$am_depcomp" conftest.dir 4397 cd conftest.dir 4398 # We will build objects and dependencies in a subdirectory because 4399 # it helps to detect inapplicable dependency modes. For instance 4400 # both Tru64's cc and ICC support -MD to output dependencies as a 4401 # side effect of compilation, but ICC will put the dependencies in 4402 # the current directory while Tru64 will put them in the object 4403 # directory. 4404 mkdir sub 4405 4406 am_cv_CC_dependencies_compiler_type=none 4407 if test "$am_compiler_list" = ""; then 4408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4409 fi 4410 for depmode in $am_compiler_list; do 4411 # Setup a source with many dependencies, because some compilers 4412 # like to wrap large dependency lists on column 80 (with \), and 4413 # we should not choose a depcomp mode which is confused by this. 4414 # 4415 # We need to recreate these files for each test, as the compiler may 4416 # overwrite some of them when testing with obscure command lines. 4417 # This happens at least with the AIX C compiler. 4418 : > sub/conftest.c 4419 for i in 1 2 3 4 5 6; do 4420 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4422 # Solaris 8's {/usr,}/bin/sh. 4423 touch sub/conftst$i.h 4424 done 4425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4426 4427 case $depmode in 4428 nosideeffect) 4429 # after this tag, mechanisms are not by side-effect, so they'll 4430 # only be used when explicitly requested 4431 if test "x$enable_dependency_tracking" = xyes; then 4432 continue 4433 else 4434 break 4435 fi 4436 ;; 4437 none) break ;; 4438 esac 4439 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4440 # mode. It turns out that the SunPro C++ compiler does not properly 4441 # handle `-M -o', and we need to detect this. 4442 if depmode=$depmode \ 4443 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4445 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4446 >/dev/null 2>conftest.err && 4447 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4449 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4451 # icc doesn't choke on unknown options, it will just issue warnings 4452 # or remarks (even with -Werror). So we grep stderr for any message 4453 # that says an option was ignored or not supported. 4454 # When given -MP, icc 7.0 and 7.1 complain thusly: 4455 # icc: Command line warning: ignoring option '-M'; no argument required 4456 # The diagnosis changed in icc 8.0: 4457 # icc: Command line remark: option '-MP' not supported 4458 if (grep 'ignoring option' conftest.err || 4459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4460 am_cv_CC_dependencies_compiler_type=$depmode 4461 break 4462 fi 4463 fi 4464 done 4465 4466 cd .. 4467 rm -rf conftest.dir 4468else 4469 am_cv_CC_dependencies_compiler_type=none 4470fi 4471 4472fi 4473{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4474echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4475CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4476 4477 if 4478 test "x$enable_dependency_tracking" != xno \ 4479 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4480 am__fastdepCC_TRUE= 4481 am__fastdepCC_FALSE='#' 4482else 4483 am__fastdepCC_TRUE='#' 4484 am__fastdepCC_FALSE= 4485fi 4486 4487 4488ac_ext=c 4489ac_cpp='$CPP $CPPFLAGS' 4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4492ac_compiler_gnu=$ac_cv_c_compiler_gnu 4493if test -n "$ac_tool_prefix"; then 4494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4495set dummy ${ac_tool_prefix}gcc; ac_word=$2 4496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4498if test "${ac_cv_prog_CC+set}" = set; then 4499 echo $ECHO_N "(cached) $ECHO_C" >&6 4500else 4501 if test -n "$CC"; then 4502 ac_cv_prog_CC="$CC" # Let the user override the test. 4503else 4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4505for as_dir in $PATH 4506do 4507 IFS=$as_save_IFS 4508 test -z "$as_dir" && as_dir=. 4509 for ac_exec_ext in '' $ac_executable_extensions; do 4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4511 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4513 break 2 4514 fi 4515done 4516done 4517IFS=$as_save_IFS 4518 4519fi 4520fi 4521CC=$ac_cv_prog_CC 4522if test -n "$CC"; then 4523 { echo "$as_me:$LINENO: result: $CC" >&5 4524echo "${ECHO_T}$CC" >&6; } 4525else 4526 { echo "$as_me:$LINENO: result: no" >&5 4527echo "${ECHO_T}no" >&6; } 4528fi 4529 4530 4531fi 4532if test -z "$ac_cv_prog_CC"; then 4533 ac_ct_CC=$CC 4534 # Extract the first word of "gcc", so it can be a program name with args. 4535set dummy gcc; ac_word=$2 4536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540else 4541 if test -n "$ac_ct_CC"; then 4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4543else 4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_exec_ext in '' $ac_executable_extensions; do 4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4551 ac_cv_prog_ac_ct_CC="gcc" 4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4553 break 2 4554 fi 4555done 4556done 4557IFS=$as_save_IFS 4558 4559fi 4560fi 4561ac_ct_CC=$ac_cv_prog_ac_ct_CC 4562if test -n "$ac_ct_CC"; then 4563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4564echo "${ECHO_T}$ac_ct_CC" >&6; } 4565else 4566 { echo "$as_me:$LINENO: result: no" >&5 4567echo "${ECHO_T}no" >&6; } 4568fi 4569 4570 if test "x$ac_ct_CC" = x; then 4571 CC="" 4572 else 4573 case $cross_compiling:$ac_tool_warned in 4574yes:) 4575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4576whose name does not start with the host triplet. If you think this 4577configuration is useful to you, please write to autoconf@gnu.org." >&5 4578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4579whose name does not start with the host triplet. If you think this 4580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4581ac_tool_warned=yes ;; 4582esac 4583 CC=$ac_ct_CC 4584 fi 4585else 4586 CC="$ac_cv_prog_CC" 4587fi 4588 4589if test -z "$CC"; then 4590 if test -n "$ac_tool_prefix"; then 4591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4592set dummy ${ac_tool_prefix}cc; ac_word=$2 4593{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4595if test "${ac_cv_prog_CC+set}" = set; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597else 4598 if test -n "$CC"; then 4599 ac_cv_prog_CC="$CC" # Let the user override the test. 4600else 4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602for as_dir in $PATH 4603do 4604 IFS=$as_save_IFS 4605 test -z "$as_dir" && as_dir=. 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4608 ac_cv_prog_CC="${ac_tool_prefix}cc" 4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4610 break 2 4611 fi 4612done 4613done 4614IFS=$as_save_IFS 4615 4616fi 4617fi 4618CC=$ac_cv_prog_CC 4619if test -n "$CC"; then 4620 { echo "$as_me:$LINENO: result: $CC" >&5 4621echo "${ECHO_T}$CC" >&6; } 4622else 4623 { echo "$as_me:$LINENO: result: no" >&5 4624echo "${ECHO_T}no" >&6; } 4625fi 4626 4627 4628 fi 4629fi 4630if test -z "$CC"; then 4631 # Extract the first word of "cc", so it can be a program name with args. 4632set dummy cc; ac_word=$2 4633{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4635if test "${ac_cv_prog_CC+set}" = set; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 if test -n "$CC"; then 4639 ac_cv_prog_CC="$CC" # Let the user override the test. 4640else 4641 ac_prog_rejected=no 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4650 ac_prog_rejected=yes 4651 continue 4652 fi 4653 ac_cv_prog_CC="cc" 4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4655 break 2 4656 fi 4657done 4658done 4659IFS=$as_save_IFS 4660 4661if test $ac_prog_rejected = yes; then 4662 # We found a bogon in the path, so make sure we never use it. 4663 set dummy $ac_cv_prog_CC 4664 shift 4665 if test $# != 0; then 4666 # We chose a different compiler from the bogus one. 4667 # However, it has the same basename, so the bogon will be chosen 4668 # first if we set CC to just the basename; use the full file name. 4669 shift 4670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4671 fi 4672fi 4673fi 4674fi 4675CC=$ac_cv_prog_CC 4676if test -n "$CC"; then 4677 { echo "$as_me:$LINENO: result: $CC" >&5 4678echo "${ECHO_T}$CC" >&6; } 4679else 4680 { echo "$as_me:$LINENO: result: no" >&5 4681echo "${ECHO_T}no" >&6; } 4682fi 4683 4684 4685fi 4686if test -z "$CC"; then 4687 if test -n "$ac_tool_prefix"; then 4688 for ac_prog in cl.exe 4689 do 4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4691set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4692{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4694if test "${ac_cv_prog_CC+set}" = set; then 4695 echo $ECHO_N "(cached) $ECHO_C" >&6 4696else 4697 if test -n "$CC"; then 4698 ac_cv_prog_CC="$CC" # Let the user override the test. 4699else 4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701for as_dir in $PATH 4702do 4703 IFS=$as_save_IFS 4704 test -z "$as_dir" && as_dir=. 4705 for ac_exec_ext in '' $ac_executable_extensions; do 4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4709 break 2 4710 fi 4711done 4712done 4713IFS=$as_save_IFS 4714 4715fi 4716fi 4717CC=$ac_cv_prog_CC 4718if test -n "$CC"; then 4719 { echo "$as_me:$LINENO: result: $CC" >&5 4720echo "${ECHO_T}$CC" >&6; } 4721else 4722 { echo "$as_me:$LINENO: result: no" >&5 4723echo "${ECHO_T}no" >&6; } 4724fi 4725 4726 4727 test -n "$CC" && break 4728 done 4729fi 4730if test -z "$CC"; then 4731 ac_ct_CC=$CC 4732 for ac_prog in cl.exe 4733do 4734 # Extract the first word of "$ac_prog", so it can be a program name with args. 4735set dummy $ac_prog; ac_word=$2 4736{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4738if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4739 echo $ECHO_N "(cached) $ECHO_C" >&6 4740else 4741 if test -n "$ac_ct_CC"; then 4742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4743else 4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4745for as_dir in $PATH 4746do 4747 IFS=$as_save_IFS 4748 test -z "$as_dir" && as_dir=. 4749 for ac_exec_ext in '' $ac_executable_extensions; do 4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4751 ac_cv_prog_ac_ct_CC="$ac_prog" 4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4753 break 2 4754 fi 4755done 4756done 4757IFS=$as_save_IFS 4758 4759fi 4760fi 4761ac_ct_CC=$ac_cv_prog_ac_ct_CC 4762if test -n "$ac_ct_CC"; then 4763 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4764echo "${ECHO_T}$ac_ct_CC" >&6; } 4765else 4766 { echo "$as_me:$LINENO: result: no" >&5 4767echo "${ECHO_T}no" >&6; } 4768fi 4769 4770 4771 test -n "$ac_ct_CC" && break 4772done 4773 4774 if test "x$ac_ct_CC" = x; then 4775 CC="" 4776 else 4777 case $cross_compiling:$ac_tool_warned in 4778yes:) 4779{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4780whose name does not start with the host triplet. If you think this 4781configuration is useful to you, please write to autoconf@gnu.org." >&5 4782echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4783whose name does not start with the host triplet. If you think this 4784configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4785ac_tool_warned=yes ;; 4786esac 4787 CC=$ac_ct_CC 4788 fi 4789fi 4790 4791fi 4792 4793 4794test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4795See \`config.log' for more details." >&5 4796echo "$as_me: error: no acceptable C compiler found in \$PATH 4797See \`config.log' for more details." >&2;} 4798 { (exit 1); exit 1; }; } 4799 4800# Provide some information about the compiler. 4801echo "$as_me:$LINENO: checking for C compiler version" >&5 4802ac_compiler=`set X $ac_compile; echo $2` 4803{ (ac_try="$ac_compiler --version >&5" 4804case "(($ac_try" in 4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4806 *) ac_try_echo=$ac_try;; 4807esac 4808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4809 (eval "$ac_compiler --version >&5") 2>&5 4810 ac_status=$? 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); } 4813{ (ac_try="$ac_compiler -v >&5" 4814case "(($ac_try" in 4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4816 *) ac_try_echo=$ac_try;; 4817esac 4818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4819 (eval "$ac_compiler -v >&5") 2>&5 4820 ac_status=$? 4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4822 (exit $ac_status); } 4823{ (ac_try="$ac_compiler -V >&5" 4824case "(($ac_try" in 4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826 *) ac_try_echo=$ac_try;; 4827esac 4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4829 (eval "$ac_compiler -V >&5") 2>&5 4830 ac_status=$? 4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); } 4833 4834{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4835echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4836if test "${ac_cv_c_compiler_gnu+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 cat >conftest.$ac_ext <<_ACEOF 4840/* confdefs.h. */ 4841_ACEOF 4842cat confdefs.h >>conftest.$ac_ext 4843cat >>conftest.$ac_ext <<_ACEOF 4844/* end confdefs.h. */ 4845 4846int 4847main () 4848{ 4849#ifndef __GNUC__ 4850 choke me 4851#endif 4852 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857rm -f conftest.$ac_objext 4858if { (ac_try="$ac_compile" 4859case "(($ac_try" in 4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4861 *) ac_try_echo=$ac_try;; 4862esac 4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4864 (eval "$ac_compile") 2>conftest.er1 4865 ac_status=$? 4866 grep -v '^ *+' conftest.er1 >conftest.err 4867 rm -f conftest.er1 4868 cat conftest.err >&5 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } && { 4871 test -z "$ac_c_werror_flag" || 4872 test ! -s conftest.err 4873 } && test -s conftest.$ac_objext; then 4874 ac_compiler_gnu=yes 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_compiler_gnu=no 4880fi 4881 4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4883ac_cv_c_compiler_gnu=$ac_compiler_gnu 4884 4885fi 4886{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4887echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4888GCC=`test $ac_compiler_gnu = yes && echo yes` 4889ac_test_CFLAGS=${CFLAGS+set} 4890ac_save_CFLAGS=$CFLAGS 4891{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4892echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4893if test "${ac_cv_prog_cc_g+set}" = set; then 4894 echo $ECHO_N "(cached) $ECHO_C" >&6 4895else 4896 ac_save_c_werror_flag=$ac_c_werror_flag 4897 ac_c_werror_flag=yes 4898 ac_cv_prog_cc_g=no 4899 CFLAGS="-g" 4900 cat >conftest.$ac_ext <<_ACEOF 4901/* confdefs.h. */ 4902_ACEOF 4903cat confdefs.h >>conftest.$ac_ext 4904cat >>conftest.$ac_ext <<_ACEOF 4905/* end confdefs.h. */ 4906 4907int 4908main () 4909{ 4910 4911 ; 4912 return 0; 4913} 4914_ACEOF 4915rm -f conftest.$ac_objext 4916if { (ac_try="$ac_compile" 4917case "(($ac_try" in 4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4919 *) ac_try_echo=$ac_try;; 4920esac 4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4922 (eval "$ac_compile") 2>conftest.er1 4923 ac_status=$? 4924 grep -v '^ *+' conftest.er1 >conftest.err 4925 rm -f conftest.er1 4926 cat conftest.err >&5 4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4928 (exit $ac_status); } && { 4929 test -z "$ac_c_werror_flag" || 4930 test ! -s conftest.err 4931 } && test -s conftest.$ac_objext; then 4932 ac_cv_prog_cc_g=yes 4933else 4934 echo "$as_me: failed program was:" >&5 4935sed 's/^/| /' conftest.$ac_ext >&5 4936 4937 CFLAGS="" 4938 cat >conftest.$ac_ext <<_ACEOF 4939/* confdefs.h. */ 4940_ACEOF 4941cat confdefs.h >>conftest.$ac_ext 4942cat >>conftest.$ac_ext <<_ACEOF 4943/* end confdefs.h. */ 4944 4945int 4946main () 4947{ 4948 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953rm -f conftest.$ac_objext 4954if { (ac_try="$ac_compile" 4955case "(($ac_try" in 4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4957 *) ac_try_echo=$ac_try;; 4958esac 4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4960 (eval "$ac_compile") 2>conftest.er1 4961 ac_status=$? 4962 grep -v '^ *+' conftest.er1 >conftest.err 4963 rm -f conftest.er1 4964 cat conftest.err >&5 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4966 (exit $ac_status); } && { 4967 test -z "$ac_c_werror_flag" || 4968 test ! -s conftest.err 4969 } && test -s conftest.$ac_objext; then 4970 : 4971else 4972 echo "$as_me: failed program was:" >&5 4973sed 's/^/| /' conftest.$ac_ext >&5 4974 4975 ac_c_werror_flag=$ac_save_c_werror_flag 4976 CFLAGS="-g" 4977 cat >conftest.$ac_ext <<_ACEOF 4978/* confdefs.h. */ 4979_ACEOF 4980cat confdefs.h >>conftest.$ac_ext 4981cat >>conftest.$ac_ext <<_ACEOF 4982/* end confdefs.h. */ 4983 4984int 4985main () 4986{ 4987 4988 ; 4989 return 0; 4990} 4991_ACEOF 4992rm -f conftest.$ac_objext 4993if { (ac_try="$ac_compile" 4994case "(($ac_try" in 4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4996 *) ac_try_echo=$ac_try;; 4997esac 4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4999 (eval "$ac_compile") 2>conftest.er1 5000 ac_status=$? 5001 grep -v '^ *+' conftest.er1 >conftest.err 5002 rm -f conftest.er1 5003 cat conftest.err >&5 5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); } && { 5006 test -z "$ac_c_werror_flag" || 5007 test ! -s conftest.err 5008 } && test -s conftest.$ac_objext; then 5009 ac_cv_prog_cc_g=yes 5010else 5011 echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014 5015fi 5016 5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5018fi 5019 5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5021fi 5022 5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024 ac_c_werror_flag=$ac_save_c_werror_flag 5025fi 5026{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5027echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 5028if test "$ac_test_CFLAGS" = set; then 5029 CFLAGS=$ac_save_CFLAGS 5030elif test $ac_cv_prog_cc_g = yes; then 5031 if test "$GCC" = yes; then 5032 CFLAGS="-g -O2" 5033 else 5034 CFLAGS="-g" 5035 fi 5036else 5037 if test "$GCC" = yes; then 5038 CFLAGS="-O2" 5039 else 5040 CFLAGS= 5041 fi 5042fi 5043{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5044echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 5045if test "${ac_cv_prog_cc_c89+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047else 5048 ac_cv_prog_cc_c89=no 5049ac_save_CC=$CC 5050cat >conftest.$ac_ext <<_ACEOF 5051/* confdefs.h. */ 5052_ACEOF 5053cat confdefs.h >>conftest.$ac_ext 5054cat >>conftest.$ac_ext <<_ACEOF 5055/* end confdefs.h. */ 5056#include <stdarg.h> 5057#include <stdio.h> 5058#include <sys/types.h> 5059#include <sys/stat.h> 5060/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5061struct buf { int x; }; 5062FILE * (*rcsopen) (struct buf *, struct stat *, int); 5063static char *e (p, i) 5064 char **p; 5065 int i; 5066{ 5067 return p[i]; 5068} 5069static char *f (char * (*g) (char **, int), char **p, ...) 5070{ 5071 char *s; 5072 va_list v; 5073 va_start (v,p); 5074 s = g (p, va_arg (v,int)); 5075 va_end (v); 5076 return s; 5077} 5078 5079/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5080 function prototypes and stuff, but not '\xHH' hex character constants. 5081 These don't provoke an error unfortunately, instead are silently treated 5082 as 'x'. The following induces an error, until -std is added to get 5083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5084 array size at least. It's necessary to write '\x00'==0 to get something 5085 that's true only with -std. */ 5086int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5087 5088/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5089 inside strings and character constants. */ 5090#define FOO(x) 'x' 5091int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5092 5093int test (int i, double x); 5094struct s1 {int (*f) (int a);}; 5095struct s2 {int (*f) (double a);}; 5096int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5097int argc; 5098char **argv; 5099int 5100main () 5101{ 5102return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5103 ; 5104 return 0; 5105} 5106_ACEOF 5107for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5109do 5110 CC="$ac_save_CC $ac_arg" 5111 rm -f conftest.$ac_objext 5112if { (ac_try="$ac_compile" 5113case "(($ac_try" in 5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5115 *) ac_try_echo=$ac_try;; 5116esac 5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5118 (eval "$ac_compile") 2>conftest.er1 5119 ac_status=$? 5120 grep -v '^ *+' conftest.er1 >conftest.err 5121 rm -f conftest.er1 5122 cat conftest.err >&5 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5124 (exit $ac_status); } && { 5125 test -z "$ac_c_werror_flag" || 5126 test ! -s conftest.err 5127 } && test -s conftest.$ac_objext; then 5128 ac_cv_prog_cc_c89=$ac_arg 5129else 5130 echo "$as_me: failed program was:" >&5 5131sed 's/^/| /' conftest.$ac_ext >&5 5132 5133 5134fi 5135 5136rm -f core conftest.err conftest.$ac_objext 5137 test "x$ac_cv_prog_cc_c89" != "xno" && break 5138done 5139rm -f conftest.$ac_ext 5140CC=$ac_save_CC 5141 5142fi 5143# AC_CACHE_VAL 5144case "x$ac_cv_prog_cc_c89" in 5145 x) 5146 { echo "$as_me:$LINENO: result: none needed" >&5 5147echo "${ECHO_T}none needed" >&6; } ;; 5148 xno) 5149 { echo "$as_me:$LINENO: result: unsupported" >&5 5150echo "${ECHO_T}unsupported" >&6; } ;; 5151 *) 5152 CC="$CC $ac_cv_prog_cc_c89" 5153 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5154echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 5155esac 5156 5157 5158ac_ext=c 5159ac_cpp='$CPP $CPPFLAGS' 5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5162ac_compiler_gnu=$ac_cv_c_compiler_gnu 5163 5164depcc="$CC" am_compiler_list= 5165 5166{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5168if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5169 echo $ECHO_N "(cached) $ECHO_C" >&6 5170else 5171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5172 # We make a subdir and do the tests there. Otherwise we can end up 5173 # making bogus files that we don't know about and never remove. For 5174 # instance it was reported that on HP-UX the gcc test will end up 5175 # making a dummy file named `D' -- because `-MD' means `put the output 5176 # in D'. 5177 mkdir conftest.dir 5178 # Copy depcomp to subdir because otherwise we won't find it if we're 5179 # using a relative directory. 5180 cp "$am_depcomp" conftest.dir 5181 cd conftest.dir 5182 # We will build objects and dependencies in a subdirectory because 5183 # it helps to detect inapplicable dependency modes. For instance 5184 # both Tru64's cc and ICC support -MD to output dependencies as a 5185 # side effect of compilation, but ICC will put the dependencies in 5186 # the current directory while Tru64 will put them in the object 5187 # directory. 5188 mkdir sub 5189 5190 am_cv_CC_dependencies_compiler_type=none 5191 if test "$am_compiler_list" = ""; then 5192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5193 fi 5194 for depmode in $am_compiler_list; do 5195 # Setup a source with many dependencies, because some compilers 5196 # like to wrap large dependency lists on column 80 (with \), and 5197 # we should not choose a depcomp mode which is confused by this. 5198 # 5199 # We need to recreate these files for each test, as the compiler may 5200 # overwrite some of them when testing with obscure command lines. 5201 # This happens at least with the AIX C compiler. 5202 : > sub/conftest.c 5203 for i in 1 2 3 4 5 6; do 5204 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5206 # Solaris 8's {/usr,}/bin/sh. 5207 touch sub/conftst$i.h 5208 done 5209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5210 5211 case $depmode in 5212 nosideeffect) 5213 # after this tag, mechanisms are not by side-effect, so they'll 5214 # only be used when explicitly requested 5215 if test "x$enable_dependency_tracking" = xyes; then 5216 continue 5217 else 5218 break 5219 fi 5220 ;; 5221 none) break ;; 5222 esac 5223 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5224 # mode. It turns out that the SunPro C++ compiler does not properly 5225 # handle `-M -o', and we need to detect this. 5226 if depmode=$depmode \ 5227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5230 >/dev/null 2>conftest.err && 5231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5235 # icc doesn't choke on unknown options, it will just issue warnings 5236 # or remarks (even with -Werror). So we grep stderr for any message 5237 # that says an option was ignored or not supported. 5238 # When given -MP, icc 7.0 and 7.1 complain thusly: 5239 # icc: Command line warning: ignoring option '-M'; no argument required 5240 # The diagnosis changed in icc 8.0: 5241 # icc: Command line remark: option '-MP' not supported 5242 if (grep 'ignoring option' conftest.err || 5243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5244 am_cv_CC_dependencies_compiler_type=$depmode 5245 break 5246 fi 5247 fi 5248 done 5249 5250 cd .. 5251 rm -rf conftest.dir 5252else 5253 am_cv_CC_dependencies_compiler_type=none 5254fi 5255 5256fi 5257{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5258echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 5259CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5260 5261 if 5262 test "x$enable_dependency_tracking" != xno \ 5263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5264 am__fastdepCC_TRUE= 5265 am__fastdepCC_FALSE='#' 5266else 5267 am__fastdepCC_TRUE='#' 5268 am__fastdepCC_FALSE= 5269fi 5270 5271 5272 5273am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 5274 5275 5276cat >confcache <<\_ACEOF 5277# This file is a shell script that caches the results of configure 5278# tests run on this system so they can be shared between configure 5279# scripts and configure runs, see configure's option --config-cache. 5280# It is not useful on other systems. If it contains results you don't 5281# want to keep, you may remove or edit it. 5282# 5283# config.status only pays attention to the cache file if you give it 5284# the --recheck option to rerun configure. 5285# 5286# `ac_cv_env_foo' variables (set or unset) will be overridden when 5287# loading this file, other *unset* `ac_cv_foo' will be assigned the 5288# following values. 5289 5290_ACEOF 5291 5292# The following way of writing the cache mishandles newlines in values, 5293# but we know of no workaround that is simple, portable, and efficient. 5294# So, we kill variables containing newlines. 5295# Ultrix sh set writes to stderr and can't be redirected directly, 5296# and sets the high bit in the cache file unless we assign to the vars. 5297( 5298 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5299 eval ac_val=\$$ac_var 5300 case $ac_val in #( 5301 *${as_nl}*) 5302 case $ac_var in #( 5303 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 5304echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 5305 esac 5306 case $ac_var in #( 5307 _ | IFS | as_nl) ;; #( 5308 *) $as_unset $ac_var ;; 5309 esac ;; 5310 esac 5311 done 5312 5313 (set) 2>&1 | 5314 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5315 *${as_nl}ac_space=\ *) 5316 # `set' does not quote correctly, so add quotes (double-quote 5317 # substitution turns \\\\ into \\, and sed turns \\ into \). 5318 sed -n \ 5319 "s/'/'\\\\''/g; 5320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5321 ;; #( 5322 *) 5323 # `set' quotes correctly as required by POSIX, so do not add quotes. 5324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5325 ;; 5326 esac | 5327 sort 5328) | 5329 sed ' 5330 /^ac_cv_env_/b end 5331 t clear 5332 :clear 5333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5334 t end 5335 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5336 :end' >>confcache 5337if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5338 if test -w "$cache_file"; then 5339 test "x$cache_file" != "x/dev/null" && 5340 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 5341echo "$as_me: updating cache $cache_file" >&6;} 5342 cat confcache >$cache_file 5343 else 5344 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5345echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5346 fi 5347fi 5348rm -f confcache 5349 5350ac_ext=c 5351ac_cpp='$CPP $CPPFLAGS' 5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5354ac_compiler_gnu=$ac_cv_c_compiler_gnu 5355{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5356echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5357# On Suns, sometimes $CPP names a directory. 5358if test -n "$CPP" && test -d "$CPP"; then 5359 CPP= 5360fi 5361if test -z "$CPP"; then 5362 if test "${ac_cv_prog_CPP+set}" = set; then 5363 echo $ECHO_N "(cached) $ECHO_C" >&6 5364else 5365 # Double quotes because CPP needs to be expanded 5366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5367 do 5368 ac_preproc_ok=false 5369for ac_c_preproc_warn_flag in '' yes 5370do 5371 # Use a header file that comes with gcc, so configuring glibc 5372 # with a fresh cross-compiler works. 5373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5374 # <limits.h> exists even on freestanding compilers. 5375 # On the NeXT, cc -E runs the code through the compiler's parser, 5376 # not just through cpp. "Syntax error" is here to catch this case. 5377 cat >conftest.$ac_ext <<_ACEOF 5378/* confdefs.h. */ 5379_ACEOF 5380cat confdefs.h >>conftest.$ac_ext 5381cat >>conftest.$ac_ext <<_ACEOF 5382/* end confdefs.h. */ 5383#ifdef __STDC__ 5384# include <limits.h> 5385#else 5386# include <assert.h> 5387#endif 5388 Syntax error 5389_ACEOF 5390if { (ac_try="$ac_cpp conftest.$ac_ext" 5391case "(($ac_try" in 5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5393 *) ac_try_echo=$ac_try;; 5394esac 5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5397 ac_status=$? 5398 grep -v '^ *+' conftest.er1 >conftest.err 5399 rm -f conftest.er1 5400 cat conftest.err >&5 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5402 (exit $ac_status); } >/dev/null && { 5403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5404 test ! -s conftest.err 5405 }; then 5406 : 5407else 5408 echo "$as_me: failed program was:" >&5 5409sed 's/^/| /' conftest.$ac_ext >&5 5410 5411 # Broken: fails on valid input. 5412continue 5413fi 5414 5415rm -f conftest.err conftest.$ac_ext 5416 5417 # OK, works on sane cases. Now check whether nonexistent headers 5418 # can be detected and how. 5419 cat >conftest.$ac_ext <<_ACEOF 5420/* confdefs.h. */ 5421_ACEOF 5422cat confdefs.h >>conftest.$ac_ext 5423cat >>conftest.$ac_ext <<_ACEOF 5424/* end confdefs.h. */ 5425#include <ac_nonexistent.h> 5426_ACEOF 5427if { (ac_try="$ac_cpp conftest.$ac_ext" 5428case "(($ac_try" in 5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5430 *) ac_try_echo=$ac_try;; 5431esac 5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5434 ac_status=$? 5435 grep -v '^ *+' conftest.er1 >conftest.err 5436 rm -f conftest.er1 5437 cat conftest.err >&5 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); } >/dev/null && { 5440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5441 test ! -s conftest.err 5442 }; then 5443 # Broken: success on invalid input. 5444continue 5445else 5446 echo "$as_me: failed program was:" >&5 5447sed 's/^/| /' conftest.$ac_ext >&5 5448 5449 # Passes both tests. 5450ac_preproc_ok=: 5451break 5452fi 5453 5454rm -f conftest.err conftest.$ac_ext 5455 5456done 5457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5458rm -f conftest.err conftest.$ac_ext 5459if $ac_preproc_ok; then 5460 break 5461fi 5462 5463 done 5464 ac_cv_prog_CPP=$CPP 5465 5466fi 5467 CPP=$ac_cv_prog_CPP 5468else 5469 ac_cv_prog_CPP=$CPP 5470fi 5471{ echo "$as_me:$LINENO: result: $CPP" >&5 5472echo "${ECHO_T}$CPP" >&6; } 5473ac_preproc_ok=false 5474for ac_c_preproc_warn_flag in '' yes 5475do 5476 # Use a header file that comes with gcc, so configuring glibc 5477 # with a fresh cross-compiler works. 5478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5479 # <limits.h> exists even on freestanding compilers. 5480 # On the NeXT, cc -E runs the code through the compiler's parser, 5481 # not just through cpp. "Syntax error" is here to catch this case. 5482 cat >conftest.$ac_ext <<_ACEOF 5483/* confdefs.h. */ 5484_ACEOF 5485cat confdefs.h >>conftest.$ac_ext 5486cat >>conftest.$ac_ext <<_ACEOF 5487/* end confdefs.h. */ 5488#ifdef __STDC__ 5489# include <limits.h> 5490#else 5491# include <assert.h> 5492#endif 5493 Syntax error 5494_ACEOF 5495if { (ac_try="$ac_cpp conftest.$ac_ext" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } >/dev/null && { 5508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5509 test ! -s conftest.err 5510 }; then 5511 : 5512else 5513 echo "$as_me: failed program was:" >&5 5514sed 's/^/| /' conftest.$ac_ext >&5 5515 5516 # Broken: fails on valid input. 5517continue 5518fi 5519 5520rm -f conftest.err conftest.$ac_ext 5521 5522 # OK, works on sane cases. Now check whether nonexistent headers 5523 # can be detected and how. 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 <ac_nonexistent.h> 5531_ACEOF 5532if { (ac_try="$ac_cpp conftest.$ac_ext" 5533case "(($ac_try" in 5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5535 *) ac_try_echo=$ac_try;; 5536esac 5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5539 ac_status=$? 5540 grep -v '^ *+' conftest.er1 >conftest.err 5541 rm -f conftest.er1 5542 cat conftest.err >&5 5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5544 (exit $ac_status); } >/dev/null && { 5545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5546 test ! -s conftest.err 5547 }; then 5548 # Broken: success on invalid input. 5549continue 5550else 5551 echo "$as_me: failed program was:" >&5 5552sed 's/^/| /' conftest.$ac_ext >&5 5553 5554 # Passes both tests. 5555ac_preproc_ok=: 5556break 5557fi 5558 5559rm -f conftest.err conftest.$ac_ext 5560 5561done 5562# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5563rm -f conftest.err conftest.$ac_ext 5564if $ac_preproc_ok; then 5565 : 5566else 5567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5568See \`config.log' for more details." >&5 5569echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5570See \`config.log' for more details." >&2;} 5571 { (exit 1); exit 1; }; } 5572fi 5573 5574ac_ext=c 5575ac_cpp='$CPP $CPPFLAGS' 5576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5578ac_compiler_gnu=$ac_cv_c_compiler_gnu 5579 5580 5581{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5582echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5583if test "${ac_cv_path_GREP+set}" = set; then 5584 echo $ECHO_N "(cached) $ECHO_C" >&6 5585else 5586 # Extract the first word of "grep ggrep" to use in msg output 5587if test -z "$GREP"; then 5588set dummy grep ggrep; ac_prog_name=$2 5589if test "${ac_cv_path_GREP+set}" = set; then 5590 echo $ECHO_N "(cached) $ECHO_C" >&6 5591else 5592 ac_path_GREP_found=false 5593# Loop through the user's path and test for each of PROGNAME-LIST 5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5596do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_prog in grep ggrep; do 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5603 # Check for GNU ac_path_GREP and select it if it is found. 5604 # Check for GNU $ac_path_GREP 5605case `"$ac_path_GREP" --version 2>&1` in 5606*GNU*) 5607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5608*) 5609 ac_count=0 5610 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5611 while : 5612 do 5613 cat "conftest.in" "conftest.in" >"conftest.tmp" 5614 mv "conftest.tmp" "conftest.in" 5615 cp "conftest.in" "conftest.nl" 5616 echo 'GREP' >> "conftest.nl" 5617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5619 ac_count=`expr $ac_count + 1` 5620 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5621 # Best one so far, save it but keep looking for a better one 5622 ac_cv_path_GREP="$ac_path_GREP" 5623 ac_path_GREP_max=$ac_count 5624 fi 5625 # 10*(2^10) chars as input seems more than enough 5626 test $ac_count -gt 10 && break 5627 done 5628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5629esac 5630 5631 5632 $ac_path_GREP_found && break 3 5633 done 5634done 5635 5636done 5637IFS=$as_save_IFS 5638 5639 5640fi 5641 5642GREP="$ac_cv_path_GREP" 5643if test -z "$GREP"; then 5644 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5645echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5646 { (exit 1); exit 1; }; } 5647fi 5648 5649else 5650 ac_cv_path_GREP=$GREP 5651fi 5652 5653 5654fi 5655{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5656echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5657 GREP="$ac_cv_path_GREP" 5658 5659 5660{ echo "$as_me:$LINENO: checking for egrep" >&5 5661echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5662if test "${ac_cv_path_EGREP+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5666 then ac_cv_path_EGREP="$GREP -E" 5667 else 5668 # Extract the first word of "egrep" to use in msg output 5669if test -z "$EGREP"; then 5670set dummy egrep; ac_prog_name=$2 5671if test "${ac_cv_path_EGREP+set}" = set; then 5672 echo $ECHO_N "(cached) $ECHO_C" >&6 5673else 5674 ac_path_EGREP_found=false 5675# Loop through the user's path and test for each of PROGNAME-LIST 5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5678do 5679 IFS=$as_save_IFS 5680 test -z "$as_dir" && as_dir=. 5681 for ac_prog in egrep; do 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5684 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5685 # Check for GNU ac_path_EGREP and select it if it is found. 5686 # Check for GNU $ac_path_EGREP 5687case `"$ac_path_EGREP" --version 2>&1` in 5688*GNU*) 5689 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5690*) 5691 ac_count=0 5692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5693 while : 5694 do 5695 cat "conftest.in" "conftest.in" >"conftest.tmp" 5696 mv "conftest.tmp" "conftest.in" 5697 cp "conftest.in" "conftest.nl" 5698 echo 'EGREP' >> "conftest.nl" 5699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5701 ac_count=`expr $ac_count + 1` 5702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5703 # Best one so far, save it but keep looking for a better one 5704 ac_cv_path_EGREP="$ac_path_EGREP" 5705 ac_path_EGREP_max=$ac_count 5706 fi 5707 # 10*(2^10) chars as input seems more than enough 5708 test $ac_count -gt 10 && break 5709 done 5710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5711esac 5712 5713 5714 $ac_path_EGREP_found && break 3 5715 done 5716done 5717 5718done 5719IFS=$as_save_IFS 5720 5721 5722fi 5723 5724EGREP="$ac_cv_path_EGREP" 5725if test -z "$EGREP"; then 5726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5728 { (exit 1); exit 1; }; } 5729fi 5730 5731else 5732 ac_cv_path_EGREP=$EGREP 5733fi 5734 5735 5736 fi 5737fi 5738{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5739echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5740 EGREP="$ac_cv_path_EGREP" 5741 5742 5743{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5744echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5745if test "${ac_cv_header_stdc+set}" = set; then 5746 echo $ECHO_N "(cached) $ECHO_C" >&6 5747else 5748 cat >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#include <stdlib.h> 5755#include <stdarg.h> 5756#include <string.h> 5757#include <float.h> 5758 5759int 5760main () 5761{ 5762 5763 ; 5764 return 0; 5765} 5766_ACEOF 5767rm -f conftest.$ac_objext 5768if { (ac_try="$ac_compile" 5769case "(($ac_try" in 5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5771 *) ac_try_echo=$ac_try;; 5772esac 5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5774 (eval "$ac_compile") 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } && { 5781 test -z "$ac_c_werror_flag" || 5782 test ! -s conftest.err 5783 } && test -s conftest.$ac_objext; then 5784 ac_cv_header_stdc=yes 5785else 5786 echo "$as_me: failed program was:" >&5 5787sed 's/^/| /' conftest.$ac_ext >&5 5788 5789 ac_cv_header_stdc=no 5790fi 5791 5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5793 5794if test $ac_cv_header_stdc = yes; then 5795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5796 cat >conftest.$ac_ext <<_ACEOF 5797/* confdefs.h. */ 5798_ACEOF 5799cat confdefs.h >>conftest.$ac_ext 5800cat >>conftest.$ac_ext <<_ACEOF 5801/* end confdefs.h. */ 5802#include <string.h> 5803 5804_ACEOF 5805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5806 $EGREP "memchr" >/dev/null 2>&1; then 5807 : 5808else 5809 ac_cv_header_stdc=no 5810fi 5811rm -f conftest* 5812 5813fi 5814 5815if test $ac_cv_header_stdc = yes; then 5816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5817 cat >conftest.$ac_ext <<_ACEOF 5818/* confdefs.h. */ 5819_ACEOF 5820cat confdefs.h >>conftest.$ac_ext 5821cat >>conftest.$ac_ext <<_ACEOF 5822/* end confdefs.h. */ 5823#include <stdlib.h> 5824 5825_ACEOF 5826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5827 $EGREP "free" >/dev/null 2>&1; then 5828 : 5829else 5830 ac_cv_header_stdc=no 5831fi 5832rm -f conftest* 5833 5834fi 5835 5836if test $ac_cv_header_stdc = yes; then 5837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5838 if test "$cross_compiling" = yes; then 5839 : 5840else 5841 cat >conftest.$ac_ext <<_ACEOF 5842/* confdefs.h. */ 5843_ACEOF 5844cat confdefs.h >>conftest.$ac_ext 5845cat >>conftest.$ac_ext <<_ACEOF 5846/* end confdefs.h. */ 5847#include <ctype.h> 5848#include <stdlib.h> 5849#if ((' ' & 0x0FF) == 0x020) 5850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5852#else 5853# define ISLOWER(c) \ 5854 (('a' <= (c) && (c) <= 'i') \ 5855 || ('j' <= (c) && (c) <= 'r') \ 5856 || ('s' <= (c) && (c) <= 'z')) 5857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5858#endif 5859 5860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5861int 5862main () 5863{ 5864 int i; 5865 for (i = 0; i < 256; i++) 5866 if (XOR (islower (i), ISLOWER (i)) 5867 || toupper (i) != TOUPPER (i)) 5868 return 2; 5869 return 0; 5870} 5871_ACEOF 5872rm -f conftest$ac_exeext 5873if { (ac_try="$ac_link" 5874case "(($ac_try" in 5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5876 *) ac_try_echo=$ac_try;; 5877esac 5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5879 (eval "$ac_link") 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5883 { (case "(($ac_try" in 5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5885 *) ac_try_echo=$ac_try;; 5886esac 5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5888 (eval "$ac_try") 2>&5 5889 ac_status=$? 5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5891 (exit $ac_status); }; }; then 5892 : 5893else 5894 echo "$as_me: program exited with status $ac_status" >&5 5895echo "$as_me: failed program was:" >&5 5896sed 's/^/| /' conftest.$ac_ext >&5 5897 5898( exit $ac_status ) 5899ac_cv_header_stdc=no 5900fi 5901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5902fi 5903 5904 5905fi 5906fi 5907{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5908echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5909if test $ac_cv_header_stdc = yes; then 5910 5911cat >>confdefs.h <<\_ACEOF 5912#define STDC_HEADERS 1 5913_ACEOF 5914 5915fi 5916 5917 5918# Check whether --enable-shared was given. 5919if test "${enable_shared+set}" = set; then 5920 enableval=$enable_shared; p=${PACKAGE-default} 5921 case $enableval in 5922 yes) enable_shared=yes ;; 5923 no) enable_shared=no ;; 5924 *) 5925 enable_shared=no 5926 # Look at the argument we got. We use all the common list separators. 5927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5928 for pkg in $enableval; do 5929 IFS="$lt_save_ifs" 5930 if test "X$pkg" = "X$p"; then 5931 enable_shared=yes 5932 fi 5933 done 5934 IFS="$lt_save_ifs" 5935 ;; 5936 esac 5937else 5938 enable_shared=yes 5939fi 5940 5941 5942# Check whether --enable-static was given. 5943if test "${enable_static+set}" = set; then 5944 enableval=$enable_static; p=${PACKAGE-default} 5945 case $enableval in 5946 yes) enable_static=yes ;; 5947 no) enable_static=no ;; 5948 *) 5949 enable_static=no 5950 # Look at the argument we got. We use all the common list separators. 5951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5952 for pkg in $enableval; do 5953 IFS="$lt_save_ifs" 5954 if test "X$pkg" = "X$p"; then 5955 enable_static=yes 5956 fi 5957 done 5958 IFS="$lt_save_ifs" 5959 ;; 5960 esac 5961else 5962 enable_static=yes 5963fi 5964 5965 5966# Check whether --enable-fast-install was given. 5967if test "${enable_fast_install+set}" = set; then 5968 enableval=$enable_fast_install; p=${PACKAGE-default} 5969 case $enableval in 5970 yes) enable_fast_install=yes ;; 5971 no) enable_fast_install=no ;; 5972 *) 5973 enable_fast_install=no 5974 # Look at the argument we got. We use all the common list separators. 5975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5976 for pkg in $enableval; do 5977 IFS="$lt_save_ifs" 5978 if test "X$pkg" = "X$p"; then 5979 enable_fast_install=yes 5980 fi 5981 done 5982 IFS="$lt_save_ifs" 5983 ;; 5984 esac 5985else 5986 enable_fast_install=yes 5987fi 5988 5989 5990{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5991echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5992if test "${lt_cv_path_SED+set}" = set; then 5993 echo $ECHO_N "(cached) $ECHO_C" >&6 5994else 5995 # Loop through the user's path and test for sed and gsed. 5996# Then use that list of sed's as ones to test for truncation. 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for lt_ac_prog in sed gsed; do 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 6005 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6006 fi 6007 done 6008 done 6009done 6010IFS=$as_save_IFS 6011lt_ac_max=0 6012lt_ac_count=0 6013# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6014# along with /bin/sed that truncates output. 6015for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6016 test ! -f $lt_ac_sed && continue 6017 cat /dev/null > conftest.in 6018 lt_ac_count=0 6019 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6020 # Check for GNU sed and select it if it is found. 6021 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6022 lt_cv_path_SED=$lt_ac_sed 6023 break 6024 fi 6025 while true; do 6026 cat conftest.in conftest.in >conftest.tmp 6027 mv conftest.tmp conftest.in 6028 cp conftest.in conftest.nl 6029 echo >>conftest.nl 6030 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6031 cmp -s conftest.out conftest.nl || break 6032 # 10000 chars as input seems more than enough 6033 test $lt_ac_count -gt 10 && break 6034 lt_ac_count=`expr $lt_ac_count + 1` 6035 if test $lt_ac_count -gt $lt_ac_max; then 6036 lt_ac_max=$lt_ac_count 6037 lt_cv_path_SED=$lt_ac_sed 6038 fi 6039 done 6040done 6041 6042fi 6043 6044SED=$lt_cv_path_SED 6045 6046{ echo "$as_me:$LINENO: result: $SED" >&5 6047echo "${ECHO_T}$SED" >&6; } 6048 6049 6050# Check whether --with-gnu-ld was given. 6051if test "${with_gnu_ld+set}" = set; then 6052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6053else 6054 with_gnu_ld=no 6055fi 6056 6057ac_prog=ld 6058if test "$GCC" = yes; then 6059 # Check if gcc -print-prog-name=ld gives a path. 6060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6061echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 6062 case $host in 6063 *-*-mingw*) 6064 # gcc leaves a trailing carriage return which upsets mingw 6065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6066 *) 6067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6068 esac 6069 case $ac_prog in 6070 # Accept absolute paths. 6071 [\\/]* | ?:[\\/]*) 6072 re_direlt='/[^/][^/]*/\.\./' 6073 # Canonicalize the pathname of ld 6074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6077 done 6078 test -z "$LD" && LD="$ac_prog" 6079 ;; 6080 "") 6081 # If it fails, then pretend we aren't using GCC. 6082 ac_prog=ld 6083 ;; 6084 *) 6085 # If it is relative, then search for the first ld in PATH. 6086 with_gnu_ld=unknown 6087 ;; 6088 esac 6089elif test "$with_gnu_ld" = yes; then 6090 { echo "$as_me:$LINENO: checking for GNU ld" >&5 6091echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 6092else 6093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6094echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 6095fi 6096if test "${lt_cv_path_LD+set}" = set; then 6097 echo $ECHO_N "(cached) $ECHO_C" >&6 6098else 6099 if test -z "$LD"; then 6100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6101 for ac_dir in $PATH; do 6102 IFS="$lt_save_ifs" 6103 test -z "$ac_dir" && ac_dir=. 6104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6105 lt_cv_path_LD="$ac_dir/$ac_prog" 6106 # Check to see if the program is GNU ld. I'd rather use --version, 6107 # but apparently some variants of GNU ld only accept -v. 6108 # Break only if it was the GNU/non-GNU ld that we prefer. 6109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6110 *GNU* | *'with BFD'*) 6111 test "$with_gnu_ld" != no && break 6112 ;; 6113 *) 6114 test "$with_gnu_ld" != yes && break 6115 ;; 6116 esac 6117 fi 6118 done 6119 IFS="$lt_save_ifs" 6120else 6121 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6122fi 6123fi 6124 6125LD="$lt_cv_path_LD" 6126if test -n "$LD"; then 6127 { echo "$as_me:$LINENO: result: $LD" >&5 6128echo "${ECHO_T}$LD" >&6; } 6129else 6130 { echo "$as_me:$LINENO: result: no" >&5 6131echo "${ECHO_T}no" >&6; } 6132fi 6133test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6134echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6135 { (exit 1); exit 1; }; } 6136{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6137echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 6138if test "${lt_cv_prog_gnu_ld+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6142case `$LD -v 2>&1 </dev/null` in 6143*GNU* | *'with BFD'*) 6144 lt_cv_prog_gnu_ld=yes 6145 ;; 6146*) 6147 lt_cv_prog_gnu_ld=no 6148 ;; 6149esac 6150fi 6151{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6152echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 6153with_gnu_ld=$lt_cv_prog_gnu_ld 6154 6155 6156{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6157echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 6158if test "${lt_cv_ld_reload_flag+set}" = set; then 6159 echo $ECHO_N "(cached) $ECHO_C" >&6 6160else 6161 lt_cv_ld_reload_flag='-r' 6162fi 6163{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6164echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 6165reload_flag=$lt_cv_ld_reload_flag 6166case $reload_flag in 6167"" | " "*) ;; 6168*) reload_flag=" $reload_flag" ;; 6169esac 6170reload_cmds='$LD$reload_flag -o $output$reload_objs' 6171case $host_os in 6172 darwin*) 6173 if test "$GCC" = yes; then 6174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6175 else 6176 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6177 fi 6178 ;; 6179esac 6180 6181{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6182echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6183if test "${lt_cv_path_NM+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185else 6186 if test -n "$NM"; then 6187 # Let the user override the test. 6188 lt_cv_path_NM="$NM" 6189else 6190 lt_nm_to_check="${ac_tool_prefix}nm" 6191 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6192 lt_nm_to_check="$lt_nm_to_check nm" 6193 fi 6194 for lt_tmp_nm in $lt_nm_to_check; do 6195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6196 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6197 IFS="$lt_save_ifs" 6198 test -z "$ac_dir" && ac_dir=. 6199 tmp_nm="$ac_dir/$lt_tmp_nm" 6200 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6201 # Check to see if the nm accepts a BSD-compat flag. 6202 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6203 # nm: unknown option "B" ignored 6204 # Tru64's nm complains that /dev/null is an invalid object file 6205 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6206 */dev/null* | *'Invalid file or object type'*) 6207 lt_cv_path_NM="$tmp_nm -B" 6208 break 6209 ;; 6210 *) 6211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6212 */dev/null*) 6213 lt_cv_path_NM="$tmp_nm -p" 6214 break 6215 ;; 6216 *) 6217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6218 continue # so that we can try to find one that supports BSD flags 6219 ;; 6220 esac 6221 ;; 6222 esac 6223 fi 6224 done 6225 IFS="$lt_save_ifs" 6226 done 6227 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6228fi 6229fi 6230{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6231echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6232NM="$lt_cv_path_NM" 6233 6234{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6235echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6236LN_S=$as_ln_s 6237if test "$LN_S" = "ln -s"; then 6238 { echo "$as_me:$LINENO: result: yes" >&5 6239echo "${ECHO_T}yes" >&6; } 6240else 6241 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6242echo "${ECHO_T}no, using $LN_S" >&6; } 6243fi 6244 6245{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6246echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 6247if test "${lt_cv_deplibs_check_method+set}" = set; then 6248 echo $ECHO_N "(cached) $ECHO_C" >&6 6249else 6250 lt_cv_file_magic_cmd='$MAGIC_CMD' 6251lt_cv_file_magic_test_file= 6252lt_cv_deplibs_check_method='unknown' 6253# Need to set the preceding variable on all platforms that support 6254# interlibrary dependencies. 6255# 'none' -- dependencies not supported. 6256# `unknown' -- same as none, but documents that we really don't know. 6257# 'pass_all' -- all dependencies passed with no checks. 6258# 'test_compile' -- check by making test program. 6259# 'file_magic [[regex]]' -- check by looking for files in library path 6260# which responds to the $file_magic_cmd with a given extended regex. 6261# If you have `file' or equivalent on your system and you're not sure 6262# whether `pass_all' will *always* work, you probably want this one. 6263 6264case $host_os in 6265aix4* | aix5*) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269beos*) 6270 lt_cv_deplibs_check_method=pass_all 6271 ;; 6272 6273bsdi[45]*) 6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6275 lt_cv_file_magic_cmd='/usr/bin/file -L' 6276 lt_cv_file_magic_test_file=/shlib/libc.so 6277 ;; 6278 6279cygwin*) 6280 # func_win32_libid is a shell function defined in ltmain.sh 6281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6282 lt_cv_file_magic_cmd='func_win32_libid' 6283 ;; 6284 6285mingw* | pw32*) 6286 # Base MSYS/MinGW do not provide the 'file' command needed by 6287 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6288 # unless we find 'file', for example because we are cross-compiling. 6289 if ( file / ) >/dev/null 2>&1; then 6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6291 lt_cv_file_magic_cmd='func_win32_libid' 6292 else 6293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6294 lt_cv_file_magic_cmd='$OBJDUMP -f' 6295 fi 6296 ;; 6297 6298darwin* | rhapsody*) 6299 lt_cv_deplibs_check_method=pass_all 6300 ;; 6301 6302freebsd* | dragonfly*) 6303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6304 case $host_cpu in 6305 i*86 ) 6306 # Not sure whether the presence of OpenBSD here was a mistake. 6307 # Let's accept both of them until this is cleared up. 6308 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6309 lt_cv_file_magic_cmd=/usr/bin/file 6310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6311 ;; 6312 esac 6313 else 6314 lt_cv_deplibs_check_method=pass_all 6315 fi 6316 ;; 6317 6318gnu*) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 6322hpux10.20* | hpux11*) 6323 lt_cv_file_magic_cmd=/usr/bin/file 6324 case $host_cpu in 6325 ia64*) 6326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6327 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6328 ;; 6329 hppa*64*) 6330 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]' 6331 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6332 ;; 6333 *) 6334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6335 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6336 ;; 6337 esac 6338 ;; 6339 6340interix[3-9]*) 6341 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6343 ;; 6344 6345irix5* | irix6* | nonstopux*) 6346 case $LD in 6347 *-32|*"-32 ") libmagic=32-bit;; 6348 *-n32|*"-n32 ") libmagic=N32;; 6349 *-64|*"-64 ") libmagic=64-bit;; 6350 *) libmagic=never-match;; 6351 esac 6352 lt_cv_deplibs_check_method=pass_all 6353 ;; 6354 6355# This must be Linux ELF. 6356linux* | k*bsd*-gnu) 6357 lt_cv_deplibs_check_method=pass_all 6358 ;; 6359 6360netbsd* | netbsdelf*-gnu) 6361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6363 else 6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6365 fi 6366 ;; 6367 6368newos6*) 6369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6370 lt_cv_file_magic_cmd=/usr/bin/file 6371 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6372 ;; 6373 6374nto-qnx*) 6375 lt_cv_deplibs_check_method=unknown 6376 ;; 6377 6378openbsd*) 6379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6381 else 6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6383 fi 6384 ;; 6385 6386osf3* | osf4* | osf5*) 6387 lt_cv_deplibs_check_method=pass_all 6388 ;; 6389 6390rdos*) 6391 lt_cv_deplibs_check_method=pass_all 6392 ;; 6393 6394solaris*) 6395 lt_cv_deplibs_check_method=pass_all 6396 ;; 6397 6398sysv4 | sysv4.3*) 6399 case $host_vendor in 6400 motorola) 6401 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]' 6402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6403 ;; 6404 ncr) 6405 lt_cv_deplibs_check_method=pass_all 6406 ;; 6407 sequent) 6408 lt_cv_file_magic_cmd='/bin/file' 6409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6410 ;; 6411 sni) 6412 lt_cv_file_magic_cmd='/bin/file' 6413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6414 lt_cv_file_magic_test_file=/lib/libc.so 6415 ;; 6416 siemens) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 pc) 6420 lt_cv_deplibs_check_method=pass_all 6421 ;; 6422 esac 6423 ;; 6424 6425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6426 lt_cv_deplibs_check_method=pass_all 6427 ;; 6428esac 6429 6430fi 6431{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6432echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 6433file_magic_cmd=$lt_cv_file_magic_cmd 6434deplibs_check_method=$lt_cv_deplibs_check_method 6435test -z "$deplibs_check_method" && deplibs_check_method=unknown 6436 6437 6438 6439 6440# If no C compiler was specified, use CC. 6441LTCC=${LTCC-"$CC"} 6442 6443# If no C compiler flags were specified, use CFLAGS. 6444LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6445 6446# Allow CC to be a program name with arguments. 6447compiler=$CC 6448 6449# Check whether --enable-libtool-lock was given. 6450if test "${enable_libtool_lock+set}" = set; then 6451 enableval=$enable_libtool_lock; 6452fi 6453 6454test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6455 6456# Some flags need to be propagated to the compiler or linker for good 6457# libtool support. 6458case $host in 6459ia64-*-hpux*) 6460 # Find out which ABI we are using. 6461 echo 'int i;' > conftest.$ac_ext 6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6463 (eval $ac_compile) 2>&5 6464 ac_status=$? 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); }; then 6467 case `/usr/bin/file conftest.$ac_objext` in 6468 *ELF-32*) 6469 HPUX_IA64_MODE="32" 6470 ;; 6471 *ELF-64*) 6472 HPUX_IA64_MODE="64" 6473 ;; 6474 esac 6475 fi 6476 rm -rf conftest* 6477 ;; 6478*-*-irix6*) 6479 # Find out which ABI we are using. 6480 echo '#line 6480 "configure"' > conftest.$ac_ext 6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6482 (eval $ac_compile) 2>&5 6483 ac_status=$? 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); }; then 6486 if test "$lt_cv_prog_gnu_ld" = yes; then 6487 case `/usr/bin/file conftest.$ac_objext` in 6488 *32-bit*) 6489 LD="${LD-ld} -melf32bsmip" 6490 ;; 6491 *N32*) 6492 LD="${LD-ld} -melf32bmipn32" 6493 ;; 6494 *64-bit*) 6495 LD="${LD-ld} -melf64bmip" 6496 ;; 6497 esac 6498 else 6499 case `/usr/bin/file conftest.$ac_objext` in 6500 *32-bit*) 6501 LD="${LD-ld} -32" 6502 ;; 6503 *N32*) 6504 LD="${LD-ld} -n32" 6505 ;; 6506 *64-bit*) 6507 LD="${LD-ld} -64" 6508 ;; 6509 esac 6510 fi 6511 fi 6512 rm -rf conftest* 6513 ;; 6514 6515x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6516s390*-*linux*|sparc*-*linux*) 6517 # Find out which ABI we are using. 6518 echo 'int i;' > conftest.$ac_ext 6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6520 (eval $ac_compile) 2>&5 6521 ac_status=$? 6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6523 (exit $ac_status); }; then 6524 case `/usr/bin/file conftest.o` in 6525 *32-bit*) 6526 case $host in 6527 x86_64-*kfreebsd*-gnu) 6528 LD="${LD-ld} -m elf_i386_fbsd" 6529 ;; 6530 x86_64-*linux*) 6531 LD="${LD-ld} -m elf_i386" 6532 ;; 6533 ppc64-*linux*|powerpc64-*linux*) 6534 LD="${LD-ld} -m elf32ppclinux" 6535 ;; 6536 s390x-*linux*) 6537 LD="${LD-ld} -m elf_s390" 6538 ;; 6539 sparc64-*linux*) 6540 LD="${LD-ld} -m elf32_sparc" 6541 ;; 6542 esac 6543 ;; 6544 *64-bit*) 6545 case $host in 6546 x86_64-*kfreebsd*-gnu) 6547 LD="${LD-ld} -m elf_x86_64_fbsd" 6548 ;; 6549 x86_64-*linux*) 6550 LD="${LD-ld} -m elf_x86_64" 6551 ;; 6552 ppc*-*linux*|powerpc*-*linux*) 6553 LD="${LD-ld} -m elf64ppc" 6554 ;; 6555 s390*-*linux*) 6556 LD="${LD-ld} -m elf64_s390" 6557 ;; 6558 sparc*-*linux*) 6559 LD="${LD-ld} -m elf64_sparc" 6560 ;; 6561 esac 6562 ;; 6563 esac 6564 fi 6565 rm -rf conftest* 6566 ;; 6567 6568*-*-sco3.2v5*) 6569 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6570 SAVE_CFLAGS="$CFLAGS" 6571 CFLAGS="$CFLAGS -belf" 6572 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6573echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 6574if test "${lt_cv_cc_needs_belf+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576else 6577 ac_ext=c 6578ac_cpp='$CPP $CPPFLAGS' 6579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6581ac_compiler_gnu=$ac_cv_c_compiler_gnu 6582 6583 cat >conftest.$ac_ext <<_ACEOF 6584/* confdefs.h. */ 6585_ACEOF 6586cat confdefs.h >>conftest.$ac_ext 6587cat >>conftest.$ac_ext <<_ACEOF 6588/* end confdefs.h. */ 6589 6590int 6591main () 6592{ 6593 6594 ; 6595 return 0; 6596} 6597_ACEOF 6598rm -f conftest.$ac_objext conftest$ac_exeext 6599if { (ac_try="$ac_link" 6600case "(($ac_try" in 6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6602 *) ac_try_echo=$ac_try;; 6603esac 6604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6605 (eval "$ac_link") 2>conftest.er1 6606 ac_status=$? 6607 grep -v '^ *+' conftest.er1 >conftest.err 6608 rm -f conftest.er1 6609 cat conftest.err >&5 6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6611 (exit $ac_status); } && { 6612 test -z "$ac_c_werror_flag" || 6613 test ! -s conftest.err 6614 } && test -s conftest$ac_exeext && 6615 $as_test_x conftest$ac_exeext; then 6616 lt_cv_cc_needs_belf=yes 6617else 6618 echo "$as_me: failed program was:" >&5 6619sed 's/^/| /' conftest.$ac_ext >&5 6620 6621 lt_cv_cc_needs_belf=no 6622fi 6623 6624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6625 conftest$ac_exeext conftest.$ac_ext 6626 ac_ext=c 6627ac_cpp='$CPP $CPPFLAGS' 6628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6630ac_compiler_gnu=$ac_cv_c_compiler_gnu 6631 6632fi 6633{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6634echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 6635 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6636 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6637 CFLAGS="$SAVE_CFLAGS" 6638 fi 6639 ;; 6640sparc*-*solaris*) 6641 # Find out which ABI we are using. 6642 echo 'int i;' > conftest.$ac_ext 6643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6644 (eval $ac_compile) 2>&5 6645 ac_status=$? 6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6647 (exit $ac_status); }; then 6648 case `/usr/bin/file conftest.o` in 6649 *64-bit*) 6650 case $lt_cv_prog_gnu_ld in 6651 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6652 *) LD="${LD-ld} -64" ;; 6653 esac 6654 ;; 6655 esac 6656 fi 6657 rm -rf conftest* 6658 ;; 6659 6660 6661esac 6662 6663need_locks="$enable_libtool_lock" 6664 6665 6666# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6677 inttypes.h stdint.h unistd.h 6678do 6679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6680{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6683 echo $ECHO_N "(cached) $ECHO_C" >&6 6684else 6685 cat >conftest.$ac_ext <<_ACEOF 6686/* confdefs.h. */ 6687_ACEOF 6688cat confdefs.h >>conftest.$ac_ext 6689cat >>conftest.$ac_ext <<_ACEOF 6690/* end confdefs.h. */ 6691$ac_includes_default 6692 6693#include <$ac_header> 6694_ACEOF 6695rm -f conftest.$ac_objext 6696if { (ac_try="$ac_compile" 6697case "(($ac_try" in 6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6699 *) ac_try_echo=$ac_try;; 6700esac 6701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6702 (eval "$ac_compile") 2>conftest.er1 6703 ac_status=$? 6704 grep -v '^ *+' conftest.er1 >conftest.err 6705 rm -f conftest.er1 6706 cat conftest.err >&5 6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6708 (exit $ac_status); } && { 6709 test -z "$ac_c_werror_flag" || 6710 test ! -s conftest.err 6711 } && test -s conftest.$ac_objext; then 6712 eval "$as_ac_Header=yes" 6713else 6714 echo "$as_me: failed program was:" >&5 6715sed 's/^/| /' conftest.$ac_ext >&5 6716 6717 eval "$as_ac_Header=no" 6718fi 6719 6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721fi 6722ac_res=`eval echo '${'$as_ac_Header'}'` 6723 { echo "$as_me:$LINENO: result: $ac_res" >&5 6724echo "${ECHO_T}$ac_res" >&6; } 6725if test `eval echo '${'$as_ac_Header'}'` = yes; then 6726 cat >>confdefs.h <<_ACEOF 6727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6728_ACEOF 6729 6730fi 6731 6732done 6733 6734 6735 6736for ac_header in dlfcn.h 6737do 6738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6740 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6743 echo $ECHO_N "(cached) $ECHO_C" >&6 6744fi 6745ac_res=`eval echo '${'$as_ac_Header'}'` 6746 { echo "$as_me:$LINENO: result: $ac_res" >&5 6747echo "${ECHO_T}$ac_res" >&6; } 6748else 6749 # Is the header compilable? 6750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6752cat >conftest.$ac_ext <<_ACEOF 6753/* confdefs.h. */ 6754_ACEOF 6755cat confdefs.h >>conftest.$ac_ext 6756cat >>conftest.$ac_ext <<_ACEOF 6757/* end confdefs.h. */ 6758$ac_includes_default 6759#include <$ac_header> 6760_ACEOF 6761rm -f conftest.$ac_objext 6762if { (ac_try="$ac_compile" 6763case "(($ac_try" in 6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6765 *) ac_try_echo=$ac_try;; 6766esac 6767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6768 (eval "$ac_compile") 2>conftest.er1 6769 ac_status=$? 6770 grep -v '^ *+' conftest.er1 >conftest.err 6771 rm -f conftest.er1 6772 cat conftest.err >&5 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); } && { 6775 test -z "$ac_c_werror_flag" || 6776 test ! -s conftest.err 6777 } && test -s conftest.$ac_objext; then 6778 ac_header_compiler=yes 6779else 6780 echo "$as_me: failed program was:" >&5 6781sed 's/^/| /' conftest.$ac_ext >&5 6782 6783 ac_header_compiler=no 6784fi 6785 6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6788echo "${ECHO_T}$ac_header_compiler" >&6; } 6789 6790# Is the header present? 6791{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6793cat >conftest.$ac_ext <<_ACEOF 6794/* confdefs.h. */ 6795_ACEOF 6796cat confdefs.h >>conftest.$ac_ext 6797cat >>conftest.$ac_ext <<_ACEOF 6798/* end confdefs.h. */ 6799#include <$ac_header> 6800_ACEOF 6801if { (ac_try="$ac_cpp conftest.$ac_ext" 6802case "(($ac_try" in 6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6804 *) ac_try_echo=$ac_try;; 6805esac 6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6808 ac_status=$? 6809 grep -v '^ *+' conftest.er1 >conftest.err 6810 rm -f conftest.er1 6811 cat conftest.err >&5 6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6813 (exit $ac_status); } >/dev/null && { 6814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6815 test ! -s conftest.err 6816 }; then 6817 ac_header_preproc=yes 6818else 6819 echo "$as_me: failed program was:" >&5 6820sed 's/^/| /' conftest.$ac_ext >&5 6821 6822 ac_header_preproc=no 6823fi 6824 6825rm -f conftest.err conftest.$ac_ext 6826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6827echo "${ECHO_T}$ac_header_preproc" >&6; } 6828 6829# So? What about this header? 6830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6831 yes:no: ) 6832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6836 ac_header_preproc=yes 6837 ;; 6838 no:yes:* ) 6839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6851 ( cat <<\_ASBOX 6852## ------------------------------------------------------ ## 6853## Report this to bastard-libdisasm@lists.sourceforge.net ## 6854## ------------------------------------------------------ ## 6855_ASBOX 6856 ) | sed "s/^/$as_me: WARNING: /" >&2 6857 ;; 6858esac 6859{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6862 echo $ECHO_N "(cached) $ECHO_C" >&6 6863else 6864 eval "$as_ac_Header=\$ac_header_preproc" 6865fi 6866ac_res=`eval echo '${'$as_ac_Header'}'` 6867 { echo "$as_me:$LINENO: result: $ac_res" >&5 6868echo "${ECHO_T}$ac_res" >&6; } 6869 6870fi 6871if test `eval echo '${'$as_ac_Header'}'` = yes; then 6872 cat >>confdefs.h <<_ACEOF 6873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6874_ACEOF 6875 6876fi 6877 6878done 6879 6880ac_ext=cpp 6881ac_cpp='$CXXCPP $CPPFLAGS' 6882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6885if test -z "$CXX"; then 6886 if test -n "$CCC"; then 6887 CXX=$CCC 6888 else 6889 if test -n "$ac_tool_prefix"; then 6890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6891 do 6892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6893set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6896if test "${ac_cv_prog_CXX+set}" = set; then 6897 echo $ECHO_N "(cached) $ECHO_C" >&6 6898else 6899 if test -n "$CXX"; then 6900 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6901else 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913done 6914done 6915IFS=$as_save_IFS 6916 6917fi 6918fi 6919CXX=$ac_cv_prog_CXX 6920if test -n "$CXX"; then 6921 { echo "$as_me:$LINENO: result: $CXX" >&5 6922echo "${ECHO_T}$CXX" >&6; } 6923else 6924 { echo "$as_me:$LINENO: result: no" >&5 6925echo "${ECHO_T}no" >&6; } 6926fi 6927 6928 6929 test -n "$CXX" && break 6930 done 6931fi 6932if test -z "$CXX"; then 6933 ac_ct_CXX=$CXX 6934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6935do 6936 # Extract the first word of "$ac_prog", so it can be a program name with args. 6937set dummy $ac_prog; ac_word=$2 6938{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6940if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6941 echo $ECHO_N "(cached) $ECHO_C" >&6 6942else 6943 if test -n "$ac_ct_CXX"; then 6944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6953 ac_cv_prog_ac_ct_CXX="$ac_prog" 6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6964if test -n "$ac_ct_CXX"; then 6965 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6966echo "${ECHO_T}$ac_ct_CXX" >&6; } 6967else 6968 { echo "$as_me:$LINENO: result: no" >&5 6969echo "${ECHO_T}no" >&6; } 6970fi 6971 6972 6973 test -n "$ac_ct_CXX" && break 6974done 6975 6976 if test "x$ac_ct_CXX" = x; then 6977 CXX="g++" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6982whose name does not start with the host triplet. If you think this 6983configuration is useful to you, please write to autoconf@gnu.org." >&5 6984echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6985whose name does not start with the host triplet. If you think this 6986configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6987ac_tool_warned=yes ;; 6988esac 6989 CXX=$ac_ct_CXX 6990 fi 6991fi 6992 6993 fi 6994fi 6995# Provide some information about the compiler. 6996echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6997ac_compiler=`set X $ac_compile; echo $2` 6998{ (ac_try="$ac_compiler --version >&5" 6999case "(($ac_try" in 7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7001 *) ac_try_echo=$ac_try;; 7002esac 7003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7004 (eval "$ac_compiler --version >&5") 2>&5 7005 ac_status=$? 7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); } 7008{ (ac_try="$ac_compiler -v >&5" 7009case "(($ac_try" in 7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7011 *) ac_try_echo=$ac_try;; 7012esac 7013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7014 (eval "$ac_compiler -v >&5") 2>&5 7015 ac_status=$? 7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7017 (exit $ac_status); } 7018{ (ac_try="$ac_compiler -V >&5" 7019case "(($ac_try" in 7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7021 *) ac_try_echo=$ac_try;; 7022esac 7023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7024 (eval "$ac_compiler -V >&5") 2>&5 7025 ac_status=$? 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7027 (exit $ac_status); } 7028 7029{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7030echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 7031if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7032 echo $ECHO_N "(cached) $ECHO_C" >&6 7033else 7034 cat >conftest.$ac_ext <<_ACEOF 7035/* confdefs.h. */ 7036_ACEOF 7037cat confdefs.h >>conftest.$ac_ext 7038cat >>conftest.$ac_ext <<_ACEOF 7039/* end confdefs.h. */ 7040 7041int 7042main () 7043{ 7044#ifndef __GNUC__ 7045 choke me 7046#endif 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052rm -f conftest.$ac_objext 7053if { (ac_try="$ac_compile" 7054case "(($ac_try" in 7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7056 *) ac_try_echo=$ac_try;; 7057esac 7058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7059 (eval "$ac_compile") 2>conftest.er1 7060 ac_status=$? 7061 grep -v '^ *+' conftest.er1 >conftest.err 7062 rm -f conftest.er1 7063 cat conftest.err >&5 7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); } && { 7066 test -z "$ac_cxx_werror_flag" || 7067 test ! -s conftest.err 7068 } && test -s conftest.$ac_objext; then 7069 ac_compiler_gnu=yes 7070else 7071 echo "$as_me: failed program was:" >&5 7072sed 's/^/| /' conftest.$ac_ext >&5 7073 7074 ac_compiler_gnu=no 7075fi 7076 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7079 7080fi 7081{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7082echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 7083GXX=`test $ac_compiler_gnu = yes && echo yes` 7084ac_test_CXXFLAGS=${CXXFLAGS+set} 7085ac_save_CXXFLAGS=$CXXFLAGS 7086{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7087echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 7088if test "${ac_cv_prog_cxx_g+set}" = set; then 7089 echo $ECHO_N "(cached) $ECHO_C" >&6 7090else 7091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7092 ac_cxx_werror_flag=yes 7093 ac_cv_prog_cxx_g=no 7094 CXXFLAGS="-g" 7095 cat >conftest.$ac_ext <<_ACEOF 7096/* confdefs.h. */ 7097_ACEOF 7098cat confdefs.h >>conftest.$ac_ext 7099cat >>conftest.$ac_ext <<_ACEOF 7100/* end confdefs.h. */ 7101 7102int 7103main () 7104{ 7105 7106 ; 7107 return 0; 7108} 7109_ACEOF 7110rm -f conftest.$ac_objext 7111if { (ac_try="$ac_compile" 7112case "(($ac_try" in 7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7114 *) ac_try_echo=$ac_try;; 7115esac 7116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7117 (eval "$ac_compile") 2>conftest.er1 7118 ac_status=$? 7119 grep -v '^ *+' conftest.er1 >conftest.err 7120 rm -f conftest.er1 7121 cat conftest.err >&5 7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7123 (exit $ac_status); } && { 7124 test -z "$ac_cxx_werror_flag" || 7125 test ! -s conftest.err 7126 } && test -s conftest.$ac_objext; then 7127 ac_cv_prog_cxx_g=yes 7128else 7129 echo "$as_me: failed program was:" >&5 7130sed 's/^/| /' conftest.$ac_ext >&5 7131 7132 CXXFLAGS="" 7133 cat >conftest.$ac_ext <<_ACEOF 7134/* confdefs.h. */ 7135_ACEOF 7136cat confdefs.h >>conftest.$ac_ext 7137cat >>conftest.$ac_ext <<_ACEOF 7138/* end confdefs.h. */ 7139 7140int 7141main () 7142{ 7143 7144 ; 7145 return 0; 7146} 7147_ACEOF 7148rm -f conftest.$ac_objext 7149if { (ac_try="$ac_compile" 7150case "(($ac_try" in 7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7152 *) ac_try_echo=$ac_try;; 7153esac 7154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7155 (eval "$ac_compile") 2>conftest.er1 7156 ac_status=$? 7157 grep -v '^ *+' conftest.er1 >conftest.err 7158 rm -f conftest.er1 7159 cat conftest.err >&5 7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7161 (exit $ac_status); } && { 7162 test -z "$ac_cxx_werror_flag" || 7163 test ! -s conftest.err 7164 } && test -s conftest.$ac_objext; then 7165 : 7166else 7167 echo "$as_me: failed program was:" >&5 7168sed 's/^/| /' conftest.$ac_ext >&5 7169 7170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7171 CXXFLAGS="-g" 7172 cat >conftest.$ac_ext <<_ACEOF 7173/* confdefs.h. */ 7174_ACEOF 7175cat confdefs.h >>conftest.$ac_ext 7176cat >>conftest.$ac_ext <<_ACEOF 7177/* end confdefs.h. */ 7178 7179int 7180main () 7181{ 7182 7183 ; 7184 return 0; 7185} 7186_ACEOF 7187rm -f conftest.$ac_objext 7188if { (ac_try="$ac_compile" 7189case "(($ac_try" in 7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7191 *) ac_try_echo=$ac_try;; 7192esac 7193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7194 (eval "$ac_compile") 2>conftest.er1 7195 ac_status=$? 7196 grep -v '^ *+' conftest.er1 >conftest.err 7197 rm -f conftest.er1 7198 cat conftest.err >&5 7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200 (exit $ac_status); } && { 7201 test -z "$ac_cxx_werror_flag" || 7202 test ! -s conftest.err 7203 } && test -s conftest.$ac_objext; then 7204 ac_cv_prog_cxx_g=yes 7205else 7206 echo "$as_me: failed program was:" >&5 7207sed 's/^/| /' conftest.$ac_ext >&5 7208 7209 7210fi 7211 7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7213fi 7214 7215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7216fi 7217 7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7219 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7220fi 7221{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7222echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 7223if test "$ac_test_CXXFLAGS" = set; then 7224 CXXFLAGS=$ac_save_CXXFLAGS 7225elif test $ac_cv_prog_cxx_g = yes; then 7226 if test "$GXX" = yes; then 7227 CXXFLAGS="-g -O2" 7228 else 7229 CXXFLAGS="-g" 7230 fi 7231else 7232 if test "$GXX" = yes; then 7233 CXXFLAGS="-O2" 7234 else 7235 CXXFLAGS= 7236 fi 7237fi 7238ac_ext=cpp 7239ac_cpp='$CXXCPP $CPPFLAGS' 7240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7243 7244depcc="$CXX" am_compiler_list= 7245 7246{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7247echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 7248if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7249 echo $ECHO_N "(cached) $ECHO_C" >&6 7250else 7251 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7252 # We make a subdir and do the tests there. Otherwise we can end up 7253 # making bogus files that we don't know about and never remove. For 7254 # instance it was reported that on HP-UX the gcc test will end up 7255 # making a dummy file named `D' -- because `-MD' means `put the output 7256 # in D'. 7257 mkdir conftest.dir 7258 # Copy depcomp to subdir because otherwise we won't find it if we're 7259 # using a relative directory. 7260 cp "$am_depcomp" conftest.dir 7261 cd conftest.dir 7262 # We will build objects and dependencies in a subdirectory because 7263 # it helps to detect inapplicable dependency modes. For instance 7264 # both Tru64's cc and ICC support -MD to output dependencies as a 7265 # side effect of compilation, but ICC will put the dependencies in 7266 # the current directory while Tru64 will put them in the object 7267 # directory. 7268 mkdir sub 7269 7270 am_cv_CXX_dependencies_compiler_type=none 7271 if test "$am_compiler_list" = ""; then 7272 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7273 fi 7274 for depmode in $am_compiler_list; do 7275 # Setup a source with many dependencies, because some compilers 7276 # like to wrap large dependency lists on column 80 (with \), and 7277 # we should not choose a depcomp mode which is confused by this. 7278 # 7279 # We need to recreate these files for each test, as the compiler may 7280 # overwrite some of them when testing with obscure command lines. 7281 # This happens at least with the AIX C compiler. 7282 : > sub/conftest.c 7283 for i in 1 2 3 4 5 6; do 7284 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7285 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7286 # Solaris 8's {/usr,}/bin/sh. 7287 touch sub/conftst$i.h 7288 done 7289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7290 7291 case $depmode in 7292 nosideeffect) 7293 # after this tag, mechanisms are not by side-effect, so they'll 7294 # only be used when explicitly requested 7295 if test "x$enable_dependency_tracking" = xyes; then 7296 continue 7297 else 7298 break 7299 fi 7300 ;; 7301 none) break ;; 7302 esac 7303 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7304 # mode. It turns out that the SunPro C++ compiler does not properly 7305 # handle `-M -o', and we need to detect this. 7306 if depmode=$depmode \ 7307 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7309 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7310 >/dev/null 2>conftest.err && 7311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7313 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7315 # icc doesn't choke on unknown options, it will just issue warnings 7316 # or remarks (even with -Werror). So we grep stderr for any message 7317 # that says an option was ignored or not supported. 7318 # When given -MP, icc 7.0 and 7.1 complain thusly: 7319 # icc: Command line warning: ignoring option '-M'; no argument required 7320 # The diagnosis changed in icc 8.0: 7321 # icc: Command line remark: option '-MP' not supported 7322 if (grep 'ignoring option' conftest.err || 7323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7324 am_cv_CXX_dependencies_compiler_type=$depmode 7325 break 7326 fi 7327 fi 7328 done 7329 7330 cd .. 7331 rm -rf conftest.dir 7332else 7333 am_cv_CXX_dependencies_compiler_type=none 7334fi 7335 7336fi 7337{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7338echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 7339CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7340 7341 if 7342 test "x$enable_dependency_tracking" != xno \ 7343 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7344 am__fastdepCXX_TRUE= 7345 am__fastdepCXX_FALSE='#' 7346else 7347 am__fastdepCXX_TRUE='#' 7348 am__fastdepCXX_FALSE= 7349fi 7350 7351 7352 7353 7354if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7356 (test "X$CXX" != "Xg++"))) ; then 7357 ac_ext=cpp 7358ac_cpp='$CXXCPP $CPPFLAGS' 7359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7362{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7363echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 7364if test -z "$CXXCPP"; then 7365 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7366 echo $ECHO_N "(cached) $ECHO_C" >&6 7367else 7368 # Double quotes because CXXCPP needs to be expanded 7369 for CXXCPP in "$CXX -E" "/lib/cpp" 7370 do 7371 ac_preproc_ok=false 7372for ac_cxx_preproc_warn_flag in '' yes 7373do 7374 # Use a header file that comes with gcc, so configuring glibc 7375 # with a fresh cross-compiler works. 7376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7377 # <limits.h> exists even on freestanding compilers. 7378 # On the NeXT, cc -E runs the code through the compiler's parser, 7379 # not just through cpp. "Syntax error" is here to catch this case. 7380 cat >conftest.$ac_ext <<_ACEOF 7381/* confdefs.h. */ 7382_ACEOF 7383cat confdefs.h >>conftest.$ac_ext 7384cat >>conftest.$ac_ext <<_ACEOF 7385/* end confdefs.h. */ 7386#ifdef __STDC__ 7387# include <limits.h> 7388#else 7389# include <assert.h> 7390#endif 7391 Syntax error 7392_ACEOF 7393if { (ac_try="$ac_cpp conftest.$ac_ext" 7394case "(($ac_try" in 7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7396 *) ac_try_echo=$ac_try;; 7397esac 7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7400 ac_status=$? 7401 grep -v '^ *+' conftest.er1 >conftest.err 7402 rm -f conftest.er1 7403 cat conftest.err >&5 7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7405 (exit $ac_status); } >/dev/null && { 7406 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7407 test ! -s conftest.err 7408 }; then 7409 : 7410else 7411 echo "$as_me: failed program was:" >&5 7412sed 's/^/| /' conftest.$ac_ext >&5 7413 7414 # Broken: fails on valid input. 7415continue 7416fi 7417 7418rm -f conftest.err conftest.$ac_ext 7419 7420 # OK, works on sane cases. Now check whether nonexistent headers 7421 # can be detected and how. 7422 cat >conftest.$ac_ext <<_ACEOF 7423/* confdefs.h. */ 7424_ACEOF 7425cat confdefs.h >>conftest.$ac_ext 7426cat >>conftest.$ac_ext <<_ACEOF 7427/* end confdefs.h. */ 7428#include <ac_nonexistent.h> 7429_ACEOF 7430if { (ac_try="$ac_cpp conftest.$ac_ext" 7431case "(($ac_try" in 7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7433 *) ac_try_echo=$ac_try;; 7434esac 7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7437 ac_status=$? 7438 grep -v '^ *+' conftest.er1 >conftest.err 7439 rm -f conftest.er1 7440 cat conftest.err >&5 7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7442 (exit $ac_status); } >/dev/null && { 7443 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7444 test ! -s conftest.err 7445 }; then 7446 # Broken: success on invalid input. 7447continue 7448else 7449 echo "$as_me: failed program was:" >&5 7450sed 's/^/| /' conftest.$ac_ext >&5 7451 7452 # Passes both tests. 7453ac_preproc_ok=: 7454break 7455fi 7456 7457rm -f conftest.err conftest.$ac_ext 7458 7459done 7460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7461rm -f conftest.err conftest.$ac_ext 7462if $ac_preproc_ok; then 7463 break 7464fi 7465 7466 done 7467 ac_cv_prog_CXXCPP=$CXXCPP 7468 7469fi 7470 CXXCPP=$ac_cv_prog_CXXCPP 7471else 7472 ac_cv_prog_CXXCPP=$CXXCPP 7473fi 7474{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 7475echo "${ECHO_T}$CXXCPP" >&6; } 7476ac_preproc_ok=false 7477for ac_cxx_preproc_warn_flag in '' yes 7478do 7479 # Use a header file that comes with gcc, so configuring glibc 7480 # with a fresh cross-compiler works. 7481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7482 # <limits.h> exists even on freestanding compilers. 7483 # On the NeXT, cc -E runs the code through the compiler's parser, 7484 # not just through cpp. "Syntax error" is here to catch this case. 7485 cat >conftest.$ac_ext <<_ACEOF 7486/* confdefs.h. */ 7487_ACEOF 7488cat confdefs.h >>conftest.$ac_ext 7489cat >>conftest.$ac_ext <<_ACEOF 7490/* end confdefs.h. */ 7491#ifdef __STDC__ 7492# include <limits.h> 7493#else 7494# include <assert.h> 7495#endif 7496 Syntax error 7497_ACEOF 7498if { (ac_try="$ac_cpp conftest.$ac_ext" 7499case "(($ac_try" in 7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7501 *) ac_try_echo=$ac_try;; 7502esac 7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7505 ac_status=$? 7506 grep -v '^ *+' conftest.er1 >conftest.err 7507 rm -f conftest.er1 7508 cat conftest.err >&5 7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7510 (exit $ac_status); } >/dev/null && { 7511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7512 test ! -s conftest.err 7513 }; then 7514 : 7515else 7516 echo "$as_me: failed program was:" >&5 7517sed 's/^/| /' conftest.$ac_ext >&5 7518 7519 # Broken: fails on valid input. 7520continue 7521fi 7522 7523rm -f conftest.err conftest.$ac_ext 7524 7525 # OK, works on sane cases. Now check whether nonexistent headers 7526 # can be detected and how. 7527 cat >conftest.$ac_ext <<_ACEOF 7528/* confdefs.h. */ 7529_ACEOF 7530cat confdefs.h >>conftest.$ac_ext 7531cat >>conftest.$ac_ext <<_ACEOF 7532/* end confdefs.h. */ 7533#include <ac_nonexistent.h> 7534_ACEOF 7535if { (ac_try="$ac_cpp conftest.$ac_ext" 7536case "(($ac_try" in 7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7538 *) ac_try_echo=$ac_try;; 7539esac 7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7542 ac_status=$? 7543 grep -v '^ *+' conftest.er1 >conftest.err 7544 rm -f conftest.er1 7545 cat conftest.err >&5 7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7547 (exit $ac_status); } >/dev/null && { 7548 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7549 test ! -s conftest.err 7550 }; then 7551 # Broken: success on invalid input. 7552continue 7553else 7554 echo "$as_me: failed program was:" >&5 7555sed 's/^/| /' conftest.$ac_ext >&5 7556 7557 # Passes both tests. 7558ac_preproc_ok=: 7559break 7560fi 7561 7562rm -f conftest.err conftest.$ac_ext 7563 7564done 7565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7566rm -f conftest.err conftest.$ac_ext 7567if $ac_preproc_ok; then 7568 : 7569else 7570 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7571See \`config.log' for more details." >&5 7572echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7573See \`config.log' for more details." >&2;} 7574 { (exit 1); exit 1; }; } 7575fi 7576 7577ac_ext=cpp 7578ac_cpp='$CXXCPP $CPPFLAGS' 7579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7582 7583fi 7584 7585 7586ac_ext=f 7587ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7588ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7589ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7590if test -n "$ac_tool_prefix"; then 7591 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7592 do 7593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7595{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7597if test "${ac_cv_prog_F77+set}" = set; then 7598 echo $ECHO_N "(cached) $ECHO_C" >&6 7599else 7600 if test -n "$F77"; then 7601 ac_cv_prog_F77="$F77" # Let the user override the test. 7602else 7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7604for as_dir in $PATH 7605do 7606 IFS=$as_save_IFS 7607 test -z "$as_dir" && as_dir=. 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7610 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614done 7615done 7616IFS=$as_save_IFS 7617 7618fi 7619fi 7620F77=$ac_cv_prog_F77 7621if test -n "$F77"; then 7622 { echo "$as_me:$LINENO: result: $F77" >&5 7623echo "${ECHO_T}$F77" >&6; } 7624else 7625 { echo "$as_me:$LINENO: result: no" >&5 7626echo "${ECHO_T}no" >&6; } 7627fi 7628 7629 7630 test -n "$F77" && break 7631 done 7632fi 7633if test -z "$F77"; then 7634 ac_ct_F77=$F77 7635 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7636do 7637 # Extract the first word of "$ac_prog", so it can be a program name with args. 7638set dummy $ac_prog; ac_word=$2 7639{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7641if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7642 echo $ECHO_N "(cached) $ECHO_C" >&6 7643else 7644 if test -n "$ac_ct_F77"; then 7645 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7654 ac_cv_prog_ac_ct_F77="$ac_prog" 7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_F77=$ac_cv_prog_ac_ct_F77 7665if test -n "$ac_ct_F77"; then 7666 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7667echo "${ECHO_T}$ac_ct_F77" >&6; } 7668else 7669 { echo "$as_me:$LINENO: result: no" >&5 7670echo "${ECHO_T}no" >&6; } 7671fi 7672 7673 7674 test -n "$ac_ct_F77" && break 7675done 7676 7677 if test "x$ac_ct_F77" = x; then 7678 F77="" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7683whose name does not start with the host triplet. If you think this 7684configuration is useful to you, please write to autoconf@gnu.org." >&5 7685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7686whose name does not start with the host triplet. If you think this 7687configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7688ac_tool_warned=yes ;; 7689esac 7690 F77=$ac_ct_F77 7691 fi 7692fi 7693 7694 7695# Provide some information about the compiler. 7696echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7697ac_compiler=`set X $ac_compile; echo $2` 7698{ (ac_try="$ac_compiler --version >&5" 7699case "(($ac_try" in 7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7701 *) ac_try_echo=$ac_try;; 7702esac 7703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7704 (eval "$ac_compiler --version >&5") 2>&5 7705 ac_status=$? 7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7707 (exit $ac_status); } 7708{ (ac_try="$ac_compiler -v >&5" 7709case "(($ac_try" in 7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7711 *) ac_try_echo=$ac_try;; 7712esac 7713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7714 (eval "$ac_compiler -v >&5") 2>&5 7715 ac_status=$? 7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7717 (exit $ac_status); } 7718{ (ac_try="$ac_compiler -V >&5" 7719case "(($ac_try" in 7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7721 *) ac_try_echo=$ac_try;; 7722esac 7723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7724 (eval "$ac_compiler -V >&5") 2>&5 7725 ac_status=$? 7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7727 (exit $ac_status); } 7728rm -f a.out 7729 7730# If we don't use `.F' as extension, the preprocessor is not run on the 7731# input file. (Note that this only needs to work for GNU compilers.) 7732ac_save_ext=$ac_ext 7733ac_ext=F 7734{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7735echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 7736if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7737 echo $ECHO_N "(cached) $ECHO_C" >&6 7738else 7739 cat >conftest.$ac_ext <<_ACEOF 7740 program main 7741#ifndef __GNUC__ 7742 choke me 7743#endif 7744 7745 end 7746_ACEOF 7747rm -f conftest.$ac_objext 7748if { (ac_try="$ac_compile" 7749case "(($ac_try" in 7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7751 *) ac_try_echo=$ac_try;; 7752esac 7753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7754 (eval "$ac_compile") 2>conftest.er1 7755 ac_status=$? 7756 grep -v '^ *+' conftest.er1 >conftest.err 7757 rm -f conftest.er1 7758 cat conftest.err >&5 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } && { 7761 test -z "$ac_f77_werror_flag" || 7762 test ! -s conftest.err 7763 } && test -s conftest.$ac_objext; then 7764 ac_compiler_gnu=yes 7765else 7766 echo "$as_me: failed program was:" >&5 7767sed 's/^/| /' conftest.$ac_ext >&5 7768 7769 ac_compiler_gnu=no 7770fi 7771 7772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7773ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7774 7775fi 7776{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7777echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 7778ac_ext=$ac_save_ext 7779ac_test_FFLAGS=${FFLAGS+set} 7780ac_save_FFLAGS=$FFLAGS 7781FFLAGS= 7782{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7783echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 7784if test "${ac_cv_prog_f77_g+set}" = set; then 7785 echo $ECHO_N "(cached) $ECHO_C" >&6 7786else 7787 FFLAGS=-g 7788cat >conftest.$ac_ext <<_ACEOF 7789 program main 7790 7791 end 7792_ACEOF 7793rm -f conftest.$ac_objext 7794if { (ac_try="$ac_compile" 7795case "(($ac_try" in 7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7797 *) ac_try_echo=$ac_try;; 7798esac 7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7800 (eval "$ac_compile") 2>conftest.er1 7801 ac_status=$? 7802 grep -v '^ *+' conftest.er1 >conftest.err 7803 rm -f conftest.er1 7804 cat conftest.err >&5 7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7806 (exit $ac_status); } && { 7807 test -z "$ac_f77_werror_flag" || 7808 test ! -s conftest.err 7809 } && test -s conftest.$ac_objext; then 7810 ac_cv_prog_f77_g=yes 7811else 7812 echo "$as_me: failed program was:" >&5 7813sed 's/^/| /' conftest.$ac_ext >&5 7814 7815 ac_cv_prog_f77_g=no 7816fi 7817 7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7819 7820fi 7821{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7822echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 7823if test "$ac_test_FFLAGS" = set; then 7824 FFLAGS=$ac_save_FFLAGS 7825elif test $ac_cv_prog_f77_g = yes; then 7826 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7827 FFLAGS="-g -O2" 7828 else 7829 FFLAGS="-g" 7830 fi 7831else 7832 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7833 FFLAGS="-O2" 7834 else 7835 FFLAGS= 7836 fi 7837fi 7838 7839G77=`test $ac_compiler_gnu = yes && echo yes` 7840ac_ext=c 7841ac_cpp='$CPP $CPPFLAGS' 7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7844ac_compiler_gnu=$ac_cv_c_compiler_gnu 7845 7846 7847 7848# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7849 7850# find the maximum length of command line arguments 7851{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7852echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 7853if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7854 echo $ECHO_N "(cached) $ECHO_C" >&6 7855else 7856 i=0 7857 teststring="ABCD" 7858 7859 case $build_os in 7860 msdosdjgpp*) 7861 # On DJGPP, this test can blow up pretty badly due to problems in libc 7862 # (any single argument exceeding 2000 bytes causes a buffer overrun 7863 # during glob expansion). Even if it were fixed, the result of this 7864 # check would be larger than it should be. 7865 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7866 ;; 7867 7868 gnu*) 7869 # Under GNU Hurd, this test is not required because there is 7870 # no limit to the length of command line arguments. 7871 # Libtool will interpret -1 as no limit whatsoever 7872 lt_cv_sys_max_cmd_len=-1; 7873 ;; 7874 7875 cygwin* | mingw*) 7876 # On Win9x/ME, this test blows up -- it succeeds, but takes 7877 # about 5 minutes as the teststring grows exponentially. 7878 # Worse, since 9x/ME are not pre-emptively multitasking, 7879 # you end up with a "frozen" computer, even though with patience 7880 # the test eventually succeeds (with a max line length of 256k). 7881 # Instead, let's just punt: use the minimum linelength reported by 7882 # all of the supported platforms: 8192 (on NT/2K/XP). 7883 lt_cv_sys_max_cmd_len=8192; 7884 ;; 7885 7886 amigaos*) 7887 # On AmigaOS with pdksh, this test takes hours, literally. 7888 # So we just punt and use a minimum line length of 8192. 7889 lt_cv_sys_max_cmd_len=8192; 7890 ;; 7891 7892 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7893 # This has been around since 386BSD, at least. Likely further. 7894 if test -x /sbin/sysctl; then 7895 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7896 elif test -x /usr/sbin/sysctl; then 7897 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7898 else 7899 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7900 fi 7901 # And add a safety zone 7902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7904 ;; 7905 7906 interix*) 7907 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7908 lt_cv_sys_max_cmd_len=196608 7909 ;; 7910 7911 osf*) 7912 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7913 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7914 # nice to cause kernel panics so lets avoid the loop below. 7915 # First set a reasonable default. 7916 lt_cv_sys_max_cmd_len=16384 7917 # 7918 if test -x /sbin/sysconfig; then 7919 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7920 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7921 esac 7922 fi 7923 ;; 7924 sco3.2v5*) 7925 lt_cv_sys_max_cmd_len=102400 7926 ;; 7927 sysv5* | sco5v6* | sysv4.2uw2*) 7928 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7929 if test -n "$kargmax"; then 7930 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7931 else 7932 lt_cv_sys_max_cmd_len=32768 7933 fi 7934 ;; 7935 *) 7936 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7937 if test -n "$lt_cv_sys_max_cmd_len"; then 7938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7940 else 7941 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7942 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7943 = "XX$teststring") >/dev/null 2>&1 && 7944 new_result=`expr "X$teststring" : ".*" 2>&1` && 7945 lt_cv_sys_max_cmd_len=$new_result && 7946 test $i != 17 # 1/2 MB should be enough 7947 do 7948 i=`expr $i + 1` 7949 teststring=$teststring$teststring 7950 done 7951 teststring= 7952 # Add a significant safety factor because C++ compilers can tack on massive 7953 # amounts of additional arguments before passing them to the linker. 7954 # It appears as though 1/2 is a usable value. 7955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7956 fi 7957 ;; 7958 esac 7959 7960fi 7961 7962if test -n $lt_cv_sys_max_cmd_len ; then 7963 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7964echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 7965else 7966 { echo "$as_me:$LINENO: result: none" >&5 7967echo "${ECHO_T}none" >&6; } 7968fi 7969 7970 7971 7972 7973 7974# Check for command to grab the raw symbol name followed by C symbol from nm. 7975{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7976echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 7977if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7978 echo $ECHO_N "(cached) $ECHO_C" >&6 7979else 7980 7981# These are sane defaults that work on at least a few old systems. 7982# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7983 7984# Character class describing NM global symbol codes. 7985symcode='[BCDEGRST]' 7986 7987# Regexp to match symbols that can be accessed directly from C. 7988sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7989 7990# Transform an extracted symbol line into a proper C declaration 7991lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7992 7993# Transform an extracted symbol line into symbol name and symbol address 7994lt_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'" 7995 7996# Define system-specific variables. 7997case $host_os in 7998aix*) 7999 symcode='[BCDT]' 8000 ;; 8001cygwin* | mingw* | pw32*) 8002 symcode='[ABCDGISTW]' 8003 ;; 8004hpux*) # Its linker distinguishes data from code symbols 8005 if test "$host_cpu" = ia64; then 8006 symcode='[ABCDEGRST]' 8007 fi 8008 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8009 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'" 8010 ;; 8011linux* | k*bsd*-gnu) 8012 if test "$host_cpu" = ia64; then 8013 symcode='[ABCDGIRSTW]' 8014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8015 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'" 8016 fi 8017 ;; 8018irix* | nonstopux*) 8019 symcode='[BCDEGRST]' 8020 ;; 8021osf*) 8022 symcode='[BCDEGQRST]' 8023 ;; 8024solaris*) 8025 symcode='[BDRT]' 8026 ;; 8027sco3.2v5*) 8028 symcode='[DT]' 8029 ;; 8030sysv4.2uw2*) 8031 symcode='[DT]' 8032 ;; 8033sysv5* | sco5v6* | unixware* | OpenUNIX*) 8034 symcode='[ABDT]' 8035 ;; 8036sysv4) 8037 symcode='[DFNSTU]' 8038 ;; 8039esac 8040 8041# Handle CRLF in mingw tool chain 8042opt_cr= 8043case $build_os in 8044mingw*) 8045 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8046 ;; 8047esac 8048 8049# If we're using GNU nm, then use its standard symbol codes. 8050case `$NM -V 2>&1` in 8051*GNU* | *'with BFD'*) 8052 symcode='[ABCDGIRSTW]' ;; 8053esac 8054 8055# Try without a prefix undercore, then with it. 8056for ac_symprfx in "" "_"; do 8057 8058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8059 symxfrm="\\1 $ac_symprfx\\2 \\2" 8060 8061 # Write the raw and C identifiers. 8062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8063 8064 # Check to see that the pipe works correctly. 8065 pipe_works=no 8066 8067 rm -f conftest* 8068 cat > conftest.$ac_ext <<EOF 8069#ifdef __cplusplus 8070extern "C" { 8071#endif 8072char nm_test_var; 8073void nm_test_func(){} 8074#ifdef __cplusplus 8075} 8076#endif 8077int main(){nm_test_var='a';nm_test_func();return(0);} 8078EOF 8079 8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8081 (eval $ac_compile) 2>&5 8082 ac_status=$? 8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 (exit $ac_status); }; then 8085 # Now try to grab the symbols. 8086 nlist=conftest.nm 8087 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 8088 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 8089 ac_status=$? 8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8091 (exit $ac_status); } && test -s "$nlist"; then 8092 # Try sorting and uniquifying the output. 8093 if sort "$nlist" | uniq > "$nlist"T; then 8094 mv -f "$nlist"T "$nlist" 8095 else 8096 rm -f "$nlist"T 8097 fi 8098 8099 # Make sure that we snagged all the symbols we need. 8100 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8101 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8102 cat <<EOF > conftest.$ac_ext 8103#ifdef __cplusplus 8104extern "C" { 8105#endif 8106 8107EOF 8108 # Now generate the symbol file. 8109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8110 8111 cat <<EOF >> conftest.$ac_ext 8112#if defined (__STDC__) && __STDC__ 8113# define lt_ptr_t void * 8114#else 8115# define lt_ptr_t char * 8116# define const 8117#endif 8118 8119/* The mapping between symbol names and symbols. */ 8120const struct { 8121 const char *name; 8122 lt_ptr_t address; 8123} 8124lt_preloaded_symbols[] = 8125{ 8126EOF 8127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8128 cat <<\EOF >> conftest.$ac_ext 8129 {0, (lt_ptr_t) 0} 8130}; 8131 8132#ifdef __cplusplus 8133} 8134#endif 8135EOF 8136 # Now try linking the two files. 8137 mv conftest.$ac_objext conftstm.$ac_objext 8138 lt_save_LIBS="$LIBS" 8139 lt_save_CFLAGS="$CFLAGS" 8140 LIBS="conftstm.$ac_objext" 8141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8143 (eval $ac_link) 2>&5 8144 ac_status=$? 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8147 pipe_works=yes 8148 fi 8149 LIBS="$lt_save_LIBS" 8150 CFLAGS="$lt_save_CFLAGS" 8151 else 8152 echo "cannot find nm_test_func in $nlist" >&5 8153 fi 8154 else 8155 echo "cannot find nm_test_var in $nlist" >&5 8156 fi 8157 else 8158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8159 fi 8160 else 8161 echo "$progname: failed program was:" >&5 8162 cat conftest.$ac_ext >&5 8163 fi 8164 rm -f conftest* conftst* 8165 8166 # Do not use the global_symbol_pipe unless it works. 8167 if test "$pipe_works" = yes; then 8168 break 8169 else 8170 lt_cv_sys_global_symbol_pipe= 8171 fi 8172done 8173 8174fi 8175 8176if test -z "$lt_cv_sys_global_symbol_pipe"; then 8177 lt_cv_sys_global_symbol_to_cdecl= 8178fi 8179if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8180 { echo "$as_me:$LINENO: result: failed" >&5 8181echo "${ECHO_T}failed" >&6; } 8182else 8183 { echo "$as_me:$LINENO: result: ok" >&5 8184echo "${ECHO_T}ok" >&6; } 8185fi 8186 8187{ echo "$as_me:$LINENO: checking for objdir" >&5 8188echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8189if test "${lt_cv_objdir+set}" = set; then 8190 echo $ECHO_N "(cached) $ECHO_C" >&6 8191else 8192 rm -f .libs 2>/dev/null 8193mkdir .libs 2>/dev/null 8194if test -d .libs; then 8195 lt_cv_objdir=.libs 8196else 8197 # MS-DOS does not allow filenames that begin with a dot. 8198 lt_cv_objdir=_libs 8199fi 8200rmdir .libs 2>/dev/null 8201fi 8202{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8203echo "${ECHO_T}$lt_cv_objdir" >&6; } 8204objdir=$lt_cv_objdir 8205 8206 8207 8208 8209 8210case $host_os in 8211aix3*) 8212 # AIX sometimes has problems with the GCC collect2 program. For some 8213 # reason, if we set the COLLECT_NAMES environment variable, the problems 8214 # vanish in a puff of smoke. 8215 if test "X${COLLECT_NAMES+set}" != Xset; then 8216 COLLECT_NAMES= 8217 export COLLECT_NAMES 8218 fi 8219 ;; 8220esac 8221 8222# Sed substitution that helps us do robust quoting. It backslashifies 8223# metacharacters that are still active within double-quoted strings. 8224Xsed='sed -e 1s/^X//' 8225sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8226 8227# Same as above, but do not quote variable references. 8228double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8229 8230# Sed substitution to delay expansion of an escaped shell variable in a 8231# double_quote_subst'ed string. 8232delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8233 8234# Sed substitution to avoid accidental globbing in evaled expressions 8235no_glob_subst='s/\*/\\\*/g' 8236 8237# Constants: 8238rm="rm -f" 8239 8240# Global variables: 8241default_ofile=libtool 8242can_build_shared=yes 8243 8244# All known linkers require a `.a' archive for static linking (except MSVC, 8245# which needs '.lib'). 8246libext=a 8247ltmain="$ac_aux_dir/ltmain.sh" 8248ofile="$default_ofile" 8249with_gnu_ld="$lt_cv_prog_gnu_ld" 8250 8251if test -n "$ac_tool_prefix"; then 8252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8253set dummy ${ac_tool_prefix}ar; ac_word=$2 8254{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8256if test "${ac_cv_prog_AR+set}" = set; then 8257 echo $ECHO_N "(cached) $ECHO_C" >&6 8258else 8259 if test -n "$AR"; then 8260 ac_cv_prog_AR="$AR" # Let the user override the test. 8261else 8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8263for as_dir in $PATH 8264do 8265 IFS=$as_save_IFS 8266 test -z "$as_dir" && as_dir=. 8267 for ac_exec_ext in '' $ac_executable_extensions; do 8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8269 ac_cv_prog_AR="${ac_tool_prefix}ar" 8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8271 break 2 8272 fi 8273done 8274done 8275IFS=$as_save_IFS 8276 8277fi 8278fi 8279AR=$ac_cv_prog_AR 8280if test -n "$AR"; then 8281 { echo "$as_me:$LINENO: result: $AR" >&5 8282echo "${ECHO_T}$AR" >&6; } 8283else 8284 { echo "$as_me:$LINENO: result: no" >&5 8285echo "${ECHO_T}no" >&6; } 8286fi 8287 8288 8289fi 8290if test -z "$ac_cv_prog_AR"; then 8291 ac_ct_AR=$AR 8292 # Extract the first word of "ar", so it can be a program name with args. 8293set dummy ar; ac_word=$2 8294{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8296if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8297 echo $ECHO_N "(cached) $ECHO_C" >&6 8298else 8299 if test -n "$ac_ct_AR"; then 8300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8301else 8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8303for as_dir in $PATH 8304do 8305 IFS=$as_save_IFS 8306 test -z "$as_dir" && as_dir=. 8307 for ac_exec_ext in '' $ac_executable_extensions; do 8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8309 ac_cv_prog_ac_ct_AR="ar" 8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8311 break 2 8312 fi 8313done 8314done 8315IFS=$as_save_IFS 8316 8317fi 8318fi 8319ac_ct_AR=$ac_cv_prog_ac_ct_AR 8320if test -n "$ac_ct_AR"; then 8321 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8322echo "${ECHO_T}$ac_ct_AR" >&6; } 8323else 8324 { echo "$as_me:$LINENO: result: no" >&5 8325echo "${ECHO_T}no" >&6; } 8326fi 8327 8328 if test "x$ac_ct_AR" = x; then 8329 AR="false" 8330 else 8331 case $cross_compiling:$ac_tool_warned in 8332yes:) 8333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8334whose name does not start with the host triplet. If you think this 8335configuration is useful to you, please write to autoconf@gnu.org." >&5 8336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8337whose name does not start with the host triplet. If you think this 8338configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8339ac_tool_warned=yes ;; 8340esac 8341 AR=$ac_ct_AR 8342 fi 8343else 8344 AR="$ac_cv_prog_AR" 8345fi 8346 8347if test -n "$ac_tool_prefix"; then 8348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8349set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8352if test "${ac_cv_prog_RANLIB+set}" = set; then 8353 echo $ECHO_N "(cached) $ECHO_C" >&6 8354else 8355 if test -n "$RANLIB"; then 8356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8357else 8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8359for as_dir in $PATH 8360do 8361 IFS=$as_save_IFS 8362 test -z "$as_dir" && as_dir=. 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375RANLIB=$ac_cv_prog_RANLIB 8376if test -n "$RANLIB"; then 8377 { echo "$as_me:$LINENO: result: $RANLIB" >&5 8378echo "${ECHO_T}$RANLIB" >&6; } 8379else 8380 { echo "$as_me:$LINENO: result: no" >&5 8381echo "${ECHO_T}no" >&6; } 8382fi 8383 8384 8385fi 8386if test -z "$ac_cv_prog_RANLIB"; then 8387 ac_ct_RANLIB=$RANLIB 8388 # Extract the first word of "ranlib", so it can be a program name with args. 8389set dummy ranlib; ac_word=$2 8390{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8392if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8393 echo $ECHO_N "(cached) $ECHO_C" >&6 8394else 8395 if test -n "$ac_ct_RANLIB"; then 8396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8397else 8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8399for as_dir in $PATH 8400do 8401 IFS=$as_save_IFS 8402 test -z "$as_dir" && as_dir=. 8403 for ac_exec_ext in '' $ac_executable_extensions; do 8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8405 ac_cv_prog_ac_ct_RANLIB="ranlib" 8406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8407 break 2 8408 fi 8409done 8410done 8411IFS=$as_save_IFS 8412 8413fi 8414fi 8415ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8416if test -n "$ac_ct_RANLIB"; then 8417 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8418echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 8419else 8420 { echo "$as_me:$LINENO: result: no" >&5 8421echo "${ECHO_T}no" >&6; } 8422fi 8423 8424 if test "x$ac_ct_RANLIB" = x; then 8425 RANLIB=":" 8426 else 8427 case $cross_compiling:$ac_tool_warned in 8428yes:) 8429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8430whose name does not start with the host triplet. If you think this 8431configuration is useful to you, please write to autoconf@gnu.org." >&5 8432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8433whose name does not start with the host triplet. If you think this 8434configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8435ac_tool_warned=yes ;; 8436esac 8437 RANLIB=$ac_ct_RANLIB 8438 fi 8439else 8440 RANLIB="$ac_cv_prog_RANLIB" 8441fi 8442 8443if test -n "$ac_tool_prefix"; then 8444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8445set dummy ${ac_tool_prefix}strip; ac_word=$2 8446{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8448if test "${ac_cv_prog_STRIP+set}" = set; then 8449 echo $ECHO_N "(cached) $ECHO_C" >&6 8450else 8451 if test -n "$STRIP"; then 8452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8453else 8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455for as_dir in $PATH 8456do 8457 IFS=$as_save_IFS 8458 test -z "$as_dir" && as_dir=. 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8461 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8463 break 2 8464 fi 8465done 8466done 8467IFS=$as_save_IFS 8468 8469fi 8470fi 8471STRIP=$ac_cv_prog_STRIP 8472if test -n "$STRIP"; then 8473 { echo "$as_me:$LINENO: result: $STRIP" >&5 8474echo "${ECHO_T}$STRIP" >&6; } 8475else 8476 { echo "$as_me:$LINENO: result: no" >&5 8477echo "${ECHO_T}no" >&6; } 8478fi 8479 8480 8481fi 8482if test -z "$ac_cv_prog_STRIP"; then 8483 ac_ct_STRIP=$STRIP 8484 # Extract the first word of "strip", so it can be a program name with args. 8485set dummy strip; ac_word=$2 8486{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8488if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8489 echo $ECHO_N "(cached) $ECHO_C" >&6 8490else 8491 if test -n "$ac_ct_STRIP"; then 8492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8493else 8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8495for as_dir in $PATH 8496do 8497 IFS=$as_save_IFS 8498 test -z "$as_dir" && as_dir=. 8499 for ac_exec_ext in '' $ac_executable_extensions; do 8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8501 ac_cv_prog_ac_ct_STRIP="strip" 8502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8503 break 2 8504 fi 8505done 8506done 8507IFS=$as_save_IFS 8508 8509fi 8510fi 8511ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8512if test -n "$ac_ct_STRIP"; then 8513 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8514echo "${ECHO_T}$ac_ct_STRIP" >&6; } 8515else 8516 { echo "$as_me:$LINENO: result: no" >&5 8517echo "${ECHO_T}no" >&6; } 8518fi 8519 8520 if test "x$ac_ct_STRIP" = x; then 8521 STRIP=":" 8522 else 8523 case $cross_compiling:$ac_tool_warned in 8524yes:) 8525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8526whose name does not start with the host triplet. If you think this 8527configuration is useful to you, please write to autoconf@gnu.org." >&5 8528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8529whose name does not start with the host triplet. If you think this 8530configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8531ac_tool_warned=yes ;; 8532esac 8533 STRIP=$ac_ct_STRIP 8534 fi 8535else 8536 STRIP="$ac_cv_prog_STRIP" 8537fi 8538 8539 8540old_CC="$CC" 8541old_CFLAGS="$CFLAGS" 8542 8543# Set sane defaults for various variables 8544test -z "$AR" && AR=ar 8545test -z "$AR_FLAGS" && AR_FLAGS=cru 8546test -z "$AS" && AS=as 8547test -z "$CC" && CC=cc 8548test -z "$LTCC" && LTCC=$CC 8549test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8550test -z "$DLLTOOL" && DLLTOOL=dlltool 8551test -z "$LD" && LD=ld 8552test -z "$LN_S" && LN_S="ln -s" 8553test -z "$MAGIC_CMD" && MAGIC_CMD=file 8554test -z "$NM" && NM=nm 8555test -z "$SED" && SED=sed 8556test -z "$OBJDUMP" && OBJDUMP=objdump 8557test -z "$RANLIB" && RANLIB=: 8558test -z "$STRIP" && STRIP=: 8559test -z "$ac_objext" && ac_objext=o 8560 8561# Determine commands to create old-style static archives. 8562old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8563old_postinstall_cmds='chmod 644 $oldlib' 8564old_postuninstall_cmds= 8565 8566if test -n "$RANLIB"; then 8567 case $host_os in 8568 openbsd*) 8569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8570 ;; 8571 *) 8572 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8573 ;; 8574 esac 8575 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8576fi 8577 8578for cc_temp in $compiler""; do 8579 case $cc_temp in 8580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8582 \-*) ;; 8583 *) break;; 8584 esac 8585done 8586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8587 8588 8589# Only perform the check for file, if the check method requires it 8590case $deplibs_check_method in 8591file_magic*) 8592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8593 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8594echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8595if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8596 echo $ECHO_N "(cached) $ECHO_C" >&6 8597else 8598 case $MAGIC_CMD in 8599[\\/*] | ?:[\\/]*) 8600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8601 ;; 8602*) 8603 lt_save_MAGIC_CMD="$MAGIC_CMD" 8604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8606 for ac_dir in $ac_dummy; do 8607 IFS="$lt_save_ifs" 8608 test -z "$ac_dir" && ac_dir=. 8609 if test -f $ac_dir/${ac_tool_prefix}file; then 8610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8611 if test -n "$file_magic_test_file"; then 8612 case $deplibs_check_method in 8613 "file_magic "*) 8614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8617 $EGREP "$file_magic_regex" > /dev/null; then 8618 : 8619 else 8620 cat <<EOF 1>&2 8621 8622*** Warning: the command libtool uses to detect shared libraries, 8623*** $file_magic_cmd, produces output that libtool cannot recognize. 8624*** The result is that libtool may fail to recognize shared libraries 8625*** as such. This will affect the creation of libtool libraries that 8626*** depend on shared libraries, but programs linked with such libtool 8627*** libraries will work regardless of this problem. Nevertheless, you 8628*** may want to report the problem to your system manager and/or to 8629*** bug-libtool@gnu.org 8630 8631EOF 8632 fi ;; 8633 esac 8634 fi 8635 break 8636 fi 8637 done 8638 IFS="$lt_save_ifs" 8639 MAGIC_CMD="$lt_save_MAGIC_CMD" 8640 ;; 8641esac 8642fi 8643 8644MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8645if test -n "$MAGIC_CMD"; then 8646 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8647echo "${ECHO_T}$MAGIC_CMD" >&6; } 8648else 8649 { echo "$as_me:$LINENO: result: no" >&5 8650echo "${ECHO_T}no" >&6; } 8651fi 8652 8653if test -z "$lt_cv_path_MAGIC_CMD"; then 8654 if test -n "$ac_tool_prefix"; then 8655 { echo "$as_me:$LINENO: checking for file" >&5 8656echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8657if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8658 echo $ECHO_N "(cached) $ECHO_C" >&6 8659else 8660 case $MAGIC_CMD in 8661[\\/*] | ?:[\\/]*) 8662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8663 ;; 8664*) 8665 lt_save_MAGIC_CMD="$MAGIC_CMD" 8666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8668 for ac_dir in $ac_dummy; do 8669 IFS="$lt_save_ifs" 8670 test -z "$ac_dir" && ac_dir=. 8671 if test -f $ac_dir/file; then 8672 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8673 if test -n "$file_magic_test_file"; then 8674 case $deplibs_check_method in 8675 "file_magic "*) 8676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8679 $EGREP "$file_magic_regex" > /dev/null; then 8680 : 8681 else 8682 cat <<EOF 1>&2 8683 8684*** Warning: the command libtool uses to detect shared libraries, 8685*** $file_magic_cmd, produces output that libtool cannot recognize. 8686*** The result is that libtool may fail to recognize shared libraries 8687*** as such. This will affect the creation of libtool libraries that 8688*** depend on shared libraries, but programs linked with such libtool 8689*** libraries will work regardless of this problem. Nevertheless, you 8690*** may want to report the problem to your system manager and/or to 8691*** bug-libtool@gnu.org 8692 8693EOF 8694 fi ;; 8695 esac 8696 fi 8697 break 8698 fi 8699 done 8700 IFS="$lt_save_ifs" 8701 MAGIC_CMD="$lt_save_MAGIC_CMD" 8702 ;; 8703esac 8704fi 8705 8706MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8707if test -n "$MAGIC_CMD"; then 8708 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8709echo "${ECHO_T}$MAGIC_CMD" >&6; } 8710else 8711 { echo "$as_me:$LINENO: result: no" >&5 8712echo "${ECHO_T}no" >&6; } 8713fi 8714 8715 else 8716 MAGIC_CMD=: 8717 fi 8718fi 8719 8720 fi 8721 ;; 8722esac 8723 8724enable_dlopen=no 8725enable_win32_dll=no 8726 8727# Check whether --enable-libtool-lock was given. 8728if test "${enable_libtool_lock+set}" = set; then 8729 enableval=$enable_libtool_lock; 8730fi 8731 8732test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8733 8734 8735# Check whether --with-pic was given. 8736if test "${with_pic+set}" = set; then 8737 withval=$with_pic; pic_mode="$withval" 8738else 8739 pic_mode=default 8740fi 8741 8742test -z "$pic_mode" && pic_mode=default 8743 8744# Use C for the default configuration in the libtool script 8745tagname= 8746lt_save_CC="$CC" 8747ac_ext=c 8748ac_cpp='$CPP $CPPFLAGS' 8749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8751ac_compiler_gnu=$ac_cv_c_compiler_gnu 8752 8753 8754# Source file extension for C test sources. 8755ac_ext=c 8756 8757# Object file extension for compiled C test sources. 8758objext=o 8759objext=$objext 8760 8761# Code to be used in simple compile tests 8762lt_simple_compile_test_code="int some_variable = 0;" 8763 8764# Code to be used in simple link tests 8765lt_simple_link_test_code='int main(){return(0);}' 8766 8767 8768# If no C compiler was specified, use CC. 8769LTCC=${LTCC-"$CC"} 8770 8771# If no C compiler flags were specified, use CFLAGS. 8772LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8773 8774# Allow CC to be a program name with arguments. 8775compiler=$CC 8776 8777 8778# save warnings/boilerplate of simple test code 8779ac_outfile=conftest.$ac_objext 8780echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8781eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8782_lt_compiler_boilerplate=`cat conftest.err` 8783$rm conftest* 8784 8785ac_outfile=conftest.$ac_objext 8786echo "$lt_simple_link_test_code" >conftest.$ac_ext 8787eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8788_lt_linker_boilerplate=`cat conftest.err` 8789$rm conftest* 8790 8791 8792 8793lt_prog_compiler_no_builtin_flag= 8794 8795if test "$GCC" = yes; then 8796 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8797 8798 8799{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8800echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8801if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8802 echo $ECHO_N "(cached) $ECHO_C" >&6 8803else 8804 lt_cv_prog_compiler_rtti_exceptions=no 8805 ac_outfile=conftest.$ac_objext 8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8807 lt_compiler_flag="-fno-rtti -fno-exceptions" 8808 # Insert the option either (1) after the last *FLAGS variable, or 8809 # (2) before a word containing "conftest.", or (3) at the end. 8810 # Note that $ac_compile itself does not contain backslashes and begins 8811 # with a dollar sign (not a hyphen), so the echo should work correctly. 8812 # The option is referenced via a variable to avoid confusing sed. 8813 lt_compile=`echo "$ac_compile" | $SED \ 8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8816 -e 's:$: $lt_compiler_flag:'` 8817 (eval echo "\"\$as_me:8817: $lt_compile\"" >&5) 8818 (eval "$lt_compile" 2>conftest.err) 8819 ac_status=$? 8820 cat conftest.err >&5 8821 echo "$as_me:8821: \$? = $ac_status" >&5 8822 if (exit $ac_status) && test -s "$ac_outfile"; then 8823 # The compiler can only warn and ignore the option if not recognized 8824 # So say no if there are warnings other than the usual output. 8825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8828 lt_cv_prog_compiler_rtti_exceptions=yes 8829 fi 8830 fi 8831 $rm conftest* 8832 8833fi 8834{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8835echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8836 8837if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8838 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8839else 8840 : 8841fi 8842 8843fi 8844 8845lt_prog_compiler_wl= 8846lt_prog_compiler_pic= 8847lt_prog_compiler_static= 8848 8849{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8851 8852 if test "$GCC" = yes; then 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_static='-static' 8855 8856 case $host_os in 8857 aix*) 8858 # All AIX code is PIC. 8859 if test "$host_cpu" = ia64; then 8860 # AIX 5 now supports IA64 processor 8861 lt_prog_compiler_static='-Bstatic' 8862 fi 8863 ;; 8864 8865 amigaos*) 8866 # FIXME: we need at least 68020 code to build shared libraries, but 8867 # adding the `-m68020' flag to GCC prevents building anything better, 8868 # like `-m68040'. 8869 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8870 ;; 8871 8872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8873 # PIC is the default for these OSes. 8874 ;; 8875 8876 mingw* | cygwin* | pw32* | os2*) 8877 # This hack is so that the source file can tell whether it is being 8878 # built for inclusion in a dll (and should export symbols for example). 8879 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8880 # (--disable-auto-import) libraries 8881 lt_prog_compiler_pic='-DDLL_EXPORT' 8882 ;; 8883 8884 darwin* | rhapsody*) 8885 # PIC is the default on this platform 8886 # Common symbols not allowed in MH_DYLIB files 8887 lt_prog_compiler_pic='-fno-common' 8888 ;; 8889 8890 interix[3-9]*) 8891 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8892 # Instead, we relocate shared libraries at runtime. 8893 ;; 8894 8895 msdosdjgpp*) 8896 # Just because we use GCC doesn't mean we suddenly get shared libraries 8897 # on systems that don't support them. 8898 lt_prog_compiler_can_build_shared=no 8899 enable_shared=no 8900 ;; 8901 8902 sysv4*MP*) 8903 if test -d /usr/nec; then 8904 lt_prog_compiler_pic=-Kconform_pic 8905 fi 8906 ;; 8907 8908 hpux*) 8909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8910 # not for PA HP-UX. 8911 case $host_cpu in 8912 hppa*64*|ia64*) 8913 # +Z the default 8914 ;; 8915 *) 8916 lt_prog_compiler_pic='-fPIC' 8917 ;; 8918 esac 8919 ;; 8920 8921 *) 8922 lt_prog_compiler_pic='-fPIC' 8923 ;; 8924 esac 8925 else 8926 # PORTME Check for flag to pass linker flags through the system compiler. 8927 case $host_os in 8928 aix*) 8929 lt_prog_compiler_wl='-Wl,' 8930 if test "$host_cpu" = ia64; then 8931 # AIX 5 now supports IA64 processor 8932 lt_prog_compiler_static='-Bstatic' 8933 else 8934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8935 fi 8936 ;; 8937 darwin*) 8938 # PIC is the default on this platform 8939 # Common symbols not allowed in MH_DYLIB files 8940 case $cc_basename in 8941 xlc*) 8942 lt_prog_compiler_pic='-qnocommon' 8943 lt_prog_compiler_wl='-Wl,' 8944 ;; 8945 esac 8946 ;; 8947 8948 mingw* | cygwin* | pw32* | os2*) 8949 # This hack is so that the source file can tell whether it is being 8950 # built for inclusion in a dll (and should export symbols for example). 8951 lt_prog_compiler_pic='-DDLL_EXPORT' 8952 ;; 8953 8954 hpux9* | hpux10* | hpux11*) 8955 lt_prog_compiler_wl='-Wl,' 8956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8957 # not for PA HP-UX. 8958 case $host_cpu in 8959 hppa*64*|ia64*) 8960 # +Z the default 8961 ;; 8962 *) 8963 lt_prog_compiler_pic='+Z' 8964 ;; 8965 esac 8966 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8967 lt_prog_compiler_static='${wl}-a ${wl}archive' 8968 ;; 8969 8970 irix5* | irix6* | nonstopux*) 8971 lt_prog_compiler_wl='-Wl,' 8972 # PIC (with -KPIC) is the default. 8973 lt_prog_compiler_static='-non_shared' 8974 ;; 8975 8976 newsos6) 8977 lt_prog_compiler_pic='-KPIC' 8978 lt_prog_compiler_static='-Bstatic' 8979 ;; 8980 8981 linux* | k*bsd*-gnu) 8982 case $cc_basename in 8983 icc* | ecc*) 8984 lt_prog_compiler_wl='-Wl,' 8985 lt_prog_compiler_pic='-KPIC' 8986 lt_prog_compiler_static='-static' 8987 ;; 8988 pgcc* | pgf77* | pgf90* | pgf95*) 8989 # Portland Group compilers (*not* the Pentium gcc compiler, 8990 # which looks to be a dead project) 8991 lt_prog_compiler_wl='-Wl,' 8992 lt_prog_compiler_pic='-fpic' 8993 lt_prog_compiler_static='-Bstatic' 8994 ;; 8995 ccc*) 8996 lt_prog_compiler_wl='-Wl,' 8997 # All Alpha code is PIC. 8998 lt_prog_compiler_static='-non_shared' 8999 ;; 9000 *) 9001 case `$CC -V 2>&1 | sed 5q` in 9002 *Sun\ C*) 9003 # Sun C 5.9 9004 lt_prog_compiler_pic='-KPIC' 9005 lt_prog_compiler_static='-Bstatic' 9006 lt_prog_compiler_wl='-Wl,' 9007 ;; 9008 *Sun\ F*) 9009 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9010 lt_prog_compiler_pic='-KPIC' 9011 lt_prog_compiler_static='-Bstatic' 9012 lt_prog_compiler_wl='' 9013 ;; 9014 esac 9015 ;; 9016 esac 9017 ;; 9018 9019 osf3* | osf4* | osf5*) 9020 lt_prog_compiler_wl='-Wl,' 9021 # All OSF/1 code is PIC. 9022 lt_prog_compiler_static='-non_shared' 9023 ;; 9024 9025 rdos*) 9026 lt_prog_compiler_static='-non_shared' 9027 ;; 9028 9029 solaris*) 9030 lt_prog_compiler_pic='-KPIC' 9031 lt_prog_compiler_static='-Bstatic' 9032 case $cc_basename in 9033 f77* | f90* | f95*) 9034 lt_prog_compiler_wl='-Qoption ld ';; 9035 *) 9036 lt_prog_compiler_wl='-Wl,';; 9037 esac 9038 ;; 9039 9040 sunos4*) 9041 lt_prog_compiler_wl='-Qoption ld ' 9042 lt_prog_compiler_pic='-PIC' 9043 lt_prog_compiler_static='-Bstatic' 9044 ;; 9045 9046 sysv4 | sysv4.2uw2* | sysv4.3*) 9047 lt_prog_compiler_wl='-Wl,' 9048 lt_prog_compiler_pic='-KPIC' 9049 lt_prog_compiler_static='-Bstatic' 9050 ;; 9051 9052 sysv4*MP*) 9053 if test -d /usr/nec ;then 9054 lt_prog_compiler_pic='-Kconform_pic' 9055 lt_prog_compiler_static='-Bstatic' 9056 fi 9057 ;; 9058 9059 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9060 lt_prog_compiler_wl='-Wl,' 9061 lt_prog_compiler_pic='-KPIC' 9062 lt_prog_compiler_static='-Bstatic' 9063 ;; 9064 9065 unicos*) 9066 lt_prog_compiler_wl='-Wl,' 9067 lt_prog_compiler_can_build_shared=no 9068 ;; 9069 9070 uts4*) 9071 lt_prog_compiler_pic='-pic' 9072 lt_prog_compiler_static='-Bstatic' 9073 ;; 9074 9075 *) 9076 lt_prog_compiler_can_build_shared=no 9077 ;; 9078 esac 9079 fi 9080 9081{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9082echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 9083 9084# 9085# Check to make sure the PIC flag actually works. 9086# 9087if test -n "$lt_prog_compiler_pic"; then 9088 9089{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9090echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 9091if test "${lt_prog_compiler_pic_works+set}" = set; then 9092 echo $ECHO_N "(cached) $ECHO_C" >&6 9093else 9094 lt_prog_compiler_pic_works=no 9095 ac_outfile=conftest.$ac_objext 9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9097 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9098 # Insert the option either (1) after the last *FLAGS variable, or 9099 # (2) before a word containing "conftest.", or (3) at the end. 9100 # Note that $ac_compile itself does not contain backslashes and begins 9101 # with a dollar sign (not a hyphen), so the echo should work correctly. 9102 # The option is referenced via a variable to avoid confusing sed. 9103 lt_compile=`echo "$ac_compile" | $SED \ 9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9106 -e 's:$: $lt_compiler_flag:'` 9107 (eval echo "\"\$as_me:9107: $lt_compile\"" >&5) 9108 (eval "$lt_compile" 2>conftest.err) 9109 ac_status=$? 9110 cat conftest.err >&5 9111 echo "$as_me:9111: \$? = $ac_status" >&5 9112 if (exit $ac_status) && test -s "$ac_outfile"; then 9113 # The compiler can only warn and ignore the option if not recognized 9114 # So say no if there are warnings other than the usual output. 9115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9118 lt_prog_compiler_pic_works=yes 9119 fi 9120 fi 9121 $rm conftest* 9122 9123fi 9124{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9125echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 9126 9127if test x"$lt_prog_compiler_pic_works" = xyes; then 9128 case $lt_prog_compiler_pic in 9129 "" | " "*) ;; 9130 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9131 esac 9132else 9133 lt_prog_compiler_pic= 9134 lt_prog_compiler_can_build_shared=no 9135fi 9136 9137fi 9138case $host_os in 9139 # For platforms which do not support PIC, -DPIC is meaningless: 9140 *djgpp*) 9141 lt_prog_compiler_pic= 9142 ;; 9143 *) 9144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9145 ;; 9146esac 9147 9148# 9149# Check to make sure the static flag actually works. 9150# 9151wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9152{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9153echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9154if test "${lt_prog_compiler_static_works+set}" = set; then 9155 echo $ECHO_N "(cached) $ECHO_C" >&6 9156else 9157 lt_prog_compiler_static_works=no 9158 save_LDFLAGS="$LDFLAGS" 9159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9160 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9162 # The linker can only warn and ignore the option if not recognized 9163 # So say no if there are warnings 9164 if test -s conftest.err; then 9165 # Append any errors to the config.log. 9166 cat conftest.err 1>&5 9167 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9169 if diff conftest.exp conftest.er2 >/dev/null; then 9170 lt_prog_compiler_static_works=yes 9171 fi 9172 else 9173 lt_prog_compiler_static_works=yes 9174 fi 9175 fi 9176 $rm conftest* 9177 LDFLAGS="$save_LDFLAGS" 9178 9179fi 9180{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9181echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 9182 9183if test x"$lt_prog_compiler_static_works" = xyes; then 9184 : 9185else 9186 lt_prog_compiler_static= 9187fi 9188 9189 9190{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9191echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9192if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9193 echo $ECHO_N "(cached) $ECHO_C" >&6 9194else 9195 lt_cv_prog_compiler_c_o=no 9196 $rm -r conftest 2>/dev/null 9197 mkdir conftest 9198 cd conftest 9199 mkdir out 9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9201 9202 lt_compiler_flag="-o out/conftest2.$ac_objext" 9203 # Insert the option either (1) after the last *FLAGS variable, or 9204 # (2) before a word containing "conftest.", or (3) at the end. 9205 # Note that $ac_compile itself does not contain backslashes and begins 9206 # with a dollar sign (not a hyphen), so the echo should work correctly. 9207 lt_compile=`echo "$ac_compile" | $SED \ 9208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9210 -e 's:$: $lt_compiler_flag:'` 9211 (eval echo "\"\$as_me:9211: $lt_compile\"" >&5) 9212 (eval "$lt_compile" 2>out/conftest.err) 9213 ac_status=$? 9214 cat out/conftest.err >&5 9215 echo "$as_me:9215: \$? = $ac_status" >&5 9216 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9217 then 9218 # The compiler can only warn and ignore the option if not recognized 9219 # So say no if there are warnings 9220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9223 lt_cv_prog_compiler_c_o=yes 9224 fi 9225 fi 9226 chmod u+w . 2>&5 9227 $rm conftest* 9228 # SGI C++ compiler will create directory out/ii_files/ for 9229 # template instantiation 9230 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9231 $rm out/* && rmdir out 9232 cd .. 9233 rmdir conftest 9234 $rm conftest* 9235 9236fi 9237{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9238echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9239 9240 9241hard_links="nottested" 9242if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9243 # do not overwrite the value of need_locks provided by the user 9244 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9245echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9246 hard_links=yes 9247 $rm conftest* 9248 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9249 touch conftest.a 9250 ln conftest.a conftest.b 2>&5 || hard_links=no 9251 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9252 { echo "$as_me:$LINENO: result: $hard_links" >&5 9253echo "${ECHO_T}$hard_links" >&6; } 9254 if test "$hard_links" = no; then 9255 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9256echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9257 need_locks=warn 9258 fi 9259else 9260 need_locks=no 9261fi 9262 9263{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9264echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9265 9266 runpath_var= 9267 allow_undefined_flag= 9268 enable_shared_with_static_runtimes=no 9269 archive_cmds= 9270 archive_expsym_cmds= 9271 old_archive_From_new_cmds= 9272 old_archive_from_expsyms_cmds= 9273 export_dynamic_flag_spec= 9274 whole_archive_flag_spec= 9275 thread_safe_flag_spec= 9276 hardcode_libdir_flag_spec= 9277 hardcode_libdir_flag_spec_ld= 9278 hardcode_libdir_separator= 9279 hardcode_direct=no 9280 hardcode_minus_L=no 9281 hardcode_shlibpath_var=unsupported 9282 link_all_deplibs=unknown 9283 hardcode_automatic=no 9284 module_cmds= 9285 module_expsym_cmds= 9286 always_export_symbols=no 9287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9288 # include_expsyms should be a list of space-separated symbols to be *always* 9289 # included in the symbol list 9290 include_expsyms= 9291 # exclude_expsyms can be an extended regexp of symbols to exclude 9292 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9293 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9294 # as well as any symbol that contains `d'. 9295 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9296 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9297 # platforms (ab)use it in PIC code, but their linkers get confused if 9298 # the symbol is explicitly referenced. Since portable code cannot 9299 # rely on this symbol name, it's probably fine to never include it in 9300 # preloaded symbol tables. 9301 extract_expsyms_cmds= 9302 # Just being paranoid about ensuring that cc_basename is set. 9303 for cc_temp in $compiler""; do 9304 case $cc_temp in 9305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9307 \-*) ;; 9308 *) break;; 9309 esac 9310done 9311cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9312 9313 case $host_os in 9314 cygwin* | mingw* | pw32*) 9315 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9316 # When not using gcc, we currently assume that we are using 9317 # Microsoft Visual C++. 9318 if test "$GCC" != yes; then 9319 with_gnu_ld=no 9320 fi 9321 ;; 9322 interix*) 9323 # we just hope/assume this is gcc and not c89 (= MSVC++) 9324 with_gnu_ld=yes 9325 ;; 9326 openbsd*) 9327 with_gnu_ld=no 9328 ;; 9329 esac 9330 9331 ld_shlibs=yes 9332 if test "$with_gnu_ld" = yes; then 9333 # If archive_cmds runs LD, not CC, wlarc should be empty 9334 wlarc='${wl}' 9335 9336 # Set some defaults for GNU ld with shared library support. These 9337 # are reset later if shared libraries are not supported. Putting them 9338 # here allows them to be overridden if necessary. 9339 runpath_var=LD_RUN_PATH 9340 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9341 export_dynamic_flag_spec='${wl}--export-dynamic' 9342 # ancient GNU ld didn't support --whole-archive et. al. 9343 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9344 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9345 else 9346 whole_archive_flag_spec= 9347 fi 9348 supports_anon_versioning=no 9349 case `$LD -v 2>/dev/null` in 9350 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9351 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9352 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9353 *\ 2.11.*) ;; # other 2.11 versions 9354 *) supports_anon_versioning=yes ;; 9355 esac 9356 9357 # See if GNU ld supports shared libraries. 9358 case $host_os in 9359 aix3* | aix4* | aix5*) 9360 # On AIX/PPC, the GNU linker is very broken 9361 if test "$host_cpu" != ia64; then 9362 ld_shlibs=no 9363 cat <<EOF 1>&2 9364 9365*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9366*** to be unable to reliably create shared libraries on AIX. 9367*** Therefore, libtool is disabling shared libraries support. If you 9368*** really care for shared libraries, you may want to modify your PATH 9369*** so that a non-GNU linker is found, and then restart. 9370 9371EOF 9372 fi 9373 ;; 9374 9375 amigaos*) 9376 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)' 9377 hardcode_libdir_flag_spec='-L$libdir' 9378 hardcode_minus_L=yes 9379 9380 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9381 # that the semantics of dynamic libraries on AmigaOS, at least up 9382 # to version 4, is to share data among multiple programs linked 9383 # with the same dynamic library. Since this doesn't match the 9384 # behavior of shared libraries on other platforms, we can't use 9385 # them. 9386 ld_shlibs=no 9387 ;; 9388 9389 beos*) 9390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9391 allow_undefined_flag=unsupported 9392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9393 # support --undefined. This deserves some investigation. FIXME 9394 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9395 else 9396 ld_shlibs=no 9397 fi 9398 ;; 9399 9400 cygwin* | mingw* | pw32*) 9401 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9402 # as there is no search path for DLLs. 9403 hardcode_libdir_flag_spec='-L$libdir' 9404 allow_undefined_flag=unsupported 9405 always_export_symbols=no 9406 enable_shared_with_static_runtimes=yes 9407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9408 9409 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9411 # If the export-symbols file already is a .def file (1st line 9412 # is EXPORTS), use it as is; otherwise, prepend... 9413 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9414 cp $export_symbols $output_objdir/$soname.def; 9415 else 9416 echo EXPORTS > $output_objdir/$soname.def; 9417 cat $export_symbols >> $output_objdir/$soname.def; 9418 fi~ 9419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9420 else 9421 ld_shlibs=no 9422 fi 9423 ;; 9424 9425 interix[3-9]*) 9426 hardcode_direct=no 9427 hardcode_shlibpath_var=no 9428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9429 export_dynamic_flag_spec='${wl}-E' 9430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9431 # Instead, shared libraries are loaded at an image base (0x10000000 by 9432 # default) and relocated if they conflict, which is a slow very memory 9433 # consuming and fragmenting process. To avoid this, we pick a random, 9434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9435 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9437 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' 9438 ;; 9439 9440 gnu* | linux* | k*bsd*-gnu) 9441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9442 tmp_addflag= 9443 case $cc_basename,$host_cpu in 9444 pgcc*) # Portland Group C compiler 9445 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' 9446 tmp_addflag=' $pic_flag' 9447 ;; 9448 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9449 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' 9450 tmp_addflag=' $pic_flag -Mnomain' ;; 9451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9452 tmp_addflag=' -i_dynamic' ;; 9453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9454 tmp_addflag=' -i_dynamic -nofor_main' ;; 9455 ifc* | ifort*) # Intel Fortran compiler 9456 tmp_addflag=' -nofor_main' ;; 9457 esac 9458 case `$CC -V 2>&1 | sed 5q` in 9459 *Sun\ C*) # Sun C 5.9 9460 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9461 tmp_sharedflag='-G' ;; 9462 *Sun\ F*) # Sun Fortran 8.3 9463 tmp_sharedflag='-G' ;; 9464 *) 9465 tmp_sharedflag='-shared' ;; 9466 esac 9467 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9468 9469 if test $supports_anon_versioning = yes; then 9470 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9472 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9474 fi 9475 link_all_deplibs=no 9476 else 9477 ld_shlibs=no 9478 fi 9479 ;; 9480 9481 netbsd* | netbsdelf*-gnu) 9482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9484 wlarc= 9485 else 9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9488 fi 9489 ;; 9490 9491 solaris*) 9492 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9493 ld_shlibs=no 9494 cat <<EOF 1>&2 9495 9496*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9497*** create shared libraries on Solaris systems. Therefore, libtool 9498*** is disabling shared libraries support. We urge you to upgrade GNU 9499*** binutils to release 2.9.1 or newer. Another option is to modify 9500*** your PATH or compiler configuration so that the native linker is 9501*** used, and then restart. 9502 9503EOF 9504 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9507 else 9508 ld_shlibs=no 9509 fi 9510 ;; 9511 9512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9513 case `$LD -v 2>&1` in 9514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9515 ld_shlibs=no 9516 cat <<_LT_EOF 1>&2 9517 9518*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9519*** reliably create shared libraries on SCO systems. Therefore, libtool 9520*** is disabling shared libraries support. We urge you to upgrade GNU 9521*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9522*** your PATH or compiler configuration so that the native linker is 9523*** used, and then restart. 9524 9525_LT_EOF 9526 ;; 9527 *) 9528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9529 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9532 else 9533 ld_shlibs=no 9534 fi 9535 ;; 9536 esac 9537 ;; 9538 9539 sunos4*) 9540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9541 wlarc= 9542 hardcode_direct=yes 9543 hardcode_shlibpath_var=no 9544 ;; 9545 9546 *) 9547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9550 else 9551 ld_shlibs=no 9552 fi 9553 ;; 9554 esac 9555 9556 if test "$ld_shlibs" = no; then 9557 runpath_var= 9558 hardcode_libdir_flag_spec= 9559 export_dynamic_flag_spec= 9560 whole_archive_flag_spec= 9561 fi 9562 else 9563 # PORTME fill in a description of your system's linker (not GNU ld) 9564 case $host_os in 9565 aix3*) 9566 allow_undefined_flag=unsupported 9567 always_export_symbols=yes 9568 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' 9569 # Note: this linker hardcodes the directories in LIBPATH if there 9570 # are no directories specified by -L. 9571 hardcode_minus_L=yes 9572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9573 # Neither direct hardcoding nor static linking is supported with a 9574 # broken collect2. 9575 hardcode_direct=unsupported 9576 fi 9577 ;; 9578 9579 aix4* | aix5*) 9580 if test "$host_cpu" = ia64; then 9581 # On IA64, the linker does run time linking by default, so we don't 9582 # have to do anything special. 9583 aix_use_runtimelinking=no 9584 exp_sym_flag='-Bexport' 9585 no_entry_flag="" 9586 else 9587 # If we're using GNU nm, then we don't want the "-C" option. 9588 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9589 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9590 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' 9591 else 9592 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' 9593 fi 9594 aix_use_runtimelinking=no 9595 9596 # Test if we are trying to use run time linking or normal 9597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9598 # need to do runtime linking. 9599 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9600 for ld_flag in $LDFLAGS; do 9601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9602 aix_use_runtimelinking=yes 9603 break 9604 fi 9605 done 9606 ;; 9607 esac 9608 9609 exp_sym_flag='-bexport' 9610 no_entry_flag='-bnoentry' 9611 fi 9612 9613 # When large executables or shared objects are built, AIX ld can 9614 # have problems creating the table of contents. If linking a library 9615 # or program results in "error TOC overflow" add -mminimal-toc to 9616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9618 9619 archive_cmds='' 9620 hardcode_direct=yes 9621 hardcode_libdir_separator=':' 9622 link_all_deplibs=yes 9623 9624 if test "$GCC" = yes; then 9625 case $host_os in aix4.[012]|aix4.[012].*) 9626 # We only want to do this on AIX 4.2 and lower, the check 9627 # below for broken collect2 doesn't work under 4.3+ 9628 collect2name=`${CC} -print-prog-name=collect2` 9629 if test -f "$collect2name" && \ 9630 strings "$collect2name" | grep resolve_lib_name >/dev/null 9631 then 9632 # We have reworked collect2 9633 : 9634 else 9635 # We have old collect2 9636 hardcode_direct=unsupported 9637 # It fails to find uninstalled libraries when the uninstalled 9638 # path is not listed in the libpath. Setting hardcode_minus_L 9639 # to unsupported forces relinking 9640 hardcode_minus_L=yes 9641 hardcode_libdir_flag_spec='-L$libdir' 9642 hardcode_libdir_separator= 9643 fi 9644 ;; 9645 esac 9646 shared_flag='-shared' 9647 if test "$aix_use_runtimelinking" = yes; then 9648 shared_flag="$shared_flag "'${wl}-G' 9649 fi 9650 else 9651 # not using gcc 9652 if test "$host_cpu" = ia64; then 9653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9654 # chokes on -Wl,-G. The following line is correct: 9655 shared_flag='-G' 9656 else 9657 if test "$aix_use_runtimelinking" = yes; then 9658 shared_flag='${wl}-G' 9659 else 9660 shared_flag='${wl}-bM:SRE' 9661 fi 9662 fi 9663 fi 9664 9665 # It seems that -bexpall does not export symbols beginning with 9666 # underscore (_), so it is better to generate a list of symbols to export. 9667 always_export_symbols=yes 9668 if test "$aix_use_runtimelinking" = yes; then 9669 # Warning - without using the other runtime loading flags (-brtl), 9670 # -berok will link without error, but may produce a broken library. 9671 allow_undefined_flag='-berok' 9672 # Determine the default libpath from the value encoded in an empty executable. 9673 cat >conftest.$ac_ext <<_ACEOF 9674/* confdefs.h. */ 9675_ACEOF 9676cat confdefs.h >>conftest.$ac_ext 9677cat >>conftest.$ac_ext <<_ACEOF 9678/* end confdefs.h. */ 9679 9680int 9681main () 9682{ 9683 9684 ; 9685 return 0; 9686} 9687_ACEOF 9688rm -f conftest.$ac_objext conftest$ac_exeext 9689if { (ac_try="$ac_link" 9690case "(($ac_try" in 9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9692 *) ac_try_echo=$ac_try;; 9693esac 9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9695 (eval "$ac_link") 2>conftest.er1 9696 ac_status=$? 9697 grep -v '^ *+' conftest.er1 >conftest.err 9698 rm -f conftest.er1 9699 cat conftest.err >&5 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); } && { 9702 test -z "$ac_c_werror_flag" || 9703 test ! -s conftest.err 9704 } && test -s conftest$ac_exeext && 9705 $as_test_x conftest$ac_exeext; then 9706 9707lt_aix_libpath_sed=' 9708 /Import File Strings/,/^$/ { 9709 /^0/ { 9710 s/^0 *\(.*\)$/\1/ 9711 p 9712 } 9713 }' 9714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9715# Check for a 64-bit object if we didn't find anything. 9716if test -z "$aix_libpath"; then 9717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9718fi 9719else 9720 echo "$as_me: failed program was:" >&5 9721sed 's/^/| /' conftest.$ac_ext >&5 9722 9723 9724fi 9725 9726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9727 conftest$ac_exeext conftest.$ac_ext 9728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9729 9730 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9731 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" 9732 else 9733 if test "$host_cpu" = ia64; then 9734 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9735 allow_undefined_flag="-z nodefs" 9736 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" 9737 else 9738 # Determine the default libpath from the value encoded in an empty executable. 9739 cat >conftest.$ac_ext <<_ACEOF 9740/* confdefs.h. */ 9741_ACEOF 9742cat confdefs.h >>conftest.$ac_ext 9743cat >>conftest.$ac_ext <<_ACEOF 9744/* end confdefs.h. */ 9745 9746int 9747main () 9748{ 9749 9750 ; 9751 return 0; 9752} 9753_ACEOF 9754rm -f conftest.$ac_objext conftest$ac_exeext 9755if { (ac_try="$ac_link" 9756case "(($ac_try" in 9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9758 *) ac_try_echo=$ac_try;; 9759esac 9760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9761 (eval "$ac_link") 2>conftest.er1 9762 ac_status=$? 9763 grep -v '^ *+' conftest.er1 >conftest.err 9764 rm -f conftest.er1 9765 cat conftest.err >&5 9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9767 (exit $ac_status); } && { 9768 test -z "$ac_c_werror_flag" || 9769 test ! -s conftest.err 9770 } && test -s conftest$ac_exeext && 9771 $as_test_x conftest$ac_exeext; then 9772 9773lt_aix_libpath_sed=' 9774 /Import File Strings/,/^$/ { 9775 /^0/ { 9776 s/^0 *\(.*\)$/\1/ 9777 p 9778 } 9779 }' 9780aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9781# Check for a 64-bit object if we didn't find anything. 9782if test -z "$aix_libpath"; then 9783 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9784fi 9785else 9786 echo "$as_me: failed program was:" >&5 9787sed 's/^/| /' conftest.$ac_ext >&5 9788 9789 9790fi 9791 9792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9793 conftest$ac_exeext conftest.$ac_ext 9794if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9795 9796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9797 # Warning - without using the other run time loading flags, 9798 # -berok will link without error, but may produce a broken library. 9799 no_undefined_flag=' ${wl}-bernotok' 9800 allow_undefined_flag=' ${wl}-berok' 9801 # Exported symbols can be pulled into shared objects from archives 9802 whole_archive_flag_spec='$convenience' 9803 archive_cmds_need_lc=yes 9804 # This is similar to how AIX traditionally builds its shared libraries. 9805 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' 9806 fi 9807 fi 9808 ;; 9809 9810 amigaos*) 9811 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)' 9812 hardcode_libdir_flag_spec='-L$libdir' 9813 hardcode_minus_L=yes 9814 # see comment about different semantics on the GNU ld section 9815 ld_shlibs=no 9816 ;; 9817 9818 bsdi[45]*) 9819 export_dynamic_flag_spec=-rdynamic 9820 ;; 9821 9822 cygwin* | mingw* | pw32*) 9823 # When not using gcc, we currently assume that we are using 9824 # Microsoft Visual C++. 9825 # hardcode_libdir_flag_spec is actually meaningless, as there is 9826 # no search path for DLLs. 9827 hardcode_libdir_flag_spec=' ' 9828 allow_undefined_flag=unsupported 9829 # Tell ltmain to make .lib files, not .a files. 9830 libext=lib 9831 # Tell ltmain to make .dll files, not .so files. 9832 shrext_cmds=".dll" 9833 # FIXME: Setting linknames here is a bad hack. 9834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9835 # The linker will automatically build a .lib file if we build a DLL. 9836 old_archive_From_new_cmds='true' 9837 # FIXME: Should let the user specify the lib program. 9838 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9839 fix_srcfile_path='`cygpath -w "$srcfile"`' 9840 enable_shared_with_static_runtimes=yes 9841 ;; 9842 9843 darwin* | rhapsody*) 9844 case $host_os in 9845 rhapsody* | darwin1.[012]) 9846 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9847 ;; 9848 *) # Darwin 1.3 on 9849 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9850 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9851 else 9852 case ${MACOSX_DEPLOYMENT_TARGET} in 9853 10.[012]) 9854 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9855 ;; 9856 10.*) 9857 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9858 ;; 9859 esac 9860 fi 9861 ;; 9862 esac 9863 archive_cmds_need_lc=no 9864 hardcode_direct=no 9865 hardcode_automatic=yes 9866 hardcode_shlibpath_var=unsupported 9867 whole_archive_flag_spec='' 9868 link_all_deplibs=yes 9869 if test "$GCC" = yes ; then 9870 output_verbose_link_cmd='echo' 9871 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9872 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9874 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}' 9875 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}' 9876 else 9877 case $cc_basename in 9878 xlc*) 9879 output_verbose_link_cmd='echo' 9880 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9881 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9883 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9884 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}' 9885 ;; 9886 *) 9887 ld_shlibs=no 9888 ;; 9889 esac 9890 fi 9891 ;; 9892 9893 dgux*) 9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9895 hardcode_libdir_flag_spec='-L$libdir' 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 freebsd1*) 9900 ld_shlibs=no 9901 ;; 9902 9903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9904 # support. Future versions do this automatically, but an explicit c++rt0.o 9905 # does not break anything, and helps significantly (at the cost of a little 9906 # extra space). 9907 freebsd2.2*) 9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9909 hardcode_libdir_flag_spec='-R$libdir' 9910 hardcode_direct=yes 9911 hardcode_shlibpath_var=no 9912 ;; 9913 9914 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9915 freebsd2*) 9916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9917 hardcode_direct=yes 9918 hardcode_minus_L=yes 9919 hardcode_shlibpath_var=no 9920 ;; 9921 9922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9923 freebsd* | dragonfly*) 9924 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9925 hardcode_libdir_flag_spec='-R$libdir' 9926 hardcode_direct=yes 9927 hardcode_shlibpath_var=no 9928 ;; 9929 9930 hpux9*) 9931 if test "$GCC" = yes; then 9932 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9933 else 9934 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9935 fi 9936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9937 hardcode_libdir_separator=: 9938 hardcode_direct=yes 9939 9940 # hardcode_minus_L: Not really in the search PATH, 9941 # but as the default location of the library. 9942 hardcode_minus_L=yes 9943 export_dynamic_flag_spec='${wl}-E' 9944 ;; 9945 9946 hpux10*) 9947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9948 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9949 else 9950 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9951 fi 9952 if test "$with_gnu_ld" = no; then 9953 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9954 hardcode_libdir_separator=: 9955 9956 hardcode_direct=yes 9957 export_dynamic_flag_spec='${wl}-E' 9958 9959 # hardcode_minus_L: Not really in the search PATH, 9960 # but as the default location of the library. 9961 hardcode_minus_L=yes 9962 fi 9963 ;; 9964 9965 hpux11*) 9966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9967 case $host_cpu in 9968 hppa*64*) 9969 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9970 ;; 9971 ia64*) 9972 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9973 ;; 9974 *) 9975 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9976 ;; 9977 esac 9978 else 9979 case $host_cpu in 9980 hppa*64*) 9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 ;; 9983 ia64*) 9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9985 ;; 9986 *) 9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9988 ;; 9989 esac 9990 fi 9991 if test "$with_gnu_ld" = no; then 9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9993 hardcode_libdir_separator=: 9994 9995 case $host_cpu in 9996 hppa*64*|ia64*) 9997 hardcode_libdir_flag_spec_ld='+b $libdir' 9998 hardcode_direct=no 9999 hardcode_shlibpath_var=no 10000 ;; 10001 *) 10002 hardcode_direct=yes 10003 export_dynamic_flag_spec='${wl}-E' 10004 10005 # hardcode_minus_L: Not really in the search PATH, 10006 # but as the default location of the library. 10007 hardcode_minus_L=yes 10008 ;; 10009 esac 10010 fi 10011 ;; 10012 10013 irix5* | irix6* | nonstopux*) 10014 if test "$GCC" = yes; then 10015 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' 10016 else 10017 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' 10018 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10019 fi 10020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10021 hardcode_libdir_separator=: 10022 link_all_deplibs=yes 10023 ;; 10024 10025 netbsd* | netbsdelf*-gnu) 10026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10028 else 10029 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10030 fi 10031 hardcode_libdir_flag_spec='-R$libdir' 10032 hardcode_direct=yes 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 newsos6) 10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10038 hardcode_direct=yes 10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10040 hardcode_libdir_separator=: 10041 hardcode_shlibpath_var=no 10042 ;; 10043 10044 openbsd*) 10045 if test -f /usr/libexec/ld.so; then 10046 hardcode_direct=yes 10047 hardcode_shlibpath_var=no 10048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10050 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10051 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10052 export_dynamic_flag_spec='${wl}-E' 10053 else 10054 case $host_os in 10055 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10057 hardcode_libdir_flag_spec='-R$libdir' 10058 ;; 10059 *) 10060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10061 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10062 ;; 10063 esac 10064 fi 10065 else 10066 ld_shlibs=no 10067 fi 10068 ;; 10069 10070 os2*) 10071 hardcode_libdir_flag_spec='-L$libdir' 10072 hardcode_minus_L=yes 10073 allow_undefined_flag=unsupported 10074 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' 10075 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10076 ;; 10077 10078 osf3*) 10079 if test "$GCC" = yes; then 10080 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10081 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' 10082 else 10083 allow_undefined_flag=' -expect_unresolved \*' 10084 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' 10085 fi 10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10087 hardcode_libdir_separator=: 10088 ;; 10089 10090 osf4* | osf5*) # as osf3* with the addition of -msym flag 10091 if test "$GCC" = yes; then 10092 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10093 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' 10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10095 else 10096 allow_undefined_flag=' -expect_unresolved \*' 10097 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' 10098 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10099 $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' 10100 10101 # Both c and cxx compiler support -rpath directly 10102 hardcode_libdir_flag_spec='-rpath $libdir' 10103 fi 10104 hardcode_libdir_separator=: 10105 ;; 10106 10107 solaris*) 10108 no_undefined_flag=' -z text' 10109 if test "$GCC" = yes; then 10110 wlarc='${wl}' 10111 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10112 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10113 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10114 else 10115 wlarc='' 10116 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10117 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10119 fi 10120 hardcode_libdir_flag_spec='-R$libdir' 10121 hardcode_shlibpath_var=no 10122 case $host_os in 10123 solaris2.[0-5] | solaris2.[0-5].*) ;; 10124 *) 10125 # The compiler driver will combine and reorder linker options, 10126 # but understands `-z linker_flag'. GCC discards it without `$wl', 10127 # but is careful enough not to reorder. 10128 # Supported since Solaris 2.6 (maybe 2.5.1?) 10129 if test "$GCC" = yes; then 10130 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10131 else 10132 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10133 fi 10134 ;; 10135 esac 10136 link_all_deplibs=yes 10137 ;; 10138 10139 sunos4*) 10140 if test "x$host_vendor" = xsequent; then 10141 # Use $CC to link under sequent, because it throws in some extra .o 10142 # files that make .init and .fini sections work. 10143 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10144 else 10145 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10146 fi 10147 hardcode_libdir_flag_spec='-L$libdir' 10148 hardcode_direct=yes 10149 hardcode_minus_L=yes 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 sysv4) 10154 case $host_vendor in 10155 sni) 10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10157 hardcode_direct=yes # is this really true??? 10158 ;; 10159 siemens) 10160 ## LD is ld it makes a PLAMLIB 10161 ## CC just makes a GrossModule. 10162 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10163 reload_cmds='$CC -r -o $output$reload_objs' 10164 hardcode_direct=no 10165 ;; 10166 motorola) 10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10168 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10169 ;; 10170 esac 10171 runpath_var='LD_RUN_PATH' 10172 hardcode_shlibpath_var=no 10173 ;; 10174 10175 sysv4.3*) 10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10177 hardcode_shlibpath_var=no 10178 export_dynamic_flag_spec='-Bexport' 10179 ;; 10180 10181 sysv4*MP*) 10182 if test -d /usr/nec; then 10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10184 hardcode_shlibpath_var=no 10185 runpath_var=LD_RUN_PATH 10186 hardcode_runpath_var=yes 10187 ld_shlibs=yes 10188 fi 10189 ;; 10190 10191 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10192 no_undefined_flag='${wl}-z,text' 10193 archive_cmds_need_lc=no 10194 hardcode_shlibpath_var=no 10195 runpath_var='LD_RUN_PATH' 10196 10197 if test "$GCC" = yes; then 10198 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10199 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10200 else 10201 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10202 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10203 fi 10204 ;; 10205 10206 sysv5* | sco3.2v5* | sco5v6*) 10207 # Note: We can NOT use -z defs as we might desire, because we do not 10208 # link with -lc, and that would cause any symbols used from libc to 10209 # always be unresolved, which means just about no library would 10210 # ever link correctly. If we're not using GNU ld we use -z text 10211 # though, which does catch some bad symbols but isn't as heavy-handed 10212 # as -z defs. 10213 no_undefined_flag='${wl}-z,text' 10214 allow_undefined_flag='${wl}-z,nodefs' 10215 archive_cmds_need_lc=no 10216 hardcode_shlibpath_var=no 10217 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10218 hardcode_libdir_separator=':' 10219 link_all_deplibs=yes 10220 export_dynamic_flag_spec='${wl}-Bexport' 10221 runpath_var='LD_RUN_PATH' 10222 10223 if test "$GCC" = yes; then 10224 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10225 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10226 else 10227 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10228 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10229 fi 10230 ;; 10231 10232 uts4*) 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_libdir_flag_spec='-L$libdir' 10235 hardcode_shlibpath_var=no 10236 ;; 10237 10238 *) 10239 ld_shlibs=no 10240 ;; 10241 esac 10242 fi 10243 10244{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10245echo "${ECHO_T}$ld_shlibs" >&6; } 10246test "$ld_shlibs" = no && can_build_shared=no 10247 10248# 10249# Do we need to explicitly link libc? 10250# 10251case "x$archive_cmds_need_lc" in 10252x|xyes) 10253 # Assume -lc should be added 10254 archive_cmds_need_lc=yes 10255 10256 if test "$enable_shared" = yes && test "$GCC" = yes; then 10257 case $archive_cmds in 10258 *'~'*) 10259 # FIXME: we may have to deal with multi-command sequences. 10260 ;; 10261 '$CC '*) 10262 # Test whether the compiler implicitly links with -lc since on some 10263 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10264 # to ld, don't add -lc before -lgcc. 10265 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10266echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10267 $rm conftest* 10268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10269 10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10271 (eval $ac_compile) 2>&5 10272 ac_status=$? 10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10274 (exit $ac_status); } 2>conftest.err; then 10275 soname=conftest 10276 lib=conftest 10277 libobjs=conftest.$ac_objext 10278 deplibs= 10279 wl=$lt_prog_compiler_wl 10280 pic_flag=$lt_prog_compiler_pic 10281 compiler_flags=-v 10282 linker_flags=-v 10283 verstring= 10284 output_objdir=. 10285 libname=conftest 10286 lt_save_allow_undefined_flag=$allow_undefined_flag 10287 allow_undefined_flag= 10288 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10289 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10290 ac_status=$? 10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10292 (exit $ac_status); } 10293 then 10294 archive_cmds_need_lc=no 10295 else 10296 archive_cmds_need_lc=yes 10297 fi 10298 allow_undefined_flag=$lt_save_allow_undefined_flag 10299 else 10300 cat conftest.err 1>&5 10301 fi 10302 $rm conftest* 10303 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10304echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10305 ;; 10306 esac 10307 fi 10308 ;; 10309esac 10310 10311{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10312echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10313library_names_spec= 10314libname_spec='lib$name' 10315soname_spec= 10316shrext_cmds=".so" 10317postinstall_cmds= 10318postuninstall_cmds= 10319finish_cmds= 10320finish_eval= 10321shlibpath_var= 10322shlibpath_overrides_runpath=unknown 10323version_type=none 10324dynamic_linker="$host_os ld.so" 10325sys_lib_dlsearch_path_spec="/lib /usr/lib" 10326 10327if test "$GCC" = yes; then 10328 case $host_os in 10329 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10330 *) lt_awk_arg="/^libraries:/" ;; 10331 esac 10332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10333 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 10334 # if the path contains ";" then we assume it to be the separator 10335 # otherwise default to the standard path separator (i.e. ":") - it is 10336 # assumed that no part of a normal pathname contains ";" but that should 10337 # okay in the real world where ";" in dirpaths is itself problematic. 10338 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10339 else 10340 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10341 fi 10342 # Ok, now we have the path, separated by spaces, we can step through it 10343 # and add multilib dir if necessary. 10344 lt_tmp_lt_search_path_spec= 10345 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10346 for lt_sys_path in $lt_search_path_spec; do 10347 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10349 else 10350 test -d "$lt_sys_path" && \ 10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10352 fi 10353 done 10354 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 10355BEGIN {RS=" "; FS="/|\n";} { 10356 lt_foo=""; 10357 lt_count=0; 10358 for (lt_i = NF; lt_i > 0; lt_i--) { 10359 if ($lt_i != "" && $lt_i != ".") { 10360 if ($lt_i == "..") { 10361 lt_count++; 10362 } else { 10363 if (lt_count == 0) { 10364 lt_foo="/" $lt_i lt_foo; 10365 } else { 10366 lt_count--; 10367 } 10368 } 10369 } 10370 } 10371 if (lt_foo != "") { lt_freq[lt_foo]++; } 10372 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10373}'` 10374 sys_lib_search_path_spec=`echo $lt_search_path_spec` 10375else 10376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10377fi 10378need_lib_prefix=unknown 10379hardcode_into_libs=no 10380 10381# when you set need_version to no, make sure it does not cause -set_version 10382# flags to be left without arguments 10383need_version=unknown 10384 10385case $host_os in 10386aix3*) 10387 version_type=linux 10388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10389 shlibpath_var=LIBPATH 10390 10391 # AIX 3 has no versioning support, so we append a major version to the name. 10392 soname_spec='${libname}${release}${shared_ext}$major' 10393 ;; 10394 10395aix4* | aix5*) 10396 version_type=linux 10397 need_lib_prefix=no 10398 need_version=no 10399 hardcode_into_libs=yes 10400 if test "$host_cpu" = ia64; then 10401 # AIX 5 supports IA64 10402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10403 shlibpath_var=LD_LIBRARY_PATH 10404 else 10405 # With GCC up to 2.95.x, collect2 would create an import file 10406 # for dependence libraries. The import file would start with 10407 # the line `#! .'. This would cause the generated library to 10408 # depend on `.', always an invalid library. This was fixed in 10409 # development snapshots of GCC prior to 3.0. 10410 case $host_os in 10411 aix4 | aix4.[01] | aix4.[01].*) 10412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10413 echo ' yes ' 10414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10415 : 10416 else 10417 can_build_shared=no 10418 fi 10419 ;; 10420 esac 10421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10422 # soname into executable. Probably we can add versioning support to 10423 # collect2, so additional links can be useful in future. 10424 if test "$aix_use_runtimelinking" = yes; then 10425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10426 # instead of lib<name>.a to let people know that these are not 10427 # typical AIX shared libraries. 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10429 else 10430 # We preserve .a as extension for shared libraries through AIX4.2 10431 # and later when we are not doing run time linking. 10432 library_names_spec='${libname}${release}.a $libname.a' 10433 soname_spec='${libname}${release}${shared_ext}$major' 10434 fi 10435 shlibpath_var=LIBPATH 10436 fi 10437 ;; 10438 10439amigaos*) 10440 library_names_spec='$libname.ixlibrary $libname.a' 10441 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10442 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' 10443 ;; 10444 10445beos*) 10446 library_names_spec='${libname}${shared_ext}' 10447 dynamic_linker="$host_os ld.so" 10448 shlibpath_var=LIBRARY_PATH 10449 ;; 10450 10451bsdi[45]*) 10452 version_type=linux 10453 need_version=no 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10455 soname_spec='${libname}${release}${shared_ext}$major' 10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10457 shlibpath_var=LD_LIBRARY_PATH 10458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10460 # the default ld.so.conf also contains /usr/contrib/lib and 10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10462 # libtool to hard-code these into programs 10463 ;; 10464 10465cygwin* | mingw* | pw32*) 10466 version_type=windows 10467 shrext_cmds=".dll" 10468 need_version=no 10469 need_lib_prefix=no 10470 10471 case $GCC,$host_os in 10472 yes,cygwin* | yes,mingw* | yes,pw32*) 10473 library_names_spec='$libname.dll.a' 10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10475 postinstall_cmds='base_file=`basename \${file}`~ 10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10477 dldir=$destdir/`dirname \$dlpath`~ 10478 test -d \$dldir || mkdir -p \$dldir~ 10479 $install_prog $dir/$dlname \$dldir/$dlname~ 10480 chmod a+x \$dldir/$dlname' 10481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10482 dlpath=$dir/\$dldll~ 10483 $rm \$dlpath' 10484 shlibpath_overrides_runpath=yes 10485 10486 case $host_os in 10487 cygwin*) 10488 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10490 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10491 ;; 10492 mingw*) 10493 # MinGW DLLs use traditional 'lib' prefix 10494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10496 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10497 # It is most probably a Windows format PATH printed by 10498 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10499 # path with ; separators, and with drive letters. We can handle the 10500 # drive letters (cygwin fileutils understands them), so leave them, 10501 # especially as we might pass files found there to a mingw objdump, 10502 # which wouldn't understand a cygwinified path. Ahh. 10503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10504 else 10505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10506 fi 10507 ;; 10508 pw32*) 10509 # pw32 DLLs use 'pw' prefix rather than 'lib' 10510 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10511 ;; 10512 esac 10513 ;; 10514 10515 *) 10516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10517 ;; 10518 esac 10519 dynamic_linker='Win32 ld.exe' 10520 # FIXME: first we should search . and the directory the executable is in 10521 shlibpath_var=PATH 10522 ;; 10523 10524darwin* | rhapsody*) 10525 dynamic_linker="$host_os dyld" 10526 version_type=darwin 10527 need_lib_prefix=no 10528 need_version=no 10529 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10530 soname_spec='${libname}${release}${major}$shared_ext' 10531 shlibpath_overrides_runpath=yes 10532 shlibpath_var=DYLD_LIBRARY_PATH 10533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10534 10535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10537 ;; 10538 10539dgux*) 10540 version_type=linux 10541 need_lib_prefix=no 10542 need_version=no 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10544 soname_spec='${libname}${release}${shared_ext}$major' 10545 shlibpath_var=LD_LIBRARY_PATH 10546 ;; 10547 10548freebsd1*) 10549 dynamic_linker=no 10550 ;; 10551 10552freebsd* | dragonfly*) 10553 # DragonFly does not have aout. When/if they implement a new 10554 # versioning mechanism, adjust this. 10555 if test -x /usr/bin/objformat; then 10556 objformat=`/usr/bin/objformat` 10557 else 10558 case $host_os in 10559 freebsd[123]*) objformat=aout ;; 10560 *) objformat=elf ;; 10561 esac 10562 fi 10563 version_type=freebsd-$objformat 10564 case $version_type in 10565 freebsd-elf*) 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10567 need_version=no 10568 need_lib_prefix=no 10569 ;; 10570 freebsd-*) 10571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10572 need_version=yes 10573 ;; 10574 esac 10575 shlibpath_var=LD_LIBRARY_PATH 10576 case $host_os in 10577 freebsd2*) 10578 shlibpath_overrides_runpath=yes 10579 ;; 10580 freebsd3.[01]* | freebsdelf3.[01]*) 10581 shlibpath_overrides_runpath=yes 10582 hardcode_into_libs=yes 10583 ;; 10584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10586 shlibpath_overrides_runpath=no 10587 hardcode_into_libs=yes 10588 ;; 10589 *) # from 4.6 on, and DragonFly 10590 shlibpath_overrides_runpath=yes 10591 hardcode_into_libs=yes 10592 ;; 10593 esac 10594 ;; 10595 10596gnu*) 10597 version_type=linux 10598 need_lib_prefix=no 10599 need_version=no 10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10601 soname_spec='${libname}${release}${shared_ext}$major' 10602 shlibpath_var=LD_LIBRARY_PATH 10603 hardcode_into_libs=yes 10604 ;; 10605 10606hpux9* | hpux10* | hpux11*) 10607 # Give a soname corresponding to the major version so that dld.sl refuses to 10608 # link against other versions. 10609 version_type=sunos 10610 need_lib_prefix=no 10611 need_version=no 10612 case $host_cpu in 10613 ia64*) 10614 shrext_cmds='.so' 10615 hardcode_into_libs=yes 10616 dynamic_linker="$host_os dld.so" 10617 shlibpath_var=LD_LIBRARY_PATH 10618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10620 soname_spec='${libname}${release}${shared_ext}$major' 10621 if test "X$HPUX_IA64_MODE" = X32; then 10622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10623 else 10624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10625 fi 10626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10627 ;; 10628 hppa*64*) 10629 shrext_cmds='.sl' 10630 hardcode_into_libs=yes 10631 dynamic_linker="$host_os dld.sl" 10632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10635 soname_spec='${libname}${release}${shared_ext}$major' 10636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10638 ;; 10639 *) 10640 shrext_cmds='.sl' 10641 dynamic_linker="$host_os dld.sl" 10642 shlibpath_var=SHLIB_PATH 10643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 ;; 10647 esac 10648 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10649 postinstall_cmds='chmod 555 $lib' 10650 ;; 10651 10652interix[3-9]*) 10653 version_type=linux 10654 need_lib_prefix=no 10655 need_version=no 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10657 soname_spec='${libname}${release}${shared_ext}$major' 10658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10659 shlibpath_var=LD_LIBRARY_PATH 10660 shlibpath_overrides_runpath=no 10661 hardcode_into_libs=yes 10662 ;; 10663 10664irix5* | irix6* | nonstopux*) 10665 case $host_os in 10666 nonstopux*) version_type=nonstopux ;; 10667 *) 10668 if test "$lt_cv_prog_gnu_ld" = yes; then 10669 version_type=linux 10670 else 10671 version_type=irix 10672 fi ;; 10673 esac 10674 need_lib_prefix=no 10675 need_version=no 10676 soname_spec='${libname}${release}${shared_ext}$major' 10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10678 case $host_os in 10679 irix5* | nonstopux*) 10680 libsuff= shlibsuff= 10681 ;; 10682 *) 10683 case $LD in # libtool.m4 will add one of these switches to LD 10684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10685 libsuff= shlibsuff= libmagic=32-bit;; 10686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10687 libsuff=32 shlibsuff=N32 libmagic=N32;; 10688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10689 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10690 *) libsuff= shlibsuff= libmagic=never-match;; 10691 esac 10692 ;; 10693 esac 10694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10695 shlibpath_overrides_runpath=no 10696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10698 hardcode_into_libs=yes 10699 ;; 10700 10701# No shared lib support for Linux oldld, aout, or coff. 10702linux*oldld* | linux*aout* | linux*coff*) 10703 dynamic_linker=no 10704 ;; 10705 10706# This must be Linux ELF. 10707linux* | k*bsd*-gnu) 10708 version_type=linux 10709 need_lib_prefix=no 10710 need_version=no 10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10712 soname_spec='${libname}${release}${shared_ext}$major' 10713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10714 shlibpath_var=LD_LIBRARY_PATH 10715 shlibpath_overrides_runpath=no 10716 # This implies no fast_install, which is unacceptable. 10717 # Some rework will be needed to allow for fast_install 10718 # before this can be enabled. 10719 hardcode_into_libs=yes 10720 10721 # Append ld.so.conf contents to the search path 10722 if test -f /etc/ld.so.conf; then 10723 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10724 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10725 fi 10726 10727 # We used to test for /lib/ld.so.1 and disable shared libraries on 10728 # powerpc, because MkLinux only supported shared libraries with the 10729 # GNU dynamic linker. Since this was broken with cross compilers, 10730 # most powerpc-linux boxes support dynamic linking these days and 10731 # people can always --disable-shared, the test was removed, and we 10732 # assume the GNU/Linux dynamic linker is in use. 10733 dynamic_linker='GNU/Linux ld.so' 10734 ;; 10735 10736netbsdelf*-gnu) 10737 version_type=linux 10738 need_lib_prefix=no 10739 need_version=no 10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10741 soname_spec='${libname}${release}${shared_ext}$major' 10742 shlibpath_var=LD_LIBRARY_PATH 10743 shlibpath_overrides_runpath=no 10744 hardcode_into_libs=yes 10745 dynamic_linker='NetBSD ld.elf_so' 10746 ;; 10747 10748netbsd*) 10749 version_type=sunos 10750 need_lib_prefix=no 10751 need_version=no 10752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10755 dynamic_linker='NetBSD (a.out) ld.so' 10756 else 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 dynamic_linker='NetBSD ld.elf_so' 10760 fi 10761 shlibpath_var=LD_LIBRARY_PATH 10762 shlibpath_overrides_runpath=yes 10763 hardcode_into_libs=yes 10764 ;; 10765 10766newsos6) 10767 version_type=linux 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 shlibpath_overrides_runpath=yes 10771 ;; 10772 10773nto-qnx*) 10774 version_type=linux 10775 need_lib_prefix=no 10776 need_version=no 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10778 soname_spec='${libname}${release}${shared_ext}$major' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 shlibpath_overrides_runpath=yes 10781 ;; 10782 10783openbsd*) 10784 version_type=sunos 10785 sys_lib_dlsearch_path_spec="/usr/lib" 10786 need_lib_prefix=no 10787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10788 case $host_os in 10789 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10790 *) need_version=no ;; 10791 esac 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10796 case $host_os in 10797 openbsd2.[89] | openbsd2.[89].*) 10798 shlibpath_overrides_runpath=no 10799 ;; 10800 *) 10801 shlibpath_overrides_runpath=yes 10802 ;; 10803 esac 10804 else 10805 shlibpath_overrides_runpath=yes 10806 fi 10807 ;; 10808 10809os2*) 10810 libname_spec='$name' 10811 shrext_cmds=".dll" 10812 need_lib_prefix=no 10813 library_names_spec='$libname${shared_ext} $libname.a' 10814 dynamic_linker='OS/2 ld.exe' 10815 shlibpath_var=LIBPATH 10816 ;; 10817 10818osf3* | osf4* | osf5*) 10819 version_type=osf 10820 need_lib_prefix=no 10821 need_version=no 10822 soname_spec='${libname}${release}${shared_ext}$major' 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10824 shlibpath_var=LD_LIBRARY_PATH 10825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10827 ;; 10828 10829rdos*) 10830 dynamic_linker=no 10831 ;; 10832 10833solaris*) 10834 version_type=linux 10835 need_lib_prefix=no 10836 need_version=no 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10838 soname_spec='${libname}${release}${shared_ext}$major' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 shlibpath_overrides_runpath=yes 10841 hardcode_into_libs=yes 10842 # ldd complains unless libraries are executable 10843 postinstall_cmds='chmod +x $lib' 10844 ;; 10845 10846sunos4*) 10847 version_type=sunos 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 shlibpath_overrides_runpath=yes 10852 if test "$with_gnu_ld" = yes; then 10853 need_lib_prefix=no 10854 fi 10855 need_version=yes 10856 ;; 10857 10858sysv4 | sysv4.3*) 10859 version_type=linux 10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10861 soname_spec='${libname}${release}${shared_ext}$major' 10862 shlibpath_var=LD_LIBRARY_PATH 10863 case $host_vendor in 10864 sni) 10865 shlibpath_overrides_runpath=no 10866 need_lib_prefix=no 10867 export_dynamic_flag_spec='${wl}-Blargedynsym' 10868 runpath_var=LD_RUN_PATH 10869 ;; 10870 siemens) 10871 need_lib_prefix=no 10872 ;; 10873 motorola) 10874 need_lib_prefix=no 10875 need_version=no 10876 shlibpath_overrides_runpath=no 10877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10878 ;; 10879 esac 10880 ;; 10881 10882sysv4*MP*) 10883 if test -d /usr/nec ;then 10884 version_type=linux 10885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10886 soname_spec='$libname${shared_ext}.$major' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 fi 10889 ;; 10890 10891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10892 version_type=freebsd-elf 10893 need_lib_prefix=no 10894 need_version=no 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10896 soname_spec='${libname}${release}${shared_ext}$major' 10897 shlibpath_var=LD_LIBRARY_PATH 10898 hardcode_into_libs=yes 10899 if test "$with_gnu_ld" = yes; then 10900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10901 shlibpath_overrides_runpath=no 10902 else 10903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10904 shlibpath_overrides_runpath=yes 10905 case $host_os in 10906 sco3.2v5*) 10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10908 ;; 10909 esac 10910 fi 10911 sys_lib_dlsearch_path_spec='/usr/lib' 10912 ;; 10913 10914uts4*) 10915 version_type=linux 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 ;; 10920 10921*) 10922 dynamic_linker=no 10923 ;; 10924esac 10925{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10926echo "${ECHO_T}$dynamic_linker" >&6; } 10927test "$dynamic_linker" = no && can_build_shared=no 10928 10929variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10930if test "$GCC" = yes; then 10931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10932fi 10933 10934{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10935echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10936hardcode_action= 10937if test -n "$hardcode_libdir_flag_spec" || \ 10938 test -n "$runpath_var" || \ 10939 test "X$hardcode_automatic" = "Xyes" ; then 10940 10941 # We can hardcode non-existant directories. 10942 if test "$hardcode_direct" != no && 10943 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10944 # have to relink, otherwise we might link with an installed library 10945 # when we should be linking with a yet-to-be-installed one 10946 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10947 test "$hardcode_minus_L" != no; then 10948 # Linking always hardcodes the temporary library directory. 10949 hardcode_action=relink 10950 else 10951 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10952 hardcode_action=immediate 10953 fi 10954else 10955 # We cannot hardcode anything, or else we can only hardcode existing 10956 # directories. 10957 hardcode_action=unsupported 10958fi 10959{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10960echo "${ECHO_T}$hardcode_action" >&6; } 10961 10962if test "$hardcode_action" = relink; then 10963 # Fast installation is not supported 10964 enable_fast_install=no 10965elif test "$shlibpath_overrides_runpath" = yes || 10966 test "$enable_shared" = no; then 10967 # Fast installation is not necessary 10968 enable_fast_install=needless 10969fi 10970 10971striplib= 10972old_striplib= 10973{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10974echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10975if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10977 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10978 { echo "$as_me:$LINENO: result: yes" >&5 10979echo "${ECHO_T}yes" >&6; } 10980else 10981# FIXME - insert some real tests, host_os isn't really good enough 10982 case $host_os in 10983 darwin*) 10984 if test -n "$STRIP" ; then 10985 striplib="$STRIP -x" 10986 old_striplib="$STRIP -S" 10987 { echo "$as_me:$LINENO: result: yes" >&5 10988echo "${ECHO_T}yes" >&6; } 10989 else 10990 { echo "$as_me:$LINENO: result: no" >&5 10991echo "${ECHO_T}no" >&6; } 10992fi 10993 ;; 10994 *) 10995 { echo "$as_me:$LINENO: result: no" >&5 10996echo "${ECHO_T}no" >&6; } 10997 ;; 10998 esac 10999fi 11000 11001if test "x$enable_dlopen" != xyes; then 11002 enable_dlopen=unknown 11003 enable_dlopen_self=unknown 11004 enable_dlopen_self_static=unknown 11005else 11006 lt_cv_dlopen=no 11007 lt_cv_dlopen_libs= 11008 11009 case $host_os in 11010 beos*) 11011 lt_cv_dlopen="load_add_on" 11012 lt_cv_dlopen_libs= 11013 lt_cv_dlopen_self=yes 11014 ;; 11015 11016 mingw* | pw32*) 11017 lt_cv_dlopen="LoadLibrary" 11018 lt_cv_dlopen_libs= 11019 ;; 11020 11021 cygwin*) 11022 lt_cv_dlopen="dlopen" 11023 lt_cv_dlopen_libs= 11024 ;; 11025 11026 darwin*) 11027 # if libdl is installed we need to link against it 11028 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11030if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11031 echo $ECHO_N "(cached) $ECHO_C" >&6 11032else 11033 ac_check_lib_save_LIBS=$LIBS 11034LIBS="-ldl $LIBS" 11035cat >conftest.$ac_ext <<_ACEOF 11036/* confdefs.h. */ 11037_ACEOF 11038cat confdefs.h >>conftest.$ac_ext 11039cat >>conftest.$ac_ext <<_ACEOF 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dlopen (); 11049int 11050main () 11051{ 11052return dlopen (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057rm -f conftest.$ac_objext conftest$ac_exeext 11058if { (ac_try="$ac_link" 11059case "(($ac_try" in 11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11061 *) ac_try_echo=$ac_try;; 11062esac 11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11064 (eval "$ac_link") 2>conftest.er1 11065 ac_status=$? 11066 grep -v '^ *+' conftest.er1 >conftest.err 11067 rm -f conftest.er1 11068 cat conftest.err >&5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11070 (exit $ac_status); } && { 11071 test -z "$ac_c_werror_flag" || 11072 test ! -s conftest.err 11073 } && test -s conftest$ac_exeext && 11074 $as_test_x conftest$ac_exeext; then 11075 ac_cv_lib_dl_dlopen=yes 11076else 11077 echo "$as_me: failed program was:" >&5 11078sed 's/^/| /' conftest.$ac_ext >&5 11079 11080 ac_cv_lib_dl_dlopen=no 11081fi 11082 11083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11084 conftest$ac_exeext conftest.$ac_ext 11085LIBS=$ac_check_lib_save_LIBS 11086fi 11087{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11088echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11089if test $ac_cv_lib_dl_dlopen = yes; then 11090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11091else 11092 11093 lt_cv_dlopen="dyld" 11094 lt_cv_dlopen_libs= 11095 lt_cv_dlopen_self=yes 11096 11097fi 11098 11099 ;; 11100 11101 *) 11102 { echo "$as_me:$LINENO: checking for shl_load" >&5 11103echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11104if test "${ac_cv_func_shl_load+set}" = set; then 11105 echo $ECHO_N "(cached) $ECHO_C" >&6 11106else 11107 cat >conftest.$ac_ext <<_ACEOF 11108/* confdefs.h. */ 11109_ACEOF 11110cat confdefs.h >>conftest.$ac_ext 11111cat >>conftest.$ac_ext <<_ACEOF 11112/* end confdefs.h. */ 11113/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11115#define shl_load innocuous_shl_load 11116 11117/* System header to define __stub macros and hopefully few prototypes, 11118 which can conflict with char shl_load (); below. 11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11120 <limits.h> exists even on freestanding compilers. */ 11121 11122#ifdef __STDC__ 11123# include <limits.h> 11124#else 11125# include <assert.h> 11126#endif 11127 11128#undef shl_load 11129 11130/* Override any GCC internal prototype to avoid an error. 11131 Use char because int might match the return type of a GCC 11132 builtin and then its argument prototype would still apply. */ 11133#ifdef __cplusplus 11134extern "C" 11135#endif 11136char shl_load (); 11137/* The GNU C library defines this for functions which it implements 11138 to always fail with ENOSYS. Some functions are actually named 11139 something starting with __ and the normal name is an alias. */ 11140#if defined __stub_shl_load || defined __stub___shl_load 11141choke me 11142#endif 11143 11144int 11145main () 11146{ 11147return shl_load (); 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152rm -f conftest.$ac_objext conftest$ac_exeext 11153if { (ac_try="$ac_link" 11154case "(($ac_try" in 11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11156 *) ac_try_echo=$ac_try;; 11157esac 11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11159 (eval "$ac_link") 2>conftest.er1 11160 ac_status=$? 11161 grep -v '^ *+' conftest.er1 >conftest.err 11162 rm -f conftest.er1 11163 cat conftest.err >&5 11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11165 (exit $ac_status); } && { 11166 test -z "$ac_c_werror_flag" || 11167 test ! -s conftest.err 11168 } && test -s conftest$ac_exeext && 11169 $as_test_x conftest$ac_exeext; then 11170 ac_cv_func_shl_load=yes 11171else 11172 echo "$as_me: failed program was:" >&5 11173sed 's/^/| /' conftest.$ac_ext >&5 11174 11175 ac_cv_func_shl_load=no 11176fi 11177 11178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11179 conftest$ac_exeext conftest.$ac_ext 11180fi 11181{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11182echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11183if test $ac_cv_func_shl_load = yes; then 11184 lt_cv_dlopen="shl_load" 11185else 11186 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11187echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11188if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11189 echo $ECHO_N "(cached) $ECHO_C" >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldld $LIBS" 11193cat >conftest.$ac_ext <<_ACEOF 11194/* confdefs.h. */ 11195_ACEOF 11196cat confdefs.h >>conftest.$ac_ext 11197cat >>conftest.$ac_ext <<_ACEOF 11198/* end confdefs.h. */ 11199 11200/* Override any GCC internal prototype to avoid an error. 11201 Use char because int might match the return type of a GCC 11202 builtin and then its argument prototype would still apply. */ 11203#ifdef __cplusplus 11204extern "C" 11205#endif 11206char shl_load (); 11207int 11208main () 11209{ 11210return shl_load (); 11211 ; 11212 return 0; 11213} 11214_ACEOF 11215rm -f conftest.$ac_objext conftest$ac_exeext 11216if { (ac_try="$ac_link" 11217case "(($ac_try" in 11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11219 *) ac_try_echo=$ac_try;; 11220esac 11221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11222 (eval "$ac_link") 2>conftest.er1 11223 ac_status=$? 11224 grep -v '^ *+' conftest.er1 >conftest.err 11225 rm -f conftest.er1 11226 cat conftest.err >&5 11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11228 (exit $ac_status); } && { 11229 test -z "$ac_c_werror_flag" || 11230 test ! -s conftest.err 11231 } && test -s conftest$ac_exeext && 11232 $as_test_x conftest$ac_exeext; then 11233 ac_cv_lib_dld_shl_load=yes 11234else 11235 echo "$as_me: failed program was:" >&5 11236sed 's/^/| /' conftest.$ac_ext >&5 11237 11238 ac_cv_lib_dld_shl_load=no 11239fi 11240 11241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11242 conftest$ac_exeext conftest.$ac_ext 11243LIBS=$ac_check_lib_save_LIBS 11244fi 11245{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11246echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11247if test $ac_cv_lib_dld_shl_load = yes; then 11248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11249else 11250 { echo "$as_me:$LINENO: checking for dlopen" >&5 11251echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11252if test "${ac_cv_func_dlopen+set}" = set; then 11253 echo $ECHO_N "(cached) $ECHO_C" >&6 11254else 11255 cat >conftest.$ac_ext <<_ACEOF 11256/* confdefs.h. */ 11257_ACEOF 11258cat confdefs.h >>conftest.$ac_ext 11259cat >>conftest.$ac_ext <<_ACEOF 11260/* end confdefs.h. */ 11261/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11262 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11263#define dlopen innocuous_dlopen 11264 11265/* System header to define __stub macros and hopefully few prototypes, 11266 which can conflict with char dlopen (); below. 11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11268 <limits.h> exists even on freestanding compilers. */ 11269 11270#ifdef __STDC__ 11271# include <limits.h> 11272#else 11273# include <assert.h> 11274#endif 11275 11276#undef dlopen 11277 11278/* Override any GCC internal prototype to avoid an error. 11279 Use char because int might match the return type of a GCC 11280 builtin and then its argument prototype would still apply. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284char dlopen (); 11285/* The GNU C library defines this for functions which it implements 11286 to always fail with ENOSYS. Some functions are actually named 11287 something starting with __ and the normal name is an alias. */ 11288#if defined __stub_dlopen || defined __stub___dlopen 11289choke me 11290#endif 11291 11292int 11293main () 11294{ 11295return dlopen (); 11296 ; 11297 return 0; 11298} 11299_ACEOF 11300rm -f conftest.$ac_objext conftest$ac_exeext 11301if { (ac_try="$ac_link" 11302case "(($ac_try" in 11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11304 *) ac_try_echo=$ac_try;; 11305esac 11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11307 (eval "$ac_link") 2>conftest.er1 11308 ac_status=$? 11309 grep -v '^ *+' conftest.er1 >conftest.err 11310 rm -f conftest.er1 11311 cat conftest.err >&5 11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11313 (exit $ac_status); } && { 11314 test -z "$ac_c_werror_flag" || 11315 test ! -s conftest.err 11316 } && test -s conftest$ac_exeext && 11317 $as_test_x conftest$ac_exeext; then 11318 ac_cv_func_dlopen=yes 11319else 11320 echo "$as_me: failed program was:" >&5 11321sed 's/^/| /' conftest.$ac_ext >&5 11322 11323 ac_cv_func_dlopen=no 11324fi 11325 11326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11327 conftest$ac_exeext conftest.$ac_ext 11328fi 11329{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11330echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11331if test $ac_cv_func_dlopen = yes; then 11332 lt_cv_dlopen="dlopen" 11333else 11334 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11336if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11337 echo $ECHO_N "(cached) $ECHO_C" >&6 11338else 11339 ac_check_lib_save_LIBS=$LIBS 11340LIBS="-ldl $LIBS" 11341cat >conftest.$ac_ext <<_ACEOF 11342/* confdefs.h. */ 11343_ACEOF 11344cat confdefs.h >>conftest.$ac_ext 11345cat >>conftest.$ac_ext <<_ACEOF 11346/* end confdefs.h. */ 11347 11348/* Override any GCC internal prototype to avoid an error. 11349 Use char because int might match the return type of a GCC 11350 builtin and then its argument prototype would still apply. */ 11351#ifdef __cplusplus 11352extern "C" 11353#endif 11354char dlopen (); 11355int 11356main () 11357{ 11358return dlopen (); 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363rm -f conftest.$ac_objext conftest$ac_exeext 11364if { (ac_try="$ac_link" 11365case "(($ac_try" in 11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11367 *) ac_try_echo=$ac_try;; 11368esac 11369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11370 (eval "$ac_link") 2>conftest.er1 11371 ac_status=$? 11372 grep -v '^ *+' conftest.er1 >conftest.err 11373 rm -f conftest.er1 11374 cat conftest.err >&5 11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11376 (exit $ac_status); } && { 11377 test -z "$ac_c_werror_flag" || 11378 test ! -s conftest.err 11379 } && test -s conftest$ac_exeext && 11380 $as_test_x conftest$ac_exeext; then 11381 ac_cv_lib_dl_dlopen=yes 11382else 11383 echo "$as_me: failed program was:" >&5 11384sed 's/^/| /' conftest.$ac_ext >&5 11385 11386 ac_cv_lib_dl_dlopen=no 11387fi 11388 11389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11390 conftest$ac_exeext conftest.$ac_ext 11391LIBS=$ac_check_lib_save_LIBS 11392fi 11393{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11394echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11395if test $ac_cv_lib_dl_dlopen = yes; then 11396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11397else 11398 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11399echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11400if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11401 echo $ECHO_N "(cached) $ECHO_C" >&6 11402else 11403 ac_check_lib_save_LIBS=$LIBS 11404LIBS="-lsvld $LIBS" 11405cat >conftest.$ac_ext <<_ACEOF 11406/* confdefs.h. */ 11407_ACEOF 11408cat confdefs.h >>conftest.$ac_ext 11409cat >>conftest.$ac_ext <<_ACEOF 11410/* end confdefs.h. */ 11411 11412/* Override any GCC internal prototype to avoid an error. 11413 Use char because int might match the return type of a GCC 11414 builtin and then its argument prototype would still apply. */ 11415#ifdef __cplusplus 11416extern "C" 11417#endif 11418char dlopen (); 11419int 11420main () 11421{ 11422return dlopen (); 11423 ; 11424 return 0; 11425} 11426_ACEOF 11427rm -f conftest.$ac_objext conftest$ac_exeext 11428if { (ac_try="$ac_link" 11429case "(($ac_try" in 11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11431 *) ac_try_echo=$ac_try;; 11432esac 11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11434 (eval "$ac_link") 2>conftest.er1 11435 ac_status=$? 11436 grep -v '^ *+' conftest.er1 >conftest.err 11437 rm -f conftest.er1 11438 cat conftest.err >&5 11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11440 (exit $ac_status); } && { 11441 test -z "$ac_c_werror_flag" || 11442 test ! -s conftest.err 11443 } && test -s conftest$ac_exeext && 11444 $as_test_x conftest$ac_exeext; then 11445 ac_cv_lib_svld_dlopen=yes 11446else 11447 echo "$as_me: failed program was:" >&5 11448sed 's/^/| /' conftest.$ac_ext >&5 11449 11450 ac_cv_lib_svld_dlopen=no 11451fi 11452 11453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11454 conftest$ac_exeext conftest.$ac_ext 11455LIBS=$ac_check_lib_save_LIBS 11456fi 11457{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11458echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11459if test $ac_cv_lib_svld_dlopen = yes; then 11460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11461else 11462 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11463echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11464if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11465 echo $ECHO_N "(cached) $ECHO_C" >&6 11466else 11467 ac_check_lib_save_LIBS=$LIBS 11468LIBS="-ldld $LIBS" 11469cat >conftest.$ac_ext <<_ACEOF 11470/* confdefs.h. */ 11471_ACEOF 11472cat confdefs.h >>conftest.$ac_ext 11473cat >>conftest.$ac_ext <<_ACEOF 11474/* end confdefs.h. */ 11475 11476/* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479#ifdef __cplusplus 11480extern "C" 11481#endif 11482char dld_link (); 11483int 11484main () 11485{ 11486return dld_link (); 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491rm -f conftest.$ac_objext conftest$ac_exeext 11492if { (ac_try="$ac_link" 11493case "(($ac_try" in 11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11495 *) ac_try_echo=$ac_try;; 11496esac 11497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11498 (eval "$ac_link") 2>conftest.er1 11499 ac_status=$? 11500 grep -v '^ *+' conftest.er1 >conftest.err 11501 rm -f conftest.er1 11502 cat conftest.err >&5 11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); } && { 11505 test -z "$ac_c_werror_flag" || 11506 test ! -s conftest.err 11507 } && test -s conftest$ac_exeext && 11508 $as_test_x conftest$ac_exeext; then 11509 ac_cv_lib_dld_dld_link=yes 11510else 11511 echo "$as_me: failed program was:" >&5 11512sed 's/^/| /' conftest.$ac_ext >&5 11513 11514 ac_cv_lib_dld_dld_link=no 11515fi 11516 11517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11518 conftest$ac_exeext conftest.$ac_ext 11519LIBS=$ac_check_lib_save_LIBS 11520fi 11521{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11522echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11523if test $ac_cv_lib_dld_dld_link = yes; then 11524 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11525fi 11526 11527 11528fi 11529 11530 11531fi 11532 11533 11534fi 11535 11536 11537fi 11538 11539 11540fi 11541 11542 ;; 11543 esac 11544 11545 if test "x$lt_cv_dlopen" != xno; then 11546 enable_dlopen=yes 11547 else 11548 enable_dlopen=no 11549 fi 11550 11551 case $lt_cv_dlopen in 11552 dlopen) 11553 save_CPPFLAGS="$CPPFLAGS" 11554 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11555 11556 save_LDFLAGS="$LDFLAGS" 11557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11558 11559 save_LIBS="$LIBS" 11560 LIBS="$lt_cv_dlopen_libs $LIBS" 11561 11562 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11563echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11564if test "${lt_cv_dlopen_self+set}" = set; then 11565 echo $ECHO_N "(cached) $ECHO_C" >&6 11566else 11567 if test "$cross_compiling" = yes; then : 11568 lt_cv_dlopen_self=cross 11569else 11570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11571 lt_status=$lt_dlunknown 11572 cat > conftest.$ac_ext <<EOF 11573#line 11573 "configure" 11574#include "confdefs.h" 11575 11576#if HAVE_DLFCN_H 11577#include <dlfcn.h> 11578#endif 11579 11580#include <stdio.h> 11581 11582#ifdef RTLD_GLOBAL 11583# define LT_DLGLOBAL RTLD_GLOBAL 11584#else 11585# ifdef DL_GLOBAL 11586# define LT_DLGLOBAL DL_GLOBAL 11587# else 11588# define LT_DLGLOBAL 0 11589# endif 11590#endif 11591 11592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11593 find out it does not work in some platform. */ 11594#ifndef LT_DLLAZY_OR_NOW 11595# ifdef RTLD_LAZY 11596# define LT_DLLAZY_OR_NOW RTLD_LAZY 11597# else 11598# ifdef DL_LAZY 11599# define LT_DLLAZY_OR_NOW DL_LAZY 11600# else 11601# ifdef RTLD_NOW 11602# define LT_DLLAZY_OR_NOW RTLD_NOW 11603# else 11604# ifdef DL_NOW 11605# define LT_DLLAZY_OR_NOW DL_NOW 11606# else 11607# define LT_DLLAZY_OR_NOW 0 11608# endif 11609# endif 11610# endif 11611# endif 11612#endif 11613 11614#ifdef __cplusplus 11615extern "C" void exit (int); 11616#endif 11617 11618void fnord() { int i=42;} 11619int main () 11620{ 11621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11622 int status = $lt_dlunknown; 11623 11624 if (self) 11625 { 11626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11628 /* dlclose (self); */ 11629 } 11630 else 11631 puts (dlerror ()); 11632 11633 exit (status); 11634} 11635EOF 11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11637 (eval $ac_link) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11641 (./conftest; exit; ) >&5 2>/dev/null 11642 lt_status=$? 11643 case x$lt_status in 11644 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11645 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11646 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11647 esac 11648 else : 11649 # compilation failed 11650 lt_cv_dlopen_self=no 11651 fi 11652fi 11653rm -fr conftest* 11654 11655 11656fi 11657{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11658echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11659 11660 if test "x$lt_cv_dlopen_self" = xyes; then 11661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11662 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11663echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11664if test "${lt_cv_dlopen_self_static+set}" = set; then 11665 echo $ECHO_N "(cached) $ECHO_C" >&6 11666else 11667 if test "$cross_compiling" = yes; then : 11668 lt_cv_dlopen_self_static=cross 11669else 11670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11671 lt_status=$lt_dlunknown 11672 cat > conftest.$ac_ext <<EOF 11673#line 11673 "configure" 11674#include "confdefs.h" 11675 11676#if HAVE_DLFCN_H 11677#include <dlfcn.h> 11678#endif 11679 11680#include <stdio.h> 11681 11682#ifdef RTLD_GLOBAL 11683# define LT_DLGLOBAL RTLD_GLOBAL 11684#else 11685# ifdef DL_GLOBAL 11686# define LT_DLGLOBAL DL_GLOBAL 11687# else 11688# define LT_DLGLOBAL 0 11689# endif 11690#endif 11691 11692/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11693 find out it does not work in some platform. */ 11694#ifndef LT_DLLAZY_OR_NOW 11695# ifdef RTLD_LAZY 11696# define LT_DLLAZY_OR_NOW RTLD_LAZY 11697# else 11698# ifdef DL_LAZY 11699# define LT_DLLAZY_OR_NOW DL_LAZY 11700# else 11701# ifdef RTLD_NOW 11702# define LT_DLLAZY_OR_NOW RTLD_NOW 11703# else 11704# ifdef DL_NOW 11705# define LT_DLLAZY_OR_NOW DL_NOW 11706# else 11707# define LT_DLLAZY_OR_NOW 0 11708# endif 11709# endif 11710# endif 11711# endif 11712#endif 11713 11714#ifdef __cplusplus 11715extern "C" void exit (int); 11716#endif 11717 11718void fnord() { int i=42;} 11719int main () 11720{ 11721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11722 int status = $lt_dlunknown; 11723 11724 if (self) 11725 { 11726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11727 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11728 /* dlclose (self); */ 11729 } 11730 else 11731 puts (dlerror ()); 11732 11733 exit (status); 11734} 11735EOF 11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11737 (eval $ac_link) 2>&5 11738 ac_status=$? 11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11740 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11741 (./conftest; exit; ) >&5 2>/dev/null 11742 lt_status=$? 11743 case x$lt_status in 11744 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11745 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11746 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11747 esac 11748 else : 11749 # compilation failed 11750 lt_cv_dlopen_self_static=no 11751 fi 11752fi 11753rm -fr conftest* 11754 11755 11756fi 11757{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11758echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11759 fi 11760 11761 CPPFLAGS="$save_CPPFLAGS" 11762 LDFLAGS="$save_LDFLAGS" 11763 LIBS="$save_LIBS" 11764 ;; 11765 esac 11766 11767 case $lt_cv_dlopen_self in 11768 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11769 *) enable_dlopen_self=unknown ;; 11770 esac 11771 11772 case $lt_cv_dlopen_self_static in 11773 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11774 *) enable_dlopen_self_static=unknown ;; 11775 esac 11776fi 11777 11778 11779# Report which library types will actually be built 11780{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11781echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11782{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 11783echo "${ECHO_T}$can_build_shared" >&6; } 11784 11785{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11786echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11787test "$can_build_shared" = "no" && enable_shared=no 11788 11789# On AIX, shared libraries and static libraries use the same namespace, and 11790# are all built from PIC. 11791case $host_os in 11792aix3*) 11793 test "$enable_shared" = yes && enable_static=no 11794 if test -n "$RANLIB"; then 11795 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11796 postinstall_cmds='$RANLIB $lib' 11797 fi 11798 ;; 11799 11800aix4* | aix5*) 11801 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11802 test "$enable_shared" = yes && enable_static=no 11803 fi 11804 ;; 11805esac 11806{ echo "$as_me:$LINENO: result: $enable_shared" >&5 11807echo "${ECHO_T}$enable_shared" >&6; } 11808 11809{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11810echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11811# Make sure either enable_shared or enable_static is yes. 11812test "$enable_shared" = yes || enable_static=yes 11813{ echo "$as_me:$LINENO: result: $enable_static" >&5 11814echo "${ECHO_T}$enable_static" >&6; } 11815 11816# The else clause should only fire when bootstrapping the 11817# libtool distribution, otherwise you forgot to ship ltmain.sh 11818# with your package, and you will get complaints that there are 11819# no rules to generate ltmain.sh. 11820if test -f "$ltmain"; then 11821 # See if we are running on zsh, and set the options which allow our commands through 11822 # without removal of \ escapes. 11823 if test -n "${ZSH_VERSION+set}" ; then 11824 setopt NO_GLOB_SUBST 11825 fi 11826 # Now quote all the things that may contain metacharacters while being 11827 # careful not to overquote the AC_SUBSTed values. We take copies of the 11828 # variables and quote the copies for generation of the libtool script. 11829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11830 SED SHELL STRIP \ 11831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11833 deplibs_check_method reload_flag reload_cmds need_locks \ 11834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11835 lt_cv_sys_global_symbol_to_c_name_address \ 11836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11837 old_postinstall_cmds old_postuninstall_cmds \ 11838 compiler \ 11839 CC \ 11840 LD \ 11841 lt_prog_compiler_wl \ 11842 lt_prog_compiler_pic \ 11843 lt_prog_compiler_static \ 11844 lt_prog_compiler_no_builtin_flag \ 11845 export_dynamic_flag_spec \ 11846 thread_safe_flag_spec \ 11847 whole_archive_flag_spec \ 11848 enable_shared_with_static_runtimes \ 11849 old_archive_cmds \ 11850 old_archive_from_new_cmds \ 11851 predep_objects \ 11852 postdep_objects \ 11853 predeps \ 11854 postdeps \ 11855 compiler_lib_search_path \ 11856 archive_cmds \ 11857 archive_expsym_cmds \ 11858 postinstall_cmds \ 11859 postuninstall_cmds \ 11860 old_archive_from_expsyms_cmds \ 11861 allow_undefined_flag \ 11862 no_undefined_flag \ 11863 export_symbols_cmds \ 11864 hardcode_libdir_flag_spec \ 11865 hardcode_libdir_flag_spec_ld \ 11866 hardcode_libdir_separator \ 11867 hardcode_automatic \ 11868 module_cmds \ 11869 module_expsym_cmds \ 11870 lt_cv_prog_compiler_c_o \ 11871 fix_srcfile_path \ 11872 exclude_expsyms \ 11873 include_expsyms; do 11874 11875 case $var in 11876 old_archive_cmds | \ 11877 old_archive_from_new_cmds | \ 11878 archive_cmds | \ 11879 archive_expsym_cmds | \ 11880 module_cmds | \ 11881 module_expsym_cmds | \ 11882 old_archive_from_expsyms_cmds | \ 11883 export_symbols_cmds | \ 11884 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11885 postinstall_cmds | postuninstall_cmds | \ 11886 old_postinstall_cmds | old_postuninstall_cmds | \ 11887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11888 # Double-quote double-evaled strings. 11889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11890 ;; 11891 *) 11892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11893 ;; 11894 esac 11895 done 11896 11897 case $lt_echo in 11898 *'\$0 --fallback-echo"') 11899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11900 ;; 11901 esac 11902 11903cfgfile="${ofile}T" 11904 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11905 $rm -f "$cfgfile" 11906 { echo "$as_me:$LINENO: creating $ofile" >&5 11907echo "$as_me: creating $ofile" >&6;} 11908 11909 cat <<__EOF__ >> "$cfgfile" 11910#! $SHELL 11911 11912# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11913# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11914# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11915# 11916# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 11917# Free Software Foundation, Inc. 11918# 11919# This file is part of GNU Libtool: 11920# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11921# 11922# This program is free software; you can redistribute it and/or modify 11923# it under the terms of the GNU General Public License as published by 11924# the Free Software Foundation; either version 2 of the License, or 11925# (at your option) any later version. 11926# 11927# This program is distributed in the hope that it will be useful, but 11928# WITHOUT ANY WARRANTY; without even the implied warranty of 11929# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11930# General Public License for more details. 11931# 11932# You should have received a copy of the GNU General Public License 11933# along with this program; if not, write to the Free Software 11934# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11935# 11936# As a special exception to the GNU General Public License, if you 11937# distribute this file as part of a program that contains a 11938# configuration script generated by Autoconf, you may include it under 11939# the same distribution terms that you use for the rest of that program. 11940 11941# A sed program that does not truncate output. 11942SED=$lt_SED 11943 11944# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11945Xsed="$SED -e 1s/^X//" 11946 11947# The HP-UX ksh and POSIX shell print the target directory to stdout 11948# if CDPATH is set. 11949(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11950 11951# The names of the tagged configurations supported by this script. 11952available_tags= 11953 11954# ### BEGIN LIBTOOL CONFIG 11955 11956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11957 11958# Shell to use when invoking shell scripts. 11959SHELL=$lt_SHELL 11960 11961# Whether or not to build shared libraries. 11962build_libtool_libs=$enable_shared 11963 11964# Whether or not to build static libraries. 11965build_old_libs=$enable_static 11966 11967# Whether or not to add -lc for building shared libraries. 11968build_libtool_need_lc=$archive_cmds_need_lc 11969 11970# Whether or not to disallow shared libs when runtime libs are static 11971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11972 11973# Whether or not to optimize for fast installation. 11974fast_install=$enable_fast_install 11975 11976# The host system. 11977host_alias=$host_alias 11978host=$host 11979host_os=$host_os 11980 11981# The build system. 11982build_alias=$build_alias 11983build=$build 11984build_os=$build_os 11985 11986# An echo program that does not interpret backslashes. 11987echo=$lt_echo 11988 11989# The archiver. 11990AR=$lt_AR 11991AR_FLAGS=$lt_AR_FLAGS 11992 11993# A C compiler. 11994LTCC=$lt_LTCC 11995 11996# LTCC compiler flags. 11997LTCFLAGS=$lt_LTCFLAGS 11998 11999# A language-specific compiler. 12000CC=$lt_compiler 12001 12002# Is the compiler the GNU C compiler? 12003with_gcc=$GCC 12004 12005# An ERE matcher. 12006EGREP=$lt_EGREP 12007 12008# The linker used to build libraries. 12009LD=$lt_LD 12010 12011# Whether we need hard or soft links. 12012LN_S=$lt_LN_S 12013 12014# A BSD-compatible nm program. 12015NM=$lt_NM 12016 12017# A symbol stripping program 12018STRIP=$lt_STRIP 12019 12020# Used to examine libraries when file_magic_cmd begins "file" 12021MAGIC_CMD=$MAGIC_CMD 12022 12023# Used on cygwin: DLL creation program. 12024DLLTOOL="$DLLTOOL" 12025 12026# Used on cygwin: object dumper. 12027OBJDUMP="$OBJDUMP" 12028 12029# Used on cygwin: assembler. 12030AS="$AS" 12031 12032# The name of the directory that contains temporary libtool files. 12033objdir=$objdir 12034 12035# How to create reloadable object files. 12036reload_flag=$lt_reload_flag 12037reload_cmds=$lt_reload_cmds 12038 12039# How to pass a linker flag through the compiler. 12040wl=$lt_lt_prog_compiler_wl 12041 12042# Object file suffix (normally "o"). 12043objext="$ac_objext" 12044 12045# Old archive suffix (normally "a"). 12046libext="$libext" 12047 12048# Shared library suffix (normally ".so"). 12049shrext_cmds='$shrext_cmds' 12050 12051# Executable file suffix (normally ""). 12052exeext="$exeext" 12053 12054# Additional compiler flags for building library objects. 12055pic_flag=$lt_lt_prog_compiler_pic 12056pic_mode=$pic_mode 12057 12058# What is the maximum length of a command? 12059max_cmd_len=$lt_cv_sys_max_cmd_len 12060 12061# Does compiler simultaneously support -c and -o options? 12062compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12063 12064# Must we lock files when doing compilation? 12065need_locks=$lt_need_locks 12066 12067# Do we need the lib prefix for modules? 12068need_lib_prefix=$need_lib_prefix 12069 12070# Do we need a version for libraries? 12071need_version=$need_version 12072 12073# Whether dlopen is supported. 12074dlopen_support=$enable_dlopen 12075 12076# Whether dlopen of programs is supported. 12077dlopen_self=$enable_dlopen_self 12078 12079# Whether dlopen of statically linked programs is supported. 12080dlopen_self_static=$enable_dlopen_self_static 12081 12082# Compiler flag to prevent dynamic linking. 12083link_static_flag=$lt_lt_prog_compiler_static 12084 12085# Compiler flag to turn off builtin functions. 12086no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12087 12088# Compiler flag to allow reflexive dlopens. 12089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12090 12091# Compiler flag to generate shared objects directly from archives. 12092whole_archive_flag_spec=$lt_whole_archive_flag_spec 12093 12094# Compiler flag to generate thread-safe objects. 12095thread_safe_flag_spec=$lt_thread_safe_flag_spec 12096 12097# Library versioning type. 12098version_type=$version_type 12099 12100# Format of library name prefix. 12101libname_spec=$lt_libname_spec 12102 12103# List of archive names. First name is the real one, the rest are links. 12104# The last name is the one that the linker finds with -lNAME. 12105library_names_spec=$lt_library_names_spec 12106 12107# The coded name of the library, if different from the real name. 12108soname_spec=$lt_soname_spec 12109 12110# Commands used to build and install an old-style archive. 12111RANLIB=$lt_RANLIB 12112old_archive_cmds=$lt_old_archive_cmds 12113old_postinstall_cmds=$lt_old_postinstall_cmds 12114old_postuninstall_cmds=$lt_old_postuninstall_cmds 12115 12116# Create an old-style archive from a shared archive. 12117old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12118 12119# Create a temporary old-style archive to link instead of a shared archive. 12120old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12121 12122# Commands used to build and install a shared archive. 12123archive_cmds=$lt_archive_cmds 12124archive_expsym_cmds=$lt_archive_expsym_cmds 12125postinstall_cmds=$lt_postinstall_cmds 12126postuninstall_cmds=$lt_postuninstall_cmds 12127 12128# Commands used to build a loadable module (assumed same as above if empty) 12129module_cmds=$lt_module_cmds 12130module_expsym_cmds=$lt_module_expsym_cmds 12131 12132# Commands to strip libraries. 12133old_striplib=$lt_old_striplib 12134striplib=$lt_striplib 12135 12136# Dependencies to place before the objects being linked to create a 12137# shared library. 12138predep_objects=$lt_predep_objects 12139 12140# Dependencies to place after the objects being linked to create a 12141# shared library. 12142postdep_objects=$lt_postdep_objects 12143 12144# Dependencies to place before the objects being linked to create a 12145# shared library. 12146predeps=$lt_predeps 12147 12148# Dependencies to place after the objects being linked to create a 12149# shared library. 12150postdeps=$lt_postdeps 12151 12152# The library search path used internally by the compiler when linking 12153# a shared library. 12154compiler_lib_search_path=$lt_compiler_lib_search_path 12155 12156# Method to check whether dependent libraries are shared objects. 12157deplibs_check_method=$lt_deplibs_check_method 12158 12159# Command to use when deplibs_check_method == file_magic. 12160file_magic_cmd=$lt_file_magic_cmd 12161 12162# Flag that allows shared libraries with undefined symbols to be built. 12163allow_undefined_flag=$lt_allow_undefined_flag 12164 12165# Flag that forces no undefined symbols. 12166no_undefined_flag=$lt_no_undefined_flag 12167 12168# Commands used to finish a libtool library installation in a directory. 12169finish_cmds=$lt_finish_cmds 12170 12171# Same as above, but a single script fragment to be evaled but not shown. 12172finish_eval=$lt_finish_eval 12173 12174# Take the output of nm and produce a listing of raw symbols and C names. 12175global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12176 12177# Transform the output of nm in a proper C declaration 12178global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12179 12180# Transform the output of nm in a C name address pair 12181global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12182 12183# This is the shared library runtime path variable. 12184runpath_var=$runpath_var 12185 12186# This is the shared library path variable. 12187shlibpath_var=$shlibpath_var 12188 12189# Is shlibpath searched before the hard-coded library search path? 12190shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12191 12192# How to hardcode a shared library path into an executable. 12193hardcode_action=$hardcode_action 12194 12195# Whether we should hardcode library paths into libraries. 12196hardcode_into_libs=$hardcode_into_libs 12197 12198# Flag to hardcode \$libdir into a binary during linking. 12199# This must work even if \$libdir does not exist. 12200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12201 12202# If ld is used when linking, flag to hardcode \$libdir into 12203# a binary during linking. This must work even if \$libdir does 12204# not exist. 12205hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12206 12207# Whether we need a single -rpath flag with a separated argument. 12208hardcode_libdir_separator=$lt_hardcode_libdir_separator 12209 12210# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12211# resulting binary. 12212hardcode_direct=$hardcode_direct 12213 12214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12215# resulting binary. 12216hardcode_minus_L=$hardcode_minus_L 12217 12218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12219# the resulting binary. 12220hardcode_shlibpath_var=$hardcode_shlibpath_var 12221 12222# Set to yes if building a shared library automatically hardcodes DIR into the library 12223# and all subsequent libraries and executables linked against it. 12224hardcode_automatic=$hardcode_automatic 12225 12226# Variables whose values should be saved in libtool wrapper scripts and 12227# restored at relink time. 12228variables_saved_for_relink="$variables_saved_for_relink" 12229 12230# Whether libtool must link a program against all its dependency libraries. 12231link_all_deplibs=$link_all_deplibs 12232 12233# Compile-time system search path for libraries 12234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12235 12236# Run-time system search path for libraries 12237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12238 12239# Fix the shell variable \$srcfile for the compiler. 12240fix_srcfile_path=$lt_fix_srcfile_path 12241 12242# Set to yes if exported symbols are required. 12243always_export_symbols=$always_export_symbols 12244 12245# The commands to list exported symbols. 12246export_symbols_cmds=$lt_export_symbols_cmds 12247 12248# The commands to extract the exported symbol list from a shared archive. 12249extract_expsyms_cmds=$lt_extract_expsyms_cmds 12250 12251# Symbols that should not be listed in the preloaded symbols. 12252exclude_expsyms=$lt_exclude_expsyms 12253 12254# Symbols that must always be exported. 12255include_expsyms=$lt_include_expsyms 12256 12257# ### END LIBTOOL CONFIG 12258 12259__EOF__ 12260 12261 12262 case $host_os in 12263 aix3*) 12264 cat <<\EOF >> "$cfgfile" 12265 12266# AIX sometimes has problems with the GCC collect2 program. For some 12267# reason, if we set the COLLECT_NAMES environment variable, the problems 12268# vanish in a puff of smoke. 12269if test "X${COLLECT_NAMES+set}" != Xset; then 12270 COLLECT_NAMES= 12271 export COLLECT_NAMES 12272fi 12273EOF 12274 ;; 12275 esac 12276 12277 # We use sed instead of cat because bash on DJGPP gets confused if 12278 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12279 # text mode, it properly converts lines to CR/LF. This bash problem 12280 # is reportedly fixed, but why not run on old versions too? 12281 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12282 12283 mv -f "$cfgfile" "$ofile" || \ 12284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12285 chmod +x "$ofile" 12286 12287else 12288 # If there is no Makefile yet, we rely on a make rule to execute 12289 # `config.status --recheck' to rerun these tests and create the 12290 # libtool script then. 12291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12292 if test -f "$ltmain_in"; then 12293 test -f Makefile && make "$ltmain" 12294 fi 12295fi 12296 12297 12298ac_ext=c 12299ac_cpp='$CPP $CPPFLAGS' 12300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12302ac_compiler_gnu=$ac_cv_c_compiler_gnu 12303 12304CC="$lt_save_CC" 12305 12306 12307# Check whether --with-tags was given. 12308if test "${with_tags+set}" = set; then 12309 withval=$with_tags; tagnames="$withval" 12310fi 12311 12312 12313if test -f "$ltmain" && test -n "$tagnames"; then 12314 if test ! -f "${ofile}"; then 12315 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12316echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12317 fi 12318 12319 if test -z "$LTCC"; then 12320 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12321 if test -z "$LTCC"; then 12322 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12323echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12324 else 12325 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12326echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12327 fi 12328 fi 12329 if test -z "$LTCFLAGS"; then 12330 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12331 fi 12332 12333 # Extract list of available tagged configurations in $ofile. 12334 # Note that this assumes the entire list is on one line. 12335 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12336 12337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12338 for tagname in $tagnames; do 12339 IFS="$lt_save_ifs" 12340 # Check whether tagname contains only valid characters 12341 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12342 "") ;; 12343 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12344echo "$as_me: error: invalid tag name: $tagname" >&2;} 12345 { (exit 1); exit 1; }; } 12346 ;; 12347 esac 12348 12349 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12350 then 12351 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12352echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12353 { (exit 1); exit 1; }; } 12354 fi 12355 12356 # Update the list of available tags. 12357 if test -n "$tagname"; then 12358 echo appending configuration tag \"$tagname\" to $ofile 12359 12360 case $tagname in 12361 CXX) 12362 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12363 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12364 (test "X$CXX" != "Xg++"))) ; then 12365 ac_ext=cpp 12366ac_cpp='$CXXCPP $CPPFLAGS' 12367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12370 12371 12372 12373 12374archive_cmds_need_lc_CXX=no 12375allow_undefined_flag_CXX= 12376always_export_symbols_CXX=no 12377archive_expsym_cmds_CXX= 12378export_dynamic_flag_spec_CXX= 12379hardcode_direct_CXX=no 12380hardcode_libdir_flag_spec_CXX= 12381hardcode_libdir_flag_spec_ld_CXX= 12382hardcode_libdir_separator_CXX= 12383hardcode_minus_L_CXX=no 12384hardcode_shlibpath_var_CXX=unsupported 12385hardcode_automatic_CXX=no 12386module_cmds_CXX= 12387module_expsym_cmds_CXX= 12388link_all_deplibs_CXX=unknown 12389old_archive_cmds_CXX=$old_archive_cmds 12390no_undefined_flag_CXX= 12391whole_archive_flag_spec_CXX= 12392enable_shared_with_static_runtimes_CXX=no 12393 12394# Dependencies to place before and after the object being linked: 12395predep_objects_CXX= 12396postdep_objects_CXX= 12397predeps_CXX= 12398postdeps_CXX= 12399compiler_lib_search_path_CXX= 12400 12401# Source file extension for C++ test sources. 12402ac_ext=cpp 12403 12404# Object file extension for compiled C++ test sources. 12405objext=o 12406objext_CXX=$objext 12407 12408# Code to be used in simple compile tests 12409lt_simple_compile_test_code="int some_variable = 0;" 12410 12411# Code to be used in simple link tests 12412lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12413 12414# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12415 12416# If no C compiler was specified, use CC. 12417LTCC=${LTCC-"$CC"} 12418 12419# If no C compiler flags were specified, use CFLAGS. 12420LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12421 12422# Allow CC to be a program name with arguments. 12423compiler=$CC 12424 12425 12426# save warnings/boilerplate of simple test code 12427ac_outfile=conftest.$ac_objext 12428echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12430_lt_compiler_boilerplate=`cat conftest.err` 12431$rm conftest* 12432 12433ac_outfile=conftest.$ac_objext 12434echo "$lt_simple_link_test_code" >conftest.$ac_ext 12435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12436_lt_linker_boilerplate=`cat conftest.err` 12437$rm conftest* 12438 12439 12440# Allow CC to be a program name with arguments. 12441lt_save_CC=$CC 12442lt_save_LD=$LD 12443lt_save_GCC=$GCC 12444GCC=$GXX 12445lt_save_with_gnu_ld=$with_gnu_ld 12446lt_save_path_LD=$lt_cv_path_LD 12447if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12448 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12449else 12450 $as_unset lt_cv_prog_gnu_ld 12451fi 12452if test -n "${lt_cv_path_LDCXX+set}"; then 12453 lt_cv_path_LD=$lt_cv_path_LDCXX 12454else 12455 $as_unset lt_cv_path_LD 12456fi 12457test -z "${LDCXX+set}" || LD=$LDCXX 12458CC=${CXX-"c++"} 12459compiler=$CC 12460compiler_CXX=$CC 12461for cc_temp in $compiler""; do 12462 case $cc_temp in 12463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12465 \-*) ;; 12466 *) break;; 12467 esac 12468done 12469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12470 12471 12472# We don't want -fno-exception wen compiling C++ code, so set the 12473# no_builtin_flag separately 12474if test "$GXX" = yes; then 12475 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12476else 12477 lt_prog_compiler_no_builtin_flag_CXX= 12478fi 12479 12480if test "$GXX" = yes; then 12481 # Set up default GNU C++ configuration 12482 12483 12484# Check whether --with-gnu-ld was given. 12485if test "${with_gnu_ld+set}" = set; then 12486 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12487else 12488 with_gnu_ld=no 12489fi 12490 12491ac_prog=ld 12492if test "$GCC" = yes; then 12493 # Check if gcc -print-prog-name=ld gives a path. 12494 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12495echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12496 case $host in 12497 *-*-mingw*) 12498 # gcc leaves a trailing carriage return which upsets mingw 12499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12500 *) 12501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12502 esac 12503 case $ac_prog in 12504 # Accept absolute paths. 12505 [\\/]* | ?:[\\/]*) 12506 re_direlt='/[^/][^/]*/\.\./' 12507 # Canonicalize the pathname of ld 12508 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12509 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12510 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12511 done 12512 test -z "$LD" && LD="$ac_prog" 12513 ;; 12514 "") 12515 # If it fails, then pretend we aren't using GCC. 12516 ac_prog=ld 12517 ;; 12518 *) 12519 # If it is relative, then search for the first ld in PATH. 12520 with_gnu_ld=unknown 12521 ;; 12522 esac 12523elif test "$with_gnu_ld" = yes; then 12524 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12525echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12526else 12527 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12528echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12529fi 12530if test "${lt_cv_path_LD+set}" = set; then 12531 echo $ECHO_N "(cached) $ECHO_C" >&6 12532else 12533 if test -z "$LD"; then 12534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12535 for ac_dir in $PATH; do 12536 IFS="$lt_save_ifs" 12537 test -z "$ac_dir" && ac_dir=. 12538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12539 lt_cv_path_LD="$ac_dir/$ac_prog" 12540 # Check to see if the program is GNU ld. I'd rather use --version, 12541 # but apparently some variants of GNU ld only accept -v. 12542 # Break only if it was the GNU/non-GNU ld that we prefer. 12543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12544 *GNU* | *'with BFD'*) 12545 test "$with_gnu_ld" != no && break 12546 ;; 12547 *) 12548 test "$with_gnu_ld" != yes && break 12549 ;; 12550 esac 12551 fi 12552 done 12553 IFS="$lt_save_ifs" 12554else 12555 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12556fi 12557fi 12558 12559LD="$lt_cv_path_LD" 12560if test -n "$LD"; then 12561 { echo "$as_me:$LINENO: result: $LD" >&5 12562echo "${ECHO_T}$LD" >&6; } 12563else 12564 { echo "$as_me:$LINENO: result: no" >&5 12565echo "${ECHO_T}no" >&6; } 12566fi 12567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12569 { (exit 1); exit 1; }; } 12570{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12571echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12572if test "${lt_cv_prog_gnu_ld+set}" = set; then 12573 echo $ECHO_N "(cached) $ECHO_C" >&6 12574else 12575 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12576case `$LD -v 2>&1 </dev/null` in 12577*GNU* | *'with BFD'*) 12578 lt_cv_prog_gnu_ld=yes 12579 ;; 12580*) 12581 lt_cv_prog_gnu_ld=no 12582 ;; 12583esac 12584fi 12585{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12586echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12587with_gnu_ld=$lt_cv_prog_gnu_ld 12588 12589 12590 12591 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12592 # archiving commands below assume that GNU ld is being used. 12593 if test "$with_gnu_ld" = yes; then 12594 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12595 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' 12596 12597 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12598 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12599 12600 # If archive_cmds runs LD, not CC, wlarc should be empty 12601 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12602 # investigate it a little bit more. (MM) 12603 wlarc='${wl}' 12604 12605 # ancient GNU ld didn't support --whole-archive et. al. 12606 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12607 grep 'no-whole-archive' > /dev/null; then 12608 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12609 else 12610 whole_archive_flag_spec_CXX= 12611 fi 12612 else 12613 with_gnu_ld=no 12614 wlarc= 12615 12616 # A generic and very simple default shared library creation 12617 # command for GNU C++ for the case where it uses the native 12618 # linker, instead of GNU ld. If possible, this setting should 12619 # overridden to take advantage of the native linker features on 12620 # the platform it is being used on. 12621 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12622 fi 12623 12624 # Commands to make compiler produce verbose output that lists 12625 # what "hidden" libraries, object files and flags are used when 12626 # linking a shared library. 12627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12628 12629else 12630 GXX=no 12631 with_gnu_ld=no 12632 wlarc= 12633fi 12634 12635# PORTME: fill in a description of your system's C++ link characteristics 12636{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12637echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12638ld_shlibs_CXX=yes 12639case $host_os in 12640 aix3*) 12641 # FIXME: insert proper C++ library support 12642 ld_shlibs_CXX=no 12643 ;; 12644 aix4* | aix5*) 12645 if test "$host_cpu" = ia64; then 12646 # On IA64, the linker does run time linking by default, so we don't 12647 # have to do anything special. 12648 aix_use_runtimelinking=no 12649 exp_sym_flag='-Bexport' 12650 no_entry_flag="" 12651 else 12652 aix_use_runtimelinking=no 12653 12654 # Test if we are trying to use run time linking or normal 12655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12656 # need to do runtime linking. 12657 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12658 for ld_flag in $LDFLAGS; do 12659 case $ld_flag in 12660 *-brtl*) 12661 aix_use_runtimelinking=yes 12662 break 12663 ;; 12664 esac 12665 done 12666 ;; 12667 esac 12668 12669 exp_sym_flag='-bexport' 12670 no_entry_flag='-bnoentry' 12671 fi 12672 12673 # When large executables or shared objects are built, AIX ld can 12674 # have problems creating the table of contents. If linking a library 12675 # or program results in "error TOC overflow" add -mminimal-toc to 12676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12678 12679 archive_cmds_CXX='' 12680 hardcode_direct_CXX=yes 12681 hardcode_libdir_separator_CXX=':' 12682 link_all_deplibs_CXX=yes 12683 12684 if test "$GXX" = yes; then 12685 case $host_os in aix4.[012]|aix4.[012].*) 12686 # We only want to do this on AIX 4.2 and lower, the check 12687 # below for broken collect2 doesn't work under 4.3+ 12688 collect2name=`${CC} -print-prog-name=collect2` 12689 if test -f "$collect2name" && \ 12690 strings "$collect2name" | grep resolve_lib_name >/dev/null 12691 then 12692 # We have reworked collect2 12693 : 12694 else 12695 # We have old collect2 12696 hardcode_direct_CXX=unsupported 12697 # It fails to find uninstalled libraries when the uninstalled 12698 # path is not listed in the libpath. Setting hardcode_minus_L 12699 # to unsupported forces relinking 12700 hardcode_minus_L_CXX=yes 12701 hardcode_libdir_flag_spec_CXX='-L$libdir' 12702 hardcode_libdir_separator_CXX= 12703 fi 12704 ;; 12705 esac 12706 shared_flag='-shared' 12707 if test "$aix_use_runtimelinking" = yes; then 12708 shared_flag="$shared_flag "'${wl}-G' 12709 fi 12710 else 12711 # not using gcc 12712 if test "$host_cpu" = ia64; then 12713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12714 # chokes on -Wl,-G. The following line is correct: 12715 shared_flag='-G' 12716 else 12717 if test "$aix_use_runtimelinking" = yes; then 12718 shared_flag='${wl}-G' 12719 else 12720 shared_flag='${wl}-bM:SRE' 12721 fi 12722 fi 12723 fi 12724 12725 # It seems that -bexpall does not export symbols beginning with 12726 # underscore (_), so it is better to generate a list of symbols to export. 12727 always_export_symbols_CXX=yes 12728 if test "$aix_use_runtimelinking" = yes; then 12729 # Warning - without using the other runtime loading flags (-brtl), 12730 # -berok will link without error, but may produce a broken library. 12731 allow_undefined_flag_CXX='-berok' 12732 # Determine the default libpath from the value encoded in an empty executable. 12733 cat >conftest.$ac_ext <<_ACEOF 12734/* confdefs.h. */ 12735_ACEOF 12736cat confdefs.h >>conftest.$ac_ext 12737cat >>conftest.$ac_ext <<_ACEOF 12738/* end confdefs.h. */ 12739 12740int 12741main () 12742{ 12743 12744 ; 12745 return 0; 12746} 12747_ACEOF 12748rm -f conftest.$ac_objext conftest$ac_exeext 12749if { (ac_try="$ac_link" 12750case "(($ac_try" in 12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12752 *) ac_try_echo=$ac_try;; 12753esac 12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12755 (eval "$ac_link") 2>conftest.er1 12756 ac_status=$? 12757 grep -v '^ *+' conftest.er1 >conftest.err 12758 rm -f conftest.er1 12759 cat conftest.err >&5 12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12761 (exit $ac_status); } && { 12762 test -z "$ac_cxx_werror_flag" || 12763 test ! -s conftest.err 12764 } && test -s conftest$ac_exeext && 12765 $as_test_x conftest$ac_exeext; then 12766 12767lt_aix_libpath_sed=' 12768 /Import File Strings/,/^$/ { 12769 /^0/ { 12770 s/^0 *\(.*\)$/\1/ 12771 p 12772 } 12773 }' 12774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12775# Check for a 64-bit object if we didn't find anything. 12776if test -z "$aix_libpath"; then 12777 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12778fi 12779else 12780 echo "$as_me: failed program was:" >&5 12781sed 's/^/| /' conftest.$ac_ext >&5 12782 12783 12784fi 12785 12786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12787 conftest$ac_exeext conftest.$ac_ext 12788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12789 12790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12791 12792 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" 12793 else 12794 if test "$host_cpu" = ia64; then 12795 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12796 allow_undefined_flag_CXX="-z nodefs" 12797 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" 12798 else 12799 # Determine the default libpath from the value encoded in an empty executable. 12800 cat >conftest.$ac_ext <<_ACEOF 12801/* confdefs.h. */ 12802_ACEOF 12803cat confdefs.h >>conftest.$ac_ext 12804cat >>conftest.$ac_ext <<_ACEOF 12805/* end confdefs.h. */ 12806 12807int 12808main () 12809{ 12810 12811 ; 12812 return 0; 12813} 12814_ACEOF 12815rm -f conftest.$ac_objext conftest$ac_exeext 12816if { (ac_try="$ac_link" 12817case "(($ac_try" in 12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12819 *) ac_try_echo=$ac_try;; 12820esac 12821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12822 (eval "$ac_link") 2>conftest.er1 12823 ac_status=$? 12824 grep -v '^ *+' conftest.er1 >conftest.err 12825 rm -f conftest.er1 12826 cat conftest.err >&5 12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12828 (exit $ac_status); } && { 12829 test -z "$ac_cxx_werror_flag" || 12830 test ! -s conftest.err 12831 } && test -s conftest$ac_exeext && 12832 $as_test_x conftest$ac_exeext; then 12833 12834lt_aix_libpath_sed=' 12835 /Import File Strings/,/^$/ { 12836 /^0/ { 12837 s/^0 *\(.*\)$/\1/ 12838 p 12839 } 12840 }' 12841aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12842# Check for a 64-bit object if we didn't find anything. 12843if test -z "$aix_libpath"; then 12844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12845fi 12846else 12847 echo "$as_me: failed program was:" >&5 12848sed 's/^/| /' conftest.$ac_ext >&5 12849 12850 12851fi 12852 12853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12854 conftest$ac_exeext conftest.$ac_ext 12855if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12856 12857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12858 # Warning - without using the other run time loading flags, 12859 # -berok will link without error, but may produce a broken library. 12860 no_undefined_flag_CXX=' ${wl}-bernotok' 12861 allow_undefined_flag_CXX=' ${wl}-berok' 12862 # Exported symbols can be pulled into shared objects from archives 12863 whole_archive_flag_spec_CXX='$convenience' 12864 archive_cmds_need_lc_CXX=yes 12865 # This is similar to how AIX traditionally builds its shared libraries. 12866 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' 12867 fi 12868 fi 12869 ;; 12870 12871 beos*) 12872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12873 allow_undefined_flag_CXX=unsupported 12874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12875 # support --undefined. This deserves some investigation. FIXME 12876 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12877 else 12878 ld_shlibs_CXX=no 12879 fi 12880 ;; 12881 12882 chorus*) 12883 case $cc_basename in 12884 *) 12885 # FIXME: insert proper C++ library support 12886 ld_shlibs_CXX=no 12887 ;; 12888 esac 12889 ;; 12890 12891 cygwin* | mingw* | pw32*) 12892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12893 # as there is no search path for DLLs. 12894 hardcode_libdir_flag_spec_CXX='-L$libdir' 12895 allow_undefined_flag_CXX=unsupported 12896 always_export_symbols_CXX=no 12897 enable_shared_with_static_runtimes_CXX=yes 12898 12899 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12900 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' 12901 # If the export-symbols file already is a .def file (1st line 12902 # is EXPORTS), use it as is; otherwise, prepend... 12903 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12904 cp $export_symbols $output_objdir/$soname.def; 12905 else 12906 echo EXPORTS > $output_objdir/$soname.def; 12907 cat $export_symbols >> $output_objdir/$soname.def; 12908 fi~ 12909 $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' 12910 else 12911 ld_shlibs_CXX=no 12912 fi 12913 ;; 12914 darwin* | rhapsody*) 12915 case $host_os in 12916 rhapsody* | darwin1.[012]) 12917 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12918 ;; 12919 *) # Darwin 1.3 on 12920 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12921 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12922 else 12923 case ${MACOSX_DEPLOYMENT_TARGET} in 12924 10.[012]) 12925 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12926 ;; 12927 10.*) 12928 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12929 ;; 12930 esac 12931 fi 12932 ;; 12933 esac 12934 archive_cmds_need_lc_CXX=no 12935 hardcode_direct_CXX=no 12936 hardcode_automatic_CXX=yes 12937 hardcode_shlibpath_var_CXX=unsupported 12938 whole_archive_flag_spec_CXX='' 12939 link_all_deplibs_CXX=yes 12940 12941 if test "$GXX" = yes ; then 12942 lt_int_apple_cc_single_mod=no 12943 output_verbose_link_cmd='echo' 12944 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12945 lt_int_apple_cc_single_mod=yes 12946 fi 12947 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12948 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12949 else 12950 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' 12951 fi 12952 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12953 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12954 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12955 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}' 12956 else 12957 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}' 12958 fi 12959 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}' 12960 else 12961 case $cc_basename in 12962 xlc*) 12963 output_verbose_link_cmd='echo' 12964 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 12965 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12966 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12967 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12968 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}' 12969 ;; 12970 *) 12971 ld_shlibs_CXX=no 12972 ;; 12973 esac 12974 fi 12975 ;; 12976 12977 dgux*) 12978 case $cc_basename in 12979 ec++*) 12980 # FIXME: insert proper C++ library support 12981 ld_shlibs_CXX=no 12982 ;; 12983 ghcx*) 12984 # Green Hills C++ Compiler 12985 # FIXME: insert proper C++ library support 12986 ld_shlibs_CXX=no 12987 ;; 12988 *) 12989 # FIXME: insert proper C++ library support 12990 ld_shlibs_CXX=no 12991 ;; 12992 esac 12993 ;; 12994 freebsd[12]*) 12995 # C++ shared libraries reported to be fairly broken before switch to ELF 12996 ld_shlibs_CXX=no 12997 ;; 12998 freebsd-elf*) 12999 archive_cmds_need_lc_CXX=no 13000 ;; 13001 freebsd* | dragonfly*) 13002 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13003 # conventions 13004 ld_shlibs_CXX=yes 13005 ;; 13006 gnu*) 13007 ;; 13008 hpux9*) 13009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13010 hardcode_libdir_separator_CXX=: 13011 export_dynamic_flag_spec_CXX='${wl}-E' 13012 hardcode_direct_CXX=yes 13013 hardcode_minus_L_CXX=yes # Not in the search PATH, 13014 # but as the default 13015 # location of the library. 13016 13017 case $cc_basename in 13018 CC*) 13019 # FIXME: insert proper C++ library support 13020 ld_shlibs_CXX=no 13021 ;; 13022 aCC*) 13023 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13024 # Commands to make compiler produce verbose output that lists 13025 # what "hidden" libraries, object files and flags are used when 13026 # linking a shared library. 13027 # 13028 # There doesn't appear to be a way to prevent this compiler from 13029 # explicitly linking system object files so we need to strip them 13030 # from the output so that they don't get included in the library 13031 # dependencies. 13032 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' 13033 ;; 13034 *) 13035 if test "$GXX" = yes; then 13036 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13037 else 13038 # FIXME: insert proper C++ library support 13039 ld_shlibs_CXX=no 13040 fi 13041 ;; 13042 esac 13043 ;; 13044 hpux10*|hpux11*) 13045 if test $with_gnu_ld = no; then 13046 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13047 hardcode_libdir_separator_CXX=: 13048 13049 case $host_cpu in 13050 hppa*64*|ia64*) ;; 13051 *) 13052 export_dynamic_flag_spec_CXX='${wl}-E' 13053 ;; 13054 esac 13055 fi 13056 case $host_cpu in 13057 hppa*64*|ia64*) 13058 hardcode_direct_CXX=no 13059 hardcode_shlibpath_var_CXX=no 13060 ;; 13061 *) 13062 hardcode_direct_CXX=yes 13063 hardcode_minus_L_CXX=yes # Not in the search PATH, 13064 # but as the default 13065 # location of the library. 13066 ;; 13067 esac 13068 13069 case $cc_basename in 13070 CC*) 13071 # FIXME: insert proper C++ library support 13072 ld_shlibs_CXX=no 13073 ;; 13074 aCC*) 13075 case $host_cpu in 13076 hppa*64*) 13077 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13078 ;; 13079 ia64*) 13080 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13081 ;; 13082 *) 13083 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13084 ;; 13085 esac 13086 # Commands to make compiler produce verbose output that lists 13087 # what "hidden" libraries, object files and flags are used when 13088 # linking a shared library. 13089 # 13090 # There doesn't appear to be a way to prevent this compiler from 13091 # explicitly linking system object files so we need to strip them 13092 # from the output so that they don't get included in the library 13093 # dependencies. 13094 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' 13095 ;; 13096 *) 13097 if test "$GXX" = yes; then 13098 if test $with_gnu_ld = no; then 13099 case $host_cpu in 13100 hppa*64*) 13101 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13102 ;; 13103 ia64*) 13104 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13105 ;; 13106 *) 13107 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' 13108 ;; 13109 esac 13110 fi 13111 else 13112 # FIXME: insert proper C++ library support 13113 ld_shlibs_CXX=no 13114 fi 13115 ;; 13116 esac 13117 ;; 13118 interix[3-9]*) 13119 hardcode_direct_CXX=no 13120 hardcode_shlibpath_var_CXX=no 13121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13122 export_dynamic_flag_spec_CXX='${wl}-E' 13123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13124 # Instead, shared libraries are loaded at an image base (0x10000000 by 13125 # default) and relocated if they conflict, which is a slow very memory 13126 # consuming and fragmenting process. To avoid this, we pick a random, 13127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13128 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13129 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' 13130 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' 13131 ;; 13132 irix5* | irix6*) 13133 case $cc_basename in 13134 CC*) 13135 # SGI C++ 13136 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' 13137 13138 # Archives containing C++ object files must be created using 13139 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13140 # necessary to make sure instantiated templates are included 13141 # in the archive. 13142 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13143 ;; 13144 *) 13145 if test "$GXX" = yes; then 13146 if test "$with_gnu_ld" = no; then 13147 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' 13148 else 13149 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' 13150 fi 13151 fi 13152 link_all_deplibs_CXX=yes 13153 ;; 13154 esac 13155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13156 hardcode_libdir_separator_CXX=: 13157 ;; 13158 linux* | k*bsd*-gnu) 13159 case $cc_basename in 13160 KCC*) 13161 # Kuck and Associates, Inc. (KAI) C++ Compiler 13162 13163 # KCC will only create a shared library if the output file 13164 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13165 # to its proper name (with version) after linking. 13166 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13167 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13168 # Commands to make compiler produce verbose output that lists 13169 # what "hidden" libraries, object files and flags are used when 13170 # linking a shared library. 13171 # 13172 # There doesn't appear to be a way to prevent this compiler from 13173 # explicitly linking system object files so we need to strip them 13174 # from the output so that they don't get included in the library 13175 # dependencies. 13176 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' 13177 13178 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13180 13181 # Archives containing C++ object files must be created using 13182 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13183 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13184 ;; 13185 icpc*) 13186 # Intel C++ 13187 with_gnu_ld=yes 13188 # version 8.0 and above of icpc choke on multiply defined symbols 13189 # if we add $predep_objects and $postdep_objects, however 7.1 and 13190 # earlier do not add the objects themselves. 13191 case `$CC -V 2>&1` in 13192 *"Version 7."*) 13193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13194 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' 13195 ;; 13196 *) # Version 8.0 or newer 13197 tmp_idyn= 13198 case $host_cpu in 13199 ia64*) tmp_idyn=' -i_dynamic';; 13200 esac 13201 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13202 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' 13203 ;; 13204 esac 13205 archive_cmds_need_lc_CXX=no 13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13208 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13209 ;; 13210 pgCC*) 13211 # Portland Group C++ compiler 13212 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13213 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' 13214 13215 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13217 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' 13218 ;; 13219 cxx*) 13220 # Compaq C++ 13221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13222 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' 13223 13224 runpath_var=LD_RUN_PATH 13225 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13226 hardcode_libdir_separator_CXX=: 13227 13228 # Commands to make compiler produce verbose output that lists 13229 # what "hidden" libraries, object files and flags are used when 13230 # linking a shared library. 13231 # 13232 # There doesn't appear to be a way to prevent this compiler from 13233 # explicitly linking system object files so we need to strip them 13234 # from the output so that they don't get included in the library 13235 # dependencies. 13236 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' 13237 ;; 13238 *) 13239 case `$CC -V 2>&1 | sed 5q` in 13240 *Sun\ C*) 13241 # Sun C++ 5.9 13242 no_undefined_flag_CXX=' -zdefs' 13243 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13244 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13245 hardcode_libdir_flag_spec_CXX='-R$libdir' 13246 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13247 13248 # Not sure whether something based on 13249 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13250 # would be better. 13251 output_verbose_link_cmd='echo' 13252 13253 # Archives containing C++ object files must be created using 13254 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13255 # necessary to make sure instantiated templates are included 13256 # in the archive. 13257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13258 ;; 13259 esac 13260 ;; 13261 esac 13262 ;; 13263 lynxos*) 13264 # FIXME: insert proper C++ library support 13265 ld_shlibs_CXX=no 13266 ;; 13267 m88k*) 13268 # FIXME: insert proper C++ library support 13269 ld_shlibs_CXX=no 13270 ;; 13271 mvs*) 13272 case $cc_basename in 13273 cxx*) 13274 # FIXME: insert proper C++ library support 13275 ld_shlibs_CXX=no 13276 ;; 13277 *) 13278 # FIXME: insert proper C++ library support 13279 ld_shlibs_CXX=no 13280 ;; 13281 esac 13282 ;; 13283 netbsd* | netbsdelf*-gnu) 13284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13285 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13286 wlarc= 13287 hardcode_libdir_flag_spec_CXX='-R$libdir' 13288 hardcode_direct_CXX=yes 13289 hardcode_shlibpath_var_CXX=no 13290 fi 13291 # Workaround some broken pre-1.5 toolchains 13292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13293 ;; 13294 openbsd2*) 13295 # C++ shared libraries are fairly broken 13296 ld_shlibs_CXX=no 13297 ;; 13298 openbsd*) 13299 if test -f /usr/libexec/ld.so; then 13300 hardcode_direct_CXX=yes 13301 hardcode_shlibpath_var_CXX=no 13302 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13305 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13306 export_dynamic_flag_spec_CXX='${wl}-E' 13307 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13308 fi 13309 output_verbose_link_cmd='echo' 13310 else 13311 ld_shlibs_CXX=no 13312 fi 13313 ;; 13314 osf3*) 13315 case $cc_basename in 13316 KCC*) 13317 # Kuck and Associates, Inc. (KAI) C++ Compiler 13318 13319 # KCC will only create a shared library if the output file 13320 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13321 # to its proper name (with version) after linking. 13322 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13323 13324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13325 hardcode_libdir_separator_CXX=: 13326 13327 # Archives containing C++ object files must be created using 13328 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13329 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13330 13331 ;; 13332 RCC*) 13333 # Rational C++ 2.4.1 13334 # FIXME: insert proper C++ library support 13335 ld_shlibs_CXX=no 13336 ;; 13337 cxx*) 13338 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13339 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' 13340 13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13342 hardcode_libdir_separator_CXX=: 13343 13344 # Commands to make compiler produce verbose output that lists 13345 # what "hidden" libraries, object files and flags are used when 13346 # linking a shared library. 13347 # 13348 # There doesn't appear to be a way to prevent this compiler from 13349 # explicitly linking system object files so we need to strip them 13350 # from the output so that they don't get included in the library 13351 # dependencies. 13352 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' 13353 ;; 13354 *) 13355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13356 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13357 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' 13358 13359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13360 hardcode_libdir_separator_CXX=: 13361 13362 # Commands to make compiler produce verbose output that lists 13363 # what "hidden" libraries, object files and flags are used when 13364 # linking a shared library. 13365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13366 13367 else 13368 # FIXME: insert proper C++ library support 13369 ld_shlibs_CXX=no 13370 fi 13371 ;; 13372 esac 13373 ;; 13374 osf4* | osf5*) 13375 case $cc_basename in 13376 KCC*) 13377 # Kuck and Associates, Inc. (KAI) C++ Compiler 13378 13379 # KCC will only create a shared library if the output file 13380 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13381 # to its proper name (with version) after linking. 13382 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13383 13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13385 hardcode_libdir_separator_CXX=: 13386 13387 # Archives containing C++ object files must be created using 13388 # the KAI C++ compiler. 13389 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13390 ;; 13391 RCC*) 13392 # Rational C++ 2.4.1 13393 # FIXME: insert proper C++ library support 13394 ld_shlibs_CXX=no 13395 ;; 13396 cxx*) 13397 allow_undefined_flag_CXX=' -expect_unresolved \*' 13398 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' 13399 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13400 echo "-hidden">> $lib.exp~ 13401 $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~ 13402 $rm $lib.exp' 13403 13404 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13405 hardcode_libdir_separator_CXX=: 13406 13407 # Commands to make compiler produce verbose output that lists 13408 # what "hidden" libraries, object files and flags are used when 13409 # linking a shared library. 13410 # 13411 # There doesn't appear to be a way to prevent this compiler from 13412 # explicitly linking system object files so we need to strip them 13413 # from the output so that they don't get included in the library 13414 # dependencies. 13415 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' 13416 ;; 13417 *) 13418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13420 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' 13421 13422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13423 hardcode_libdir_separator_CXX=: 13424 13425 # Commands to make compiler produce verbose output that lists 13426 # what "hidden" libraries, object files and flags are used when 13427 # linking a shared library. 13428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13429 13430 else 13431 # FIXME: insert proper C++ library support 13432 ld_shlibs_CXX=no 13433 fi 13434 ;; 13435 esac 13436 ;; 13437 psos*) 13438 # FIXME: insert proper C++ library support 13439 ld_shlibs_CXX=no 13440 ;; 13441 sunos4*) 13442 case $cc_basename in 13443 CC*) 13444 # Sun C++ 4.x 13445 # FIXME: insert proper C++ library support 13446 ld_shlibs_CXX=no 13447 ;; 13448 lcc*) 13449 # Lucid 13450 # FIXME: insert proper C++ library support 13451 ld_shlibs_CXX=no 13452 ;; 13453 *) 13454 # FIXME: insert proper C++ library support 13455 ld_shlibs_CXX=no 13456 ;; 13457 esac 13458 ;; 13459 solaris*) 13460 case $cc_basename in 13461 CC*) 13462 # Sun C++ 4.2, 5.x and Centerline C++ 13463 archive_cmds_need_lc_CXX=yes 13464 no_undefined_flag_CXX=' -zdefs' 13465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13466 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13467 $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' 13468 13469 hardcode_libdir_flag_spec_CXX='-R$libdir' 13470 hardcode_shlibpath_var_CXX=no 13471 case $host_os in 13472 solaris2.[0-5] | solaris2.[0-5].*) ;; 13473 *) 13474 # The compiler driver will combine and reorder linker options, 13475 # but understands `-z linker_flag'. 13476 # Supported since Solaris 2.6 (maybe 2.5.1?) 13477 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13478 ;; 13479 esac 13480 link_all_deplibs_CXX=yes 13481 13482 output_verbose_link_cmd='echo' 13483 13484 # Archives containing C++ object files must be created using 13485 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13486 # necessary to make sure instantiated templates are included 13487 # in the archive. 13488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13489 ;; 13490 gcx*) 13491 # Green Hills C++ Compiler 13492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13493 13494 # The C++ compiler must be used to create the archive. 13495 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13496 ;; 13497 *) 13498 # GNU C++ compiler with Solaris linker 13499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13500 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13501 if $CC --version | grep -v '^2\.7' > /dev/null; then 13502 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13503 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13504 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13505 13506 # Commands to make compiler produce verbose output that lists 13507 # what "hidden" libraries, object files and flags are used when 13508 # linking a shared library. 13509 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13510 else 13511 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13512 # platform. 13513 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13514 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13515 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13516 13517 # Commands to make compiler produce verbose output that lists 13518 # what "hidden" libraries, object files and flags are used when 13519 # linking a shared library. 13520 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13521 fi 13522 13523 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13524 case $host_os in 13525 solaris2.[0-5] | solaris2.[0-5].*) ;; 13526 *) 13527 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13528 ;; 13529 esac 13530 fi 13531 ;; 13532 esac 13533 ;; 13534 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13535 no_undefined_flag_CXX='${wl}-z,text' 13536 archive_cmds_need_lc_CXX=no 13537 hardcode_shlibpath_var_CXX=no 13538 runpath_var='LD_RUN_PATH' 13539 13540 case $cc_basename in 13541 CC*) 13542 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13543 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13544 ;; 13545 *) 13546 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13547 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13548 ;; 13549 esac 13550 ;; 13551 sysv5* | sco3.2v5* | sco5v6*) 13552 # Note: We can NOT use -z defs as we might desire, because we do not 13553 # link with -lc, and that would cause any symbols used from libc to 13554 # always be unresolved, which means just about no library would 13555 # ever link correctly. If we're not using GNU ld we use -z text 13556 # though, which does catch some bad symbols but isn't as heavy-handed 13557 # as -z defs. 13558 # For security reasons, it is highly recommended that you always 13559 # use absolute paths for naming shared libraries, and exclude the 13560 # DT_RUNPATH tag from executables and libraries. But doing so 13561 # requires that you compile everything twice, which is a pain. 13562 # So that behaviour is only enabled if SCOABSPATH is set to a 13563 # non-empty value in the environment. Most likely only useful for 13564 # creating official distributions of packages. 13565 # This is a hack until libtool officially supports absolute path 13566 # names for shared libraries. 13567 no_undefined_flag_CXX='${wl}-z,text' 13568 allow_undefined_flag_CXX='${wl}-z,nodefs' 13569 archive_cmds_need_lc_CXX=no 13570 hardcode_shlibpath_var_CXX=no 13571 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13572 hardcode_libdir_separator_CXX=':' 13573 link_all_deplibs_CXX=yes 13574 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13575 runpath_var='LD_RUN_PATH' 13576 13577 case $cc_basename in 13578 CC*) 13579 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13580 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13581 ;; 13582 *) 13583 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13584 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13585 ;; 13586 esac 13587 ;; 13588 tandem*) 13589 case $cc_basename in 13590 NCC*) 13591 # NonStop-UX NCC 3.20 13592 # FIXME: insert proper C++ library support 13593 ld_shlibs_CXX=no 13594 ;; 13595 *) 13596 # FIXME: insert proper C++ library support 13597 ld_shlibs_CXX=no 13598 ;; 13599 esac 13600 ;; 13601 vxworks*) 13602 # FIXME: insert proper C++ library support 13603 ld_shlibs_CXX=no 13604 ;; 13605 *) 13606 # FIXME: insert proper C++ library support 13607 ld_shlibs_CXX=no 13608 ;; 13609esac 13610{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13611echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13612test "$ld_shlibs_CXX" = no && can_build_shared=no 13613 13614GCC_CXX="$GXX" 13615LD_CXX="$LD" 13616 13617 13618cat > conftest.$ac_ext <<EOF 13619class Foo 13620{ 13621public: 13622 Foo (void) { a = 0; } 13623private: 13624 int a; 13625}; 13626EOF 13627 13628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13629 (eval $ac_compile) 2>&5 13630 ac_status=$? 13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13632 (exit $ac_status); }; then 13633 # Parse the compiler output and extract the necessary 13634 # objects, libraries and library flags. 13635 13636 # Sentinel used to keep track of whether or not we are before 13637 # the conftest object file. 13638 pre_test_object_deps_done=no 13639 13640 # The `*' in the case matches for architectures that use `case' in 13641 # $output_verbose_cmd can trigger glob expansion during the loop 13642 # eval without this substitution. 13643 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13644 13645 for p in `eval $output_verbose_link_cmd`; do 13646 case $p in 13647 13648 -L* | -R* | -l*) 13649 # Some compilers place space between "-{L,R}" and the path. 13650 # Remove the space. 13651 if test $p = "-L" \ 13652 || test $p = "-R"; then 13653 prev=$p 13654 continue 13655 else 13656 prev= 13657 fi 13658 13659 if test "$pre_test_object_deps_done" = no; then 13660 case $p in 13661 -L* | -R*) 13662 # Internal compiler library paths should come after those 13663 # provided the user. The postdeps already come after the 13664 # user supplied libs so there is no need to process them. 13665 if test -z "$compiler_lib_search_path_CXX"; then 13666 compiler_lib_search_path_CXX="${prev}${p}" 13667 else 13668 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13669 fi 13670 ;; 13671 # The "-l" case would never come before the object being 13672 # linked, so don't bother handling this case. 13673 esac 13674 else 13675 if test -z "$postdeps_CXX"; then 13676 postdeps_CXX="${prev}${p}" 13677 else 13678 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13679 fi 13680 fi 13681 ;; 13682 13683 *.$objext) 13684 # This assumes that the test object file only shows up 13685 # once in the compiler output. 13686 if test "$p" = "conftest.$objext"; then 13687 pre_test_object_deps_done=yes 13688 continue 13689 fi 13690 13691 if test "$pre_test_object_deps_done" = no; then 13692 if test -z "$predep_objects_CXX"; then 13693 predep_objects_CXX="$p" 13694 else 13695 predep_objects_CXX="$predep_objects_CXX $p" 13696 fi 13697 else 13698 if test -z "$postdep_objects_CXX"; then 13699 postdep_objects_CXX="$p" 13700 else 13701 postdep_objects_CXX="$postdep_objects_CXX $p" 13702 fi 13703 fi 13704 ;; 13705 13706 *) ;; # Ignore the rest. 13707 13708 esac 13709 done 13710 13711 # Clean up. 13712 rm -f a.out a.exe 13713else 13714 echo "libtool.m4: error: problem compiling CXX test program" 13715fi 13716 13717$rm -f confest.$objext 13718 13719# PORTME: override above test on systems where it is broken 13720case $host_os in 13721interix[3-9]*) 13722 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13723 # hack all around it, let's just trust "g++" to DTRT. 13724 predep_objects_CXX= 13725 postdep_objects_CXX= 13726 postdeps_CXX= 13727 ;; 13728 13729linux*) 13730 case `$CC -V 2>&1 | sed 5q` in 13731 *Sun\ C*) 13732 # Sun C++ 5.9 13733 # 13734 # The more standards-conforming stlport4 library is 13735 # incompatible with the Cstd library. Avoid specifying 13736 # it if it's in CXXFLAGS. Ignore libCrun as 13737 # -library=stlport4 depends on it. 13738 case " $CXX $CXXFLAGS " in 13739 *" -library=stlport4 "*) 13740 solaris_use_stlport4=yes 13741 ;; 13742 esac 13743 if test "$solaris_use_stlport4" != yes; then 13744 postdeps_CXX='-library=Cstd -library=Crun' 13745 fi 13746 ;; 13747 esac 13748 ;; 13749 13750solaris*) 13751 case $cc_basename in 13752 CC*) 13753 # The more standards-conforming stlport4 library is 13754 # incompatible with the Cstd library. Avoid specifying 13755 # it if it's in CXXFLAGS. Ignore libCrun as 13756 # -library=stlport4 depends on it. 13757 case " $CXX $CXXFLAGS " in 13758 *" -library=stlport4 "*) 13759 solaris_use_stlport4=yes 13760 ;; 13761 esac 13762 13763 # Adding this requires a known-good setup of shared libraries for 13764 # Sun compiler versions before 5.6, else PIC objects from an old 13765 # archive will be linked into the output, leading to subtle bugs. 13766 if test "$solaris_use_stlport4" != yes; then 13767 postdeps_CXX='-library=Cstd -library=Crun' 13768 fi 13769 ;; 13770 esac 13771 ;; 13772esac 13773 13774 13775case " $postdeps_CXX " in 13776*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13777esac 13778 13779lt_prog_compiler_wl_CXX= 13780lt_prog_compiler_pic_CXX= 13781lt_prog_compiler_static_CXX= 13782 13783{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13784echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13785 13786 # C++ specific cases for pic, static, wl, etc. 13787 if test "$GXX" = yes; then 13788 lt_prog_compiler_wl_CXX='-Wl,' 13789 lt_prog_compiler_static_CXX='-static' 13790 13791 case $host_os in 13792 aix*) 13793 # All AIX code is PIC. 13794 if test "$host_cpu" = ia64; then 13795 # AIX 5 now supports IA64 processor 13796 lt_prog_compiler_static_CXX='-Bstatic' 13797 fi 13798 ;; 13799 amigaos*) 13800 # FIXME: we need at least 68020 code to build shared libraries, but 13801 # adding the `-m68020' flag to GCC prevents building anything better, 13802 # like `-m68040'. 13803 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13804 ;; 13805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13806 # PIC is the default for these OSes. 13807 ;; 13808 mingw* | cygwin* | os2* | pw32*) 13809 # This hack is so that the source file can tell whether it is being 13810 # built for inclusion in a dll (and should export symbols for example). 13811 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13812 # (--disable-auto-import) libraries 13813 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13814 ;; 13815 darwin* | rhapsody*) 13816 # PIC is the default on this platform 13817 # Common symbols not allowed in MH_DYLIB files 13818 lt_prog_compiler_pic_CXX='-fno-common' 13819 ;; 13820 *djgpp*) 13821 # DJGPP does not support shared libraries at all 13822 lt_prog_compiler_pic_CXX= 13823 ;; 13824 interix[3-9]*) 13825 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13826 # Instead, we relocate shared libraries at runtime. 13827 ;; 13828 sysv4*MP*) 13829 if test -d /usr/nec; then 13830 lt_prog_compiler_pic_CXX=-Kconform_pic 13831 fi 13832 ;; 13833 hpux*) 13834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13835 # not for PA HP-UX. 13836 case $host_cpu in 13837 hppa*64*|ia64*) 13838 ;; 13839 *) 13840 lt_prog_compiler_pic_CXX='-fPIC' 13841 ;; 13842 esac 13843 ;; 13844 *) 13845 lt_prog_compiler_pic_CXX='-fPIC' 13846 ;; 13847 esac 13848 else 13849 case $host_os in 13850 aix4* | aix5*) 13851 # All AIX code is PIC. 13852 if test "$host_cpu" = ia64; then 13853 # AIX 5 now supports IA64 processor 13854 lt_prog_compiler_static_CXX='-Bstatic' 13855 else 13856 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13857 fi 13858 ;; 13859 chorus*) 13860 case $cc_basename in 13861 cxch68*) 13862 # Green Hills C++ Compiler 13863 # _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" 13864 ;; 13865 esac 13866 ;; 13867 darwin*) 13868 # PIC is the default on this platform 13869 # Common symbols not allowed in MH_DYLIB files 13870 case $cc_basename in 13871 xlc*) 13872 lt_prog_compiler_pic_CXX='-qnocommon' 13873 lt_prog_compiler_wl_CXX='-Wl,' 13874 ;; 13875 esac 13876 ;; 13877 dgux*) 13878 case $cc_basename in 13879 ec++*) 13880 lt_prog_compiler_pic_CXX='-KPIC' 13881 ;; 13882 ghcx*) 13883 # Green Hills C++ Compiler 13884 lt_prog_compiler_pic_CXX='-pic' 13885 ;; 13886 *) 13887 ;; 13888 esac 13889 ;; 13890 freebsd* | dragonfly*) 13891 # FreeBSD uses GNU C++ 13892 ;; 13893 hpux9* | hpux10* | hpux11*) 13894 case $cc_basename in 13895 CC*) 13896 lt_prog_compiler_wl_CXX='-Wl,' 13897 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13898 if test "$host_cpu" != ia64; then 13899 lt_prog_compiler_pic_CXX='+Z' 13900 fi 13901 ;; 13902 aCC*) 13903 lt_prog_compiler_wl_CXX='-Wl,' 13904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13905 case $host_cpu in 13906 hppa*64*|ia64*) 13907 # +Z the default 13908 ;; 13909 *) 13910 lt_prog_compiler_pic_CXX='+Z' 13911 ;; 13912 esac 13913 ;; 13914 *) 13915 ;; 13916 esac 13917 ;; 13918 interix*) 13919 # This is c89, which is MS Visual C++ (no shared libs) 13920 # Anyone wants to do a port? 13921 ;; 13922 irix5* | irix6* | nonstopux*) 13923 case $cc_basename in 13924 CC*) 13925 lt_prog_compiler_wl_CXX='-Wl,' 13926 lt_prog_compiler_static_CXX='-non_shared' 13927 # CC pic flag -KPIC is the default. 13928 ;; 13929 *) 13930 ;; 13931 esac 13932 ;; 13933 linux* | k*bsd*-gnu) 13934 case $cc_basename in 13935 KCC*) 13936 # KAI C++ Compiler 13937 lt_prog_compiler_wl_CXX='--backend -Wl,' 13938 lt_prog_compiler_pic_CXX='-fPIC' 13939 ;; 13940 icpc* | ecpc*) 13941 # Intel C++ 13942 lt_prog_compiler_wl_CXX='-Wl,' 13943 lt_prog_compiler_pic_CXX='-KPIC' 13944 lt_prog_compiler_static_CXX='-static' 13945 ;; 13946 pgCC*) 13947 # Portland Group C++ compiler. 13948 lt_prog_compiler_wl_CXX='-Wl,' 13949 lt_prog_compiler_pic_CXX='-fpic' 13950 lt_prog_compiler_static_CXX='-Bstatic' 13951 ;; 13952 cxx*) 13953 # Compaq C++ 13954 # Make sure the PIC flag is empty. It appears that all Alpha 13955 # Linux and Compaq Tru64 Unix objects are PIC. 13956 lt_prog_compiler_pic_CXX= 13957 lt_prog_compiler_static_CXX='-non_shared' 13958 ;; 13959 *) 13960 case `$CC -V 2>&1 | sed 5q` in 13961 *Sun\ C*) 13962 # Sun C++ 5.9 13963 lt_prog_compiler_pic_CXX='-KPIC' 13964 lt_prog_compiler_static_CXX='-Bstatic' 13965 lt_prog_compiler_wl_CXX='-Qoption ld ' 13966 ;; 13967 esac 13968 ;; 13969 esac 13970 ;; 13971 lynxos*) 13972 ;; 13973 m88k*) 13974 ;; 13975 mvs*) 13976 case $cc_basename in 13977 cxx*) 13978 lt_prog_compiler_pic_CXX='-W c,exportall' 13979 ;; 13980 *) 13981 ;; 13982 esac 13983 ;; 13984 netbsd* | netbsdelf*-gnu) 13985 ;; 13986 osf3* | osf4* | osf5*) 13987 case $cc_basename in 13988 KCC*) 13989 lt_prog_compiler_wl_CXX='--backend -Wl,' 13990 ;; 13991 RCC*) 13992 # Rational C++ 2.4.1 13993 lt_prog_compiler_pic_CXX='-pic' 13994 ;; 13995 cxx*) 13996 # Digital/Compaq C++ 13997 lt_prog_compiler_wl_CXX='-Wl,' 13998 # Make sure the PIC flag is empty. It appears that all Alpha 13999 # Linux and Compaq Tru64 Unix objects are PIC. 14000 lt_prog_compiler_pic_CXX= 14001 lt_prog_compiler_static_CXX='-non_shared' 14002 ;; 14003 *) 14004 ;; 14005 esac 14006 ;; 14007 psos*) 14008 ;; 14009 solaris*) 14010 case $cc_basename in 14011 CC*) 14012 # Sun C++ 4.2, 5.x and Centerline C++ 14013 lt_prog_compiler_pic_CXX='-KPIC' 14014 lt_prog_compiler_static_CXX='-Bstatic' 14015 lt_prog_compiler_wl_CXX='-Qoption ld ' 14016 ;; 14017 gcx*) 14018 # Green Hills C++ Compiler 14019 lt_prog_compiler_pic_CXX='-PIC' 14020 ;; 14021 *) 14022 ;; 14023 esac 14024 ;; 14025 sunos4*) 14026 case $cc_basename in 14027 CC*) 14028 # Sun C++ 4.x 14029 lt_prog_compiler_pic_CXX='-pic' 14030 lt_prog_compiler_static_CXX='-Bstatic' 14031 ;; 14032 lcc*) 14033 # Lucid 14034 lt_prog_compiler_pic_CXX='-pic' 14035 ;; 14036 *) 14037 ;; 14038 esac 14039 ;; 14040 tandem*) 14041 case $cc_basename in 14042 NCC*) 14043 # NonStop-UX NCC 3.20 14044 lt_prog_compiler_pic_CXX='-KPIC' 14045 ;; 14046 *) 14047 ;; 14048 esac 14049 ;; 14050 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14051 case $cc_basename in 14052 CC*) 14053 lt_prog_compiler_wl_CXX='-Wl,' 14054 lt_prog_compiler_pic_CXX='-KPIC' 14055 lt_prog_compiler_static_CXX='-Bstatic' 14056 ;; 14057 esac 14058 ;; 14059 vxworks*) 14060 ;; 14061 *) 14062 lt_prog_compiler_can_build_shared_CXX=no 14063 ;; 14064 esac 14065 fi 14066 14067{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14068echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 14069 14070# 14071# Check to make sure the PIC flag actually works. 14072# 14073if test -n "$lt_prog_compiler_pic_CXX"; then 14074 14075{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14076echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 14077if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 14078 echo $ECHO_N "(cached) $ECHO_C" >&6 14079else 14080 lt_prog_compiler_pic_works_CXX=no 14081 ac_outfile=conftest.$ac_objext 14082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14083 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14084 # Insert the option either (1) after the last *FLAGS variable, or 14085 # (2) before a word containing "conftest.", or (3) at the end. 14086 # Note that $ac_compile itself does not contain backslashes and begins 14087 # with a dollar sign (not a hyphen), so the echo should work correctly. 14088 # The option is referenced via a variable to avoid confusing sed. 14089 lt_compile=`echo "$ac_compile" | $SED \ 14090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14092 -e 's:$: $lt_compiler_flag:'` 14093 (eval echo "\"\$as_me:14093: $lt_compile\"" >&5) 14094 (eval "$lt_compile" 2>conftest.err) 14095 ac_status=$? 14096 cat conftest.err >&5 14097 echo "$as_me:14097: \$? = $ac_status" >&5 14098 if (exit $ac_status) && test -s "$ac_outfile"; then 14099 # The compiler can only warn and ignore the option if not recognized 14100 # So say no if there are warnings other than the usual output. 14101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14104 lt_prog_compiler_pic_works_CXX=yes 14105 fi 14106 fi 14107 $rm conftest* 14108 14109fi 14110{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 14111echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 14112 14113if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 14114 case $lt_prog_compiler_pic_CXX in 14115 "" | " "*) ;; 14116 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14117 esac 14118else 14119 lt_prog_compiler_pic_CXX= 14120 lt_prog_compiler_can_build_shared_CXX=no 14121fi 14122 14123fi 14124case $host_os in 14125 # For platforms which do not support PIC, -DPIC is meaningless: 14126 *djgpp*) 14127 lt_prog_compiler_pic_CXX= 14128 ;; 14129 *) 14130 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14131 ;; 14132esac 14133 14134# 14135# Check to make sure the static flag actually works. 14136# 14137wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14138{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14139echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14140if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 14141 echo $ECHO_N "(cached) $ECHO_C" >&6 14142else 14143 lt_prog_compiler_static_works_CXX=no 14144 save_LDFLAGS="$LDFLAGS" 14145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14146 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14148 # The linker can only warn and ignore the option if not recognized 14149 # So say no if there are warnings 14150 if test -s conftest.err; then 14151 # Append any errors to the config.log. 14152 cat conftest.err 1>&5 14153 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14155 if diff conftest.exp conftest.er2 >/dev/null; then 14156 lt_prog_compiler_static_works_CXX=yes 14157 fi 14158 else 14159 lt_prog_compiler_static_works_CXX=yes 14160 fi 14161 fi 14162 $rm conftest* 14163 LDFLAGS="$save_LDFLAGS" 14164 14165fi 14166{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 14167echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 14168 14169if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 14170 : 14171else 14172 lt_prog_compiler_static_CXX= 14173fi 14174 14175 14176{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14177echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14178if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14179 echo $ECHO_N "(cached) $ECHO_C" >&6 14180else 14181 lt_cv_prog_compiler_c_o_CXX=no 14182 $rm -r conftest 2>/dev/null 14183 mkdir conftest 14184 cd conftest 14185 mkdir out 14186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14187 14188 lt_compiler_flag="-o out/conftest2.$ac_objext" 14189 # Insert the option either (1) after the last *FLAGS variable, or 14190 # (2) before a word containing "conftest.", or (3) at the end. 14191 # Note that $ac_compile itself does not contain backslashes and begins 14192 # with a dollar sign (not a hyphen), so the echo should work correctly. 14193 lt_compile=`echo "$ac_compile" | $SED \ 14194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14196 -e 's:$: $lt_compiler_flag:'` 14197 (eval echo "\"\$as_me:14197: $lt_compile\"" >&5) 14198 (eval "$lt_compile" 2>out/conftest.err) 14199 ac_status=$? 14200 cat out/conftest.err >&5 14201 echo "$as_me:14201: \$? = $ac_status" >&5 14202 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14203 then 14204 # The compiler can only warn and ignore the option if not recognized 14205 # So say no if there are warnings 14206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14209 lt_cv_prog_compiler_c_o_CXX=yes 14210 fi 14211 fi 14212 chmod u+w . 2>&5 14213 $rm conftest* 14214 # SGI C++ compiler will create directory out/ii_files/ for 14215 # template instantiation 14216 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14217 $rm out/* && rmdir out 14218 cd .. 14219 rmdir conftest 14220 $rm conftest* 14221 14222fi 14223{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14224echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14225 14226 14227hard_links="nottested" 14228if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14229 # do not overwrite the value of need_locks provided by the user 14230 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14231echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14232 hard_links=yes 14233 $rm conftest* 14234 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14235 touch conftest.a 14236 ln conftest.a conftest.b 2>&5 || hard_links=no 14237 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14238 { echo "$as_me:$LINENO: result: $hard_links" >&5 14239echo "${ECHO_T}$hard_links" >&6; } 14240 if test "$hard_links" = no; then 14241 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14242echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14243 need_locks=warn 14244 fi 14245else 14246 need_locks=no 14247fi 14248 14249{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14250echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14251 14252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14253 case $host_os in 14254 aix4* | aix5*) 14255 # If we're using GNU nm, then we don't want the "-C" option. 14256 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14257 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14258 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' 14259 else 14260 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' 14261 fi 14262 ;; 14263 pw32*) 14264 export_symbols_cmds_CXX="$ltdll_cmds" 14265 ;; 14266 cygwin* | mingw*) 14267 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' 14268 ;; 14269 linux* | k*bsd*-gnu) 14270 link_all_deplibs_CXX=no 14271 ;; 14272 *) 14273 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14274 ;; 14275 esac 14276 14277{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14278echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14279test "$ld_shlibs_CXX" = no && can_build_shared=no 14280 14281# 14282# Do we need to explicitly link libc? 14283# 14284case "x$archive_cmds_need_lc_CXX" in 14285x|xyes) 14286 # Assume -lc should be added 14287 archive_cmds_need_lc_CXX=yes 14288 14289 if test "$enable_shared" = yes && test "$GCC" = yes; then 14290 case $archive_cmds_CXX in 14291 *'~'*) 14292 # FIXME: we may have to deal with multi-command sequences. 14293 ;; 14294 '$CC '*) 14295 # Test whether the compiler implicitly links with -lc since on some 14296 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14297 # to ld, don't add -lc before -lgcc. 14298 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14299echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14300 $rm conftest* 14301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14302 14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14304 (eval $ac_compile) 2>&5 14305 ac_status=$? 14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14307 (exit $ac_status); } 2>conftest.err; then 14308 soname=conftest 14309 lib=conftest 14310 libobjs=conftest.$ac_objext 14311 deplibs= 14312 wl=$lt_prog_compiler_wl_CXX 14313 pic_flag=$lt_prog_compiler_pic_CXX 14314 compiler_flags=-v 14315 linker_flags=-v 14316 verstring= 14317 output_objdir=. 14318 libname=conftest 14319 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14320 allow_undefined_flag_CXX= 14321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14322 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14323 ac_status=$? 14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14325 (exit $ac_status); } 14326 then 14327 archive_cmds_need_lc_CXX=no 14328 else 14329 archive_cmds_need_lc_CXX=yes 14330 fi 14331 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14332 else 14333 cat conftest.err 1>&5 14334 fi 14335 $rm conftest* 14336 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14337echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14338 ;; 14339 esac 14340 fi 14341 ;; 14342esac 14343 14344{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14345echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14346library_names_spec= 14347libname_spec='lib$name' 14348soname_spec= 14349shrext_cmds=".so" 14350postinstall_cmds= 14351postuninstall_cmds= 14352finish_cmds= 14353finish_eval= 14354shlibpath_var= 14355shlibpath_overrides_runpath=unknown 14356version_type=none 14357dynamic_linker="$host_os ld.so" 14358sys_lib_dlsearch_path_spec="/lib /usr/lib" 14359 14360need_lib_prefix=unknown 14361hardcode_into_libs=no 14362 14363# when you set need_version to no, make sure it does not cause -set_version 14364# flags to be left without arguments 14365need_version=unknown 14366 14367case $host_os in 14368aix3*) 14369 version_type=linux 14370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14371 shlibpath_var=LIBPATH 14372 14373 # AIX 3 has no versioning support, so we append a major version to the name. 14374 soname_spec='${libname}${release}${shared_ext}$major' 14375 ;; 14376 14377aix4* | aix5*) 14378 version_type=linux 14379 need_lib_prefix=no 14380 need_version=no 14381 hardcode_into_libs=yes 14382 if test "$host_cpu" = ia64; then 14383 # AIX 5 supports IA64 14384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14385 shlibpath_var=LD_LIBRARY_PATH 14386 else 14387 # With GCC up to 2.95.x, collect2 would create an import file 14388 # for dependence libraries. The import file would start with 14389 # the line `#! .'. This would cause the generated library to 14390 # depend on `.', always an invalid library. This was fixed in 14391 # development snapshots of GCC prior to 3.0. 14392 case $host_os in 14393 aix4 | aix4.[01] | aix4.[01].*) 14394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14395 echo ' yes ' 14396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14397 : 14398 else 14399 can_build_shared=no 14400 fi 14401 ;; 14402 esac 14403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14404 # soname into executable. Probably we can add versioning support to 14405 # collect2, so additional links can be useful in future. 14406 if test "$aix_use_runtimelinking" = yes; then 14407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14408 # instead of lib<name>.a to let people know that these are not 14409 # typical AIX shared libraries. 14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14411 else 14412 # We preserve .a as extension for shared libraries through AIX4.2 14413 # and later when we are not doing run time linking. 14414 library_names_spec='${libname}${release}.a $libname.a' 14415 soname_spec='${libname}${release}${shared_ext}$major' 14416 fi 14417 shlibpath_var=LIBPATH 14418 fi 14419 ;; 14420 14421amigaos*) 14422 library_names_spec='$libname.ixlibrary $libname.a' 14423 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14424 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' 14425 ;; 14426 14427beos*) 14428 library_names_spec='${libname}${shared_ext}' 14429 dynamic_linker="$host_os ld.so" 14430 shlibpath_var=LIBRARY_PATH 14431 ;; 14432 14433bsdi[45]*) 14434 version_type=linux 14435 need_version=no 14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14437 soname_spec='${libname}${release}${shared_ext}$major' 14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14439 shlibpath_var=LD_LIBRARY_PATH 14440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14442 # the default ld.so.conf also contains /usr/contrib/lib and 14443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14444 # libtool to hard-code these into programs 14445 ;; 14446 14447cygwin* | mingw* | pw32*) 14448 version_type=windows 14449 shrext_cmds=".dll" 14450 need_version=no 14451 need_lib_prefix=no 14452 14453 case $GCC,$host_os in 14454 yes,cygwin* | yes,mingw* | yes,pw32*) 14455 library_names_spec='$libname.dll.a' 14456 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14457 postinstall_cmds='base_file=`basename \${file}`~ 14458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14459 dldir=$destdir/`dirname \$dlpath`~ 14460 test -d \$dldir || mkdir -p \$dldir~ 14461 $install_prog $dir/$dlname \$dldir/$dlname~ 14462 chmod a+x \$dldir/$dlname' 14463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14464 dlpath=$dir/\$dldll~ 14465 $rm \$dlpath' 14466 shlibpath_overrides_runpath=yes 14467 14468 case $host_os in 14469 cygwin*) 14470 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14473 ;; 14474 mingw*) 14475 # MinGW DLLs use traditional 'lib' prefix 14476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14479 # It is most probably a Windows format PATH printed by 14480 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14481 # path with ; separators, and with drive letters. We can handle the 14482 # drive letters (cygwin fileutils understands them), so leave them, 14483 # especially as we might pass files found there to a mingw objdump, 14484 # which wouldn't understand a cygwinified path. Ahh. 14485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14486 else 14487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14488 fi 14489 ;; 14490 pw32*) 14491 # pw32 DLLs use 'pw' prefix rather than 'lib' 14492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14493 ;; 14494 esac 14495 ;; 14496 14497 *) 14498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14499 ;; 14500 esac 14501 dynamic_linker='Win32 ld.exe' 14502 # FIXME: first we should search . and the directory the executable is in 14503 shlibpath_var=PATH 14504 ;; 14505 14506darwin* | rhapsody*) 14507 dynamic_linker="$host_os dyld" 14508 version_type=darwin 14509 need_lib_prefix=no 14510 need_version=no 14511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14512 soname_spec='${libname}${release}${major}$shared_ext' 14513 shlibpath_overrides_runpath=yes 14514 shlibpath_var=DYLD_LIBRARY_PATH 14515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14516 14517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14518 ;; 14519 14520dgux*) 14521 version_type=linux 14522 need_lib_prefix=no 14523 need_version=no 14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14525 soname_spec='${libname}${release}${shared_ext}$major' 14526 shlibpath_var=LD_LIBRARY_PATH 14527 ;; 14528 14529freebsd1*) 14530 dynamic_linker=no 14531 ;; 14532 14533freebsd* | dragonfly*) 14534 # DragonFly does not have aout. When/if they implement a new 14535 # versioning mechanism, adjust this. 14536 if test -x /usr/bin/objformat; then 14537 objformat=`/usr/bin/objformat` 14538 else 14539 case $host_os in 14540 freebsd[123]*) objformat=aout ;; 14541 *) objformat=elf ;; 14542 esac 14543 fi 14544 version_type=freebsd-$objformat 14545 case $version_type in 14546 freebsd-elf*) 14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14548 need_version=no 14549 need_lib_prefix=no 14550 ;; 14551 freebsd-*) 14552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14553 need_version=yes 14554 ;; 14555 esac 14556 shlibpath_var=LD_LIBRARY_PATH 14557 case $host_os in 14558 freebsd2*) 14559 shlibpath_overrides_runpath=yes 14560 ;; 14561 freebsd3.[01]* | freebsdelf3.[01]*) 14562 shlibpath_overrides_runpath=yes 14563 hardcode_into_libs=yes 14564 ;; 14565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14567 shlibpath_overrides_runpath=no 14568 hardcode_into_libs=yes 14569 ;; 14570 *) # from 4.6 on, and DragonFly 14571 shlibpath_overrides_runpath=yes 14572 hardcode_into_libs=yes 14573 ;; 14574 esac 14575 ;; 14576 14577gnu*) 14578 version_type=linux 14579 need_lib_prefix=no 14580 need_version=no 14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14582 soname_spec='${libname}${release}${shared_ext}$major' 14583 shlibpath_var=LD_LIBRARY_PATH 14584 hardcode_into_libs=yes 14585 ;; 14586 14587hpux9* | hpux10* | hpux11*) 14588 # Give a soname corresponding to the major version so that dld.sl refuses to 14589 # link against other versions. 14590 version_type=sunos 14591 need_lib_prefix=no 14592 need_version=no 14593 case $host_cpu in 14594 ia64*) 14595 shrext_cmds='.so' 14596 hardcode_into_libs=yes 14597 dynamic_linker="$host_os dld.so" 14598 shlibpath_var=LD_LIBRARY_PATH 14599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14601 soname_spec='${libname}${release}${shared_ext}$major' 14602 if test "X$HPUX_IA64_MODE" = X32; then 14603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14604 else 14605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14606 fi 14607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14608 ;; 14609 hppa*64*) 14610 shrext_cmds='.sl' 14611 hardcode_into_libs=yes 14612 dynamic_linker="$host_os dld.sl" 14613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14616 soname_spec='${libname}${release}${shared_ext}$major' 14617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14619 ;; 14620 *) 14621 shrext_cmds='.sl' 14622 dynamic_linker="$host_os dld.sl" 14623 shlibpath_var=SHLIB_PATH 14624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14626 soname_spec='${libname}${release}${shared_ext}$major' 14627 ;; 14628 esac 14629 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14630 postinstall_cmds='chmod 555 $lib' 14631 ;; 14632 14633interix[3-9]*) 14634 version_type=linux 14635 need_lib_prefix=no 14636 need_version=no 14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14638 soname_spec='${libname}${release}${shared_ext}$major' 14639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14640 shlibpath_var=LD_LIBRARY_PATH 14641 shlibpath_overrides_runpath=no 14642 hardcode_into_libs=yes 14643 ;; 14644 14645irix5* | irix6* | nonstopux*) 14646 case $host_os in 14647 nonstopux*) version_type=nonstopux ;; 14648 *) 14649 if test "$lt_cv_prog_gnu_ld" = yes; then 14650 version_type=linux 14651 else 14652 version_type=irix 14653 fi ;; 14654 esac 14655 need_lib_prefix=no 14656 need_version=no 14657 soname_spec='${libname}${release}${shared_ext}$major' 14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14659 case $host_os in 14660 irix5* | nonstopux*) 14661 libsuff= shlibsuff= 14662 ;; 14663 *) 14664 case $LD in # libtool.m4 will add one of these switches to LD 14665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14666 libsuff= shlibsuff= libmagic=32-bit;; 14667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14668 libsuff=32 shlibsuff=N32 libmagic=N32;; 14669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14671 *) libsuff= shlibsuff= libmagic=never-match;; 14672 esac 14673 ;; 14674 esac 14675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14676 shlibpath_overrides_runpath=no 14677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14679 hardcode_into_libs=yes 14680 ;; 14681 14682# No shared lib support for Linux oldld, aout, or coff. 14683linux*oldld* | linux*aout* | linux*coff*) 14684 dynamic_linker=no 14685 ;; 14686 14687# This must be Linux ELF. 14688linux* | k*bsd*-gnu) 14689 version_type=linux 14690 need_lib_prefix=no 14691 need_version=no 14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14693 soname_spec='${libname}${release}${shared_ext}$major' 14694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14695 shlibpath_var=LD_LIBRARY_PATH 14696 shlibpath_overrides_runpath=no 14697 # This implies no fast_install, which is unacceptable. 14698 # Some rework will be needed to allow for fast_install 14699 # before this can be enabled. 14700 hardcode_into_libs=yes 14701 14702 # Append ld.so.conf contents to the search path 14703 if test -f /etc/ld.so.conf; then 14704 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14706 fi 14707 14708 # We used to test for /lib/ld.so.1 and disable shared libraries on 14709 # powerpc, because MkLinux only supported shared libraries with the 14710 # GNU dynamic linker. Since this was broken with cross compilers, 14711 # most powerpc-linux boxes support dynamic linking these days and 14712 # people can always --disable-shared, the test was removed, and we 14713 # assume the GNU/Linux dynamic linker is in use. 14714 dynamic_linker='GNU/Linux ld.so' 14715 ;; 14716 14717netbsdelf*-gnu) 14718 version_type=linux 14719 need_lib_prefix=no 14720 need_version=no 14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14722 soname_spec='${libname}${release}${shared_ext}$major' 14723 shlibpath_var=LD_LIBRARY_PATH 14724 shlibpath_overrides_runpath=no 14725 hardcode_into_libs=yes 14726 dynamic_linker='NetBSD ld.elf_so' 14727 ;; 14728 14729netbsd*) 14730 version_type=sunos 14731 need_lib_prefix=no 14732 need_version=no 14733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14736 dynamic_linker='NetBSD (a.out) ld.so' 14737 else 14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14739 soname_spec='${libname}${release}${shared_ext}$major' 14740 dynamic_linker='NetBSD ld.elf_so' 14741 fi 14742 shlibpath_var=LD_LIBRARY_PATH 14743 shlibpath_overrides_runpath=yes 14744 hardcode_into_libs=yes 14745 ;; 14746 14747newsos6) 14748 version_type=linux 14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14750 shlibpath_var=LD_LIBRARY_PATH 14751 shlibpath_overrides_runpath=yes 14752 ;; 14753 14754nto-qnx*) 14755 version_type=linux 14756 need_lib_prefix=no 14757 need_version=no 14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14759 soname_spec='${libname}${release}${shared_ext}$major' 14760 shlibpath_var=LD_LIBRARY_PATH 14761 shlibpath_overrides_runpath=yes 14762 ;; 14763 14764openbsd*) 14765 version_type=sunos 14766 sys_lib_dlsearch_path_spec="/usr/lib" 14767 need_lib_prefix=no 14768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14769 case $host_os in 14770 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14771 *) need_version=no ;; 14772 esac 14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14775 shlibpath_var=LD_LIBRARY_PATH 14776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14777 case $host_os in 14778 openbsd2.[89] | openbsd2.[89].*) 14779 shlibpath_overrides_runpath=no 14780 ;; 14781 *) 14782 shlibpath_overrides_runpath=yes 14783 ;; 14784 esac 14785 else 14786 shlibpath_overrides_runpath=yes 14787 fi 14788 ;; 14789 14790os2*) 14791 libname_spec='$name' 14792 shrext_cmds=".dll" 14793 need_lib_prefix=no 14794 library_names_spec='$libname${shared_ext} $libname.a' 14795 dynamic_linker='OS/2 ld.exe' 14796 shlibpath_var=LIBPATH 14797 ;; 14798 14799osf3* | osf4* | osf5*) 14800 version_type=osf 14801 need_lib_prefix=no 14802 need_version=no 14803 soname_spec='${libname}${release}${shared_ext}$major' 14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14805 shlibpath_var=LD_LIBRARY_PATH 14806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14808 ;; 14809 14810rdos*) 14811 dynamic_linker=no 14812 ;; 14813 14814solaris*) 14815 version_type=linux 14816 need_lib_prefix=no 14817 need_version=no 14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14819 soname_spec='${libname}${release}${shared_ext}$major' 14820 shlibpath_var=LD_LIBRARY_PATH 14821 shlibpath_overrides_runpath=yes 14822 hardcode_into_libs=yes 14823 # ldd complains unless libraries are executable 14824 postinstall_cmds='chmod +x $lib' 14825 ;; 14826 14827sunos4*) 14828 version_type=sunos 14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14831 shlibpath_var=LD_LIBRARY_PATH 14832 shlibpath_overrides_runpath=yes 14833 if test "$with_gnu_ld" = yes; then 14834 need_lib_prefix=no 14835 fi 14836 need_version=yes 14837 ;; 14838 14839sysv4 | sysv4.3*) 14840 version_type=linux 14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14842 soname_spec='${libname}${release}${shared_ext}$major' 14843 shlibpath_var=LD_LIBRARY_PATH 14844 case $host_vendor in 14845 sni) 14846 shlibpath_overrides_runpath=no 14847 need_lib_prefix=no 14848 export_dynamic_flag_spec='${wl}-Blargedynsym' 14849 runpath_var=LD_RUN_PATH 14850 ;; 14851 siemens) 14852 need_lib_prefix=no 14853 ;; 14854 motorola) 14855 need_lib_prefix=no 14856 need_version=no 14857 shlibpath_overrides_runpath=no 14858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14859 ;; 14860 esac 14861 ;; 14862 14863sysv4*MP*) 14864 if test -d /usr/nec ;then 14865 version_type=linux 14866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14867 soname_spec='$libname${shared_ext}.$major' 14868 shlibpath_var=LD_LIBRARY_PATH 14869 fi 14870 ;; 14871 14872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14873 version_type=freebsd-elf 14874 need_lib_prefix=no 14875 need_version=no 14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14877 soname_spec='${libname}${release}${shared_ext}$major' 14878 shlibpath_var=LD_LIBRARY_PATH 14879 hardcode_into_libs=yes 14880 if test "$with_gnu_ld" = yes; then 14881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14882 shlibpath_overrides_runpath=no 14883 else 14884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14885 shlibpath_overrides_runpath=yes 14886 case $host_os in 14887 sco3.2v5*) 14888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14889 ;; 14890 esac 14891 fi 14892 sys_lib_dlsearch_path_spec='/usr/lib' 14893 ;; 14894 14895uts4*) 14896 version_type=linux 14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14898 soname_spec='${libname}${release}${shared_ext}$major' 14899 shlibpath_var=LD_LIBRARY_PATH 14900 ;; 14901 14902*) 14903 dynamic_linker=no 14904 ;; 14905esac 14906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14907echo "${ECHO_T}$dynamic_linker" >&6; } 14908test "$dynamic_linker" = no && can_build_shared=no 14909 14910variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14911if test "$GCC" = yes; then 14912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14913fi 14914 14915{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14917hardcode_action_CXX= 14918if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14919 test -n "$runpath_var_CXX" || \ 14920 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14921 14922 # We can hardcode non-existant directories. 14923 if test "$hardcode_direct_CXX" != no && 14924 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14925 # have to relink, otherwise we might link with an installed library 14926 # when we should be linking with a yet-to-be-installed one 14927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14928 test "$hardcode_minus_L_CXX" != no; then 14929 # Linking always hardcodes the temporary library directory. 14930 hardcode_action_CXX=relink 14931 else 14932 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14933 hardcode_action_CXX=immediate 14934 fi 14935else 14936 # We cannot hardcode anything, or else we can only hardcode existing 14937 # directories. 14938 hardcode_action_CXX=unsupported 14939fi 14940{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14941echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14942 14943if test "$hardcode_action_CXX" = relink; then 14944 # Fast installation is not supported 14945 enable_fast_install=no 14946elif test "$shlibpath_overrides_runpath" = yes || 14947 test "$enable_shared" = no; then 14948 # Fast installation is not necessary 14949 enable_fast_install=needless 14950fi 14951 14952 14953# The else clause should only fire when bootstrapping the 14954# libtool distribution, otherwise you forgot to ship ltmain.sh 14955# with your package, and you will get complaints that there are 14956# no rules to generate ltmain.sh. 14957if test -f "$ltmain"; then 14958 # See if we are running on zsh, and set the options which allow our commands through 14959 # without removal of \ escapes. 14960 if test -n "${ZSH_VERSION+set}" ; then 14961 setopt NO_GLOB_SUBST 14962 fi 14963 # Now quote all the things that may contain metacharacters while being 14964 # careful not to overquote the AC_SUBSTed values. We take copies of the 14965 # variables and quote the copies for generation of the libtool script. 14966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14967 SED SHELL STRIP \ 14968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14970 deplibs_check_method reload_flag reload_cmds need_locks \ 14971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14972 lt_cv_sys_global_symbol_to_c_name_address \ 14973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14974 old_postinstall_cmds old_postuninstall_cmds \ 14975 compiler_CXX \ 14976 CC_CXX \ 14977 LD_CXX \ 14978 lt_prog_compiler_wl_CXX \ 14979 lt_prog_compiler_pic_CXX \ 14980 lt_prog_compiler_static_CXX \ 14981 lt_prog_compiler_no_builtin_flag_CXX \ 14982 export_dynamic_flag_spec_CXX \ 14983 thread_safe_flag_spec_CXX \ 14984 whole_archive_flag_spec_CXX \ 14985 enable_shared_with_static_runtimes_CXX \ 14986 old_archive_cmds_CXX \ 14987 old_archive_from_new_cmds_CXX \ 14988 predep_objects_CXX \ 14989 postdep_objects_CXX \ 14990 predeps_CXX \ 14991 postdeps_CXX \ 14992 compiler_lib_search_path_CXX \ 14993 archive_cmds_CXX \ 14994 archive_expsym_cmds_CXX \ 14995 postinstall_cmds_CXX \ 14996 postuninstall_cmds_CXX \ 14997 old_archive_from_expsyms_cmds_CXX \ 14998 allow_undefined_flag_CXX \ 14999 no_undefined_flag_CXX \ 15000 export_symbols_cmds_CXX \ 15001 hardcode_libdir_flag_spec_CXX \ 15002 hardcode_libdir_flag_spec_ld_CXX \ 15003 hardcode_libdir_separator_CXX \ 15004 hardcode_automatic_CXX \ 15005 module_cmds_CXX \ 15006 module_expsym_cmds_CXX \ 15007 lt_cv_prog_compiler_c_o_CXX \ 15008 fix_srcfile_path_CXX \ 15009 exclude_expsyms_CXX \ 15010 include_expsyms_CXX; do 15011 15012 case $var in 15013 old_archive_cmds_CXX | \ 15014 old_archive_from_new_cmds_CXX | \ 15015 archive_cmds_CXX | \ 15016 archive_expsym_cmds_CXX | \ 15017 module_cmds_CXX | \ 15018 module_expsym_cmds_CXX | \ 15019 old_archive_from_expsyms_cmds_CXX | \ 15020 export_symbols_cmds_CXX | \ 15021 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15022 postinstall_cmds | postuninstall_cmds | \ 15023 old_postinstall_cmds | old_postuninstall_cmds | \ 15024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15025 # Double-quote double-evaled strings. 15026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15027 ;; 15028 *) 15029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15030 ;; 15031 esac 15032 done 15033 15034 case $lt_echo in 15035 *'\$0 --fallback-echo"') 15036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15037 ;; 15038 esac 15039 15040cfgfile="$ofile" 15041 15042 cat <<__EOF__ >> "$cfgfile" 15043# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15044 15045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15046 15047# Shell to use when invoking shell scripts. 15048SHELL=$lt_SHELL 15049 15050# Whether or not to build shared libraries. 15051build_libtool_libs=$enable_shared 15052 15053# Whether or not to build static libraries. 15054build_old_libs=$enable_static 15055 15056# Whether or not to add -lc for building shared libraries. 15057build_libtool_need_lc=$archive_cmds_need_lc_CXX 15058 15059# Whether or not to disallow shared libs when runtime libs are static 15060allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15061 15062# Whether or not to optimize for fast installation. 15063fast_install=$enable_fast_install 15064 15065# The host system. 15066host_alias=$host_alias 15067host=$host 15068host_os=$host_os 15069 15070# The build system. 15071build_alias=$build_alias 15072build=$build 15073build_os=$build_os 15074 15075# An echo program that does not interpret backslashes. 15076echo=$lt_echo 15077 15078# The archiver. 15079AR=$lt_AR 15080AR_FLAGS=$lt_AR_FLAGS 15081 15082# A C compiler. 15083LTCC=$lt_LTCC 15084 15085# LTCC compiler flags. 15086LTCFLAGS=$lt_LTCFLAGS 15087 15088# A language-specific compiler. 15089CC=$lt_compiler_CXX 15090 15091# Is the compiler the GNU C compiler? 15092with_gcc=$GCC_CXX 15093 15094# An ERE matcher. 15095EGREP=$lt_EGREP 15096 15097# The linker used to build libraries. 15098LD=$lt_LD_CXX 15099 15100# Whether we need hard or soft links. 15101LN_S=$lt_LN_S 15102 15103# A BSD-compatible nm program. 15104NM=$lt_NM 15105 15106# A symbol stripping program 15107STRIP=$lt_STRIP 15108 15109# Used to examine libraries when file_magic_cmd begins "file" 15110MAGIC_CMD=$MAGIC_CMD 15111 15112# Used on cygwin: DLL creation program. 15113DLLTOOL="$DLLTOOL" 15114 15115# Used on cygwin: object dumper. 15116OBJDUMP="$OBJDUMP" 15117 15118# Used on cygwin: assembler. 15119AS="$AS" 15120 15121# The name of the directory that contains temporary libtool files. 15122objdir=$objdir 15123 15124# How to create reloadable object files. 15125reload_flag=$lt_reload_flag 15126reload_cmds=$lt_reload_cmds 15127 15128# How to pass a linker flag through the compiler. 15129wl=$lt_lt_prog_compiler_wl_CXX 15130 15131# Object file suffix (normally "o"). 15132objext="$ac_objext" 15133 15134# Old archive suffix (normally "a"). 15135libext="$libext" 15136 15137# Shared library suffix (normally ".so"). 15138shrext_cmds='$shrext_cmds' 15139 15140# Executable file suffix (normally ""). 15141exeext="$exeext" 15142 15143# Additional compiler flags for building library objects. 15144pic_flag=$lt_lt_prog_compiler_pic_CXX 15145pic_mode=$pic_mode 15146 15147# What is the maximum length of a command? 15148max_cmd_len=$lt_cv_sys_max_cmd_len 15149 15150# Does compiler simultaneously support -c and -o options? 15151compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15152 15153# Must we lock files when doing compilation? 15154need_locks=$lt_need_locks 15155 15156# Do we need the lib prefix for modules? 15157need_lib_prefix=$need_lib_prefix 15158 15159# Do we need a version for libraries? 15160need_version=$need_version 15161 15162# Whether dlopen is supported. 15163dlopen_support=$enable_dlopen 15164 15165# Whether dlopen of programs is supported. 15166dlopen_self=$enable_dlopen_self 15167 15168# Whether dlopen of statically linked programs is supported. 15169dlopen_self_static=$enable_dlopen_self_static 15170 15171# Compiler flag to prevent dynamic linking. 15172link_static_flag=$lt_lt_prog_compiler_static_CXX 15173 15174# Compiler flag to turn off builtin functions. 15175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15176 15177# Compiler flag to allow reflexive dlopens. 15178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15179 15180# Compiler flag to generate shared objects directly from archives. 15181whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15182 15183# Compiler flag to generate thread-safe objects. 15184thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15185 15186# Library versioning type. 15187version_type=$version_type 15188 15189# Format of library name prefix. 15190libname_spec=$lt_libname_spec 15191 15192# List of archive names. First name is the real one, the rest are links. 15193# The last name is the one that the linker finds with -lNAME. 15194library_names_spec=$lt_library_names_spec 15195 15196# The coded name of the library, if different from the real name. 15197soname_spec=$lt_soname_spec 15198 15199# Commands used to build and install an old-style archive. 15200RANLIB=$lt_RANLIB 15201old_archive_cmds=$lt_old_archive_cmds_CXX 15202old_postinstall_cmds=$lt_old_postinstall_cmds 15203old_postuninstall_cmds=$lt_old_postuninstall_cmds 15204 15205# Create an old-style archive from a shared archive. 15206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15207 15208# Create a temporary old-style archive to link instead of a shared archive. 15209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15210 15211# Commands used to build and install a shared archive. 15212archive_cmds=$lt_archive_cmds_CXX 15213archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15214postinstall_cmds=$lt_postinstall_cmds 15215postuninstall_cmds=$lt_postuninstall_cmds 15216 15217# Commands used to build a loadable module (assumed same as above if empty) 15218module_cmds=$lt_module_cmds_CXX 15219module_expsym_cmds=$lt_module_expsym_cmds_CXX 15220 15221# Commands to strip libraries. 15222old_striplib=$lt_old_striplib 15223striplib=$lt_striplib 15224 15225# Dependencies to place before the objects being linked to create a 15226# shared library. 15227predep_objects=$lt_predep_objects_CXX 15228 15229# Dependencies to place after the objects being linked to create a 15230# shared library. 15231postdep_objects=$lt_postdep_objects_CXX 15232 15233# Dependencies to place before the objects being linked to create a 15234# shared library. 15235predeps=$lt_predeps_CXX 15236 15237# Dependencies to place after the objects being linked to create a 15238# shared library. 15239postdeps=$lt_postdeps_CXX 15240 15241# The library search path used internally by the compiler when linking 15242# a shared library. 15243compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15244 15245# Method to check whether dependent libraries are shared objects. 15246deplibs_check_method=$lt_deplibs_check_method 15247 15248# Command to use when deplibs_check_method == file_magic. 15249file_magic_cmd=$lt_file_magic_cmd 15250 15251# Flag that allows shared libraries with undefined symbols to be built. 15252allow_undefined_flag=$lt_allow_undefined_flag_CXX 15253 15254# Flag that forces no undefined symbols. 15255no_undefined_flag=$lt_no_undefined_flag_CXX 15256 15257# Commands used to finish a libtool library installation in a directory. 15258finish_cmds=$lt_finish_cmds 15259 15260# Same as above, but a single script fragment to be evaled but not shown. 15261finish_eval=$lt_finish_eval 15262 15263# Take the output of nm and produce a listing of raw symbols and C names. 15264global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15265 15266# Transform the output of nm in a proper C declaration 15267global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15268 15269# Transform the output of nm in a C name address pair 15270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15271 15272# This is the shared library runtime path variable. 15273runpath_var=$runpath_var 15274 15275# This is the shared library path variable. 15276shlibpath_var=$shlibpath_var 15277 15278# Is shlibpath searched before the hard-coded library search path? 15279shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15280 15281# How to hardcode a shared library path into an executable. 15282hardcode_action=$hardcode_action_CXX 15283 15284# Whether we should hardcode library paths into libraries. 15285hardcode_into_libs=$hardcode_into_libs 15286 15287# Flag to hardcode \$libdir into a binary during linking. 15288# This must work even if \$libdir does not exist. 15289hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15290 15291# If ld is used when linking, flag to hardcode \$libdir into 15292# a binary during linking. This must work even if \$libdir does 15293# not exist. 15294hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15295 15296# Whether we need a single -rpath flag with a separated argument. 15297hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15298 15299# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15300# resulting binary. 15301hardcode_direct=$hardcode_direct_CXX 15302 15303# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15304# resulting binary. 15305hardcode_minus_L=$hardcode_minus_L_CXX 15306 15307# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15308# the resulting binary. 15309hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15310 15311# Set to yes if building a shared library automatically hardcodes DIR into the library 15312# and all subsequent libraries and executables linked against it. 15313hardcode_automatic=$hardcode_automatic_CXX 15314 15315# Variables whose values should be saved in libtool wrapper scripts and 15316# restored at relink time. 15317variables_saved_for_relink="$variables_saved_for_relink" 15318 15319# Whether libtool must link a program against all its dependency libraries. 15320link_all_deplibs=$link_all_deplibs_CXX 15321 15322# Compile-time system search path for libraries 15323sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15324 15325# Run-time system search path for libraries 15326sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15327 15328# Fix the shell variable \$srcfile for the compiler. 15329fix_srcfile_path=$lt_fix_srcfile_path 15330 15331# Set to yes if exported symbols are required. 15332always_export_symbols=$always_export_symbols_CXX 15333 15334# The commands to list exported symbols. 15335export_symbols_cmds=$lt_export_symbols_cmds_CXX 15336 15337# The commands to extract the exported symbol list from a shared archive. 15338extract_expsyms_cmds=$lt_extract_expsyms_cmds 15339 15340# Symbols that should not be listed in the preloaded symbols. 15341exclude_expsyms=$lt_exclude_expsyms_CXX 15342 15343# Symbols that must always be exported. 15344include_expsyms=$lt_include_expsyms_CXX 15345 15346# ### END LIBTOOL TAG CONFIG: $tagname 15347 15348__EOF__ 15349 15350 15351else 15352 # If there is no Makefile yet, we rely on a make rule to execute 15353 # `config.status --recheck' to rerun these tests and create the 15354 # libtool script then. 15355 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15356 if test -f "$ltmain_in"; then 15357 test -f Makefile && make "$ltmain" 15358 fi 15359fi 15360 15361 15362ac_ext=c 15363ac_cpp='$CPP $CPPFLAGS' 15364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15366ac_compiler_gnu=$ac_cv_c_compiler_gnu 15367 15368CC=$lt_save_CC 15369LDCXX=$LD 15370LD=$lt_save_LD 15371GCC=$lt_save_GCC 15372with_gnu_ldcxx=$with_gnu_ld 15373with_gnu_ld=$lt_save_with_gnu_ld 15374lt_cv_path_LDCXX=$lt_cv_path_LD 15375lt_cv_path_LD=$lt_save_path_LD 15376lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15377lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15378 15379 else 15380 tagname="" 15381 fi 15382 ;; 15383 15384 F77) 15385 if test -n "$F77" && test "X$F77" != "Xno"; then 15386 15387ac_ext=f 15388ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15389ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15390ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15391 15392 15393archive_cmds_need_lc_F77=no 15394allow_undefined_flag_F77= 15395always_export_symbols_F77=no 15396archive_expsym_cmds_F77= 15397export_dynamic_flag_spec_F77= 15398hardcode_direct_F77=no 15399hardcode_libdir_flag_spec_F77= 15400hardcode_libdir_flag_spec_ld_F77= 15401hardcode_libdir_separator_F77= 15402hardcode_minus_L_F77=no 15403hardcode_automatic_F77=no 15404module_cmds_F77= 15405module_expsym_cmds_F77= 15406link_all_deplibs_F77=unknown 15407old_archive_cmds_F77=$old_archive_cmds 15408no_undefined_flag_F77= 15409whole_archive_flag_spec_F77= 15410enable_shared_with_static_runtimes_F77=no 15411 15412# Source file extension for f77 test sources. 15413ac_ext=f 15414 15415# Object file extension for compiled f77 test sources. 15416objext=o 15417objext_F77=$objext 15418 15419# Code to be used in simple compile tests 15420lt_simple_compile_test_code="\ 15421 subroutine t 15422 return 15423 end 15424" 15425 15426# Code to be used in simple link tests 15427lt_simple_link_test_code="\ 15428 program t 15429 end 15430" 15431 15432# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15433 15434# If no C compiler was specified, use CC. 15435LTCC=${LTCC-"$CC"} 15436 15437# If no C compiler flags were specified, use CFLAGS. 15438LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15439 15440# Allow CC to be a program name with arguments. 15441compiler=$CC 15442 15443 15444# save warnings/boilerplate of simple test code 15445ac_outfile=conftest.$ac_objext 15446echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15448_lt_compiler_boilerplate=`cat conftest.err` 15449$rm conftest* 15450 15451ac_outfile=conftest.$ac_objext 15452echo "$lt_simple_link_test_code" >conftest.$ac_ext 15453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15454_lt_linker_boilerplate=`cat conftest.err` 15455$rm conftest* 15456 15457 15458# Allow CC to be a program name with arguments. 15459lt_save_CC="$CC" 15460CC=${F77-"f77"} 15461compiler=$CC 15462compiler_F77=$CC 15463for cc_temp in $compiler""; do 15464 case $cc_temp in 15465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15467 \-*) ;; 15468 *) break;; 15469 esac 15470done 15471cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15472 15473 15474{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15475echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 15476{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 15477echo "${ECHO_T}$can_build_shared" >&6; } 15478 15479{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15480echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 15481test "$can_build_shared" = "no" && enable_shared=no 15482 15483# On AIX, shared libraries and static libraries use the same namespace, and 15484# are all built from PIC. 15485case $host_os in 15486aix3*) 15487 test "$enable_shared" = yes && enable_static=no 15488 if test -n "$RANLIB"; then 15489 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15490 postinstall_cmds='$RANLIB $lib' 15491 fi 15492 ;; 15493aix4* | aix5*) 15494 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15495 test "$enable_shared" = yes && enable_static=no 15496 fi 15497 ;; 15498esac 15499{ echo "$as_me:$LINENO: result: $enable_shared" >&5 15500echo "${ECHO_T}$enable_shared" >&6; } 15501 15502{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15503echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 15504# Make sure either enable_shared or enable_static is yes. 15505test "$enable_shared" = yes || enable_static=yes 15506{ echo "$as_me:$LINENO: result: $enable_static" >&5 15507echo "${ECHO_T}$enable_static" >&6; } 15508 15509GCC_F77="$G77" 15510LD_F77="$LD" 15511 15512lt_prog_compiler_wl_F77= 15513lt_prog_compiler_pic_F77= 15514lt_prog_compiler_static_F77= 15515 15516{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15517echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15518 15519 if test "$GCC" = yes; then 15520 lt_prog_compiler_wl_F77='-Wl,' 15521 lt_prog_compiler_static_F77='-static' 15522 15523 case $host_os in 15524 aix*) 15525 # All AIX code is PIC. 15526 if test "$host_cpu" = ia64; then 15527 # AIX 5 now supports IA64 processor 15528 lt_prog_compiler_static_F77='-Bstatic' 15529 fi 15530 ;; 15531 15532 amigaos*) 15533 # FIXME: we need at least 68020 code to build shared libraries, but 15534 # adding the `-m68020' flag to GCC prevents building anything better, 15535 # like `-m68040'. 15536 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15537 ;; 15538 15539 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15540 # PIC is the default for these OSes. 15541 ;; 15542 15543 mingw* | cygwin* | pw32* | os2*) 15544 # This hack is so that the source file can tell whether it is being 15545 # built for inclusion in a dll (and should export symbols for example). 15546 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15547 # (--disable-auto-import) libraries 15548 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15549 ;; 15550 15551 darwin* | rhapsody*) 15552 # PIC is the default on this platform 15553 # Common symbols not allowed in MH_DYLIB files 15554 lt_prog_compiler_pic_F77='-fno-common' 15555 ;; 15556 15557 interix[3-9]*) 15558 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15559 # Instead, we relocate shared libraries at runtime. 15560 ;; 15561 15562 msdosdjgpp*) 15563 # Just because we use GCC doesn't mean we suddenly get shared libraries 15564 # on systems that don't support them. 15565 lt_prog_compiler_can_build_shared_F77=no 15566 enable_shared=no 15567 ;; 15568 15569 sysv4*MP*) 15570 if test -d /usr/nec; then 15571 lt_prog_compiler_pic_F77=-Kconform_pic 15572 fi 15573 ;; 15574 15575 hpux*) 15576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15577 # not for PA HP-UX. 15578 case $host_cpu in 15579 hppa*64*|ia64*) 15580 # +Z the default 15581 ;; 15582 *) 15583 lt_prog_compiler_pic_F77='-fPIC' 15584 ;; 15585 esac 15586 ;; 15587 15588 *) 15589 lt_prog_compiler_pic_F77='-fPIC' 15590 ;; 15591 esac 15592 else 15593 # PORTME Check for flag to pass linker flags through the system compiler. 15594 case $host_os in 15595 aix*) 15596 lt_prog_compiler_wl_F77='-Wl,' 15597 if test "$host_cpu" = ia64; then 15598 # AIX 5 now supports IA64 processor 15599 lt_prog_compiler_static_F77='-Bstatic' 15600 else 15601 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15602 fi 15603 ;; 15604 darwin*) 15605 # PIC is the default on this platform 15606 # Common symbols not allowed in MH_DYLIB files 15607 case $cc_basename in 15608 xlc*) 15609 lt_prog_compiler_pic_F77='-qnocommon' 15610 lt_prog_compiler_wl_F77='-Wl,' 15611 ;; 15612 esac 15613 ;; 15614 15615 mingw* | cygwin* | pw32* | os2*) 15616 # This hack is so that the source file can tell whether it is being 15617 # built for inclusion in a dll (and should export symbols for example). 15618 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15619 ;; 15620 15621 hpux9* | hpux10* | hpux11*) 15622 lt_prog_compiler_wl_F77='-Wl,' 15623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15624 # not for PA HP-UX. 15625 case $host_cpu in 15626 hppa*64*|ia64*) 15627 # +Z the default 15628 ;; 15629 *) 15630 lt_prog_compiler_pic_F77='+Z' 15631 ;; 15632 esac 15633 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15634 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15635 ;; 15636 15637 irix5* | irix6* | nonstopux*) 15638 lt_prog_compiler_wl_F77='-Wl,' 15639 # PIC (with -KPIC) is the default. 15640 lt_prog_compiler_static_F77='-non_shared' 15641 ;; 15642 15643 newsos6) 15644 lt_prog_compiler_pic_F77='-KPIC' 15645 lt_prog_compiler_static_F77='-Bstatic' 15646 ;; 15647 15648 linux* | k*bsd*-gnu) 15649 case $cc_basename in 15650 icc* | ecc*) 15651 lt_prog_compiler_wl_F77='-Wl,' 15652 lt_prog_compiler_pic_F77='-KPIC' 15653 lt_prog_compiler_static_F77='-static' 15654 ;; 15655 pgcc* | pgf77* | pgf90* | pgf95*) 15656 # Portland Group compilers (*not* the Pentium gcc compiler, 15657 # which looks to be a dead project) 15658 lt_prog_compiler_wl_F77='-Wl,' 15659 lt_prog_compiler_pic_F77='-fpic' 15660 lt_prog_compiler_static_F77='-Bstatic' 15661 ;; 15662 ccc*) 15663 lt_prog_compiler_wl_F77='-Wl,' 15664 # All Alpha code is PIC. 15665 lt_prog_compiler_static_F77='-non_shared' 15666 ;; 15667 *) 15668 case `$CC -V 2>&1 | sed 5q` in 15669 *Sun\ C*) 15670 # Sun C 5.9 15671 lt_prog_compiler_pic_F77='-KPIC' 15672 lt_prog_compiler_static_F77='-Bstatic' 15673 lt_prog_compiler_wl_F77='-Wl,' 15674 ;; 15675 *Sun\ F*) 15676 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15677 lt_prog_compiler_pic_F77='-KPIC' 15678 lt_prog_compiler_static_F77='-Bstatic' 15679 lt_prog_compiler_wl_F77='' 15680 ;; 15681 esac 15682 ;; 15683 esac 15684 ;; 15685 15686 osf3* | osf4* | osf5*) 15687 lt_prog_compiler_wl_F77='-Wl,' 15688 # All OSF/1 code is PIC. 15689 lt_prog_compiler_static_F77='-non_shared' 15690 ;; 15691 15692 rdos*) 15693 lt_prog_compiler_static_F77='-non_shared' 15694 ;; 15695 15696 solaris*) 15697 lt_prog_compiler_pic_F77='-KPIC' 15698 lt_prog_compiler_static_F77='-Bstatic' 15699 case $cc_basename in 15700 f77* | f90* | f95*) 15701 lt_prog_compiler_wl_F77='-Qoption ld ';; 15702 *) 15703 lt_prog_compiler_wl_F77='-Wl,';; 15704 esac 15705 ;; 15706 15707 sunos4*) 15708 lt_prog_compiler_wl_F77='-Qoption ld ' 15709 lt_prog_compiler_pic_F77='-PIC' 15710 lt_prog_compiler_static_F77='-Bstatic' 15711 ;; 15712 15713 sysv4 | sysv4.2uw2* | sysv4.3*) 15714 lt_prog_compiler_wl_F77='-Wl,' 15715 lt_prog_compiler_pic_F77='-KPIC' 15716 lt_prog_compiler_static_F77='-Bstatic' 15717 ;; 15718 15719 sysv4*MP*) 15720 if test -d /usr/nec ;then 15721 lt_prog_compiler_pic_F77='-Kconform_pic' 15722 lt_prog_compiler_static_F77='-Bstatic' 15723 fi 15724 ;; 15725 15726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15727 lt_prog_compiler_wl_F77='-Wl,' 15728 lt_prog_compiler_pic_F77='-KPIC' 15729 lt_prog_compiler_static_F77='-Bstatic' 15730 ;; 15731 15732 unicos*) 15733 lt_prog_compiler_wl_F77='-Wl,' 15734 lt_prog_compiler_can_build_shared_F77=no 15735 ;; 15736 15737 uts4*) 15738 lt_prog_compiler_pic_F77='-pic' 15739 lt_prog_compiler_static_F77='-Bstatic' 15740 ;; 15741 15742 *) 15743 lt_prog_compiler_can_build_shared_F77=no 15744 ;; 15745 esac 15746 fi 15747 15748{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15749echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 15750 15751# 15752# Check to make sure the PIC flag actually works. 15753# 15754if test -n "$lt_prog_compiler_pic_F77"; then 15755 15756{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15757echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 15758if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15759 echo $ECHO_N "(cached) $ECHO_C" >&6 15760else 15761 lt_prog_compiler_pic_works_F77=no 15762 ac_outfile=conftest.$ac_objext 15763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15764 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15765 # Insert the option either (1) after the last *FLAGS variable, or 15766 # (2) before a word containing "conftest.", or (3) at the end. 15767 # Note that $ac_compile itself does not contain backslashes and begins 15768 # with a dollar sign (not a hyphen), so the echo should work correctly. 15769 # The option is referenced via a variable to avoid confusing sed. 15770 lt_compile=`echo "$ac_compile" | $SED \ 15771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15773 -e 's:$: $lt_compiler_flag:'` 15774 (eval echo "\"\$as_me:15774: $lt_compile\"" >&5) 15775 (eval "$lt_compile" 2>conftest.err) 15776 ac_status=$? 15777 cat conftest.err >&5 15778 echo "$as_me:15778: \$? = $ac_status" >&5 15779 if (exit $ac_status) && test -s "$ac_outfile"; then 15780 # The compiler can only warn and ignore the option if not recognized 15781 # So say no if there are warnings other than the usual output. 15782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15785 lt_prog_compiler_pic_works_F77=yes 15786 fi 15787 fi 15788 $rm conftest* 15789 15790fi 15791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15792echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 15793 15794if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15795 case $lt_prog_compiler_pic_F77 in 15796 "" | " "*) ;; 15797 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15798 esac 15799else 15800 lt_prog_compiler_pic_F77= 15801 lt_prog_compiler_can_build_shared_F77=no 15802fi 15803 15804fi 15805case $host_os in 15806 # For platforms which do not support PIC, -DPIC is meaningless: 15807 *djgpp*) 15808 lt_prog_compiler_pic_F77= 15809 ;; 15810 *) 15811 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15812 ;; 15813esac 15814 15815# 15816# Check to make sure the static flag actually works. 15817# 15818wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15819{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15820echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15821if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15822 echo $ECHO_N "(cached) $ECHO_C" >&6 15823else 15824 lt_prog_compiler_static_works_F77=no 15825 save_LDFLAGS="$LDFLAGS" 15826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15827 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15829 # The linker can only warn and ignore the option if not recognized 15830 # So say no if there are warnings 15831 if test -s conftest.err; then 15832 # Append any errors to the config.log. 15833 cat conftest.err 1>&5 15834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15836 if diff conftest.exp conftest.er2 >/dev/null; then 15837 lt_prog_compiler_static_works_F77=yes 15838 fi 15839 else 15840 lt_prog_compiler_static_works_F77=yes 15841 fi 15842 fi 15843 $rm conftest* 15844 LDFLAGS="$save_LDFLAGS" 15845 15846fi 15847{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15848echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 15849 15850if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15851 : 15852else 15853 lt_prog_compiler_static_F77= 15854fi 15855 15856 15857{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15859if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15860 echo $ECHO_N "(cached) $ECHO_C" >&6 15861else 15862 lt_cv_prog_compiler_c_o_F77=no 15863 $rm -r conftest 2>/dev/null 15864 mkdir conftest 15865 cd conftest 15866 mkdir out 15867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15868 15869 lt_compiler_flag="-o out/conftest2.$ac_objext" 15870 # Insert the option either (1) after the last *FLAGS variable, or 15871 # (2) before a word containing "conftest.", or (3) at the end. 15872 # Note that $ac_compile itself does not contain backslashes and begins 15873 # with a dollar sign (not a hyphen), so the echo should work correctly. 15874 lt_compile=`echo "$ac_compile" | $SED \ 15875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15877 -e 's:$: $lt_compiler_flag:'` 15878 (eval echo "\"\$as_me:15878: $lt_compile\"" >&5) 15879 (eval "$lt_compile" 2>out/conftest.err) 15880 ac_status=$? 15881 cat out/conftest.err >&5 15882 echo "$as_me:15882: \$? = $ac_status" >&5 15883 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15884 then 15885 # The compiler can only warn and ignore the option if not recognized 15886 # So say no if there are warnings 15887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15890 lt_cv_prog_compiler_c_o_F77=yes 15891 fi 15892 fi 15893 chmod u+w . 2>&5 15894 $rm conftest* 15895 # SGI C++ compiler will create directory out/ii_files/ for 15896 # template instantiation 15897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15898 $rm out/* && rmdir out 15899 cd .. 15900 rmdir conftest 15901 $rm conftest* 15902 15903fi 15904{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15905echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 15906 15907 15908hard_links="nottested" 15909if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15910 # do not overwrite the value of need_locks provided by the user 15911 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15912echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15913 hard_links=yes 15914 $rm conftest* 15915 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15916 touch conftest.a 15917 ln conftest.a conftest.b 2>&5 || hard_links=no 15918 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15919 { echo "$as_me:$LINENO: result: $hard_links" >&5 15920echo "${ECHO_T}$hard_links" >&6; } 15921 if test "$hard_links" = no; then 15922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15923echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15924 need_locks=warn 15925 fi 15926else 15927 need_locks=no 15928fi 15929 15930{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15931echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15932 15933 runpath_var= 15934 allow_undefined_flag_F77= 15935 enable_shared_with_static_runtimes_F77=no 15936 archive_cmds_F77= 15937 archive_expsym_cmds_F77= 15938 old_archive_From_new_cmds_F77= 15939 old_archive_from_expsyms_cmds_F77= 15940 export_dynamic_flag_spec_F77= 15941 whole_archive_flag_spec_F77= 15942 thread_safe_flag_spec_F77= 15943 hardcode_libdir_flag_spec_F77= 15944 hardcode_libdir_flag_spec_ld_F77= 15945 hardcode_libdir_separator_F77= 15946 hardcode_direct_F77=no 15947 hardcode_minus_L_F77=no 15948 hardcode_shlibpath_var_F77=unsupported 15949 link_all_deplibs_F77=unknown 15950 hardcode_automatic_F77=no 15951 module_cmds_F77= 15952 module_expsym_cmds_F77= 15953 always_export_symbols_F77=no 15954 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15955 # include_expsyms should be a list of space-separated symbols to be *always* 15956 # included in the symbol list 15957 include_expsyms_F77= 15958 # exclude_expsyms can be an extended regexp of symbols to exclude 15959 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15961 # as well as any symbol that contains `d'. 15962 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15964 # platforms (ab)use it in PIC code, but their linkers get confused if 15965 # the symbol is explicitly referenced. Since portable code cannot 15966 # rely on this symbol name, it's probably fine to never include it in 15967 # preloaded symbol tables. 15968 extract_expsyms_cmds= 15969 # Just being paranoid about ensuring that cc_basename is set. 15970 for cc_temp in $compiler""; do 15971 case $cc_temp in 15972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15974 \-*) ;; 15975 *) break;; 15976 esac 15977done 15978cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15979 15980 case $host_os in 15981 cygwin* | mingw* | pw32*) 15982 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15983 # When not using gcc, we currently assume that we are using 15984 # Microsoft Visual C++. 15985 if test "$GCC" != yes; then 15986 with_gnu_ld=no 15987 fi 15988 ;; 15989 interix*) 15990 # we just hope/assume this is gcc and not c89 (= MSVC++) 15991 with_gnu_ld=yes 15992 ;; 15993 openbsd*) 15994 with_gnu_ld=no 15995 ;; 15996 esac 15997 15998 ld_shlibs_F77=yes 15999 if test "$with_gnu_ld" = yes; then 16000 # If archive_cmds runs LD, not CC, wlarc should be empty 16001 wlarc='${wl}' 16002 16003 # Set some defaults for GNU ld with shared library support. These 16004 # are reset later if shared libraries are not supported. Putting them 16005 # here allows them to be overridden if necessary. 16006 runpath_var=LD_RUN_PATH 16007 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 16008 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 16009 # ancient GNU ld didn't support --whole-archive et. al. 16010 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16011 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16012 else 16013 whole_archive_flag_spec_F77= 16014 fi 16015 supports_anon_versioning=no 16016 case `$LD -v 2>/dev/null` in 16017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16020 *\ 2.11.*) ;; # other 2.11 versions 16021 *) supports_anon_versioning=yes ;; 16022 esac 16023 16024 # See if GNU ld supports shared libraries. 16025 case $host_os in 16026 aix3* | aix4* | aix5*) 16027 # On AIX/PPC, the GNU linker is very broken 16028 if test "$host_cpu" != ia64; then 16029 ld_shlibs_F77=no 16030 cat <<EOF 1>&2 16031 16032*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16033*** to be unable to reliably create shared libraries on AIX. 16034*** Therefore, libtool is disabling shared libraries support. If you 16035*** really care for shared libraries, you may want to modify your PATH 16036*** so that a non-GNU linker is found, and then restart. 16037 16038EOF 16039 fi 16040 ;; 16041 16042 amigaos*) 16043 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)' 16044 hardcode_libdir_flag_spec_F77='-L$libdir' 16045 hardcode_minus_L_F77=yes 16046 16047 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16048 # that the semantics of dynamic libraries on AmigaOS, at least up 16049 # to version 4, is to share data among multiple programs linked 16050 # with the same dynamic library. Since this doesn't match the 16051 # behavior of shared libraries on other platforms, we can't use 16052 # them. 16053 ld_shlibs_F77=no 16054 ;; 16055 16056 beos*) 16057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16058 allow_undefined_flag_F77=unsupported 16059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16060 # support --undefined. This deserves some investigation. FIXME 16061 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16062 else 16063 ld_shlibs_F77=no 16064 fi 16065 ;; 16066 16067 cygwin* | mingw* | pw32*) 16068 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 16069 # as there is no search path for DLLs. 16070 hardcode_libdir_flag_spec_F77='-L$libdir' 16071 allow_undefined_flag_F77=unsupported 16072 always_export_symbols_F77=no 16073 enable_shared_with_static_runtimes_F77=yes 16074 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16075 16076 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16077 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16078 # If the export-symbols file already is a .def file (1st line 16079 # is EXPORTS), use it as is; otherwise, prepend... 16080 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16081 cp $export_symbols $output_objdir/$soname.def; 16082 else 16083 echo EXPORTS > $output_objdir/$soname.def; 16084 cat $export_symbols >> $output_objdir/$soname.def; 16085 fi~ 16086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16087 else 16088 ld_shlibs_F77=no 16089 fi 16090 ;; 16091 16092 interix[3-9]*) 16093 hardcode_direct_F77=no 16094 hardcode_shlibpath_var_F77=no 16095 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16096 export_dynamic_flag_spec_F77='${wl}-E' 16097 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16098 # Instead, shared libraries are loaded at an image base (0x10000000 by 16099 # default) and relocated if they conflict, which is a slow very memory 16100 # consuming and fragmenting process. To avoid this, we pick a random, 16101 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16102 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16103 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' 16104 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' 16105 ;; 16106 16107 gnu* | linux* | k*bsd*-gnu) 16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16109 tmp_addflag= 16110 case $cc_basename,$host_cpu in 16111 pgcc*) # Portland Group C compiler 16112 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' 16113 tmp_addflag=' $pic_flag' 16114 ;; 16115 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16116 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' 16117 tmp_addflag=' $pic_flag -Mnomain' ;; 16118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16119 tmp_addflag=' -i_dynamic' ;; 16120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16121 tmp_addflag=' -i_dynamic -nofor_main' ;; 16122 ifc* | ifort*) # Intel Fortran compiler 16123 tmp_addflag=' -nofor_main' ;; 16124 esac 16125 case `$CC -V 2>&1 | sed 5q` in 16126 *Sun\ C*) # Sun C 5.9 16127 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16128 tmp_sharedflag='-G' ;; 16129 *Sun\ F*) # Sun Fortran 8.3 16130 tmp_sharedflag='-G' ;; 16131 *) 16132 tmp_sharedflag='-shared' ;; 16133 esac 16134 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16135 16136 if test $supports_anon_versioning = yes; then 16137 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16139 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16141 fi 16142 link_all_deplibs_F77=no 16143 else 16144 ld_shlibs_F77=no 16145 fi 16146 ;; 16147 16148 netbsd* | netbsdelf*-gnu) 16149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16150 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16151 wlarc= 16152 else 16153 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16154 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16155 fi 16156 ;; 16157 16158 solaris*) 16159 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16160 ld_shlibs_F77=no 16161 cat <<EOF 1>&2 16162 16163*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16164*** create shared libraries on Solaris systems. Therefore, libtool 16165*** is disabling shared libraries support. We urge you to upgrade GNU 16166*** binutils to release 2.9.1 or newer. Another option is to modify 16167*** your PATH or compiler configuration so that the native linker is 16168*** used, and then restart. 16169 16170EOF 16171 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16172 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16173 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16174 else 16175 ld_shlibs_F77=no 16176 fi 16177 ;; 16178 16179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16180 case `$LD -v 2>&1` in 16181 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16182 ld_shlibs_F77=no 16183 cat <<_LT_EOF 1>&2 16184 16185*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16186*** reliably create shared libraries on SCO systems. Therefore, libtool 16187*** is disabling shared libraries support. We urge you to upgrade GNU 16188*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16189*** your PATH or compiler configuration so that the native linker is 16190*** used, and then restart. 16191 16192_LT_EOF 16193 ;; 16194 *) 16195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16196 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16197 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16198 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16199 else 16200 ld_shlibs_F77=no 16201 fi 16202 ;; 16203 esac 16204 ;; 16205 16206 sunos4*) 16207 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16208 wlarc= 16209 hardcode_direct_F77=yes 16210 hardcode_shlibpath_var_F77=no 16211 ;; 16212 16213 *) 16214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16217 else 16218 ld_shlibs_F77=no 16219 fi 16220 ;; 16221 esac 16222 16223 if test "$ld_shlibs_F77" = no; then 16224 runpath_var= 16225 hardcode_libdir_flag_spec_F77= 16226 export_dynamic_flag_spec_F77= 16227 whole_archive_flag_spec_F77= 16228 fi 16229 else 16230 # PORTME fill in a description of your system's linker (not GNU ld) 16231 case $host_os in 16232 aix3*) 16233 allow_undefined_flag_F77=unsupported 16234 always_export_symbols_F77=yes 16235 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' 16236 # Note: this linker hardcodes the directories in LIBPATH if there 16237 # are no directories specified by -L. 16238 hardcode_minus_L_F77=yes 16239 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16240 # Neither direct hardcoding nor static linking is supported with a 16241 # broken collect2. 16242 hardcode_direct_F77=unsupported 16243 fi 16244 ;; 16245 16246 aix4* | aix5*) 16247 if test "$host_cpu" = ia64; then 16248 # On IA64, the linker does run time linking by default, so we don't 16249 # have to do anything special. 16250 aix_use_runtimelinking=no 16251 exp_sym_flag='-Bexport' 16252 no_entry_flag="" 16253 else 16254 # If we're using GNU nm, then we don't want the "-C" option. 16255 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16256 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16257 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' 16258 else 16259 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' 16260 fi 16261 aix_use_runtimelinking=no 16262 16263 # Test if we are trying to use run time linking or normal 16264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16265 # need to do runtime linking. 16266 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16267 for ld_flag in $LDFLAGS; do 16268 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16269 aix_use_runtimelinking=yes 16270 break 16271 fi 16272 done 16273 ;; 16274 esac 16275 16276 exp_sym_flag='-bexport' 16277 no_entry_flag='-bnoentry' 16278 fi 16279 16280 # When large executables or shared objects are built, AIX ld can 16281 # have problems creating the table of contents. If linking a library 16282 # or program results in "error TOC overflow" add -mminimal-toc to 16283 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16284 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16285 16286 archive_cmds_F77='' 16287 hardcode_direct_F77=yes 16288 hardcode_libdir_separator_F77=':' 16289 link_all_deplibs_F77=yes 16290 16291 if test "$GCC" = yes; then 16292 case $host_os in aix4.[012]|aix4.[012].*) 16293 # We only want to do this on AIX 4.2 and lower, the check 16294 # below for broken collect2 doesn't work under 4.3+ 16295 collect2name=`${CC} -print-prog-name=collect2` 16296 if test -f "$collect2name" && \ 16297 strings "$collect2name" | grep resolve_lib_name >/dev/null 16298 then 16299 # We have reworked collect2 16300 : 16301 else 16302 # We have old collect2 16303 hardcode_direct_F77=unsupported 16304 # It fails to find uninstalled libraries when the uninstalled 16305 # path is not listed in the libpath. Setting hardcode_minus_L 16306 # to unsupported forces relinking 16307 hardcode_minus_L_F77=yes 16308 hardcode_libdir_flag_spec_F77='-L$libdir' 16309 hardcode_libdir_separator_F77= 16310 fi 16311 ;; 16312 esac 16313 shared_flag='-shared' 16314 if test "$aix_use_runtimelinking" = yes; then 16315 shared_flag="$shared_flag "'${wl}-G' 16316 fi 16317 else 16318 # not using gcc 16319 if test "$host_cpu" = ia64; then 16320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16321 # chokes on -Wl,-G. The following line is correct: 16322 shared_flag='-G' 16323 else 16324 if test "$aix_use_runtimelinking" = yes; then 16325 shared_flag='${wl}-G' 16326 else 16327 shared_flag='${wl}-bM:SRE' 16328 fi 16329 fi 16330 fi 16331 16332 # It seems that -bexpall does not export symbols beginning with 16333 # underscore (_), so it is better to generate a list of symbols to export. 16334 always_export_symbols_F77=yes 16335 if test "$aix_use_runtimelinking" = yes; then 16336 # Warning - without using the other runtime loading flags (-brtl), 16337 # -berok will link without error, but may produce a broken library. 16338 allow_undefined_flag_F77='-berok' 16339 # Determine the default libpath from the value encoded in an empty executable. 16340 cat >conftest.$ac_ext <<_ACEOF 16341 program main 16342 16343 end 16344_ACEOF 16345rm -f conftest.$ac_objext conftest$ac_exeext 16346if { (ac_try="$ac_link" 16347case "(($ac_try" in 16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16349 *) ac_try_echo=$ac_try;; 16350esac 16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16352 (eval "$ac_link") 2>conftest.er1 16353 ac_status=$? 16354 grep -v '^ *+' conftest.er1 >conftest.err 16355 rm -f conftest.er1 16356 cat conftest.err >&5 16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16358 (exit $ac_status); } && { 16359 test -z "$ac_f77_werror_flag" || 16360 test ! -s conftest.err 16361 } && test -s conftest$ac_exeext && 16362 $as_test_x conftest$ac_exeext; then 16363 16364lt_aix_libpath_sed=' 16365 /Import File Strings/,/^$/ { 16366 /^0/ { 16367 s/^0 *\(.*\)$/\1/ 16368 p 16369 } 16370 }' 16371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16372# Check for a 64-bit object if we didn't find anything. 16373if test -z "$aix_libpath"; then 16374 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16375fi 16376else 16377 echo "$as_me: failed program was:" >&5 16378sed 's/^/| /' conftest.$ac_ext >&5 16379 16380 16381fi 16382 16383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16384 conftest$ac_exeext conftest.$ac_ext 16385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16386 16387 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16388 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" 16389 else 16390 if test "$host_cpu" = ia64; then 16391 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16392 allow_undefined_flag_F77="-z nodefs" 16393 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" 16394 else 16395 # Determine the default libpath from the value encoded in an empty executable. 16396 cat >conftest.$ac_ext <<_ACEOF 16397 program main 16398 16399 end 16400_ACEOF 16401rm -f conftest.$ac_objext conftest$ac_exeext 16402if { (ac_try="$ac_link" 16403case "(($ac_try" in 16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16405 *) ac_try_echo=$ac_try;; 16406esac 16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16408 (eval "$ac_link") 2>conftest.er1 16409 ac_status=$? 16410 grep -v '^ *+' conftest.er1 >conftest.err 16411 rm -f conftest.er1 16412 cat conftest.err >&5 16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16414 (exit $ac_status); } && { 16415 test -z "$ac_f77_werror_flag" || 16416 test ! -s conftest.err 16417 } && test -s conftest$ac_exeext && 16418 $as_test_x conftest$ac_exeext; then 16419 16420lt_aix_libpath_sed=' 16421 /Import File Strings/,/^$/ { 16422 /^0/ { 16423 s/^0 *\(.*\)$/\1/ 16424 p 16425 } 16426 }' 16427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16428# Check for a 64-bit object if we didn't find anything. 16429if test -z "$aix_libpath"; then 16430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16431fi 16432else 16433 echo "$as_me: failed program was:" >&5 16434sed 's/^/| /' conftest.$ac_ext >&5 16435 16436 16437fi 16438 16439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16440 conftest$ac_exeext conftest.$ac_ext 16441if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16442 16443 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16444 # Warning - without using the other run time loading flags, 16445 # -berok will link without error, but may produce a broken library. 16446 no_undefined_flag_F77=' ${wl}-bernotok' 16447 allow_undefined_flag_F77=' ${wl}-berok' 16448 # Exported symbols can be pulled into shared objects from archives 16449 whole_archive_flag_spec_F77='$convenience' 16450 archive_cmds_need_lc_F77=yes 16451 # This is similar to how AIX traditionally builds its shared libraries. 16452 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' 16453 fi 16454 fi 16455 ;; 16456 16457 amigaos*) 16458 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)' 16459 hardcode_libdir_flag_spec_F77='-L$libdir' 16460 hardcode_minus_L_F77=yes 16461 # see comment about different semantics on the GNU ld section 16462 ld_shlibs_F77=no 16463 ;; 16464 16465 bsdi[45]*) 16466 export_dynamic_flag_spec_F77=-rdynamic 16467 ;; 16468 16469 cygwin* | mingw* | pw32*) 16470 # When not using gcc, we currently assume that we are using 16471 # Microsoft Visual C++. 16472 # hardcode_libdir_flag_spec is actually meaningless, as there is 16473 # no search path for DLLs. 16474 hardcode_libdir_flag_spec_F77=' ' 16475 allow_undefined_flag_F77=unsupported 16476 # Tell ltmain to make .lib files, not .a files. 16477 libext=lib 16478 # Tell ltmain to make .dll files, not .so files. 16479 shrext_cmds=".dll" 16480 # FIXME: Setting linknames here is a bad hack. 16481 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16482 # The linker will automatically build a .lib file if we build a DLL. 16483 old_archive_From_new_cmds_F77='true' 16484 # FIXME: Should let the user specify the lib program. 16485 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 16486 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16487 enable_shared_with_static_runtimes_F77=yes 16488 ;; 16489 16490 darwin* | rhapsody*) 16491 case $host_os in 16492 rhapsody* | darwin1.[012]) 16493 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16494 ;; 16495 *) # Darwin 1.3 on 16496 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16497 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16498 else 16499 case ${MACOSX_DEPLOYMENT_TARGET} in 16500 10.[012]) 16501 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16502 ;; 16503 10.*) 16504 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16505 ;; 16506 esac 16507 fi 16508 ;; 16509 esac 16510 archive_cmds_need_lc_F77=no 16511 hardcode_direct_F77=no 16512 hardcode_automatic_F77=yes 16513 hardcode_shlibpath_var_F77=unsupported 16514 whole_archive_flag_spec_F77='' 16515 link_all_deplibs_F77=yes 16516 if test "$GCC" = yes ; then 16517 output_verbose_link_cmd='echo' 16518 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16519 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16520 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16521 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}' 16522 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}' 16523 else 16524 case $cc_basename in 16525 xlc*) 16526 output_verbose_link_cmd='echo' 16527 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 16528 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16530 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16531 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}' 16532 ;; 16533 *) 16534 ld_shlibs_F77=no 16535 ;; 16536 esac 16537 fi 16538 ;; 16539 16540 dgux*) 16541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16542 hardcode_libdir_flag_spec_F77='-L$libdir' 16543 hardcode_shlibpath_var_F77=no 16544 ;; 16545 16546 freebsd1*) 16547 ld_shlibs_F77=no 16548 ;; 16549 16550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16551 # support. Future versions do this automatically, but an explicit c++rt0.o 16552 # does not break anything, and helps significantly (at the cost of a little 16553 # extra space). 16554 freebsd2.2*) 16555 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16556 hardcode_libdir_flag_spec_F77='-R$libdir' 16557 hardcode_direct_F77=yes 16558 hardcode_shlibpath_var_F77=no 16559 ;; 16560 16561 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16562 freebsd2*) 16563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16564 hardcode_direct_F77=yes 16565 hardcode_minus_L_F77=yes 16566 hardcode_shlibpath_var_F77=no 16567 ;; 16568 16569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16570 freebsd* | dragonfly*) 16571 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16572 hardcode_libdir_flag_spec_F77='-R$libdir' 16573 hardcode_direct_F77=yes 16574 hardcode_shlibpath_var_F77=no 16575 ;; 16576 16577 hpux9*) 16578 if test "$GCC" = yes; then 16579 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16580 else 16581 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16582 fi 16583 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16584 hardcode_libdir_separator_F77=: 16585 hardcode_direct_F77=yes 16586 16587 # hardcode_minus_L: Not really in the search PATH, 16588 # but as the default location of the library. 16589 hardcode_minus_L_F77=yes 16590 export_dynamic_flag_spec_F77='${wl}-E' 16591 ;; 16592 16593 hpux10*) 16594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16595 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16596 else 16597 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16598 fi 16599 if test "$with_gnu_ld" = no; then 16600 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16601 hardcode_libdir_separator_F77=: 16602 16603 hardcode_direct_F77=yes 16604 export_dynamic_flag_spec_F77='${wl}-E' 16605 16606 # hardcode_minus_L: Not really in the search PATH, 16607 # but as the default location of the library. 16608 hardcode_minus_L_F77=yes 16609 fi 16610 ;; 16611 16612 hpux11*) 16613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16614 case $host_cpu in 16615 hppa*64*) 16616 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16617 ;; 16618 ia64*) 16619 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16620 ;; 16621 *) 16622 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16623 ;; 16624 esac 16625 else 16626 case $host_cpu in 16627 hppa*64*) 16628 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16629 ;; 16630 ia64*) 16631 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16632 ;; 16633 *) 16634 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16635 ;; 16636 esac 16637 fi 16638 if test "$with_gnu_ld" = no; then 16639 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16640 hardcode_libdir_separator_F77=: 16641 16642 case $host_cpu in 16643 hppa*64*|ia64*) 16644 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16645 hardcode_direct_F77=no 16646 hardcode_shlibpath_var_F77=no 16647 ;; 16648 *) 16649 hardcode_direct_F77=yes 16650 export_dynamic_flag_spec_F77='${wl}-E' 16651 16652 # hardcode_minus_L: Not really in the search PATH, 16653 # but as the default location of the library. 16654 hardcode_minus_L_F77=yes 16655 ;; 16656 esac 16657 fi 16658 ;; 16659 16660 irix5* | irix6* | nonstopux*) 16661 if test "$GCC" = yes; then 16662 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' 16663 else 16664 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' 16665 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16666 fi 16667 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16668 hardcode_libdir_separator_F77=: 16669 link_all_deplibs_F77=yes 16670 ;; 16671 16672 netbsd* | netbsdelf*-gnu) 16673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16675 else 16676 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16677 fi 16678 hardcode_libdir_flag_spec_F77='-R$libdir' 16679 hardcode_direct_F77=yes 16680 hardcode_shlibpath_var_F77=no 16681 ;; 16682 16683 newsos6) 16684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16685 hardcode_direct_F77=yes 16686 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16687 hardcode_libdir_separator_F77=: 16688 hardcode_shlibpath_var_F77=no 16689 ;; 16690 16691 openbsd*) 16692 if test -f /usr/libexec/ld.so; then 16693 hardcode_direct_F77=yes 16694 hardcode_shlibpath_var_F77=no 16695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16696 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16697 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16698 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16699 export_dynamic_flag_spec_F77='${wl}-E' 16700 else 16701 case $host_os in 16702 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16704 hardcode_libdir_flag_spec_F77='-R$libdir' 16705 ;; 16706 *) 16707 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16708 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16709 ;; 16710 esac 16711 fi 16712 else 16713 ld_shlibs_F77=no 16714 fi 16715 ;; 16716 16717 os2*) 16718 hardcode_libdir_flag_spec_F77='-L$libdir' 16719 hardcode_minus_L_F77=yes 16720 allow_undefined_flag_F77=unsupported 16721 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' 16722 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16723 ;; 16724 16725 osf3*) 16726 if test "$GCC" = yes; then 16727 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16728 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' 16729 else 16730 allow_undefined_flag_F77=' -expect_unresolved \*' 16731 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' 16732 fi 16733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16734 hardcode_libdir_separator_F77=: 16735 ;; 16736 16737 osf4* | osf5*) # as osf3* with the addition of -msym flag 16738 if test "$GCC" = yes; then 16739 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16740 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' 16741 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16742 else 16743 allow_undefined_flag_F77=' -expect_unresolved \*' 16744 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' 16745 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~ 16746 $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' 16747 16748 # Both c and cxx compiler support -rpath directly 16749 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16750 fi 16751 hardcode_libdir_separator_F77=: 16752 ;; 16753 16754 solaris*) 16755 no_undefined_flag_F77=' -z text' 16756 if test "$GCC" = yes; then 16757 wlarc='${wl}' 16758 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16759 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16760 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16761 else 16762 wlarc='' 16763 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16764 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16766 fi 16767 hardcode_libdir_flag_spec_F77='-R$libdir' 16768 hardcode_shlibpath_var_F77=no 16769 case $host_os in 16770 solaris2.[0-5] | solaris2.[0-5].*) ;; 16771 *) 16772 # The compiler driver will combine and reorder linker options, 16773 # but understands `-z linker_flag'. GCC discards it without `$wl', 16774 # but is careful enough not to reorder. 16775 # Supported since Solaris 2.6 (maybe 2.5.1?) 16776 if test "$GCC" = yes; then 16777 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16778 else 16779 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 16780 fi 16781 ;; 16782 esac 16783 link_all_deplibs_F77=yes 16784 ;; 16785 16786 sunos4*) 16787 if test "x$host_vendor" = xsequent; then 16788 # Use $CC to link under sequent, because it throws in some extra .o 16789 # files that make .init and .fini sections work. 16790 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16791 else 16792 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16793 fi 16794 hardcode_libdir_flag_spec_F77='-L$libdir' 16795 hardcode_direct_F77=yes 16796 hardcode_minus_L_F77=yes 16797 hardcode_shlibpath_var_F77=no 16798 ;; 16799 16800 sysv4) 16801 case $host_vendor in 16802 sni) 16803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16804 hardcode_direct_F77=yes # is this really true??? 16805 ;; 16806 siemens) 16807 ## LD is ld it makes a PLAMLIB 16808 ## CC just makes a GrossModule. 16809 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16810 reload_cmds_F77='$CC -r -o $output$reload_objs' 16811 hardcode_direct_F77=no 16812 ;; 16813 motorola) 16814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16815 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16816 ;; 16817 esac 16818 runpath_var='LD_RUN_PATH' 16819 hardcode_shlibpath_var_F77=no 16820 ;; 16821 16822 sysv4.3*) 16823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16824 hardcode_shlibpath_var_F77=no 16825 export_dynamic_flag_spec_F77='-Bexport' 16826 ;; 16827 16828 sysv4*MP*) 16829 if test -d /usr/nec; then 16830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16831 hardcode_shlibpath_var_F77=no 16832 runpath_var=LD_RUN_PATH 16833 hardcode_runpath_var=yes 16834 ld_shlibs_F77=yes 16835 fi 16836 ;; 16837 16838 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16839 no_undefined_flag_F77='${wl}-z,text' 16840 archive_cmds_need_lc_F77=no 16841 hardcode_shlibpath_var_F77=no 16842 runpath_var='LD_RUN_PATH' 16843 16844 if test "$GCC" = yes; then 16845 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16846 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16847 else 16848 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16849 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16850 fi 16851 ;; 16852 16853 sysv5* | sco3.2v5* | sco5v6*) 16854 # Note: We can NOT use -z defs as we might desire, because we do not 16855 # link with -lc, and that would cause any symbols used from libc to 16856 # always be unresolved, which means just about no library would 16857 # ever link correctly. If we're not using GNU ld we use -z text 16858 # though, which does catch some bad symbols but isn't as heavy-handed 16859 # as -z defs. 16860 no_undefined_flag_F77='${wl}-z,text' 16861 allow_undefined_flag_F77='${wl}-z,nodefs' 16862 archive_cmds_need_lc_F77=no 16863 hardcode_shlibpath_var_F77=no 16864 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16865 hardcode_libdir_separator_F77=':' 16866 link_all_deplibs_F77=yes 16867 export_dynamic_flag_spec_F77='${wl}-Bexport' 16868 runpath_var='LD_RUN_PATH' 16869 16870 if test "$GCC" = yes; then 16871 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16872 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16873 else 16874 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16875 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16876 fi 16877 ;; 16878 16879 uts4*) 16880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16881 hardcode_libdir_flag_spec_F77='-L$libdir' 16882 hardcode_shlibpath_var_F77=no 16883 ;; 16884 16885 *) 16886 ld_shlibs_F77=no 16887 ;; 16888 esac 16889 fi 16890 16891{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16892echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16893test "$ld_shlibs_F77" = no && can_build_shared=no 16894 16895# 16896# Do we need to explicitly link libc? 16897# 16898case "x$archive_cmds_need_lc_F77" in 16899x|xyes) 16900 # Assume -lc should be added 16901 archive_cmds_need_lc_F77=yes 16902 16903 if test "$enable_shared" = yes && test "$GCC" = yes; then 16904 case $archive_cmds_F77 in 16905 *'~'*) 16906 # FIXME: we may have to deal with multi-command sequences. 16907 ;; 16908 '$CC '*) 16909 # Test whether the compiler implicitly links with -lc since on some 16910 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16911 # to ld, don't add -lc before -lgcc. 16912 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16913echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16914 $rm conftest* 16915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16916 16917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16918 (eval $ac_compile) 2>&5 16919 ac_status=$? 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); } 2>conftest.err; then 16922 soname=conftest 16923 lib=conftest 16924 libobjs=conftest.$ac_objext 16925 deplibs= 16926 wl=$lt_prog_compiler_wl_F77 16927 pic_flag=$lt_prog_compiler_pic_F77 16928 compiler_flags=-v 16929 linker_flags=-v 16930 verstring= 16931 output_objdir=. 16932 libname=conftest 16933 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16934 allow_undefined_flag_F77= 16935 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16936 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16937 ac_status=$? 16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } 16940 then 16941 archive_cmds_need_lc_F77=no 16942 else 16943 archive_cmds_need_lc_F77=yes 16944 fi 16945 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16946 else 16947 cat conftest.err 1>&5 16948 fi 16949 $rm conftest* 16950 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16951echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16952 ;; 16953 esac 16954 fi 16955 ;; 16956esac 16957 16958{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16959echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16960library_names_spec= 16961libname_spec='lib$name' 16962soname_spec= 16963shrext_cmds=".so" 16964postinstall_cmds= 16965postuninstall_cmds= 16966finish_cmds= 16967finish_eval= 16968shlibpath_var= 16969shlibpath_overrides_runpath=unknown 16970version_type=none 16971dynamic_linker="$host_os ld.so" 16972sys_lib_dlsearch_path_spec="/lib /usr/lib" 16973 16974need_lib_prefix=unknown 16975hardcode_into_libs=no 16976 16977# when you set need_version to no, make sure it does not cause -set_version 16978# flags to be left without arguments 16979need_version=unknown 16980 16981case $host_os in 16982aix3*) 16983 version_type=linux 16984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16985 shlibpath_var=LIBPATH 16986 16987 # AIX 3 has no versioning support, so we append a major version to the name. 16988 soname_spec='${libname}${release}${shared_ext}$major' 16989 ;; 16990 16991aix4* | aix5*) 16992 version_type=linux 16993 need_lib_prefix=no 16994 need_version=no 16995 hardcode_into_libs=yes 16996 if test "$host_cpu" = ia64; then 16997 # AIX 5 supports IA64 16998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16999 shlibpath_var=LD_LIBRARY_PATH 17000 else 17001 # With GCC up to 2.95.x, collect2 would create an import file 17002 # for dependence libraries. The import file would start with 17003 # the line `#! .'. This would cause the generated library to 17004 # depend on `.', always an invalid library. This was fixed in 17005 # development snapshots of GCC prior to 3.0. 17006 case $host_os in 17007 aix4 | aix4.[01] | aix4.[01].*) 17008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17009 echo ' yes ' 17010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17011 : 17012 else 17013 can_build_shared=no 17014 fi 17015 ;; 17016 esac 17017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17018 # soname into executable. Probably we can add versioning support to 17019 # collect2, so additional links can be useful in future. 17020 if test "$aix_use_runtimelinking" = yes; then 17021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17022 # instead of lib<name>.a to let people know that these are not 17023 # typical AIX shared libraries. 17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17025 else 17026 # We preserve .a as extension for shared libraries through AIX4.2 17027 # and later when we are not doing run time linking. 17028 library_names_spec='${libname}${release}.a $libname.a' 17029 soname_spec='${libname}${release}${shared_ext}$major' 17030 fi 17031 shlibpath_var=LIBPATH 17032 fi 17033 ;; 17034 17035amigaos*) 17036 library_names_spec='$libname.ixlibrary $libname.a' 17037 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17038 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' 17039 ;; 17040 17041beos*) 17042 library_names_spec='${libname}${shared_ext}' 17043 dynamic_linker="$host_os ld.so" 17044 shlibpath_var=LIBRARY_PATH 17045 ;; 17046 17047bsdi[45]*) 17048 version_type=linux 17049 need_version=no 17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17051 soname_spec='${libname}${release}${shared_ext}$major' 17052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17053 shlibpath_var=LD_LIBRARY_PATH 17054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17056 # the default ld.so.conf also contains /usr/contrib/lib and 17057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17058 # libtool to hard-code these into programs 17059 ;; 17060 17061cygwin* | mingw* | pw32*) 17062 version_type=windows 17063 shrext_cmds=".dll" 17064 need_version=no 17065 need_lib_prefix=no 17066 17067 case $GCC,$host_os in 17068 yes,cygwin* | yes,mingw* | yes,pw32*) 17069 library_names_spec='$libname.dll.a' 17070 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17071 postinstall_cmds='base_file=`basename \${file}`~ 17072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17073 dldir=$destdir/`dirname \$dlpath`~ 17074 test -d \$dldir || mkdir -p \$dldir~ 17075 $install_prog $dir/$dlname \$dldir/$dlname~ 17076 chmod a+x \$dldir/$dlname' 17077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17078 dlpath=$dir/\$dldll~ 17079 $rm \$dlpath' 17080 shlibpath_overrides_runpath=yes 17081 17082 case $host_os in 17083 cygwin*) 17084 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17087 ;; 17088 mingw*) 17089 # MinGW DLLs use traditional 'lib' prefix 17090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17093 # It is most probably a Windows format PATH printed by 17094 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17095 # path with ; separators, and with drive letters. We can handle the 17096 # drive letters (cygwin fileutils understands them), so leave them, 17097 # especially as we might pass files found there to a mingw objdump, 17098 # which wouldn't understand a cygwinified path. Ahh. 17099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17100 else 17101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17102 fi 17103 ;; 17104 pw32*) 17105 # pw32 DLLs use 'pw' prefix rather than 'lib' 17106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17107 ;; 17108 esac 17109 ;; 17110 17111 *) 17112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17113 ;; 17114 esac 17115 dynamic_linker='Win32 ld.exe' 17116 # FIXME: first we should search . and the directory the executable is in 17117 shlibpath_var=PATH 17118 ;; 17119 17120darwin* | rhapsody*) 17121 dynamic_linker="$host_os dyld" 17122 version_type=darwin 17123 need_lib_prefix=no 17124 need_version=no 17125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17126 soname_spec='${libname}${release}${major}$shared_ext' 17127 shlibpath_overrides_runpath=yes 17128 shlibpath_var=DYLD_LIBRARY_PATH 17129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17130 17131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17132 ;; 17133 17134dgux*) 17135 version_type=linux 17136 need_lib_prefix=no 17137 need_version=no 17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17139 soname_spec='${libname}${release}${shared_ext}$major' 17140 shlibpath_var=LD_LIBRARY_PATH 17141 ;; 17142 17143freebsd1*) 17144 dynamic_linker=no 17145 ;; 17146 17147freebsd* | dragonfly*) 17148 # DragonFly does not have aout. When/if they implement a new 17149 # versioning mechanism, adjust this. 17150 if test -x /usr/bin/objformat; then 17151 objformat=`/usr/bin/objformat` 17152 else 17153 case $host_os in 17154 freebsd[123]*) objformat=aout ;; 17155 *) objformat=elf ;; 17156 esac 17157 fi 17158 version_type=freebsd-$objformat 17159 case $version_type in 17160 freebsd-elf*) 17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17162 need_version=no 17163 need_lib_prefix=no 17164 ;; 17165 freebsd-*) 17166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17167 need_version=yes 17168 ;; 17169 esac 17170 shlibpath_var=LD_LIBRARY_PATH 17171 case $host_os in 17172 freebsd2*) 17173 shlibpath_overrides_runpath=yes 17174 ;; 17175 freebsd3.[01]* | freebsdelf3.[01]*) 17176 shlibpath_overrides_runpath=yes 17177 hardcode_into_libs=yes 17178 ;; 17179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17181 shlibpath_overrides_runpath=no 17182 hardcode_into_libs=yes 17183 ;; 17184 *) # from 4.6 on, and DragonFly 17185 shlibpath_overrides_runpath=yes 17186 hardcode_into_libs=yes 17187 ;; 17188 esac 17189 ;; 17190 17191gnu*) 17192 version_type=linux 17193 need_lib_prefix=no 17194 need_version=no 17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17196 soname_spec='${libname}${release}${shared_ext}$major' 17197 shlibpath_var=LD_LIBRARY_PATH 17198 hardcode_into_libs=yes 17199 ;; 17200 17201hpux9* | hpux10* | hpux11*) 17202 # Give a soname corresponding to the major version so that dld.sl refuses to 17203 # link against other versions. 17204 version_type=sunos 17205 need_lib_prefix=no 17206 need_version=no 17207 case $host_cpu in 17208 ia64*) 17209 shrext_cmds='.so' 17210 hardcode_into_libs=yes 17211 dynamic_linker="$host_os dld.so" 17212 shlibpath_var=LD_LIBRARY_PATH 17213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17215 soname_spec='${libname}${release}${shared_ext}$major' 17216 if test "X$HPUX_IA64_MODE" = X32; then 17217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17218 else 17219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17220 fi 17221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17222 ;; 17223 hppa*64*) 17224 shrext_cmds='.sl' 17225 hardcode_into_libs=yes 17226 dynamic_linker="$host_os dld.sl" 17227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17230 soname_spec='${libname}${release}${shared_ext}$major' 17231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17233 ;; 17234 *) 17235 shrext_cmds='.sl' 17236 dynamic_linker="$host_os dld.sl" 17237 shlibpath_var=SHLIB_PATH 17238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17240 soname_spec='${libname}${release}${shared_ext}$major' 17241 ;; 17242 esac 17243 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17244 postinstall_cmds='chmod 555 $lib' 17245 ;; 17246 17247interix[3-9]*) 17248 version_type=linux 17249 need_lib_prefix=no 17250 need_version=no 17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17252 soname_spec='${libname}${release}${shared_ext}$major' 17253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17254 shlibpath_var=LD_LIBRARY_PATH 17255 shlibpath_overrides_runpath=no 17256 hardcode_into_libs=yes 17257 ;; 17258 17259irix5* | irix6* | nonstopux*) 17260 case $host_os in 17261 nonstopux*) version_type=nonstopux ;; 17262 *) 17263 if test "$lt_cv_prog_gnu_ld" = yes; then 17264 version_type=linux 17265 else 17266 version_type=irix 17267 fi ;; 17268 esac 17269 need_lib_prefix=no 17270 need_version=no 17271 soname_spec='${libname}${release}${shared_ext}$major' 17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17273 case $host_os in 17274 irix5* | nonstopux*) 17275 libsuff= shlibsuff= 17276 ;; 17277 *) 17278 case $LD in # libtool.m4 will add one of these switches to LD 17279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17280 libsuff= shlibsuff= libmagic=32-bit;; 17281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17282 libsuff=32 shlibsuff=N32 libmagic=N32;; 17283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17284 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17285 *) libsuff= shlibsuff= libmagic=never-match;; 17286 esac 17287 ;; 17288 esac 17289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17290 shlibpath_overrides_runpath=no 17291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17293 hardcode_into_libs=yes 17294 ;; 17295 17296# No shared lib support for Linux oldld, aout, or coff. 17297linux*oldld* | linux*aout* | linux*coff*) 17298 dynamic_linker=no 17299 ;; 17300 17301# This must be Linux ELF. 17302linux* | k*bsd*-gnu) 17303 version_type=linux 17304 need_lib_prefix=no 17305 need_version=no 17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17307 soname_spec='${libname}${release}${shared_ext}$major' 17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17309 shlibpath_var=LD_LIBRARY_PATH 17310 shlibpath_overrides_runpath=no 17311 # This implies no fast_install, which is unacceptable. 17312 # Some rework will be needed to allow for fast_install 17313 # before this can be enabled. 17314 hardcode_into_libs=yes 17315 17316 # Append ld.so.conf contents to the search path 17317 if test -f /etc/ld.so.conf; then 17318 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17320 fi 17321 17322 # We used to test for /lib/ld.so.1 and disable shared libraries on 17323 # powerpc, because MkLinux only supported shared libraries with the 17324 # GNU dynamic linker. Since this was broken with cross compilers, 17325 # most powerpc-linux boxes support dynamic linking these days and 17326 # people can always --disable-shared, the test was removed, and we 17327 # assume the GNU/Linux dynamic linker is in use. 17328 dynamic_linker='GNU/Linux ld.so' 17329 ;; 17330 17331netbsdelf*-gnu) 17332 version_type=linux 17333 need_lib_prefix=no 17334 need_version=no 17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17336 soname_spec='${libname}${release}${shared_ext}$major' 17337 shlibpath_var=LD_LIBRARY_PATH 17338 shlibpath_overrides_runpath=no 17339 hardcode_into_libs=yes 17340 dynamic_linker='NetBSD ld.elf_so' 17341 ;; 17342 17343netbsd*) 17344 version_type=sunos 17345 need_lib_prefix=no 17346 need_version=no 17347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17350 dynamic_linker='NetBSD (a.out) ld.so' 17351 else 17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17353 soname_spec='${libname}${release}${shared_ext}$major' 17354 dynamic_linker='NetBSD ld.elf_so' 17355 fi 17356 shlibpath_var=LD_LIBRARY_PATH 17357 shlibpath_overrides_runpath=yes 17358 hardcode_into_libs=yes 17359 ;; 17360 17361newsos6) 17362 version_type=linux 17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17364 shlibpath_var=LD_LIBRARY_PATH 17365 shlibpath_overrides_runpath=yes 17366 ;; 17367 17368nto-qnx*) 17369 version_type=linux 17370 need_lib_prefix=no 17371 need_version=no 17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17373 soname_spec='${libname}${release}${shared_ext}$major' 17374 shlibpath_var=LD_LIBRARY_PATH 17375 shlibpath_overrides_runpath=yes 17376 ;; 17377 17378openbsd*) 17379 version_type=sunos 17380 sys_lib_dlsearch_path_spec="/usr/lib" 17381 need_lib_prefix=no 17382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17383 case $host_os in 17384 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17385 *) need_version=no ;; 17386 esac 17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17389 shlibpath_var=LD_LIBRARY_PATH 17390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17391 case $host_os in 17392 openbsd2.[89] | openbsd2.[89].*) 17393 shlibpath_overrides_runpath=no 17394 ;; 17395 *) 17396 shlibpath_overrides_runpath=yes 17397 ;; 17398 esac 17399 else 17400 shlibpath_overrides_runpath=yes 17401 fi 17402 ;; 17403 17404os2*) 17405 libname_spec='$name' 17406 shrext_cmds=".dll" 17407 need_lib_prefix=no 17408 library_names_spec='$libname${shared_ext} $libname.a' 17409 dynamic_linker='OS/2 ld.exe' 17410 shlibpath_var=LIBPATH 17411 ;; 17412 17413osf3* | osf4* | osf5*) 17414 version_type=osf 17415 need_lib_prefix=no 17416 need_version=no 17417 soname_spec='${libname}${release}${shared_ext}$major' 17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17419 shlibpath_var=LD_LIBRARY_PATH 17420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17422 ;; 17423 17424rdos*) 17425 dynamic_linker=no 17426 ;; 17427 17428solaris*) 17429 version_type=linux 17430 need_lib_prefix=no 17431 need_version=no 17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17433 soname_spec='${libname}${release}${shared_ext}$major' 17434 shlibpath_var=LD_LIBRARY_PATH 17435 shlibpath_overrides_runpath=yes 17436 hardcode_into_libs=yes 17437 # ldd complains unless libraries are executable 17438 postinstall_cmds='chmod +x $lib' 17439 ;; 17440 17441sunos4*) 17442 version_type=sunos 17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17445 shlibpath_var=LD_LIBRARY_PATH 17446 shlibpath_overrides_runpath=yes 17447 if test "$with_gnu_ld" = yes; then 17448 need_lib_prefix=no 17449 fi 17450 need_version=yes 17451 ;; 17452 17453sysv4 | sysv4.3*) 17454 version_type=linux 17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17456 soname_spec='${libname}${release}${shared_ext}$major' 17457 shlibpath_var=LD_LIBRARY_PATH 17458 case $host_vendor in 17459 sni) 17460 shlibpath_overrides_runpath=no 17461 need_lib_prefix=no 17462 export_dynamic_flag_spec='${wl}-Blargedynsym' 17463 runpath_var=LD_RUN_PATH 17464 ;; 17465 siemens) 17466 need_lib_prefix=no 17467 ;; 17468 motorola) 17469 need_lib_prefix=no 17470 need_version=no 17471 shlibpath_overrides_runpath=no 17472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17473 ;; 17474 esac 17475 ;; 17476 17477sysv4*MP*) 17478 if test -d /usr/nec ;then 17479 version_type=linux 17480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17481 soname_spec='$libname${shared_ext}.$major' 17482 shlibpath_var=LD_LIBRARY_PATH 17483 fi 17484 ;; 17485 17486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17487 version_type=freebsd-elf 17488 need_lib_prefix=no 17489 need_version=no 17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17491 soname_spec='${libname}${release}${shared_ext}$major' 17492 shlibpath_var=LD_LIBRARY_PATH 17493 hardcode_into_libs=yes 17494 if test "$with_gnu_ld" = yes; then 17495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17496 shlibpath_overrides_runpath=no 17497 else 17498 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17499 shlibpath_overrides_runpath=yes 17500 case $host_os in 17501 sco3.2v5*) 17502 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17503 ;; 17504 esac 17505 fi 17506 sys_lib_dlsearch_path_spec='/usr/lib' 17507 ;; 17508 17509uts4*) 17510 version_type=linux 17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17512 soname_spec='${libname}${release}${shared_ext}$major' 17513 shlibpath_var=LD_LIBRARY_PATH 17514 ;; 17515 17516*) 17517 dynamic_linker=no 17518 ;; 17519esac 17520{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17521echo "${ECHO_T}$dynamic_linker" >&6; } 17522test "$dynamic_linker" = no && can_build_shared=no 17523 17524variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17525if test "$GCC" = yes; then 17526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17527fi 17528 17529{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17530echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17531hardcode_action_F77= 17532if test -n "$hardcode_libdir_flag_spec_F77" || \ 17533 test -n "$runpath_var_F77" || \ 17534 test "X$hardcode_automatic_F77" = "Xyes" ; then 17535 17536 # We can hardcode non-existant directories. 17537 if test "$hardcode_direct_F77" != no && 17538 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17539 # have to relink, otherwise we might link with an installed library 17540 # when we should be linking with a yet-to-be-installed one 17541 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17542 test "$hardcode_minus_L_F77" != no; then 17543 # Linking always hardcodes the temporary library directory. 17544 hardcode_action_F77=relink 17545 else 17546 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17547 hardcode_action_F77=immediate 17548 fi 17549else 17550 # We cannot hardcode anything, or else we can only hardcode existing 17551 # directories. 17552 hardcode_action_F77=unsupported 17553fi 17554{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17555echo "${ECHO_T}$hardcode_action_F77" >&6; } 17556 17557if test "$hardcode_action_F77" = relink; then 17558 # Fast installation is not supported 17559 enable_fast_install=no 17560elif test "$shlibpath_overrides_runpath" = yes || 17561 test "$enable_shared" = no; then 17562 # Fast installation is not necessary 17563 enable_fast_install=needless 17564fi 17565 17566 17567# The else clause should only fire when bootstrapping the 17568# libtool distribution, otherwise you forgot to ship ltmain.sh 17569# with your package, and you will get complaints that there are 17570# no rules to generate ltmain.sh. 17571if test -f "$ltmain"; then 17572 # See if we are running on zsh, and set the options which allow our commands through 17573 # without removal of \ escapes. 17574 if test -n "${ZSH_VERSION+set}" ; then 17575 setopt NO_GLOB_SUBST 17576 fi 17577 # Now quote all the things that may contain metacharacters while being 17578 # careful not to overquote the AC_SUBSTed values. We take copies of the 17579 # variables and quote the copies for generation of the libtool script. 17580 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17581 SED SHELL STRIP \ 17582 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17583 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17584 deplibs_check_method reload_flag reload_cmds need_locks \ 17585 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17586 lt_cv_sys_global_symbol_to_c_name_address \ 17587 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17588 old_postinstall_cmds old_postuninstall_cmds \ 17589 compiler_F77 \ 17590 CC_F77 \ 17591 LD_F77 \ 17592 lt_prog_compiler_wl_F77 \ 17593 lt_prog_compiler_pic_F77 \ 17594 lt_prog_compiler_static_F77 \ 17595 lt_prog_compiler_no_builtin_flag_F77 \ 17596 export_dynamic_flag_spec_F77 \ 17597 thread_safe_flag_spec_F77 \ 17598 whole_archive_flag_spec_F77 \ 17599 enable_shared_with_static_runtimes_F77 \ 17600 old_archive_cmds_F77 \ 17601 old_archive_from_new_cmds_F77 \ 17602 predep_objects_F77 \ 17603 postdep_objects_F77 \ 17604 predeps_F77 \ 17605 postdeps_F77 \ 17606 compiler_lib_search_path_F77 \ 17607 archive_cmds_F77 \ 17608 archive_expsym_cmds_F77 \ 17609 postinstall_cmds_F77 \ 17610 postuninstall_cmds_F77 \ 17611 old_archive_from_expsyms_cmds_F77 \ 17612 allow_undefined_flag_F77 \ 17613 no_undefined_flag_F77 \ 17614 export_symbols_cmds_F77 \ 17615 hardcode_libdir_flag_spec_F77 \ 17616 hardcode_libdir_flag_spec_ld_F77 \ 17617 hardcode_libdir_separator_F77 \ 17618 hardcode_automatic_F77 \ 17619 module_cmds_F77 \ 17620 module_expsym_cmds_F77 \ 17621 lt_cv_prog_compiler_c_o_F77 \ 17622 fix_srcfile_path_F77 \ 17623 exclude_expsyms_F77 \ 17624 include_expsyms_F77; do 17625 17626 case $var in 17627 old_archive_cmds_F77 | \ 17628 old_archive_from_new_cmds_F77 | \ 17629 archive_cmds_F77 | \ 17630 archive_expsym_cmds_F77 | \ 17631 module_cmds_F77 | \ 17632 module_expsym_cmds_F77 | \ 17633 old_archive_from_expsyms_cmds_F77 | \ 17634 export_symbols_cmds_F77 | \ 17635 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17636 postinstall_cmds | postuninstall_cmds | \ 17637 old_postinstall_cmds | old_postuninstall_cmds | \ 17638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17639 # Double-quote double-evaled strings. 17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17641 ;; 17642 *) 17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17644 ;; 17645 esac 17646 done 17647 17648 case $lt_echo in 17649 *'\$0 --fallback-echo"') 17650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17651 ;; 17652 esac 17653 17654cfgfile="$ofile" 17655 17656 cat <<__EOF__ >> "$cfgfile" 17657# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17658 17659# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17660 17661# Shell to use when invoking shell scripts. 17662SHELL=$lt_SHELL 17663 17664# Whether or not to build shared libraries. 17665build_libtool_libs=$enable_shared 17666 17667# Whether or not to build static libraries. 17668build_old_libs=$enable_static 17669 17670# Whether or not to add -lc for building shared libraries. 17671build_libtool_need_lc=$archive_cmds_need_lc_F77 17672 17673# Whether or not to disallow shared libs when runtime libs are static 17674allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17675 17676# Whether or not to optimize for fast installation. 17677fast_install=$enable_fast_install 17678 17679# The host system. 17680host_alias=$host_alias 17681host=$host 17682host_os=$host_os 17683 17684# The build system. 17685build_alias=$build_alias 17686build=$build 17687build_os=$build_os 17688 17689# An echo program that does not interpret backslashes. 17690echo=$lt_echo 17691 17692# The archiver. 17693AR=$lt_AR 17694AR_FLAGS=$lt_AR_FLAGS 17695 17696# A C compiler. 17697LTCC=$lt_LTCC 17698 17699# LTCC compiler flags. 17700LTCFLAGS=$lt_LTCFLAGS 17701 17702# A language-specific compiler. 17703CC=$lt_compiler_F77 17704 17705# Is the compiler the GNU C compiler? 17706with_gcc=$GCC_F77 17707 17708# An ERE matcher. 17709EGREP=$lt_EGREP 17710 17711# The linker used to build libraries. 17712LD=$lt_LD_F77 17713 17714# Whether we need hard or soft links. 17715LN_S=$lt_LN_S 17716 17717# A BSD-compatible nm program. 17718NM=$lt_NM 17719 17720# A symbol stripping program 17721STRIP=$lt_STRIP 17722 17723# Used to examine libraries when file_magic_cmd begins "file" 17724MAGIC_CMD=$MAGIC_CMD 17725 17726# Used on cygwin: DLL creation program. 17727DLLTOOL="$DLLTOOL" 17728 17729# Used on cygwin: object dumper. 17730OBJDUMP="$OBJDUMP" 17731 17732# Used on cygwin: assembler. 17733AS="$AS" 17734 17735# The name of the directory that contains temporary libtool files. 17736objdir=$objdir 17737 17738# How to create reloadable object files. 17739reload_flag=$lt_reload_flag 17740reload_cmds=$lt_reload_cmds 17741 17742# How to pass a linker flag through the compiler. 17743wl=$lt_lt_prog_compiler_wl_F77 17744 17745# Object file suffix (normally "o"). 17746objext="$ac_objext" 17747 17748# Old archive suffix (normally "a"). 17749libext="$libext" 17750 17751# Shared library suffix (normally ".so"). 17752shrext_cmds='$shrext_cmds' 17753 17754# Executable file suffix (normally ""). 17755exeext="$exeext" 17756 17757# Additional compiler flags for building library objects. 17758pic_flag=$lt_lt_prog_compiler_pic_F77 17759pic_mode=$pic_mode 17760 17761# What is the maximum length of a command? 17762max_cmd_len=$lt_cv_sys_max_cmd_len 17763 17764# Does compiler simultaneously support -c and -o options? 17765compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17766 17767# Must we lock files when doing compilation? 17768need_locks=$lt_need_locks 17769 17770# Do we need the lib prefix for modules? 17771need_lib_prefix=$need_lib_prefix 17772 17773# Do we need a version for libraries? 17774need_version=$need_version 17775 17776# Whether dlopen is supported. 17777dlopen_support=$enable_dlopen 17778 17779# Whether dlopen of programs is supported. 17780dlopen_self=$enable_dlopen_self 17781 17782# Whether dlopen of statically linked programs is supported. 17783dlopen_self_static=$enable_dlopen_self_static 17784 17785# Compiler flag to prevent dynamic linking. 17786link_static_flag=$lt_lt_prog_compiler_static_F77 17787 17788# Compiler flag to turn off builtin functions. 17789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17790 17791# Compiler flag to allow reflexive dlopens. 17792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17793 17794# Compiler flag to generate shared objects directly from archives. 17795whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17796 17797# Compiler flag to generate thread-safe objects. 17798thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17799 17800# Library versioning type. 17801version_type=$version_type 17802 17803# Format of library name prefix. 17804libname_spec=$lt_libname_spec 17805 17806# List of archive names. First name is the real one, the rest are links. 17807# The last name is the one that the linker finds with -lNAME. 17808library_names_spec=$lt_library_names_spec 17809 17810# The coded name of the library, if different from the real name. 17811soname_spec=$lt_soname_spec 17812 17813# Commands used to build and install an old-style archive. 17814RANLIB=$lt_RANLIB 17815old_archive_cmds=$lt_old_archive_cmds_F77 17816old_postinstall_cmds=$lt_old_postinstall_cmds 17817old_postuninstall_cmds=$lt_old_postuninstall_cmds 17818 17819# Create an old-style archive from a shared archive. 17820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17821 17822# Create a temporary old-style archive to link instead of a shared archive. 17823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17824 17825# Commands used to build and install a shared archive. 17826archive_cmds=$lt_archive_cmds_F77 17827archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17828postinstall_cmds=$lt_postinstall_cmds 17829postuninstall_cmds=$lt_postuninstall_cmds 17830 17831# Commands used to build a loadable module (assumed same as above if empty) 17832module_cmds=$lt_module_cmds_F77 17833module_expsym_cmds=$lt_module_expsym_cmds_F77 17834 17835# Commands to strip libraries. 17836old_striplib=$lt_old_striplib 17837striplib=$lt_striplib 17838 17839# Dependencies to place before the objects being linked to create a 17840# shared library. 17841predep_objects=$lt_predep_objects_F77 17842 17843# Dependencies to place after the objects being linked to create a 17844# shared library. 17845postdep_objects=$lt_postdep_objects_F77 17846 17847# Dependencies to place before the objects being linked to create a 17848# shared library. 17849predeps=$lt_predeps_F77 17850 17851# Dependencies to place after the objects being linked to create a 17852# shared library. 17853postdeps=$lt_postdeps_F77 17854 17855# The library search path used internally by the compiler when linking 17856# a shared library. 17857compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17858 17859# Method to check whether dependent libraries are shared objects. 17860deplibs_check_method=$lt_deplibs_check_method 17861 17862# Command to use when deplibs_check_method == file_magic. 17863file_magic_cmd=$lt_file_magic_cmd 17864 17865# Flag that allows shared libraries with undefined symbols to be built. 17866allow_undefined_flag=$lt_allow_undefined_flag_F77 17867 17868# Flag that forces no undefined symbols. 17869no_undefined_flag=$lt_no_undefined_flag_F77 17870 17871# Commands used to finish a libtool library installation in a directory. 17872finish_cmds=$lt_finish_cmds 17873 17874# Same as above, but a single script fragment to be evaled but not shown. 17875finish_eval=$lt_finish_eval 17876 17877# Take the output of nm and produce a listing of raw symbols and C names. 17878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17879 17880# Transform the output of nm in a proper C declaration 17881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17882 17883# Transform the output of nm in a C name address pair 17884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17885 17886# This is the shared library runtime path variable. 17887runpath_var=$runpath_var 17888 17889# This is the shared library path variable. 17890shlibpath_var=$shlibpath_var 17891 17892# Is shlibpath searched before the hard-coded library search path? 17893shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17894 17895# How to hardcode a shared library path into an executable. 17896hardcode_action=$hardcode_action_F77 17897 17898# Whether we should hardcode library paths into libraries. 17899hardcode_into_libs=$hardcode_into_libs 17900 17901# Flag to hardcode \$libdir into a binary during linking. 17902# This must work even if \$libdir does not exist. 17903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17904 17905# If ld is used when linking, flag to hardcode \$libdir into 17906# a binary during linking. This must work even if \$libdir does 17907# not exist. 17908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17909 17910# Whether we need a single -rpath flag with a separated argument. 17911hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17912 17913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17914# resulting binary. 17915hardcode_direct=$hardcode_direct_F77 17916 17917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17918# resulting binary. 17919hardcode_minus_L=$hardcode_minus_L_F77 17920 17921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17922# the resulting binary. 17923hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17924 17925# Set to yes if building a shared library automatically hardcodes DIR into the library 17926# and all subsequent libraries and executables linked against it. 17927hardcode_automatic=$hardcode_automatic_F77 17928 17929# Variables whose values should be saved in libtool wrapper scripts and 17930# restored at relink time. 17931variables_saved_for_relink="$variables_saved_for_relink" 17932 17933# Whether libtool must link a program against all its dependency libraries. 17934link_all_deplibs=$link_all_deplibs_F77 17935 17936# Compile-time system search path for libraries 17937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17938 17939# Run-time system search path for libraries 17940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17941 17942# Fix the shell variable \$srcfile for the compiler. 17943fix_srcfile_path=$lt_fix_srcfile_path 17944 17945# Set to yes if exported symbols are required. 17946always_export_symbols=$always_export_symbols_F77 17947 17948# The commands to list exported symbols. 17949export_symbols_cmds=$lt_export_symbols_cmds_F77 17950 17951# The commands to extract the exported symbol list from a shared archive. 17952extract_expsyms_cmds=$lt_extract_expsyms_cmds 17953 17954# Symbols that should not be listed in the preloaded symbols. 17955exclude_expsyms=$lt_exclude_expsyms_F77 17956 17957# Symbols that must always be exported. 17958include_expsyms=$lt_include_expsyms_F77 17959 17960# ### END LIBTOOL TAG CONFIG: $tagname 17961 17962__EOF__ 17963 17964 17965else 17966 # If there is no Makefile yet, we rely on a make rule to execute 17967 # `config.status --recheck' to rerun these tests and create the 17968 # libtool script then. 17969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17970 if test -f "$ltmain_in"; then 17971 test -f Makefile && make "$ltmain" 17972 fi 17973fi 17974 17975 17976ac_ext=c 17977ac_cpp='$CPP $CPPFLAGS' 17978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17980ac_compiler_gnu=$ac_cv_c_compiler_gnu 17981 17982CC="$lt_save_CC" 17983 17984 else 17985 tagname="" 17986 fi 17987 ;; 17988 17989 GCJ) 17990 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17991 17992 17993# Source file extension for Java test sources. 17994ac_ext=java 17995 17996# Object file extension for compiled Java test sources. 17997objext=o 17998objext_GCJ=$objext 17999 18000# Code to be used in simple compile tests 18001lt_simple_compile_test_code="class foo {}" 18002 18003# Code to be used in simple link tests 18004lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 18005 18006# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18007 18008# If no C compiler was specified, use CC. 18009LTCC=${LTCC-"$CC"} 18010 18011# If no C compiler flags were specified, use CFLAGS. 18012LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18013 18014# Allow CC to be a program name with arguments. 18015compiler=$CC 18016 18017 18018# save warnings/boilerplate of simple test code 18019ac_outfile=conftest.$ac_objext 18020echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18022_lt_compiler_boilerplate=`cat conftest.err` 18023$rm conftest* 18024 18025ac_outfile=conftest.$ac_objext 18026echo "$lt_simple_link_test_code" >conftest.$ac_ext 18027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18028_lt_linker_boilerplate=`cat conftest.err` 18029$rm conftest* 18030 18031 18032# Allow CC to be a program name with arguments. 18033lt_save_CC="$CC" 18034CC=${GCJ-"gcj"} 18035compiler=$CC 18036compiler_GCJ=$CC 18037for cc_temp in $compiler""; do 18038 case $cc_temp in 18039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18041 \-*) ;; 18042 *) break;; 18043 esac 18044done 18045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18046 18047 18048# GCJ did not exist at the time GCC didn't implicitly link libc in. 18049archive_cmds_need_lc_GCJ=no 18050 18051old_archive_cmds_GCJ=$old_archive_cmds 18052 18053 18054lt_prog_compiler_no_builtin_flag_GCJ= 18055 18056if test "$GCC" = yes; then 18057 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 18058 18059 18060{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18061echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 18062if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 18063 echo $ECHO_N "(cached) $ECHO_C" >&6 18064else 18065 lt_cv_prog_compiler_rtti_exceptions=no 18066 ac_outfile=conftest.$ac_objext 18067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18068 lt_compiler_flag="-fno-rtti -fno-exceptions" 18069 # Insert the option either (1) after the last *FLAGS variable, or 18070 # (2) before a word containing "conftest.", or (3) at the end. 18071 # Note that $ac_compile itself does not contain backslashes and begins 18072 # with a dollar sign (not a hyphen), so the echo should work correctly. 18073 # The option is referenced via a variable to avoid confusing sed. 18074 lt_compile=`echo "$ac_compile" | $SED \ 18075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18077 -e 's:$: $lt_compiler_flag:'` 18078 (eval echo "\"\$as_me:18078: $lt_compile\"" >&5) 18079 (eval "$lt_compile" 2>conftest.err) 18080 ac_status=$? 18081 cat conftest.err >&5 18082 echo "$as_me:18082: \$? = $ac_status" >&5 18083 if (exit $ac_status) && test -s "$ac_outfile"; then 18084 # The compiler can only warn and ignore the option if not recognized 18085 # So say no if there are warnings other than the usual output. 18086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18089 lt_cv_prog_compiler_rtti_exceptions=yes 18090 fi 18091 fi 18092 $rm conftest* 18093 18094fi 18095{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18096echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18097 18098if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 18099 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 18100else 18101 : 18102fi 18103 18104fi 18105 18106lt_prog_compiler_wl_GCJ= 18107lt_prog_compiler_pic_GCJ= 18108lt_prog_compiler_static_GCJ= 18109 18110{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18111echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 18112 18113 if test "$GCC" = yes; then 18114 lt_prog_compiler_wl_GCJ='-Wl,' 18115 lt_prog_compiler_static_GCJ='-static' 18116 18117 case $host_os in 18118 aix*) 18119 # All AIX code is PIC. 18120 if test "$host_cpu" = ia64; then 18121 # AIX 5 now supports IA64 processor 18122 lt_prog_compiler_static_GCJ='-Bstatic' 18123 fi 18124 ;; 18125 18126 amigaos*) 18127 # FIXME: we need at least 68020 code to build shared libraries, but 18128 # adding the `-m68020' flag to GCC prevents building anything better, 18129 # like `-m68040'. 18130 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18131 ;; 18132 18133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18134 # PIC is the default for these OSes. 18135 ;; 18136 18137 mingw* | cygwin* | pw32* | os2*) 18138 # This hack is so that the source file can tell whether it is being 18139 # built for inclusion in a dll (and should export symbols for example). 18140 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18141 # (--disable-auto-import) libraries 18142 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18143 ;; 18144 18145 darwin* | rhapsody*) 18146 # PIC is the default on this platform 18147 # Common symbols not allowed in MH_DYLIB files 18148 lt_prog_compiler_pic_GCJ='-fno-common' 18149 ;; 18150 18151 interix[3-9]*) 18152 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18153 # Instead, we relocate shared libraries at runtime. 18154 ;; 18155 18156 msdosdjgpp*) 18157 # Just because we use GCC doesn't mean we suddenly get shared libraries 18158 # on systems that don't support them. 18159 lt_prog_compiler_can_build_shared_GCJ=no 18160 enable_shared=no 18161 ;; 18162 18163 sysv4*MP*) 18164 if test -d /usr/nec; then 18165 lt_prog_compiler_pic_GCJ=-Kconform_pic 18166 fi 18167 ;; 18168 18169 hpux*) 18170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18171 # not for PA HP-UX. 18172 case $host_cpu in 18173 hppa*64*|ia64*) 18174 # +Z the default 18175 ;; 18176 *) 18177 lt_prog_compiler_pic_GCJ='-fPIC' 18178 ;; 18179 esac 18180 ;; 18181 18182 *) 18183 lt_prog_compiler_pic_GCJ='-fPIC' 18184 ;; 18185 esac 18186 else 18187 # PORTME Check for flag to pass linker flags through the system compiler. 18188 case $host_os in 18189 aix*) 18190 lt_prog_compiler_wl_GCJ='-Wl,' 18191 if test "$host_cpu" = ia64; then 18192 # AIX 5 now supports IA64 processor 18193 lt_prog_compiler_static_GCJ='-Bstatic' 18194 else 18195 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18196 fi 18197 ;; 18198 darwin*) 18199 # PIC is the default on this platform 18200 # Common symbols not allowed in MH_DYLIB files 18201 case $cc_basename in 18202 xlc*) 18203 lt_prog_compiler_pic_GCJ='-qnocommon' 18204 lt_prog_compiler_wl_GCJ='-Wl,' 18205 ;; 18206 esac 18207 ;; 18208 18209 mingw* | cygwin* | pw32* | os2*) 18210 # This hack is so that the source file can tell whether it is being 18211 # built for inclusion in a dll (and should export symbols for example). 18212 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18213 ;; 18214 18215 hpux9* | hpux10* | hpux11*) 18216 lt_prog_compiler_wl_GCJ='-Wl,' 18217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18218 # not for PA HP-UX. 18219 case $host_cpu in 18220 hppa*64*|ia64*) 18221 # +Z the default 18222 ;; 18223 *) 18224 lt_prog_compiler_pic_GCJ='+Z' 18225 ;; 18226 esac 18227 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18228 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18229 ;; 18230 18231 irix5* | irix6* | nonstopux*) 18232 lt_prog_compiler_wl_GCJ='-Wl,' 18233 # PIC (with -KPIC) is the default. 18234 lt_prog_compiler_static_GCJ='-non_shared' 18235 ;; 18236 18237 newsos6) 18238 lt_prog_compiler_pic_GCJ='-KPIC' 18239 lt_prog_compiler_static_GCJ='-Bstatic' 18240 ;; 18241 18242 linux* | k*bsd*-gnu) 18243 case $cc_basename in 18244 icc* | ecc*) 18245 lt_prog_compiler_wl_GCJ='-Wl,' 18246 lt_prog_compiler_pic_GCJ='-KPIC' 18247 lt_prog_compiler_static_GCJ='-static' 18248 ;; 18249 pgcc* | pgf77* | pgf90* | pgf95*) 18250 # Portland Group compilers (*not* the Pentium gcc compiler, 18251 # which looks to be a dead project) 18252 lt_prog_compiler_wl_GCJ='-Wl,' 18253 lt_prog_compiler_pic_GCJ='-fpic' 18254 lt_prog_compiler_static_GCJ='-Bstatic' 18255 ;; 18256 ccc*) 18257 lt_prog_compiler_wl_GCJ='-Wl,' 18258 # All Alpha code is PIC. 18259 lt_prog_compiler_static_GCJ='-non_shared' 18260 ;; 18261 *) 18262 case `$CC -V 2>&1 | sed 5q` in 18263 *Sun\ C*) 18264 # Sun C 5.9 18265 lt_prog_compiler_pic_GCJ='-KPIC' 18266 lt_prog_compiler_static_GCJ='-Bstatic' 18267 lt_prog_compiler_wl_GCJ='-Wl,' 18268 ;; 18269 *Sun\ F*) 18270 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18271 lt_prog_compiler_pic_GCJ='-KPIC' 18272 lt_prog_compiler_static_GCJ='-Bstatic' 18273 lt_prog_compiler_wl_GCJ='' 18274 ;; 18275 esac 18276 ;; 18277 esac 18278 ;; 18279 18280 osf3* | osf4* | osf5*) 18281 lt_prog_compiler_wl_GCJ='-Wl,' 18282 # All OSF/1 code is PIC. 18283 lt_prog_compiler_static_GCJ='-non_shared' 18284 ;; 18285 18286 rdos*) 18287 lt_prog_compiler_static_GCJ='-non_shared' 18288 ;; 18289 18290 solaris*) 18291 lt_prog_compiler_pic_GCJ='-KPIC' 18292 lt_prog_compiler_static_GCJ='-Bstatic' 18293 case $cc_basename in 18294 f77* | f90* | f95*) 18295 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18296 *) 18297 lt_prog_compiler_wl_GCJ='-Wl,';; 18298 esac 18299 ;; 18300 18301 sunos4*) 18302 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18303 lt_prog_compiler_pic_GCJ='-PIC' 18304 lt_prog_compiler_static_GCJ='-Bstatic' 18305 ;; 18306 18307 sysv4 | sysv4.2uw2* | sysv4.3*) 18308 lt_prog_compiler_wl_GCJ='-Wl,' 18309 lt_prog_compiler_pic_GCJ='-KPIC' 18310 lt_prog_compiler_static_GCJ='-Bstatic' 18311 ;; 18312 18313 sysv4*MP*) 18314 if test -d /usr/nec ;then 18315 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18316 lt_prog_compiler_static_GCJ='-Bstatic' 18317 fi 18318 ;; 18319 18320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18321 lt_prog_compiler_wl_GCJ='-Wl,' 18322 lt_prog_compiler_pic_GCJ='-KPIC' 18323 lt_prog_compiler_static_GCJ='-Bstatic' 18324 ;; 18325 18326 unicos*) 18327 lt_prog_compiler_wl_GCJ='-Wl,' 18328 lt_prog_compiler_can_build_shared_GCJ=no 18329 ;; 18330 18331 uts4*) 18332 lt_prog_compiler_pic_GCJ='-pic' 18333 lt_prog_compiler_static_GCJ='-Bstatic' 18334 ;; 18335 18336 *) 18337 lt_prog_compiler_can_build_shared_GCJ=no 18338 ;; 18339 esac 18340 fi 18341 18342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18343echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 18344 18345# 18346# Check to make sure the PIC flag actually works. 18347# 18348if test -n "$lt_prog_compiler_pic_GCJ"; then 18349 18350{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18351echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 18352if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18353 echo $ECHO_N "(cached) $ECHO_C" >&6 18354else 18355 lt_prog_compiler_pic_works_GCJ=no 18356 ac_outfile=conftest.$ac_objext 18357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18358 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18359 # Insert the option either (1) after the last *FLAGS variable, or 18360 # (2) before a word containing "conftest.", or (3) at the end. 18361 # Note that $ac_compile itself does not contain backslashes and begins 18362 # with a dollar sign (not a hyphen), so the echo should work correctly. 18363 # The option is referenced via a variable to avoid confusing sed. 18364 lt_compile=`echo "$ac_compile" | $SED \ 18365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18367 -e 's:$: $lt_compiler_flag:'` 18368 (eval echo "\"\$as_me:18368: $lt_compile\"" >&5) 18369 (eval "$lt_compile" 2>conftest.err) 18370 ac_status=$? 18371 cat conftest.err >&5 18372 echo "$as_me:18372: \$? = $ac_status" >&5 18373 if (exit $ac_status) && test -s "$ac_outfile"; then 18374 # The compiler can only warn and ignore the option if not recognized 18375 # So say no if there are warnings other than the usual output. 18376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18379 lt_prog_compiler_pic_works_GCJ=yes 18380 fi 18381 fi 18382 $rm conftest* 18383 18384fi 18385{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18386echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 18387 18388if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18389 case $lt_prog_compiler_pic_GCJ in 18390 "" | " "*) ;; 18391 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18392 esac 18393else 18394 lt_prog_compiler_pic_GCJ= 18395 lt_prog_compiler_can_build_shared_GCJ=no 18396fi 18397 18398fi 18399case $host_os in 18400 # For platforms which do not support PIC, -DPIC is meaningless: 18401 *djgpp*) 18402 lt_prog_compiler_pic_GCJ= 18403 ;; 18404 *) 18405 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18406 ;; 18407esac 18408 18409# 18410# Check to make sure the static flag actually works. 18411# 18412wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18413{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18414echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 18415if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 18416 echo $ECHO_N "(cached) $ECHO_C" >&6 18417else 18418 lt_prog_compiler_static_works_GCJ=no 18419 save_LDFLAGS="$LDFLAGS" 18420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18421 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18423 # The linker can only warn and ignore the option if not recognized 18424 # So say no if there are warnings 18425 if test -s conftest.err; then 18426 # Append any errors to the config.log. 18427 cat conftest.err 1>&5 18428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18430 if diff conftest.exp conftest.er2 >/dev/null; then 18431 lt_prog_compiler_static_works_GCJ=yes 18432 fi 18433 else 18434 lt_prog_compiler_static_works_GCJ=yes 18435 fi 18436 fi 18437 $rm conftest* 18438 LDFLAGS="$save_LDFLAGS" 18439 18440fi 18441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 18442echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 18443 18444if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 18445 : 18446else 18447 lt_prog_compiler_static_GCJ= 18448fi 18449 18450 18451{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 18453if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18454 echo $ECHO_N "(cached) $ECHO_C" >&6 18455else 18456 lt_cv_prog_compiler_c_o_GCJ=no 18457 $rm -r conftest 2>/dev/null 18458 mkdir conftest 18459 cd conftest 18460 mkdir out 18461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18462 18463 lt_compiler_flag="-o out/conftest2.$ac_objext" 18464 # Insert the option either (1) after the last *FLAGS variable, or 18465 # (2) before a word containing "conftest.", or (3) at the end. 18466 # Note that $ac_compile itself does not contain backslashes and begins 18467 # with a dollar sign (not a hyphen), so the echo should work correctly. 18468 lt_compile=`echo "$ac_compile" | $SED \ 18469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18471 -e 's:$: $lt_compiler_flag:'` 18472 (eval echo "\"\$as_me:18472: $lt_compile\"" >&5) 18473 (eval "$lt_compile" 2>out/conftest.err) 18474 ac_status=$? 18475 cat out/conftest.err >&5 18476 echo "$as_me:18476: \$? = $ac_status" >&5 18477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18478 then 18479 # The compiler can only warn and ignore the option if not recognized 18480 # So say no if there are warnings 18481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18484 lt_cv_prog_compiler_c_o_GCJ=yes 18485 fi 18486 fi 18487 chmod u+w . 2>&5 18488 $rm conftest* 18489 # SGI C++ compiler will create directory out/ii_files/ for 18490 # template instantiation 18491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18492 $rm out/* && rmdir out 18493 cd .. 18494 rmdir conftest 18495 $rm conftest* 18496 18497fi 18498{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18499echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 18500 18501 18502hard_links="nottested" 18503if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18504 # do not overwrite the value of need_locks provided by the user 18505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18506echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 18507 hard_links=yes 18508 $rm conftest* 18509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18510 touch conftest.a 18511 ln conftest.a conftest.b 2>&5 || hard_links=no 18512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18513 { echo "$as_me:$LINENO: result: $hard_links" >&5 18514echo "${ECHO_T}$hard_links" >&6; } 18515 if test "$hard_links" = no; then 18516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18517echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18518 need_locks=warn 18519 fi 18520else 18521 need_locks=no 18522fi 18523 18524{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18525echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18526 18527 runpath_var= 18528 allow_undefined_flag_GCJ= 18529 enable_shared_with_static_runtimes_GCJ=no 18530 archive_cmds_GCJ= 18531 archive_expsym_cmds_GCJ= 18532 old_archive_From_new_cmds_GCJ= 18533 old_archive_from_expsyms_cmds_GCJ= 18534 export_dynamic_flag_spec_GCJ= 18535 whole_archive_flag_spec_GCJ= 18536 thread_safe_flag_spec_GCJ= 18537 hardcode_libdir_flag_spec_GCJ= 18538 hardcode_libdir_flag_spec_ld_GCJ= 18539 hardcode_libdir_separator_GCJ= 18540 hardcode_direct_GCJ=no 18541 hardcode_minus_L_GCJ=no 18542 hardcode_shlibpath_var_GCJ=unsupported 18543 link_all_deplibs_GCJ=unknown 18544 hardcode_automatic_GCJ=no 18545 module_cmds_GCJ= 18546 module_expsym_cmds_GCJ= 18547 always_export_symbols_GCJ=no 18548 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18549 # include_expsyms should be a list of space-separated symbols to be *always* 18550 # included in the symbol list 18551 include_expsyms_GCJ= 18552 # exclude_expsyms can be an extended regexp of symbols to exclude 18553 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18555 # as well as any symbol that contains `d'. 18556 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18558 # platforms (ab)use it in PIC code, but their linkers get confused if 18559 # the symbol is explicitly referenced. Since portable code cannot 18560 # rely on this symbol name, it's probably fine to never include it in 18561 # preloaded symbol tables. 18562 extract_expsyms_cmds= 18563 # Just being paranoid about ensuring that cc_basename is set. 18564 for cc_temp in $compiler""; do 18565 case $cc_temp in 18566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18568 \-*) ;; 18569 *) break;; 18570 esac 18571done 18572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18573 18574 case $host_os in 18575 cygwin* | mingw* | pw32*) 18576 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18577 # When not using gcc, we currently assume that we are using 18578 # Microsoft Visual C++. 18579 if test "$GCC" != yes; then 18580 with_gnu_ld=no 18581 fi 18582 ;; 18583 interix*) 18584 # we just hope/assume this is gcc and not c89 (= MSVC++) 18585 with_gnu_ld=yes 18586 ;; 18587 openbsd*) 18588 with_gnu_ld=no 18589 ;; 18590 esac 18591 18592 ld_shlibs_GCJ=yes 18593 if test "$with_gnu_ld" = yes; then 18594 # If archive_cmds runs LD, not CC, wlarc should be empty 18595 wlarc='${wl}' 18596 18597 # Set some defaults for GNU ld with shared library support. These 18598 # are reset later if shared libraries are not supported. Putting them 18599 # here allows them to be overridden if necessary. 18600 runpath_var=LD_RUN_PATH 18601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18603 # ancient GNU ld didn't support --whole-archive et. al. 18604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18606 else 18607 whole_archive_flag_spec_GCJ= 18608 fi 18609 supports_anon_versioning=no 18610 case `$LD -v 2>/dev/null` in 18611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18614 *\ 2.11.*) ;; # other 2.11 versions 18615 *) supports_anon_versioning=yes ;; 18616 esac 18617 18618 # See if GNU ld supports shared libraries. 18619 case $host_os in 18620 aix3* | aix4* | aix5*) 18621 # On AIX/PPC, the GNU linker is very broken 18622 if test "$host_cpu" != ia64; then 18623 ld_shlibs_GCJ=no 18624 cat <<EOF 1>&2 18625 18626*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18627*** to be unable to reliably create shared libraries on AIX. 18628*** Therefore, libtool is disabling shared libraries support. If you 18629*** really care for shared libraries, you may want to modify your PATH 18630*** so that a non-GNU linker is found, and then restart. 18631 18632EOF 18633 fi 18634 ;; 18635 18636 amigaos*) 18637 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)' 18638 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18639 hardcode_minus_L_GCJ=yes 18640 18641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18642 # that the semantics of dynamic libraries on AmigaOS, at least up 18643 # to version 4, is to share data among multiple programs linked 18644 # with the same dynamic library. Since this doesn't match the 18645 # behavior of shared libraries on other platforms, we can't use 18646 # them. 18647 ld_shlibs_GCJ=no 18648 ;; 18649 18650 beos*) 18651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18652 allow_undefined_flag_GCJ=unsupported 18653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18654 # support --undefined. This deserves some investigation. FIXME 18655 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18656 else 18657 ld_shlibs_GCJ=no 18658 fi 18659 ;; 18660 18661 cygwin* | mingw* | pw32*) 18662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18663 # as there is no search path for DLLs. 18664 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18665 allow_undefined_flag_GCJ=unsupported 18666 always_export_symbols_GCJ=no 18667 enable_shared_with_static_runtimes_GCJ=yes 18668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18669 18670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18672 # If the export-symbols file already is a .def file (1st line 18673 # is EXPORTS), use it as is; otherwise, prepend... 18674 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18675 cp $export_symbols $output_objdir/$soname.def; 18676 else 18677 echo EXPORTS > $output_objdir/$soname.def; 18678 cat $export_symbols >> $output_objdir/$soname.def; 18679 fi~ 18680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18681 else 18682 ld_shlibs_GCJ=no 18683 fi 18684 ;; 18685 18686 interix[3-9]*) 18687 hardcode_direct_GCJ=no 18688 hardcode_shlibpath_var_GCJ=no 18689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18690 export_dynamic_flag_spec_GCJ='${wl}-E' 18691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18692 # Instead, shared libraries are loaded at an image base (0x10000000 by 18693 # default) and relocated if they conflict, which is a slow very memory 18694 # consuming and fragmenting process. To avoid this, we pick a random, 18695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18696 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18697 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' 18698 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' 18699 ;; 18700 18701 gnu* | linux* | k*bsd*-gnu) 18702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18703 tmp_addflag= 18704 case $cc_basename,$host_cpu in 18705 pgcc*) # Portland Group C compiler 18706 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' 18707 tmp_addflag=' $pic_flag' 18708 ;; 18709 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18710 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' 18711 tmp_addflag=' $pic_flag -Mnomain' ;; 18712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18713 tmp_addflag=' -i_dynamic' ;; 18714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18715 tmp_addflag=' -i_dynamic -nofor_main' ;; 18716 ifc* | ifort*) # Intel Fortran compiler 18717 tmp_addflag=' -nofor_main' ;; 18718 esac 18719 case `$CC -V 2>&1 | sed 5q` in 18720 *Sun\ C*) # Sun C 5.9 18721 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18722 tmp_sharedflag='-G' ;; 18723 *Sun\ F*) # Sun Fortran 8.3 18724 tmp_sharedflag='-G' ;; 18725 *) 18726 tmp_sharedflag='-shared' ;; 18727 esac 18728 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18729 18730 if test $supports_anon_versioning = yes; then 18731 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18733 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18734 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18735 fi 18736 link_all_deplibs_GCJ=no 18737 else 18738 ld_shlibs_GCJ=no 18739 fi 18740 ;; 18741 18742 netbsd* | netbsdelf*-gnu) 18743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18744 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18745 wlarc= 18746 else 18747 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18748 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18749 fi 18750 ;; 18751 18752 solaris*) 18753 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18754 ld_shlibs_GCJ=no 18755 cat <<EOF 1>&2 18756 18757*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18758*** create shared libraries on Solaris systems. Therefore, libtool 18759*** is disabling shared libraries support. We urge you to upgrade GNU 18760*** binutils to release 2.9.1 or newer. Another option is to modify 18761*** your PATH or compiler configuration so that the native linker is 18762*** used, and then restart. 18763 18764EOF 18765 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18767 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18768 else 18769 ld_shlibs_GCJ=no 18770 fi 18771 ;; 18772 18773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18774 case `$LD -v 2>&1` in 18775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18776 ld_shlibs_GCJ=no 18777 cat <<_LT_EOF 1>&2 18778 18779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18780*** reliably create shared libraries on SCO systems. Therefore, libtool 18781*** is disabling shared libraries support. We urge you to upgrade GNU 18782*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18783*** your PATH or compiler configuration so that the native linker is 18784*** used, and then restart. 18785 18786_LT_EOF 18787 ;; 18788 *) 18789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18790 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18791 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18792 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18793 else 18794 ld_shlibs_GCJ=no 18795 fi 18796 ;; 18797 esac 18798 ;; 18799 18800 sunos4*) 18801 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18802 wlarc= 18803 hardcode_direct_GCJ=yes 18804 hardcode_shlibpath_var_GCJ=no 18805 ;; 18806 18807 *) 18808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18809 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18810 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18811 else 18812 ld_shlibs_GCJ=no 18813 fi 18814 ;; 18815 esac 18816 18817 if test "$ld_shlibs_GCJ" = no; then 18818 runpath_var= 18819 hardcode_libdir_flag_spec_GCJ= 18820 export_dynamic_flag_spec_GCJ= 18821 whole_archive_flag_spec_GCJ= 18822 fi 18823 else 18824 # PORTME fill in a description of your system's linker (not GNU ld) 18825 case $host_os in 18826 aix3*) 18827 allow_undefined_flag_GCJ=unsupported 18828 always_export_symbols_GCJ=yes 18829 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' 18830 # Note: this linker hardcodes the directories in LIBPATH if there 18831 # are no directories specified by -L. 18832 hardcode_minus_L_GCJ=yes 18833 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18834 # Neither direct hardcoding nor static linking is supported with a 18835 # broken collect2. 18836 hardcode_direct_GCJ=unsupported 18837 fi 18838 ;; 18839 18840 aix4* | aix5*) 18841 if test "$host_cpu" = ia64; then 18842 # On IA64, the linker does run time linking by default, so we don't 18843 # have to do anything special. 18844 aix_use_runtimelinking=no 18845 exp_sym_flag='-Bexport' 18846 no_entry_flag="" 18847 else 18848 # If we're using GNU nm, then we don't want the "-C" option. 18849 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18850 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18851 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' 18852 else 18853 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' 18854 fi 18855 aix_use_runtimelinking=no 18856 18857 # Test if we are trying to use run time linking or normal 18858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18859 # need to do runtime linking. 18860 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18861 for ld_flag in $LDFLAGS; do 18862 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18863 aix_use_runtimelinking=yes 18864 break 18865 fi 18866 done 18867 ;; 18868 esac 18869 18870 exp_sym_flag='-bexport' 18871 no_entry_flag='-bnoentry' 18872 fi 18873 18874 # When large executables or shared objects are built, AIX ld can 18875 # have problems creating the table of contents. If linking a library 18876 # or program results in "error TOC overflow" add -mminimal-toc to 18877 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18878 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18879 18880 archive_cmds_GCJ='' 18881 hardcode_direct_GCJ=yes 18882 hardcode_libdir_separator_GCJ=':' 18883 link_all_deplibs_GCJ=yes 18884 18885 if test "$GCC" = yes; then 18886 case $host_os in aix4.[012]|aix4.[012].*) 18887 # We only want to do this on AIX 4.2 and lower, the check 18888 # below for broken collect2 doesn't work under 4.3+ 18889 collect2name=`${CC} -print-prog-name=collect2` 18890 if test -f "$collect2name" && \ 18891 strings "$collect2name" | grep resolve_lib_name >/dev/null 18892 then 18893 # We have reworked collect2 18894 : 18895 else 18896 # We have old collect2 18897 hardcode_direct_GCJ=unsupported 18898 # It fails to find uninstalled libraries when the uninstalled 18899 # path is not listed in the libpath. Setting hardcode_minus_L 18900 # to unsupported forces relinking 18901 hardcode_minus_L_GCJ=yes 18902 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18903 hardcode_libdir_separator_GCJ= 18904 fi 18905 ;; 18906 esac 18907 shared_flag='-shared' 18908 if test "$aix_use_runtimelinking" = yes; then 18909 shared_flag="$shared_flag "'${wl}-G' 18910 fi 18911 else 18912 # not using gcc 18913 if test "$host_cpu" = ia64; then 18914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18915 # chokes on -Wl,-G. The following line is correct: 18916 shared_flag='-G' 18917 else 18918 if test "$aix_use_runtimelinking" = yes; then 18919 shared_flag='${wl}-G' 18920 else 18921 shared_flag='${wl}-bM:SRE' 18922 fi 18923 fi 18924 fi 18925 18926 # It seems that -bexpall does not export symbols beginning with 18927 # underscore (_), so it is better to generate a list of symbols to export. 18928 always_export_symbols_GCJ=yes 18929 if test "$aix_use_runtimelinking" = yes; then 18930 # Warning - without using the other runtime loading flags (-brtl), 18931 # -berok will link without error, but may produce a broken library. 18932 allow_undefined_flag_GCJ='-berok' 18933 # Determine the default libpath from the value encoded in an empty executable. 18934 cat >conftest.$ac_ext <<_ACEOF 18935/* confdefs.h. */ 18936_ACEOF 18937cat confdefs.h >>conftest.$ac_ext 18938cat >>conftest.$ac_ext <<_ACEOF 18939/* end confdefs.h. */ 18940 18941int 18942main () 18943{ 18944 18945 ; 18946 return 0; 18947} 18948_ACEOF 18949rm -f conftest.$ac_objext conftest$ac_exeext 18950if { (ac_try="$ac_link" 18951case "(($ac_try" in 18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18953 *) ac_try_echo=$ac_try;; 18954esac 18955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18956 (eval "$ac_link") 2>conftest.er1 18957 ac_status=$? 18958 grep -v '^ *+' conftest.er1 >conftest.err 18959 rm -f conftest.er1 18960 cat conftest.err >&5 18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18962 (exit $ac_status); } && { 18963 test -z "$ac_c_werror_flag" || 18964 test ! -s conftest.err 18965 } && test -s conftest$ac_exeext && 18966 $as_test_x conftest$ac_exeext; then 18967 18968lt_aix_libpath_sed=' 18969 /Import File Strings/,/^$/ { 18970 /^0/ { 18971 s/^0 *\(.*\)$/\1/ 18972 p 18973 } 18974 }' 18975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18976# Check for a 64-bit object if we didn't find anything. 18977if test -z "$aix_libpath"; then 18978 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18979fi 18980else 18981 echo "$as_me: failed program was:" >&5 18982sed 's/^/| /' conftest.$ac_ext >&5 18983 18984 18985fi 18986 18987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18988 conftest$ac_exeext conftest.$ac_ext 18989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18990 18991 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18992 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" 18993 else 18994 if test "$host_cpu" = ia64; then 18995 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18996 allow_undefined_flag_GCJ="-z nodefs" 18997 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" 18998 else 18999 # Determine the default libpath from the value encoded in an empty executable. 19000 cat >conftest.$ac_ext <<_ACEOF 19001/* confdefs.h. */ 19002_ACEOF 19003cat confdefs.h >>conftest.$ac_ext 19004cat >>conftest.$ac_ext <<_ACEOF 19005/* end confdefs.h. */ 19006 19007int 19008main () 19009{ 19010 19011 ; 19012 return 0; 19013} 19014_ACEOF 19015rm -f conftest.$ac_objext conftest$ac_exeext 19016if { (ac_try="$ac_link" 19017case "(($ac_try" in 19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19019 *) ac_try_echo=$ac_try;; 19020esac 19021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19022 (eval "$ac_link") 2>conftest.er1 19023 ac_status=$? 19024 grep -v '^ *+' conftest.er1 >conftest.err 19025 rm -f conftest.er1 19026 cat conftest.err >&5 19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19028 (exit $ac_status); } && { 19029 test -z "$ac_c_werror_flag" || 19030 test ! -s conftest.err 19031 } && test -s conftest$ac_exeext && 19032 $as_test_x conftest$ac_exeext; then 19033 19034lt_aix_libpath_sed=' 19035 /Import File Strings/,/^$/ { 19036 /^0/ { 19037 s/^0 *\(.*\)$/\1/ 19038 p 19039 } 19040 }' 19041aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19042# Check for a 64-bit object if we didn't find anything. 19043if test -z "$aix_libpath"; then 19044 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19045fi 19046else 19047 echo "$as_me: failed program was:" >&5 19048sed 's/^/| /' conftest.$ac_ext >&5 19049 19050 19051fi 19052 19053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19054 conftest$ac_exeext conftest.$ac_ext 19055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19056 19057 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19058 # Warning - without using the other run time loading flags, 19059 # -berok will link without error, but may produce a broken library. 19060 no_undefined_flag_GCJ=' ${wl}-bernotok' 19061 allow_undefined_flag_GCJ=' ${wl}-berok' 19062 # Exported symbols can be pulled into shared objects from archives 19063 whole_archive_flag_spec_GCJ='$convenience' 19064 archive_cmds_need_lc_GCJ=yes 19065 # This is similar to how AIX traditionally builds its shared libraries. 19066 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' 19067 fi 19068 fi 19069 ;; 19070 19071 amigaos*) 19072 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)' 19073 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19074 hardcode_minus_L_GCJ=yes 19075 # see comment about different semantics on the GNU ld section 19076 ld_shlibs_GCJ=no 19077 ;; 19078 19079 bsdi[45]*) 19080 export_dynamic_flag_spec_GCJ=-rdynamic 19081 ;; 19082 19083 cygwin* | mingw* | pw32*) 19084 # When not using gcc, we currently assume that we are using 19085 # Microsoft Visual C++. 19086 # hardcode_libdir_flag_spec is actually meaningless, as there is 19087 # no search path for DLLs. 19088 hardcode_libdir_flag_spec_GCJ=' ' 19089 allow_undefined_flag_GCJ=unsupported 19090 # Tell ltmain to make .lib files, not .a files. 19091 libext=lib 19092 # Tell ltmain to make .dll files, not .so files. 19093 shrext_cmds=".dll" 19094 # FIXME: Setting linknames here is a bad hack. 19095 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 19096 # The linker will automatically build a .lib file if we build a DLL. 19097 old_archive_From_new_cmds_GCJ='true' 19098 # FIXME: Should let the user specify the lib program. 19099 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 19100 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 19101 enable_shared_with_static_runtimes_GCJ=yes 19102 ;; 19103 19104 darwin* | rhapsody*) 19105 case $host_os in 19106 rhapsody* | darwin1.[012]) 19107 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 19108 ;; 19109 *) # Darwin 1.3 on 19110 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 19111 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19112 else 19113 case ${MACOSX_DEPLOYMENT_TARGET} in 19114 10.[012]) 19115 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19116 ;; 19117 10.*) 19118 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 19119 ;; 19120 esac 19121 fi 19122 ;; 19123 esac 19124 archive_cmds_need_lc_GCJ=no 19125 hardcode_direct_GCJ=no 19126 hardcode_automatic_GCJ=yes 19127 hardcode_shlibpath_var_GCJ=unsupported 19128 whole_archive_flag_spec_GCJ='' 19129 link_all_deplibs_GCJ=yes 19130 if test "$GCC" = yes ; then 19131 output_verbose_link_cmd='echo' 19132 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19133 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19135 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}' 19136 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}' 19137 else 19138 case $cc_basename in 19139 xlc*) 19140 output_verbose_link_cmd='echo' 19141 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 19142 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19143 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19144 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19145 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}' 19146 ;; 19147 *) 19148 ld_shlibs_GCJ=no 19149 ;; 19150 esac 19151 fi 19152 ;; 19153 19154 dgux*) 19155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19156 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19157 hardcode_shlibpath_var_GCJ=no 19158 ;; 19159 19160 freebsd1*) 19161 ld_shlibs_GCJ=no 19162 ;; 19163 19164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19165 # support. Future versions do this automatically, but an explicit c++rt0.o 19166 # does not break anything, and helps significantly (at the cost of a little 19167 # extra space). 19168 freebsd2.2*) 19169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19170 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19171 hardcode_direct_GCJ=yes 19172 hardcode_shlibpath_var_GCJ=no 19173 ;; 19174 19175 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19176 freebsd2*) 19177 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19178 hardcode_direct_GCJ=yes 19179 hardcode_minus_L_GCJ=yes 19180 hardcode_shlibpath_var_GCJ=no 19181 ;; 19182 19183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19184 freebsd* | dragonfly*) 19185 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19186 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19187 hardcode_direct_GCJ=yes 19188 hardcode_shlibpath_var_GCJ=no 19189 ;; 19190 19191 hpux9*) 19192 if test "$GCC" = yes; then 19193 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19194 else 19195 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19196 fi 19197 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19198 hardcode_libdir_separator_GCJ=: 19199 hardcode_direct_GCJ=yes 19200 19201 # hardcode_minus_L: Not really in the search PATH, 19202 # but as the default location of the library. 19203 hardcode_minus_L_GCJ=yes 19204 export_dynamic_flag_spec_GCJ='${wl}-E' 19205 ;; 19206 19207 hpux10*) 19208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19209 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19210 else 19211 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19212 fi 19213 if test "$with_gnu_ld" = no; then 19214 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19215 hardcode_libdir_separator_GCJ=: 19216 19217 hardcode_direct_GCJ=yes 19218 export_dynamic_flag_spec_GCJ='${wl}-E' 19219 19220 # hardcode_minus_L: Not really in the search PATH, 19221 # but as the default location of the library. 19222 hardcode_minus_L_GCJ=yes 19223 fi 19224 ;; 19225 19226 hpux11*) 19227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19228 case $host_cpu in 19229 hppa*64*) 19230 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19231 ;; 19232 ia64*) 19233 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19234 ;; 19235 *) 19236 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19237 ;; 19238 esac 19239 else 19240 case $host_cpu in 19241 hppa*64*) 19242 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19243 ;; 19244 ia64*) 19245 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19246 ;; 19247 *) 19248 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19249 ;; 19250 esac 19251 fi 19252 if test "$with_gnu_ld" = no; then 19253 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19254 hardcode_libdir_separator_GCJ=: 19255 19256 case $host_cpu in 19257 hppa*64*|ia64*) 19258 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19259 hardcode_direct_GCJ=no 19260 hardcode_shlibpath_var_GCJ=no 19261 ;; 19262 *) 19263 hardcode_direct_GCJ=yes 19264 export_dynamic_flag_spec_GCJ='${wl}-E' 19265 19266 # hardcode_minus_L: Not really in the search PATH, 19267 # but as the default location of the library. 19268 hardcode_minus_L_GCJ=yes 19269 ;; 19270 esac 19271 fi 19272 ;; 19273 19274 irix5* | irix6* | nonstopux*) 19275 if test "$GCC" = yes; then 19276 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' 19277 else 19278 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' 19279 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19280 fi 19281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19282 hardcode_libdir_separator_GCJ=: 19283 link_all_deplibs_GCJ=yes 19284 ;; 19285 19286 netbsd* | netbsdelf*-gnu) 19287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19289 else 19290 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19291 fi 19292 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19293 hardcode_direct_GCJ=yes 19294 hardcode_shlibpath_var_GCJ=no 19295 ;; 19296 19297 newsos6) 19298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19299 hardcode_direct_GCJ=yes 19300 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19301 hardcode_libdir_separator_GCJ=: 19302 hardcode_shlibpath_var_GCJ=no 19303 ;; 19304 19305 openbsd*) 19306 if test -f /usr/libexec/ld.so; then 19307 hardcode_direct_GCJ=yes 19308 hardcode_shlibpath_var_GCJ=no 19309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19310 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19311 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19313 export_dynamic_flag_spec_GCJ='${wl}-E' 19314 else 19315 case $host_os in 19316 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19317 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19318 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19319 ;; 19320 *) 19321 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19323 ;; 19324 esac 19325 fi 19326 else 19327 ld_shlibs_GCJ=no 19328 fi 19329 ;; 19330 19331 os2*) 19332 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19333 hardcode_minus_L_GCJ=yes 19334 allow_undefined_flag_GCJ=unsupported 19335 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' 19336 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19337 ;; 19338 19339 osf3*) 19340 if test "$GCC" = yes; then 19341 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19342 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' 19343 else 19344 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19345 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' 19346 fi 19347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19348 hardcode_libdir_separator_GCJ=: 19349 ;; 19350 19351 osf4* | osf5*) # as osf3* with the addition of -msym flag 19352 if test "$GCC" = yes; then 19353 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19354 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' 19355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19356 else 19357 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19358 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' 19359 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~ 19360 $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' 19361 19362 # Both c and cxx compiler support -rpath directly 19363 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19364 fi 19365 hardcode_libdir_separator_GCJ=: 19366 ;; 19367 19368 solaris*) 19369 no_undefined_flag_GCJ=' -z text' 19370 if test "$GCC" = yes; then 19371 wlarc='${wl}' 19372 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19373 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19374 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19375 else 19376 wlarc='' 19377 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19378 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19380 fi 19381 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19382 hardcode_shlibpath_var_GCJ=no 19383 case $host_os in 19384 solaris2.[0-5] | solaris2.[0-5].*) ;; 19385 *) 19386 # The compiler driver will combine and reorder linker options, 19387 # but understands `-z linker_flag'. GCC discards it without `$wl', 19388 # but is careful enough not to reorder. 19389 # Supported since Solaris 2.6 (maybe 2.5.1?) 19390 if test "$GCC" = yes; then 19391 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19392 else 19393 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 19394 fi 19395 ;; 19396 esac 19397 link_all_deplibs_GCJ=yes 19398 ;; 19399 19400 sunos4*) 19401 if test "x$host_vendor" = xsequent; then 19402 # Use $CC to link under sequent, because it throws in some extra .o 19403 # files that make .init and .fini sections work. 19404 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19405 else 19406 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19407 fi 19408 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19409 hardcode_direct_GCJ=yes 19410 hardcode_minus_L_GCJ=yes 19411 hardcode_shlibpath_var_GCJ=no 19412 ;; 19413 19414 sysv4) 19415 case $host_vendor in 19416 sni) 19417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19418 hardcode_direct_GCJ=yes # is this really true??? 19419 ;; 19420 siemens) 19421 ## LD is ld it makes a PLAMLIB 19422 ## CC just makes a GrossModule. 19423 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19424 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19425 hardcode_direct_GCJ=no 19426 ;; 19427 motorola) 19428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19429 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19430 ;; 19431 esac 19432 runpath_var='LD_RUN_PATH' 19433 hardcode_shlibpath_var_GCJ=no 19434 ;; 19435 19436 sysv4.3*) 19437 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19438 hardcode_shlibpath_var_GCJ=no 19439 export_dynamic_flag_spec_GCJ='-Bexport' 19440 ;; 19441 19442 sysv4*MP*) 19443 if test -d /usr/nec; then 19444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19445 hardcode_shlibpath_var_GCJ=no 19446 runpath_var=LD_RUN_PATH 19447 hardcode_runpath_var=yes 19448 ld_shlibs_GCJ=yes 19449 fi 19450 ;; 19451 19452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19453 no_undefined_flag_GCJ='${wl}-z,text' 19454 archive_cmds_need_lc_GCJ=no 19455 hardcode_shlibpath_var_GCJ=no 19456 runpath_var='LD_RUN_PATH' 19457 19458 if test "$GCC" = yes; then 19459 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19460 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19461 else 19462 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19463 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19464 fi 19465 ;; 19466 19467 sysv5* | sco3.2v5* | sco5v6*) 19468 # Note: We can NOT use -z defs as we might desire, because we do not 19469 # link with -lc, and that would cause any symbols used from libc to 19470 # always be unresolved, which means just about no library would 19471 # ever link correctly. If we're not using GNU ld we use -z text 19472 # though, which does catch some bad symbols but isn't as heavy-handed 19473 # as -z defs. 19474 no_undefined_flag_GCJ='${wl}-z,text' 19475 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19476 archive_cmds_need_lc_GCJ=no 19477 hardcode_shlibpath_var_GCJ=no 19478 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19479 hardcode_libdir_separator_GCJ=':' 19480 link_all_deplibs_GCJ=yes 19481 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19482 runpath_var='LD_RUN_PATH' 19483 19484 if test "$GCC" = yes; then 19485 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19486 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19487 else 19488 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19489 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19490 fi 19491 ;; 19492 19493 uts4*) 19494 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19495 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19496 hardcode_shlibpath_var_GCJ=no 19497 ;; 19498 19499 *) 19500 ld_shlibs_GCJ=no 19501 ;; 19502 esac 19503 fi 19504 19505{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19506echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 19507test "$ld_shlibs_GCJ" = no && can_build_shared=no 19508 19509# 19510# Do we need to explicitly link libc? 19511# 19512case "x$archive_cmds_need_lc_GCJ" in 19513x|xyes) 19514 # Assume -lc should be added 19515 archive_cmds_need_lc_GCJ=yes 19516 19517 if test "$enable_shared" = yes && test "$GCC" = yes; then 19518 case $archive_cmds_GCJ in 19519 *'~'*) 19520 # FIXME: we may have to deal with multi-command sequences. 19521 ;; 19522 '$CC '*) 19523 # Test whether the compiler implicitly links with -lc since on some 19524 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19525 # to ld, don't add -lc before -lgcc. 19526 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19527echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19528 $rm conftest* 19529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19530 19531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19532 (eval $ac_compile) 2>&5 19533 ac_status=$? 19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19535 (exit $ac_status); } 2>conftest.err; then 19536 soname=conftest 19537 lib=conftest 19538 libobjs=conftest.$ac_objext 19539 deplibs= 19540 wl=$lt_prog_compiler_wl_GCJ 19541 pic_flag=$lt_prog_compiler_pic_GCJ 19542 compiler_flags=-v 19543 linker_flags=-v 19544 verstring= 19545 output_objdir=. 19546 libname=conftest 19547 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19548 allow_undefined_flag_GCJ= 19549 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19550 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19551 ac_status=$? 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19553 (exit $ac_status); } 19554 then 19555 archive_cmds_need_lc_GCJ=no 19556 else 19557 archive_cmds_need_lc_GCJ=yes 19558 fi 19559 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19560 else 19561 cat conftest.err 1>&5 19562 fi 19563 $rm conftest* 19564 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19565echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 19566 ;; 19567 esac 19568 fi 19569 ;; 19570esac 19571 19572{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19573echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19574library_names_spec= 19575libname_spec='lib$name' 19576soname_spec= 19577shrext_cmds=".so" 19578postinstall_cmds= 19579postuninstall_cmds= 19580finish_cmds= 19581finish_eval= 19582shlibpath_var= 19583shlibpath_overrides_runpath=unknown 19584version_type=none 19585dynamic_linker="$host_os ld.so" 19586sys_lib_dlsearch_path_spec="/lib /usr/lib" 19587 19588need_lib_prefix=unknown 19589hardcode_into_libs=no 19590 19591# when you set need_version to no, make sure it does not cause -set_version 19592# flags to be left without arguments 19593need_version=unknown 19594 19595case $host_os in 19596aix3*) 19597 version_type=linux 19598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19599 shlibpath_var=LIBPATH 19600 19601 # AIX 3 has no versioning support, so we append a major version to the name. 19602 soname_spec='${libname}${release}${shared_ext}$major' 19603 ;; 19604 19605aix4* | aix5*) 19606 version_type=linux 19607 need_lib_prefix=no 19608 need_version=no 19609 hardcode_into_libs=yes 19610 if test "$host_cpu" = ia64; then 19611 # AIX 5 supports IA64 19612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19613 shlibpath_var=LD_LIBRARY_PATH 19614 else 19615 # With GCC up to 2.95.x, collect2 would create an import file 19616 # for dependence libraries. The import file would start with 19617 # the line `#! .'. This would cause the generated library to 19618 # depend on `.', always an invalid library. This was fixed in 19619 # development snapshots of GCC prior to 3.0. 19620 case $host_os in 19621 aix4 | aix4.[01] | aix4.[01].*) 19622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19623 echo ' yes ' 19624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19625 : 19626 else 19627 can_build_shared=no 19628 fi 19629 ;; 19630 esac 19631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19632 # soname into executable. Probably we can add versioning support to 19633 # collect2, so additional links can be useful in future. 19634 if test "$aix_use_runtimelinking" = yes; then 19635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19636 # instead of lib<name>.a to let people know that these are not 19637 # typical AIX shared libraries. 19638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19639 else 19640 # We preserve .a as extension for shared libraries through AIX4.2 19641 # and later when we are not doing run time linking. 19642 library_names_spec='${libname}${release}.a $libname.a' 19643 soname_spec='${libname}${release}${shared_ext}$major' 19644 fi 19645 shlibpath_var=LIBPATH 19646 fi 19647 ;; 19648 19649amigaos*) 19650 library_names_spec='$libname.ixlibrary $libname.a' 19651 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19652 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' 19653 ;; 19654 19655beos*) 19656 library_names_spec='${libname}${shared_ext}' 19657 dynamic_linker="$host_os ld.so" 19658 shlibpath_var=LIBRARY_PATH 19659 ;; 19660 19661bsdi[45]*) 19662 version_type=linux 19663 need_version=no 19664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19665 soname_spec='${libname}${release}${shared_ext}$major' 19666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19667 shlibpath_var=LD_LIBRARY_PATH 19668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19670 # the default ld.so.conf also contains /usr/contrib/lib and 19671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19672 # libtool to hard-code these into programs 19673 ;; 19674 19675cygwin* | mingw* | pw32*) 19676 version_type=windows 19677 shrext_cmds=".dll" 19678 need_version=no 19679 need_lib_prefix=no 19680 19681 case $GCC,$host_os in 19682 yes,cygwin* | yes,mingw* | yes,pw32*) 19683 library_names_spec='$libname.dll.a' 19684 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19685 postinstall_cmds='base_file=`basename \${file}`~ 19686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19687 dldir=$destdir/`dirname \$dlpath`~ 19688 test -d \$dldir || mkdir -p \$dldir~ 19689 $install_prog $dir/$dlname \$dldir/$dlname~ 19690 chmod a+x \$dldir/$dlname' 19691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19692 dlpath=$dir/\$dldll~ 19693 $rm \$dlpath' 19694 shlibpath_overrides_runpath=yes 19695 19696 case $host_os in 19697 cygwin*) 19698 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19701 ;; 19702 mingw*) 19703 # MinGW DLLs use traditional 'lib' prefix 19704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19707 # It is most probably a Windows format PATH printed by 19708 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19709 # path with ; separators, and with drive letters. We can handle the 19710 # drive letters (cygwin fileutils understands them), so leave them, 19711 # especially as we might pass files found there to a mingw objdump, 19712 # which wouldn't understand a cygwinified path. Ahh. 19713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19714 else 19715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19716 fi 19717 ;; 19718 pw32*) 19719 # pw32 DLLs use 'pw' prefix rather than 'lib' 19720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19721 ;; 19722 esac 19723 ;; 19724 19725 *) 19726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19727 ;; 19728 esac 19729 dynamic_linker='Win32 ld.exe' 19730 # FIXME: first we should search . and the directory the executable is in 19731 shlibpath_var=PATH 19732 ;; 19733 19734darwin* | rhapsody*) 19735 dynamic_linker="$host_os dyld" 19736 version_type=darwin 19737 need_lib_prefix=no 19738 need_version=no 19739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19740 soname_spec='${libname}${release}${major}$shared_ext' 19741 shlibpath_overrides_runpath=yes 19742 shlibpath_var=DYLD_LIBRARY_PATH 19743 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19744 19745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19746 ;; 19747 19748dgux*) 19749 version_type=linux 19750 need_lib_prefix=no 19751 need_version=no 19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19753 soname_spec='${libname}${release}${shared_ext}$major' 19754 shlibpath_var=LD_LIBRARY_PATH 19755 ;; 19756 19757freebsd1*) 19758 dynamic_linker=no 19759 ;; 19760 19761freebsd* | dragonfly*) 19762 # DragonFly does not have aout. When/if they implement a new 19763 # versioning mechanism, adjust this. 19764 if test -x /usr/bin/objformat; then 19765 objformat=`/usr/bin/objformat` 19766 else 19767 case $host_os in 19768 freebsd[123]*) objformat=aout ;; 19769 *) objformat=elf ;; 19770 esac 19771 fi 19772 version_type=freebsd-$objformat 19773 case $version_type in 19774 freebsd-elf*) 19775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19776 need_version=no 19777 need_lib_prefix=no 19778 ;; 19779 freebsd-*) 19780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19781 need_version=yes 19782 ;; 19783 esac 19784 shlibpath_var=LD_LIBRARY_PATH 19785 case $host_os in 19786 freebsd2*) 19787 shlibpath_overrides_runpath=yes 19788 ;; 19789 freebsd3.[01]* | freebsdelf3.[01]*) 19790 shlibpath_overrides_runpath=yes 19791 hardcode_into_libs=yes 19792 ;; 19793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19795 shlibpath_overrides_runpath=no 19796 hardcode_into_libs=yes 19797 ;; 19798 *) # from 4.6 on, and DragonFly 19799 shlibpath_overrides_runpath=yes 19800 hardcode_into_libs=yes 19801 ;; 19802 esac 19803 ;; 19804 19805gnu*) 19806 version_type=linux 19807 need_lib_prefix=no 19808 need_version=no 19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19810 soname_spec='${libname}${release}${shared_ext}$major' 19811 shlibpath_var=LD_LIBRARY_PATH 19812 hardcode_into_libs=yes 19813 ;; 19814 19815hpux9* | hpux10* | hpux11*) 19816 # Give a soname corresponding to the major version so that dld.sl refuses to 19817 # link against other versions. 19818 version_type=sunos 19819 need_lib_prefix=no 19820 need_version=no 19821 case $host_cpu in 19822 ia64*) 19823 shrext_cmds='.so' 19824 hardcode_into_libs=yes 19825 dynamic_linker="$host_os dld.so" 19826 shlibpath_var=LD_LIBRARY_PATH 19827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19829 soname_spec='${libname}${release}${shared_ext}$major' 19830 if test "X$HPUX_IA64_MODE" = X32; then 19831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19832 else 19833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19834 fi 19835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19836 ;; 19837 hppa*64*) 19838 shrext_cmds='.sl' 19839 hardcode_into_libs=yes 19840 dynamic_linker="$host_os dld.sl" 19841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19844 soname_spec='${libname}${release}${shared_ext}$major' 19845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19847 ;; 19848 *) 19849 shrext_cmds='.sl' 19850 dynamic_linker="$host_os dld.sl" 19851 shlibpath_var=SHLIB_PATH 19852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19854 soname_spec='${libname}${release}${shared_ext}$major' 19855 ;; 19856 esac 19857 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19858 postinstall_cmds='chmod 555 $lib' 19859 ;; 19860 19861interix[3-9]*) 19862 version_type=linux 19863 need_lib_prefix=no 19864 need_version=no 19865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19866 soname_spec='${libname}${release}${shared_ext}$major' 19867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19868 shlibpath_var=LD_LIBRARY_PATH 19869 shlibpath_overrides_runpath=no 19870 hardcode_into_libs=yes 19871 ;; 19872 19873irix5* | irix6* | nonstopux*) 19874 case $host_os in 19875 nonstopux*) version_type=nonstopux ;; 19876 *) 19877 if test "$lt_cv_prog_gnu_ld" = yes; then 19878 version_type=linux 19879 else 19880 version_type=irix 19881 fi ;; 19882 esac 19883 need_lib_prefix=no 19884 need_version=no 19885 soname_spec='${libname}${release}${shared_ext}$major' 19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19887 case $host_os in 19888 irix5* | nonstopux*) 19889 libsuff= shlibsuff= 19890 ;; 19891 *) 19892 case $LD in # libtool.m4 will add one of these switches to LD 19893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19894 libsuff= shlibsuff= libmagic=32-bit;; 19895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19896 libsuff=32 shlibsuff=N32 libmagic=N32;; 19897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19898 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19899 *) libsuff= shlibsuff= libmagic=never-match;; 19900 esac 19901 ;; 19902 esac 19903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19904 shlibpath_overrides_runpath=no 19905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19907 hardcode_into_libs=yes 19908 ;; 19909 19910# No shared lib support for Linux oldld, aout, or coff. 19911linux*oldld* | linux*aout* | linux*coff*) 19912 dynamic_linker=no 19913 ;; 19914 19915# This must be Linux ELF. 19916linux* | k*bsd*-gnu) 19917 version_type=linux 19918 need_lib_prefix=no 19919 need_version=no 19920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19921 soname_spec='${libname}${release}${shared_ext}$major' 19922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19923 shlibpath_var=LD_LIBRARY_PATH 19924 shlibpath_overrides_runpath=no 19925 # This implies no fast_install, which is unacceptable. 19926 # Some rework will be needed to allow for fast_install 19927 # before this can be enabled. 19928 hardcode_into_libs=yes 19929 19930 # Append ld.so.conf contents to the search path 19931 if test -f /etc/ld.so.conf; then 19932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19934 fi 19935 19936 # We used to test for /lib/ld.so.1 and disable shared libraries on 19937 # powerpc, because MkLinux only supported shared libraries with the 19938 # GNU dynamic linker. Since this was broken with cross compilers, 19939 # most powerpc-linux boxes support dynamic linking these days and 19940 # people can always --disable-shared, the test was removed, and we 19941 # assume the GNU/Linux dynamic linker is in use. 19942 dynamic_linker='GNU/Linux ld.so' 19943 ;; 19944 19945netbsdelf*-gnu) 19946 version_type=linux 19947 need_lib_prefix=no 19948 need_version=no 19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19950 soname_spec='${libname}${release}${shared_ext}$major' 19951 shlibpath_var=LD_LIBRARY_PATH 19952 shlibpath_overrides_runpath=no 19953 hardcode_into_libs=yes 19954 dynamic_linker='NetBSD ld.elf_so' 19955 ;; 19956 19957netbsd*) 19958 version_type=sunos 19959 need_lib_prefix=no 19960 need_version=no 19961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19964 dynamic_linker='NetBSD (a.out) ld.so' 19965 else 19966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19967 soname_spec='${libname}${release}${shared_ext}$major' 19968 dynamic_linker='NetBSD ld.elf_so' 19969 fi 19970 shlibpath_var=LD_LIBRARY_PATH 19971 shlibpath_overrides_runpath=yes 19972 hardcode_into_libs=yes 19973 ;; 19974 19975newsos6) 19976 version_type=linux 19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19978 shlibpath_var=LD_LIBRARY_PATH 19979 shlibpath_overrides_runpath=yes 19980 ;; 19981 19982nto-qnx*) 19983 version_type=linux 19984 need_lib_prefix=no 19985 need_version=no 19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19987 soname_spec='${libname}${release}${shared_ext}$major' 19988 shlibpath_var=LD_LIBRARY_PATH 19989 shlibpath_overrides_runpath=yes 19990 ;; 19991 19992openbsd*) 19993 version_type=sunos 19994 sys_lib_dlsearch_path_spec="/usr/lib" 19995 need_lib_prefix=no 19996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19997 case $host_os in 19998 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19999 *) need_version=no ;; 20000 esac 20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20003 shlibpath_var=LD_LIBRARY_PATH 20004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20005 case $host_os in 20006 openbsd2.[89] | openbsd2.[89].*) 20007 shlibpath_overrides_runpath=no 20008 ;; 20009 *) 20010 shlibpath_overrides_runpath=yes 20011 ;; 20012 esac 20013 else 20014 shlibpath_overrides_runpath=yes 20015 fi 20016 ;; 20017 20018os2*) 20019 libname_spec='$name' 20020 shrext_cmds=".dll" 20021 need_lib_prefix=no 20022 library_names_spec='$libname${shared_ext} $libname.a' 20023 dynamic_linker='OS/2 ld.exe' 20024 shlibpath_var=LIBPATH 20025 ;; 20026 20027osf3* | osf4* | osf5*) 20028 version_type=osf 20029 need_lib_prefix=no 20030 need_version=no 20031 soname_spec='${libname}${release}${shared_ext}$major' 20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20033 shlibpath_var=LD_LIBRARY_PATH 20034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20036 ;; 20037 20038rdos*) 20039 dynamic_linker=no 20040 ;; 20041 20042solaris*) 20043 version_type=linux 20044 need_lib_prefix=no 20045 need_version=no 20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20047 soname_spec='${libname}${release}${shared_ext}$major' 20048 shlibpath_var=LD_LIBRARY_PATH 20049 shlibpath_overrides_runpath=yes 20050 hardcode_into_libs=yes 20051 # ldd complains unless libraries are executable 20052 postinstall_cmds='chmod +x $lib' 20053 ;; 20054 20055sunos4*) 20056 version_type=sunos 20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20059 shlibpath_var=LD_LIBRARY_PATH 20060 shlibpath_overrides_runpath=yes 20061 if test "$with_gnu_ld" = yes; then 20062 need_lib_prefix=no 20063 fi 20064 need_version=yes 20065 ;; 20066 20067sysv4 | sysv4.3*) 20068 version_type=linux 20069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20070 soname_spec='${libname}${release}${shared_ext}$major' 20071 shlibpath_var=LD_LIBRARY_PATH 20072 case $host_vendor in 20073 sni) 20074 shlibpath_overrides_runpath=no 20075 need_lib_prefix=no 20076 export_dynamic_flag_spec='${wl}-Blargedynsym' 20077 runpath_var=LD_RUN_PATH 20078 ;; 20079 siemens) 20080 need_lib_prefix=no 20081 ;; 20082 motorola) 20083 need_lib_prefix=no 20084 need_version=no 20085 shlibpath_overrides_runpath=no 20086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20087 ;; 20088 esac 20089 ;; 20090 20091sysv4*MP*) 20092 if test -d /usr/nec ;then 20093 version_type=linux 20094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20095 soname_spec='$libname${shared_ext}.$major' 20096 shlibpath_var=LD_LIBRARY_PATH 20097 fi 20098 ;; 20099 20100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20101 version_type=freebsd-elf 20102 need_lib_prefix=no 20103 need_version=no 20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20105 soname_spec='${libname}${release}${shared_ext}$major' 20106 shlibpath_var=LD_LIBRARY_PATH 20107 hardcode_into_libs=yes 20108 if test "$with_gnu_ld" = yes; then 20109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20110 shlibpath_overrides_runpath=no 20111 else 20112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20113 shlibpath_overrides_runpath=yes 20114 case $host_os in 20115 sco3.2v5*) 20116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20117 ;; 20118 esac 20119 fi 20120 sys_lib_dlsearch_path_spec='/usr/lib' 20121 ;; 20122 20123uts4*) 20124 version_type=linux 20125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20126 soname_spec='${libname}${release}${shared_ext}$major' 20127 shlibpath_var=LD_LIBRARY_PATH 20128 ;; 20129 20130*) 20131 dynamic_linker=no 20132 ;; 20133esac 20134{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20135echo "${ECHO_T}$dynamic_linker" >&6; } 20136test "$dynamic_linker" = no && can_build_shared=no 20137 20138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20139if test "$GCC" = yes; then 20140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20141fi 20142 20143{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20144echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20145hardcode_action_GCJ= 20146if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20147 test -n "$runpath_var_GCJ" || \ 20148 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20149 20150 # We can hardcode non-existant directories. 20151 if test "$hardcode_direct_GCJ" != no && 20152 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20153 # have to relink, otherwise we might link with an installed library 20154 # when we should be linking with a yet-to-be-installed one 20155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20156 test "$hardcode_minus_L_GCJ" != no; then 20157 # Linking always hardcodes the temporary library directory. 20158 hardcode_action_GCJ=relink 20159 else 20160 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20161 hardcode_action_GCJ=immediate 20162 fi 20163else 20164 # We cannot hardcode anything, or else we can only hardcode existing 20165 # directories. 20166 hardcode_action_GCJ=unsupported 20167fi 20168{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20169echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 20170 20171if test "$hardcode_action_GCJ" = relink; then 20172 # Fast installation is not supported 20173 enable_fast_install=no 20174elif test "$shlibpath_overrides_runpath" = yes || 20175 test "$enable_shared" = no; then 20176 # Fast installation is not necessary 20177 enable_fast_install=needless 20178fi 20179 20180 20181# The else clause should only fire when bootstrapping the 20182# libtool distribution, otherwise you forgot to ship ltmain.sh 20183# with your package, and you will get complaints that there are 20184# no rules to generate ltmain.sh. 20185if test -f "$ltmain"; then 20186 # See if we are running on zsh, and set the options which allow our commands through 20187 # without removal of \ escapes. 20188 if test -n "${ZSH_VERSION+set}" ; then 20189 setopt NO_GLOB_SUBST 20190 fi 20191 # Now quote all the things that may contain metacharacters while being 20192 # careful not to overquote the AC_SUBSTed values. We take copies of the 20193 # variables and quote the copies for generation of the libtool script. 20194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20195 SED SHELL STRIP \ 20196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20198 deplibs_check_method reload_flag reload_cmds need_locks \ 20199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20200 lt_cv_sys_global_symbol_to_c_name_address \ 20201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20202 old_postinstall_cmds old_postuninstall_cmds \ 20203 compiler_GCJ \ 20204 CC_GCJ \ 20205 LD_GCJ \ 20206 lt_prog_compiler_wl_GCJ \ 20207 lt_prog_compiler_pic_GCJ \ 20208 lt_prog_compiler_static_GCJ \ 20209 lt_prog_compiler_no_builtin_flag_GCJ \ 20210 export_dynamic_flag_spec_GCJ \ 20211 thread_safe_flag_spec_GCJ \ 20212 whole_archive_flag_spec_GCJ \ 20213 enable_shared_with_static_runtimes_GCJ \ 20214 old_archive_cmds_GCJ \ 20215 old_archive_from_new_cmds_GCJ \ 20216 predep_objects_GCJ \ 20217 postdep_objects_GCJ \ 20218 predeps_GCJ \ 20219 postdeps_GCJ \ 20220 compiler_lib_search_path_GCJ \ 20221 archive_cmds_GCJ \ 20222 archive_expsym_cmds_GCJ \ 20223 postinstall_cmds_GCJ \ 20224 postuninstall_cmds_GCJ \ 20225 old_archive_from_expsyms_cmds_GCJ \ 20226 allow_undefined_flag_GCJ \ 20227 no_undefined_flag_GCJ \ 20228 export_symbols_cmds_GCJ \ 20229 hardcode_libdir_flag_spec_GCJ \ 20230 hardcode_libdir_flag_spec_ld_GCJ \ 20231 hardcode_libdir_separator_GCJ \ 20232 hardcode_automatic_GCJ \ 20233 module_cmds_GCJ \ 20234 module_expsym_cmds_GCJ \ 20235 lt_cv_prog_compiler_c_o_GCJ \ 20236 fix_srcfile_path_GCJ \ 20237 exclude_expsyms_GCJ \ 20238 include_expsyms_GCJ; do 20239 20240 case $var in 20241 old_archive_cmds_GCJ | \ 20242 old_archive_from_new_cmds_GCJ | \ 20243 archive_cmds_GCJ | \ 20244 archive_expsym_cmds_GCJ | \ 20245 module_cmds_GCJ | \ 20246 module_expsym_cmds_GCJ | \ 20247 old_archive_from_expsyms_cmds_GCJ | \ 20248 export_symbols_cmds_GCJ | \ 20249 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20250 postinstall_cmds | postuninstall_cmds | \ 20251 old_postinstall_cmds | old_postuninstall_cmds | \ 20252 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20253 # Double-quote double-evaled strings. 20254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20255 ;; 20256 *) 20257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20258 ;; 20259 esac 20260 done 20261 20262 case $lt_echo in 20263 *'\$0 --fallback-echo"') 20264 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20265 ;; 20266 esac 20267 20268cfgfile="$ofile" 20269 20270 cat <<__EOF__ >> "$cfgfile" 20271# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20272 20273# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20274 20275# Shell to use when invoking shell scripts. 20276SHELL=$lt_SHELL 20277 20278# Whether or not to build shared libraries. 20279build_libtool_libs=$enable_shared 20280 20281# Whether or not to build static libraries. 20282build_old_libs=$enable_static 20283 20284# Whether or not to add -lc for building shared libraries. 20285build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20286 20287# Whether or not to disallow shared libs when runtime libs are static 20288allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20289 20290# Whether or not to optimize for fast installation. 20291fast_install=$enable_fast_install 20292 20293# The host system. 20294host_alias=$host_alias 20295host=$host 20296host_os=$host_os 20297 20298# The build system. 20299build_alias=$build_alias 20300build=$build 20301build_os=$build_os 20302 20303# An echo program that does not interpret backslashes. 20304echo=$lt_echo 20305 20306# The archiver. 20307AR=$lt_AR 20308AR_FLAGS=$lt_AR_FLAGS 20309 20310# A C compiler. 20311LTCC=$lt_LTCC 20312 20313# LTCC compiler flags. 20314LTCFLAGS=$lt_LTCFLAGS 20315 20316# A language-specific compiler. 20317CC=$lt_compiler_GCJ 20318 20319# Is the compiler the GNU C compiler? 20320with_gcc=$GCC_GCJ 20321 20322# An ERE matcher. 20323EGREP=$lt_EGREP 20324 20325# The linker used to build libraries. 20326LD=$lt_LD_GCJ 20327 20328# Whether we need hard or soft links. 20329LN_S=$lt_LN_S 20330 20331# A BSD-compatible nm program. 20332NM=$lt_NM 20333 20334# A symbol stripping program 20335STRIP=$lt_STRIP 20336 20337# Used to examine libraries when file_magic_cmd begins "file" 20338MAGIC_CMD=$MAGIC_CMD 20339 20340# Used on cygwin: DLL creation program. 20341DLLTOOL="$DLLTOOL" 20342 20343# Used on cygwin: object dumper. 20344OBJDUMP="$OBJDUMP" 20345 20346# Used on cygwin: assembler. 20347AS="$AS" 20348 20349# The name of the directory that contains temporary libtool files. 20350objdir=$objdir 20351 20352# How to create reloadable object files. 20353reload_flag=$lt_reload_flag 20354reload_cmds=$lt_reload_cmds 20355 20356# How to pass a linker flag through the compiler. 20357wl=$lt_lt_prog_compiler_wl_GCJ 20358 20359# Object file suffix (normally "o"). 20360objext="$ac_objext" 20361 20362# Old archive suffix (normally "a"). 20363libext="$libext" 20364 20365# Shared library suffix (normally ".so"). 20366shrext_cmds='$shrext_cmds' 20367 20368# Executable file suffix (normally ""). 20369exeext="$exeext" 20370 20371# Additional compiler flags for building library objects. 20372pic_flag=$lt_lt_prog_compiler_pic_GCJ 20373pic_mode=$pic_mode 20374 20375# What is the maximum length of a command? 20376max_cmd_len=$lt_cv_sys_max_cmd_len 20377 20378# Does compiler simultaneously support -c and -o options? 20379compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20380 20381# Must we lock files when doing compilation? 20382need_locks=$lt_need_locks 20383 20384# Do we need the lib prefix for modules? 20385need_lib_prefix=$need_lib_prefix 20386 20387# Do we need a version for libraries? 20388need_version=$need_version 20389 20390# Whether dlopen is supported. 20391dlopen_support=$enable_dlopen 20392 20393# Whether dlopen of programs is supported. 20394dlopen_self=$enable_dlopen_self 20395 20396# Whether dlopen of statically linked programs is supported. 20397dlopen_self_static=$enable_dlopen_self_static 20398 20399# Compiler flag to prevent dynamic linking. 20400link_static_flag=$lt_lt_prog_compiler_static_GCJ 20401 20402# Compiler flag to turn off builtin functions. 20403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20404 20405# Compiler flag to allow reflexive dlopens. 20406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20407 20408# Compiler flag to generate shared objects directly from archives. 20409whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20410 20411# Compiler flag to generate thread-safe objects. 20412thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20413 20414# Library versioning type. 20415version_type=$version_type 20416 20417# Format of library name prefix. 20418libname_spec=$lt_libname_spec 20419 20420# List of archive names. First name is the real one, the rest are links. 20421# The last name is the one that the linker finds with -lNAME. 20422library_names_spec=$lt_library_names_spec 20423 20424# The coded name of the library, if different from the real name. 20425soname_spec=$lt_soname_spec 20426 20427# Commands used to build and install an old-style archive. 20428RANLIB=$lt_RANLIB 20429old_archive_cmds=$lt_old_archive_cmds_GCJ 20430old_postinstall_cmds=$lt_old_postinstall_cmds 20431old_postuninstall_cmds=$lt_old_postuninstall_cmds 20432 20433# Create an old-style archive from a shared archive. 20434old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20435 20436# Create a temporary old-style archive to link instead of a shared archive. 20437old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20438 20439# Commands used to build and install a shared archive. 20440archive_cmds=$lt_archive_cmds_GCJ 20441archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20442postinstall_cmds=$lt_postinstall_cmds 20443postuninstall_cmds=$lt_postuninstall_cmds 20444 20445# Commands used to build a loadable module (assumed same as above if empty) 20446module_cmds=$lt_module_cmds_GCJ 20447module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20448 20449# Commands to strip libraries. 20450old_striplib=$lt_old_striplib 20451striplib=$lt_striplib 20452 20453# Dependencies to place before the objects being linked to create a 20454# shared library. 20455predep_objects=$lt_predep_objects_GCJ 20456 20457# Dependencies to place after the objects being linked to create a 20458# shared library. 20459postdep_objects=$lt_postdep_objects_GCJ 20460 20461# Dependencies to place before the objects being linked to create a 20462# shared library. 20463predeps=$lt_predeps_GCJ 20464 20465# Dependencies to place after the objects being linked to create a 20466# shared library. 20467postdeps=$lt_postdeps_GCJ 20468 20469# The library search path used internally by the compiler when linking 20470# a shared library. 20471compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20472 20473# Method to check whether dependent libraries are shared objects. 20474deplibs_check_method=$lt_deplibs_check_method 20475 20476# Command to use when deplibs_check_method == file_magic. 20477file_magic_cmd=$lt_file_magic_cmd 20478 20479# Flag that allows shared libraries with undefined symbols to be built. 20480allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20481 20482# Flag that forces no undefined symbols. 20483no_undefined_flag=$lt_no_undefined_flag_GCJ 20484 20485# Commands used to finish a libtool library installation in a directory. 20486finish_cmds=$lt_finish_cmds 20487 20488# Same as above, but a single script fragment to be evaled but not shown. 20489finish_eval=$lt_finish_eval 20490 20491# Take the output of nm and produce a listing of raw symbols and C names. 20492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20493 20494# Transform the output of nm in a proper C declaration 20495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20496 20497# Transform the output of nm in a C name address pair 20498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20499 20500# This is the shared library runtime path variable. 20501runpath_var=$runpath_var 20502 20503# This is the shared library path variable. 20504shlibpath_var=$shlibpath_var 20505 20506# Is shlibpath searched before the hard-coded library search path? 20507shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20508 20509# How to hardcode a shared library path into an executable. 20510hardcode_action=$hardcode_action_GCJ 20511 20512# Whether we should hardcode library paths into libraries. 20513hardcode_into_libs=$hardcode_into_libs 20514 20515# Flag to hardcode \$libdir into a binary during linking. 20516# This must work even if \$libdir does not exist. 20517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20518 20519# If ld is used when linking, flag to hardcode \$libdir into 20520# a binary during linking. This must work even if \$libdir does 20521# not exist. 20522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20523 20524# Whether we need a single -rpath flag with a separated argument. 20525hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20526 20527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20528# resulting binary. 20529hardcode_direct=$hardcode_direct_GCJ 20530 20531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20532# resulting binary. 20533hardcode_minus_L=$hardcode_minus_L_GCJ 20534 20535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20536# the resulting binary. 20537hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20538 20539# Set to yes if building a shared library automatically hardcodes DIR into the library 20540# and all subsequent libraries and executables linked against it. 20541hardcode_automatic=$hardcode_automatic_GCJ 20542 20543# Variables whose values should be saved in libtool wrapper scripts and 20544# restored at relink time. 20545variables_saved_for_relink="$variables_saved_for_relink" 20546 20547# Whether libtool must link a program against all its dependency libraries. 20548link_all_deplibs=$link_all_deplibs_GCJ 20549 20550# Compile-time system search path for libraries 20551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20552 20553# Run-time system search path for libraries 20554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20555 20556# Fix the shell variable \$srcfile for the compiler. 20557fix_srcfile_path=$lt_fix_srcfile_path 20558 20559# Set to yes if exported symbols are required. 20560always_export_symbols=$always_export_symbols_GCJ 20561 20562# The commands to list exported symbols. 20563export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20564 20565# The commands to extract the exported symbol list from a shared archive. 20566extract_expsyms_cmds=$lt_extract_expsyms_cmds 20567 20568# Symbols that should not be listed in the preloaded symbols. 20569exclude_expsyms=$lt_exclude_expsyms_GCJ 20570 20571# Symbols that must always be exported. 20572include_expsyms=$lt_include_expsyms_GCJ 20573 20574# ### END LIBTOOL TAG CONFIG: $tagname 20575 20576__EOF__ 20577 20578 20579else 20580 # If there is no Makefile yet, we rely on a make rule to execute 20581 # `config.status --recheck' to rerun these tests and create the 20582 # libtool script then. 20583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20584 if test -f "$ltmain_in"; then 20585 test -f Makefile && make "$ltmain" 20586 fi 20587fi 20588 20589 20590ac_ext=c 20591ac_cpp='$CPP $CPPFLAGS' 20592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20594ac_compiler_gnu=$ac_cv_c_compiler_gnu 20595 20596CC="$lt_save_CC" 20597 20598 else 20599 tagname="" 20600 fi 20601 ;; 20602 20603 RC) 20604 20605 20606# Source file extension for RC test sources. 20607ac_ext=rc 20608 20609# Object file extension for compiled RC test sources. 20610objext=o 20611objext_RC=$objext 20612 20613# Code to be used in simple compile tests 20614lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 20615 20616# Code to be used in simple link tests 20617lt_simple_link_test_code="$lt_simple_compile_test_code" 20618 20619# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20620 20621# If no C compiler was specified, use CC. 20622LTCC=${LTCC-"$CC"} 20623 20624# If no C compiler flags were specified, use CFLAGS. 20625LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20626 20627# Allow CC to be a program name with arguments. 20628compiler=$CC 20629 20630 20631# save warnings/boilerplate of simple test code 20632ac_outfile=conftest.$ac_objext 20633echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20634eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20635_lt_compiler_boilerplate=`cat conftest.err` 20636$rm conftest* 20637 20638ac_outfile=conftest.$ac_objext 20639echo "$lt_simple_link_test_code" >conftest.$ac_ext 20640eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20641_lt_linker_boilerplate=`cat conftest.err` 20642$rm conftest* 20643 20644 20645# Allow CC to be a program name with arguments. 20646lt_save_CC="$CC" 20647CC=${RC-"windres"} 20648compiler=$CC 20649compiler_RC=$CC 20650for cc_temp in $compiler""; do 20651 case $cc_temp in 20652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20654 \-*) ;; 20655 *) break;; 20656 esac 20657done 20658cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20659 20660lt_cv_prog_compiler_c_o_RC=yes 20661 20662# The else clause should only fire when bootstrapping the 20663# libtool distribution, otherwise you forgot to ship ltmain.sh 20664# with your package, and you will get complaints that there are 20665# no rules to generate ltmain.sh. 20666if test -f "$ltmain"; then 20667 # See if we are running on zsh, and set the options which allow our commands through 20668 # without removal of \ escapes. 20669 if test -n "${ZSH_VERSION+set}" ; then 20670 setopt NO_GLOB_SUBST 20671 fi 20672 # Now quote all the things that may contain metacharacters while being 20673 # careful not to overquote the AC_SUBSTed values. We take copies of the 20674 # variables and quote the copies for generation of the libtool script. 20675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20676 SED SHELL STRIP \ 20677 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20678 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20679 deplibs_check_method reload_flag reload_cmds need_locks \ 20680 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20681 lt_cv_sys_global_symbol_to_c_name_address \ 20682 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20683 old_postinstall_cmds old_postuninstall_cmds \ 20684 compiler_RC \ 20685 CC_RC \ 20686 LD_RC \ 20687 lt_prog_compiler_wl_RC \ 20688 lt_prog_compiler_pic_RC \ 20689 lt_prog_compiler_static_RC \ 20690 lt_prog_compiler_no_builtin_flag_RC \ 20691 export_dynamic_flag_spec_RC \ 20692 thread_safe_flag_spec_RC \ 20693 whole_archive_flag_spec_RC \ 20694 enable_shared_with_static_runtimes_RC \ 20695 old_archive_cmds_RC \ 20696 old_archive_from_new_cmds_RC \ 20697 predep_objects_RC \ 20698 postdep_objects_RC \ 20699 predeps_RC \ 20700 postdeps_RC \ 20701 compiler_lib_search_path_RC \ 20702 archive_cmds_RC \ 20703 archive_expsym_cmds_RC \ 20704 postinstall_cmds_RC \ 20705 postuninstall_cmds_RC \ 20706 old_archive_from_expsyms_cmds_RC \ 20707 allow_undefined_flag_RC \ 20708 no_undefined_flag_RC \ 20709 export_symbols_cmds_RC \ 20710 hardcode_libdir_flag_spec_RC \ 20711 hardcode_libdir_flag_spec_ld_RC \ 20712 hardcode_libdir_separator_RC \ 20713 hardcode_automatic_RC \ 20714 module_cmds_RC \ 20715 module_expsym_cmds_RC \ 20716 lt_cv_prog_compiler_c_o_RC \ 20717 fix_srcfile_path_RC \ 20718 exclude_expsyms_RC \ 20719 include_expsyms_RC; do 20720 20721 case $var in 20722 old_archive_cmds_RC | \ 20723 old_archive_from_new_cmds_RC | \ 20724 archive_cmds_RC | \ 20725 archive_expsym_cmds_RC | \ 20726 module_cmds_RC | \ 20727 module_expsym_cmds_RC | \ 20728 old_archive_from_expsyms_cmds_RC | \ 20729 export_symbols_cmds_RC | \ 20730 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20731 postinstall_cmds | postuninstall_cmds | \ 20732 old_postinstall_cmds | old_postuninstall_cmds | \ 20733 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20734 # Double-quote double-evaled strings. 20735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20736 ;; 20737 *) 20738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20739 ;; 20740 esac 20741 done 20742 20743 case $lt_echo in 20744 *'\$0 --fallback-echo"') 20745 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20746 ;; 20747 esac 20748 20749cfgfile="$ofile" 20750 20751 cat <<__EOF__ >> "$cfgfile" 20752# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20753 20754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20755 20756# Shell to use when invoking shell scripts. 20757SHELL=$lt_SHELL 20758 20759# Whether or not to build shared libraries. 20760build_libtool_libs=$enable_shared 20761 20762# Whether or not to build static libraries. 20763build_old_libs=$enable_static 20764 20765# Whether or not to add -lc for building shared libraries. 20766build_libtool_need_lc=$archive_cmds_need_lc_RC 20767 20768# Whether or not to disallow shared libs when runtime libs are static 20769allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20770 20771# Whether or not to optimize for fast installation. 20772fast_install=$enable_fast_install 20773 20774# The host system. 20775host_alias=$host_alias 20776host=$host 20777host_os=$host_os 20778 20779# The build system. 20780build_alias=$build_alias 20781build=$build 20782build_os=$build_os 20783 20784# An echo program that does not interpret backslashes. 20785echo=$lt_echo 20786 20787# The archiver. 20788AR=$lt_AR 20789AR_FLAGS=$lt_AR_FLAGS 20790 20791# A C compiler. 20792LTCC=$lt_LTCC 20793 20794# LTCC compiler flags. 20795LTCFLAGS=$lt_LTCFLAGS 20796 20797# A language-specific compiler. 20798CC=$lt_compiler_RC 20799 20800# Is the compiler the GNU C compiler? 20801with_gcc=$GCC_RC 20802 20803# An ERE matcher. 20804EGREP=$lt_EGREP 20805 20806# The linker used to build libraries. 20807LD=$lt_LD_RC 20808 20809# Whether we need hard or soft links. 20810LN_S=$lt_LN_S 20811 20812# A BSD-compatible nm program. 20813NM=$lt_NM 20814 20815# A symbol stripping program 20816STRIP=$lt_STRIP 20817 20818# Used to examine libraries when file_magic_cmd begins "file" 20819MAGIC_CMD=$MAGIC_CMD 20820 20821# Used on cygwin: DLL creation program. 20822DLLTOOL="$DLLTOOL" 20823 20824# Used on cygwin: object dumper. 20825OBJDUMP="$OBJDUMP" 20826 20827# Used on cygwin: assembler. 20828AS="$AS" 20829 20830# The name of the directory that contains temporary libtool files. 20831objdir=$objdir 20832 20833# How to create reloadable object files. 20834reload_flag=$lt_reload_flag 20835reload_cmds=$lt_reload_cmds 20836 20837# How to pass a linker flag through the compiler. 20838wl=$lt_lt_prog_compiler_wl_RC 20839 20840# Object file suffix (normally "o"). 20841objext="$ac_objext" 20842 20843# Old archive suffix (normally "a"). 20844libext="$libext" 20845 20846# Shared library suffix (normally ".so"). 20847shrext_cmds='$shrext_cmds' 20848 20849# Executable file suffix (normally ""). 20850exeext="$exeext" 20851 20852# Additional compiler flags for building library objects. 20853pic_flag=$lt_lt_prog_compiler_pic_RC 20854pic_mode=$pic_mode 20855 20856# What is the maximum length of a command? 20857max_cmd_len=$lt_cv_sys_max_cmd_len 20858 20859# Does compiler simultaneously support -c and -o options? 20860compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20861 20862# Must we lock files when doing compilation? 20863need_locks=$lt_need_locks 20864 20865# Do we need the lib prefix for modules? 20866need_lib_prefix=$need_lib_prefix 20867 20868# Do we need a version for libraries? 20869need_version=$need_version 20870 20871# Whether dlopen is supported. 20872dlopen_support=$enable_dlopen 20873 20874# Whether dlopen of programs is supported. 20875dlopen_self=$enable_dlopen_self 20876 20877# Whether dlopen of statically linked programs is supported. 20878dlopen_self_static=$enable_dlopen_self_static 20879 20880# Compiler flag to prevent dynamic linking. 20881link_static_flag=$lt_lt_prog_compiler_static_RC 20882 20883# Compiler flag to turn off builtin functions. 20884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20885 20886# Compiler flag to allow reflexive dlopens. 20887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20888 20889# Compiler flag to generate shared objects directly from archives. 20890whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20891 20892# Compiler flag to generate thread-safe objects. 20893thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20894 20895# Library versioning type. 20896version_type=$version_type 20897 20898# Format of library name prefix. 20899libname_spec=$lt_libname_spec 20900 20901# List of archive names. First name is the real one, the rest are links. 20902# The last name is the one that the linker finds with -lNAME. 20903library_names_spec=$lt_library_names_spec 20904 20905# The coded name of the library, if different from the real name. 20906soname_spec=$lt_soname_spec 20907 20908# Commands used to build and install an old-style archive. 20909RANLIB=$lt_RANLIB 20910old_archive_cmds=$lt_old_archive_cmds_RC 20911old_postinstall_cmds=$lt_old_postinstall_cmds 20912old_postuninstall_cmds=$lt_old_postuninstall_cmds 20913 20914# Create an old-style archive from a shared archive. 20915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20916 20917# Create a temporary old-style archive to link instead of a shared archive. 20918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20919 20920# Commands used to build and install a shared archive. 20921archive_cmds=$lt_archive_cmds_RC 20922archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20923postinstall_cmds=$lt_postinstall_cmds 20924postuninstall_cmds=$lt_postuninstall_cmds 20925 20926# Commands used to build a loadable module (assumed same as above if empty) 20927module_cmds=$lt_module_cmds_RC 20928module_expsym_cmds=$lt_module_expsym_cmds_RC 20929 20930# Commands to strip libraries. 20931old_striplib=$lt_old_striplib 20932striplib=$lt_striplib 20933 20934# Dependencies to place before the objects being linked to create a 20935# shared library. 20936predep_objects=$lt_predep_objects_RC 20937 20938# Dependencies to place after the objects being linked to create a 20939# shared library. 20940postdep_objects=$lt_postdep_objects_RC 20941 20942# Dependencies to place before the objects being linked to create a 20943# shared library. 20944predeps=$lt_predeps_RC 20945 20946# Dependencies to place after the objects being linked to create a 20947# shared library. 20948postdeps=$lt_postdeps_RC 20949 20950# The library search path used internally by the compiler when linking 20951# a shared library. 20952compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20953 20954# Method to check whether dependent libraries are shared objects. 20955deplibs_check_method=$lt_deplibs_check_method 20956 20957# Command to use when deplibs_check_method == file_magic. 20958file_magic_cmd=$lt_file_magic_cmd 20959 20960# Flag that allows shared libraries with undefined symbols to be built. 20961allow_undefined_flag=$lt_allow_undefined_flag_RC 20962 20963# Flag that forces no undefined symbols. 20964no_undefined_flag=$lt_no_undefined_flag_RC 20965 20966# Commands used to finish a libtool library installation in a directory. 20967finish_cmds=$lt_finish_cmds 20968 20969# Same as above, but a single script fragment to be evaled but not shown. 20970finish_eval=$lt_finish_eval 20971 20972# Take the output of nm and produce a listing of raw symbols and C names. 20973global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20974 20975# Transform the output of nm in a proper C declaration 20976global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20977 20978# Transform the output of nm in a C name address pair 20979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20980 20981# This is the shared library runtime path variable. 20982runpath_var=$runpath_var 20983 20984# This is the shared library path variable. 20985shlibpath_var=$shlibpath_var 20986 20987# Is shlibpath searched before the hard-coded library search path? 20988shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20989 20990# How to hardcode a shared library path into an executable. 20991hardcode_action=$hardcode_action_RC 20992 20993# Whether we should hardcode library paths into libraries. 20994hardcode_into_libs=$hardcode_into_libs 20995 20996# Flag to hardcode \$libdir into a binary during linking. 20997# This must work even if \$libdir does not exist. 20998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20999 21000# If ld is used when linking, flag to hardcode \$libdir into 21001# a binary during linking. This must work even if \$libdir does 21002# not exist. 21003hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21004 21005# Whether we need a single -rpath flag with a separated argument. 21006hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21007 21008# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21009# resulting binary. 21010hardcode_direct=$hardcode_direct_RC 21011 21012# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21013# resulting binary. 21014hardcode_minus_L=$hardcode_minus_L_RC 21015 21016# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21017# the resulting binary. 21018hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21019 21020# Set to yes if building a shared library automatically hardcodes DIR into the library 21021# and all subsequent libraries and executables linked against it. 21022hardcode_automatic=$hardcode_automatic_RC 21023 21024# Variables whose values should be saved in libtool wrapper scripts and 21025# restored at relink time. 21026variables_saved_for_relink="$variables_saved_for_relink" 21027 21028# Whether libtool must link a program against all its dependency libraries. 21029link_all_deplibs=$link_all_deplibs_RC 21030 21031# Compile-time system search path for libraries 21032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21033 21034# Run-time system search path for libraries 21035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21036 21037# Fix the shell variable \$srcfile for the compiler. 21038fix_srcfile_path=$lt_fix_srcfile_path 21039 21040# Set to yes if exported symbols are required. 21041always_export_symbols=$always_export_symbols_RC 21042 21043# The commands to list exported symbols. 21044export_symbols_cmds=$lt_export_symbols_cmds_RC 21045 21046# The commands to extract the exported symbol list from a shared archive. 21047extract_expsyms_cmds=$lt_extract_expsyms_cmds 21048 21049# Symbols that should not be listed in the preloaded symbols. 21050exclude_expsyms=$lt_exclude_expsyms_RC 21051 21052# Symbols that must always be exported. 21053include_expsyms=$lt_include_expsyms_RC 21054 21055# ### END LIBTOOL TAG CONFIG: $tagname 21056 21057__EOF__ 21058 21059 21060else 21061 # If there is no Makefile yet, we rely on a make rule to execute 21062 # `config.status --recheck' to rerun these tests and create the 21063 # libtool script then. 21064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21065 if test -f "$ltmain_in"; then 21066 test -f Makefile && make "$ltmain" 21067 fi 21068fi 21069 21070 21071ac_ext=c 21072ac_cpp='$CPP $CPPFLAGS' 21073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21075ac_compiler_gnu=$ac_cv_c_compiler_gnu 21076 21077CC="$lt_save_CC" 21078 21079 ;; 21080 21081 *) 21082 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21083echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21084 { (exit 1); exit 1; }; } 21085 ;; 21086 esac 21087 21088 # Append the new tag name to the list of available tags. 21089 if test -n "$tagname" ; then 21090 available_tags="$available_tags $tagname" 21091 fi 21092 fi 21093 done 21094 IFS="$lt_save_ifs" 21095 21096 # Now substitute the updated list of available tags. 21097 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21098 mv "${ofile}T" "$ofile" 21099 chmod +x "$ofile" 21100 else 21101 rm -f "${ofile}T" 21102 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21103echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21104 { (exit 1); exit 1; }; } 21105 fi 21106fi 21107 21108 21109 21110# This can be used to rebuild libtool when needed 21111LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21112 21113# Always use our own libtool. 21114LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21115 21116# Prevent multiple expansion 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138cat >confcache <<\_ACEOF 21139# This file is a shell script that caches the results of configure 21140# tests run on this system so they can be shared between configure 21141# scripts and configure runs, see configure's option --config-cache. 21142# It is not useful on other systems. If it contains results you don't 21143# want to keep, you may remove or edit it. 21144# 21145# config.status only pays attention to the cache file if you give it 21146# the --recheck option to rerun configure. 21147# 21148# `ac_cv_env_foo' variables (set or unset) will be overridden when 21149# loading this file, other *unset* `ac_cv_foo' will be assigned the 21150# following values. 21151 21152_ACEOF 21153 21154# The following way of writing the cache mishandles newlines in values, 21155# but we know of no workaround that is simple, portable, and efficient. 21156# So, we kill variables containing newlines. 21157# Ultrix sh set writes to stderr and can't be redirected directly, 21158# and sets the high bit in the cache file unless we assign to the vars. 21159( 21160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21161 eval ac_val=\$$ac_var 21162 case $ac_val in #( 21163 *${as_nl}*) 21164 case $ac_var in #( 21165 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21166echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21167 esac 21168 case $ac_var in #( 21169 _ | IFS | as_nl) ;; #( 21170 *) $as_unset $ac_var ;; 21171 esac ;; 21172 esac 21173 done 21174 21175 (set) 2>&1 | 21176 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21177 *${as_nl}ac_space=\ *) 21178 # `set' does not quote correctly, so add quotes (double-quote 21179 # substitution turns \\\\ into \\, and sed turns \\ into \). 21180 sed -n \ 21181 "s/'/'\\\\''/g; 21182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21183 ;; #( 21184 *) 21185 # `set' quotes correctly as required by POSIX, so do not add quotes. 21186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21187 ;; 21188 esac | 21189 sort 21190) | 21191 sed ' 21192 /^ac_cv_env_/b end 21193 t clear 21194 :clear 21195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21196 t end 21197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21198 :end' >>confcache 21199if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21200 if test -w "$cache_file"; then 21201 test "x$cache_file" != "x/dev/null" && 21202 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21203echo "$as_me: updating cache $cache_file" >&6;} 21204 cat confcache >$cache_file 21205 else 21206 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21207echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21208 fi 21209fi 21210rm -f confcache 21211 21212if test "x$GCC" = "xyes"; then 21213 case " $CFLAGS " in 21214 *\ -Wall\ *) ;; 21215 *) CFLAGS="$CFLAGS -Wall -ggdb" ;; 21216 esac 21217fi 21218 21219ac_config_files="$ac_config_files Makefile libdisasm/Makefile x86dis/Makefile test/Makefile doc/Makefile man/Makefile perl/Makefile" 21220 21221 21222cat >confcache <<\_ACEOF 21223# This file is a shell script that caches the results of configure 21224# tests run on this system so they can be shared between configure 21225# scripts and configure runs, see configure's option --config-cache. 21226# It is not useful on other systems. If it contains results you don't 21227# want to keep, you may remove or edit it. 21228# 21229# config.status only pays attention to the cache file if you give it 21230# the --recheck option to rerun configure. 21231# 21232# `ac_cv_env_foo' variables (set or unset) will be overridden when 21233# loading this file, other *unset* `ac_cv_foo' will be assigned the 21234# following values. 21235 21236_ACEOF 21237 21238# The following way of writing the cache mishandles newlines in values, 21239# but we know of no workaround that is simple, portable, and efficient. 21240# So, we kill variables containing newlines. 21241# Ultrix sh set writes to stderr and can't be redirected directly, 21242# and sets the high bit in the cache file unless we assign to the vars. 21243( 21244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21245 eval ac_val=\$$ac_var 21246 case $ac_val in #( 21247 *${as_nl}*) 21248 case $ac_var in #( 21249 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21250echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21251 esac 21252 case $ac_var in #( 21253 _ | IFS | as_nl) ;; #( 21254 *) $as_unset $ac_var ;; 21255 esac ;; 21256 esac 21257 done 21258 21259 (set) 2>&1 | 21260 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21261 *${as_nl}ac_space=\ *) 21262 # `set' does not quote correctly, so add quotes (double-quote 21263 # substitution turns \\\\ into \\, and sed turns \\ into \). 21264 sed -n \ 21265 "s/'/'\\\\''/g; 21266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21267 ;; #( 21268 *) 21269 # `set' quotes correctly as required by POSIX, so do not add quotes. 21270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21271 ;; 21272 esac | 21273 sort 21274) | 21275 sed ' 21276 /^ac_cv_env_/b end 21277 t clear 21278 :clear 21279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21280 t end 21281 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21282 :end' >>confcache 21283if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21284 if test -w "$cache_file"; then 21285 test "x$cache_file" != "x/dev/null" && 21286 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21287echo "$as_me: updating cache $cache_file" >&6;} 21288 cat confcache >$cache_file 21289 else 21290 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21291echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21292 fi 21293fi 21294rm -f confcache 21295 21296test "x$prefix" = xNONE && prefix=$ac_default_prefix 21297# Let make expand exec_prefix. 21298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21299 21300DEFS=-DHAVE_CONFIG_H 21301 21302ac_libobjs= 21303ac_ltlibobjs= 21304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21305 # 1. Remove the extension, and $U if already installed. 21306 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21307 ac_i=`echo "$ac_i" | sed "$ac_script"` 21308 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21309 # will be set to the directory where LIBOBJS objects are built. 21310 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21311 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21312done 21313LIBOBJS=$ac_libobjs 21314 21315LTLIBOBJS=$ac_ltlibobjs 21316 21317 21318if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21319 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21320Usually this means the macro was only invoked conditionally." >&5 21321echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21322Usually this means the macro was only invoked conditionally." >&2;} 21323 { (exit 1); exit 1; }; } 21324fi 21325if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21326 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21327Usually this means the macro was only invoked conditionally." >&5 21328echo "$as_me: error: conditional \"AMDEP\" was never defined. 21329Usually this means the macro was only invoked conditionally." >&2;} 21330 { (exit 1); exit 1; }; } 21331fi 21332if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21333 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21334Usually this means the macro was only invoked conditionally." >&5 21335echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21336Usually this means the macro was only invoked conditionally." >&2;} 21337 { (exit 1); exit 1; }; } 21338fi 21339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21340 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21341Usually this means the macro was only invoked conditionally." >&5 21342echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21343Usually this means the macro was only invoked conditionally." >&2;} 21344 { (exit 1); exit 1; }; } 21345fi 21346if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21347 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21348Usually this means the macro was only invoked conditionally." >&5 21349echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21350Usually this means the macro was only invoked conditionally." >&2;} 21351 { (exit 1); exit 1; }; } 21352fi 21353if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21354 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21355Usually this means the macro was only invoked conditionally." >&5 21356echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21357Usually this means the macro was only invoked conditionally." >&2;} 21358 { (exit 1); exit 1; }; } 21359fi 21360 21361: ${CONFIG_STATUS=./config.status} 21362ac_clean_files_save=$ac_clean_files 21363ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21364{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21365echo "$as_me: creating $CONFIG_STATUS" >&6;} 21366cat >$CONFIG_STATUS <<_ACEOF 21367#! $SHELL 21368# Generated by $as_me. 21369# Run this file to recreate the current configuration. 21370# Compiler output produced by configure, useful for debugging 21371# configure, is in config.log if it exists. 21372 21373debug=false 21374ac_cs_recheck=false 21375ac_cs_silent=false 21376SHELL=\${CONFIG_SHELL-$SHELL} 21377_ACEOF 21378 21379cat >>$CONFIG_STATUS <<\_ACEOF 21380## --------------------- ## 21381## M4sh Initialization. ## 21382## --------------------- ## 21383 21384# Be more Bourne compatible 21385DUALCASE=1; export DUALCASE # for MKS sh 21386if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21387 emulate sh 21388 NULLCMD=: 21389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21390 # is contrary to our usage. Disable this feature. 21391 alias -g '${1+"$@"}'='"$@"' 21392 setopt NO_GLOB_SUBST 21393else 21394 case `(set -o) 2>/dev/null` in 21395 *posix*) set -o posix ;; 21396esac 21397 21398fi 21399 21400 21401 21402 21403# PATH needs CR 21404# Avoid depending upon Character Ranges. 21405as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21406as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21407as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21408as_cr_digits='0123456789' 21409as_cr_alnum=$as_cr_Letters$as_cr_digits 21410 21411# The user is always right. 21412if test "${PATH_SEPARATOR+set}" != set; then 21413 echo "#! /bin/sh" >conf$$.sh 21414 echo "exit 0" >>conf$$.sh 21415 chmod +x conf$$.sh 21416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21417 PATH_SEPARATOR=';' 21418 else 21419 PATH_SEPARATOR=: 21420 fi 21421 rm -f conf$$.sh 21422fi 21423 21424# Support unset when possible. 21425if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21426 as_unset=unset 21427else 21428 as_unset=false 21429fi 21430 21431 21432# IFS 21433# We need space, tab and new line, in precisely that order. Quoting is 21434# there to prevent editors from complaining about space-tab. 21435# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21436# splitting by setting IFS to empty value.) 21437as_nl=' 21438' 21439IFS=" "" $as_nl" 21440 21441# Find who we are. Look in the path if we contain no directory separator. 21442case $0 in 21443 *[\\/]* ) as_myself=$0 ;; 21444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21445for as_dir in $PATH 21446do 21447 IFS=$as_save_IFS 21448 test -z "$as_dir" && as_dir=. 21449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21450done 21451IFS=$as_save_IFS 21452 21453 ;; 21454esac 21455# We did not find ourselves, most probably we were run as `sh COMMAND' 21456# in which case we are not to be found in the path. 21457if test "x$as_myself" = x; then 21458 as_myself=$0 21459fi 21460if test ! -f "$as_myself"; then 21461 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21462 { (exit 1); exit 1; } 21463fi 21464 21465# Work around bugs in pre-3.0 UWIN ksh. 21466for as_var in ENV MAIL MAILPATH 21467do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21468done 21469PS1='$ ' 21470PS2='> ' 21471PS4='+ ' 21472 21473# NLS nuisances. 21474for as_var in \ 21475 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21476 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21477 LC_TELEPHONE LC_TIME 21478do 21479 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21480 eval $as_var=C; export $as_var 21481 else 21482 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21483 fi 21484done 21485 21486# Required to use basename. 21487if expr a : '\(a\)' >/dev/null 2>&1 && 21488 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21489 as_expr=expr 21490else 21491 as_expr=false 21492fi 21493 21494if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21495 as_basename=basename 21496else 21497 as_basename=false 21498fi 21499 21500 21501# Name of the executable. 21502as_me=`$as_basename -- "$0" || 21503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21504 X"$0" : 'X\(//\)$' \| \ 21505 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21506echo X/"$0" | 21507 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21508 s//\1/ 21509 q 21510 } 21511 /^X\/\(\/\/\)$/{ 21512 s//\1/ 21513 q 21514 } 21515 /^X\/\(\/\).*/{ 21516 s//\1/ 21517 q 21518 } 21519 s/.*/./; q'` 21520 21521# CDPATH. 21522$as_unset CDPATH 21523 21524 21525 21526 as_lineno_1=$LINENO 21527 as_lineno_2=$LINENO 21528 test "x$as_lineno_1" != "x$as_lineno_2" && 21529 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21530 21531 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21532 # uniformly replaced by the line number. The first 'sed' inserts a 21533 # line-number line after each line using $LINENO; the second 'sed' 21534 # does the real work. The second script uses 'N' to pair each 21535 # line-number line with the line containing $LINENO, and appends 21536 # trailing '-' during substitution so that $LINENO is not a special 21537 # case at line end. 21538 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21539 # scripts with optimization help from Paolo Bonzini. Blame Lee 21540 # E. McMahon (1931-1989) for sed's syntax. :-) 21541 sed -n ' 21542 p 21543 /[$]LINENO/= 21544 ' <$as_myself | 21545 sed ' 21546 s/[$]LINENO.*/&-/ 21547 t lineno 21548 b 21549 :lineno 21550 N 21551 :loop 21552 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21553 t loop 21554 s/-\n.*// 21555 ' >$as_me.lineno && 21556 chmod +x "$as_me.lineno" || 21557 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21558 { (exit 1); exit 1; }; } 21559 21560 # Don't try to exec as it changes $[0], causing all sort of problems 21561 # (the dirname of $[0] is not the place where we might find the 21562 # original and so on. Autoconf is especially sensitive to this). 21563 . "./$as_me.lineno" 21564 # Exit status is that of the last command. 21565 exit 21566} 21567 21568 21569if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21570 as_dirname=dirname 21571else 21572 as_dirname=false 21573fi 21574 21575ECHO_C= ECHO_N= ECHO_T= 21576case `echo -n x` in 21577-n*) 21578 case `echo 'x\c'` in 21579 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21580 *) ECHO_C='\c';; 21581 esac;; 21582*) 21583 ECHO_N='-n';; 21584esac 21585 21586if expr a : '\(a\)' >/dev/null 2>&1 && 21587 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21588 as_expr=expr 21589else 21590 as_expr=false 21591fi 21592 21593rm -f conf$$ conf$$.exe conf$$.file 21594if test -d conf$$.dir; then 21595 rm -f conf$$.dir/conf$$.file 21596else 21597 rm -f conf$$.dir 21598 mkdir conf$$.dir 21599fi 21600echo >conf$$.file 21601if ln -s conf$$.file conf$$ 2>/dev/null; then 21602 as_ln_s='ln -s' 21603 # ... but there are two gotchas: 21604 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21605 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21606 # In both cases, we have to default to `cp -p'. 21607 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21608 as_ln_s='cp -p' 21609elif ln conf$$.file conf$$ 2>/dev/null; then 21610 as_ln_s=ln 21611else 21612 as_ln_s='cp -p' 21613fi 21614rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21615rmdir conf$$.dir 2>/dev/null 21616 21617if mkdir -p . 2>/dev/null; then 21618 as_mkdir_p=: 21619else 21620 test -d ./-p && rmdir ./-p 21621 as_mkdir_p=false 21622fi 21623 21624if test -x / >/dev/null 2>&1; then 21625 as_test_x='test -x' 21626else 21627 if ls -dL / >/dev/null 2>&1; then 21628 as_ls_L_option=L 21629 else 21630 as_ls_L_option= 21631 fi 21632 as_test_x=' 21633 eval sh -c '\'' 21634 if test -d "$1"; then 21635 test -d "$1/."; 21636 else 21637 case $1 in 21638 -*)set "./$1";; 21639 esac; 21640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21641 ???[sx]*):;;*)false;;esac;fi 21642 '\'' sh 21643 ' 21644fi 21645as_executable_p=$as_test_x 21646 21647# Sed expression to map a string onto a valid CPP name. 21648as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21649 21650# Sed expression to map a string onto a valid variable name. 21651as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21652 21653 21654exec 6>&1 21655 21656# Save the log message, to keep $[0] and so on meaningful, and to 21657# report actual input values of CONFIG_FILES etc. instead of their 21658# values after options handling. 21659ac_log=" 21660This file was extended by libdisasm $as_me 0.23, which was 21661generated by GNU Autoconf 2.61. Invocation command line was 21662 21663 CONFIG_FILES = $CONFIG_FILES 21664 CONFIG_HEADERS = $CONFIG_HEADERS 21665 CONFIG_LINKS = $CONFIG_LINKS 21666 CONFIG_COMMANDS = $CONFIG_COMMANDS 21667 $ $0 $@ 21668 21669on `(hostname || uname -n) 2>/dev/null | sed 1q` 21670" 21671 21672_ACEOF 21673 21674cat >>$CONFIG_STATUS <<_ACEOF 21675# Files that config.status was made for. 21676config_files="$ac_config_files" 21677config_headers="$ac_config_headers" 21678config_commands="$ac_config_commands" 21679 21680_ACEOF 21681 21682cat >>$CONFIG_STATUS <<\_ACEOF 21683ac_cs_usage="\ 21684\`$as_me' instantiates files from templates according to the 21685current configuration. 21686 21687Usage: $0 [OPTIONS] [FILE]... 21688 21689 -h, --help print this help, then exit 21690 -V, --version print version number and configuration settings, then exit 21691 -q, --quiet do not print progress messages 21692 -d, --debug don't remove temporary files 21693 --recheck update $as_me by reconfiguring in the same conditions 21694 --file=FILE[:TEMPLATE] 21695 instantiate the configuration file FILE 21696 --header=FILE[:TEMPLATE] 21697 instantiate the configuration header FILE 21698 21699Configuration files: 21700$config_files 21701 21702Configuration headers: 21703$config_headers 21704 21705Configuration commands: 21706$config_commands 21707 21708Report bugs to <bug-autoconf@gnu.org>." 21709 21710_ACEOF 21711cat >>$CONFIG_STATUS <<_ACEOF 21712ac_cs_version="\\ 21713libdisasm config.status 0.23 21714configured by $0, generated by GNU Autoconf 2.61, 21715 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21716 21717Copyright (C) 2006 Free Software Foundation, Inc. 21718This config.status script is free software; the Free Software Foundation 21719gives unlimited permission to copy, distribute and modify it." 21720 21721ac_pwd='$ac_pwd' 21722srcdir='$srcdir' 21723INSTALL='$INSTALL' 21724MKDIR_P='$MKDIR_P' 21725_ACEOF 21726 21727cat >>$CONFIG_STATUS <<\_ACEOF 21728# If no file are specified by the user, then we need to provide default 21729# value. By we need to know if files were specified by the user. 21730ac_need_defaults=: 21731while test $# != 0 21732do 21733 case $1 in 21734 --*=*) 21735 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21736 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21737 ac_shift=: 21738 ;; 21739 *) 21740 ac_option=$1 21741 ac_optarg=$2 21742 ac_shift=shift 21743 ;; 21744 esac 21745 21746 case $ac_option in 21747 # Handling of the options. 21748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21749 ac_cs_recheck=: ;; 21750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21751 echo "$ac_cs_version"; exit ;; 21752 --debug | --debu | --deb | --de | --d | -d ) 21753 debug=: ;; 21754 --file | --fil | --fi | --f ) 21755 $ac_shift 21756 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21757 ac_need_defaults=false;; 21758 --header | --heade | --head | --hea ) 21759 $ac_shift 21760 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21761 ac_need_defaults=false;; 21762 --he | --h) 21763 # Conflict between --help and --header 21764 { echo "$as_me: error: ambiguous option: $1 21765Try \`$0 --help' for more information." >&2 21766 { (exit 1); exit 1; }; };; 21767 --help | --hel | -h ) 21768 echo "$ac_cs_usage"; exit ;; 21769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21770 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21771 ac_cs_silent=: ;; 21772 21773 # This is an error. 21774 -*) { echo "$as_me: error: unrecognized option: $1 21775Try \`$0 --help' for more information." >&2 21776 { (exit 1); exit 1; }; } ;; 21777 21778 *) ac_config_targets="$ac_config_targets $1" 21779 ac_need_defaults=false ;; 21780 21781 esac 21782 shift 21783done 21784 21785ac_configure_extra_args= 21786 21787if $ac_cs_silent; then 21788 exec 6>/dev/null 21789 ac_configure_extra_args="$ac_configure_extra_args --silent" 21790fi 21791 21792_ACEOF 21793cat >>$CONFIG_STATUS <<_ACEOF 21794if \$ac_cs_recheck; then 21795 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21796 CONFIG_SHELL=$SHELL 21797 export CONFIG_SHELL 21798 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21799fi 21800 21801_ACEOF 21802cat >>$CONFIG_STATUS <<\_ACEOF 21803exec 5>>config.log 21804{ 21805 echo 21806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21807## Running $as_me. ## 21808_ASBOX 21809 echo "$ac_log" 21810} >&5 21811 21812_ACEOF 21813cat >>$CONFIG_STATUS <<_ACEOF 21814# 21815# INIT-COMMANDS 21816# 21817AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21818 21819_ACEOF 21820 21821cat >>$CONFIG_STATUS <<\_ACEOF 21822 21823# Handling of arguments. 21824for ac_config_target in $ac_config_targets 21825do 21826 case $ac_config_target in 21827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21829 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21830 "libdisasm/Makefile") CONFIG_FILES="$CONFIG_FILES libdisasm/Makefile" ;; 21831 "x86dis/Makefile") CONFIG_FILES="$CONFIG_FILES x86dis/Makefile" ;; 21832 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21833 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21834 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21835 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;; 21836 21837 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21838echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21839 { (exit 1); exit 1; }; };; 21840 esac 21841done 21842 21843 21844# If the user did not use the arguments to specify the items to instantiate, 21845# then the envvar interface is used. Set only those that are not. 21846# We use the long form for the default assignment because of an extremely 21847# bizarre bug on SunOS 4.1.3. 21848if $ac_need_defaults; then 21849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21850 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21851 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21852fi 21853 21854# Have a temporary directory for convenience. Make it in the build tree 21855# simply because there is no reason against having it here, and in addition, 21856# creating and moving files from /tmp can sometimes cause problems. 21857# Hook for its removal unless debugging. 21858# Note that there is a small window in which the directory will not be cleaned: 21859# after its creation but before its name has been assigned to `$tmp'. 21860$debug || 21861{ 21862 tmp= 21863 trap 'exit_status=$? 21864 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21865' 0 21866 trap '{ (exit 1); exit 1; }' 1 2 13 15 21867} 21868# Create a (secure) tmp directory for tmp files. 21869 21870{ 21871 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21872 test -n "$tmp" && test -d "$tmp" 21873} || 21874{ 21875 tmp=./conf$$-$RANDOM 21876 (umask 077 && mkdir "$tmp") 21877} || 21878{ 21879 echo "$me: cannot create a temporary directory in ." >&2 21880 { (exit 1); exit 1; } 21881} 21882 21883# 21884# Set up the sed scripts for CONFIG_FILES section. 21885# 21886 21887# No need to generate the scripts if there are no CONFIG_FILES. 21888# This happens for instance when ./config.status config.h 21889if test -n "$CONFIG_FILES"; then 21890 21891_ACEOF 21892 21893 21894 21895ac_delim='%!_!# ' 21896for ac_last_try in false false false false false :; do 21897 cat >conf$$subs.sed <<_ACEOF 21898SHELL!$SHELL$ac_delim 21899PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21900PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21901PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21902PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21903PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21904PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21905exec_prefix!$exec_prefix$ac_delim 21906prefix!$prefix$ac_delim 21907program_transform_name!$program_transform_name$ac_delim 21908bindir!$bindir$ac_delim 21909sbindir!$sbindir$ac_delim 21910libexecdir!$libexecdir$ac_delim 21911datarootdir!$datarootdir$ac_delim 21912datadir!$datadir$ac_delim 21913sysconfdir!$sysconfdir$ac_delim 21914sharedstatedir!$sharedstatedir$ac_delim 21915localstatedir!$localstatedir$ac_delim 21916includedir!$includedir$ac_delim 21917oldincludedir!$oldincludedir$ac_delim 21918docdir!$docdir$ac_delim 21919infodir!$infodir$ac_delim 21920htmldir!$htmldir$ac_delim 21921dvidir!$dvidir$ac_delim 21922pdfdir!$pdfdir$ac_delim 21923psdir!$psdir$ac_delim 21924libdir!$libdir$ac_delim 21925localedir!$localedir$ac_delim 21926mandir!$mandir$ac_delim 21927DEFS!$DEFS$ac_delim 21928ECHO_C!$ECHO_C$ac_delim 21929ECHO_N!$ECHO_N$ac_delim 21930ECHO_T!$ECHO_T$ac_delim 21931LIBS!$LIBS$ac_delim 21932build_alias!$build_alias$ac_delim 21933host_alias!$host_alias$ac_delim 21934target_alias!$target_alias$ac_delim 21935INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21936INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21937INSTALL_DATA!$INSTALL_DATA$ac_delim 21938am__isrc!$am__isrc$ac_delim 21939CYGPATH_W!$CYGPATH_W$ac_delim 21940PACKAGE!$PACKAGE$ac_delim 21941VERSION!$VERSION$ac_delim 21942ACLOCAL!$ACLOCAL$ac_delim 21943AUTOCONF!$AUTOCONF$ac_delim 21944AUTOMAKE!$AUTOMAKE$ac_delim 21945AUTOHEADER!$AUTOHEADER$ac_delim 21946MAKEINFO!$MAKEINFO$ac_delim 21947install_sh!$install_sh$ac_delim 21948STRIP!$STRIP$ac_delim 21949INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21950mkdir_p!$mkdir_p$ac_delim 21951AWK!$AWK$ac_delim 21952SET_MAKE!$SET_MAKE$ac_delim 21953am__leading_dot!$am__leading_dot$ac_delim 21954AMTAR!$AMTAR$ac_delim 21955am__tar!$am__tar$ac_delim 21956am__untar!$am__untar$ac_delim 21957MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21958MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21959MAINT!$MAINT$ac_delim 21960build!$build$ac_delim 21961build_cpu!$build_cpu$ac_delim 21962build_vendor!$build_vendor$ac_delim 21963build_os!$build_os$ac_delim 21964host!$host$ac_delim 21965host_cpu!$host_cpu$ac_delim 21966host_vendor!$host_vendor$ac_delim 21967host_os!$host_os$ac_delim 21968CC!$CC$ac_delim 21969CFLAGS!$CFLAGS$ac_delim 21970LDFLAGS!$LDFLAGS$ac_delim 21971CPPFLAGS!$CPPFLAGS$ac_delim 21972ac_ct_CC!$ac_ct_CC$ac_delim 21973EXEEXT!$EXEEXT$ac_delim 21974OBJEXT!$OBJEXT$ac_delim 21975DEPDIR!$DEPDIR$ac_delim 21976am__include!$am__include$ac_delim 21977am__quote!$am__quote$ac_delim 21978AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21979AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21980AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21981CCDEPMODE!$CCDEPMODE$ac_delim 21982am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21983am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21984CPP!$CPP$ac_delim 21985GREP!$GREP$ac_delim 21986EGREP!$EGREP$ac_delim 21987SED!$SED$ac_delim 21988LN_S!$LN_S$ac_delim 21989ECHO!$ECHO$ac_delim 21990AR!$AR$ac_delim 21991RANLIB!$RANLIB$ac_delim 21992CXX!$CXX$ac_delim 21993CXXFLAGS!$CXXFLAGS$ac_delim 21994ac_ct_CXX!$ac_ct_CXX$ac_delim 21995_ACEOF 21996 21997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21998 break 21999 elif $ac_last_try; then 22000 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22001echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22002 { (exit 1); exit 1; }; } 22003 else 22004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22005 fi 22006done 22007 22008ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22009if test -n "$ac_eof"; then 22010 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22011 ac_eof=`expr $ac_eof + 1` 22012fi 22013 22014cat >>$CONFIG_STATUS <<_ACEOF 22015cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22017_ACEOF 22018sed ' 22019s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22020s/^/s,@/; s/!/@,|#_!!_#|/ 22021:n 22022t n 22023s/'"$ac_delim"'$/,g/; t 22024s/$/\\/; p 22025N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22026' >>$CONFIG_STATUS <conf$$subs.sed 22027rm -f conf$$subs.sed 22028cat >>$CONFIG_STATUS <<_ACEOF 22029CEOF$ac_eof 22030_ACEOF 22031 22032 22033ac_delim='%!_!# ' 22034for ac_last_try in false false false false false :; do 22035 cat >conf$$subs.sed <<_ACEOF 22036CXXDEPMODE!$CXXDEPMODE$ac_delim 22037am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22038am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22039CXXCPP!$CXXCPP$ac_delim 22040F77!$F77$ac_delim 22041FFLAGS!$FFLAGS$ac_delim 22042ac_ct_F77!$ac_ct_F77$ac_delim 22043LIBTOOL!$LIBTOOL$ac_delim 22044LIBOBJS!$LIBOBJS$ac_delim 22045LTLIBOBJS!$LTLIBOBJS$ac_delim 22046_ACEOF 22047 22048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then 22049 break 22050 elif $ac_last_try; then 22051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22052echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22053 { (exit 1); exit 1; }; } 22054 else 22055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22056 fi 22057done 22058 22059ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22060if test -n "$ac_eof"; then 22061 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22062 ac_eof=`expr $ac_eof + 1` 22063fi 22064 22065cat >>$CONFIG_STATUS <<_ACEOF 22066cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22068_ACEOF 22069sed ' 22070s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22071s/^/s,@/; s/!/@,|#_!!_#|/ 22072:n 22073t n 22074s/'"$ac_delim"'$/,g/; t 22075s/$/\\/; p 22076N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22077' >>$CONFIG_STATUS <conf$$subs.sed 22078rm -f conf$$subs.sed 22079cat >>$CONFIG_STATUS <<_ACEOF 22080:end 22081s/|#_!!_#|//g 22082CEOF$ac_eof 22083_ACEOF 22084 22085 22086# VPATH may cause trouble with some makes, so we remove $(srcdir), 22087# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22088# trailing colons and then remove the whole line if VPATH becomes empty 22089# (actually we leave an empty line to preserve line numbers). 22090if test "x$srcdir" = x.; then 22091 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22092s/:*\$(srcdir):*/:/ 22093s/:*\${srcdir}:*/:/ 22094s/:*@srcdir@:*/:/ 22095s/^\([^=]*=[ ]*\):*/\1/ 22096s/:*$// 22097s/^[^=]*=[ ]*$// 22098}' 22099fi 22100 22101cat >>$CONFIG_STATUS <<\_ACEOF 22102fi # test -n "$CONFIG_FILES" 22103 22104 22105for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22106do 22107 case $ac_tag in 22108 :[FHLC]) ac_mode=$ac_tag; continue;; 22109 esac 22110 case $ac_mode$ac_tag in 22111 :[FHL]*:*);; 22112 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22113echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22114 { (exit 1); exit 1; }; };; 22115 :[FH]-) ac_tag=-:-;; 22116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22117 esac 22118 ac_save_IFS=$IFS 22119 IFS=: 22120 set x $ac_tag 22121 IFS=$ac_save_IFS 22122 shift 22123 ac_file=$1 22124 shift 22125 22126 case $ac_mode in 22127 :L) ac_source=$1;; 22128 :[FH]) 22129 ac_file_inputs= 22130 for ac_f 22131 do 22132 case $ac_f in 22133 -) ac_f="$tmp/stdin";; 22134 *) # Look for the file first in the build tree, then in the source tree 22135 # (if the path is not absolute). The absolute path cannot be DOS-style, 22136 # because $ac_f cannot contain `:'. 22137 test -f "$ac_f" || 22138 case $ac_f in 22139 [\\/$]*) false;; 22140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22141 esac || 22142 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22143echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22144 { (exit 1); exit 1; }; };; 22145 esac 22146 ac_file_inputs="$ac_file_inputs $ac_f" 22147 done 22148 22149 # Let's still pretend it is `configure' which instantiates (i.e., don't 22150 # use $as_me), people would be surprised to read: 22151 # /* config.h. Generated by config.status. */ 22152 configure_input="Generated from "`IFS=: 22153 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22154 if test x"$ac_file" != x-; then 22155 configure_input="$ac_file. $configure_input" 22156 { echo "$as_me:$LINENO: creating $ac_file" >&5 22157echo "$as_me: creating $ac_file" >&6;} 22158 fi 22159 22160 case $ac_tag in 22161 *:-:* | *:-) cat >"$tmp/stdin";; 22162 esac 22163 ;; 22164 esac 22165 22166 ac_dir=`$as_dirname -- "$ac_file" || 22167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22168 X"$ac_file" : 'X\(//\)[^/]' \| \ 22169 X"$ac_file" : 'X\(//\)$' \| \ 22170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22171echo X"$ac_file" | 22172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22173 s//\1/ 22174 q 22175 } 22176 /^X\(\/\/\)[^/].*/{ 22177 s//\1/ 22178 q 22179 } 22180 /^X\(\/\/\)$/{ 22181 s//\1/ 22182 q 22183 } 22184 /^X\(\/\).*/{ 22185 s//\1/ 22186 q 22187 } 22188 s/.*/./; q'` 22189 { as_dir="$ac_dir" 22190 case $as_dir in #( 22191 -*) as_dir=./$as_dir;; 22192 esac 22193 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22194 as_dirs= 22195 while :; do 22196 case $as_dir in #( 22197 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22198 *) as_qdir=$as_dir;; 22199 esac 22200 as_dirs="'$as_qdir' $as_dirs" 22201 as_dir=`$as_dirname -- "$as_dir" || 22202$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22203 X"$as_dir" : 'X\(//\)[^/]' \| \ 22204 X"$as_dir" : 'X\(//\)$' \| \ 22205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22206echo X"$as_dir" | 22207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22208 s//\1/ 22209 q 22210 } 22211 /^X\(\/\/\)[^/].*/{ 22212 s//\1/ 22213 q 22214 } 22215 /^X\(\/\/\)$/{ 22216 s//\1/ 22217 q 22218 } 22219 /^X\(\/\).*/{ 22220 s//\1/ 22221 q 22222 } 22223 s/.*/./; q'` 22224 test -d "$as_dir" && break 22225 done 22226 test -z "$as_dirs" || eval "mkdir $as_dirs" 22227 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22228echo "$as_me: error: cannot create directory $as_dir" >&2;} 22229 { (exit 1); exit 1; }; }; } 22230 ac_builddir=. 22231 22232case "$ac_dir" in 22233.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22234*) 22235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22236 # A ".." for each directory in $ac_dir_suffix. 22237 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22238 case $ac_top_builddir_sub in 22239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22241 esac ;; 22242esac 22243ac_abs_top_builddir=$ac_pwd 22244ac_abs_builddir=$ac_pwd$ac_dir_suffix 22245# for backward compatibility: 22246ac_top_builddir=$ac_top_build_prefix 22247 22248case $srcdir in 22249 .) # We are building in place. 22250 ac_srcdir=. 22251 ac_top_srcdir=$ac_top_builddir_sub 22252 ac_abs_top_srcdir=$ac_pwd ;; 22253 [\\/]* | ?:[\\/]* ) # Absolute name. 22254 ac_srcdir=$srcdir$ac_dir_suffix; 22255 ac_top_srcdir=$srcdir 22256 ac_abs_top_srcdir=$srcdir ;; 22257 *) # Relative name. 22258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22259 ac_top_srcdir=$ac_top_build_prefix$srcdir 22260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22261esac 22262ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22263 22264 22265 case $ac_mode in 22266 :F) 22267 # 22268 # CONFIG_FILE 22269 # 22270 22271 case $INSTALL in 22272 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22273 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22274 esac 22275 ac_MKDIR_P=$MKDIR_P 22276 case $MKDIR_P in 22277 [\\/$]* | ?:[\\/]* ) ;; 22278 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22279 esac 22280_ACEOF 22281 22282cat >>$CONFIG_STATUS <<\_ACEOF 22283# If the template does not know about datarootdir, expand it. 22284# FIXME: This hack should be removed a few years after 2.60. 22285ac_datarootdir_hack=; ac_datarootdir_seen= 22286 22287case `sed -n '/datarootdir/ { 22288 p 22289 q 22290} 22291/@datadir@/p 22292/@docdir@/p 22293/@infodir@/p 22294/@localedir@/p 22295/@mandir@/p 22296' $ac_file_inputs` in 22297*datarootdir*) ac_datarootdir_seen=yes;; 22298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22299 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22300echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22301_ACEOF 22302cat >>$CONFIG_STATUS <<_ACEOF 22303 ac_datarootdir_hack=' 22304 s&@datadir@&$datadir&g 22305 s&@docdir@&$docdir&g 22306 s&@infodir@&$infodir&g 22307 s&@localedir@&$localedir&g 22308 s&@mandir@&$mandir&g 22309 s&\\\${datarootdir}&$datarootdir&g' ;; 22310esac 22311_ACEOF 22312 22313# Neutralize VPATH when `$srcdir' = `.'. 22314# Shell code in configure.ac might set extrasub. 22315# FIXME: do we really want to maintain this feature? 22316cat >>$CONFIG_STATUS <<_ACEOF 22317 sed "$ac_vpsub 22318$extrasub 22319_ACEOF 22320cat >>$CONFIG_STATUS <<\_ACEOF 22321:t 22322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22323s&@configure_input@&$configure_input&;t t 22324s&@top_builddir@&$ac_top_builddir_sub&;t t 22325s&@srcdir@&$ac_srcdir&;t t 22326s&@abs_srcdir@&$ac_abs_srcdir&;t t 22327s&@top_srcdir@&$ac_top_srcdir&;t t 22328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22329s&@builddir@&$ac_builddir&;t t 22330s&@abs_builddir@&$ac_abs_builddir&;t t 22331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22332s&@INSTALL@&$ac_INSTALL&;t t 22333s&@MKDIR_P@&$ac_MKDIR_P&;t t 22334$ac_datarootdir_hack 22335" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22336 22337test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22338 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22339 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22340 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22341which seems to be undefined. Please make sure it is defined." >&5 22342echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22343which seems to be undefined. Please make sure it is defined." >&2;} 22344 22345 rm -f "$tmp/stdin" 22346 case $ac_file in 22347 -) cat "$tmp/out"; rm -f "$tmp/out";; 22348 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22349 esac 22350 ;; 22351 :H) 22352 # 22353 # CONFIG_HEADER 22354 # 22355_ACEOF 22356 22357# Transform confdefs.h into a sed script `conftest.defines', that 22358# substitutes the proper values into config.h.in to produce config.h. 22359rm -f conftest.defines conftest.tail 22360# First, append a space to every undef/define line, to ease matching. 22361echo 's/$/ /' >conftest.defines 22362# Then, protect against being on the right side of a sed subst, or in 22363# an unquoted here document, in config.status. If some macros were 22364# called several times there might be several #defines for the same 22365# symbol, which is useless. But do not sort them, since the last 22366# AC_DEFINE must be honored. 22367ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22368# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22369# NAME is the cpp macro being defined, VALUE is the value it is being given. 22370# PARAMS is the parameter list in the macro definition--in most cases, it's 22371# just an empty string. 22372ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22373ac_dB='\\)[ (].*,\\1define\\2' 22374ac_dC=' ' 22375ac_dD=' ,' 22376 22377uniq confdefs.h | 22378 sed -n ' 22379 t rset 22380 :rset 22381 s/^[ ]*#[ ]*define[ ][ ]*// 22382 t ok 22383 d 22384 :ok 22385 s/[\\&,]/\\&/g 22386 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22387 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22388 ' >>conftest.defines 22389 22390# Remove the space that was appended to ease matching. 22391# Then replace #undef with comments. This is necessary, for 22392# example, in the case of _POSIX_SOURCE, which is predefined and required 22393# on some systems where configure will not decide to define it. 22394# (The regexp can be short, since the line contains either #define or #undef.) 22395echo 's/ $// 22396s,^[ #]*u.*,/* & */,' >>conftest.defines 22397 22398# Break up conftest.defines: 22399ac_max_sed_lines=50 22400 22401# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22402# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22403# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22404# et cetera. 22405ac_in='$ac_file_inputs' 22406ac_out='"$tmp/out1"' 22407ac_nxt='"$tmp/out2"' 22408 22409while : 22410do 22411 # Write a here document: 22412 cat >>$CONFIG_STATUS <<_ACEOF 22413 # First, check the format of the line: 22414 cat >"\$tmp/defines.sed" <<\\CEOF 22415/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22416/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22417b 22418:def 22419_ACEOF 22420 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22421 echo 'CEOF 22422 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22423 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22424 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22425 grep . conftest.tail >/dev/null || break 22426 rm -f conftest.defines 22427 mv conftest.tail conftest.defines 22428done 22429rm -f conftest.defines conftest.tail 22430 22431echo "ac_result=$ac_in" >>$CONFIG_STATUS 22432cat >>$CONFIG_STATUS <<\_ACEOF 22433 if test x"$ac_file" != x-; then 22434 echo "/* $configure_input */" >"$tmp/config.h" 22435 cat "$ac_result" >>"$tmp/config.h" 22436 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22437 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22438echo "$as_me: $ac_file is unchanged" >&6;} 22439 else 22440 rm -f $ac_file 22441 mv "$tmp/config.h" $ac_file 22442 fi 22443 else 22444 echo "/* $configure_input */" 22445 cat "$ac_result" 22446 fi 22447 rm -f "$tmp/out12" 22448# Compute $ac_file's index in $config_headers. 22449_am_stamp_count=1 22450for _am_header in $config_headers :; do 22451 case $_am_header in 22452 $ac_file | $ac_file:* ) 22453 break ;; 22454 * ) 22455 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22456 esac 22457done 22458echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22459$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22460 X$ac_file : 'X\(//\)[^/]' \| \ 22461 X$ac_file : 'X\(//\)$' \| \ 22462 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22463echo X$ac_file | 22464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22465 s//\1/ 22466 q 22467 } 22468 /^X\(\/\/\)[^/].*/{ 22469 s//\1/ 22470 q 22471 } 22472 /^X\(\/\/\)$/{ 22473 s//\1/ 22474 q 22475 } 22476 /^X\(\/\).*/{ 22477 s//\1/ 22478 q 22479 } 22480 s/.*/./; q'`/stamp-h$_am_stamp_count 22481 ;; 22482 22483 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22484echo "$as_me: executing $ac_file commands" >&6;} 22485 ;; 22486 esac 22487 22488 22489 case $ac_file$ac_mode in 22490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22491 # Strip MF so we end up with the name of the file. 22492 mf=`echo "$mf" | sed -e 's/:.*$//'` 22493 # Check whether this is an Automake generated Makefile or not. 22494 # We used to match only the files named `Makefile.in', but 22495 # some people rename them; so instead we look at the file content. 22496 # Grep'ing the first line is not enough: some people post-process 22497 # each Makefile.in and add a new line on top of each file to say so. 22498 # Grep'ing the whole file is not good either: AIX grep has a line 22499 # limit of 2048, but all sed's we know have understand at least 4000. 22500 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22501 dirpart=`$as_dirname -- "$mf" || 22502$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22503 X"$mf" : 'X\(//\)[^/]' \| \ 22504 X"$mf" : 'X\(//\)$' \| \ 22505 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22506echo X"$mf" | 22507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22508 s//\1/ 22509 q 22510 } 22511 /^X\(\/\/\)[^/].*/{ 22512 s//\1/ 22513 q 22514 } 22515 /^X\(\/\/\)$/{ 22516 s//\1/ 22517 q 22518 } 22519 /^X\(\/\).*/{ 22520 s//\1/ 22521 q 22522 } 22523 s/.*/./; q'` 22524 else 22525 continue 22526 fi 22527 # Extract the definition of DEPDIR, am__include, and am__quote 22528 # from the Makefile without running `make'. 22529 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22530 test -z "$DEPDIR" && continue 22531 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22532 test -z "am__include" && continue 22533 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22534 # When using ansi2knr, U may be empty or an underscore; expand it 22535 U=`sed -n 's/^U = //p' < "$mf"` 22536 # Find all dependency output files, they are included files with 22537 # $(DEPDIR) in their names. We invoke sed twice because it is the 22538 # simplest approach to changing $(DEPDIR) to its actual value in the 22539 # expansion. 22540 for file in `sed -n " 22541 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22543 # Make sure the directory exists. 22544 test -f "$dirpart/$file" && continue 22545 fdir=`$as_dirname -- "$file" || 22546$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22547 X"$file" : 'X\(//\)[^/]' \| \ 22548 X"$file" : 'X\(//\)$' \| \ 22549 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22550echo X"$file" | 22551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22552 s//\1/ 22553 q 22554 } 22555 /^X\(\/\/\)[^/].*/{ 22556 s//\1/ 22557 q 22558 } 22559 /^X\(\/\/\)$/{ 22560 s//\1/ 22561 q 22562 } 22563 /^X\(\/\).*/{ 22564 s//\1/ 22565 q 22566 } 22567 s/.*/./; q'` 22568 { as_dir=$dirpart/$fdir 22569 case $as_dir in #( 22570 -*) as_dir=./$as_dir;; 22571 esac 22572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22573 as_dirs= 22574 while :; do 22575 case $as_dir in #( 22576 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22577 *) as_qdir=$as_dir;; 22578 esac 22579 as_dirs="'$as_qdir' $as_dirs" 22580 as_dir=`$as_dirname -- "$as_dir" || 22581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22582 X"$as_dir" : 'X\(//\)[^/]' \| \ 22583 X"$as_dir" : 'X\(//\)$' \| \ 22584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22585echo X"$as_dir" | 22586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22587 s//\1/ 22588 q 22589 } 22590 /^X\(\/\/\)[^/].*/{ 22591 s//\1/ 22592 q 22593 } 22594 /^X\(\/\/\)$/{ 22595 s//\1/ 22596 q 22597 } 22598 /^X\(\/\).*/{ 22599 s//\1/ 22600 q 22601 } 22602 s/.*/./; q'` 22603 test -d "$as_dir" && break 22604 done 22605 test -z "$as_dirs" || eval "mkdir $as_dirs" 22606 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22607echo "$as_me: error: cannot create directory $as_dir" >&2;} 22608 { (exit 1); exit 1; }; }; } 22609 # echo "creating $dirpart/$file" 22610 echo '# dummy' > "$dirpart/$file" 22611 done 22612done 22613 ;; 22614 22615 esac 22616done # for ac_tag 22617 22618 22619{ (exit 0); exit 0; } 22620_ACEOF 22621chmod +x $CONFIG_STATUS 22622ac_clean_files=$ac_clean_files_save 22623 22624 22625# configure is writing to config.log, and then calls config.status. 22626# config.status does its own redirection, appending to config.log. 22627# Unfortunately, on DOS this fails, as config.log is still kept open 22628# by configure, so config.status won't be able to write to it; its 22629# output is simply discarded. So we exec the FD to /dev/null, 22630# effectively closing config.log, so it can be properly (re)opened and 22631# appended to by config.status. When coming back to configure, we 22632# need to make the FD available again. 22633if test "$no_create" != yes; then 22634 ac_cs_success=: 22635 ac_config_status_args= 22636 test "$silent" = yes && 22637 ac_config_status_args="$ac_config_status_args --quiet" 22638 exec 5>/dev/null 22639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22640 exec 5>>config.log 22641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22642 # would make configure fail if this is the last instruction. 22643 $ac_cs_success || { (exit 1); exit 1; } 22644fi 22645 22646 22647