2 # From configure.ac Revision: 1.58 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for gc 7.2alpha4.
6 # Report bugs to <Hans.Boehm@hp.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir=.
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
280 CONFIG_SHELL=$as_shell
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
308 as_func_ret_success () {
311 as_func_ret_failure () {
316 if as_func_success; then
320 echo as_func_success failed.
323 if as_func_failure; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
484 # Exit status is that of the last command.
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
495 ECHO_C= ECHO_N= ECHO_T=
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 elif ln conf$$.file conf$$ 2>/dev/null; then
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
542 test -d ./-p && rmdir ./-p
546 if test -x / >/dev/null 2>&1; then
549 if ls -dL / >/dev/null 2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 # Check that we are running under the correct shell.
579 SHELL=${CONFIG_SHELL-/bin/sh}
583 # Remove one level of quotation (which was required for Make).
584 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
589 if test "X$1" = X--no-reexec; then
590 # Discard the --no-reexec flag, and continue.
592 elif test "X$1" = X--fallback-echo; then
593 # Avoid inline document here, it may be left over
595 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
596 # Yippee, $echo works!
599 # Restart under the correct shell.
600 exec $SHELL "$0" --no-reexec ${1+"$@"}
603 if test "X$1" = X--fallback-echo; then
604 # used as fallback echo
612 # The HP-UX ksh and POSIX shell print the target directory to stdout
614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616 if test -z "$ECHO"; then
617 if test "X${echo_test_string+set}" != Xset; then
618 # find a string as large as possible, as long as the shell can cope with it
619 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
622 echo_test_string=`eval $cmd` &&
623 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
630 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
639 # So, first we look for a working echo in the user's PATH.
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
654 if test "X$echo" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
661 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
672 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
685 echo="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 echo="$CONFIG_SHELL $0 --fallback-echo"
692 # maybe with a smaller string...
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
708 # Oops. We lost completely, so just stick with echo.
717 # Copy echo and quote the copy suitably for passing to libtool from
718 # the Makefile, instead of quoting the original, which is used later.
720 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
727 tagnames=${tagnames+${tagnames},}CXX
729 tagnames=${tagnames+${tagnames},}F77
731 exec 7<&0 </dev/null 6>&1
734 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
735 # so uname gets run too.
736 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
741 ac_default_prefix=/usr/local
743 ac_config_libobj_dir=.
749 SHELL=${CONFIG_SHELL-/bin/sh}
751 # Identity of this package.
754 PACKAGE_VERSION='7.2alpha4'
755 PACKAGE_STRING='gc 7.2alpha4'
756 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
758 ac_unique_file="gcj_mlc.c"
759 # Factoring default headers for most tests.
760 ac_includes_default="\
762 #ifdef HAVE_SYS_TYPES_H
763 # include <sys/types.h>
765 #ifdef HAVE_SYS_STAT_H
766 # include <sys/stat.h>
772 # ifdef HAVE_STDLIB_H
777 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
782 #ifdef HAVE_STRINGS_H
783 # include <strings.h>
785 #ifdef HAVE_INTTYPES_H
786 # include <inttypes.h>
795 enable_option_checking=no
796 ac_subst_vars='LTLIBOBJS
798 NEED_ATOMIC_OPS_ASM_FALSE
799 NEED_ATOMIC_OPS_ASM_TRUE
800 USE_INTERNAL_LIBATOMIC_OPS_FALSE
801 USE_INTERNAL_LIBATOMIC_OPS_TRUE
809 ENABLE_GCJ_SUPPORT_FALSE
810 ENABLE_GCJ_SUPPORT_TRUE
837 OPENBSD_THREADS_FALSE
851 am__fastdepCCAS_FALSE
880 MAINTAINER_MODE_FALSE
890 INSTALL_STRIP_PROGRAM
944 program_transform_name
956 enable_option_checking
957 enable_maintainer_mode
958 enable_dependency_tracking
974 enable_java_finalization
975 enable_atomic_uncollectable
976 enable_redirect_malloc
982 ac_precious_vars='build_alias
999 ac_subdirs_all='libatomic_ops'
1001 # Initialize some variables set by options.
1003 ac_init_version=false
1004 ac_unrecognized_opts=
1005 ac_unrecognized_sep=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file=/dev/null
1015 program_transform_name=s,x,x,
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir='${exec_prefix}/bin'
1030 sbindir='${exec_prefix}/sbin'
1031 libexecdir='${exec_prefix}/libexec'
1032 datarootdir='${prefix}/share'
1033 datadir='${datarootdir}'
1034 sysconfdir='${prefix}/etc'
1035 sharedstatedir='${prefix}/com'
1036 localstatedir='${prefix}/var'
1037 includedir='${prefix}/include'
1038 oldincludedir='/usr/include'
1039 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1040 infodir='${datarootdir}/info'
1045 libdir='${exec_prefix}/lib'
1046 localedir='${datarootdir}/locale'
1047 mandir='${datarootdir}/man'
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\$ac_option
1061 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065 # Accept the important Cygnus configure options, so we can diagnose typos.
1067 case $ac_dashdash$ac_option in
1071 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1074 bindir=$ac_optarg ;;
1076 -build | --build | --buil | --bui | --bu)
1077 ac_prev=build_alias ;;
1078 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1079 build_alias=$ac_optarg ;;
1081 -cache-file | --cache-file | --cache-fil | --cache-fi \
1082 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1083 ac_prev=cache_file ;;
1084 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1085 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1086 cache_file=$ac_optarg ;;
1088 --config-cache | -C)
1089 cache_file=config.cache ;;
1091 -datadir | --datadir | --datadi | --datad)
1093 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1094 datadir=$ac_optarg ;;
1096 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1097 | --dataroo | --dataro | --datar)
1098 ac_prev=datarootdir ;;
1099 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1100 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1101 datarootdir=$ac_optarg ;;
1103 -disable-* | --disable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_$ac_useropt"
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval enable_$ac_useropt=no ;;
1120 -docdir | --docdir | --docdi | --doc | --do)
1122 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123 docdir=$ac_optarg ;;
1125 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128 dvidir=$ac_optarg ;;
1130 -enable-* | --enable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=\$ac_optarg ;;
1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149 | --exec | --exe | --ex)
1150 ac_prev=exec_prefix ;;
1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153 | --exec=* | --exe=* | --ex=*)
1154 exec_prefix=$ac_optarg ;;
1156 -gas | --gas | --ga | --g)
1157 # Obsolete; use --with-gas.
1160 -help | --help | --hel | --he | -h)
1161 ac_init_help=long ;;
1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163 ac_init_help=recursive ;;
1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165 ac_init_help=short ;;
1167 -host | --host | --hos | --ho)
1168 ac_prev=host_alias ;;
1169 -host=* | --host=* | --hos=* | --ho=*)
1170 host_alias=$ac_optarg ;;
1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176 htmldir=$ac_optarg ;;
1178 -includedir | --includedir | --includedi | --included | --include \
1179 | --includ | --inclu | --incl | --inc)
1180 ac_prev=includedir ;;
1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182 | --includ=* | --inclu=* | --incl=* | --inc=*)
1183 includedir=$ac_optarg ;;
1185 -infodir | --infodir | --infodi | --infod | --info | --inf)
1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188 infodir=$ac_optarg ;;
1190 -libdir | --libdir | --libdi | --libd)
1192 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193 libdir=$ac_optarg ;;
1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196 | --libexe | --libex | --libe)
1197 ac_prev=libexecdir ;;
1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199 | --libexe=* | --libex=* | --libe=*)
1200 libexecdir=$ac_optarg ;;
1202 -localedir | --localedir | --localedi | --localed | --locale)
1203 ac_prev=localedir ;;
1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205 localedir=$ac_optarg ;;
1207 -localstatedir | --localstatedir | --localstatedi | --localstated \
1208 | --localstate | --localstat | --localsta | --localst | --locals)
1209 ac_prev=localstatedir ;;
1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212 localstatedir=$ac_optarg ;;
1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217 mandir=$ac_optarg ;;
1219 -nfp | --nfp | --nf)
1220 # Obsolete; use --without-fp.
1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224 | --no-cr | --no-c | -n)
1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233 | --oldin | --oldi | --old | --ol | --o)
1234 ac_prev=oldincludedir ;;
1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238 oldincludedir=$ac_optarg ;;
1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243 prefix=$ac_optarg ;;
1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246 | --program-pre | --program-pr | --program-p)
1247 ac_prev=program_prefix ;;
1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250 program_prefix=$ac_optarg ;;
1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253 | --program-suf | --program-su | --program-s)
1254 ac_prev=program_suffix ;;
1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257 program_suffix=$ac_optarg ;;
1259 -program-transform-name | --program-transform-name \
1260 | --program-transform-nam | --program-transform-na \
1261 | --program-transform-n | --program-transform- \
1262 | --program-transform | --program-transfor \
1263 | --program-transfo | --program-transf \
1264 | --program-trans | --program-tran \
1265 | --progr-tra | --program-tr | --program-t)
1266 ac_prev=program_transform_name ;;
1267 -program-transform-name=* | --program-transform-name=* \
1268 | --program-transform-nam=* | --program-transform-na=* \
1269 | --program-transform-n=* | --program-transform-=* \
1270 | --program-transform=* | --program-transfor=* \
1271 | --program-transfo=* | --program-transf=* \
1272 | --program-trans=* | --program-tran=* \
1273 | --progr-tra=* | --program-tr=* | --program-t=*)
1274 program_transform_name=$ac_optarg ;;
1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279 pdfdir=$ac_optarg ;;
1281 -psdir | --psdir | --psdi | --psd | --ps)
1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1309 -site=* | --site=* | --sit=*)
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1340 { (exit 1); exit 1; }; }
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1350 eval with_$ac_useropt=\$ac_optarg ;;
1352 -without-* | --without-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1357 { (exit 1); exit 1; }; }
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1367 eval with_$ac_useropt=no ;;
1370 # Obsolete; use --with-x.
1373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374 | --x-incl | --x-inc | --x-in | --x-i)
1375 ac_prev=x_includes ;;
1376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378 x_includes=$ac_optarg ;;
1380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382 ac_prev=x_libraries ;;
1383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385 x_libraries=$ac_optarg ;;
1387 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1388 Try \`$0 --help' for more information." >&2
1389 { (exit 1); exit 1; }; }
1393 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1396 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1397 { (exit 1); exit 1; }; }
1398 eval $ac_envvar=\$ac_optarg
1399 export $ac_envvar ;;
1402 # FIXME: should be removed in autoconf 3.0.
1403 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1412 if test -n "$ac_prev"; then
1413 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1415 { (exit 1); exit 1; }; }
1418 if test -n "$ac_unrecognized_opts"; then
1419 case $enable_option_checking in
1421 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1422 { (exit 1); exit 1; }; } ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1427 # Check all directory arguments for consistency.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1433 eval ac_val=\$$ac_var
1434 # Remove trailing slashes.
1437 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\$ac_val;;
1440 # Be sure to have absolute directory names.
1442 [\\/$]* | ?:[\\/]* ) continue;;
1443 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1445 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1446 { (exit 1); exit 1; }; }
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1454 target=$target_alias
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458 if test "x$build_alias" = x; then
1459 cross_compiling=maybe
1460 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1461 If a cross compiler is detected then cross compile mode will be used." >&2
1462 elif test "x$build_alias" != "x$host_alias"; then
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470 test "$silent" = yes && exec 6>/dev/null
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1477 { (exit 1); exit 1; }; }
1478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1480 { (exit 1); exit 1; }; }
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485 ac_srcdir_defaulted=yes
1486 # Try the directory containing this script, then the parent directory.
1487 ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489 X"$as_myself" : 'X\(//\)[^/]' \| \
1490 X"$as_myself" : 'X\(//\)$' \| \
1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1515 ac_srcdir_defaulted=no
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1520 { (exit 1); exit 1; }; }
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1525 { (exit 1); exit 1; }; }
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1551 \`configure' configures gc 7.2alpha4 to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1614 --build=BUILD configure for building on BUILD [guessed]
1615 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1616 --target=TARGET configure for building compilers for TARGET [HOST]
1620 if test -n "$ac_init_help"; then
1621 case $ac_init_help in
1622 short | recursive ) echo "Configuration of gc 7.2alpha4:";;
1627 --disable-option-checking ignore unrecognized --enable/--with options
1628 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1629 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1630 --enable-maintainer-mode enable make rules and dependencies not useful
1631 (and sometimes confusing) to the casual installer
1632 --disable-dependency-tracking speeds up one-time build
1633 --enable-dependency-tracking do not reject slow dependency extractors
1634 --enable-boehm-threads=TYPE
1635 choose threading package
1636 --enable-parallel-mark parallelize marking and free list construction
1637 --enable-cplusplus install C++ support
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --disable-gcj-support Disable support for gcj.
1644 --enable-gc-debug include full support for pointer backtracing etc.
1645 --disable-java-finalization
1646 Disable support for java finalization.
1647 --disable-atomic-uncollectible
1648 Disable support for atomic uncollectible allocation.
1649 --enable-redirect-malloc
1650 Redirect malloc and friends to GC routines
1651 --enable-large-config Optimize for large (> 100 MB) heap or root set
1652 --enable-gc-assertions collector-internal assertion checking
1653 --enable-munmap=N return page to the os if empty for N collections
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-ecos enable runtime eCos target support
1659 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1660 --with-pic try to use only PIC/non-PIC objects [default=use
1662 --with-tags[=TAGS] include additional configurations [automatic]
1663 --with-target-subdir=SUBDIR
1664 configuring with a cross compiler
1665 --with-cross-host=HOST configuring with a cross compiler
1666 --with-libatomic-ops=yes|no|check
1667 Use a pre-installed libatomic_ops? (default: check)
1669 Some influential environment variables:
1670 CC C compiler command
1671 CFLAGS C compiler flags
1672 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1673 nonstandard directory <lib dir>
1674 LIBS libraries to pass to the linker, e.g. -l<library>
1675 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1676 you have headers in a nonstandard directory <include dir>
1677 CXX C++ compiler command
1678 CXXFLAGS C++ compiler flags
1679 CCAS assembler compiler command (defaults to CC)
1680 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1682 CXXCPP C++ preprocessor
1683 F77 Fortran 77 compiler command
1684 FFLAGS Fortran 77 compiler flags
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to <Hans.Boehm@hp.com>.
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1719 .) # We are building in place.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1752 gc configure 7.2alpha4
1753 generated by GNU Autoconf 2.63
1755 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1756 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1762 cat >config.log <<_ACEOF
1763 This file contains any messages produced by compilers while
1764 running configure, to aid debugging if configure makes a mistake.
1766 It was created by gc $as_me 7.2alpha4, which was
1767 generated by GNU Autoconf 2.63. Invocation command line was
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 $as_echo "PATH: $as_dir"
1819 # Keep a trace of the command line.
1820 # Strip out --no-create and --no-recursion so they do not pile up.
1821 # Strip out --silent because we don't want to record it for future runs.
1822 # Also quote any args containing shell meta-characters.
1823 # Make two passes to allow for proper duplicate-argument suppression.
1827 ac_must_keep_next=false
1833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1835 | -silent | --silent | --silen | --sile | --sil)
1838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1843 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1844 if test $ac_must_keep_next = true; then
1845 ac_must_keep_next=false # Got value, back to normal.
1848 *=* | --config-cache | -C | -disable-* | --disable-* \
1849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1851 | -with-* | --with-* | -without-* | --without-* | --x)
1852 case "$ac_configure_args0 " in
1853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856 -* ) ac_must_keep_next=true ;;
1859 ac_configure_args="$ac_configure_args '$ac_arg'"
1864 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1865 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1867 # When interrupted or exit'd, cleanup temporary files, and complete
1868 # config.log. We remove comments because anyway the quotes in there
1869 # would cause problems or look ugly.
1870 # WARNING: Use '\'' to represent an apostrophe within the trap.
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872 trap 'exit_status=$?
1873 # Save into config.log some information that might help in debugging.
1878 ## ---------------- ##
1879 ## Cache variables. ##
1880 ## ---------------- ##
1883 # The following way of writing the cache mishandles newlines in values,
1885 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886 eval ac_val=\$$ac_var
1890 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894 _ | IFS | as_nl) ;; #(
1895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896 *) $as_unset $ac_var ;;
1901 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902 *${as_nl}ac_space=\ *)
1904 "s/'\''/'\''\\\\'\'''\''/g;
1905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1916 ## ----------------- ##
1917 ## Output variables. ##
1918 ## ----------------- ##
1921 for ac_var in $ac_subst_vars
1923 eval ac_val=\$$ac_var
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 $as_echo "$ac_var='\''$ac_val'\''"
1931 if test -n "$ac_subst_files"; then
1933 ## ------------------- ##
1934 ## File substitutions. ##
1935 ## ------------------- ##
1938 for ac_var in $ac_subst_files
1940 eval ac_val=\$$ac_var
1942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1944 $as_echo "$ac_var='\''$ac_val'\''"
1949 if test -s confdefs.h; then
1959 test "$ac_signal" != 0 &&
1960 $as_echo "$as_me: caught signal $ac_signal"
1961 $as_echo "$as_me: exit $exit_status"
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1975 # Predefined preprocessor variables.
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_NAME "$PACKAGE_NAME"
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_STRING "$PACKAGE_STRING"
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2006 if test -n "$CONFIG_SITE"; then
2007 ac_site_file1=$CONFIG_SITE
2008 elif test "x$prefix" != xNONE; then
2009 ac_site_file1=$prefix/share/config.site
2010 ac_site_file2=$prefix/etc/config.site
2012 ac_site_file1=$ac_default_prefix/share/config.site
2013 ac_site_file2=$ac_default_prefix/etc/config.site
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2017 test "x$ac_site_file" = xNONE && continue
2018 if test -r "$ac_site_file"; then
2019 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021 sed 's/^/| /' "$ac_site_file" >&5
2026 if test -r "$cache_file"; then
2027 # Some versions of bash will fail to source /dev/null (special
2028 # files actually), so we avoid doing that.
2029 if test -f "$cache_file"; then
2030 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2031 $as_echo "$as_me: loading cache $cache_file" >&6;}
2033 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2034 *) . "./$cache_file";;
2038 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2039 $as_echo "$as_me: creating cache $cache_file" >&6;}
2043 # Check that the precious variables saved in the cache have kept the same
2045 ac_cache_corrupted=false
2046 for ac_var in $ac_precious_vars; do
2047 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2048 eval ac_new_set=\$ac_env_${ac_var}_set
2049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2050 eval ac_new_val=\$ac_env_${ac_var}_value
2051 case $ac_old_set,$ac_new_set in
2053 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2057 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2059 ac_cache_corrupted=: ;;
2062 if test "x$ac_old_val" != "x$ac_new_val"; then
2063 # differences in whitespace do not lead to failure.
2064 ac_old_val_w=`echo x $ac_old_val`
2065 ac_new_val_w=`echo x $ac_new_val`
2066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2067 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2068 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2069 ac_cache_corrupted=:
2071 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2072 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2073 eval $ac_var=\$ac_old_val
2075 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2076 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2077 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2078 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2081 # Pass precious variables to config.status.
2082 if test "$ac_new_set" = set; then
2084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 *) ac_arg=$ac_var=$ac_new_val ;;
2087 case " $ac_configure_args " in
2088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2089 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2093 if $ac_cache_corrupted; then
2094 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2097 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2098 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2099 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2100 { (exit 1); exit 1; }; }
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2138 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2139 if test -f "$ac_dir/install-sh"; then
2141 ac_install_sh="$ac_aux_dir/install-sh -c"
2143 elif test -f "$ac_dir/install.sh"; then
2145 ac_install_sh="$ac_aux_dir/install.sh -c"
2147 elif test -f "$ac_dir/shtool"; then
2149 ac_install_sh="$ac_aux_dir/shtool install -c"
2153 if test -z "$ac_aux_dir"; then
2154 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2155 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2156 { (exit 1); exit 1; }; }
2159 # These three variables are undocumented and unsupported,
2160 # and are intended to be withdrawn in a future Autoconf release.
2161 # They can cause serious problems if a builder's source tree is in a directory
2162 # whose full name contains unusual characters.
2163 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2164 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2165 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2168 # Make sure we can run config.sub.
2169 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2170 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2171 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2172 { (exit 1); exit 1; }; }
2174 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2175 $as_echo_n "checking build system type... " >&6; }
2176 if test "${ac_cv_build+set}" = set; then
2177 $as_echo_n "(cached) " >&6
2179 ac_build_alias=$build_alias
2180 test "x$ac_build_alias" = x &&
2181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2182 test "x$ac_build_alias" = x &&
2183 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2184 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2185 { (exit 1); exit 1; }; }
2186 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2187 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2188 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2192 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2193 $as_echo "$ac_cv_build" >&6; }
2194 case $ac_cv_build in
2196 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2197 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2198 { (exit 1); exit 1; }; };;
2201 ac_save_IFS=$IFS; IFS='-'
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2214 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2215 $as_echo_n "checking host system type... " >&6; }
2216 if test "${ac_cv_host+set}" = set; then
2217 $as_echo_n "(cached) " >&6
2219 if test "x$host_alias" = x; then
2220 ac_cv_host=$ac_cv_build
2222 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2223 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2224 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2225 { (exit 1); exit 1; }; }
2229 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2230 $as_echo "$ac_cv_host" >&6; }
2233 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2234 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2235 { (exit 1); exit 1; }; };;
2238 ac_save_IFS=$IFS; IFS='-'
2244 # Remember, the first character of IFS is used to create $*,
2245 # except with old shells:
2248 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2251 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2252 $as_echo_n "checking target system type... " >&6; }
2253 if test "${ac_cv_target+set}" = set; then
2254 $as_echo_n "(cached) " >&6
2256 if test "x$target_alias" = x; then
2257 ac_cv_target=$ac_cv_host
2259 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2260 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2261 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2266 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2267 $as_echo "$ac_cv_target" >&6; }
2268 case $ac_cv_target in
2270 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2271 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2272 { (exit 1); exit 1; }; };;
2274 target=$ac_cv_target
2275 ac_save_IFS=$IFS; IFS='-'
2281 # Remember, the first character of IFS is used to create $*,
2282 # except with old shells:
2285 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2288 # The aliases save the names the user supplied, while $host etc.
2289 # will get canonicalized.
2290 test -n "$target_alias" &&
2291 test "$program_prefix$program_suffix$program_transform_name" = \
2293 program_prefix=${target_alias}-
2297 am__api_version='1.10'
2299 # Find a good install program. We prefer a C program (faster),
2300 # so one script is as good as another. But avoid the broken or
2301 # incompatible versions:
2302 # SysV /etc/install, /usr/sbin/install
2303 # SunOS /usr/etc/install
2304 # IRIX /sbin/install
2306 # AmigaOS /C/install, which installs bootblocks on floppy discs
2307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2310 # OS/2's system install, which has a completely different semantic
2311 # ./install, which can be erroneously created by make from ./install.sh.
2312 # Reject install programs that cannot install multiple files.
2313 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2314 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2315 if test -z "$INSTALL"; then
2316 if test "${ac_cv_path_install+set}" = set; then
2317 $as_echo_n "(cached) " >&6
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 # Account for people who put trailing slashes in PATH elements.
2326 ./ | .// | /cC/* | \
2327 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2328 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2331 # OSF1 and SCO ODT 3.0 have their own names for install.
2332 # Don't use installbsd from OSF since it installs stuff as root
2334 for ac_prog in ginstall scoinst install; do
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2337 if test $ac_prog = install &&
2338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339 # AIX install. It has an incompatible calling convention.
2341 elif test $ac_prog = install &&
2342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2343 # program-specific install script used by HP pwplus--don't use.
2346 rm -rf conftest.one conftest.two conftest.dir
2347 echo one > conftest.one
2348 echo two > conftest.two
2350 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2351 test -s conftest.one && test -s conftest.two &&
2352 test -s conftest.dir/conftest.one &&
2353 test -s conftest.dir/conftest.two
2355 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2368 rm -rf conftest.one conftest.two conftest.dir
2371 if test "${ac_cv_path_install+set}" = set; then
2372 INSTALL=$ac_cv_path_install
2374 # As a last resort, use the slow shell script. Don't cache a
2375 # value for INSTALL within a source directory, because that will
2376 # break other packages using the cache if that directory is
2377 # removed, or if the value is a relative name.
2378 INSTALL=$ac_install_sh
2381 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2382 $as_echo "$INSTALL" >&6; }
2384 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2385 # It thinks the first close brace ends the variable substitution.
2386 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2388 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2390 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2392 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2393 $as_echo_n "checking whether build environment is sane... " >&6; }
2396 echo timestamp > conftest.file
2397 # Do `set' in a subshell so we don't clobber the current shell's
2398 # arguments. Must try -L first in case configure is actually a
2399 # symlink; some systems play weird games with the mod time of symlinks
2400 # (eg FreeBSD returns the mod time of the symlink's containing
2403 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2404 if test "$*" = "X"; then
2406 set X `ls -t $srcdir/configure conftest.file`
2409 if test "$*" != "X $srcdir/configure conftest.file" \
2410 && test "$*" != "X conftest.file $srcdir/configure"; then
2412 # If neither matched, then we have a broken ls. This can happen
2413 # if, for instance, CONFIG_SHELL is bash and it inherits a
2414 # broken ls alias from the environment. This has actually
2415 # happened. Such a system could not be considered "sane".
2416 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2417 alias in your environment" >&5
2418 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2419 alias in your environment" >&2;}
2420 { (exit 1); exit 1; }; }
2423 test "$2" = conftest.file
2429 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2430 Check your system clock" >&5
2431 $as_echo "$as_me: error: newly created file is older than distributed files!
2432 Check your system clock" >&2;}
2433 { (exit 1); exit 1; }; }
2435 { $as_echo "$as_me:$LINENO: result: yes" >&5
2436 $as_echo "yes" >&6; }
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2450 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2451 # Use eval to expand $SHELL
2452 if eval "$MISSING --run true"; then
2453 am_missing_run="$MISSING --run "
2456 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2457 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2462 if test -z "$MKDIR_P"; then
2463 if test "${ac_cv_path_mkdir+set}" = set; then
2464 $as_echo_n "(cached) " >&6
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2470 test -z "$as_dir" && as_dir=.
2471 for ac_prog in mkdir gmkdir; do
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2474 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2475 'mkdir (GNU coreutils) '* | \
2476 'mkdir (coreutils) '* | \
2477 'mkdir (fileutils) '4.1*)
2478 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2488 if test "${ac_cv_path_mkdir+set}" = set; then
2489 MKDIR_P="$ac_cv_path_mkdir -p"
2491 # As a last resort, use the slow shell script. Don't cache a
2492 # value for MKDIR_P within a source directory, because that will
2493 # break other packages using the cache if that directory is
2494 # removed, or if the value is a relative name.
2495 test -d ./--version && rmdir ./--version
2496 MKDIR_P="$ac_install_sh -d"
2499 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2500 $as_echo "$MKDIR_P" >&6; }
2504 [\\/$]* | ?:[\\/]*) ;;
2505 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2508 for ac_prog in gawk mawk nawk awk
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_AWK+set}" = set; then
2515 $as_echo_n "(cached) " >&6
2517 if test -n "$AWK"; then
2518 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_AWK="$ac_prog"
2528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 if test -n "$AWK"; then
2539 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2540 $as_echo "$AWK" >&6; }
2542 { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2547 test -n "$AWK" && break
2550 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2554 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2555 $as_echo_n "(cached) " >&6
2557 cat >conftest.make <<\_ACEOF
2560 @echo '@@@%%%=$(MAKE)=@@@%%%'
2562 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2565 eval ac_cv_prog_make_${ac_make}_set=yes;;
2567 eval ac_cv_prog_make_${ac_make}_set=no;;
2571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2572 { $as_echo "$as_me:$LINENO: result: yes" >&5
2573 $as_echo "yes" >&6; }
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2578 SET_MAKE="MAKE=${MAKE-make}"
2581 rm -rf .tst 2>/dev/null
2582 mkdir .tst 2>/dev/null
2583 if test -d .tst; then
2588 rmdir .tst 2>/dev/null
2590 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2591 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2592 # is not polluted with repeated "-I."
2593 am__isrc=' -I$(srcdir)'
2594 # test to see if srcdir already configured
2595 if test -f $srcdir/config.status; then
2596 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2597 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2598 { (exit 1); exit 1; }; }
2602 # test whether we have cygpath
2603 if test -z "$CYGPATH_W"; then
2604 if (cygpath --version) >/dev/null 2>/dev/null; then
2605 CYGPATH_W='cygpath -w'
2612 # Define the identity of the package.
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE "$PACKAGE"
2622 cat >>confdefs.h <<_ACEOF
2623 #define VERSION "$VERSION"
2626 # Some tools Automake needs.
2628 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2631 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2634 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2637 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2640 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2642 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2644 # Installed binaries are usually stripped using `strip' when the user
2645 # run `make install-strip'. However `strip' might not be the right
2646 # tool to use in cross-compilation environments, therefore Automake
2647 # will honor the `STRIP' environment variable to overrule this program.
2648 if test "$cross_compiling" != no; then
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}strip; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_STRIP+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$STRIP"; then
2658 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 STRIP=$ac_cv_prog_STRIP
2678 if test -n "$STRIP"; then
2679 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2680 $as_echo "$STRIP" >&6; }
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2688 if test -z "$ac_cv_prog_STRIP"; then
2690 # Extract the first word of "strip", so it can be a program name with args.
2691 set dummy strip; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$ac_ct_STRIP"; then
2698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_ac_ct_STRIP="strip"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2718 if test -n "$ac_ct_STRIP"; then
2719 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2720 $as_echo "$ac_ct_STRIP" >&6; }
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2726 if test "x$ac_ct_STRIP" = x; then
2729 case $cross_compiling:$ac_tool_warned in
2731 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2738 STRIP="$ac_cv_prog_STRIP"
2742 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2744 # We need awk for the "check" target. The system "awk" is bad on
2746 # Always define AMTAR for backward compatibility.
2748 AMTAR=${AMTAR-"${am_missing_run}tar"}
2750 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2756 ac_config_headers="$ac_config_headers include/private/config.h"
2758 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760 # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then
2762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2764 USE_MAINTAINER_MODE=no
2767 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769 if test $USE_MAINTAINER_MODE = yes; then
2770 MAINTAINER_MODE_TRUE=
2771 MAINTAINER_MODE_FALSE='#'
2773 MAINTAINER_MODE_TRUE='#'
2774 MAINTAINER_MODE_FALSE=
2777 MAINT=$MAINTAINER_MODE_TRUE
2784 DEPDIR="${am__leading_dot}deps"
2786 ac_config_commands="$ac_config_commands depfiles"
2789 am_make=${MAKE-make}
2790 cat > confinc << 'END'
2795 # If we don't find an include directive, just comment out the code.
2796 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2797 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2801 # First try GNU make style include.
2802 echo "include confinc" > confmf
2803 # We grep out `Entering directory' and `Leaving directory'
2804 # messages which can occur if `w' ends up in MAKEFLAGS.
2805 # In particular we don't look at `^make:' because GNU make might
2806 # be invoked under some other name (usually "gmake"), in which
2807 # case it prints its new name instead of `make'.
2808 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2813 # Now try BSD make style include.
2814 if test "$am__include" = "#"; then
2815 echo '.include "confinc"' > confmf
2816 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2817 am__include=.include
2824 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2825 $as_echo "$_am_result" >&6; }
2826 rm -f confinc confmf
2828 # Check whether --enable-dependency-tracking was given.
2829 if test "${enable_dependency_tracking+set}" = set; then
2830 enableval=$enable_dependency_tracking;
2833 if test "x$enable_dependency_tracking" != xno; then
2834 am_depcomp="$ac_aux_dir/depcomp"
2837 if test "x$enable_dependency_tracking" != xno; then
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2884 { $as_echo "$as_me:$LINENO: result: no" >&5
2885 $as_echo "no" >&6; }
2890 if test -z "$ac_cv_prog_CC"; then
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2924 { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2943 if test -z "$CC"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="${ac_tool_prefix}cc"
2963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:$LINENO: result: no" >&5
2978 $as_echo "no" >&6; }
2984 if test -z "$CC"; then
2985 # Extract the first word of "cc", so it can be a program name with args.
2986 set dummy cc; ac_word=$2
2987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004 ac_prog_rejected=yes
3008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test $ac_prog_rejected = yes; then
3016 # We found a bogon in the path, so make sure we never use it.
3017 set dummy $ac_cv_prog_CC
3019 if test $# != 0; then
3020 # We chose a different compiler from the bogus one.
3021 # However, it has the same basename, so the bogon will be chosen
3022 # first if we set CC to just the basename; use the full file name.
3024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 for ac_prog in cl.exe
3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3076 { $as_echo "$as_me:$LINENO: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$CC" && break
3084 if test -z "$CC"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_ac_ct_CC="$ac_prog"
3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$ac_ct_CC" && break
3128 if test "x$ac_ct_CC" = x; then
3131 case $cross_compiling:$ac_tool_warned in
3133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3144 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3147 See \`config.log' for more details." >&5
3148 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details." >&2;}
3150 { (exit 1); exit 1; }; }; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3156 { (ac_try="$ac_compiler --version >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163 (eval "$ac_compiler --version >&5") 2>&5
3165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }
3167 { (ac_try="$ac_compiler -v >&5"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174 (eval "$ac_compiler -v >&5") 2>&5
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }
3178 { (ac_try="$ac_compiler -V >&5"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184 $as_echo "$ac_try_echo") >&5
3185 (eval "$ac_compiler -V >&5") 2>&5
3187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3205 ac_clean_files_save=$ac_clean_files
3206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3207 # Try to create an executable without -o first, disregard a.out.
3208 # It will help us diagnose broken compilers, and finding out an intuition
3210 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3211 $as_echo_n "checking for C compiler default output file name... " >&6; }
3212 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3214 # The possible output files:
3215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218 for ac_file in $ac_files
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3227 if { (ac_try="$ac_link_default"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233 $as_echo "$ac_try_echo") >&5
3234 (eval "$ac_link_default") 2>&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3241 # so that the user can short-circuit this test for compilers unknown to
3243 for ac_file in $ac_files ''
3245 test -f "$ac_file" || continue
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250 # We found the default executable, but exeext='' is most
3254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258 # We set ac_cv_exeext here because the later test for it is not
3259 # safe: cross compilers may not add the suffix if given an `-o'
3260 # argument, so we may need to know it at that point already.
3261 # Even if this section looks crufty: it has the advantage of
3268 test "$ac_cv_exeext" = no && ac_cv_exeext=
3274 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3275 $as_echo "$ac_file" >&6; }
3276 if test -z "$ac_file"; then
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3283 See \`config.log' for more details." >&5
3284 $as_echo "$as_me: error: C compiler cannot create executables
3285 See \`config.log' for more details." >&2;}
3286 { (exit 77); exit 77; }; }; }
3289 ac_exeext=$ac_cv_exeext
3291 # Check that the compiler produces executables we can run. If not, either
3292 # the compiler is broken, or we cross compile.
3293 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3294 $as_echo_n "checking whether the C compiler works... " >&6; }
3295 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3296 # If not cross compiling, check that we can run a simple program.
3297 if test "$cross_compiling" != yes; then
3298 if { ac_try='./$ac_file'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_try") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3311 if test "$cross_compiling" = maybe; then
3314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3317 If you meant to cross compile, use \`--host'.
3318 See \`config.log' for more details." >&5
3319 $as_echo "$as_me: error: cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }; }
3326 { $as_echo "$as_me:$LINENO: result: yes" >&5
3327 $as_echo "yes" >&6; }
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3336 $as_echo "$cross_compiling" >&6; }
3338 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3339 $as_echo_n "checking for suffix of executables... " >&6; }
3340 if { (ac_try="$ac_link"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_link") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." >&5
3369 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }; }
3374 rm -f conftest$ac_cv_exeext
3375 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3376 $as_echo "$ac_cv_exeext" >&6; }
3378 rm -f conftest.$ac_ext
3379 EXEEXT=$ac_cv_exeext
3381 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3382 $as_echo_n "checking for suffix of object files... " >&6; }
3383 if test "${ac_cv_objext+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.o conftest.obj
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compile") 2>&5
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 for ac_file in conftest.o conftest.obj conftest.*; do
3414 test -f "$ac_file" || continue;
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3422 $as_echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3428 See \`config.log' for more details." >&5
3429 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3430 See \`config.log' for more details." >&2;}
3431 { (exit 1); exit 1; }; }; }
3434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3440 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3443 $as_echo_n "(cached) " >&6
3445 cat >conftest.$ac_ext <<_ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if test "${ac_cv_prog_cc_g+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3507 ac_save_c_werror_flag=$ac_c_werror_flag
3508 ac_c_werror_flag=yes
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3536 grep -v '^ *+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } && {
3541 test -z "$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3543 } && test -s conftest.$ac_objext; then
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3572 $as_echo "$ac_try_echo") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3641 $as_echo "$ac_cv_prog_cc_g" >&6; }
3642 if test "$ac_test_CFLAGS" = set; then
3643 CFLAGS=$ac_save_CFLAGS
3644 elif test $ac_cv_prog_cc_g = yes; then
3645 if test "$GCC" = yes; then
3651 if test "$GCC" = yes; then
3657 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3658 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659 if test "${ac_cv_prog_cc_c89+set}" = set; then
3660 $as_echo_n "(cached) " >&6
3662 ac_cv_prog_cc_c89=no
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3672 #include <sys/types.h>
3673 #include <sys/stat.h>
3674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3675 struct buf { int x; };
3676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3677 static char *e (p, i)
3683 static char *f (char * (*g) (char **, int), char **p, ...)
3688 s = g (p, va_arg (v,int));
3693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3694 function prototypes and stuff, but not '\xHH' hex character constants.
3695 These don't provoke an error unfortunately, instead are silently treated
3696 as 'x'. The following induces an error, until -std is added to get
3697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3698 array size at least. It's necessary to write '\x00'==0 to get something
3699 that's true only with -std. */
3700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3703 inside strings and character constants. */
3705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3707 int test (int i, double x);
3708 struct s1 {int (*f) (int a);};
3709 struct s2 {int (*f) (double a);};
3710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3724 CC="$ac_save_CC $ac_arg"
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_c89=$ac_arg
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3751 rm -f core conftest.err conftest.$ac_objext
3752 test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 rm -f conftest.$ac_ext
3759 case "x$ac_cv_prog_cc_c89" in
3761 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3762 $as_echo "none needed" >&6; } ;;
3764 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3765 $as_echo "unsupported" >&6; } ;;
3767 CC="$CC $ac_cv_prog_cc_c89"
3768 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3769 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 depcc="$CC" am_compiler_list=
3781 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3784 $as_echo_n "(cached) " >&6
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named `D' -- because `-MD' means `put the output
3793 # Copy depcomp to subdir because otherwise we won't find it if we're
3794 # using a relative directory.
3795 cp "$am_depcomp" conftest.dir
3797 # We will build objects and dependencies in a subdirectory because
3798 # it helps to detect inapplicable dependency modes. For instance
3799 # both Tru64's cc and ICC support -MD to output dependencies as a
3800 # side effect of compilation, but ICC will put the dependencies in
3801 # the current directory while Tru64 will put them in the object
3805 am_cv_CC_dependencies_compiler_type=none
3806 if test "$am_compiler_list" = ""; then
3807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828 # after this tag, mechanisms are not by side-effect, so they'll
3829 # only be used when explicitly requested
3830 if test "x$enable_dependency_tracking" = xyes; then
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this.
3841 if depmode=$depmode \
3842 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3844 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3845 >/dev/null 2>conftest.err &&
3846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3848 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3850 # icc doesn't choke on unknown options, it will just issue warnings
3851 # or remarks (even with -Werror). So we grep stderr for any message
3852 # that says an option was ignored or not supported.
3853 # When given -MP, icc 7.0 and 7.1 complain thusly:
3854 # icc: Command line warning: ignoring option '-M'; no argument required
3855 # The diagnosis changed in icc 8.0:
3856 # icc: Command line remark: option '-MP' not supported
3857 if (grep 'ignoring option' conftest.err ||
3858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3859 am_cv_CC_dependencies_compiler_type=$depmode
3868 am_cv_CC_dependencies_compiler_type=none
3872 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3873 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3874 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3877 test "x$enable_dependency_tracking" != xno \
3878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3880 am__fastdepCC_FALSE='#'
3882 am__fastdepCC_TRUE='#'
3883 am__fastdepCC_FALSE=
3887 if test "x$CC" != xcc; then
3888 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3889 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3891 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3892 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3894 set dummy $CC; ac_cc=`$as_echo "$2" |
3895 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3896 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3897 $as_echo_n "(cached) " >&6
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 # Make sure it works both with $CC and with simple cc.
3915 # We do the test twice because some compilers refuse to overwrite an
3916 # existing .o file with -o, though they will create one.
3917 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3919 if { (case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925 (eval "$ac_try") 2>&5
3927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934 $as_echo "$ac_try_echo") >&5
3935 (eval "$ac_try") 2>&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); };
3940 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3941 if test "x$CC" != xcc; then
3942 # Test first that cc exists at all.
3943 if { ac_try='cc -c conftest.$ac_ext >&5'
3944 { (case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950 (eval "$ac_try") 2>&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3956 if { (case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3961 $as_echo "$ac_try_echo") >&5
3962 (eval "$ac_try") 2>&5
3964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
3966 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_try") 2>&5
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); };
3980 # cc exists but doesn't like -o.
3981 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3986 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3988 rm -f core conftest*
3991 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3992 { $as_echo "$as_me:$LINENO: result: yes" >&5
3993 $as_echo "yes" >&6; }
3995 { $as_echo "$as_me:$LINENO: result: no" >&5
3996 $as_echo "no" >&6; }
3998 cat >>confdefs.h <<\_ACEOF
3999 #define NO_MINUS_C_MINUS_O 1
4004 # FIXME: we rely on the cache variable name because
4005 # there is no other way.
4007 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4008 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4009 # Losing compiler, so override with the script.
4010 # FIXME: It is wrong to rewrite CC.
4011 # But if we don't then we get into trouble of one sort or another.
4012 # A longer-term fix would be to have automake use am__CC in this case,
4013 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014 CC="$am_aux_dir/compile $CC"
4019 ac_cpp='$CXXCPP $CPPFLAGS'
4020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4023 if test -z "$CXX"; then
4024 if test -n "$CCC"; then
4027 if test -n "$ac_tool_prefix"; then
4028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_CXX+set}" = set; then
4035 $as_echo_n "(cached) " >&6
4037 if test -n "$CXX"; then
4038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test -n "$CXX"; then
4059 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4060 $as_echo "$CXX" >&6; }
4062 { $as_echo "$as_me:$LINENO: result: no" >&5
4063 $as_echo "no" >&6; }
4067 test -n "$CXX" && break
4070 if test -z "$CXX"; then
4072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4074 # Extract the first word of "$ac_prog", so it can be a program name with args.
4075 set dummy $ac_prog; ac_word=$2
4076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4081 if test -n "$ac_ct_CXX"; then
4082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_ac_ct_CXX="$ac_prog"
4092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4102 if test -n "$ac_ct_CXX"; then
4103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4104 $as_echo "$ac_ct_CXX" >&6; }
4106 { $as_echo "$as_me:$LINENO: result: no" >&5
4107 $as_echo "no" >&6; }
4111 test -n "$ac_ct_CXX" && break
4114 if test "x$ac_ct_CXX" = x; then
4117 case $cross_compiling:$ac_tool_warned in
4119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4121 ac_tool_warned=yes ;;
4129 # Provide some information about the compiler.
4130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4133 { (ac_try="$ac_compiler --version >&5"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compiler --version >&5") 2>&5
4142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }
4144 { (ac_try="$ac_compiler -v >&5"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4150 $as_echo "$ac_try_echo") >&5
4151 (eval "$ac_compiler -v >&5") 2>&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }
4155 { (ac_try="$ac_compiler -V >&5"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161 $as_echo "$ac_try_echo") >&5
4162 (eval "$ac_compiler -V >&5") 2>&5
4164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }
4167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4170 $as_echo_n "(cached) " >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198 (eval "$ac_compile") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_cxx_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest.$ac_objext; then
4210 $as_echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4227 ac_test_CXXFLAGS=${CXXFLAGS+set}
4228 ac_save_CXXFLAGS=$CXXFLAGS
4229 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4231 if test "${ac_cv_prog_cxx_g+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4235 ac_cxx_werror_flag=yes
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_cxx_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_prog_cxx_g=yes
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4299 $as_echo "$ac_try_echo") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && {
4307 test -z "$ac_cxx_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest.$ac_objext; then
4312 $as_echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340 (eval "$ac_compile") 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && {
4347 test -z "$ac_cxx_werror_flag" ||
4348 test ! -s conftest.err
4349 } && test -s conftest.$ac_objext; then
4350 ac_cv_prog_cxx_g=yes
4352 $as_echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370 CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372 if test "$GXX" = yes; then
4378 if test "$GXX" = yes; then
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 depcc="$CXX" am_compiler_list=
4392 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4393 $as_echo_n "checking dependency style of $depcc... " >&6; }
4394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4395 $as_echo_n "(cached) " >&6
4397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4398 # We make a subdir and do the tests there. Otherwise we can end up
4399 # making bogus files that we don't know about and never remove. For
4400 # instance it was reported that on HP-UX the gcc test will end up
4401 # making a dummy file named `D' -- because `-MD' means `put the output
4404 # Copy depcomp to subdir because otherwise we won't find it if we're
4405 # using a relative directory.
4406 cp "$am_depcomp" conftest.dir
4408 # We will build objects and dependencies in a subdirectory because
4409 # it helps to detect inapplicable dependency modes. For instance
4410 # both Tru64's cc and ICC support -MD to output dependencies as a
4411 # side effect of compilation, but ICC will put the dependencies in
4412 # the current directory while Tru64 will put them in the object
4416 am_cv_CXX_dependencies_compiler_type=none
4417 if test "$am_compiler_list" = ""; then
4418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4420 for depmode in $am_compiler_list; do
4421 # Setup a source with many dependencies, because some compilers
4422 # like to wrap large dependency lists on column 80 (with \), and
4423 # we should not choose a depcomp mode which is confused by this.
4425 # We need to recreate these files for each test, as the compiler may
4426 # overwrite some of them when testing with obscure command lines.
4427 # This happens at least with the AIX C compiler.
4429 for i in 1 2 3 4 5 6; do
4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432 # Solaris 8's {/usr,}/bin/sh.
4433 touch sub/conftst$i.h
4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4439 # after this tag, mechanisms are not by side-effect, so they'll
4440 # only be used when explicitly requested
4441 if test "x$enable_dependency_tracking" = xyes; then
4449 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4450 # mode. It turns out that the SunPro C++ compiler does not properly
4451 # handle `-M -o', and we need to detect this.
4452 if depmode=$depmode \
4453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4456 >/dev/null 2>conftest.err &&
4457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4461 # icc doesn't choke on unknown options, it will just issue warnings
4462 # or remarks (even with -Werror). So we grep stderr for any message
4463 # that says an option was ignored or not supported.
4464 # When given -MP, icc 7.0 and 7.1 complain thusly:
4465 # icc: Command line warning: ignoring option '-M'; no argument required
4466 # The diagnosis changed in icc 8.0:
4467 # icc: Command line remark: option '-MP' not supported
4468 if (grep 'ignoring option' conftest.err ||
4469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4470 am_cv_CXX_dependencies_compiler_type=$depmode
4479 am_cv_CXX_dependencies_compiler_type=none
4483 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4484 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4485 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4488 test "x$enable_dependency_tracking" != xno \
4489 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4490 am__fastdepCXX_TRUE=
4491 am__fastdepCXX_FALSE='#'
4493 am__fastdepCXX_TRUE='#'
4494 am__fastdepCXX_FALSE=
4499 # By default we simply use the C compiler to build assembly code.
4501 test "${CCAS+set}" = set || CCAS=$CC
4502 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4506 depcc="$CCAS" am_compiler_list=
4508 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4509 $as_echo_n "checking dependency style of $depcc... " >&6; }
4510 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
4511 $as_echo_n "(cached) " >&6
4513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514 # We make a subdir and do the tests there. Otherwise we can end up
4515 # making bogus files that we don't know about and never remove. For
4516 # instance it was reported that on HP-UX the gcc test will end up
4517 # making a dummy file named `D' -- because `-MD' means `put the output
4520 # Copy depcomp to subdir because otherwise we won't find it if we're
4521 # using a relative directory.
4522 cp "$am_depcomp" conftest.dir
4524 # We will build objects and dependencies in a subdirectory because
4525 # it helps to detect inapplicable dependency modes. For instance
4526 # both Tru64's cc and ICC support -MD to output dependencies as a
4527 # side effect of compilation, but ICC will put the dependencies in
4528 # the current directory while Tru64 will put them in the object
4532 am_cv_CCAS_dependencies_compiler_type=none
4533 if test "$am_compiler_list" = ""; then
4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 for depmode in $am_compiler_list; do
4537 # Setup a source with many dependencies, because some compilers
4538 # like to wrap large dependency lists on column 80 (with \), and
4539 # we should not choose a depcomp mode which is confused by this.
4541 # We need to recreate these files for each test, as the compiler may
4542 # overwrite some of them when testing with obscure command lines.
4543 # This happens at least with the AIX C compiler.
4545 for i in 1 2 3 4 5 6; do
4546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4547 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4548 # Solaris 8's {/usr,}/bin/sh.
4549 touch sub/conftst$i.h
4551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4555 # after this tag, mechanisms are not by side-effect, so they'll
4556 # only be used when explicitly requested
4557 if test "x$enable_dependency_tracking" = xyes; then
4565 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4566 # mode. It turns out that the SunPro C++ compiler does not properly
4567 # handle `-M -o', and we need to detect this.
4568 if depmode=$depmode \
4569 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4571 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4572 >/dev/null 2>conftest.err &&
4573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4575 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4577 # icc doesn't choke on unknown options, it will just issue warnings
4578 # or remarks (even with -Werror). So we grep stderr for any message
4579 # that says an option was ignored or not supported.
4580 # When given -MP, icc 7.0 and 7.1 complain thusly:
4581 # icc: Command line warning: ignoring option '-M'; no argument required
4582 # The diagnosis changed in icc 8.0:
4583 # icc: Command line remark: option '-MP' not supported
4584 if (grep 'ignoring option' conftest.err ||
4585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4586 am_cv_CCAS_dependencies_compiler_type=$depmode
4595 am_cv_CCAS_dependencies_compiler_type=none
4599 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4600 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4601 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4604 test "x$enable_dependency_tracking" != xno \
4605 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4606 am__fastdepCCAS_TRUE=
4607 am__fastdepCCAS_FALSE='#'
4609 am__fastdepCCAS_TRUE='#'
4610 am__fastdepCCAS_FALSE=
4614 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ar; ac_word=$2
4618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_AR+set}" = set; then
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$AR"; then
4624 ac_cv_prog_AR="$AR" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_AR="${ac_tool_prefix}ar"
4634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$AR"; then
4645 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4646 $as_echo "$AR" >&6; }
4648 { $as_echo "$as_me:$LINENO: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$ac_cv_prog_AR"; then
4656 # Extract the first word of "ar", so it can be a program name with args.
4657 set dummy ar; ac_word=$2
4658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$ac_ct_AR"; then
4664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_AR="ar"
4674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4684 if test -n "$ac_ct_AR"; then
4685 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4686 $as_echo "$ac_ct_AR" >&6; }
4688 { $as_echo "$as_me:$LINENO: result: no" >&5
4689 $as_echo "no" >&6; }
4692 if test "x$ac_ct_AR" = x; then
4695 case $cross_compiling:$ac_tool_warned in
4697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_RANLIB+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4715 if test -n "$RANLIB"; then
4716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 RANLIB=$ac_cv_prog_RANLIB
4736 if test -n "$RANLIB"; then
4737 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4738 $as_echo "$RANLIB" >&6; }
4740 { $as_echo "$as_me:$LINENO: result: no" >&5
4741 $as_echo "no" >&6; }
4746 if test -z "$ac_cv_prog_RANLIB"; then
4747 ac_ct_RANLIB=$RANLIB
4748 # Extract the first word of "ranlib", so it can be a program name with args.
4749 set dummy ranlib; ac_word=$2
4750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4753 $as_echo_n "(cached) " >&6
4755 if test -n "$ac_ct_RANLIB"; then
4756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_RANLIB="ranlib"
4766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4776 if test -n "$ac_ct_RANLIB"; then
4777 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4778 $as_echo "$ac_ct_RANLIB" >&6; }
4780 { $as_echo "$as_me:$LINENO: result: no" >&5
4781 $as_echo "no" >&6; }
4784 if test "x$ac_ct_RANLIB" = x; then
4787 case $cross_compiling:$ac_tool_warned in
4789 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4793 RANLIB=$ac_ct_RANLIB
4796 RANLIB="$ac_cv_prog_RANLIB"
4800 # Find a good install program. We prefer a C program (faster),
4801 # so one script is as good as another. But avoid the broken or
4802 # incompatible versions:
4803 # SysV /etc/install, /usr/sbin/install
4804 # SunOS /usr/etc/install
4805 # IRIX /sbin/install
4807 # AmigaOS /C/install, which installs bootblocks on floppy discs
4808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4811 # OS/2's system install, which has a completely different semantic
4812 # ./install, which can be erroneously created by make from ./install.sh.
4813 # Reject install programs that cannot install multiple files.
4814 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4816 if test -z "$INSTALL"; then
4817 if test "${ac_cv_path_install+set}" = set; then
4818 $as_echo_n "(cached) " >&6
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 # Account for people who put trailing slashes in PATH elements.
4827 ./ | .// | /cC/* | \
4828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4829 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4832 # OSF1 and SCO ODT 3.0 have their own names for install.
4833 # Don't use installbsd from OSF since it installs stuff as root
4835 for ac_prog in ginstall scoinst install; do
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4838 if test $ac_prog = install &&
4839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4840 # AIX install. It has an incompatible calling convention.
4842 elif test $ac_prog = install &&
4843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4844 # program-specific install script used by HP pwplus--don't use.
4847 rm -rf conftest.one conftest.two conftest.dir
4848 echo one > conftest.one
4849 echo two > conftest.two
4851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4852 test -s conftest.one && test -s conftest.two &&
4853 test -s conftest.dir/conftest.one &&
4854 test -s conftest.dir/conftest.two
4856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4869 rm -rf conftest.one conftest.two conftest.dir
4872 if test "${ac_cv_path_install+set}" = set; then
4873 INSTALL=$ac_cv_path_install
4875 # As a last resort, use the slow shell script. Don't cache a
4876 # value for INSTALL within a source directory, because that will
4877 # break other packages using the cache if that directory is
4878 # removed, or if the value is a relative name.
4879 INSTALL=$ac_install_sh
4882 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4883 $as_echo "$INSTALL" >&6; }
4885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4886 # It thinks the first close brace ends the variable substitution.
4887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4894 . ${srcdir}/configure.host
4896 GC_CFLAGS=${gc_cflags}
4899 # Check whether --enable-boehm-threads was given.
4900 if test "${enable_boehm_threads+set}" = set; then
4901 enableval=$enable_boehm_threads; THREADS=$enableval
4903 { $as_echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4904 $as_echo_n "checking for thread model used by GCC... " >&6; }
4905 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4906 if test -z "$THREADS"; then
4909 { $as_echo "$as_me:$LINENO: result: $THREADS" >&5
4910 $as_echo "$THREADS" >&6; }
4914 # Check whether --enable-parallel-mark was given.
4915 if test "${enable_parallel_mark+set}" = set; then
4916 enableval=$enable_parallel_mark; case "$THREADS" in
4918 { { $as_echo "$as_me:$LINENO: error: Parallel mark requires --enable-boehm-threads=x spec" >&5
4919 $as_echo "$as_me: error: Parallel mark requires --enable-boehm-threads=x spec" >&2;}
4920 { (exit 1); exit 1; }; }
4927 # Check whether --enable-cplusplus was given.
4928 if test "${enable_cplusplus+set}" = set; then
4929 enableval=$enable_cplusplus;
4973 need_atomic_ops_asm=false
4974 ## Libraries needed to support dynamic loading and/or threads.
4981 THREADDLLIBS=-lpthread
4983 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
4984 cat >>confdefs.h <<\_ACEOF
4985 #define GC_LINUX_THREADS 1
4988 cat >>confdefs.h <<\_ACEOF
4989 #define _REENTRANT 1
4992 if test "${enable_parallel_mark}" = yes; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define PARALLEL_MARK 1
4998 cat >>confdefs.h <<\_ACEOF
4999 #define THREAD_LOCAL_ALLOC 1
5002 { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5003 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5006 cat >>confdefs.h <<\_ACEOF
5007 #define GC_LINUX_THREADS 1
5010 cat >>confdefs.h <<\_ACEOF
5011 #define _REENTRANT 1
5016 cat >>confdefs.h <<\_ACEOF
5017 #define GC_AIX_THREADS 1
5020 cat >>confdefs.h <<\_ACEOF
5021 #define _REENTRANT 1
5026 { $as_echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
5027 $as_echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
5028 cat >>confdefs.h <<\_ACEOF
5029 #define GC_HPUX_THREADS 1
5032 cat >>confdefs.h <<\_ACEOF
5033 #define _POSIX_C_SOURCE 199506L
5036 if test "${enable_parallel_mark}" = yes; then
5037 cat >>confdefs.h <<\_ACEOF
5038 #define PARALLEL_MARK 1
5042 cat >>confdefs.h <<\_ACEOF
5043 #define THREAD_LOCAL_ALLOC 1
5046 { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5047 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5048 THREADDLLIBS="-lpthread -lrt"
5049 # HPUX needs REENTRANT for the _r calls.
5051 cat >>confdefs.h <<\_ACEOF
5052 #define _REENTRANT 1
5057 { $as_echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5058 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5061 cat >>confdefs.h <<\_ACEOF
5062 #define GC_OPENBSD_THREADS 1
5065 THREADDLLIBS=-pthread
5066 INCLUDES="$INCLUDES -pthread"
5067 openbsd_threads=true
5070 { $as_echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5071 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5072 cat >>confdefs.h <<\_ACEOF
5073 #define GC_FREEBSD_THREADS 1
5076 INCLUDES="$INCLUDES -pthread"
5079 cat >>confdefs.h <<\_ACEOF
5080 #define GC_FREEBSD_THREADS 1
5083 INCLUDES="$INCLUDES -pthread"
5084 THREADDLLIBS=-pthread
5085 cat >>confdefs.h <<\_ACEOF
5086 #define _REENTRANT 1
5089 if test "${enable_parallel_mark}" = yes; then
5090 cat >>confdefs.h <<\_ACEOF
5091 #define PARALLEL_MARK 1
5095 cat >>confdefs.h <<\_ACEOF
5096 #define THREAD_LOCAL_ALLOC 1
5099 cat >>confdefs.h <<\_ACEOF
5100 #define USE_COMPILER_TLS 1
5105 cat >>confdefs.h <<\_ACEOF
5106 #define GC_GNU_THREADS 1
5109 cat >>confdefs.h <<\_ACEOF
5110 #define _REENTRANT 1
5113 cat >>confdefs.h <<\_ACEOF
5114 #define THREAD_LOCAL_ALLOC 1
5119 { $as_echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
5120 $as_echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
5121 cat >>confdefs.h <<\_ACEOF
5122 #define GC_NETBSD_THREADS 1
5125 cat >>confdefs.h <<\_ACEOF
5126 #define _REENTRANT 1
5129 cat >>confdefs.h <<\_ACEOF
5133 THREADDLLIBS="-lpthread -lrt"
5136 cat >>confdefs.h <<\_ACEOF
5137 #define GC_SOLARIS_THREADS 1
5140 cat >>confdefs.h <<\_ACEOF
5141 #define THREAD_LOCAL_ALLOC 1
5144 THREADDLLIBS="-lpthread -lrt"
5145 if test "$GCC" != yes; then
5147 need_atomic_ops_asm=true
5151 cat >>confdefs.h <<\_ACEOF
5152 #define GC_IRIX_THREADS 1
5157 cat >>confdefs.h <<\_ACEOF
5158 #define GC_THREADS 1
5161 if test "${enable_parallel_mark}" = yes; then
5162 cat >>confdefs.h <<\_ACEOF
5163 #define PARALLEL_MARK 1
5167 cat >>confdefs.h <<\_ACEOF
5168 #define THREAD_LOCAL_ALLOC 1
5171 # Cygwin doesn't have a real libpthread, so Libtool can't link
5177 cat >>confdefs.h <<\_ACEOF
5178 #define GC_DARWIN_THREADS 1
5181 cat >>confdefs.h <<\_ACEOF
5182 #define THREAD_LOCAL_ALLOC 1
5185 { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5186 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5187 # Parallel-mark is currently unreliable on Darwin; ignore request
5188 # if test "${enable_parallel_mark}" = yes; then
5189 # AC_DEFINE(PARALLEL_MARK)
5194 cat >>confdefs.h <<\_ACEOF
5195 #define GC_OSF1_THREADS 1
5198 if test "${enable_parallel_mark}" = yes; then
5199 cat >>confdefs.h <<\_ACEOF
5200 #define PARALLEL_MARK 1
5203 cat >>confdefs.h <<\_ACEOF
5204 #define THREAD_LOCAL_ALLOC 1
5207 { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5208 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5209 # May want to enable it in other cases, too.
5210 # Measurements havent yet been done.
5212 INCLUDES="$INCLUDES -pthread"
5213 THREADDLLIBS="-lpthread -lrt"
5216 { { $as_echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
5217 $as_echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
5218 { (exit 1); exit 1; }; }
5223 cat >>confdefs.h <<\_ACEOF
5224 #define GC_THREADS 1
5227 if test "${enable_parallel_mark}" = yes; then
5228 cat >>confdefs.h <<\_ACEOF
5229 #define PARALLEL_MARK 1
5232 cat >>confdefs.h <<\_ACEOF
5233 #define THREAD_LOCAL_ALLOC 1
5239 cat >>confdefs.h <<\_ACEOF
5240 #define EMPTY_GETENV_RESULTS 1
5246 { $as_echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
5247 $as_echo "$THREADDLLIBS" >&6; }
5248 # Use pthread GCC switch
5249 THREADDLLIBS=-pthread
5250 if test "${enable_parallel_mark}" = yes; then
5251 cat >>confdefs.h <<\_ACEOF
5252 #define PARALLEL_MARK 1
5256 cat >>confdefs.h <<\_ACEOF
5257 #define THREAD_LOCAL_ALLOC 1
5260 { $as_echo "$as_me:$LINENO: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5261 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5263 cat >>confdefs.h <<\_ACEOF
5264 #define GC_DGUX386_THREADS 1
5268 cat >>confdefs.h <<\_ACEOF
5269 #define DGUX_THREADS 1
5272 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5273 INCLUDES="-pthread $INCLUDES"
5277 THREADDLLIBS=-lpthread
5278 cat >>confdefs.h <<\_ACEOF
5279 #define GC_AIX_THREADS 1
5282 cat >>confdefs.h <<\_ACEOF
5283 #define _REENTRANT 1
5287 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5288 { { $as_echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5289 $as_echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5290 { (exit 1); exit 1; }; }
5293 { { $as_echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5294 $as_echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5295 { (exit 1); exit 1; }; }
5299 if test x$THREADS != xnone; then
5307 if test x$THREADS = xposix; then
5315 if test x$darwin_threads = xtrue; then
5316 DARWIN_THREADS_TRUE=
5317 DARWIN_THREADS_FALSE='#'
5319 DARWIN_THREADS_TRUE='#'
5320 DARWIN_THREADS_FALSE=
5323 if test x$win32_threads = xtrue; then
5325 WIN32_THREADS_FALSE='#'
5327 WIN32_THREADS_TRUE='#'
5328 WIN32_THREADS_FALSE=
5331 if test x$openbsd_threads = xtrue; then
5332 OPENBSD_THREADS_TRUE=
5333 OPENBSD_THREADS_FALSE='#'
5335 OPENBSD_THREADS_TRUE='#'
5336 OPENBSD_THREADS_FALSE=
5346 # Darwin needs a few extra special tests to deal with variation in the
5351 { $as_echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5352 $as_echo_n "checking for ppc_thread_state_t.r0... " >&6; }
5353 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <mach/thread_status.h>
5367 static ppc_thread_state_t ac_aggr;
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381 $as_echo "$ac_try_echo") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_cv_member_ppc_thread_state_t_r0=yes
5394 $as_echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 #include <mach/thread_status.h>
5408 static ppc_thread_state_t ac_aggr;
5409 if (sizeof ac_aggr.r0)
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422 $as_echo "$ac_try_echo") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && {
5430 test -z "$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 } && test -s conftest.$ac_objext; then
5433 ac_cv_member_ppc_thread_state_t_r0=yes
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 ac_cv_member_ppc_thread_state_t_r0=no
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5447 $as_echo "$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5448 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then
5450 cat >>confdefs.h <<\_ACEOF
5451 #define HAS_PPC_THREAD_STATE_R0 1
5456 { $as_echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5457 $as_echo_n "checking for ppc_thread_state_t.__r0... " >&6; }
5458 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5459 $as_echo_n "(cached) " >&6
5461 cat >conftest.$ac_ext <<_ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 #include <mach/thread_status.h>
5472 static ppc_thread_state_t ac_aggr;
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486 $as_echo "$ac_try_echo") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 ac_cv_member_ppc_thread_state_t___r0=yes
5499 $as_echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <mach/thread_status.h>
5513 static ppc_thread_state_t ac_aggr;
5514 if (sizeof ac_aggr.__r0)
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527 $as_echo "$ac_try_echo") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 ac_cv_member_ppc_thread_state_t___r0=yes
5540 $as_echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_member_ppc_thread_state_t___r0=no
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5552 $as_echo "$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5553 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then
5555 cat >>confdefs.h <<\_ACEOF
5556 #define HAS_PPC_THREAD_STATE___R0 1
5561 { $as_echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5562 $as_echo_n "checking for ppc_thread_state64_t.r0... " >&6; }
5563 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <mach/thread_status.h>
5577 static ppc_thread_state64_t ac_aggr;
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_member_ppc_thread_state64_t_r0=yes
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <mach/thread_status.h>
5618 static ppc_thread_state64_t ac_aggr;
5619 if (sizeof ac_aggr.r0)
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_cv_member_ppc_thread_state64_t_r0=yes
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_cv_member_ppc_thread_state64_t_r0=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5657 $as_echo "$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5658 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAS_PPC_THREAD_STATE64_R0 1
5666 { $as_echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5667 $as_echo_n "checking for ppc_thread_state64_t.__r0... " >&6; }
5668 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5669 $as_echo_n "(cached) " >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <mach/thread_status.h>
5682 static ppc_thread_state64_t ac_aggr;
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5696 $as_echo "$ac_try_echo") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5699 grep -v '^ *+' conftest.er1 >conftest.err
5701 cat conftest.err >&5
5702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 ac_cv_member_ppc_thread_state64_t___r0=yes
5709 $as_echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <mach/thread_status.h>
5723 static ppc_thread_state64_t ac_aggr;
5724 if (sizeof ac_aggr.__r0)
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 ac_cv_member_ppc_thread_state64_t___r0=yes
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ac_cv_member_ppc_thread_state64_t___r0=no
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5762 $as_echo "$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5763 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAS_PPC_THREAD_STATE64___R0 1
5773 { $as_echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5774 $as_echo_n "checking for x86_thread_state32_t.eax... " >&6; }
5775 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5776 $as_echo_n "(cached) " >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <sys/cdefs.h>
5785 #include <mach/thread_status.h>
5790 static x86_thread_state32_t ac_aggr;
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_cv_member_x86_thread_state32_t_eax=yes
5817 $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <sys/cdefs.h>
5827 #include <mach/thread_status.h>
5832 static x86_thread_state32_t ac_aggr;
5833 if (sizeof ac_aggr.eax)
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5846 $as_echo "$ac_try_echo") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 ac_cv_member_x86_thread_state32_t_eax=yes
5859 $as_echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_cv_member_x86_thread_state32_t_eax=no
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5871 $as_echo "$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5872 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAS_X86_THREAD_STATE32_EAX 1
5880 { $as_echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5881 $as_echo_n "checking for x86_thread_state32_t.__eax... " >&6; }
5882 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #include <sys/cdefs.h>
5892 #include <mach/thread_status.h>
5897 static x86_thread_state32_t ac_aggr;
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
5922 ac_cv_member_x86_thread_state32_t___eax=yes
5924 $as_echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <sys/cdefs.h>
5934 #include <mach/thread_status.h>
5939 static x86_thread_state32_t ac_aggr;
5940 if (sizeof ac_aggr.__eax)
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5953 $as_echo "$ac_try_echo") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_cv_member_x86_thread_state32_t___eax=yes
5966 $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_cv_member_x86_thread_state32_t___eax=no
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5978 $as_echo "$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5979 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define HAS_X86_THREAD_STATE32___EAX 1
5989 { $as_echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5990 $as_echo_n "checking for x86_thread_state64_t.rax... " >&6; }
5991 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5992 $as_echo_n "(cached) " >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <sys/cdefs.h>
6001 #include <mach/thread_status.h>
6006 static x86_thread_state64_t ac_aggr;
6013 rm -f conftest.$ac_objext
6014 if { (ac_try="$ac_compile"
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1 >conftest.err
6025 cat conftest.err >&5
6026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_cv_member_x86_thread_state64_t_rax=yes
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <sys/cdefs.h>
6043 #include <mach/thread_status.h>
6048 static x86_thread_state64_t ac_aggr;
6049 if (sizeof ac_aggr.rax)
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062 $as_echo "$ac_try_echo") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.$ac_objext; then
6073 ac_cv_member_x86_thread_state64_t_rax=yes
6075 $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_member_x86_thread_state64_t_rax=no
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
6087 $as_echo "$ac_cv_member_x86_thread_state64_t_rax" >&6; }
6088 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAS_X86_THREAD_STATE64_RAX 1
6096 { $as_echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
6097 $as_echo_n "checking for x86_thread_state64_t.__rax... " >&6; }
6098 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
6099 $as_echo_n "(cached) " >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <sys/cdefs.h>
6108 #include <mach/thread_status.h>
6113 static x86_thread_state64_t ac_aggr;
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6138 ac_cv_member_x86_thread_state64_t___rax=yes
6140 $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <sys/cdefs.h>
6150 #include <mach/thread_status.h>
6155 static x86_thread_state64_t ac_aggr;
6156 if (sizeof ac_aggr.__rax)
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170 (eval "$ac_compile") 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } && {
6177 test -z "$ac_c_werror_flag" ||
6178 test ! -s conftest.err
6179 } && test -s conftest.$ac_objext; then
6180 ac_cv_member_x86_thread_state64_t___rax=yes
6182 $as_echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_cv_member_x86_thread_state64_t___rax=no
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
6194 $as_echo "$ac_cv_member_x86_thread_state64_t___rax" >&6; }
6195 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define HAS_X86_THREAD_STATE64___RAX 1
6207 { $as_echo "$as_me:$LINENO: checking for xlc" >&5
6208 $as_echo_n "checking for xlc... " >&6; }
6209 cat >conftest.$ac_ext <<_ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6228 rm -f conftest.$ac_objext
6229 if { (ac_try="$ac_compile"
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $compiler_xlc" >&5
6256 $as_echo "$compiler_xlc" >&6; }
6257 if test $compiler_xlc = yes; then
6259 COMPILER_XLC_FALSE='#'
6261 COMPILER_XLC_TRUE='#'
6265 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
6266 # the darwin stack-frame-walking code is completely broken on xlc
6268 cat >>confdefs.h <<\_ACEOF
6269 #define DARWIN_DONT_PARSE_STACK 1
6274 # We never want libdl on darwin. It is a fake libdl that just ends up making
6275 # dyld calls anyway. The same applies to Cygwin.
6280 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6285 ac_check_lib_save_LIBS=$LIBS
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (ac_try="$ac_link"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316 $as_echo "$ac_try_echo") >&5
6317 (eval "$ac_link") 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest$ac_exeext && {
6327 test "$cross_compiling" = yes ||
6328 $as_test_x conftest$ac_exeext
6330 ac_cv_lib_dl_dlopen=yes
6332 $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_cv_lib_dl_dlopen=no
6338 rm -rf conftest.dSYM
6339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6340 conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6346 THREADDLLIBS="$THREADDLLIBS -ldl"
6359 if test $avoid_cpp_lib = yes; then
6361 AVOID_CPP_LIB_FALSE='#'
6363 AVOID_CPP_LIB_TRUE='#'
6364 AVOID_CPP_LIB_FALSE=
6368 # extra LD Flags which are required for targets
6371 extra_ldflags_libgc=-Wl,-single_module
6383 # Check whether --with-ecos was given.
6384 if test "${with_ecos+set}" = set; then
6385 withval=$with_ecos; TARGET_ECOS="$with_ecos"
6393 case "$TARGET_ECOS" in
6398 cat >>confdefs.h <<\_ACEOF
6402 CXXINCLUDES="-I${TARGET_ECOS}/include"
6403 addobjs="$addobjs ecos.lo"
6407 if test "${enable_cplusplus}" = yes; then
6421 # Configuration of shared libraries
6423 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6424 $as_echo_n "checking whether to build shared libraries... " >&6; }
6425 # Check whether --enable-shared was given.
6426 if test "${enable_shared+set}" = set; then
6427 enableval=$enable_shared; p=${PACKAGE-default}
6429 yes) enable_shared=yes ;;
6430 no) enable_shared=no ;;
6433 # Look at the argument we got. We use all the common list separators.
6434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6435 for pkg in $enableval; do
6437 if test "X$pkg" = "X$p"; then
6458 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
6459 $as_echo "$enable_shared" >&6; }
6461 # Configuration of machine-dependent code
6463 { $as_echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6464 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
6468 machdep="mach_dep.lo"
6469 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6470 { $as_echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6471 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6475 machdep="mach_dep.lo"
6477 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6479 cat >>confdefs.h <<\_ACEOF
6480 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6485 machdep="mach_dep.lo"
6488 machdep="mach-dep.lo"
6490 mips-nec-sysv*|mips-unknown-sysv*)
6495 machdep="mach_dep.lo"
6498 machdep="mach_dep.lo sparc_mach_dep.lo"
6501 machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
6504 machdep="mach_dep.lo sparc_mach_dep.lo"
6507 machdep="mach_dep.lo sparc_mach_dep.lo"
6509 sparc-sun-solaris2.3)
6510 machdep="mach_dep.lo sparc_mach_dep.lo"
6512 cat >>confdefs.h <<\_ACEOF
6513 #define SUNOS53_SHARED_LIB 1
6517 sparc*-sun-solaris2*)
6518 machdep="mach_dep.lo sparc_mach_dep.lo"
6521 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6524 if test x"$machdep" = x; then
6525 { $as_echo "$as_me:$LINENO: result: $machdep" >&5
6526 $as_echo "$machdep" >&6; }
6527 machdep="mach_dep.lo"
6529 addobjs="$addobjs $machdep"
6533 # Check whether --enable-static was given.
6534 if test "${enable_static+set}" = set; then
6535 enableval=$enable_static; p=${PACKAGE-default}
6537 yes) enable_static=yes ;;
6538 no) enable_static=no ;;
6541 # Look at the argument we got. We use all the common list separators.
6542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6543 for pkg in $enableval; do
6545 if test "X$pkg" = "X$p"; then
6557 # Check whether --enable-fast-install was given.
6558 if test "${enable_fast_install+set}" = set; then
6559 enableval=$enable_fast_install; p=${PACKAGE-default}
6561 yes) enable_fast_install=yes ;;
6562 no) enable_fast_install=no ;;
6564 enable_fast_install=no
6565 # Look at the argument we got. We use all the common list separators.
6566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6567 for pkg in $enableval; do
6569 if test "X$pkg" = "X$p"; then
6570 enable_fast_install=yes
6577 enable_fast_install=yes
6581 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6582 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6583 if test "${lt_cv_path_SED+set}" = set; then
6584 $as_echo_n "(cached) " >&6
6586 # Loop through the user's path and test for sed and gsed.
6587 # Then use that list of sed's as ones to test for truncation.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for lt_ac_prog in sed gsed; do
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6596 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6604 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6605 # along with /bin/sed that truncates output.
6606 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6607 test ! -f $lt_ac_sed && continue
6608 cat /dev/null > conftest.in
6610 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6611 # Check for GNU sed and select it if it is found.
6612 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6613 lt_cv_path_SED=$lt_ac_sed
6617 cat conftest.in conftest.in >conftest.tmp
6618 mv conftest.tmp conftest.in
6619 cp conftest.in conftest.nl
6621 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6622 cmp -s conftest.out conftest.nl || break
6623 # 10000 chars as input seems more than enough
6624 test $lt_ac_count -gt 10 && break
6625 lt_ac_count=`expr $lt_ac_count + 1`
6626 if test $lt_ac_count -gt $lt_ac_max; then
6627 lt_ac_max=$lt_ac_count
6628 lt_cv_path_SED=$lt_ac_sed
6637 { $as_echo "$as_me:$LINENO: result: $SED" >&5
6638 $as_echo "$SED" >&6; }
6640 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6642 if test "${ac_cv_path_GREP+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6645 if test -z "$GREP"; then
6646 ac_path_GREP_found=false
6647 # Loop through the user's path and test for each of PROGNAME-LIST
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6652 test -z "$as_dir" && as_dir=.
6653 for ac_prog in grep ggrep; do
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6656 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6657 # Check for GNU ac_path_GREP and select it if it is found.
6658 # Check for GNU $ac_path_GREP
6659 case `"$ac_path_GREP" --version 2>&1` in
6661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6664 $as_echo_n 0123456789 >"conftest.in"
6667 cat "conftest.in" "conftest.in" >"conftest.tmp"
6668 mv "conftest.tmp" "conftest.in"
6669 cp "conftest.in" "conftest.nl"
6670 $as_echo 'GREP' >> "conftest.nl"
6671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6673 ac_count=`expr $ac_count + 1`
6674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6675 # Best one so far, save it but keep looking for a better one
6676 ac_cv_path_GREP="$ac_path_GREP"
6677 ac_path_GREP_max=$ac_count
6679 # 10*(2^10) chars as input seems more than enough
6680 test $ac_count -gt 10 && break
6682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6685 $ac_path_GREP_found && break 3
6690 if test -z "$ac_cv_path_GREP"; then
6691 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6692 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6693 { (exit 1); exit 1; }; }
6696 ac_cv_path_GREP=$GREP
6700 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6701 $as_echo "$ac_cv_path_GREP" >&6; }
6702 GREP="$ac_cv_path_GREP"
6705 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6706 $as_echo_n "checking for egrep... " >&6; }
6707 if test "${ac_cv_path_EGREP+set}" = set; then
6708 $as_echo_n "(cached) " >&6
6710 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6711 then ac_cv_path_EGREP="$GREP -E"
6713 if test -z "$EGREP"; then
6714 ac_path_EGREP_found=false
6715 # Loop through the user's path and test for each of PROGNAME-LIST
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6720 test -z "$as_dir" && as_dir=.
6721 for ac_prog in egrep; do
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6724 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6725 # Check for GNU ac_path_EGREP and select it if it is found.
6726 # Check for GNU $ac_path_EGREP
6727 case `"$ac_path_EGREP" --version 2>&1` in
6729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6732 $as_echo_n 0123456789 >"conftest.in"
6735 cat "conftest.in" "conftest.in" >"conftest.tmp"
6736 mv "conftest.tmp" "conftest.in"
6737 cp "conftest.in" "conftest.nl"
6738 $as_echo 'EGREP' >> "conftest.nl"
6739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6741 ac_count=`expr $ac_count + 1`
6742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6743 # Best one so far, save it but keep looking for a better one
6744 ac_cv_path_EGREP="$ac_path_EGREP"
6745 ac_path_EGREP_max=$ac_count
6747 # 10*(2^10) chars as input seems more than enough
6748 test $ac_count -gt 10 && break
6750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6753 $ac_path_EGREP_found && break 3
6758 if test -z "$ac_cv_path_EGREP"; then
6759 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6760 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6761 { (exit 1); exit 1; }; }
6764 ac_cv_path_EGREP=$EGREP
6769 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6770 $as_echo "$ac_cv_path_EGREP" >&6; }
6771 EGREP="$ac_cv_path_EGREP"
6775 # Check whether --with-gnu-ld was given.
6776 if test "${with_gnu_ld+set}" = set; then
6777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6783 if test "$GCC" = yes; then
6784 # Check if gcc -print-prog-name=ld gives a path.
6785 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6786 $as_echo_n "checking for ld used by $CC... " >&6; }
6789 # gcc leaves a trailing carriage return which upsets mingw
6790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6795 # Accept absolute paths.
6797 re_direlt='/[^/][^/]*/\.\./'
6798 # Canonicalize the pathname of ld
6799 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6800 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6801 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6803 test -z "$LD" && LD="$ac_prog"
6806 # If it fails, then pretend we aren't using GCC.
6810 # If it is relative, then search for the first ld in PATH.
6814 elif test "$with_gnu_ld" = yes; then
6815 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6816 $as_echo_n "checking for GNU ld... " >&6; }
6818 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6819 $as_echo_n "checking for non-GNU ld... " >&6; }
6821 if test "${lt_cv_path_LD+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6824 if test -z "$LD"; then
6825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6826 for ac_dir in $PATH; do
6828 test -z "$ac_dir" && ac_dir=.
6829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6830 lt_cv_path_LD="$ac_dir/$ac_prog"
6831 # Check to see if the program is GNU ld. I'd rather use --version,
6832 # but apparently some variants of GNU ld only accept -v.
6833 # Break only if it was the GNU/non-GNU ld that we prefer.
6834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6835 *GNU* | *'with BFD'*)
6836 test "$with_gnu_ld" != no && break
6839 test "$with_gnu_ld" != yes && break
6846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6851 if test -n "$LD"; then
6852 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6853 $as_echo "$LD" >&6; }
6855 { $as_echo "$as_me:$LINENO: result: no" >&5
6856 $as_echo "no" >&6; }
6858 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6859 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6860 { (exit 1); exit 1; }; }
6861 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6862 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6863 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6864 $as_echo_n "(cached) " >&6
6866 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6867 case `$LD -v 2>&1 </dev/null` in
6868 *GNU* | *'with BFD'*)
6869 lt_cv_prog_gnu_ld=yes
6872 lt_cv_prog_gnu_ld=no
6876 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6877 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6878 with_gnu_ld=$lt_cv_prog_gnu_ld
6881 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6882 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6883 if test "${lt_cv_ld_reload_flag+set}" = set; then
6884 $as_echo_n "(cached) " >&6
6886 lt_cv_ld_reload_flag='-r'
6888 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6890 reload_flag=$lt_cv_ld_reload_flag
6891 case $reload_flag in
6893 *) reload_flag=" $reload_flag" ;;
6895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6898 if test "$GCC" = yes; then
6899 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6906 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6907 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6908 if test "${lt_cv_path_NM+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$NM"; then
6912 # Let the user override the test.
6915 lt_nm_to_check="${ac_tool_prefix}nm"
6916 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6917 lt_nm_to_check="$lt_nm_to_check nm"
6919 for lt_tmp_nm in $lt_nm_to_check; do
6920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6921 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6923 test -z "$ac_dir" && ac_dir=.
6924 tmp_nm="$ac_dir/$lt_tmp_nm"
6925 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6926 # Check to see if the nm accepts a BSD-compat flag.
6927 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6928 # nm: unknown option "B" ignored
6929 # Tru64's nm complains that /dev/null is an invalid object file
6930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6931 */dev/null* | *'Invalid file or object type'*)
6932 lt_cv_path_NM="$tmp_nm -B"
6936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6938 lt_cv_path_NM="$tmp_nm -p"
6942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6943 continue # so that we can try to find one that supports BSD flags
6952 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6955 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6956 $as_echo "$lt_cv_path_NM" >&6; }
6959 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6960 $as_echo_n "checking whether ln -s works... " >&6; }
6962 if test "$LN_S" = "ln -s"; then
6963 { $as_echo "$as_me:$LINENO: result: yes" >&5
6964 $as_echo "yes" >&6; }
6966 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6967 $as_echo "no, using $LN_S" >&6; }
6970 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6971 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6972 if test "${lt_cv_deplibs_check_method+set}" = set; then
6973 $as_echo_n "(cached) " >&6
6975 lt_cv_file_magic_cmd='$MAGIC_CMD'
6976 lt_cv_file_magic_test_file=
6977 lt_cv_deplibs_check_method='unknown'
6978 # Need to set the preceding variable on all platforms that support
6979 # interlibrary dependencies.
6980 # 'none' -- dependencies not supported.
6981 # `unknown' -- same as none, but documents that we really don't know.
6982 # 'pass_all' -- all dependencies passed with no checks.
6983 # 'test_compile' -- check by making test program.
6984 # 'file_magic [[regex]]' -- check by looking for files in library path
6985 # which responds to the $file_magic_cmd with a given extended regex.
6986 # If you have `file' or equivalent on your system and you're not sure
6987 # whether `pass_all' will *always* work, you probably want this one.
6991 lt_cv_deplibs_check_method=pass_all
6995 lt_cv_deplibs_check_method=pass_all
6999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7000 lt_cv_file_magic_cmd='/usr/bin/file -L'
7001 lt_cv_file_magic_test_file=/shlib/libc.so
7005 # func_win32_libid is a shell function defined in ltmain.sh
7006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007 lt_cv_file_magic_cmd='func_win32_libid'
7011 # Base MSYS/MinGW do not provide the 'file' command needed by
7012 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7013 # unless we find 'file', for example because we are cross-compiling.
7014 if ( file / ) >/dev/null 2>&1; then
7015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7016 lt_cv_file_magic_cmd='func_win32_libid'
7018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7019 lt_cv_file_magic_cmd='$OBJDUMP -f'
7023 darwin* | rhapsody*)
7024 lt_cv_deplibs_check_method=pass_all
7027 freebsd* | dragonfly*)
7028 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7031 # Not sure whether the presence of OpenBSD here was a mistake.
7032 # Let's accept both of them until this is cleared up.
7033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7034 lt_cv_file_magic_cmd=/usr/bin/file
7035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7039 lt_cv_deplibs_check_method=pass_all
7044 lt_cv_deplibs_check_method=pass_all
7047 hpux10.20* | hpux11*)
7048 lt_cv_file_magic_cmd=/usr/bin/file
7051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7052 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7055 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]'
7056 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7060 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7066 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7070 irix5* | irix6* | nonstopux*)
7072 *-32|*"-32 ") libmagic=32-bit;;
7073 *-n32|*"-n32 ") libmagic=N32;;
7074 *-64|*"-64 ") libmagic=64-bit;;
7075 *) libmagic=never-match;;
7077 lt_cv_deplibs_check_method=pass_all
7080 # This must be Linux ELF.
7081 linux* | k*bsd*-gnu)
7082 lt_cv_deplibs_check_method=pass_all
7086 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7095 lt_cv_file_magic_cmd=/usr/bin/file
7096 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7100 lt_cv_deplibs_check_method=unknown
7104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7111 osf3* | osf4* | osf5*)
7112 lt_cv_deplibs_check_method=pass_all
7116 lt_cv_deplibs_check_method=pass_all
7120 lt_cv_deplibs_check_method=pass_all
7124 case $host_vendor in
7126 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]'
7127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7130 lt_cv_deplibs_check_method=pass_all
7133 lt_cv_file_magic_cmd='/bin/file'
7134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7137 lt_cv_file_magic_cmd='/bin/file'
7138 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7139 lt_cv_file_magic_test_file=/lib/libc.so
7142 lt_cv_deplibs_check_method=pass_all
7145 lt_cv_deplibs_check_method=pass_all
7150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7151 lt_cv_deplibs_check_method=pass_all
7156 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7157 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7158 file_magic_cmd=$lt_cv_file_magic_cmd
7159 deplibs_check_method=$lt_cv_deplibs_check_method
7160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7165 # If no C compiler was specified, use CC.
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171 # Allow CC to be a program name with arguments.
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then
7176 enableval=$enable_libtool_lock;
7179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7181 # Some flags need to be propagated to the compiler or linker for good
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>&5
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; then
7192 case `/usr/bin/file conftest.$ac_objext` in
7204 # Find out which ABI we are using.
7205 echo '#line 7205 "configure"' > conftest.$ac_ext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; then
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7212 case `/usr/bin/file conftest.$ac_objext` in
7214 LD="${LD-ld} -melf32bsmip"
7217 LD="${LD-ld} -melf32bmipn32"
7220 LD="${LD-ld} -melf64bmip"
7224 case `/usr/bin/file conftest.$ac_objext` in
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|sparc*-*linux*)
7242 # Find out which ABI we are using.
7243 echo 'int i;' > conftest.$ac_ext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>&5
7247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; then
7249 case `/usr/bin/file conftest.o` in
7252 x86_64-*kfreebsd*-gnu)
7253 LD="${LD-ld} -m elf_i386_fbsd"
7256 LD="${LD-ld} -m elf_i386"
7258 ppc64-*linux*|powerpc64-*linux*)
7259 LD="${LD-ld} -m elf32ppclinux"
7262 LD="${LD-ld} -m elf_s390"
7265 LD="${LD-ld} -m elf32_sparc"
7272 x86_64-*kfreebsd*-gnu)
7273 LD="${LD-ld} -m elf_x86_64_fbsd"
7276 LD="${LD-ld} -m elf_x86_64"
7278 ppc*-*linux*|powerpc*-*linux*)
7279 LD="${LD-ld} -m elf64ppc"
7282 LD="${LD-ld} -m elf64_s390"
7285 LD="${LD-ld} -m elf64_sparc"
7295 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7296 SAVE_CFLAGS="$CFLAGS"
7297 CFLAGS="$CFLAGS -belf"
7298 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7299 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7300 if test "${lt_cv_cc_needs_belf+set}" = set; then
7301 $as_echo_n "(cached) " >&6
7304 ac_cpp='$CPP $CPPFLAGS'
7305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7324 rm -f conftest.$ac_objext conftest$ac_exeext
7325 if { (ac_try="$ac_link"
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7331 $as_echo "$ac_try_echo") >&5
7332 (eval "$ac_link") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest$ac_exeext && {
7342 test "$cross_compiling" = yes ||
7343 $as_test_x conftest$ac_exeext
7345 lt_cv_cc_needs_belf=yes
7347 $as_echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 lt_cv_cc_needs_belf=no
7353 rm -rf conftest.dSYM
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355 conftest$ac_exeext conftest.$ac_ext
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>&5
7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; then
7378 case `/usr/bin/file conftest.o` in
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7397 need_locks="$enable_libtool_lock"
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7407 # On Suns, sometimes $CPP names a directory.
7408 if test -n "$CPP" && test -d "$CPP"; then
7411 if test -z "$CPP"; then
7412 if test "${ac_cv_prog_CPP+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7415 # Double quotes because CPP needs to be expanded
7416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7419 for ac_c_preproc_warn_flag in '' yes
7421 # Use a header file that comes with gcc, so configuring glibc
7422 # with a fresh cross-compiler works.
7423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7424 # <limits.h> exists even on freestanding compilers.
7425 # On the NeXT, cc -E runs the code through the compiler's parser,
7426 # not just through cpp. "Syntax error" is here to catch this case.
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7434 # include <limits.h>
7436 # include <assert.h>
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446 $as_echo "$ac_try_echo") >&5
7447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7449 grep -v '^ *+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } >/dev/null && {
7454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7459 $as_echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 # Broken: fails on valid input.
7466 rm -f conftest.err conftest.$ac_ext
7468 # OK, works on sane cases. Now check whether nonexistent headers
7469 # can be detected and how.
7470 cat >conftest.$ac_ext <<_ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <ac_nonexistent.h>
7478 if { (ac_try="$ac_cpp conftest.$ac_ext"
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7484 $as_echo "$ac_try_echo") >&5
7485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } >/dev/null && {
7492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7495 # Broken: success on invalid input.
7498 $as_echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 # Passes both tests.
7506 rm -f conftest.err conftest.$ac_ext
7509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7510 rm -f conftest.err conftest.$ac_ext
7511 if $ac_preproc_ok; then
7523 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7524 $as_echo "$CPP" >&6; }
7526 for ac_c_preproc_warn_flag in '' yes
7528 # Use a header file that comes with gcc, so configuring glibc
7529 # with a fresh cross-compiler works.
7530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 # <limits.h> exists even on freestanding compilers.
7532 # On the NeXT, cc -E runs the code through the compiler's parser,
7533 # not just through cpp. "Syntax error" is here to catch this case.
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7541 # include <limits.h>
7543 # include <assert.h>
7547 if { (ac_try="$ac_cpp conftest.$ac_ext"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } >/dev/null && {
7561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 # Broken: fails on valid input.
7573 rm -f conftest.err conftest.$ac_ext
7575 # OK, works on sane cases. Now check whether nonexistent headers
7576 # can be detected and how.
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <ac_nonexistent.h>
7585 if { (ac_try="$ac_cpp conftest.$ac_ext"
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } >/dev/null && {
7599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7602 # Broken: success on invalid input.
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 # Passes both tests.
7613 rm -f conftest.err conftest.$ac_ext
7616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7617 rm -f conftest.err conftest.$ac_ext
7618 if $ac_preproc_ok; then
7621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7623 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7624 See \`config.log' for more details." >&5
7625 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7626 See \`config.log' for more details." >&2;}
7627 { (exit 1); exit 1; }; }; }
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7638 $as_echo_n "checking for ANSI C header files... " >&6; }
7639 if test "${ac_cv_header_stdc+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_cv_header_stdc=yes
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_header_stdc=no
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 if test $ac_cv_header_stdc = yes; then
7690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "memchr" >/dev/null 2>&1; then
7704 ac_cv_header_stdc=no
7710 if test $ac_cv_header_stdc = yes; then
7711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7722 $EGREP "free" >/dev/null 2>&1; then
7725 ac_cv_header_stdc=no
7731 if test $ac_cv_header_stdc = yes; then
7732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7733 if test "$cross_compiling" = yes; then
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7744 #if ((' ' & 0x0FF) == 0x020)
7745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7748 # define ISLOWER(c) \
7749 (('a' <= (c) && (c) <= 'i') \
7750 || ('j' <= (c) && (c) <= 'r') \
7751 || ('s' <= (c) && (c) <= 'z'))
7752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7760 for (i = 0; i < 256; i++)
7761 if (XOR (islower (i), ISLOWER (i))
7762 || toupper (i) != TOUPPER (i))
7767 rm -f conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7774 $as_echo "$ac_try_echo") >&5
7775 (eval "$ac_link") 2>&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7784 $as_echo "$ac_try_echo") >&5
7785 (eval "$ac_try") 2>&5
7787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7791 $as_echo "$as_me: program exited with status $ac_status" >&5
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_cv_header_stdc=no
7798 rm -rf conftest.dSYM
7799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7806 $as_echo "$ac_cv_header_stdc" >&6; }
7807 if test $ac_cv_header_stdc = yes; then
7809 cat >>confdefs.h <<\_ACEOF
7810 #define STDC_HEADERS 1
7815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7826 inttypes.h stdint.h unistd.h
7828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7830 $as_echo_n "checking for $ac_header... " >&6; }
7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7832 $as_echo_n "(cached) " >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 $ac_includes_default
7842 #include <$ac_header>
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 eval "$as_ac_Header=yes"
7864 $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 eval "$as_ac_Header=no"
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_res=`eval 'as_val=${'$as_ac_Header'}
7873 $as_echo "$as_val"'`
7874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7875 $as_echo "$ac_res" >&6; }
7876 as_val=`eval 'as_val=${'$as_ac_Header'}
7877 $as_echo "$as_val"'`
7878 if test "x$as_val" = x""yes; then
7879 cat >>confdefs.h <<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 for ac_header in dlfcn.h
7891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 $as_echo_n "checking for $ac_header... " >&6; }
7895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7896 $as_echo_n "(cached) " >&6
7898 ac_res=`eval 'as_val=${'$as_ac_Header'}
7899 $as_echo "$as_val"'`
7900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7901 $as_echo "$ac_res" >&6; }
7903 # Is the header compilable?
7904 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7905 $as_echo_n "checking $ac_header usability... " >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 #include <$ac_header>
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7922 $as_echo "$ac_try_echo") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933 ac_header_compiler=yes
7935 $as_echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_header_compiler=no
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7943 $as_echo "$ac_header_compiler" >&6; }
7945 # Is the header present?
7946 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7947 $as_echo_n "checking $ac_header presence... " >&6; }
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <$ac_header>
7956 if { (ac_try="$ac_cpp conftest.$ac_ext"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } >/dev/null && {
7970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7973 ac_header_preproc=yes
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_header_preproc=no
7981 rm -f conftest.err conftest.$ac_ext
7982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983 $as_echo "$ac_header_preproc" >&6; }
7985 # So? What about this header?
7986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7989 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7992 ac_header_preproc=yes
7995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7996 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7998 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8000 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8002 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8006 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8008 ## -------------------------------- ##
8009 ## Report this to Hans.Boehm@hp.com ##
8010 ## -------------------------------- ##
8012 ) | sed "s/^/$as_me: WARNING: /" >&2
8015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8016 $as_echo_n "checking for $ac_header... " >&6; }
8017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8018 $as_echo_n "(cached) " >&6
8020 eval "$as_ac_Header=\$ac_header_preproc"
8022 ac_res=`eval 'as_val=${'$as_ac_Header'}
8023 $as_echo "$as_val"'`
8024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8025 $as_echo "$ac_res" >&6; }
8028 as_val=`eval 'as_val=${'$as_ac_Header'}
8029 $as_echo "$as_val"'`
8030 if test "x$as_val" = x""yes; then
8031 cat >>confdefs.h <<_ACEOF
8032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8041 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8042 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8043 (test "X$CXX" != "Xg++"))) ; then
8045 ac_cpp='$CXXCPP $CPPFLAGS'
8046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8049 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8050 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8051 if test -z "$CXXCPP"; then
8052 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8053 $as_echo_n "(cached) " >&6
8055 # Double quotes because CXXCPP needs to be expanded
8056 for CXXCPP in "$CXX -E" "/lib/cpp"
8059 for ac_cxx_preproc_warn_flag in '' yes
8061 # Use a header file that comes with gcc, so configuring glibc
8062 # with a fresh cross-compiler works.
8063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 # <limits.h> exists even on freestanding compilers.
8065 # On the NeXT, cc -E runs the code through the compiler's parser,
8066 # not just through cpp. "Syntax error" is here to catch this case.
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8074 # include <limits.h>
8076 # include <assert.h>
8080 if { (ac_try="$ac_cpp conftest.$ac_ext"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null && {
8094 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8095 test ! -s conftest.err
8099 $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 # Broken: fails on valid input.
8106 rm -f conftest.err conftest.$ac_ext
8108 # OK, works on sane cases. Now check whether nonexistent headers
8109 # can be detected and how.
8110 cat >conftest.$ac_ext <<_ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8116 #include <ac_nonexistent.h>
8118 if { (ac_try="$ac_cpp conftest.$ac_ext"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8124 $as_echo "$ac_try_echo") >&5
8125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } >/dev/null && {
8132 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8133 test ! -s conftest.err
8135 # Broken: success on invalid input.
8138 $as_echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 # Passes both tests.
8146 rm -f conftest.err conftest.$ac_ext
8149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8150 rm -f conftest.err conftest.$ac_ext
8151 if $ac_preproc_ok; then
8156 ac_cv_prog_CXXCPP=$CXXCPP
8159 CXXCPP=$ac_cv_prog_CXXCPP
8161 ac_cv_prog_CXXCPP=$CXXCPP
8163 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8164 $as_echo "$CXXCPP" >&6; }
8166 for ac_cxx_preproc_warn_flag in '' yes
8168 # Use a header file that comes with gcc, so configuring glibc
8169 # with a fresh cross-compiler works.
8170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8171 # <limits.h> exists even on freestanding compilers.
8172 # On the NeXT, cc -E runs the code through the compiler's parser,
8173 # not just through cpp. "Syntax error" is here to catch this case.
8174 cat >conftest.$ac_ext <<_ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8181 # include <limits.h>
8183 # include <assert.h>
8187 if { (ac_try="$ac_cpp conftest.$ac_ext"
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8193 $as_echo "$ac_try_echo") >&5
8194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } >/dev/null && {
8201 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8202 test ! -s conftest.err
8206 $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 # Broken: fails on valid input.
8213 rm -f conftest.err conftest.$ac_ext
8215 # OK, works on sane cases. Now check whether nonexistent headers
8216 # can be detected and how.
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 #include <ac_nonexistent.h>
8225 if { (ac_try="$ac_cpp conftest.$ac_ext"
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8231 $as_echo "$ac_try_echo") >&5
8232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } >/dev/null && {
8239 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8240 test ! -s conftest.err
8242 # Broken: success on invalid input.
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 # Passes both tests.
8253 rm -f conftest.err conftest.$ac_ext
8256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8257 rm -f conftest.err conftest.$ac_ext
8258 if $ac_preproc_ok; then
8261 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8263 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8264 See \`config.log' for more details." >&5
8265 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8266 See \`config.log' for more details." >&2;}
8267 { (exit 1); exit 1; }; }; }
8271 ac_cpp='$CXXCPP $CPPFLAGS'
8272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8280 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8281 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8283 if test -n "$ac_tool_prefix"; then
8284 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
8286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_F77+set}" = set; then
8291 $as_echo_n "(cached) " >&6
8293 if test -n "$F77"; then
8294 ac_cv_prog_F77="$F77" # Let the user override the test.
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 if test -n "$F77"; then
8315 { $as_echo "$as_me:$LINENO: result: $F77" >&5
8316 $as_echo "$F77" >&6; }
8318 { $as_echo "$as_me:$LINENO: result: no" >&5
8319 $as_echo "no" >&6; }
8323 test -n "$F77" && break
8326 if test -z "$F77"; then
8328 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
8330 # Extract the first word of "$ac_prog", so it can be a program name with args.
8331 set dummy $ac_prog; ac_word=$2
8332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8335 $as_echo_n "(cached) " >&6
8337 if test -n "$ac_ct_F77"; then
8338 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_ac_ct_F77="$ac_prog"
8348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8358 if test -n "$ac_ct_F77"; then
8359 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8360 $as_echo "$ac_ct_F77" >&6; }
8362 { $as_echo "$as_me:$LINENO: result: no" >&5
8363 $as_echo "no" >&6; }
8367 test -n "$ac_ct_F77" && break
8370 if test "x$ac_ct_F77" = x; then
8373 case $cross_compiling:$ac_tool_warned in
8375 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8384 # Provide some information about the compiler.
8385 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8388 { (ac_try="$ac_compiler --version >&5"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395 (eval "$ac_compiler --version >&5") 2>&5
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }
8399 { (ac_try="$ac_compiler -v >&5"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406 (eval "$ac_compiler -v >&5") 2>&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }
8410 { (ac_try="$ac_compiler -V >&5"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417 (eval "$ac_compiler -V >&5") 2>&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }
8423 # If we don't use `.F' as extension, the preprocessor is not run on the
8424 # input file. (Note that this only needs to work for GNU compilers.)
8427 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8428 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8429 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_f77_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8460 $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8470 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8471 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8473 ac_test_FFLAGS=${FFLAGS+set}
8474 ac_save_FFLAGS=$FFLAGS
8476 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8477 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
8478 if test "${ac_cv_prog_f77_g+set}" = set; then
8479 $as_echo_n "(cached) " >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494 $as_echo "$ac_try_echo") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_f77_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_prog_f77_g=yes
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8517 $as_echo "$ac_cv_prog_f77_g" >&6; }
8518 if test "$ac_test_FFLAGS" = set; then
8519 FFLAGS=$ac_save_FFLAGS
8520 elif test $ac_cv_prog_f77_g = yes; then
8521 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8527 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8534 if test $ac_compiler_gnu = yes; then
8540 ac_cpp='$CPP $CPPFLAGS'
8541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8547 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8548 # find the maximum length of command line arguments
8549 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8552 $as_echo_n "(cached) " >&6
8559 # On DJGPP, this test can blow up pretty badly due to problems in libc
8560 # (any single argument exceeding 2000 bytes causes a buffer overrun
8561 # during glob expansion). Even if it were fixed, the result of this
8562 # check would be larger than it should be.
8563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8567 # Under GNU Hurd, this test is not required because there is
8568 # no limit to the length of command line arguments.
8569 # Libtool will interpret -1 as no limit whatsoever
8570 lt_cv_sys_max_cmd_len=-1;
8574 # On Win9x/ME, this test blows up -- it succeeds, but takes
8575 # about 5 minutes as the teststring grows exponentially.
8576 # Worse, since 9x/ME are not pre-emptively multitasking,
8577 # you end up with a "frozen" computer, even though with patience
8578 # the test eventually succeeds (with a max line length of 256k).
8579 # Instead, let's just punt: use the minimum linelength reported by
8580 # all of the supported platforms: 8192 (on NT/2K/XP).
8581 lt_cv_sys_max_cmd_len=8192;
8585 # On AmigaOS with pdksh, this test takes hours, literally.
8586 # So we just punt and use a minimum line length of 8192.
8587 lt_cv_sys_max_cmd_len=8192;
8590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8591 # This has been around since 386BSD, at least. Likely further.
8592 if test -x /sbin/sysctl; then
8593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8594 elif test -x /usr/sbin/sysctl; then
8595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8599 # And add a safety zone
8600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8606 lt_cv_sys_max_cmd_len=196608
8610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8612 # nice to cause kernel panics so lets avoid the loop below.
8613 # First set a reasonable default.
8614 lt_cv_sys_max_cmd_len=16384
8616 if test -x /sbin/sysconfig; then
8617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8623 lt_cv_sys_max_cmd_len=102400
8625 sysv5* | sco5v6* | sysv4.2uw2*)
8626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8627 if test -n "$kargmax"; then
8628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8630 lt_cv_sys_max_cmd_len=32768
8634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8635 if test -n "$lt_cv_sys_max_cmd_len"; then
8636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8639 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8640 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8641 = "XX$teststring") >/dev/null 2>&1 &&
8642 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8643 lt_cv_sys_max_cmd_len=$new_result &&
8644 test $i != 17 # 1/2 MB should be enough
8647 teststring=$teststring$teststring
8650 # Add a significant safety factor because C++ compilers can tack on massive
8651 # amounts of additional arguments before passing them to the linker.
8652 # It appears as though 1/2 is a usable value.
8653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8660 if test -n $lt_cv_sys_max_cmd_len ; then
8661 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8664 { $as_echo "$as_me:$LINENO: result: none" >&5
8665 $as_echo "none" >&6; }
8672 # Check for command to grab the raw symbol name followed by C symbol from nm.
8673 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8675 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8676 $as_echo_n "(cached) " >&6
8679 # These are sane defaults that work on at least a few old systems.
8680 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8682 # Character class describing NM global symbol codes.
8683 symcode='[BCDEGRST]'
8685 # Regexp to match symbols that can be accessed directly from C.
8686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8688 # Transform an extracted symbol line into a proper C declaration
8689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8691 # Transform an extracted symbol line into symbol name and symbol address
8692 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'"
8694 # Define system-specific variables.
8699 cygwin* | mingw* | pw32*)
8700 symcode='[ABCDGISTW]'
8702 hpux*) # Its linker distinguishes data from code symbols
8703 if test "$host_cpu" = ia64; then
8704 symcode='[ABCDEGRST]'
8706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8707 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'"
8709 linux* | k*bsd*-gnu)
8710 if test "$host_cpu" = ia64; then
8711 symcode='[ABCDGIRSTW]'
8712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8713 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'"
8717 symcode='[BCDEGRST]'
8720 symcode='[BCDEGQRST]'
8731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8739 # Handle CRLF in mingw tool chain
8743 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8747 # If we're using GNU nm, then use its standard symbol codes.
8748 case `$NM -V 2>&1` in
8749 *GNU* | *'with BFD'*)
8750 symcode='[ABCDGIRSTW]' ;;
8753 # Try without a prefix undercore, then with it.
8754 for ac_symprfx in "" "_"; do
8756 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8757 symxfrm="\\1 $ac_symprfx\\2 \\2"
8759 # Write the raw and C identifiers.
8760 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8762 # Check to see that the pipe works correctly.
8766 cat > conftest.$ac_ext <<EOF
8771 void nm_test_func(){}
8775 int main(){nm_test_var='a';nm_test_func();return(0);}
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>&5
8781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; then
8783 # Now try to grab the symbols.
8785 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8786 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && test -s "$nlist"; then
8790 # Try sorting and uniquifying the output.
8791 if sort "$nlist" | uniq > "$nlist"T; then
8792 mv -f "$nlist"T "$nlist"
8797 # Make sure that we snagged all the symbols we need.
8798 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8799 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8800 cat <<EOF > conftest.$ac_ext
8806 # Now generate the symbol file.
8807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8809 cat <<EOF >> conftest.$ac_ext
8810 #if defined (__STDC__) && __STDC__
8811 # define lt_ptr_t void *
8813 # define lt_ptr_t char *
8817 /* The mapping between symbol names and symbols. */
8822 lt_preloaded_symbols[] =
8825 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8826 cat <<\EOF >> conftest.$ac_ext
8834 # Now try linking the two files.
8835 mv conftest.$ac_objext conftstm.$ac_objext
8836 lt_save_LIBS="$LIBS"
8837 lt_save_CFLAGS="$CFLAGS"
8838 LIBS="conftstm.$ac_objext"
8839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8847 LIBS="$lt_save_LIBS"
8848 CFLAGS="$lt_save_CFLAGS"
8850 echo "cannot find nm_test_func in $nlist" >&5
8853 echo "cannot find nm_test_var in $nlist" >&5
8856 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8859 echo "$progname: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 rm -rf conftest* conftst*
8864 # Do not use the global_symbol_pipe unless it works.
8865 if test "$pipe_works" = yes; then
8868 lt_cv_sys_global_symbol_pipe=
8874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8875 lt_cv_sys_global_symbol_to_cdecl=
8877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8878 { $as_echo "$as_me:$LINENO: result: failed" >&5
8879 $as_echo "failed" >&6; }
8881 { $as_echo "$as_me:$LINENO: result: ok" >&5
8882 $as_echo "ok" >&6; }
8885 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8886 $as_echo_n "checking for objdir... " >&6; }
8887 if test "${lt_cv_objdir+set}" = set; then
8888 $as_echo_n "(cached) " >&6
8890 rm -f .libs 2>/dev/null
8891 mkdir .libs 2>/dev/null
8892 if test -d .libs; then
8895 # MS-DOS does not allow filenames that begin with a dot.
8898 rmdir .libs 2>/dev/null
8900 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8901 $as_echo "$lt_cv_objdir" >&6; }
8902 objdir=$lt_cv_objdir
8910 # AIX sometimes has problems with the GCC collect2 program. For some
8911 # reason, if we set the COLLECT_NAMES environment variable, the problems
8912 # vanish in a puff of smoke.
8913 if test "X${COLLECT_NAMES+set}" != Xset; then
8915 export COLLECT_NAMES
8920 # Sed substitution that helps us do robust quoting. It backslashifies
8921 # metacharacters that are still active within double-quoted strings.
8922 Xsed='sed -e 1s/^X//'
8923 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8925 # Same as above, but do not quote variable references.
8926 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8928 # Sed substitution to delay expansion of an escaped shell variable in a
8929 # double_quote_subst'ed string.
8930 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8932 # Sed substitution to avoid accidental globbing in evaled expressions
8933 no_glob_subst='s/\*/\\\*/g'
8939 default_ofile=libtool
8940 can_build_shared=yes
8942 # All known linkers require a `.a' archive for static linking (except MSVC,
8943 # which needs '.lib').
8945 ltmain="$ac_aux_dir/ltmain.sh"
8946 ofile="$default_ofile"
8947 with_gnu_ld="$lt_cv_prog_gnu_ld"
8949 if test -n "$ac_tool_prefix"; then
8950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}ar; ac_word=$2
8952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_AR+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8957 if test -n "$AR"; then
8958 ac_cv_prog_AR="$AR" # Let the user override the test.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_prog_AR="${ac_tool_prefix}ar"
8968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 if test -n "$AR"; then
8979 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8980 $as_echo "$AR" >&6; }
8982 { $as_echo "$as_me:$LINENO: result: no" >&5
8983 $as_echo "no" >&6; }
8988 if test -z "$ac_cv_prog_AR"; then
8990 # Extract the first word of "ar", so it can be a program name with args.
8991 set dummy ar; ac_word=$2
8992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8995 $as_echo_n "(cached) " >&6
8997 if test -n "$ac_ct_AR"; then
8998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_prog_ac_ct_AR="ar"
9008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9018 if test -n "$ac_ct_AR"; then
9019 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9020 $as_echo "$ac_ct_AR" >&6; }
9022 { $as_echo "$as_me:$LINENO: result: no" >&5
9023 $as_echo "no" >&6; }
9026 if test "x$ac_ct_AR" = x; then
9029 case $cross_compiling:$ac_tool_warned in
9031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_RANLIB+set}" = set; then
9047 $as_echo_n "(cached) " >&6
9049 if test -n "$RANLIB"; then
9050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 RANLIB=$ac_cv_prog_RANLIB
9070 if test -n "$RANLIB"; then
9071 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9072 $as_echo "$RANLIB" >&6; }
9074 { $as_echo "$as_me:$LINENO: result: no" >&5
9075 $as_echo "no" >&6; }
9080 if test -z "$ac_cv_prog_RANLIB"; then
9081 ac_ct_RANLIB=$RANLIB
9082 # Extract the first word of "ranlib", so it can be a program name with args.
9083 set dummy ranlib; ac_word=$2
9084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$ac_ct_RANLIB"; then
9090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_prog_ac_ct_RANLIB="ranlib"
9100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9110 if test -n "$ac_ct_RANLIB"; then
9111 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9112 $as_echo "$ac_ct_RANLIB" >&6; }
9114 { $as_echo "$as_me:$LINENO: result: no" >&5
9115 $as_echo "no" >&6; }
9118 if test "x$ac_ct_RANLIB" = x; then
9121 case $cross_compiling:$ac_tool_warned in
9123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9127 RANLIB=$ac_ct_RANLIB
9130 RANLIB="$ac_cv_prog_RANLIB"
9133 if test -n "$ac_tool_prefix"; then
9134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}strip; ac_word=$2
9136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_STRIP+set}" = set; then
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$STRIP"; then
9142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 STRIP=$ac_cv_prog_STRIP
9162 if test -n "$STRIP"; then
9163 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9164 $as_echo "$STRIP" >&6; }
9166 { $as_echo "$as_me:$LINENO: result: no" >&5
9167 $as_echo "no" >&6; }
9172 if test -z "$ac_cv_prog_STRIP"; then
9174 # Extract the first word of "strip", so it can be a program name with args.
9175 set dummy strip; ac_word=$2
9176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$ac_ct_STRIP"; then
9182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_ac_ct_STRIP="strip"
9192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9202 if test -n "$ac_ct_STRIP"; then
9203 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9204 $as_echo "$ac_ct_STRIP" >&6; }
9206 { $as_echo "$as_me:$LINENO: result: no" >&5
9207 $as_echo "no" >&6; }
9210 if test "x$ac_ct_STRIP" = x; then
9213 case $cross_compiling:$ac_tool_warned in
9215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9222 STRIP="$ac_cv_prog_STRIP"
9227 old_CFLAGS="$CFLAGS"
9229 # Set sane defaults for various variables
9230 test -z "$AR" && AR=ar
9231 test -z "$AR_FLAGS" && AR_FLAGS=cru
9232 test -z "$AS" && AS=as
9233 test -z "$CC" && CC=cc
9234 test -z "$LTCC" && LTCC=$CC
9235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9236 test -z "$DLLTOOL" && DLLTOOL=dlltool
9237 test -z "$LD" && LD=ld
9238 test -z "$LN_S" && LN_S="ln -s"
9239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240 test -z "$NM" && NM=nm
9241 test -z "$SED" && SED=sed
9242 test -z "$OBJDUMP" && OBJDUMP=objdump
9243 test -z "$RANLIB" && RANLIB=:
9244 test -z "$STRIP" && STRIP=:
9245 test -z "$ac_objext" && ac_objext=o
9247 # Determine commands to create old-style static archives.
9248 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9249 old_postinstall_cmds='chmod 644 $oldlib'
9250 old_postuninstall_cmds=
9252 if test -n "$RANLIB"; then
9255 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9261 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9264 for cc_temp in $compiler""; do
9266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9275 # Only perform the check for file, if the check method requires it
9276 case $deplibs_check_method in
9278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9279 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9280 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9282 $as_echo_n "(cached) " >&6
9286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9289 lt_save_MAGIC_CMD="$MAGIC_CMD"
9290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292 for ac_dir in $ac_dummy; do
9294 test -z "$ac_dir" && ac_dir=.
9295 if test -f $ac_dir/${ac_tool_prefix}file; then
9296 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9297 if test -n "$file_magic_test_file"; then
9298 case $deplibs_check_method in
9300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303 $EGREP "$file_magic_regex" > /dev/null; then
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such. This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem. Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9325 MAGIC_CMD="$lt_save_MAGIC_CMD"
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9333 $as_echo "$MAGIC_CMD" >&6; }
9335 { $as_echo "$as_me:$LINENO: result: no" >&5
9336 $as_echo "no" >&6; }
9339 if test -z "$lt_cv_path_MAGIC_CMD"; then
9340 if test -n "$ac_tool_prefix"; then
9341 { $as_echo "$as_me:$LINENO: checking for file" >&5
9342 $as_echo_n "checking for file... " >&6; }
9343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9344 $as_echo_n "(cached) " >&6
9348 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9351 lt_save_MAGIC_CMD="$MAGIC_CMD"
9352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9353 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9354 for ac_dir in $ac_dummy; do
9356 test -z "$ac_dir" && ac_dir=.
9357 if test -f $ac_dir/file; then
9358 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9359 if test -n "$file_magic_test_file"; then
9360 case $deplibs_check_method in
9362 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9365 $EGREP "$file_magic_regex" > /dev/null; then
9370 *** Warning: the command libtool uses to detect shared libraries,
9371 *** $file_magic_cmd, produces output that libtool cannot recognize.
9372 *** The result is that libtool may fail to recognize shared libraries
9373 *** as such. This will affect the creation of libtool libraries that
9374 *** depend on shared libraries, but programs linked with such libtool
9375 *** libraries will work regardless of this problem. Nevertheless, you
9376 *** may want to report the problem to your system manager and/or to
9377 *** bug-libtool@gnu.org
9387 MAGIC_CMD="$lt_save_MAGIC_CMD"
9392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9393 if test -n "$MAGIC_CMD"; then
9394 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9395 $as_echo "$MAGIC_CMD" >&6; }
9397 { $as_echo "$as_me:$LINENO: result: no" >&5
9398 $as_echo "no" >&6; }
9412 rhapsody* | darwin*)
9413 if test -n "$ac_tool_prefix"; then
9414 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9419 $as_echo_n "(cached) " >&6
9421 if test -n "$DSYMUTIL"; then
9422 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9442 if test -n "$DSYMUTIL"; then
9443 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9444 $as_echo "$DSYMUTIL" >&6; }
9446 { $as_echo "$as_me:$LINENO: result: no" >&5
9447 $as_echo "no" >&6; }
9452 if test -z "$ac_cv_prog_DSYMUTIL"; then
9453 ac_ct_DSYMUTIL=$DSYMUTIL
9454 # Extract the first word of "dsymutil", so it can be a program name with args.
9455 set dummy dsymutil; ac_word=$2
9456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9459 $as_echo_n "(cached) " >&6
9461 if test -n "$ac_ct_DSYMUTIL"; then
9462 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9482 if test -n "$ac_ct_DSYMUTIL"; then
9483 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9484 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9486 { $as_echo "$as_me:$LINENO: result: no" >&5
9487 $as_echo "no" >&6; }
9490 if test "x$ac_ct_DSYMUTIL" = x; then
9493 case $cross_compiling:$ac_tool_warned in
9495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9497 ac_tool_warned=yes ;;
9499 DSYMUTIL=$ac_ct_DSYMUTIL
9502 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9505 if test -n "$ac_tool_prefix"; then
9506 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9511 $as_echo_n "(cached) " >&6
9513 if test -n "$NMEDIT"; then
9514 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 NMEDIT=$ac_cv_prog_NMEDIT
9534 if test -n "$NMEDIT"; then
9535 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9536 $as_echo "$NMEDIT" >&6; }
9538 { $as_echo "$as_me:$LINENO: result: no" >&5
9539 $as_echo "no" >&6; }
9544 if test -z "$ac_cv_prog_NMEDIT"; then
9545 ac_ct_NMEDIT=$NMEDIT
9546 # Extract the first word of "nmedit", so it can be a program name with args.
9547 set dummy nmedit; ac_word=$2
9548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 if test -n "$ac_ct_NMEDIT"; then
9554 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9574 if test -n "$ac_ct_NMEDIT"; then
9575 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9576 $as_echo "$ac_ct_NMEDIT" >&6; }
9578 { $as_echo "$as_me:$LINENO: result: no" >&5
9579 $as_echo "no" >&6; }
9582 if test "x$ac_ct_NMEDIT" = x; then
9585 case $cross_compiling:$ac_tool_warned in
9587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9589 ac_tool_warned=yes ;;
9591 NMEDIT=$ac_ct_NMEDIT
9594 NMEDIT="$ac_cv_prog_NMEDIT"
9598 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9599 $as_echo_n "checking for -single_module linker flag... " >&6; }
9600 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9601 $as_echo_n "(cached) " >&6
9603 lt_cv_apple_cc_single_mod=no
9604 if test -z "${LT_MULTI_MODULE}"; then
9605 # By default we will add the -single_module flag. You can override
9606 # by either setting the environment variable LT_MULTI_MODULE
9607 # non-empty at configure time, or by adding -multi_module to the
9609 echo "int foo(void){return 1;}" > conftest.c
9610 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9611 -dynamiclib ${wl}-single_module conftest.c
9612 if test -f libconftest.dylib; then
9613 lt_cv_apple_cc_single_mod=yes
9614 rm -rf libconftest.dylib*
9619 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9621 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9623 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9624 $as_echo_n "(cached) " >&6
9626 lt_cv_ld_exported_symbols_list=no
9627 save_LDFLAGS=$LDFLAGS
9628 echo "_main" > conftest.sym
9629 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652 $as_echo "$ac_try_echo") >&5
9653 (eval "$ac_link") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext && {
9663 test "$cross_compiling" = yes ||
9664 $as_test_x conftest$ac_exeext
9666 lt_cv_ld_exported_symbols_list=yes
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 lt_cv_ld_exported_symbols_list=no
9674 rm -rf conftest.dSYM
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LDFLAGS="$save_LDFLAGS"
9680 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9683 rhapsody* | darwin1.[0123])
9684 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9688 # if running on 10.5 or later, the deployment target defaults
9689 # to the OS version, if on x86, and 10.4, the deployment
9690 # target defaults to 10.4. Don't you love it?
9691 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9695 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9697 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9701 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702 _lt_dar_single_mod='$single_module'
9704 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9707 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9709 if test "$DSYMUTIL" != ":"; then
9710 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9721 # Check whether --enable-libtool-lock was given.
9722 if test "${enable_libtool_lock+set}" = set; then
9723 enableval=$enable_libtool_lock;
9726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9729 # Check whether --with-pic was given.
9730 if test "${with_pic+set}" = set; then
9731 withval=$with_pic; pic_mode="$withval"
9736 test -z "$pic_mode" && pic_mode=default
9738 # Use C for the default configuration in the libtool script
9742 ac_cpp='$CPP $CPPFLAGS'
9743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9748 # Source file extension for C test sources.
9751 # Object file extension for compiled C test sources.
9755 # Code to be used in simple compile tests
9756 lt_simple_compile_test_code="int some_variable = 0;"
9758 # Code to be used in simple link tests
9759 lt_simple_link_test_code='int main(){return(0);}'
9762 # If no C compiler was specified, use CC.
9765 # If no C compiler flags were specified, use CFLAGS.
9766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9768 # Allow CC to be a program name with arguments.
9772 # save warnings/boilerplate of simple test code
9773 ac_outfile=conftest.$ac_objext
9774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9776 _lt_compiler_boilerplate=`cat conftest.err`
9779 ac_outfile=conftest.$ac_objext
9780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9782 _lt_linker_boilerplate=`cat conftest.err`
9787 lt_prog_compiler_no_builtin_flag=
9789 if test "$GCC" = yes; then
9790 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9793 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9794 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9795 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9796 $as_echo_n "(cached) " >&6
9798 lt_cv_prog_compiler_rtti_exceptions=no
9799 ac_outfile=conftest.$ac_objext
9800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9801 lt_compiler_flag="-fno-rtti -fno-exceptions"
9802 # Insert the option either (1) after the last *FLAGS variable, or
9803 # (2) before a word containing "conftest.", or (3) at the end.
9804 # Note that $ac_compile itself does not contain backslashes and begins
9805 # with a dollar sign (not a hyphen), so the echo should work correctly.
9806 # The option is referenced via a variable to avoid confusing sed.
9807 lt_compile=`echo "$ac_compile" | $SED \
9808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9810 -e 's:$: $lt_compiler_flag:'`
9811 (eval echo "\"\$as_me:9811: $lt_compile\"" >&5)
9812 (eval "$lt_compile" 2>conftest.err)
9814 cat conftest.err >&5
9815 echo "$as_me:9815: \$? = $ac_status" >&5
9816 if (exit $ac_status) && test -s "$ac_outfile"; then
9817 # The compiler can only warn and ignore the option if not recognized
9818 # So say no if there are warnings other than the usual output.
9819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler_rtti_exceptions=yes
9828 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9839 lt_prog_compiler_wl=
9840 lt_prog_compiler_pic=
9841 lt_prog_compiler_static=
9843 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9844 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9846 if test "$GCC" = yes; then
9847 lt_prog_compiler_wl='-Wl,'
9848 lt_prog_compiler_static='-static'
9852 # All AIX code is PIC.
9853 if test "$host_cpu" = ia64; then
9854 # AIX 5 now supports IA64 processor
9855 lt_prog_compiler_static='-Bstatic'
9860 # FIXME: we need at least 68020 code to build shared libraries, but
9861 # adding the `-m68020' flag to GCC prevents building anything better,
9863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9866 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9867 # PIC is the default for these OSes.
9870 mingw* | cygwin* | pw32* | os2*)
9871 # This hack is so that the source file can tell whether it is being
9872 # built for inclusion in a dll (and should export symbols for example).
9873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9874 # (--disable-auto-import) libraries
9875 lt_prog_compiler_pic='-DDLL_EXPORT'
9878 darwin* | rhapsody*)
9879 # PIC is the default on this platform
9880 # Common symbols not allowed in MH_DYLIB files
9881 lt_prog_compiler_pic='-fno-common'
9885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9886 # Instead, we relocate shared libraries at runtime.
9890 # Just because we use GCC doesn't mean we suddenly get shared libraries
9891 # on systems that don't support them.
9892 lt_prog_compiler_can_build_shared=no
9897 if test -d /usr/nec; then
9898 lt_prog_compiler_pic=-Kconform_pic
9903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9910 lt_prog_compiler_pic='-fPIC'
9916 lt_prog_compiler_pic='-fPIC'
9920 # PORTME Check for flag to pass linker flags through the system compiler.
9923 lt_prog_compiler_wl='-Wl,'
9924 if test "$host_cpu" = ia64; then
9925 # AIX 5 now supports IA64 processor
9926 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9932 # PIC is the default on this platform
9933 # Common symbols not allowed in MH_DYLIB files
9934 case $cc_basename in
9936 lt_prog_compiler_pic='-qnocommon'
9937 lt_prog_compiler_wl='-Wl,'
9942 mingw* | cygwin* | pw32* | os2*)
9943 # This hack is so that the source file can tell whether it is being
9944 # built for inclusion in a dll (and should export symbols for example).
9945 lt_prog_compiler_pic='-DDLL_EXPORT'
9948 hpux9* | hpux10* | hpux11*)
9949 lt_prog_compiler_wl='-Wl,'
9950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9957 lt_prog_compiler_pic='+Z'
9960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9961 lt_prog_compiler_static='${wl}-a ${wl}archive'
9964 irix5* | irix6* | nonstopux*)
9965 lt_prog_compiler_wl='-Wl,'
9966 # PIC (with -KPIC) is the default.
9967 lt_prog_compiler_static='-non_shared'
9971 lt_prog_compiler_pic='-KPIC'
9972 lt_prog_compiler_static='-Bstatic'
9975 linux* | k*bsd*-gnu)
9976 case $cc_basename in
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-KPIC'
9980 lt_prog_compiler_static='-static'
9982 pgcc* | pgf77* | pgf90* | pgf95*)
9983 # Portland Group compilers (*not* the Pentium gcc compiler,
9984 # which looks to be a dead project)
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_pic='-fpic'
9987 lt_prog_compiler_static='-Bstatic'
9990 lt_prog_compiler_wl='-Wl,'
9991 # All Alpha code is PIC.
9992 lt_prog_compiler_static='-non_shared'
9995 case `$CC -V 2>&1 | sed 5q` in
9998 lt_prog_compiler_pic='-KPIC'
9999 lt_prog_compiler_static='-Bstatic'
10000 lt_prog_compiler_wl='-Wl,'
10003 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10004 lt_prog_compiler_pic='-KPIC'
10005 lt_prog_compiler_static='-Bstatic'
10006 lt_prog_compiler_wl=''
10013 osf3* | osf4* | osf5*)
10014 lt_prog_compiler_wl='-Wl,'
10015 # All OSF/1 code is PIC.
10016 lt_prog_compiler_static='-non_shared'
10020 lt_prog_compiler_static='-non_shared'
10024 lt_prog_compiler_pic='-KPIC'
10025 lt_prog_compiler_static='-Bstatic'
10026 case $cc_basename in
10027 f77* | f90* | f95*)
10028 lt_prog_compiler_wl='-Qoption ld ';;
10030 lt_prog_compiler_wl='-Wl,';;
10035 lt_prog_compiler_wl='-Qoption ld '
10036 lt_prog_compiler_pic='-PIC'
10037 lt_prog_compiler_static='-Bstatic'
10040 sysv4 | sysv4.2uw2* | sysv4.3*)
10041 lt_prog_compiler_wl='-Wl,'
10042 lt_prog_compiler_pic='-KPIC'
10043 lt_prog_compiler_static='-Bstatic'
10047 if test -d /usr/nec ;then
10048 lt_prog_compiler_pic='-Kconform_pic'
10049 lt_prog_compiler_static='-Bstatic'
10053 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10054 lt_prog_compiler_wl='-Wl,'
10055 lt_prog_compiler_pic='-KPIC'
10056 lt_prog_compiler_static='-Bstatic'
10060 lt_prog_compiler_wl='-Wl,'
10061 lt_prog_compiler_can_build_shared=no
10065 lt_prog_compiler_pic='-pic'
10066 lt_prog_compiler_static='-Bstatic'
10070 lt_prog_compiler_can_build_shared=no
10075 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10076 $as_echo "$lt_prog_compiler_pic" >&6; }
10079 # Check to make sure the PIC flag actually works.
10081 if test -n "$lt_prog_compiler_pic"; then
10083 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10084 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10085 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10086 $as_echo_n "(cached) " >&6
10088 lt_cv_prog_compiler_pic_works=no
10089 ac_outfile=conftest.$ac_objext
10090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10092 # Insert the option either (1) after the last *FLAGS variable, or
10093 # (2) before a word containing "conftest.", or (3) at the end.
10094 # Note that $ac_compile itself does not contain backslashes and begins
10095 # with a dollar sign (not a hyphen), so the echo should work correctly.
10096 # The option is referenced via a variable to avoid confusing sed.
10097 lt_compile=`echo "$ac_compile" | $SED \
10098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10100 -e 's:$: $lt_compiler_flag:'`
10101 (eval echo "\"\$as_me:10101: $lt_compile\"" >&5)
10102 (eval "$lt_compile" 2>conftest.err)
10104 cat conftest.err >&5
10105 echo "$as_me:10105: \$? = $ac_status" >&5
10106 if (exit $ac_status) && test -s "$ac_outfile"; then
10107 # The compiler can only warn and ignore the option if not recognized
10108 # So say no if there are warnings other than the usual output.
10109 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10112 lt_cv_prog_compiler_pic_works=yes
10118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10119 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10121 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10122 case $lt_prog_compiler_pic in
10124 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10127 lt_prog_compiler_pic=
10128 lt_prog_compiler_can_build_shared=no
10133 # For platforms which do not support PIC, -DPIC is meaningless:
10135 lt_prog_compiler_pic=
10138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10143 # Check to make sure the static flag actually works.
10145 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10146 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10147 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10148 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_prog_compiler_static_works=no
10152 save_LDFLAGS="$LDFLAGS"
10153 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10154 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10156 # The linker can only warn and ignore the option if not recognized
10157 # So say no if there are warnings
10158 if test -s conftest.err; then
10159 # Append any errors to the config.log.
10160 cat conftest.err 1>&5
10161 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10163 if diff conftest.exp conftest.er2 >/dev/null; then
10164 lt_cv_prog_compiler_static_works=yes
10167 lt_cv_prog_compiler_static_works=yes
10171 LDFLAGS="$save_LDFLAGS"
10174 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10175 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10177 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10180 lt_prog_compiler_static=
10184 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10186 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10187 $as_echo_n "(cached) " >&6
10189 lt_cv_prog_compiler_c_o=no
10190 $rm -r conftest 2>/dev/null
10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196 lt_compiler_flag="-o out/conftest2.$ac_objext"
10197 # Insert the option either (1) after the last *FLAGS variable, or
10198 # (2) before a word containing "conftest.", or (3) at the end.
10199 # Note that $ac_compile itself does not contain backslashes and begins
10200 # with a dollar sign (not a hyphen), so the echo should work correctly.
10201 lt_compile=`echo "$ac_compile" | $SED \
10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204 -e 's:$: $lt_compiler_flag:'`
10205 (eval echo "\"\$as_me:10205: $lt_compile\"" >&5)
10206 (eval "$lt_compile" 2>out/conftest.err)
10208 cat out/conftest.err >&5
10209 echo "$as_me:10209: \$? = $ac_status" >&5
10210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10212 # The compiler can only warn and ignore the option if not recognized
10213 # So say no if there are warnings
10214 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10217 lt_cv_prog_compiler_c_o=yes
10222 # SGI C++ compiler will create directory out/ii_files/ for
10223 # template instantiation
10224 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10225 $rm out/* && rmdir out
10231 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10235 hard_links="nottested"
10236 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10237 # do not overwrite the value of need_locks provided by the user
10238 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10239 $as_echo_n "checking if we can lock with hard links... " >&6; }
10242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10244 ln conftest.a conftest.b 2>&5 || hard_links=no
10245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10247 $as_echo "$hard_links" >&6; }
10248 if test "$hard_links" = no; then
10249 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10250 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10257 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10258 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10261 allow_undefined_flag=
10262 enable_shared_with_static_runtimes=no
10264 archive_expsym_cmds=
10265 old_archive_From_new_cmds=
10266 old_archive_from_expsyms_cmds=
10267 export_dynamic_flag_spec=
10268 whole_archive_flag_spec=
10269 thread_safe_flag_spec=
10270 hardcode_libdir_flag_spec=
10271 hardcode_libdir_flag_spec_ld=
10272 hardcode_libdir_separator=
10274 hardcode_minus_L=no
10275 hardcode_shlibpath_var=unsupported
10276 link_all_deplibs=unknown
10277 hardcode_automatic=no
10279 module_expsym_cmds=
10280 always_export_symbols=no
10281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10282 # include_expsyms should be a list of space-separated symbols to be *always*
10283 # included in the symbol list
10285 # exclude_expsyms can be an extended regexp of symbols to exclude
10286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10288 # as well as any symbol that contains `d'.
10289 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10291 # platforms (ab)use it in PIC code, but their linkers get confused if
10292 # the symbol is explicitly referenced. Since portable code cannot
10293 # rely on this symbol name, it's probably fine to never include it in
10294 # preloaded symbol tables.
10295 # Exclude shared library initialization/finalization symbols.
10296 extract_expsyms_cmds=
10297 # Just being paranoid about ensuring that cc_basename is set.
10298 for cc_temp in $compiler""; do
10300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10306 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10309 cygwin* | mingw* | pw32*)
10310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311 # When not using gcc, we currently assume that we are using
10312 # Microsoft Visual C++.
10313 if test "$GCC" != yes; then
10318 # we just hope/assume this is gcc and not c89 (= MSVC++)
10327 if test "$with_gnu_ld" = yes; then
10328 # If archive_cmds runs LD, not CC, wlarc should be empty
10331 # Set some defaults for GNU ld with shared library support. These
10332 # are reset later if shared libraries are not supported. Putting them
10333 # here allows them to be overridden if necessary.
10334 runpath_var=LD_RUN_PATH
10335 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10336 export_dynamic_flag_spec='${wl}--export-dynamic'
10337 # ancient GNU ld didn't support --whole-archive et. al.
10338 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10339 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10341 whole_archive_flag_spec=
10343 supports_anon_versioning=no
10344 case `$LD -v 2>/dev/null` in
10345 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10346 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10347 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10348 *\ 2.11.*) ;; # other 2.11 versions
10349 *) supports_anon_versioning=yes ;;
10352 # See if GNU ld supports shared libraries.
10355 # On AIX/PPC, the GNU linker is very broken
10356 if test "$host_cpu" != ia64; then
10360 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10361 *** to be unable to reliably create shared libraries on AIX.
10362 *** Therefore, libtool is disabling shared libraries support. If you
10363 *** really care for shared libraries, you may want to modify your PATH
10364 *** so that a non-GNU linker is found, and then restart.
10371 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)'
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_minus_L=yes
10375 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10376 # that the semantics of dynamic libraries on AmigaOS, at least up
10377 # to version 4, is to share data among multiple programs linked
10378 # with the same dynamic library. Since this doesn't match the
10379 # behavior of shared libraries on other platforms, we can't use
10385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10386 allow_undefined_flag=unsupported
10387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388 # support --undefined. This deserves some investigation. FIXME
10389 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395 cygwin* | mingw* | pw32*)
10396 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10397 # as there is no search path for DLLs.
10398 hardcode_libdir_flag_spec='-L$libdir'
10399 allow_undefined_flag=unsupported
10400 always_export_symbols=no
10401 enable_shared_with_static_runtimes=yes
10402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10404 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406 # If the export-symbols file already is a .def file (1st line
10407 # is EXPORTS), use it as is; otherwise, prepend...
10408 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10409 cp $export_symbols $output_objdir/$soname.def;
10411 echo EXPORTS > $output_objdir/$soname.def;
10412 cat $export_symbols >> $output_objdir/$soname.def;
10414 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10422 hardcode_shlibpath_var=no
10423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424 export_dynamic_flag_spec='${wl}-E'
10425 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10426 # Instead, shared libraries are loaded at an image base (0x10000000 by
10427 # default) and relocated if they conflict, which is a slow very memory
10428 # consuming and fragmenting process. To avoid this, we pick a random,
10429 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10430 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10432 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'
10435 gnu* | linux* | k*bsd*-gnu)
10436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10438 case $cc_basename,$host_cpu in
10439 pgcc*) # Portland Group C compiler
10440 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'
10441 tmp_addflag=' $pic_flag'
10443 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10444 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'
10445 tmp_addflag=' $pic_flag -Mnomain' ;;
10446 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10447 tmp_addflag=' -i_dynamic' ;;
10448 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10449 tmp_addflag=' -i_dynamic -nofor_main' ;;
10450 ifc* | ifort*) # Intel Fortran compiler
10451 tmp_addflag=' -nofor_main' ;;
10453 case `$CC -V 2>&1 | sed 5q` in
10454 *Sun\ C*) # Sun C 5.9
10455 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'
10456 tmp_sharedflag='-G' ;;
10457 *Sun\ F*) # Sun Fortran 8.3
10458 tmp_sharedflag='-G' ;;
10460 tmp_sharedflag='-shared' ;;
10462 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 if test $supports_anon_versioning = yes; then
10465 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10467 $echo "local: *; };" >> $output_objdir/$libname.ver~
10468 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10486 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10491 *** create shared libraries on Solaris systems. Therefore, libtool
10492 *** is disabling shared libraries support. We urge you to upgrade GNU
10493 *** binutils to release 2.9.1 or newer. Another option is to modify
10494 *** your PATH or compiler configuration so that the native linker is
10495 *** used, and then restart.
10498 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10507 case `$LD -v 2>&1` in
10508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10513 *** reliably create shared libraries on SCO systems. Therefore, libtool
10514 *** is disabling shared libraries support. We urge you to upgrade GNU
10515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10516 *** your PATH or compiler configuration so that the native linker is
10517 *** used, and then restart.
10522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10523 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10534 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_direct=yes
10537 hardcode_shlibpath_var=no
10541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10550 if test "$ld_shlibs" = no; then
10552 hardcode_libdir_flag_spec=
10553 export_dynamic_flag_spec=
10554 whole_archive_flag_spec=
10557 # PORTME fill in a description of your system's linker (not GNU ld)
10560 allow_undefined_flag=unsupported
10561 always_export_symbols=yes
10562 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'
10563 # Note: this linker hardcodes the directories in LIBPATH if there
10564 # are no directories specified by -L.
10565 hardcode_minus_L=yes
10566 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10567 # Neither direct hardcoding nor static linking is supported with a
10569 hardcode_direct=unsupported
10574 if test "$host_cpu" = ia64; then
10575 # On IA64, the linker does run time linking by default, so we don't
10576 # have to do anything special.
10577 aix_use_runtimelinking=no
10578 exp_sym_flag='-Bexport'
10581 # If we're using GNU nm, then we don't want the "-C" option.
10582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10583 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10584 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'
10586 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'
10588 aix_use_runtimelinking=no
10590 # Test if we are trying to use run time linking or normal
10591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10592 # need to do runtime linking.
10593 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10594 for ld_flag in $LDFLAGS; do
10595 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10596 aix_use_runtimelinking=yes
10603 exp_sym_flag='-bexport'
10604 no_entry_flag='-bnoentry'
10607 # When large executables or shared objects are built, AIX ld can
10608 # have problems creating the table of contents. If linking a library
10609 # or program results in "error TOC overflow" add -mminimal-toc to
10610 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10611 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10614 hardcode_direct=yes
10615 hardcode_libdir_separator=':'
10616 link_all_deplibs=yes
10618 if test "$GCC" = yes; then
10619 case $host_os in aix4.[012]|aix4.[012].*)
10620 # We only want to do this on AIX 4.2 and lower, the check
10621 # below for broken collect2 doesn't work under 4.3+
10622 collect2name=`${CC} -print-prog-name=collect2`
10623 if test -f "$collect2name" && \
10624 strings "$collect2name" | grep resolve_lib_name >/dev/null
10626 # We have reworked collect2
10629 # We have old collect2
10630 hardcode_direct=unsupported
10631 # It fails to find uninstalled libraries when the uninstalled
10632 # path is not listed in the libpath. Setting hardcode_minus_L
10633 # to unsupported forces relinking
10634 hardcode_minus_L=yes
10635 hardcode_libdir_flag_spec='-L$libdir'
10636 hardcode_libdir_separator=
10640 shared_flag='-shared'
10641 if test "$aix_use_runtimelinking" = yes; then
10642 shared_flag="$shared_flag "'${wl}-G'
10646 if test "$host_cpu" = ia64; then
10647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10648 # chokes on -Wl,-G. The following line is correct:
10651 if test "$aix_use_runtimelinking" = yes; then
10652 shared_flag='${wl}-G'
10654 shared_flag='${wl}-bM:SRE'
10659 # It seems that -bexpall does not export symbols beginning with
10660 # underscore (_), so it is better to generate a list of symbols to export.
10661 always_export_symbols=yes
10662 if test "$aix_use_runtimelinking" = yes; then
10663 # Warning - without using the other runtime loading flags (-brtl),
10664 # -berok will link without error, but may produce a broken library.
10665 allow_undefined_flag='-berok'
10666 # Determine the default libpath from the value encoded in an empty executable.
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10689 $as_echo "$ac_try_echo") >&5
10690 (eval "$ac_link") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest$ac_exeext && {
10700 test "$cross_compiling" = yes ||
10701 $as_test_x conftest$ac_exeext
10704 lt_aix_libpath_sed='
10705 /Import File Strings/,/^$/ {
10711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10712 # Check for a 64-bit object if we didn't find anything.
10713 if test -z "$aix_libpath"; then
10714 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10717 $as_echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10723 rm -rf conftest.dSYM
10724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10725 conftest$ac_exeext conftest.$ac_ext
10726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10728 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10729 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"
10731 if test "$host_cpu" = ia64; then
10732 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10733 allow_undefined_flag="-z nodefs"
10734 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"
10736 # Determine the default libpath from the value encoded in an empty executable.
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_link") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest$ac_exeext && {
10770 test "$cross_compiling" = yes ||
10771 $as_test_x conftest$ac_exeext
10774 lt_aix_libpath_sed='
10775 /Import File Strings/,/^$/ {
10781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782 # Check for a 64-bit object if we didn't find anything.
10783 if test -z "$aix_libpath"; then
10784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10799 # Warning - without using the other run time loading flags,
10800 # -berok will link without error, but may produce a broken library.
10801 no_undefined_flag=' ${wl}-bernotok'
10802 allow_undefined_flag=' ${wl}-berok'
10803 # Exported symbols can be pulled into shared objects from archives
10804 whole_archive_flag_spec='$convenience'
10805 archive_cmds_need_lc=yes
10806 # This is similar to how AIX traditionally builds its shared libraries.
10807 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'
10813 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)'
10814 hardcode_libdir_flag_spec='-L$libdir'
10815 hardcode_minus_L=yes
10816 # see comment about different semantics on the GNU ld section
10821 export_dynamic_flag_spec=-rdynamic
10824 cygwin* | mingw* | pw32*)
10825 # When not using gcc, we currently assume that we are using
10826 # Microsoft Visual C++.
10827 # hardcode_libdir_flag_spec is actually meaningless, as there is
10828 # no search path for DLLs.
10829 hardcode_libdir_flag_spec=' '
10830 allow_undefined_flag=unsupported
10831 # Tell ltmain to make .lib files, not .a files.
10833 # Tell ltmain to make .dll files, not .so files.
10835 # FIXME: Setting linknames here is a bad hack.
10836 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10837 # The linker will automatically build a .lib file if we build a DLL.
10838 old_archive_From_new_cmds='true'
10839 # FIXME: Should let the user specify the lib program.
10840 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10841 fix_srcfile_path='`cygpath -w "$srcfile"`'
10842 enable_shared_with_static_runtimes=yes
10845 darwin* | rhapsody*)
10847 rhapsody* | darwin1.[012])
10848 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10852 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10854 case ${MACOSX_DEPLOYMENT_TARGET} in
10856 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10859 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10865 archive_cmds_need_lc=no
10867 hardcode_automatic=yes
10868 hardcode_shlibpath_var=unsupported
10869 whole_archive_flag_spec=''
10870 link_all_deplibs=yes
10871 if test "$GCC" = yes ; then
10872 output_verbose_link_cmd='echo'
10873 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10874 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10875 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10876 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10878 case $cc_basename in
10880 output_verbose_link_cmd='echo'
10881 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10882 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10884 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}'
10885 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}'
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_libdir_flag_spec='-L$libdir'
10897 hardcode_shlibpath_var=no
10904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10905 # support. Future versions do this automatically, but an explicit c++rt0.o
10906 # does not break anything, and helps significantly (at the cost of a little
10909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10910 hardcode_libdir_flag_spec='-R$libdir'
10911 hardcode_direct=yes
10912 hardcode_shlibpath_var=no
10915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_direct=yes
10919 hardcode_minus_L=yes
10920 hardcode_shlibpath_var=no
10923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10924 freebsd* | dragonfly*)
10925 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10932 if test "$GCC" = yes; then
10933 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'
10935 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'
10937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10938 hardcode_libdir_separator=:
10939 hardcode_direct=yes
10941 # hardcode_minus_L: Not really in the search PATH,
10942 # but as the default location of the library.
10943 hardcode_minus_L=yes
10944 export_dynamic_flag_spec='${wl}-E'
10948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10953 if test "$with_gnu_ld" = no; then
10954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10955 hardcode_libdir_separator=:
10957 hardcode_direct=yes
10958 export_dynamic_flag_spec='${wl}-E'
10960 # hardcode_minus_L: Not really in the search PATH,
10961 # but as the default location of the library.
10962 hardcode_minus_L=yes
10967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10970 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10992 if test "$with_gnu_ld" = no; then
10993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10994 hardcode_libdir_separator=:
10998 hardcode_libdir_flag_spec_ld='+b $libdir'
11000 hardcode_shlibpath_var=no
11003 hardcode_direct=yes
11004 export_dynamic_flag_spec='${wl}-E'
11006 # hardcode_minus_L: Not really in the search PATH,
11007 # but as the default location of the library.
11008 hardcode_minus_L=yes
11014 irix5* | irix6* | nonstopux*)
11015 if test "$GCC" = yes; then
11016 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'
11018 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'
11019 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11022 hardcode_libdir_separator=:
11023 link_all_deplibs=yes
11027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11030 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11032 hardcode_libdir_flag_spec='-R$libdir'
11033 hardcode_direct=yes
11034 hardcode_shlibpath_var=no
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_direct=yes
11040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 hardcode_shlibpath_var=no
11046 if test -f /usr/libexec/ld.so; then
11047 hardcode_direct=yes
11048 hardcode_shlibpath_var=no
11049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11050 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11053 export_dynamic_flag_spec='${wl}-E'
11056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11058 hardcode_libdir_flag_spec='-R$libdir'
11061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11072 hardcode_libdir_flag_spec='-L$libdir'
11073 hardcode_minus_L=yes
11074 allow_undefined_flag=unsupported
11075 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'
11076 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11080 if test "$GCC" = yes; then
11081 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11082 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'
11084 allow_undefined_flag=' -expect_unresolved \*'
11085 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'
11087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11088 hardcode_libdir_separator=:
11091 osf4* | osf5*) # as osf3* with the addition of -msym flag
11092 if test "$GCC" = yes; then
11093 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11094 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'
11095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11097 allow_undefined_flag=' -expect_unresolved \*'
11098 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'
11099 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11100 $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'
11102 # Both c and cxx compiler support -rpath directly
11103 hardcode_libdir_flag_spec='-rpath $libdir'
11105 hardcode_libdir_separator=:
11109 no_undefined_flag=' -z text'
11110 if test "$GCC" = yes; then
11112 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11114 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11117 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11119 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11121 hardcode_libdir_flag_spec='-R$libdir'
11122 hardcode_shlibpath_var=no
11124 solaris2.[0-5] | solaris2.[0-5].*) ;;
11126 # The compiler driver will combine and reorder linker options,
11127 # but understands `-z linker_flag'. GCC discards it without `$wl',
11128 # but is careful enough not to reorder.
11129 # Supported since Solaris 2.6 (maybe 2.5.1?)
11130 if test "$GCC" = yes; then
11131 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11133 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11137 link_all_deplibs=yes
11141 if test "x$host_vendor" = xsequent; then
11142 # Use $CC to link under sequent, because it throws in some extra .o
11143 # files that make .init and .fini sections work.
11144 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11146 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_libdir_flag_spec='-L$libdir'
11149 hardcode_direct=yes
11150 hardcode_minus_L=yes
11151 hardcode_shlibpath_var=no
11155 case $host_vendor in
11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11158 hardcode_direct=yes # is this really true???
11161 ## LD is ld it makes a PLAMLIB
11162 ## CC just makes a GrossModule.
11163 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11164 reload_cmds='$CC -r -o $output$reload_objs'
11168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11169 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11172 runpath_var='LD_RUN_PATH'
11173 hardcode_shlibpath_var=no
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_shlibpath_var=no
11179 export_dynamic_flag_spec='-Bexport'
11183 if test -d /usr/nec; then
11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_shlibpath_var=no
11186 runpath_var=LD_RUN_PATH
11187 hardcode_runpath_var=yes
11192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11193 no_undefined_flag='${wl}-z,text'
11194 archive_cmds_need_lc=no
11195 hardcode_shlibpath_var=no
11196 runpath_var='LD_RUN_PATH'
11198 if test "$GCC" = yes; then
11199 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11202 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11207 sysv5* | sco3.2v5* | sco5v6*)
11208 # Note: We can NOT use -z defs as we might desire, because we do not
11209 # link with -lc, and that would cause any symbols used from libc to
11210 # always be unresolved, which means just about no library would
11211 # ever link correctly. If we're not using GNU ld we use -z text
11212 # though, which does catch some bad symbols but isn't as heavy-handed
11214 no_undefined_flag='${wl}-z,text'
11215 allow_undefined_flag='${wl}-z,nodefs'
11216 archive_cmds_need_lc=no
11217 hardcode_shlibpath_var=no
11218 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11219 hardcode_libdir_separator=':'
11220 link_all_deplibs=yes
11221 export_dynamic_flag_spec='${wl}-Bexport'
11222 runpath_var='LD_RUN_PATH'
11224 if test "$GCC" = yes; then
11225 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11228 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 hardcode_shlibpath_var=no
11245 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11246 $as_echo "$ld_shlibs" >&6; }
11247 test "$ld_shlibs" = no && can_build_shared=no
11250 # Do we need to explicitly link libc?
11252 case "x$archive_cmds_need_lc" in
11254 # Assume -lc should be added
11255 archive_cmds_need_lc=yes
11257 if test "$enable_shared" = yes && test "$GCC" = yes; then
11258 case $archive_cmds in
11260 # FIXME: we may have to deal with multi-command sequences.
11263 # Test whether the compiler implicitly links with -lc since on some
11264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11265 # to ld, don't add -lc before -lgcc.
11266 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } 2>conftest.err; then
11278 libobjs=conftest.$ac_objext
11280 wl=$lt_prog_compiler_wl
11281 pic_flag=$lt_prog_compiler_pic
11287 lt_save_allow_undefined_flag=$allow_undefined_flag
11288 allow_undefined_flag=
11289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11290 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }
11295 archive_cmds_need_lc=no
11297 archive_cmds_need_lc=yes
11299 allow_undefined_flag=$lt_save_allow_undefined_flag
11301 cat conftest.err 1>&5
11304 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11305 $as_echo "$archive_cmds_need_lc" >&6; }
11312 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11314 library_names_spec=
11315 libname_spec='lib$name'
11319 postuninstall_cmds=
11323 shlibpath_overrides_runpath=unknown
11325 dynamic_linker="$host_os ld.so"
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11328 if test "$GCC" = yes; then
11330 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11331 *) lt_awk_arg="/^libraries:/" ;;
11333 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11334 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11335 # if the path contains ";" then we assume it to be the separator
11336 # otherwise default to the standard path separator (i.e. ":") - it is
11337 # assumed that no part of a normal pathname contains ";" but that should
11338 # okay in the real world where ";" in dirpaths is itself problematic.
11339 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11341 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11343 # Ok, now we have the path, separated by spaces, we can step through it
11344 # and add multilib dir if necessary.
11345 lt_tmp_lt_search_path_spec=
11346 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11347 for lt_sys_path in $lt_search_path_spec; do
11348 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11351 test -d "$lt_sys_path" && \
11352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11355 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11356 BEGIN {RS=" "; FS="/|\n";} {
11359 for (lt_i = NF; lt_i > 0; lt_i--) {
11360 if ($lt_i != "" && $lt_i != ".") {
11361 if ($lt_i == "..") {
11364 if (lt_count == 0) {
11365 lt_foo="/" $lt_i lt_foo;
11372 if (lt_foo != "") { lt_freq[lt_foo]++; }
11373 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11375 sys_lib_search_path_spec=`echo $lt_search_path_spec`
11377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11379 need_lib_prefix=unknown
11380 hardcode_into_libs=no
11382 # when you set need_version to no, make sure it does not cause -set_version
11383 # flags to be left without arguments
11384 need_version=unknown
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11390 shlibpath_var=LIBPATH
11392 # AIX 3 has no versioning support, so we append a major version to the name.
11393 soname_spec='${libname}${release}${shared_ext}$major'
11400 hardcode_into_libs=yes
11401 if test "$host_cpu" = ia64; then
11402 # AIX 5 supports IA64
11403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11404 shlibpath_var=LD_LIBRARY_PATH
11406 # With GCC up to 2.95.x, collect2 would create an import file
11407 # for dependence libraries. The import file would start with
11408 # the line `#! .'. This would cause the generated library to
11409 # depend on `.', always an invalid library. This was fixed in
11410 # development snapshots of GCC prior to 3.0.
11412 aix4 | aix4.[01] | aix4.[01].*)
11413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11418 can_build_shared=no
11422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11423 # soname into executable. Probably we can add versioning support to
11424 # collect2, so additional links can be useful in future.
11425 if test "$aix_use_runtimelinking" = yes; then
11426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11427 # instead of lib<name>.a to let people know that these are not
11428 # typical AIX shared libraries.
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 # We preserve .a as extension for shared libraries through AIX4.2
11432 # and later when we are not doing run time linking.
11433 library_names_spec='${libname}${release}.a $libname.a'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11436 shlibpath_var=LIBPATH
11441 library_names_spec='$libname.ixlibrary $libname.a'
11442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11443 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'
11447 library_names_spec='${libname}${shared_ext}'
11448 dynamic_linker="$host_os ld.so"
11449 shlibpath_var=LIBRARY_PATH
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11461 # the default ld.so.conf also contains /usr/contrib/lib and
11462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11463 # libtool to hard-code these into programs
11466 cygwin* | mingw* | pw32*)
11467 version_type=windows
11472 case $GCC,$host_os in
11473 yes,cygwin* | yes,mingw* | yes,pw32*)
11474 library_names_spec='$libname.dll.a'
11475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476 postinstall_cmds='base_file=`basename \${file}`~
11477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11478 dldir=$destdir/`dirname \$dlpath`~
11479 test -d \$dldir || mkdir -p \$dldir~
11480 $install_prog $dir/$dlname \$dldir/$dlname~
11481 chmod a+x \$dldir/$dlname'
11482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11483 dlpath=$dir/\$dldll~
11485 shlibpath_overrides_runpath=yes
11489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11494 # MinGW DLLs use traditional 'lib' prefix
11495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11498 # It is most probably a Windows format PATH printed by
11499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11500 # path with ; separators, and with drive letters. We can handle the
11501 # drive letters (cygwin fileutils understands them), so leave them,
11502 # especially as we might pass files found there to a mingw objdump,
11503 # which wouldn't understand a cygwinified path. Ahh.
11504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11510 # pw32 DLLs use 'pw' prefix rather than 'lib'
11511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11520 dynamic_linker='Win32 ld.exe'
11521 # FIXME: first we should search . and the directory the executable is in
11525 darwin* | rhapsody*)
11526 dynamic_linker="$host_os dyld"
11527 version_type=darwin
11530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11531 soname_spec='${libname}${release}${major}$shared_ext'
11532 shlibpath_overrides_runpath=yes
11533 shlibpath_var=DYLD_LIBRARY_PATH
11534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11553 freebsd* | dragonfly*)
11554 # DragonFly does not have aout. When/if they implement a new
11555 # versioning mechanism, adjust this.
11556 if test -x /usr/bin/objformat; then
11557 objformat=`/usr/bin/objformat`
11560 freebsd[123]*) objformat=aout ;;
11561 *) objformat=elf ;;
11564 version_type=freebsd-$objformat
11565 case $version_type in
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11576 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=yes
11581 freebsd3.[01]* | freebsdelf3.[01]*)
11582 shlibpath_overrides_runpath=yes
11583 hardcode_into_libs=yes
11585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11590 *) # from 4.6 on, and DragonFly
11591 shlibpath_overrides_runpath=yes
11592 hardcode_into_libs=yes
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 hardcode_into_libs=yes
11607 hpux9* | hpux10* | hpux11*)
11608 # Give a soname corresponding to the major version so that dld.sl refuses to
11609 # link against other versions.
11616 hardcode_into_libs=yes
11617 dynamic_linker="$host_os dld.so"
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 if test "X$HPUX_IA64_MODE" = X32; then
11623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631 hardcode_into_libs=yes
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11642 dynamic_linker="$host_os dld.sl"
11643 shlibpath_var=SHLIB_PATH
11644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11649 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11650 postinstall_cmds='chmod 555 $lib'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 hardcode_into_libs=yes
11665 irix5* | irix6* | nonstopux*)
11667 nonstopux*) version_type=nonstopux ;;
11669 if test "$lt_cv_prog_gnu_ld" = yes; then
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11680 irix5* | nonstopux*)
11681 libsuff= shlibsuff=
11684 case $LD in # libtool.m4 will add one of these switches to LD
11685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11686 libsuff= shlibsuff= libmagic=32-bit;;
11687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11688 libsuff=32 shlibsuff=N32 libmagic=N32;;
11689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11691 *) libsuff= shlibsuff= libmagic=never-match;;
11695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11696 shlibpath_overrides_runpath=no
11697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11699 hardcode_into_libs=yes
11702 # No shared lib support for Linux oldld, aout, or coff.
11703 linux*oldld* | linux*aout* | linux*coff*)
11707 # This must be Linux ELF.
11708 linux* | k*bsd*-gnu)
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=no
11717 # This implies no fast_install, which is unacceptable.
11718 # Some rework will be needed to allow for fast_install
11719 # before this can be enabled.
11720 hardcode_into_libs=yes
11721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11724 # Append ld.so.conf contents to the search path
11725 if test -f /etc/ld.so.conf; then
11726 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' ' '`
11727 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11730 # We used to test for /lib/ld.so.1 and disable shared libraries on
11731 # powerpc, because MkLinux only supported shared libraries with the
11732 # GNU dynamic linker. Since this was broken with cross compilers,
11733 # most powerpc-linux boxes support dynamic linking these days and
11734 # people can always --disable-shared, the test was removed, and we
11735 # assume the GNU/Linux dynamic linker is in use.
11736 dynamic_linker='GNU/Linux ld.so'
11743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11746 dynamic_linker='NetBSD (a.out) ld.so'
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 dynamic_linker='NetBSD ld.elf_so'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 hardcode_into_libs=yes
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=yes
11776 sys_lib_dlsearch_path_spec="/usr/lib"
11778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11781 *) need_version=no ;;
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11788 openbsd2.[89] | openbsd2.[89].*)
11789 shlibpath_overrides_runpath=no
11792 shlibpath_overrides_runpath=yes
11796 shlibpath_overrides_runpath=yes
11801 libname_spec='$name'
11804 library_names_spec='$libname${shared_ext} $libname.a'
11805 dynamic_linker='OS/2 ld.exe'
11806 shlibpath_var=LIBPATH
11809 osf3* | osf4* | osf5*)
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829 soname_spec='${libname}${release}${shared_ext}$major'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 hardcode_into_libs=yes
11833 # ldd complains unless libraries are executable
11834 postinstall_cmds='chmod +x $lib'
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 shlibpath_overrides_runpath=yes
11843 if test "$with_gnu_ld" = yes; then
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 case $host_vendor in
11856 shlibpath_overrides_runpath=no
11858 export_dynamic_flag_spec='${wl}-Blargedynsym'
11859 runpath_var=LD_RUN_PATH
11867 shlibpath_overrides_runpath=no
11868 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11874 if test -d /usr/nec ;then
11876 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11877 soname_spec='$libname${shared_ext}.$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11883 version_type=freebsd-elf
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 hardcode_into_libs=yes
11890 if test "$with_gnu_ld" = yes; then
11891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11892 shlibpath_overrides_runpath=no
11894 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11895 shlibpath_overrides_runpath=yes
11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11902 sys_lib_dlsearch_path_spec='/usr/lib'
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11916 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11917 $as_echo "$dynamic_linker" >&6; }
11918 test "$dynamic_linker" = no && can_build_shared=no
11920 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11921 $as_echo_n "(cached) " >&6
11923 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11928 $as_echo_n "(cached) " >&6
11930 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11933 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11936 if test "$GCC" = yes; then
11937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11940 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11943 if test -n "$hardcode_libdir_flag_spec" || \
11944 test -n "$runpath_var" || \
11945 test "X$hardcode_automatic" = "Xyes" ; then
11947 # We can hardcode non-existant directories.
11948 if test "$hardcode_direct" != no &&
11949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11950 # have to relink, otherwise we might link with an installed library
11951 # when we should be linking with a yet-to-be-installed one
11952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11953 test "$hardcode_minus_L" != no; then
11954 # Linking always hardcodes the temporary library directory.
11955 hardcode_action=relink
11957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11958 hardcode_action=immediate
11961 # We cannot hardcode anything, or else we can only hardcode existing
11963 hardcode_action=unsupported
11965 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11966 $as_echo "$hardcode_action" >&6; }
11968 if test "$hardcode_action" = relink; then
11969 # Fast installation is not supported
11970 enable_fast_install=no
11971 elif test "$shlibpath_overrides_runpath" = yes ||
11972 test "$enable_shared" = no; then
11973 # Fast installation is not necessary
11974 enable_fast_install=needless
11979 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11984 { $as_echo "$as_me:$LINENO: result: yes" >&5
11985 $as_echo "yes" >&6; }
11987 # FIXME - insert some real tests, host_os isn't really good enough
11990 if test -n "$STRIP" ; then
11991 striplib="$STRIP -x"
11992 old_striplib="$STRIP -S"
11993 { $as_echo "$as_me:$LINENO: result: yes" >&5
11994 $as_echo "yes" >&6; }
11996 { $as_echo "$as_me:$LINENO: result: no" >&5
11997 $as_echo "no" >&6; }
12001 { $as_echo "$as_me:$LINENO: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test "x$enable_dlopen" != xyes; then
12008 enable_dlopen=unknown
12009 enable_dlopen_self=unknown
12010 enable_dlopen_self_static=unknown
12017 lt_cv_dlopen="load_add_on"
12019 lt_cv_dlopen_self=yes
12023 lt_cv_dlopen="LoadLibrary"
12028 lt_cv_dlopen="dlopen"
12033 # if libdl is installed we need to link against it
12034 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12037 $as_echo_n "(cached) " >&6
12039 ac_check_lib_save_LIBS=$LIBS
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071 (eval "$ac_link") 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest$ac_exeext && {
12081 test "$cross_compiling" = yes ||
12082 $as_test_x conftest$ac_exeext
12084 ac_cv_lib_dl_dlopen=yes
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_cv_lib_dl_dlopen=no
12092 rm -rf conftest.dSYM
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12099 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103 lt_cv_dlopen="dyld"
12105 lt_cv_dlopen_self=yes
12112 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12113 $as_echo_n "checking for shl_load... " >&6; }
12114 if test "${ac_cv_func_shl_load+set}" = set; then
12115 $as_echo_n "(cached) " >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125 #define shl_load innocuous_shl_load
12127 /* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char shl_load (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12133 # include <limits.h>
12135 # include <assert.h>
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12147 /* The GNU C library defines this for functions which it implements
12148 to always fail with ENOSYS. Some functions are actually named
12149 something starting with __ and the normal name is an alias. */
12150 #if defined __stub_shl_load || defined __stub___shl_load
12157 return shl_load ();
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169 $as_echo "$ac_try_echo") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest$ac_exeext && {
12180 test "$cross_compiling" = yes ||
12181 $as_test_x conftest$ac_exeext
12183 ac_cv_func_shl_load=yes
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_func_shl_load=no
12191 rm -rf conftest.dSYM
12192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12193 conftest$ac_exeext conftest.$ac_ext
12195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12196 $as_echo "$ac_cv_func_shl_load" >&6; }
12197 if test "x$ac_cv_func_shl_load" = x""yes; then
12198 lt_cv_dlopen="shl_load"
12200 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12201 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12202 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12203 $as_echo_n "(cached) " >&6
12205 ac_check_lib_save_LIBS=$LIBS
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12224 return shl_load ();
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12236 $as_echo "$ac_try_echo") >&5
12237 (eval "$ac_link") 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest$ac_exeext && {
12247 test "$cross_compiling" = yes ||
12248 $as_test_x conftest$ac_exeext
12250 ac_cv_lib_dld_shl_load=yes
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_lib_dld_shl_load=no
12258 rm -rf conftest.dSYM
12259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12260 conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12264 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12265 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12266 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12268 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12269 $as_echo_n "checking for dlopen... " >&6; }
12270 if test "${ac_cv_func_dlopen+set}" = set; then
12271 $as_echo_n "(cached) " >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281 #define dlopen innocuous_dlopen
12283 /* System header to define __stub macros and hopefully few prototypes,
12284 which can conflict with char dlopen (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
12289 # include <limits.h>
12291 # include <assert.h>
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12303 /* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
12306 #if defined __stub_dlopen || defined __stub___dlopen
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326 (eval "$ac_link") 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest$ac_exeext && {
12336 test "$cross_compiling" = yes ||
12337 $as_test_x conftest$ac_exeext
12339 ac_cv_func_dlopen=yes
12341 $as_echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_func_dlopen=no
12347 rm -rf conftest.dSYM
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349 conftest$ac_exeext conftest.$ac_ext
12351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12352 $as_echo "$ac_cv_func_dlopen" >&6; }
12353 if test "x$ac_cv_func_dlopen" = x""yes; then
12354 lt_cv_dlopen="dlopen"
12356 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12359 $as_echo_n "(cached) " >&6
12361 ac_check_lib_save_LIBS=$LIBS
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12392 $as_echo "$ac_try_echo") >&5
12393 (eval "$ac_link") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest$ac_exeext && {
12403 test "$cross_compiling" = yes ||
12404 $as_test_x conftest$ac_exeext
12406 ac_cv_lib_dl_dlopen=yes
12408 $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_lib_dl_dlopen=no
12414 rm -rf conftest.dSYM
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12421 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12424 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12427 $as_echo_n "(cached) " >&6
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lsvld $LIBS"
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12460 $as_echo "$ac_try_echo") >&5
12461 (eval "$ac_link") 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && {
12468 test -z "$ac_c_werror_flag" ||
12469 test ! -s conftest.err
12470 } && test -s conftest$ac_exeext && {
12471 test "$cross_compiling" = yes ||
12472 $as_test_x conftest$ac_exeext
12474 ac_cv_lib_svld_dlopen=yes
12476 $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_cv_lib_svld_dlopen=no
12482 rm -rf conftest.dSYM
12483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12484 conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12488 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12489 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12492 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12493 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12494 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12495 $as_echo_n "(cached) " >&6
12497 ac_check_lib_save_LIBS=$LIBS
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12516 return dld_link ();
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12528 $as_echo "$ac_try_echo") >&5
12529 (eval "$ac_link") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest$ac_exeext && {
12539 test "$cross_compiling" = yes ||
12540 $as_test_x conftest$ac_exeext
12542 ac_cv_lib_dld_dld_link=yes
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_cv_lib_dld_dld_link=no
12550 rm -rf conftest.dSYM
12551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12556 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12557 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12558 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12579 if test "x$lt_cv_dlopen" != xno; then
12585 case $lt_cv_dlopen in
12587 save_CPPFLAGS="$CPPFLAGS"
12588 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12590 save_LDFLAGS="$LDFLAGS"
12591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12594 LIBS="$lt_cv_dlopen_libs $LIBS"
12596 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12597 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12598 if test "${lt_cv_dlopen_self+set}" = set; then
12599 $as_echo_n "(cached) " >&6
12601 if test "$cross_compiling" = yes; then :
12602 lt_cv_dlopen_self=cross
12604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12605 lt_status=$lt_dlunknown
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12607 "configure"
12608 #include "confdefs.h"
12617 # define LT_DLGLOBAL RTLD_GLOBAL
12620 # define LT_DLGLOBAL DL_GLOBAL
12622 # define LT_DLGLOBAL 0
12626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12627 find out it does not work in some platform. */
12628 #ifndef LT_DLLAZY_OR_NOW
12630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12633 # define LT_DLLAZY_OR_NOW DL_LAZY
12636 # define LT_DLLAZY_OR_NOW RTLD_NOW
12639 # define LT_DLLAZY_OR_NOW DL_NOW
12641 # define LT_DLLAZY_OR_NOW 0
12649 extern "C" void exit (int);
12652 void fnord() { int i=42;}
12655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12656 int status = $lt_dlunknown;
12660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12662 /* dlclose (self); */
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12675 (./conftest; exit; ) >&5 2>/dev/null
12677 case x$lt_status in
12678 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12679 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12680 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12683 # compilation failed
12684 lt_cv_dlopen_self=no
12691 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12692 $as_echo "$lt_cv_dlopen_self" >&6; }
12694 if test "x$lt_cv_dlopen_self" = xyes; then
12695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12696 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12697 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12698 if test "${lt_cv_dlopen_self_static+set}" = set; then
12699 $as_echo_n "(cached) " >&6
12701 if test "$cross_compiling" = yes; then :
12702 lt_cv_dlopen_self_static=cross
12704 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12705 lt_status=$lt_dlunknown
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12707 "configure"
12708 #include "confdefs.h"
12717 # define LT_DLGLOBAL RTLD_GLOBAL
12720 # define LT_DLGLOBAL DL_GLOBAL
12722 # define LT_DLGLOBAL 0
12726 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12727 find out it does not work in some platform. */
12728 #ifndef LT_DLLAZY_OR_NOW
12730 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12733 # define LT_DLLAZY_OR_NOW DL_LAZY
12736 # define LT_DLLAZY_OR_NOW RTLD_NOW
12739 # define LT_DLLAZY_OR_NOW DL_NOW
12741 # define LT_DLLAZY_OR_NOW 0
12749 extern "C" void exit (int);
12752 void fnord() { int i=42;}
12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12756 int status = $lt_dlunknown;
12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12761 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12762 /* dlclose (self); */
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>&5
12773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12775 (./conftest; exit; ) >&5 2>/dev/null
12777 case x$lt_status in
12778 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12779 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12780 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12783 # compilation failed
12784 lt_cv_dlopen_self_static=no
12791 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12792 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12795 CPPFLAGS="$save_CPPFLAGS"
12796 LDFLAGS="$save_LDFLAGS"
12801 case $lt_cv_dlopen_self in
12802 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12803 *) enable_dlopen_self=unknown ;;
12806 case $lt_cv_dlopen_self_static in
12807 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12808 *) enable_dlopen_self_static=unknown ;;
12813 # Report which library types will actually be built
12814 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12815 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12816 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12817 $as_echo "$can_build_shared" >&6; }
12819 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12820 $as_echo_n "checking whether to build shared libraries... " >&6; }
12821 test "$can_build_shared" = "no" && enable_shared=no
12823 # On AIX, shared libraries and static libraries use the same namespace, and
12824 # are all built from PIC.
12827 test "$enable_shared" = yes && enable_static=no
12828 if test -n "$RANLIB"; then
12829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12830 postinstall_cmds='$RANLIB $lib'
12835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12836 test "$enable_shared" = yes && enable_static=no
12840 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12841 $as_echo "$enable_shared" >&6; }
12843 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12844 $as_echo_n "checking whether to build static libraries... " >&6; }
12845 # Make sure either enable_shared or enable_static is yes.
12846 test "$enable_shared" = yes || enable_static=yes
12847 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12848 $as_echo "$enable_static" >&6; }
12850 # The else clause should only fire when bootstrapping the
12851 # libtool distribution, otherwise you forgot to ship ltmain.sh
12852 # with your package, and you will get complaints that there are
12853 # no rules to generate ltmain.sh.
12854 if test -f "$ltmain"; then
12855 # See if we are running on zsh, and set the options which allow our commands through
12856 # without removal of \ escapes.
12857 if test -n "${ZSH_VERSION+set}" ; then
12858 setopt NO_GLOB_SUBST
12860 # Now quote all the things that may contain metacharacters while being
12861 # careful not to overquote the AC_SUBSTed values. We take copies of the
12862 # variables and quote the copies for generation of the libtool script.
12863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12867 deplibs_check_method reload_flag reload_cmds need_locks \
12868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12869 lt_cv_sys_global_symbol_to_c_name_address \
12870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12871 old_postinstall_cmds old_postuninstall_cmds \
12875 lt_prog_compiler_wl \
12876 lt_prog_compiler_pic \
12877 lt_prog_compiler_static \
12878 lt_prog_compiler_no_builtin_flag \
12879 export_dynamic_flag_spec \
12880 thread_safe_flag_spec \
12881 whole_archive_flag_spec \
12882 enable_shared_with_static_runtimes \
12884 old_archive_from_new_cmds \
12889 compiler_lib_search_path \
12890 compiler_lib_search_dirs \
12892 archive_expsym_cmds \
12894 postuninstall_cmds \
12895 old_archive_from_expsyms_cmds \
12896 allow_undefined_flag \
12897 no_undefined_flag \
12898 export_symbols_cmds \
12899 hardcode_libdir_flag_spec \
12900 hardcode_libdir_flag_spec_ld \
12901 hardcode_libdir_separator \
12902 hardcode_automatic \
12904 module_expsym_cmds \
12905 lt_cv_prog_compiler_c_o \
12908 include_expsyms; do
12911 old_archive_cmds | \
12912 old_archive_from_new_cmds | \
12914 archive_expsym_cmds | \
12916 module_expsym_cmds | \
12917 old_archive_from_expsyms_cmds | \
12918 export_symbols_cmds | \
12919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12920 postinstall_cmds | postuninstall_cmds | \
12921 old_postinstall_cmds | old_postuninstall_cmds | \
12922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12923 # Double-quote double-evaled strings.
12924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12933 *'\$0 --fallback-echo"')
12934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12938 cfgfile="${ofile}T"
12939 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12941 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12942 $as_echo "$as_me: creating $ofile" >&6;}
12944 cat <<__EOF__ >> "$cfgfile"
12947 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12948 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12952 # Free Software Foundation, Inc.
12954 # This file is part of GNU Libtool:
12955 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12957 # This program is free software; you can redistribute it and/or modify
12958 # it under the terms of the GNU General Public License as published by
12959 # the Free Software Foundation; either version 2 of the License, or
12960 # (at your option) any later version.
12962 # This program is distributed in the hope that it will be useful, but
12963 # WITHOUT ANY WARRANTY; without even the implied warranty of
12964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12965 # General Public License for more details.
12967 # You should have received a copy of the GNU General Public License
12968 # along with this program; if not, write to the Free Software
12969 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12971 # As a special exception to the GNU General Public License, if you
12972 # distribute this file as part of a program that contains a
12973 # configuration script generated by Autoconf, you may include it under
12974 # the same distribution terms that you use for the rest of that program.
12976 # A sed program that does not truncate output.
12979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12980 Xsed="$SED -e 1s/^X//"
12982 # The HP-UX ksh and POSIX shell print the target directory to stdout
12983 # if CDPATH is set.
12984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12986 # The names of the tagged configurations supported by this script.
12989 # ### BEGIN LIBTOOL CONFIG
12991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12993 # Shell to use when invoking shell scripts.
12996 # Whether or not to build shared libraries.
12997 build_libtool_libs=$enable_shared
12999 # Whether or not to build static libraries.
13000 build_old_libs=$enable_static
13002 # Whether or not to add -lc for building shared libraries.
13003 build_libtool_need_lc=$archive_cmds_need_lc
13005 # Whether or not to disallow shared libs when runtime libs are static
13006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13008 # Whether or not to optimize for fast installation.
13009 fast_install=$enable_fast_install
13012 host_alias=$host_alias
13016 # The build system.
13017 build_alias=$build_alias
13021 # An echo program that does not interpret backslashes.
13026 AR_FLAGS=$lt_AR_FLAGS
13031 # LTCC compiler flags.
13032 LTCFLAGS=$lt_LTCFLAGS
13034 # A language-specific compiler.
13037 # Is the compiler the GNU C compiler?
13043 # The linker used to build libraries.
13046 # Whether we need hard or soft links.
13049 # A BSD-compatible nm program.
13052 # A symbol stripping program
13055 # Used to examine libraries when file_magic_cmd begins "file"
13056 MAGIC_CMD=$MAGIC_CMD
13058 # Used on cygwin: DLL creation program.
13061 # Used on cygwin: object dumper.
13064 # Used on cygwin: assembler.
13067 # The name of the directory that contains temporary libtool files.
13070 # How to create reloadable object files.
13071 reload_flag=$lt_reload_flag
13072 reload_cmds=$lt_reload_cmds
13074 # How to pass a linker flag through the compiler.
13075 wl=$lt_lt_prog_compiler_wl
13077 # Object file suffix (normally "o").
13078 objext="$ac_objext"
13080 # Old archive suffix (normally "a").
13083 # Shared library suffix (normally ".so").
13084 shrext_cmds='$shrext_cmds'
13086 # Executable file suffix (normally "").
13089 # Additional compiler flags for building library objects.
13090 pic_flag=$lt_lt_prog_compiler_pic
13093 # What is the maximum length of a command?
13094 max_cmd_len=$lt_cv_sys_max_cmd_len
13096 # Does compiler simultaneously support -c and -o options?
13097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13099 # Must we lock files when doing compilation?
13100 need_locks=$lt_need_locks
13102 # Do we need the lib prefix for modules?
13103 need_lib_prefix=$need_lib_prefix
13105 # Do we need a version for libraries?
13106 need_version=$need_version
13108 # Whether dlopen is supported.
13109 dlopen_support=$enable_dlopen
13111 # Whether dlopen of programs is supported.
13112 dlopen_self=$enable_dlopen_self
13114 # Whether dlopen of statically linked programs is supported.
13115 dlopen_self_static=$enable_dlopen_self_static
13117 # Compiler flag to prevent dynamic linking.
13118 link_static_flag=$lt_lt_prog_compiler_static
13120 # Compiler flag to turn off builtin functions.
13121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13123 # Compiler flag to allow reflexive dlopens.
13124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13126 # Compiler flag to generate shared objects directly from archives.
13127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13129 # Compiler flag to generate thread-safe objects.
13130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13132 # Library versioning type.
13133 version_type=$version_type
13135 # Format of library name prefix.
13136 libname_spec=$lt_libname_spec
13138 # List of archive names. First name is the real one, the rest are links.
13139 # The last name is the one that the linker finds with -lNAME.
13140 library_names_spec=$lt_library_names_spec
13142 # The coded name of the library, if different from the real name.
13143 soname_spec=$lt_soname_spec
13145 # Commands used to build and install an old-style archive.
13147 old_archive_cmds=$lt_old_archive_cmds
13148 old_postinstall_cmds=$lt_old_postinstall_cmds
13149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13151 # Create an old-style archive from a shared archive.
13152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13154 # Create a temporary old-style archive to link instead of a shared archive.
13155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13157 # Commands used to build and install a shared archive.
13158 archive_cmds=$lt_archive_cmds
13159 archive_expsym_cmds=$lt_archive_expsym_cmds
13160 postinstall_cmds=$lt_postinstall_cmds
13161 postuninstall_cmds=$lt_postuninstall_cmds
13163 # Commands used to build a loadable module (assumed same as above if empty)
13164 module_cmds=$lt_module_cmds
13165 module_expsym_cmds=$lt_module_expsym_cmds
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13171 # Dependencies to place before the objects being linked to create a
13173 predep_objects=$lt_predep_objects
13175 # Dependencies to place after the objects being linked to create a
13177 postdep_objects=$lt_postdep_objects
13179 # Dependencies to place before the objects being linked to create a
13181 predeps=$lt_predeps
13183 # Dependencies to place after the objects being linked to create a
13185 postdeps=$lt_postdeps
13187 # The directories searched by this compiler when creating a shared
13189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13191 # The library search path used internally by the compiler when linking
13192 # a shared library.
13193 compiler_lib_search_path=$lt_compiler_lib_search_path
13195 # Method to check whether dependent libraries are shared objects.
13196 deplibs_check_method=$lt_deplibs_check_method
13198 # Command to use when deplibs_check_method == file_magic.
13199 file_magic_cmd=$lt_file_magic_cmd
13201 # Flag that allows shared libraries with undefined symbols to be built.
13202 allow_undefined_flag=$lt_allow_undefined_flag
13204 # Flag that forces no undefined symbols.
13205 no_undefined_flag=$lt_no_undefined_flag
13207 # Commands used to finish a libtool library installation in a directory.
13208 finish_cmds=$lt_finish_cmds
13210 # Same as above, but a single script fragment to be evaled but not shown.
13211 finish_eval=$lt_finish_eval
13213 # Take the output of nm and produce a listing of raw symbols and C names.
13214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13216 # Transform the output of nm in a proper C declaration
13217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13219 # Transform the output of nm in a C name address pair
13220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13222 # This is the shared library runtime path variable.
13223 runpath_var=$runpath_var
13225 # This is the shared library path variable.
13226 shlibpath_var=$shlibpath_var
13228 # Is shlibpath searched before the hard-coded library search path?
13229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13231 # How to hardcode a shared library path into an executable.
13232 hardcode_action=$hardcode_action
13234 # Whether we should hardcode library paths into libraries.
13235 hardcode_into_libs=$hardcode_into_libs
13237 # Flag to hardcode \$libdir into a binary during linking.
13238 # This must work even if \$libdir does not exist.
13239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13241 # If ld is used when linking, flag to hardcode \$libdir into
13242 # a binary during linking. This must work even if \$libdir does
13244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13246 # Whether we need a single -rpath flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13250 # resulting binary.
13251 hardcode_direct=$hardcode_direct
13253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13254 # resulting binary.
13255 hardcode_minus_L=$hardcode_minus_L
13257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13258 # the resulting binary.
13259 hardcode_shlibpath_var=$hardcode_shlibpath_var
13261 # Set to yes if building a shared library automatically hardcodes DIR into the library
13262 # and all subsequent libraries and executables linked against it.
13263 hardcode_automatic=$hardcode_automatic
13265 # Variables whose values should be saved in libtool wrapper scripts and
13266 # restored at relink time.
13267 variables_saved_for_relink="$variables_saved_for_relink"
13269 # Whether libtool must link a program against all its dependency libraries.
13270 link_all_deplibs=$link_all_deplibs
13272 # Compile-time system search path for libraries
13273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13275 # Run-time system search path for libraries
13276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13278 # Fix the shell variable \$srcfile for the compiler.
13279 fix_srcfile_path=$lt_fix_srcfile_path
13281 # Set to yes if exported symbols are required.
13282 always_export_symbols=$always_export_symbols
13284 # The commands to list exported symbols.
13285 export_symbols_cmds=$lt_export_symbols_cmds
13287 # The commands to extract the exported symbol list from a shared archive.
13288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13290 # Symbols that should not be listed in the preloaded symbols.
13291 exclude_expsyms=$lt_exclude_expsyms
13293 # Symbols that must always be exported.
13294 include_expsyms=$lt_include_expsyms
13296 # ### END LIBTOOL CONFIG
13303 cat <<\EOF >> "$cfgfile"
13305 # AIX sometimes has problems with the GCC collect2 program. For some
13306 # reason, if we set the COLLECT_NAMES environment variable, the problems
13307 # vanish in a puff of smoke.
13308 if test "X${COLLECT_NAMES+set}" != Xset; then
13310 export COLLECT_NAMES
13316 # We use sed instead of cat because bash on DJGPP gets confused if
13317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13318 # text mode, it properly converts lines to CR/LF. This bash problem
13319 # is reportedly fixed, but why not run on old versions too?
13320 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13322 mv -f "$cfgfile" "$ofile" || \
13323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13327 # If there is no Makefile yet, we rely on a make rule to execute
13328 # `config.status --recheck' to rerun these tests and create the
13329 # libtool script then.
13330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13331 if test -f "$ltmain_in"; then
13332 test -f Makefile && make "$ltmain"
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13346 # Check whether --with-tags was given.
13347 if test "${with_tags+set}" = set; then
13348 withval=$with_tags; tagnames="$withval"
13352 if test -f "$ltmain" && test -n "$tagnames"; then
13353 if test ! -f "${ofile}"; then
13354 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13355 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13358 if test -z "$LTCC"; then
13359 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13360 if test -z "$LTCC"; then
13361 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13362 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13364 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13365 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13368 if test -z "$LTCFLAGS"; then
13369 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13372 # Extract list of available tagged configurations in $ofile.
13373 # Note that this assumes the entire list is on one line.
13374 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13377 for tagname in $tagnames; do
13379 # Check whether tagname contains only valid characters
13380 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13382 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13383 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13384 { (exit 1); exit 1; }; }
13388 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13390 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13391 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13392 { (exit 1); exit 1; }; }
13395 # Update the list of available tags.
13396 if test -n "$tagname"; then
13397 echo appending configuration tag \"$tagname\" to $ofile
13401 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13402 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13403 (test "X$CXX" != "Xg++"))) ; then
13405 ac_cpp='$CXXCPP $CPPFLAGS'
13406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13413 archive_cmds_need_lc_CXX=no
13414 allow_undefined_flag_CXX=
13415 always_export_symbols_CXX=no
13416 archive_expsym_cmds_CXX=
13417 export_dynamic_flag_spec_CXX=
13418 hardcode_direct_CXX=no
13419 hardcode_libdir_flag_spec_CXX=
13420 hardcode_libdir_flag_spec_ld_CXX=
13421 hardcode_libdir_separator_CXX=
13422 hardcode_minus_L_CXX=no
13423 hardcode_shlibpath_var_CXX=unsupported
13424 hardcode_automatic_CXX=no
13426 module_expsym_cmds_CXX=
13427 link_all_deplibs_CXX=unknown
13428 old_archive_cmds_CXX=$old_archive_cmds
13429 no_undefined_flag_CXX=
13430 whole_archive_flag_spec_CXX=
13431 enable_shared_with_static_runtimes_CXX=no
13433 # Dependencies to place before and after the object being linked:
13434 predep_objects_CXX=
13435 postdep_objects_CXX=
13438 compiler_lib_search_path_CXX=
13439 compiler_lib_search_dirs_CXX=
13441 # Source file extension for C++ test sources.
13444 # Object file extension for compiled C++ test sources.
13448 # Code to be used in simple compile tests
13449 lt_simple_compile_test_code="int some_variable = 0;"
13451 # Code to be used in simple link tests
13452 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13454 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13456 # If no C compiler was specified, use CC.
13459 # If no C compiler flags were specified, use CFLAGS.
13460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13462 # Allow CC to be a program name with arguments.
13466 # save warnings/boilerplate of simple test code
13467 ac_outfile=conftest.$ac_objext
13468 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13469 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13470 _lt_compiler_boilerplate=`cat conftest.err`
13473 ac_outfile=conftest.$ac_objext
13474 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13475 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13476 _lt_linker_boilerplate=`cat conftest.err`
13480 # Allow CC to be a program name with arguments.
13485 lt_save_with_gnu_ld=$with_gnu_ld
13486 lt_save_path_LD=$lt_cv_path_LD
13487 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13488 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13490 $as_unset lt_cv_prog_gnu_ld
13492 if test -n "${lt_cv_path_LDCXX+set}"; then
13493 lt_cv_path_LD=$lt_cv_path_LDCXX
13495 $as_unset lt_cv_path_LD
13497 test -z "${LDCXX+set}" || LD=$LDCXX
13501 for cc_temp in $compiler""; do
13503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13509 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13512 # We don't want -fno-exception wen compiling C++ code, so set the
13513 # no_builtin_flag separately
13514 if test "$GXX" = yes; then
13515 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13517 lt_prog_compiler_no_builtin_flag_CXX=
13520 if test "$GXX" = yes; then
13521 # Set up default GNU C++ configuration
13524 # Check whether --with-gnu-ld was given.
13525 if test "${with_gnu_ld+set}" = set; then
13526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13532 if test "$GCC" = yes; then
13533 # Check if gcc -print-prog-name=ld gives a path.
13534 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13535 $as_echo_n "checking for ld used by $CC... " >&6; }
13538 # gcc leaves a trailing carriage return which upsets mingw
13539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13544 # Accept absolute paths.
13546 re_direlt='/[^/][^/]*/\.\./'
13547 # Canonicalize the pathname of ld
13548 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13549 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13550 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13552 test -z "$LD" && LD="$ac_prog"
13555 # If it fails, then pretend we aren't using GCC.
13559 # If it is relative, then search for the first ld in PATH.
13560 with_gnu_ld=unknown
13563 elif test "$with_gnu_ld" = yes; then
13564 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13565 $as_echo_n "checking for GNU ld... " >&6; }
13567 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13568 $as_echo_n "checking for non-GNU ld... " >&6; }
13570 if test "${lt_cv_path_LD+set}" = set; then
13571 $as_echo_n "(cached) " >&6
13573 if test -z "$LD"; then
13574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13575 for ac_dir in $PATH; do
13577 test -z "$ac_dir" && ac_dir=.
13578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13579 lt_cv_path_LD="$ac_dir/$ac_prog"
13580 # Check to see if the program is GNU ld. I'd rather use --version,
13581 # but apparently some variants of GNU ld only accept -v.
13582 # Break only if it was the GNU/non-GNU ld that we prefer.
13583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13584 *GNU* | *'with BFD'*)
13585 test "$with_gnu_ld" != no && break
13588 test "$with_gnu_ld" != yes && break
13595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13599 LD="$lt_cv_path_LD"
13600 if test -n "$LD"; then
13601 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13602 $as_echo "$LD" >&6; }
13604 { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13607 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13608 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13609 { (exit 1); exit 1; }; }
13610 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13612 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13613 $as_echo_n "(cached) " >&6
13615 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13616 case `$LD -v 2>&1 </dev/null` in
13617 *GNU* | *'with BFD'*)
13618 lt_cv_prog_gnu_ld=yes
13621 lt_cv_prog_gnu_ld=no
13625 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13626 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13627 with_gnu_ld=$lt_cv_prog_gnu_ld
13631 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13632 # archiving commands below assume that GNU ld is being used.
13633 if test "$with_gnu_ld" = yes; then
13634 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 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'
13637 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13640 # If archive_cmds runs LD, not CC, wlarc should be empty
13641 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13642 # investigate it a little bit more. (MM)
13645 # ancient GNU ld didn't support --whole-archive et. al.
13646 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13647 grep 'no-whole-archive' > /dev/null; then
13648 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13650 whole_archive_flag_spec_CXX=
13656 # A generic and very simple default shared library creation
13657 # command for GNU C++ for the case where it uses the native
13658 # linker, instead of GNU ld. If possible, this setting should
13659 # overridden to take advantage of the native linker features on
13660 # the platform it is being used on.
13661 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13664 # Commands to make compiler produce verbose output that lists
13665 # what "hidden" libraries, object files and flags are used when
13666 # linking a shared library.
13667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13675 # PORTME: fill in a description of your system's C++ link characteristics
13676 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13681 # FIXME: insert proper C++ library support
13685 if test "$host_cpu" = ia64; then
13686 # On IA64, the linker does run time linking by default, so we don't
13687 # have to do anything special.
13688 aix_use_runtimelinking=no
13689 exp_sym_flag='-Bexport'
13692 aix_use_runtimelinking=no
13694 # Test if we are trying to use run time linking or normal
13695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13696 # need to do runtime linking.
13697 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13698 for ld_flag in $LDFLAGS; do
13701 aix_use_runtimelinking=yes
13709 exp_sym_flag='-bexport'
13710 no_entry_flag='-bnoentry'
13713 # When large executables or shared objects are built, AIX ld can
13714 # have problems creating the table of contents. If linking a library
13715 # or program results in "error TOC overflow" add -mminimal-toc to
13716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13719 archive_cmds_CXX=''
13720 hardcode_direct_CXX=yes
13721 hardcode_libdir_separator_CXX=':'
13722 link_all_deplibs_CXX=yes
13724 if test "$GXX" = yes; then
13725 case $host_os in aix4.[012]|aix4.[012].*)
13726 # We only want to do this on AIX 4.2 and lower, the check
13727 # below for broken collect2 doesn't work under 4.3+
13728 collect2name=`${CC} -print-prog-name=collect2`
13729 if test -f "$collect2name" && \
13730 strings "$collect2name" | grep resolve_lib_name >/dev/null
13732 # We have reworked collect2
13735 # We have old collect2
13736 hardcode_direct_CXX=unsupported
13737 # It fails to find uninstalled libraries when the uninstalled
13738 # path is not listed in the libpath. Setting hardcode_minus_L
13739 # to unsupported forces relinking
13740 hardcode_minus_L_CXX=yes
13741 hardcode_libdir_flag_spec_CXX='-L$libdir'
13742 hardcode_libdir_separator_CXX=
13746 shared_flag='-shared'
13747 if test "$aix_use_runtimelinking" = yes; then
13748 shared_flag="$shared_flag "'${wl}-G'
13752 if test "$host_cpu" = ia64; then
13753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13754 # chokes on -Wl,-G. The following line is correct:
13757 if test "$aix_use_runtimelinking" = yes; then
13758 shared_flag='${wl}-G'
13760 shared_flag='${wl}-bM:SRE'
13765 # It seems that -bexpall does not export symbols beginning with
13766 # underscore (_), so it is better to generate a list of symbols to export.
13767 always_export_symbols_CXX=yes
13768 if test "$aix_use_runtimelinking" = yes; then
13769 # Warning - without using the other runtime loading flags (-brtl),
13770 # -berok will link without error, but may produce a broken library.
13771 allow_undefined_flag_CXX='-berok'
13772 # Determine the default libpath from the value encoded in an empty executable.
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795 $as_echo "$ac_try_echo") >&5
13796 (eval "$ac_link") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_cxx_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest$ac_exeext && {
13806 test "$cross_compiling" = yes ||
13807 $as_test_x conftest$ac_exeext
13810 lt_aix_libpath_sed='
13811 /Import File Strings/,/^$/ {
13817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13818 # Check for a 64-bit object if we didn't find anything.
13819 if test -z "$aix_libpath"; then
13820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13823 $as_echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13829 rm -rf conftest.dSYM
13830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13831 conftest$ac_exeext conftest.$ac_ext
13832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13836 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"
13838 if test "$host_cpu" = ia64; then
13839 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13840 allow_undefined_flag_CXX="-z nodefs"
13841 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"
13843 # Determine the default libpath from the value encoded in an empty executable.
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13866 $as_echo "$ac_try_echo") >&5
13867 (eval "$ac_link") 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && {
13874 test -z "$ac_cxx_werror_flag" ||
13875 test ! -s conftest.err
13876 } && test -s conftest$ac_exeext && {
13877 test "$cross_compiling" = yes ||
13878 $as_test_x conftest$ac_exeext
13881 lt_aix_libpath_sed='
13882 /Import File Strings/,/^$/ {
13888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13889 # Check for a 64-bit object if we didn't find anything.
13890 if test -z "$aix_libpath"; then
13891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13894 $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -rf conftest.dSYM
13901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13902 conftest$ac_exeext conftest.$ac_ext
13903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13905 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13906 # Warning - without using the other run time loading flags,
13907 # -berok will link without error, but may produce a broken library.
13908 no_undefined_flag_CXX=' ${wl}-bernotok'
13909 allow_undefined_flag_CXX=' ${wl}-berok'
13910 # Exported symbols can be pulled into shared objects from archives
13911 whole_archive_flag_spec_CXX='$convenience'
13912 archive_cmds_need_lc_CXX=yes
13913 # This is similar to how AIX traditionally builds its shared libraries.
13914 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'
13920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921 allow_undefined_flag_CXX=unsupported
13922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13923 # support --undefined. This deserves some investigation. FIXME
13924 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931 case $cc_basename in
13933 # FIXME: insert proper C++ library support
13939 cygwin* | mingw* | pw32*)
13940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13941 # as there is no search path for DLLs.
13942 hardcode_libdir_flag_spec_CXX='-L$libdir'
13943 allow_undefined_flag_CXX=unsupported
13944 always_export_symbols_CXX=no
13945 enable_shared_with_static_runtimes_CXX=yes
13947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13948 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'
13949 # If the export-symbols file already is a .def file (1st line
13950 # is EXPORTS), use it as is; otherwise, prepend...
13951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13952 cp $export_symbols $output_objdir/$soname.def;
13954 echo EXPORTS > $output_objdir/$soname.def;
13955 cat $export_symbols >> $output_objdir/$soname.def;
13957 $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'
13962 darwin* | rhapsody*)
13963 archive_cmds_need_lc_CXX=no
13964 hardcode_direct_CXX=no
13965 hardcode_automatic_CXX=yes
13966 hardcode_shlibpath_var_CXX=unsupported
13967 whole_archive_flag_spec_CXX=''
13968 link_all_deplibs_CXX=yes
13969 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13970 if test "$GXX" = yes ; then
13971 output_verbose_link_cmd='echo'
13972 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13973 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13974 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13975 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13976 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13977 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${_lt_dsymutil}"
13978 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13981 case $cc_basename in
13983 output_verbose_link_cmd='echo'
13984 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'
13985 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13987 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}'
13988 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}'
13998 case $cc_basename in
14000 # FIXME: insert proper C++ library support
14004 # Green Hills C++ Compiler
14005 # FIXME: insert proper C++ library support
14009 # FIXME: insert proper C++ library support
14015 # C++ shared libraries reported to be fairly broken before switch to ELF
14019 archive_cmds_need_lc_CXX=no
14021 freebsd* | dragonfly*)
14022 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14029 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14030 hardcode_libdir_separator_CXX=:
14031 export_dynamic_flag_spec_CXX='${wl}-E'
14032 hardcode_direct_CXX=yes
14033 hardcode_minus_L_CXX=yes # Not in the search PATH,
14034 # but as the default
14035 # location of the library.
14037 case $cc_basename in
14039 # FIXME: insert proper C++ library support
14043 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'
14044 # Commands to make compiler produce verbose output that lists
14045 # what "hidden" libraries, object files and flags are used when
14046 # linking a shared library.
14048 # There doesn't appear to be a way to prevent this compiler from
14049 # explicitly linking system object files so we need to strip them
14050 # from the output so that they don't get included in the library
14052 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'
14055 if test "$GXX" = yes; then
14056 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'
14058 # FIXME: insert proper C++ library support
14065 if test $with_gnu_ld = no; then
14066 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14067 hardcode_libdir_separator_CXX=:
14072 export_dynamic_flag_spec_CXX='${wl}-E'
14078 hardcode_direct_CXX=no
14079 hardcode_shlibpath_var_CXX=no
14082 hardcode_direct_CXX=yes
14083 hardcode_minus_L_CXX=yes # Not in the search PATH,
14084 # but as the default
14085 # location of the library.
14089 case $cc_basename in
14091 # FIXME: insert proper C++ library support
14097 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14100 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14106 # Commands to make compiler produce verbose output that lists
14107 # what "hidden" libraries, object files and flags are used when
14108 # linking a shared library.
14110 # There doesn't appear to be a way to prevent this compiler from
14111 # explicitly linking system object files so we need to strip them
14112 # from the output so that they don't get included in the library
14114 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'
14117 if test "$GXX" = yes; then
14118 if test $with_gnu_ld = no; then
14121 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14124 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14127 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'
14132 # FIXME: insert proper C++ library support
14139 hardcode_direct_CXX=no
14140 hardcode_shlibpath_var_CXX=no
14141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142 export_dynamic_flag_spec_CXX='${wl}-E'
14143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14144 # Instead, shared libraries are loaded at an image base (0x10000000 by
14145 # default) and relocated if they conflict, which is a slow very memory
14146 # consuming and fragmenting process. To avoid this, we pick a random,
14147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14149 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'
14150 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'
14153 case $cc_basename in
14156 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'
14158 # Archives containing C++ object files must be created using
14159 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14160 # necessary to make sure instantiated templates are included
14162 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14165 if test "$GXX" = yes; then
14166 if test "$with_gnu_ld" = no; then
14167 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'
14169 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'
14172 link_all_deplibs_CXX=yes
14175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14176 hardcode_libdir_separator_CXX=:
14178 linux* | k*bsd*-gnu)
14179 case $cc_basename in
14181 # Kuck and Associates, Inc. (KAI) C++ Compiler
14183 # KCC will only create a shared library if the output file
14184 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14185 # to its proper name (with version) after linking.
14186 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'
14187 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'
14188 # Commands to make compiler produce verbose output that lists
14189 # what "hidden" libraries, object files and flags are used when
14190 # linking a shared library.
14192 # There doesn't appear to be a way to prevent this compiler from
14193 # explicitly linking system object files so we need to strip them
14194 # from the output so that they don't get included in the library
14196 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'
14198 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14201 # Archives containing C++ object files must be created using
14202 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14203 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14208 # version 8.0 and above of icpc choke on multiply defined symbols
14209 # if we add $predep_objects and $postdep_objects, however 7.1 and
14210 # earlier do not add the objects themselves.
14211 case `$CC -V 2>&1` in
14213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214 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'
14216 *) # Version 8.0 or newer
14219 ia64*) tmp_idyn=' -i_dynamic';;
14221 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14222 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'
14225 archive_cmds_need_lc_CXX=no
14226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14231 # Portland Group C++ compiler
14232 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14233 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'
14235 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14236 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14237 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'
14241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 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'
14244 runpath_var=LD_RUN_PATH
14245 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14246 hardcode_libdir_separator_CXX=:
14248 # Commands to make compiler produce verbose output that lists
14249 # what "hidden" libraries, object files and flags are used when
14250 # linking a shared library.
14252 # There doesn't appear to be a way to prevent this compiler from
14253 # explicitly linking system object files so we need to strip them
14254 # from the output so that they don't get included in the library
14256 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'
14259 case `$CC -V 2>&1 | sed 5q` in
14262 no_undefined_flag_CXX=' -zdefs'
14263 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264 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'
14265 hardcode_libdir_flag_spec_CXX='-R$libdir'
14266 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'
14268 # Not sure whether something based on
14269 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14271 output_verbose_link_cmd='echo'
14273 # Archives containing C++ object files must be created using
14274 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14275 # necessary to make sure instantiated templates are included
14277 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14284 # FIXME: insert proper C++ library support
14288 # FIXME: insert proper C++ library support
14292 case $cc_basename in
14294 # FIXME: insert proper C++ library support
14298 # FIXME: insert proper C++ library support
14304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14305 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14307 hardcode_libdir_flag_spec_CXX='-R$libdir'
14308 hardcode_direct_CXX=yes
14309 hardcode_shlibpath_var_CXX=no
14311 # Workaround some broken pre-1.5 toolchains
14312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14315 # C++ shared libraries are fairly broken
14319 if test -f /usr/libexec/ld.so; then
14320 hardcode_direct_CXX=yes
14321 hardcode_shlibpath_var_CXX=no
14322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14326 export_dynamic_flag_spec_CXX='${wl}-E'
14327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14329 output_verbose_link_cmd='echo'
14335 case $cc_basename in
14337 # Kuck and Associates, Inc. (KAI) C++ Compiler
14339 # KCC will only create a shared library if the output file
14340 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14341 # to its proper name (with version) after linking.
14342 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'
14344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14345 hardcode_libdir_separator_CXX=:
14347 # Archives containing C++ object files must be created using
14348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14353 # Rational C++ 2.4.1
14354 # FIXME: insert proper C++ library support
14358 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14359 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'
14361 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14362 hardcode_libdir_separator_CXX=:
14364 # Commands to make compiler produce verbose output that lists
14365 # what "hidden" libraries, object files and flags are used when
14366 # linking a shared library.
14368 # There doesn't appear to be a way to prevent this compiler from
14369 # explicitly linking system object files so we need to strip them
14370 # from the output so that they don't get included in the library
14372 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'
14375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14377 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'
14379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14380 hardcode_libdir_separator_CXX=:
14382 # Commands to make compiler produce verbose output that lists
14383 # what "hidden" libraries, object files and flags are used when
14384 # linking a shared library.
14385 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14388 # FIXME: insert proper C++ library support
14395 case $cc_basename in
14397 # Kuck and Associates, Inc. (KAI) C++ Compiler
14399 # KCC will only create a shared library if the output file
14400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14401 # to its proper name (with version) after linking.
14402 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'
14404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14405 hardcode_libdir_separator_CXX=:
14407 # Archives containing C++ object files must be created using
14408 # the KAI C++ compiler.
14409 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14412 # Rational C++ 2.4.1
14413 # FIXME: insert proper C++ library support
14417 allow_undefined_flag_CXX=' -expect_unresolved \*'
14418 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'
14419 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14420 echo "-hidden">> $lib.exp~
14421 $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~
14424 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14425 hardcode_libdir_separator_CXX=:
14427 # Commands to make compiler produce verbose output that lists
14428 # what "hidden" libraries, object files and flags are used when
14429 # linking a shared library.
14431 # There doesn't appear to be a way to prevent this compiler from
14432 # explicitly linking system object files so we need to strip them
14433 # from the output so that they don't get included in the library
14435 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'
14438 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14439 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14440 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'
14442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14443 hardcode_libdir_separator_CXX=:
14445 # Commands to make compiler produce verbose output that lists
14446 # what "hidden" libraries, object files and flags are used when
14447 # linking a shared library.
14448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14451 # FIXME: insert proper C++ library support
14458 # FIXME: insert proper C++ library support
14462 case $cc_basename in
14465 # FIXME: insert proper C++ library support
14470 # FIXME: insert proper C++ library support
14474 # FIXME: insert proper C++ library support
14480 case $cc_basename in
14482 # Sun C++ 4.2, 5.x and Centerline C++
14483 archive_cmds_need_lc_CXX=yes
14484 no_undefined_flag_CXX=' -zdefs'
14485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14486 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14487 $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'
14489 hardcode_libdir_flag_spec_CXX='-R$libdir'
14490 hardcode_shlibpath_var_CXX=no
14492 solaris2.[0-5] | solaris2.[0-5].*) ;;
14494 # The compiler driver will combine and reorder linker options,
14495 # but understands `-z linker_flag'.
14496 # Supported since Solaris 2.6 (maybe 2.5.1?)
14497 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14500 link_all_deplibs_CXX=yes
14502 output_verbose_link_cmd='echo'
14504 # Archives containing C++ object files must be created using
14505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14506 # necessary to make sure instantiated templates are included
14508 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14511 # Green Hills C++ Compiler
14512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14514 # The C++ compiler must be used to create the archive.
14515 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14518 # GNU C++ compiler with Solaris linker
14519 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14520 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14521 if $CC --version | grep -v '^2\.7' > /dev/null; then
14522 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14523 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14524 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14526 # Commands to make compiler produce verbose output that lists
14527 # what "hidden" libraries, object files and flags are used when
14528 # linking a shared library.
14529 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14531 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14533 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14534 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14535 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14537 # Commands to make compiler produce verbose output that lists
14538 # what "hidden" libraries, object files and flags are used when
14539 # linking a shared library.
14540 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14543 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14545 solaris2.[0-5] | solaris2.[0-5].*) ;;
14547 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14555 no_undefined_flag_CXX='${wl}-z,text'
14556 archive_cmds_need_lc_CXX=no
14557 hardcode_shlibpath_var_CXX=no
14558 runpath_var='LD_RUN_PATH'
14560 case $cc_basename in
14562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 sysv5* | sco3.2v5* | sco5v6*)
14572 # Note: We can NOT use -z defs as we might desire, because we do not
14573 # link with -lc, and that would cause any symbols used from libc to
14574 # always be unresolved, which means just about no library would
14575 # ever link correctly. If we're not using GNU ld we use -z text
14576 # though, which does catch some bad symbols but isn't as heavy-handed
14578 # For security reasons, it is highly recommended that you always
14579 # use absolute paths for naming shared libraries, and exclude the
14580 # DT_RUNPATH tag from executables and libraries. But doing so
14581 # requires that you compile everything twice, which is a pain.
14582 # So that behaviour is only enabled if SCOABSPATH is set to a
14583 # non-empty value in the environment. Most likely only useful for
14584 # creating official distributions of packages.
14585 # This is a hack until libtool officially supports absolute path
14586 # names for shared libraries.
14587 no_undefined_flag_CXX='${wl}-z,text'
14588 allow_undefined_flag_CXX='${wl}-z,nodefs'
14589 archive_cmds_need_lc_CXX=no
14590 hardcode_shlibpath_var_CXX=no
14591 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14592 hardcode_libdir_separator_CXX=':'
14593 link_all_deplibs_CXX=yes
14594 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14595 runpath_var='LD_RUN_PATH'
14597 case $cc_basename in
14599 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14603 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 case $cc_basename in
14611 # NonStop-UX NCC 3.20
14612 # FIXME: insert proper C++ library support
14616 # FIXME: insert proper C++ library support
14622 # FIXME: insert proper C++ library support
14626 # FIXME: insert proper C++ library support
14630 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14631 $as_echo "$ld_shlibs_CXX" >&6; }
14632 test "$ld_shlibs_CXX" = no && can_build_shared=no
14637 cat > conftest.$ac_ext <<EOF
14641 Foo (void) { a = 0; }
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>&5
14650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; then
14652 # Parse the compiler output and extract the necessary
14653 # objects, libraries and library flags.
14655 # Sentinel used to keep track of whether or not we are before
14656 # the conftest object file.
14657 pre_test_object_deps_done=no
14659 # The `*' in the case matches for architectures that use `case' in
14660 # $output_verbose_cmd can trigger glob expansion during the loop
14661 # eval without this substitution.
14662 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14664 for p in `eval $output_verbose_link_cmd`; do
14668 # Some compilers place space between "-{L,R}" and the path.
14669 # Remove the space.
14670 if test $p = "-L" \
14671 || test $p = "-R"; then
14678 if test "$pre_test_object_deps_done" = no; then
14681 # Internal compiler library paths should come after those
14682 # provided the user. The postdeps already come after the
14683 # user supplied libs so there is no need to process them.
14684 if test -z "$compiler_lib_search_path_CXX"; then
14685 compiler_lib_search_path_CXX="${prev}${p}"
14687 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14690 # The "-l" case would never come before the object being
14691 # linked, so don't bother handling this case.
14694 if test -z "$postdeps_CXX"; then
14695 postdeps_CXX="${prev}${p}"
14697 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14703 # This assumes that the test object file only shows up
14704 # once in the compiler output.
14705 if test "$p" = "conftest.$objext"; then
14706 pre_test_object_deps_done=yes
14710 if test "$pre_test_object_deps_done" = no; then
14711 if test -z "$predep_objects_CXX"; then
14712 predep_objects_CXX="$p"
14714 predep_objects_CXX="$predep_objects_CXX $p"
14717 if test -z "$postdep_objects_CXX"; then
14718 postdep_objects_CXX="$p"
14720 postdep_objects_CXX="$postdep_objects_CXX $p"
14725 *) ;; # Ignore the rest.
14733 echo "libtool.m4: error: problem compiling CXX test program"
14736 $rm -f confest.$objext
14738 compiler_lib_search_dirs_CXX=
14739 if test -n "$compiler_lib_search_path_CXX"; then
14740 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14743 # PORTME: override above test on systems where it is broken
14746 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14747 # hack all around it, let's just trust "g++" to DTRT.
14748 predep_objects_CXX=
14749 postdep_objects_CXX=
14754 case `$CC -V 2>&1 | sed 5q` in
14758 # The more standards-conforming stlport4 library is
14759 # incompatible with the Cstd library. Avoid specifying
14760 # it if it's in CXXFLAGS. Ignore libCrun as
14761 # -library=stlport4 depends on it.
14762 case " $CXX $CXXFLAGS " in
14763 *" -library=stlport4 "*)
14764 solaris_use_stlport4=yes
14767 if test "$solaris_use_stlport4" != yes; then
14768 postdeps_CXX='-library=Cstd -library=Crun'
14775 case $cc_basename in
14777 # The more standards-conforming stlport4 library is
14778 # incompatible with the Cstd library. Avoid specifying
14779 # it if it's in CXXFLAGS. Ignore libCrun as
14780 # -library=stlport4 depends on it.
14781 case " $CXX $CXXFLAGS " in
14782 *" -library=stlport4 "*)
14783 solaris_use_stlport4=yes
14787 # Adding this requires a known-good setup of shared libraries for
14788 # Sun compiler versions before 5.6, else PIC objects from an old
14789 # archive will be linked into the output, leading to subtle bugs.
14790 if test "$solaris_use_stlport4" != yes; then
14791 postdeps_CXX='-library=Cstd -library=Crun'
14798 case " $postdeps_CXX " in
14799 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14802 lt_prog_compiler_wl_CXX=
14803 lt_prog_compiler_pic_CXX=
14804 lt_prog_compiler_static_CXX=
14806 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14809 # C++ specific cases for pic, static, wl, etc.
14810 if test "$GXX" = yes; then
14811 lt_prog_compiler_wl_CXX='-Wl,'
14812 lt_prog_compiler_static_CXX='-static'
14816 # All AIX code is PIC.
14817 if test "$host_cpu" = ia64; then
14818 # AIX 5 now supports IA64 processor
14819 lt_prog_compiler_static_CXX='-Bstatic'
14823 # FIXME: we need at least 68020 code to build shared libraries, but
14824 # adding the `-m68020' flag to GCC prevents building anything better,
14826 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14828 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14829 # PIC is the default for these OSes.
14831 mingw* | cygwin* | os2* | pw32*)
14832 # This hack is so that the source file can tell whether it is being
14833 # built for inclusion in a dll (and should export symbols for example).
14834 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14835 # (--disable-auto-import) libraries
14836 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14838 darwin* | rhapsody*)
14839 # PIC is the default on this platform
14840 # Common symbols not allowed in MH_DYLIB files
14841 lt_prog_compiler_pic_CXX='-fno-common'
14844 # DJGPP does not support shared libraries at all
14845 lt_prog_compiler_pic_CXX=
14848 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14849 # Instead, we relocate shared libraries at runtime.
14852 if test -d /usr/nec; then
14853 lt_prog_compiler_pic_CXX=-Kconform_pic
14857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858 # not for PA HP-UX.
14863 lt_prog_compiler_pic_CXX='-fPIC'
14868 lt_prog_compiler_pic_CXX='-fPIC'
14874 # All AIX code is PIC.
14875 if test "$host_cpu" = ia64; then
14876 # AIX 5 now supports IA64 processor
14877 lt_prog_compiler_static_CXX='-Bstatic'
14879 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14883 case $cc_basename in
14885 # Green Hills C++ Compiler
14886 # _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"
14891 # PIC is the default on this platform
14892 # Common symbols not allowed in MH_DYLIB files
14893 case $cc_basename in
14895 lt_prog_compiler_pic_CXX='-qnocommon'
14896 lt_prog_compiler_wl_CXX='-Wl,'
14901 case $cc_basename in
14903 lt_prog_compiler_pic_CXX='-KPIC'
14906 # Green Hills C++ Compiler
14907 lt_prog_compiler_pic_CXX='-pic'
14913 freebsd* | dragonfly*)
14914 # FreeBSD uses GNU C++
14916 hpux9* | hpux10* | hpux11*)
14917 case $cc_basename in
14919 lt_prog_compiler_wl_CXX='-Wl,'
14920 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14921 if test "$host_cpu" != ia64; then
14922 lt_prog_compiler_pic_CXX='+Z'
14926 lt_prog_compiler_wl_CXX='-Wl,'
14927 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14933 lt_prog_compiler_pic_CXX='+Z'
14942 # This is c89, which is MS Visual C++ (no shared libs)
14943 # Anyone wants to do a port?
14945 irix5* | irix6* | nonstopux*)
14946 case $cc_basename in
14948 lt_prog_compiler_wl_CXX='-Wl,'
14949 lt_prog_compiler_static_CXX='-non_shared'
14950 # CC pic flag -KPIC is the default.
14956 linux* | k*bsd*-gnu)
14957 case $cc_basename in
14960 lt_prog_compiler_wl_CXX='--backend -Wl,'
14961 lt_prog_compiler_pic_CXX='-fPIC'
14965 lt_prog_compiler_wl_CXX='-Wl,'
14966 lt_prog_compiler_pic_CXX='-KPIC'
14967 lt_prog_compiler_static_CXX='-static'
14970 # Portland Group C++ compiler.
14971 lt_prog_compiler_wl_CXX='-Wl,'
14972 lt_prog_compiler_pic_CXX='-fpic'
14973 lt_prog_compiler_static_CXX='-Bstatic'
14977 # Make sure the PIC flag is empty. It appears that all Alpha
14978 # Linux and Compaq Tru64 Unix objects are PIC.
14979 lt_prog_compiler_pic_CXX=
14980 lt_prog_compiler_static_CXX='-non_shared'
14983 case `$CC -V 2>&1 | sed 5q` in
14986 lt_prog_compiler_pic_CXX='-KPIC'
14987 lt_prog_compiler_static_CXX='-Bstatic'
14988 lt_prog_compiler_wl_CXX='-Qoption ld '
14999 case $cc_basename in
15001 lt_prog_compiler_pic_CXX='-W c,exportall'
15009 osf3* | osf4* | osf5*)
15010 case $cc_basename in
15012 lt_prog_compiler_wl_CXX='--backend -Wl,'
15015 # Rational C++ 2.4.1
15016 lt_prog_compiler_pic_CXX='-pic'
15019 # Digital/Compaq C++
15020 lt_prog_compiler_wl_CXX='-Wl,'
15021 # Make sure the PIC flag is empty. It appears that all Alpha
15022 # Linux and Compaq Tru64 Unix objects are PIC.
15023 lt_prog_compiler_pic_CXX=
15024 lt_prog_compiler_static_CXX='-non_shared'
15033 case $cc_basename in
15035 # Sun C++ 4.2, 5.x and Centerline C++
15036 lt_prog_compiler_pic_CXX='-KPIC'
15037 lt_prog_compiler_static_CXX='-Bstatic'
15038 lt_prog_compiler_wl_CXX='-Qoption ld '
15041 # Green Hills C++ Compiler
15042 lt_prog_compiler_pic_CXX='-PIC'
15049 case $cc_basename in
15052 lt_prog_compiler_pic_CXX='-pic'
15053 lt_prog_compiler_static_CXX='-Bstatic'
15057 lt_prog_compiler_pic_CXX='-pic'
15064 case $cc_basename in
15066 # NonStop-UX NCC 3.20
15067 lt_prog_compiler_pic_CXX='-KPIC'
15073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15074 case $cc_basename in
15076 lt_prog_compiler_wl_CXX='-Wl,'
15077 lt_prog_compiler_pic_CXX='-KPIC'
15078 lt_prog_compiler_static_CXX='-Bstatic'
15085 lt_prog_compiler_can_build_shared_CXX=no
15090 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15091 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15094 # Check to make sure the PIC flag actually works.
15096 if test -n "$lt_prog_compiler_pic_CXX"; then
15098 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15099 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15100 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15101 $as_echo_n "(cached) " >&6
15103 lt_cv_prog_compiler_pic_works_CXX=no
15104 ac_outfile=conftest.$ac_objext
15105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15106 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15107 # Insert the option either (1) after the last *FLAGS variable, or
15108 # (2) before a word containing "conftest.", or (3) at the end.
15109 # Note that $ac_compile itself does not contain backslashes and begins
15110 # with a dollar sign (not a hyphen), so the echo should work correctly.
15111 # The option is referenced via a variable to avoid confusing sed.
15112 lt_compile=`echo "$ac_compile" | $SED \
15113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15115 -e 's:$: $lt_compiler_flag:'`
15116 (eval echo "\"\$as_me:15116: $lt_compile\"" >&5)
15117 (eval "$lt_compile" 2>conftest.err)
15119 cat conftest.err >&5
15120 echo "$as_me:15120: \$? = $ac_status" >&5
15121 if (exit $ac_status) && test -s "$ac_outfile"; then
15122 # The compiler can only warn and ignore the option if not recognized
15123 # So say no if there are warnings other than the usual output.
15124 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15127 lt_cv_prog_compiler_pic_works_CXX=yes
15133 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15134 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15136 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15137 case $lt_prog_compiler_pic_CXX in
15139 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15142 lt_prog_compiler_pic_CXX=
15143 lt_prog_compiler_can_build_shared_CXX=no
15148 # For platforms which do not support PIC, -DPIC is meaningless:
15150 lt_prog_compiler_pic_CXX=
15153 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15158 # Check to make sure the static flag actually works.
15160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15161 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15163 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15164 $as_echo_n "(cached) " >&6
15166 lt_cv_prog_compiler_static_works_CXX=no
15167 save_LDFLAGS="$LDFLAGS"
15168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15171 # The linker can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test -s conftest.err; then
15174 # Append any errors to the config.log.
15175 cat conftest.err 1>&5
15176 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15178 if diff conftest.exp conftest.er2 >/dev/null; then
15179 lt_cv_prog_compiler_static_works_CXX=yes
15182 lt_cv_prog_compiler_static_works_CXX=yes
15186 LDFLAGS="$save_LDFLAGS"
15189 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15195 lt_prog_compiler_static_CXX=
15199 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15201 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15202 $as_echo_n "(cached) " >&6
15204 lt_cv_prog_compiler_c_o_CXX=no
15205 $rm -r conftest 2>/dev/null
15209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15211 lt_compiler_flag="-o out/conftest2.$ac_objext"
15212 # Insert the option either (1) after the last *FLAGS variable, or
15213 # (2) before a word containing "conftest.", or (3) at the end.
15214 # Note that $ac_compile itself does not contain backslashes and begins
15215 # with a dollar sign (not a hyphen), so the echo should work correctly.
15216 lt_compile=`echo "$ac_compile" | $SED \
15217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15219 -e 's:$: $lt_compiler_flag:'`
15220 (eval echo "\"\$as_me:15220: $lt_compile\"" >&5)
15221 (eval "$lt_compile" 2>out/conftest.err)
15223 cat out/conftest.err >&5
15224 echo "$as_me:15224: \$? = $ac_status" >&5
15225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15227 # The compiler can only warn and ignore the option if not recognized
15228 # So say no if there are warnings
15229 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15232 lt_cv_prog_compiler_c_o_CXX=yes
15237 # SGI C++ compiler will create directory out/ii_files/ for
15238 # template instantiation
15239 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15240 $rm out/* && rmdir out
15246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15250 hard_links="nottested"
15251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15252 # do not overwrite the value of need_locks provided by the user
15253 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15254 $as_echo_n "checking if we can lock with hard links... " >&6; }
15257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15259 ln conftest.a conftest.b 2>&5 || hard_links=no
15260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15261 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15262 $as_echo "$hard_links" >&6; }
15263 if test "$hard_links" = no; then
15264 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15272 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15275 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15278 # If we're using GNU nm, then we don't want the "-C" option.
15279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15281 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'
15283 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'
15287 export_symbols_cmds_CXX="$ltdll_cmds"
15290 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'
15293 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15296 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15298 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15299 $as_echo "$ld_shlibs_CXX" >&6; }
15300 test "$ld_shlibs_CXX" = no && can_build_shared=no
15303 # Do we need to explicitly link libc?
15305 case "x$archive_cmds_need_lc_CXX" in
15307 # Assume -lc should be added
15308 archive_cmds_need_lc_CXX=yes
15310 if test "$enable_shared" = yes && test "$GCC" = yes; then
15311 case $archive_cmds_CXX in
15313 # FIXME: we may have to deal with multi-command sequences.
15316 # Test whether the compiler implicitly links with -lc since on some
15317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15318 # to ld, don't add -lc before -lgcc.
15319 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15320 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>&5
15327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } 2>conftest.err; then
15331 libobjs=conftest.$ac_objext
15333 wl=$lt_prog_compiler_wl_CXX
15334 pic_flag=$lt_prog_compiler_pic_CXX
15340 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15341 allow_undefined_flag_CXX=
15342 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15343 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }
15348 archive_cmds_need_lc_CXX=no
15350 archive_cmds_need_lc_CXX=yes
15352 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15354 cat conftest.err 1>&5
15357 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15358 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15365 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15366 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15367 library_names_spec=
15368 libname_spec='lib$name'
15372 postuninstall_cmds=
15376 shlibpath_overrides_runpath=unknown
15378 dynamic_linker="$host_os ld.so"
15379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15381 need_lib_prefix=unknown
15382 hardcode_into_libs=no
15384 # when you set need_version to no, make sure it does not cause -set_version
15385 # flags to be left without arguments
15386 need_version=unknown
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15392 shlibpath_var=LIBPATH
15394 # AIX 3 has no versioning support, so we append a major version to the name.
15395 soname_spec='${libname}${release}${shared_ext}$major'
15402 hardcode_into_libs=yes
15403 if test "$host_cpu" = ia64; then
15404 # AIX 5 supports IA64
15405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15406 shlibpath_var=LD_LIBRARY_PATH
15408 # With GCC up to 2.95.x, collect2 would create an import file
15409 # for dependence libraries. The import file would start with
15410 # the line `#! .'. This would cause the generated library to
15411 # depend on `.', always an invalid library. This was fixed in
15412 # development snapshots of GCC prior to 3.0.
15414 aix4 | aix4.[01] | aix4.[01].*)
15415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15417 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15420 can_build_shared=no
15424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15425 # soname into executable. Probably we can add versioning support to
15426 # collect2, so additional links can be useful in future.
15427 if test "$aix_use_runtimelinking" = yes; then
15428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15429 # instead of lib<name>.a to let people know that these are not
15430 # typical AIX shared libraries.
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 # We preserve .a as extension for shared libraries through AIX4.2
15434 # and later when we are not doing run time linking.
15435 library_names_spec='${libname}${release}.a $libname.a'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LIBPATH
15443 library_names_spec='$libname.ixlibrary $libname.a'
15444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15445 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'
15449 library_names_spec='${libname}${shared_ext}'
15450 dynamic_linker="$host_os ld.so"
15451 shlibpath_var=LIBRARY_PATH
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15463 # the default ld.so.conf also contains /usr/contrib/lib and
15464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15465 # libtool to hard-code these into programs
15468 cygwin* | mingw* | pw32*)
15469 version_type=windows
15474 case $GCC,$host_os in
15475 yes,cygwin* | yes,mingw* | yes,pw32*)
15476 library_names_spec='$libname.dll.a'
15477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15478 postinstall_cmds='base_file=`basename \${file}`~
15479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15480 dldir=$destdir/`dirname \$dlpath`~
15481 test -d \$dldir || mkdir -p \$dldir~
15482 $install_prog $dir/$dlname \$dldir/$dlname~
15483 chmod a+x \$dldir/$dlname'
15484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15485 dlpath=$dir/\$dldll~
15487 shlibpath_overrides_runpath=yes
15491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15496 # MinGW DLLs use traditional 'lib' prefix
15497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15499 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15500 # It is most probably a Windows format PATH printed by
15501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15502 # path with ; separators, and with drive letters. We can handle the
15503 # drive letters (cygwin fileutils understands them), so leave them,
15504 # especially as we might pass files found there to a mingw objdump,
15505 # which wouldn't understand a cygwinified path. Ahh.
15506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15512 # pw32 DLLs use 'pw' prefix rather than 'lib'
15513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15522 dynamic_linker='Win32 ld.exe'
15523 # FIXME: first we should search . and the directory the executable is in
15527 darwin* | rhapsody*)
15528 dynamic_linker="$host_os dyld"
15529 version_type=darwin
15532 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15533 soname_spec='${libname}${release}${major}$shared_ext'
15534 shlibpath_overrides_runpath=yes
15535 shlibpath_var=DYLD_LIBRARY_PATH
15536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15554 freebsd* | dragonfly*)
15555 # DragonFly does not have aout. When/if they implement a new
15556 # versioning mechanism, adjust this.
15557 if test -x /usr/bin/objformat; then
15558 objformat=`/usr/bin/objformat`
15561 freebsd[123]*) objformat=aout ;;
15562 *) objformat=elf ;;
15565 version_type=freebsd-$objformat
15566 case $version_type in
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15577 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=yes
15582 freebsd3.[01]* | freebsdelf3.[01]*)
15583 shlibpath_overrides_runpath=yes
15584 hardcode_into_libs=yes
15586 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15587 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15591 *) # from 4.6 on, and DragonFly
15592 shlibpath_overrides_runpath=yes
15593 hardcode_into_libs=yes
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 hardcode_into_libs=yes
15608 hpux9* | hpux10* | hpux11*)
15609 # Give a soname corresponding to the major version so that dld.sl refuses to
15610 # link against other versions.
15617 hardcode_into_libs=yes
15618 dynamic_linker="$host_os dld.so"
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 if test "X$HPUX_IA64_MODE" = X32; then
15624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15632 hardcode_into_libs=yes
15633 dynamic_linker="$host_os dld.sl"
15634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15643 dynamic_linker="$host_os dld.sl"
15644 shlibpath_var=SHLIB_PATH
15645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15650 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15651 postinstall_cmds='chmod 555 $lib'
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=no
15663 hardcode_into_libs=yes
15666 irix5* | irix6* | nonstopux*)
15668 nonstopux*) version_type=nonstopux ;;
15670 if test "$lt_cv_prog_gnu_ld" = yes; then
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15681 irix5* | nonstopux*)
15682 libsuff= shlibsuff=
15685 case $LD in # libtool.m4 will add one of these switches to LD
15686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15687 libsuff= shlibsuff= libmagic=32-bit;;
15688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15689 libsuff=32 shlibsuff=N32 libmagic=N32;;
15690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15691 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15692 *) libsuff= shlibsuff= libmagic=never-match;;
15696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15697 shlibpath_overrides_runpath=no
15698 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15699 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15700 hardcode_into_libs=yes
15703 # No shared lib support for Linux oldld, aout, or coff.
15704 linux*oldld* | linux*aout* | linux*coff*)
15708 # This must be Linux ELF.
15709 linux* | k*bsd*-gnu)
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 shlibpath_overrides_runpath=no
15718 # This implies no fast_install, which is unacceptable.
15719 # Some rework will be needed to allow for fast_install
15720 # before this can be enabled.
15721 hardcode_into_libs=yes
15722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15725 # Append ld.so.conf contents to the search path
15726 if test -f /etc/ld.so.conf; then
15727 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' ' '`
15728 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15731 # We used to test for /lib/ld.so.1 and disable shared libraries on
15732 # powerpc, because MkLinux only supported shared libraries with the
15733 # GNU dynamic linker. Since this was broken with cross compilers,
15734 # most powerpc-linux boxes support dynamic linking these days and
15735 # people can always --disable-shared, the test was removed, and we
15736 # assume the GNU/Linux dynamic linker is in use.
15737 dynamic_linker='GNU/Linux ld.so'
15744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15747 dynamic_linker='NetBSD (a.out) ld.so'
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 dynamic_linker='NetBSD ld.elf_so'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=yes
15755 hardcode_into_libs=yes
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15777 sys_lib_dlsearch_path_spec="/usr/lib"
15779 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15781 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15782 *) need_version=no ;;
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15789 openbsd2.[89] | openbsd2.[89].*)
15790 shlibpath_overrides_runpath=no
15793 shlibpath_overrides_runpath=yes
15797 shlibpath_overrides_runpath=yes
15802 libname_spec='$name'
15805 library_names_spec='$libname${shared_ext} $libname.a'
15806 dynamic_linker='OS/2 ld.exe'
15807 shlibpath_var=LIBPATH
15810 osf3* | osf4* | osf5*)
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15818 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15833 hardcode_into_libs=yes
15834 # ldd complains unless libraries are executable
15835 postinstall_cmds='chmod +x $lib'
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15841 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes
15844 if test "$with_gnu_ld" = yes; then
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 case $host_vendor in
15857 shlibpath_overrides_runpath=no
15859 export_dynamic_flag_spec='${wl}-Blargedynsym'
15860 runpath_var=LD_RUN_PATH
15868 shlibpath_overrides_runpath=no
15869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15875 if test -d /usr/nec ;then
15877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15878 soname_spec='$libname${shared_ext}.$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15884 version_type=freebsd-elf
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 shlibpath_var=LD_LIBRARY_PATH
15890 hardcode_into_libs=yes
15891 if test "$with_gnu_ld" = yes; then
15892 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15893 shlibpath_overrides_runpath=no
15895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15896 shlibpath_overrides_runpath=yes
15899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15903 sys_lib_dlsearch_path_spec='/usr/lib'
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15917 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15918 $as_echo "$dynamic_linker" >&6; }
15919 test "$dynamic_linker" = no && can_build_shared=no
15921 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15922 $as_echo_n "(cached) " >&6
15924 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15927 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15929 $as_echo_n "(cached) " >&6
15931 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15934 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15936 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15937 if test "$GCC" = yes; then
15938 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15941 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15942 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15943 hardcode_action_CXX=
15944 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15945 test -n "$runpath_var_CXX" || \
15946 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15948 # We can hardcode non-existant directories.
15949 if test "$hardcode_direct_CXX" != no &&
15950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15951 # have to relink, otherwise we might link with an installed library
15952 # when we should be linking with a yet-to-be-installed one
15953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15954 test "$hardcode_minus_L_CXX" != no; then
15955 # Linking always hardcodes the temporary library directory.
15956 hardcode_action_CXX=relink
15958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15959 hardcode_action_CXX=immediate
15962 # We cannot hardcode anything, or else we can only hardcode existing
15964 hardcode_action_CXX=unsupported
15966 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15967 $as_echo "$hardcode_action_CXX" >&6; }
15969 if test "$hardcode_action_CXX" = relink; then
15970 # Fast installation is not supported
15971 enable_fast_install=no
15972 elif test "$shlibpath_overrides_runpath" = yes ||
15973 test "$enable_shared" = no; then
15974 # Fast installation is not necessary
15975 enable_fast_install=needless
15979 # The else clause should only fire when bootstrapping the
15980 # libtool distribution, otherwise you forgot to ship ltmain.sh
15981 # with your package, and you will get complaints that there are
15982 # no rules to generate ltmain.sh.
15983 if test -f "$ltmain"; then
15984 # See if we are running on zsh, and set the options which allow our commands through
15985 # without removal of \ escapes.
15986 if test -n "${ZSH_VERSION+set}" ; then
15987 setopt NO_GLOB_SUBST
15989 # Now quote all the things that may contain metacharacters while being
15990 # careful not to overquote the AC_SUBSTed values. We take copies of the
15991 # variables and quote the copies for generation of the libtool script.
15992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15996 deplibs_check_method reload_flag reload_cmds need_locks \
15997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15998 lt_cv_sys_global_symbol_to_c_name_address \
15999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16000 old_postinstall_cmds old_postuninstall_cmds \
16004 lt_prog_compiler_wl_CXX \
16005 lt_prog_compiler_pic_CXX \
16006 lt_prog_compiler_static_CXX \
16007 lt_prog_compiler_no_builtin_flag_CXX \
16008 export_dynamic_flag_spec_CXX \
16009 thread_safe_flag_spec_CXX \
16010 whole_archive_flag_spec_CXX \
16011 enable_shared_with_static_runtimes_CXX \
16012 old_archive_cmds_CXX \
16013 old_archive_from_new_cmds_CXX \
16014 predep_objects_CXX \
16015 postdep_objects_CXX \
16018 compiler_lib_search_path_CXX \
16019 compiler_lib_search_dirs_CXX \
16021 archive_expsym_cmds_CXX \
16022 postinstall_cmds_CXX \
16023 postuninstall_cmds_CXX \
16024 old_archive_from_expsyms_cmds_CXX \
16025 allow_undefined_flag_CXX \
16026 no_undefined_flag_CXX \
16027 export_symbols_cmds_CXX \
16028 hardcode_libdir_flag_spec_CXX \
16029 hardcode_libdir_flag_spec_ld_CXX \
16030 hardcode_libdir_separator_CXX \
16031 hardcode_automatic_CXX \
16033 module_expsym_cmds_CXX \
16034 lt_cv_prog_compiler_c_o_CXX \
16035 fix_srcfile_path_CXX \
16036 exclude_expsyms_CXX \
16037 include_expsyms_CXX; do
16040 old_archive_cmds_CXX | \
16041 old_archive_from_new_cmds_CXX | \
16042 archive_cmds_CXX | \
16043 archive_expsym_cmds_CXX | \
16044 module_cmds_CXX | \
16045 module_expsym_cmds_CXX | \
16046 old_archive_from_expsyms_cmds_CXX | \
16047 export_symbols_cmds_CXX | \
16048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16049 postinstall_cmds | postuninstall_cmds | \
16050 old_postinstall_cmds | old_postuninstall_cmds | \
16051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16052 # Double-quote double-evaled strings.
16053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16062 *'\$0 --fallback-echo"')
16063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16069 cat <<__EOF__ >> "$cfgfile"
16070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16074 # Shell to use when invoking shell scripts.
16077 # Whether or not to build shared libraries.
16078 build_libtool_libs=$enable_shared
16080 # Whether or not to build static libraries.
16081 build_old_libs=$enable_static
16083 # Whether or not to add -lc for building shared libraries.
16084 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16086 # Whether or not to disallow shared libs when runtime libs are static
16087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16089 # Whether or not to optimize for fast installation.
16090 fast_install=$enable_fast_install
16093 host_alias=$host_alias
16097 # The build system.
16098 build_alias=$build_alias
16102 # An echo program that does not interpret backslashes.
16107 AR_FLAGS=$lt_AR_FLAGS
16112 # LTCC compiler flags.
16113 LTCFLAGS=$lt_LTCFLAGS
16115 # A language-specific compiler.
16116 CC=$lt_compiler_CXX
16118 # Is the compiler the GNU C compiler?
16124 # The linker used to build libraries.
16127 # Whether we need hard or soft links.
16130 # A BSD-compatible nm program.
16133 # A symbol stripping program
16136 # Used to examine libraries when file_magic_cmd begins "file"
16137 MAGIC_CMD=$MAGIC_CMD
16139 # Used on cygwin: DLL creation program.
16142 # Used on cygwin: object dumper.
16145 # Used on cygwin: assembler.
16148 # The name of the directory that contains temporary libtool files.
16151 # How to create reloadable object files.
16152 reload_flag=$lt_reload_flag
16153 reload_cmds=$lt_reload_cmds
16155 # How to pass a linker flag through the compiler.
16156 wl=$lt_lt_prog_compiler_wl_CXX
16158 # Object file suffix (normally "o").
16159 objext="$ac_objext"
16161 # Old archive suffix (normally "a").
16164 # Shared library suffix (normally ".so").
16165 shrext_cmds='$shrext_cmds'
16167 # Executable file suffix (normally "").
16170 # Additional compiler flags for building library objects.
16171 pic_flag=$lt_lt_prog_compiler_pic_CXX
16174 # What is the maximum length of a command?
16175 max_cmd_len=$lt_cv_sys_max_cmd_len
16177 # Does compiler simultaneously support -c and -o options?
16178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16180 # Must we lock files when doing compilation?
16181 need_locks=$lt_need_locks
16183 # Do we need the lib prefix for modules?
16184 need_lib_prefix=$need_lib_prefix
16186 # Do we need a version for libraries?
16187 need_version=$need_version
16189 # Whether dlopen is supported.
16190 dlopen_support=$enable_dlopen
16192 # Whether dlopen of programs is supported.
16193 dlopen_self=$enable_dlopen_self
16195 # Whether dlopen of statically linked programs is supported.
16196 dlopen_self_static=$enable_dlopen_self_static
16198 # Compiler flag to prevent dynamic linking.
16199 link_static_flag=$lt_lt_prog_compiler_static_CXX
16201 # Compiler flag to turn off builtin functions.
16202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16204 # Compiler flag to allow reflexive dlopens.
16205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16207 # Compiler flag to generate shared objects directly from archives.
16208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16210 # Compiler flag to generate thread-safe objects.
16211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16213 # Library versioning type.
16214 version_type=$version_type
16216 # Format of library name prefix.
16217 libname_spec=$lt_libname_spec
16219 # List of archive names. First name is the real one, the rest are links.
16220 # The last name is the one that the linker finds with -lNAME.
16221 library_names_spec=$lt_library_names_spec
16223 # The coded name of the library, if different from the real name.
16224 soname_spec=$lt_soname_spec
16226 # Commands used to build and install an old-style archive.
16228 old_archive_cmds=$lt_old_archive_cmds_CXX
16229 old_postinstall_cmds=$lt_old_postinstall_cmds
16230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16232 # Create an old-style archive from a shared archive.
16233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16235 # Create a temporary old-style archive to link instead of a shared archive.
16236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16238 # Commands used to build and install a shared archive.
16239 archive_cmds=$lt_archive_cmds_CXX
16240 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16241 postinstall_cmds=$lt_postinstall_cmds
16242 postuninstall_cmds=$lt_postuninstall_cmds
16244 # Commands used to build a loadable module (assumed same as above if empty)
16245 module_cmds=$lt_module_cmds_CXX
16246 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16248 # Commands to strip libraries.
16249 old_striplib=$lt_old_striplib
16250 striplib=$lt_striplib
16252 # Dependencies to place before the objects being linked to create a
16254 predep_objects=$lt_predep_objects_CXX
16256 # Dependencies to place after the objects being linked to create a
16258 postdep_objects=$lt_postdep_objects_CXX
16260 # Dependencies to place before the objects being linked to create a
16262 predeps=$lt_predeps_CXX
16264 # Dependencies to place after the objects being linked to create a
16266 postdeps=$lt_postdeps_CXX
16268 # The directories searched by this compiler when creating a shared
16270 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16272 # The library search path used internally by the compiler when linking
16273 # a shared library.
16274 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16276 # Method to check whether dependent libraries are shared objects.
16277 deplibs_check_method=$lt_deplibs_check_method
16279 # Command to use when deplibs_check_method == file_magic.
16280 file_magic_cmd=$lt_file_magic_cmd
16282 # Flag that allows shared libraries with undefined symbols to be built.
16283 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16285 # Flag that forces no undefined symbols.
16286 no_undefined_flag=$lt_no_undefined_flag_CXX
16288 # Commands used to finish a libtool library installation in a directory.
16289 finish_cmds=$lt_finish_cmds
16291 # Same as above, but a single script fragment to be evaled but not shown.
16292 finish_eval=$lt_finish_eval
16294 # Take the output of nm and produce a listing of raw symbols and C names.
16295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16297 # Transform the output of nm in a proper C declaration
16298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16300 # Transform the output of nm in a C name address pair
16301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16303 # This is the shared library runtime path variable.
16304 runpath_var=$runpath_var
16306 # This is the shared library path variable.
16307 shlibpath_var=$shlibpath_var
16309 # Is shlibpath searched before the hard-coded library search path?
16310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16312 # How to hardcode a shared library path into an executable.
16313 hardcode_action=$hardcode_action_CXX
16315 # Whether we should hardcode library paths into libraries.
16316 hardcode_into_libs=$hardcode_into_libs
16318 # Flag to hardcode \$libdir into a binary during linking.
16319 # This must work even if \$libdir does not exist.
16320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16322 # If ld is used when linking, flag to hardcode \$libdir into
16323 # a binary during linking. This must work even if \$libdir does
16325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16327 # Whether we need a single -rpath flag with a separated argument.
16328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16331 # resulting binary.
16332 hardcode_direct=$hardcode_direct_CXX
16334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16335 # resulting binary.
16336 hardcode_minus_L=$hardcode_minus_L_CXX
16338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16339 # the resulting binary.
16340 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16342 # Set to yes if building a shared library automatically hardcodes DIR into the library
16343 # and all subsequent libraries and executables linked against it.
16344 hardcode_automatic=$hardcode_automatic_CXX
16346 # Variables whose values should be saved in libtool wrapper scripts and
16347 # restored at relink time.
16348 variables_saved_for_relink="$variables_saved_for_relink"
16350 # Whether libtool must link a program against all its dependency libraries.
16351 link_all_deplibs=$link_all_deplibs_CXX
16353 # Compile-time system search path for libraries
16354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16356 # Run-time system search path for libraries
16357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16359 # Fix the shell variable \$srcfile for the compiler.
16360 fix_srcfile_path=$lt_fix_srcfile_path
16362 # Set to yes if exported symbols are required.
16363 always_export_symbols=$always_export_symbols_CXX
16365 # The commands to list exported symbols.
16366 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16368 # The commands to extract the exported symbol list from a shared archive.
16369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16371 # Symbols that should not be listed in the preloaded symbols.
16372 exclude_expsyms=$lt_exclude_expsyms_CXX
16374 # Symbols that must always be exported.
16375 include_expsyms=$lt_include_expsyms_CXX
16377 # ### END LIBTOOL TAG CONFIG: $tagname
16383 # If there is no Makefile yet, we rely on a make rule to execute
16384 # `config.status --recheck' to rerun these tests and create the
16385 # libtool script then.
16386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16387 if test -f "$ltmain_in"; then
16388 test -f Makefile && make "$ltmain"
16394 ac_cpp='$CPP $CPPFLAGS'
16395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16403 with_gnu_ldcxx=$with_gnu_ld
16404 with_gnu_ld=$lt_save_with_gnu_ld
16405 lt_cv_path_LDCXX=$lt_cv_path_LD
16406 lt_cv_path_LD=$lt_save_path_LD
16407 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16408 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16416 if test -n "$F77" && test "X$F77" != "Xno"; then
16419 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16420 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16424 archive_cmds_need_lc_F77=no
16425 allow_undefined_flag_F77=
16426 always_export_symbols_F77=no
16427 archive_expsym_cmds_F77=
16428 export_dynamic_flag_spec_F77=
16429 hardcode_direct_F77=no
16430 hardcode_libdir_flag_spec_F77=
16431 hardcode_libdir_flag_spec_ld_F77=
16432 hardcode_libdir_separator_F77=
16433 hardcode_minus_L_F77=no
16434 hardcode_automatic_F77=no
16436 module_expsym_cmds_F77=
16437 link_all_deplibs_F77=unknown
16438 old_archive_cmds_F77=$old_archive_cmds
16439 no_undefined_flag_F77=
16440 whole_archive_flag_spec_F77=
16441 enable_shared_with_static_runtimes_F77=no
16443 # Source file extension for f77 test sources.
16446 # Object file extension for compiled f77 test sources.
16450 # Code to be used in simple compile tests
16451 lt_simple_compile_test_code="\
16457 # Code to be used in simple link tests
16458 lt_simple_link_test_code="\
16463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16465 # If no C compiler was specified, use CC.
16468 # If no C compiler flags were specified, use CFLAGS.
16469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16471 # Allow CC to be a program name with arguments.
16475 # save warnings/boilerplate of simple test code
16476 ac_outfile=conftest.$ac_objext
16477 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16478 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16479 _lt_compiler_boilerplate=`cat conftest.err`
16482 ac_outfile=conftest.$ac_objext
16483 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16484 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16485 _lt_linker_boilerplate=`cat conftest.err`
16489 # Allow CC to be a program name with arguments.
16494 for cc_temp in $compiler""; do
16496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16502 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16505 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16506 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16507 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16508 $as_echo "$can_build_shared" >&6; }
16510 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16511 $as_echo_n "checking whether to build shared libraries... " >&6; }
16512 test "$can_build_shared" = "no" && enable_shared=no
16514 # On AIX, shared libraries and static libraries use the same namespace, and
16515 # are all built from PIC.
16518 test "$enable_shared" = yes && enable_static=no
16519 if test -n "$RANLIB"; then
16520 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16521 postinstall_cmds='$RANLIB $lib'
16525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16526 test "$enable_shared" = yes && enable_static=no
16530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16531 $as_echo "$enable_shared" >&6; }
16533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16534 $as_echo_n "checking whether to build static libraries... " >&6; }
16535 # Make sure either enable_shared or enable_static is yes.
16536 test "$enable_shared" = yes || enable_static=yes
16537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16538 $as_echo "$enable_static" >&6; }
16543 lt_prog_compiler_wl_F77=
16544 lt_prog_compiler_pic_F77=
16545 lt_prog_compiler_static_F77=
16547 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16548 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16550 if test "$GCC" = yes; then
16551 lt_prog_compiler_wl_F77='-Wl,'
16552 lt_prog_compiler_static_F77='-static'
16556 # All AIX code is PIC.
16557 if test "$host_cpu" = ia64; then
16558 # AIX 5 now supports IA64 processor
16559 lt_prog_compiler_static_F77='-Bstatic'
16564 # FIXME: we need at least 68020 code to build shared libraries, but
16565 # adding the `-m68020' flag to GCC prevents building anything better,
16567 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16571 # PIC is the default for these OSes.
16574 mingw* | cygwin* | pw32* | os2*)
16575 # This hack is so that the source file can tell whether it is being
16576 # built for inclusion in a dll (and should export symbols for example).
16577 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16578 # (--disable-auto-import) libraries
16579 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16582 darwin* | rhapsody*)
16583 # PIC is the default on this platform
16584 # Common symbols not allowed in MH_DYLIB files
16585 lt_prog_compiler_pic_F77='-fno-common'
16589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16590 # Instead, we relocate shared libraries at runtime.
16594 # Just because we use GCC doesn't mean we suddenly get shared libraries
16595 # on systems that don't support them.
16596 lt_prog_compiler_can_build_shared_F77=no
16601 if test -d /usr/nec; then
16602 lt_prog_compiler_pic_F77=-Kconform_pic
16607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16608 # not for PA HP-UX.
16614 lt_prog_compiler_pic_F77='-fPIC'
16620 lt_prog_compiler_pic_F77='-fPIC'
16624 # PORTME Check for flag to pass linker flags through the system compiler.
16627 lt_prog_compiler_wl_F77='-Wl,'
16628 if test "$host_cpu" = ia64; then
16629 # AIX 5 now supports IA64 processor
16630 lt_prog_compiler_static_F77='-Bstatic'
16632 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16636 # PIC is the default on this platform
16637 # Common symbols not allowed in MH_DYLIB files
16638 case $cc_basename in
16640 lt_prog_compiler_pic_F77='-qnocommon'
16641 lt_prog_compiler_wl_F77='-Wl,'
16646 mingw* | cygwin* | pw32* | os2*)
16647 # This hack is so that the source file can tell whether it is being
16648 # built for inclusion in a dll (and should export symbols for example).
16649 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16652 hpux9* | hpux10* | hpux11*)
16653 lt_prog_compiler_wl_F77='-Wl,'
16654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16655 # not for PA HP-UX.
16661 lt_prog_compiler_pic_F77='+Z'
16664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16665 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16668 irix5* | irix6* | nonstopux*)
16669 lt_prog_compiler_wl_F77='-Wl,'
16670 # PIC (with -KPIC) is the default.
16671 lt_prog_compiler_static_F77='-non_shared'
16675 lt_prog_compiler_pic_F77='-KPIC'
16676 lt_prog_compiler_static_F77='-Bstatic'
16679 linux* | k*bsd*-gnu)
16680 case $cc_basename in
16682 lt_prog_compiler_wl_F77='-Wl,'
16683 lt_prog_compiler_pic_F77='-KPIC'
16684 lt_prog_compiler_static_F77='-static'
16686 pgcc* | pgf77* | pgf90* | pgf95*)
16687 # Portland Group compilers (*not* the Pentium gcc compiler,
16688 # which looks to be a dead project)
16689 lt_prog_compiler_wl_F77='-Wl,'
16690 lt_prog_compiler_pic_F77='-fpic'
16691 lt_prog_compiler_static_F77='-Bstatic'
16694 lt_prog_compiler_wl_F77='-Wl,'
16695 # All Alpha code is PIC.
16696 lt_prog_compiler_static_F77='-non_shared'
16699 case `$CC -V 2>&1 | sed 5q` in
16702 lt_prog_compiler_pic_F77='-KPIC'
16703 lt_prog_compiler_static_F77='-Bstatic'
16704 lt_prog_compiler_wl_F77='-Wl,'
16707 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16708 lt_prog_compiler_pic_F77='-KPIC'
16709 lt_prog_compiler_static_F77='-Bstatic'
16710 lt_prog_compiler_wl_F77=''
16717 osf3* | osf4* | osf5*)
16718 lt_prog_compiler_wl_F77='-Wl,'
16719 # All OSF/1 code is PIC.
16720 lt_prog_compiler_static_F77='-non_shared'
16724 lt_prog_compiler_static_F77='-non_shared'
16728 lt_prog_compiler_pic_F77='-KPIC'
16729 lt_prog_compiler_static_F77='-Bstatic'
16730 case $cc_basename in
16731 f77* | f90* | f95*)
16732 lt_prog_compiler_wl_F77='-Qoption ld ';;
16734 lt_prog_compiler_wl_F77='-Wl,';;
16739 lt_prog_compiler_wl_F77='-Qoption ld '
16740 lt_prog_compiler_pic_F77='-PIC'
16741 lt_prog_compiler_static_F77='-Bstatic'
16744 sysv4 | sysv4.2uw2* | sysv4.3*)
16745 lt_prog_compiler_wl_F77='-Wl,'
16746 lt_prog_compiler_pic_F77='-KPIC'
16747 lt_prog_compiler_static_F77='-Bstatic'
16751 if test -d /usr/nec ;then
16752 lt_prog_compiler_pic_F77='-Kconform_pic'
16753 lt_prog_compiler_static_F77='-Bstatic'
16757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16758 lt_prog_compiler_wl_F77='-Wl,'
16759 lt_prog_compiler_pic_F77='-KPIC'
16760 lt_prog_compiler_static_F77='-Bstatic'
16764 lt_prog_compiler_wl_F77='-Wl,'
16765 lt_prog_compiler_can_build_shared_F77=no
16769 lt_prog_compiler_pic_F77='-pic'
16770 lt_prog_compiler_static_F77='-Bstatic'
16774 lt_prog_compiler_can_build_shared_F77=no
16779 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16780 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
16783 # Check to make sure the PIC flag actually works.
16785 if test -n "$lt_prog_compiler_pic_F77"; then
16787 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16788 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16789 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16790 $as_echo_n "(cached) " >&6
16792 lt_cv_prog_compiler_pic_works_F77=no
16793 ac_outfile=conftest.$ac_objext
16794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16795 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16796 # Insert the option either (1) after the last *FLAGS variable, or
16797 # (2) before a word containing "conftest.", or (3) at the end.
16798 # Note that $ac_compile itself does not contain backslashes and begins
16799 # with a dollar sign (not a hyphen), so the echo should work correctly.
16800 # The option is referenced via a variable to avoid confusing sed.
16801 lt_compile=`echo "$ac_compile" | $SED \
16802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16804 -e 's:$: $lt_compiler_flag:'`
16805 (eval echo "\"\$as_me:16805: $lt_compile\"" >&5)
16806 (eval "$lt_compile" 2>conftest.err)
16808 cat conftest.err >&5
16809 echo "$as_me:16809: \$? = $ac_status" >&5
16810 if (exit $ac_status) && test -s "$ac_outfile"; then
16811 # The compiler can only warn and ignore the option if not recognized
16812 # So say no if there are warnings other than the usual output.
16813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16816 lt_cv_prog_compiler_pic_works_F77=yes
16822 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16823 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16825 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16826 case $lt_prog_compiler_pic_F77 in
16828 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16831 lt_prog_compiler_pic_F77=
16832 lt_prog_compiler_can_build_shared_F77=no
16837 # For platforms which do not support PIC, -DPIC is meaningless:
16839 lt_prog_compiler_pic_F77=
16842 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16847 # Check to make sure the static flag actually works.
16849 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16850 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16852 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16853 $as_echo_n "(cached) " >&6
16855 lt_cv_prog_compiler_static_works_F77=no
16856 save_LDFLAGS="$LDFLAGS"
16857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860 # The linker can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 if test -s conftest.err; then
16863 # Append any errors to the config.log.
16864 cat conftest.err 1>&5
16865 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867 if diff conftest.exp conftest.er2 >/dev/null; then
16868 lt_cv_prog_compiler_static_works_F77=yes
16871 lt_cv_prog_compiler_static_works_F77=yes
16875 LDFLAGS="$save_LDFLAGS"
16878 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16879 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16881 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16884 lt_prog_compiler_static_F77=
16888 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16890 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16891 $as_echo_n "(cached) " >&6
16893 lt_cv_prog_compiler_c_o_F77=no
16894 $rm -r conftest 2>/dev/null
16898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16900 lt_compiler_flag="-o out/conftest2.$ac_objext"
16901 # Insert the option either (1) after the last *FLAGS variable, or
16902 # (2) before a word containing "conftest.", or (3) at the end.
16903 # Note that $ac_compile itself does not contain backslashes and begins
16904 # with a dollar sign (not a hyphen), so the echo should work correctly.
16905 lt_compile=`echo "$ac_compile" | $SED \
16906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16908 -e 's:$: $lt_compiler_flag:'`
16909 (eval echo "\"\$as_me:16909: $lt_compile\"" >&5)
16910 (eval "$lt_compile" 2>out/conftest.err)
16912 cat out/conftest.err >&5
16913 echo "$as_me:16913: \$? = $ac_status" >&5
16914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16916 # The compiler can only warn and ignore the option if not recognized
16917 # So say no if there are warnings
16918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16921 lt_cv_prog_compiler_c_o_F77=yes
16926 # SGI C++ compiler will create directory out/ii_files/ for
16927 # template instantiation
16928 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16929 $rm out/* && rmdir out
16935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16936 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16939 hard_links="nottested"
16940 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16941 # do not overwrite the value of need_locks provided by the user
16942 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16943 $as_echo_n "checking if we can lock with hard links... " >&6; }
16946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16948 ln conftest.a conftest.b 2>&5 || hard_links=no
16949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16950 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16951 $as_echo "$hard_links" >&6; }
16952 if test "$hard_links" = no; then
16953 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16954 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16961 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16965 allow_undefined_flag_F77=
16966 enable_shared_with_static_runtimes_F77=no
16968 archive_expsym_cmds_F77=
16969 old_archive_From_new_cmds_F77=
16970 old_archive_from_expsyms_cmds_F77=
16971 export_dynamic_flag_spec_F77=
16972 whole_archive_flag_spec_F77=
16973 thread_safe_flag_spec_F77=
16974 hardcode_libdir_flag_spec_F77=
16975 hardcode_libdir_flag_spec_ld_F77=
16976 hardcode_libdir_separator_F77=
16977 hardcode_direct_F77=no
16978 hardcode_minus_L_F77=no
16979 hardcode_shlibpath_var_F77=unsupported
16980 link_all_deplibs_F77=unknown
16981 hardcode_automatic_F77=no
16983 module_expsym_cmds_F77=
16984 always_export_symbols_F77=no
16985 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16986 # include_expsyms should be a list of space-separated symbols to be *always*
16987 # included in the symbol list
16988 include_expsyms_F77=
16989 # exclude_expsyms can be an extended regexp of symbols to exclude
16990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16992 # as well as any symbol that contains `d'.
16993 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16995 # platforms (ab)use it in PIC code, but their linkers get confused if
16996 # the symbol is explicitly referenced. Since portable code cannot
16997 # rely on this symbol name, it's probably fine to never include it in
16998 # preloaded symbol tables.
16999 # Exclude shared library initialization/finalization symbols.
17000 extract_expsyms_cmds=
17001 # Just being paranoid about ensuring that cc_basename is set.
17002 for cc_temp in $compiler""; do
17004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17010 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17013 cygwin* | mingw* | pw32*)
17014 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17015 # When not using gcc, we currently assume that we are using
17016 # Microsoft Visual C++.
17017 if test "$GCC" != yes; then
17022 # we just hope/assume this is gcc and not c89 (= MSVC++)
17031 if test "$with_gnu_ld" = yes; then
17032 # If archive_cmds runs LD, not CC, wlarc should be empty
17035 # Set some defaults for GNU ld with shared library support. These
17036 # are reset later if shared libraries are not supported. Putting them
17037 # here allows them to be overridden if necessary.
17038 runpath_var=LD_RUN_PATH
17039 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17040 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17041 # ancient GNU ld didn't support --whole-archive et. al.
17042 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17043 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17045 whole_archive_flag_spec_F77=
17047 supports_anon_versioning=no
17048 case `$LD -v 2>/dev/null` in
17049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17052 *\ 2.11.*) ;; # other 2.11 versions
17053 *) supports_anon_versioning=yes ;;
17056 # See if GNU ld supports shared libraries.
17059 # On AIX/PPC, the GNU linker is very broken
17060 if test "$host_cpu" != ia64; then
17064 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17065 *** to be unable to reliably create shared libraries on AIX.
17066 *** Therefore, libtool is disabling shared libraries support. If you
17067 *** really care for shared libraries, you may want to modify your PATH
17068 *** so that a non-GNU linker is found, and then restart.
17075 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)'
17076 hardcode_libdir_flag_spec_F77='-L$libdir'
17077 hardcode_minus_L_F77=yes
17079 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17080 # that the semantics of dynamic libraries on AmigaOS, at least up
17081 # to version 4, is to share data among multiple programs linked
17082 # with the same dynamic library. Since this doesn't match the
17083 # behavior of shared libraries on other platforms, we can't use
17089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17090 allow_undefined_flag_F77=unsupported
17091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17092 # support --undefined. This deserves some investigation. FIXME
17093 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 cygwin* | mingw* | pw32*)
17100 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17101 # as there is no search path for DLLs.
17102 hardcode_libdir_flag_spec_F77='-L$libdir'
17103 allow_undefined_flag_F77=unsupported
17104 always_export_symbols_F77=no
17105 enable_shared_with_static_runtimes_F77=yes
17106 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17110 # If the export-symbols file already is a .def file (1st line
17111 # is EXPORTS), use it as is; otherwise, prepend...
17112 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17113 cp $export_symbols $output_objdir/$soname.def;
17115 echo EXPORTS > $output_objdir/$soname.def;
17116 cat $export_symbols >> $output_objdir/$soname.def;
17118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17125 hardcode_direct_F77=no
17126 hardcode_shlibpath_var_F77=no
17127 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17128 export_dynamic_flag_spec_F77='${wl}-E'
17129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17130 # Instead, shared libraries are loaded at an image base (0x10000000 by
17131 # default) and relocated if they conflict, which is a slow very memory
17132 # consuming and fragmenting process. To avoid this, we pick a random,
17133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17134 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17135 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'
17136 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'
17139 gnu* | linux* | k*bsd*-gnu)
17140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17142 case $cc_basename,$host_cpu in
17143 pgcc*) # Portland Group C compiler
17144 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'
17145 tmp_addflag=' $pic_flag'
17147 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17148 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'
17149 tmp_addflag=' $pic_flag -Mnomain' ;;
17150 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17151 tmp_addflag=' -i_dynamic' ;;
17152 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17153 tmp_addflag=' -i_dynamic -nofor_main' ;;
17154 ifc* | ifort*) # Intel Fortran compiler
17155 tmp_addflag=' -nofor_main' ;;
17157 case `$CC -V 2>&1 | sed 5q` in
17158 *Sun\ C*) # Sun C 5.9
17159 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'
17160 tmp_sharedflag='-G' ;;
17161 *Sun\ F*) # Sun Fortran 8.3
17162 tmp_sharedflag='-G' ;;
17164 tmp_sharedflag='-shared' ;;
17166 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17168 if test $supports_anon_versioning = yes; then
17169 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17171 $echo "local: *; };" >> $output_objdir/$libname.ver~
17172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17181 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17190 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17195 *** create shared libraries on Solaris systems. Therefore, libtool
17196 *** is disabling shared libraries support. We urge you to upgrade GNU
17197 *** binutils to release 2.9.1 or newer. Another option is to modify
17198 *** your PATH or compiler configuration so that the native linker is
17199 *** used, and then restart.
17202 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17203 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17204 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17211 case `$LD -v 2>&1` in
17212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17217 *** reliably create shared libraries on SCO systems. Therefore, libtool
17218 *** is disabling shared libraries support. We urge you to upgrade GNU
17219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17220 *** your PATH or compiler configuration so that the native linker is
17221 *** used, and then restart.
17226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17227 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17228 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17229 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17238 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17240 hardcode_direct_F77=yes
17241 hardcode_shlibpath_var_F77=no
17245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17246 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17247 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17254 if test "$ld_shlibs_F77" = no; then
17256 hardcode_libdir_flag_spec_F77=
17257 export_dynamic_flag_spec_F77=
17258 whole_archive_flag_spec_F77=
17261 # PORTME fill in a description of your system's linker (not GNU ld)
17264 allow_undefined_flag_F77=unsupported
17265 always_export_symbols_F77=yes
17266 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'
17267 # Note: this linker hardcodes the directories in LIBPATH if there
17268 # are no directories specified by -L.
17269 hardcode_minus_L_F77=yes
17270 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17271 # Neither direct hardcoding nor static linking is supported with a
17273 hardcode_direct_F77=unsupported
17278 if test "$host_cpu" = ia64; then
17279 # On IA64, the linker does run time linking by default, so we don't
17280 # have to do anything special.
17281 aix_use_runtimelinking=no
17282 exp_sym_flag='-Bexport'
17285 # If we're using GNU nm, then we don't want the "-C" option.
17286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17287 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17288 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'
17290 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'
17292 aix_use_runtimelinking=no
17294 # Test if we are trying to use run time linking or normal
17295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17296 # need to do runtime linking.
17297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17298 for ld_flag in $LDFLAGS; do
17299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17300 aix_use_runtimelinking=yes
17307 exp_sym_flag='-bexport'
17308 no_entry_flag='-bnoentry'
17311 # When large executables or shared objects are built, AIX ld can
17312 # have problems creating the table of contents. If linking a library
17313 # or program results in "error TOC overflow" add -mminimal-toc to
17314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17317 archive_cmds_F77=''
17318 hardcode_direct_F77=yes
17319 hardcode_libdir_separator_F77=':'
17320 link_all_deplibs_F77=yes
17322 if test "$GCC" = yes; then
17323 case $host_os in aix4.[012]|aix4.[012].*)
17324 # We only want to do this on AIX 4.2 and lower, the check
17325 # below for broken collect2 doesn't work under 4.3+
17326 collect2name=`${CC} -print-prog-name=collect2`
17327 if test -f "$collect2name" && \
17328 strings "$collect2name" | grep resolve_lib_name >/dev/null
17330 # We have reworked collect2
17333 # We have old collect2
17334 hardcode_direct_F77=unsupported
17335 # It fails to find uninstalled libraries when the uninstalled
17336 # path is not listed in the libpath. Setting hardcode_minus_L
17337 # to unsupported forces relinking
17338 hardcode_minus_L_F77=yes
17339 hardcode_libdir_flag_spec_F77='-L$libdir'
17340 hardcode_libdir_separator_F77=
17344 shared_flag='-shared'
17345 if test "$aix_use_runtimelinking" = yes; then
17346 shared_flag="$shared_flag "'${wl}-G'
17350 if test "$host_cpu" = ia64; then
17351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17352 # chokes on -Wl,-G. The following line is correct:
17355 if test "$aix_use_runtimelinking" = yes; then
17356 shared_flag='${wl}-G'
17358 shared_flag='${wl}-bM:SRE'
17363 # It seems that -bexpall does not export symbols beginning with
17364 # underscore (_), so it is better to generate a list of symbols to export.
17365 always_export_symbols_F77=yes
17366 if test "$aix_use_runtimelinking" = yes; then
17367 # Warning - without using the other runtime loading flags (-brtl),
17368 # -berok will link without error, but may produce a broken library.
17369 allow_undefined_flag_F77='-berok'
17370 # Determine the default libpath from the value encoded in an empty executable.
17371 cat >conftest.$ac_ext <<_ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17383 $as_echo "$ac_try_echo") >&5
17384 (eval "$ac_link") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_f77_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext && {
17394 test "$cross_compiling" = yes ||
17395 $as_test_x conftest$ac_exeext
17398 lt_aix_libpath_sed='
17399 /Import File Strings/,/^$/ {
17405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17406 # Check for a 64-bit object if we didn't find anything.
17407 if test -z "$aix_libpath"; then
17408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17411 $as_echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17417 rm -rf conftest.dSYM
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17422 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17423 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"
17425 if test "$host_cpu" = ia64; then
17426 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17427 allow_undefined_flag_F77="-z nodefs"
17428 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"
17430 # Determine the default libpath from the value encoded in an empty executable.
17431 cat >conftest.$ac_ext <<_ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17443 $as_echo "$ac_try_echo") >&5
17444 (eval "$ac_link") 2>conftest.er1
17446 grep -v '^ *+' conftest.er1 >conftest.err
17448 cat conftest.err >&5
17449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && {
17451 test -z "$ac_f77_werror_flag" ||
17452 test ! -s conftest.err
17453 } && test -s conftest$ac_exeext && {
17454 test "$cross_compiling" = yes ||
17455 $as_test_x conftest$ac_exeext
17458 lt_aix_libpath_sed='
17459 /Import File Strings/,/^$/ {
17465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17466 # Check for a 64-bit object if we didn't find anything.
17467 if test -z "$aix_libpath"; then
17468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17477 rm -rf conftest.dSYM
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479 conftest$ac_exeext conftest.$ac_ext
17480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17483 # Warning - without using the other run time loading flags,
17484 # -berok will link without error, but may produce a broken library.
17485 no_undefined_flag_F77=' ${wl}-bernotok'
17486 allow_undefined_flag_F77=' ${wl}-berok'
17487 # Exported symbols can be pulled into shared objects from archives
17488 whole_archive_flag_spec_F77='$convenience'
17489 archive_cmds_need_lc_F77=yes
17490 # This is similar to how AIX traditionally builds its shared libraries.
17491 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'
17497 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)'
17498 hardcode_libdir_flag_spec_F77='-L$libdir'
17499 hardcode_minus_L_F77=yes
17500 # see comment about different semantics on the GNU ld section
17505 export_dynamic_flag_spec_F77=-rdynamic
17508 cygwin* | mingw* | pw32*)
17509 # When not using gcc, we currently assume that we are using
17510 # Microsoft Visual C++.
17511 # hardcode_libdir_flag_spec is actually meaningless, as there is
17512 # no search path for DLLs.
17513 hardcode_libdir_flag_spec_F77=' '
17514 allow_undefined_flag_F77=unsupported
17515 # Tell ltmain to make .lib files, not .a files.
17517 # Tell ltmain to make .dll files, not .so files.
17519 # FIXME: Setting linknames here is a bad hack.
17520 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17521 # The linker will automatically build a .lib file if we build a DLL.
17522 old_archive_From_new_cmds_F77='true'
17523 # FIXME: Should let the user specify the lib program.
17524 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17525 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17526 enable_shared_with_static_runtimes_F77=yes
17529 darwin* | rhapsody*)
17531 rhapsody* | darwin1.[012])
17532 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17536 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17538 case ${MACOSX_DEPLOYMENT_TARGET} in
17540 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17543 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17549 archive_cmds_need_lc_F77=no
17550 hardcode_direct_F77=no
17551 hardcode_automatic_F77=yes
17552 hardcode_shlibpath_var_F77=unsupported
17553 whole_archive_flag_spec_F77=''
17554 link_all_deplibs_F77=yes
17555 if test "$GCC" = yes ; then
17556 output_verbose_link_cmd='echo'
17557 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17558 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17559 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17560 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17562 case $cc_basename in
17564 output_verbose_link_cmd='echo'
17565 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17566 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17568 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}'
17569 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}'
17579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17580 hardcode_libdir_flag_spec_F77='-L$libdir'
17581 hardcode_shlibpath_var_F77=no
17588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17589 # support. Future versions do this automatically, but an explicit c++rt0.o
17590 # does not break anything, and helps significantly (at the cost of a little
17593 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17594 hardcode_libdir_flag_spec_F77='-R$libdir'
17595 hardcode_direct_F77=yes
17596 hardcode_shlibpath_var_F77=no
17599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17602 hardcode_direct_F77=yes
17603 hardcode_minus_L_F77=yes
17604 hardcode_shlibpath_var_F77=no
17607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17608 freebsd* | dragonfly*)
17609 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17610 hardcode_libdir_flag_spec_F77='-R$libdir'
17611 hardcode_direct_F77=yes
17612 hardcode_shlibpath_var_F77=no
17616 if test "$GCC" = yes; then
17617 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'
17619 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'
17621 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17622 hardcode_libdir_separator_F77=:
17623 hardcode_direct_F77=yes
17625 # hardcode_minus_L: Not really in the search PATH,
17626 # but as the default location of the library.
17627 hardcode_minus_L_F77=yes
17628 export_dynamic_flag_spec_F77='${wl}-E'
17632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17633 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17635 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17637 if test "$with_gnu_ld" = no; then
17638 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17639 hardcode_libdir_separator_F77=:
17641 hardcode_direct_F77=yes
17642 export_dynamic_flag_spec_F77='${wl}-E'
17644 # hardcode_minus_L: Not really in the search PATH,
17645 # but as the default location of the library.
17646 hardcode_minus_L_F77=yes
17651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17654 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17660 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17666 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17672 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17676 if test "$with_gnu_ld" = no; then
17677 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17678 hardcode_libdir_separator_F77=:
17682 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17683 hardcode_direct_F77=no
17684 hardcode_shlibpath_var_F77=no
17687 hardcode_direct_F77=yes
17688 export_dynamic_flag_spec_F77='${wl}-E'
17690 # hardcode_minus_L: Not really in the search PATH,
17691 # but as the default location of the library.
17692 hardcode_minus_L_F77=yes
17698 irix5* | irix6* | nonstopux*)
17699 if test "$GCC" = yes; then
17700 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'
17702 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'
17703 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17705 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17706 hardcode_libdir_separator_F77=:
17707 link_all_deplibs_F77=yes
17711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17712 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17714 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17716 hardcode_libdir_flag_spec_F77='-R$libdir'
17717 hardcode_direct_F77=yes
17718 hardcode_shlibpath_var_F77=no
17722 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_direct_F77=yes
17724 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17725 hardcode_libdir_separator_F77=:
17726 hardcode_shlibpath_var_F77=no
17730 if test -f /usr/libexec/ld.so; then
17731 hardcode_direct_F77=yes
17732 hardcode_shlibpath_var_F77=no
17733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17737 export_dynamic_flag_spec_F77='${wl}-E'
17740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17741 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec_F77='-R$libdir'
17745 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17756 hardcode_libdir_flag_spec_F77='-L$libdir'
17757 hardcode_minus_L_F77=yes
17758 allow_undefined_flag_F77=unsupported
17759 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'
17760 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17764 if test "$GCC" = yes; then
17765 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17766 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'
17768 allow_undefined_flag_F77=' -expect_unresolved \*'
17769 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'
17771 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17772 hardcode_libdir_separator_F77=:
17775 osf4* | osf5*) # as osf3* with the addition of -msym flag
17776 if test "$GCC" = yes; then
17777 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17778 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'
17779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17781 allow_undefined_flag_F77=' -expect_unresolved \*'
17782 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'
17783 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~
17784 $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'
17786 # Both c and cxx compiler support -rpath directly
17787 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17789 hardcode_libdir_separator_F77=:
17793 no_undefined_flag_F77=' -z text'
17794 if test "$GCC" = yes; then
17796 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17797 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17801 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17802 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17805 hardcode_libdir_flag_spec_F77='-R$libdir'
17806 hardcode_shlibpath_var_F77=no
17808 solaris2.[0-5] | solaris2.[0-5].*) ;;
17810 # The compiler driver will combine and reorder linker options,
17811 # but understands `-z linker_flag'. GCC discards it without `$wl',
17812 # but is careful enough not to reorder.
17813 # Supported since Solaris 2.6 (maybe 2.5.1?)
17814 if test "$GCC" = yes; then
17815 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17817 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17821 link_all_deplibs_F77=yes
17825 if test "x$host_vendor" = xsequent; then
17826 # Use $CC to link under sequent, because it throws in some extra .o
17827 # files that make .init and .fini sections work.
17828 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17830 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17832 hardcode_libdir_flag_spec_F77='-L$libdir'
17833 hardcode_direct_F77=yes
17834 hardcode_minus_L_F77=yes
17835 hardcode_shlibpath_var_F77=no
17839 case $host_vendor in
17841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842 hardcode_direct_F77=yes # is this really true???
17845 ## LD is ld it makes a PLAMLIB
17846 ## CC just makes a GrossModule.
17847 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17848 reload_cmds_F77='$CC -r -o $output$reload_objs'
17849 hardcode_direct_F77=no
17852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17853 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17856 runpath_var='LD_RUN_PATH'
17857 hardcode_shlibpath_var_F77=no
17861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17862 hardcode_shlibpath_var_F77=no
17863 export_dynamic_flag_spec_F77='-Bexport'
17867 if test -d /usr/nec; then
17868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17869 hardcode_shlibpath_var_F77=no
17870 runpath_var=LD_RUN_PATH
17871 hardcode_runpath_var=yes
17876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17877 no_undefined_flag_F77='${wl}-z,text'
17878 archive_cmds_need_lc_F77=no
17879 hardcode_shlibpath_var_F77=no
17880 runpath_var='LD_RUN_PATH'
17882 if test "$GCC" = yes; then
17883 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17891 sysv5* | sco3.2v5* | sco5v6*)
17892 # Note: We can NOT use -z defs as we might desire, because we do not
17893 # link with -lc, and that would cause any symbols used from libc to
17894 # always be unresolved, which means just about no library would
17895 # ever link correctly. If we're not using GNU ld we use -z text
17896 # though, which does catch some bad symbols but isn't as heavy-handed
17898 no_undefined_flag_F77='${wl}-z,text'
17899 allow_undefined_flag_F77='${wl}-z,nodefs'
17900 archive_cmds_need_lc_F77=no
17901 hardcode_shlibpath_var_F77=no
17902 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17903 hardcode_libdir_separator_F77=':'
17904 link_all_deplibs_F77=yes
17905 export_dynamic_flag_spec_F77='${wl}-Bexport'
17906 runpath_var='LD_RUN_PATH'
17908 if test "$GCC" = yes; then
17909 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17910 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17912 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17913 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17919 hardcode_libdir_flag_spec_F77='-L$libdir'
17920 hardcode_shlibpath_var_F77=no
17929 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17930 $as_echo "$ld_shlibs_F77" >&6; }
17931 test "$ld_shlibs_F77" = no && can_build_shared=no
17934 # Do we need to explicitly link libc?
17936 case "x$archive_cmds_need_lc_F77" in
17938 # Assume -lc should be added
17939 archive_cmds_need_lc_F77=yes
17941 if test "$enable_shared" = yes && test "$GCC" = yes; then
17942 case $archive_cmds_F77 in
17944 # FIXME: we may have to deal with multi-command sequences.
17947 # Test whether the compiler implicitly links with -lc since on some
17948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17949 # to ld, don't add -lc before -lgcc.
17950 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956 (eval $ac_compile) 2>&5
17958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } 2>conftest.err; then
17962 libobjs=conftest.$ac_objext
17964 wl=$lt_prog_compiler_wl_F77
17965 pic_flag=$lt_prog_compiler_pic_F77
17971 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17972 allow_undefined_flag_F77=
17973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17974 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }
17979 archive_cmds_need_lc_F77=no
17981 archive_cmds_need_lc_F77=yes
17983 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17985 cat conftest.err 1>&5
17988 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17989 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17996 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17998 library_names_spec=
17999 libname_spec='lib$name'
18003 postuninstall_cmds=
18007 shlibpath_overrides_runpath=unknown
18009 dynamic_linker="$host_os ld.so"
18010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18012 need_lib_prefix=unknown
18013 hardcode_into_libs=no
18015 # when you set need_version to no, make sure it does not cause -set_version
18016 # flags to be left without arguments
18017 need_version=unknown
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18023 shlibpath_var=LIBPATH
18025 # AIX 3 has no versioning support, so we append a major version to the name.
18026 soname_spec='${libname}${release}${shared_ext}$major'
18033 hardcode_into_libs=yes
18034 if test "$host_cpu" = ia64; then
18035 # AIX 5 supports IA64
18036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18037 shlibpath_var=LD_LIBRARY_PATH
18039 # With GCC up to 2.95.x, collect2 would create an import file
18040 # for dependence libraries. The import file would start with
18041 # the line `#! .'. This would cause the generated library to
18042 # depend on `.', always an invalid library. This was fixed in
18043 # development snapshots of GCC prior to 3.0.
18045 aix4 | aix4.[01] | aix4.[01].*)
18046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18048 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18051 can_build_shared=no
18055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18056 # soname into executable. Probably we can add versioning support to
18057 # collect2, so additional links can be useful in future.
18058 if test "$aix_use_runtimelinking" = yes; then
18059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18060 # instead of lib<name>.a to let people know that these are not
18061 # typical AIX shared libraries.
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 # We preserve .a as extension for shared libraries through AIX4.2
18065 # and later when we are not doing run time linking.
18066 library_names_spec='${libname}${release}.a $libname.a'
18067 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LIBPATH
18074 library_names_spec='$libname.ixlibrary $libname.a'
18075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18076 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'
18080 library_names_spec='${libname}${shared_ext}'
18081 dynamic_linker="$host_os ld.so"
18082 shlibpath_var=LIBRARY_PATH
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18094 # the default ld.so.conf also contains /usr/contrib/lib and
18095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18096 # libtool to hard-code these into programs
18099 cygwin* | mingw* | pw32*)
18100 version_type=windows
18105 case $GCC,$host_os in
18106 yes,cygwin* | yes,mingw* | yes,pw32*)
18107 library_names_spec='$libname.dll.a'
18108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18109 postinstall_cmds='base_file=`basename \${file}`~
18110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18111 dldir=$destdir/`dirname \$dlpath`~
18112 test -d \$dldir || mkdir -p \$dldir~
18113 $install_prog $dir/$dlname \$dldir/$dlname~
18114 chmod a+x \$dldir/$dlname'
18115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18116 dlpath=$dir/\$dldll~
18118 shlibpath_overrides_runpath=yes
18122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18127 # MinGW DLLs use traditional 'lib' prefix
18128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18130 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18131 # It is most probably a Windows format PATH printed by
18132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18133 # path with ; separators, and with drive letters. We can handle the
18134 # drive letters (cygwin fileutils understands them), so leave them,
18135 # especially as we might pass files found there to a mingw objdump,
18136 # which wouldn't understand a cygwinified path. Ahh.
18137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18143 # pw32 DLLs use 'pw' prefix rather than 'lib'
18144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18153 dynamic_linker='Win32 ld.exe'
18154 # FIXME: first we should search . and the directory the executable is in
18158 darwin* | rhapsody*)
18159 dynamic_linker="$host_os dyld"
18160 version_type=darwin
18163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18164 soname_spec='${libname}${release}${major}$shared_ext'
18165 shlibpath_overrides_runpath=yes
18166 shlibpath_var=DYLD_LIBRARY_PATH
18167 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 shlibpath_var=LD_LIBRARY_PATH
18185 freebsd* | dragonfly*)
18186 # DragonFly does not have aout. When/if they implement a new
18187 # versioning mechanism, adjust this.
18188 if test -x /usr/bin/objformat; then
18189 objformat=`/usr/bin/objformat`
18192 freebsd[123]*) objformat=aout ;;
18193 *) objformat=elf ;;
18196 version_type=freebsd-$objformat
18197 case $version_type in
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18208 shlibpath_var=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath=yes
18213 freebsd3.[01]* | freebsdelf3.[01]*)
18214 shlibpath_overrides_runpath=yes
18215 hardcode_into_libs=yes
18217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18219 shlibpath_overrides_runpath=no
18220 hardcode_into_libs=yes
18222 *) # from 4.6 on, and DragonFly
18223 shlibpath_overrides_runpath=yes
18224 hardcode_into_libs=yes
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 hardcode_into_libs=yes
18239 hpux9* | hpux10* | hpux11*)
18240 # Give a soname corresponding to the major version so that dld.sl refuses to
18241 # link against other versions.
18248 hardcode_into_libs=yes
18249 dynamic_linker="$host_os dld.so"
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 if test "X$HPUX_IA64_MODE" = X32; then
18255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18263 hardcode_into_libs=yes
18264 dynamic_linker="$host_os dld.sl"
18265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18274 dynamic_linker="$host_os dld.sl"
18275 shlibpath_var=SHLIB_PATH
18276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18281 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18282 postinstall_cmds='chmod 555 $lib'
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18290 soname_spec='${libname}${release}${shared_ext}$major'
18291 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=no
18294 hardcode_into_libs=yes
18297 irix5* | irix6* | nonstopux*)
18299 nonstopux*) version_type=nonstopux ;;
18301 if test "$lt_cv_prog_gnu_ld" = yes; then
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18312 irix5* | nonstopux*)
18313 libsuff= shlibsuff=
18316 case $LD in # libtool.m4 will add one of these switches to LD
18317 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18318 libsuff= shlibsuff= libmagic=32-bit;;
18319 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18320 libsuff=32 shlibsuff=N32 libmagic=N32;;
18321 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18322 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18323 *) libsuff= shlibsuff= libmagic=never-match;;
18327 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18328 shlibpath_overrides_runpath=no
18329 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18330 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18331 hardcode_into_libs=yes
18334 # No shared lib support for Linux oldld, aout, or coff.
18335 linux*oldld* | linux*aout* | linux*coff*)
18339 # This must be Linux ELF.
18340 linux* | k*bsd*-gnu)
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18347 shlibpath_var=LD_LIBRARY_PATH
18348 shlibpath_overrides_runpath=no
18349 # This implies no fast_install, which is unacceptable.
18350 # Some rework will be needed to allow for fast_install
18351 # before this can be enabled.
18352 hardcode_into_libs=yes
18353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18356 # Append ld.so.conf contents to the search path
18357 if test -f /etc/ld.so.conf; then
18358 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' ' '`
18359 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18362 # We used to test for /lib/ld.so.1 and disable shared libraries on
18363 # powerpc, because MkLinux only supported shared libraries with the
18364 # GNU dynamic linker. Since this was broken with cross compilers,
18365 # most powerpc-linux boxes support dynamic linking these days and
18366 # people can always --disable-shared, the test was removed, and we
18367 # assume the GNU/Linux dynamic linker is in use.
18368 dynamic_linker='GNU/Linux ld.so'
18375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18378 dynamic_linker='NetBSD (a.out) ld.so'
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18381 soname_spec='${libname}${release}${shared_ext}$major'
18382 dynamic_linker='NetBSD ld.elf_so'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=yes
18386 hardcode_into_libs=yes
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath=yes
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 shlibpath_var=LD_LIBRARY_PATH
18403 shlibpath_overrides_runpath=yes
18408 sys_lib_dlsearch_path_spec="/usr/lib"
18410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18413 *) need_version=no ;;
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18420 openbsd2.[89] | openbsd2.[89].*)
18421 shlibpath_overrides_runpath=no
18424 shlibpath_overrides_runpath=yes
18428 shlibpath_overrides_runpath=yes
18433 libname_spec='$name'
18436 library_names_spec='$libname${shared_ext} $libname.a'
18437 dynamic_linker='OS/2 ld.exe'
18438 shlibpath_var=LIBPATH
18441 osf3* | osf4* | osf5*)
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18461 soname_spec='${libname}${release}${shared_ext}$major'
18462 shlibpath_var=LD_LIBRARY_PATH
18463 shlibpath_overrides_runpath=yes
18464 hardcode_into_libs=yes
18465 # ldd complains unless libraries are executable
18466 postinstall_cmds='chmod +x $lib'
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=yes
18475 if test "$with_gnu_ld" = yes; then
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 case $host_vendor in
18488 shlibpath_overrides_runpath=no
18490 export_dynamic_flag_spec='${wl}-Blargedynsym'
18491 runpath_var=LD_RUN_PATH
18499 shlibpath_overrides_runpath=no
18500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18506 if test -d /usr/nec ;then
18508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18509 soname_spec='$libname${shared_ext}.$major'
18510 shlibpath_var=LD_LIBRARY_PATH
18514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18515 version_type=freebsd-elf
18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 hardcode_into_libs=yes
18522 if test "$with_gnu_ld" = yes; then
18523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18524 shlibpath_overrides_runpath=no
18526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18527 shlibpath_overrides_runpath=yes
18530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18534 sys_lib_dlsearch_path_spec='/usr/lib'
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18548 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18549 $as_echo "$dynamic_linker" >&6; }
18550 test "$dynamic_linker" = no && can_build_shared=no
18552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18553 $as_echo_n "(cached) " >&6
18555 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18560 $as_echo_n "(cached) " >&6
18562 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18568 if test "$GCC" = yes; then
18569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18572 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18573 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18574 hardcode_action_F77=
18575 if test -n "$hardcode_libdir_flag_spec_F77" || \
18576 test -n "$runpath_var_F77" || \
18577 test "X$hardcode_automatic_F77" = "Xyes" ; then
18579 # We can hardcode non-existant directories.
18580 if test "$hardcode_direct_F77" != no &&
18581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18582 # have to relink, otherwise we might link with an installed library
18583 # when we should be linking with a yet-to-be-installed one
18584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18585 test "$hardcode_minus_L_F77" != no; then
18586 # Linking always hardcodes the temporary library directory.
18587 hardcode_action_F77=relink
18589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18590 hardcode_action_F77=immediate
18593 # We cannot hardcode anything, or else we can only hardcode existing
18595 hardcode_action_F77=unsupported
18597 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18598 $as_echo "$hardcode_action_F77" >&6; }
18600 if test "$hardcode_action_F77" = relink; then
18601 # Fast installation is not supported
18602 enable_fast_install=no
18603 elif test "$shlibpath_overrides_runpath" = yes ||
18604 test "$enable_shared" = no; then
18605 # Fast installation is not necessary
18606 enable_fast_install=needless
18610 # The else clause should only fire when bootstrapping the
18611 # libtool distribution, otherwise you forgot to ship ltmain.sh
18612 # with your package, and you will get complaints that there are
18613 # no rules to generate ltmain.sh.
18614 if test -f "$ltmain"; then
18615 # See if we are running on zsh, and set the options which allow our commands through
18616 # without removal of \ escapes.
18617 if test -n "${ZSH_VERSION+set}" ; then
18618 setopt NO_GLOB_SUBST
18620 # Now quote all the things that may contain metacharacters while being
18621 # careful not to overquote the AC_SUBSTed values. We take copies of the
18622 # variables and quote the copies for generation of the libtool script.
18623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18627 deplibs_check_method reload_flag reload_cmds need_locks \
18628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18629 lt_cv_sys_global_symbol_to_c_name_address \
18630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18631 old_postinstall_cmds old_postuninstall_cmds \
18635 lt_prog_compiler_wl_F77 \
18636 lt_prog_compiler_pic_F77 \
18637 lt_prog_compiler_static_F77 \
18638 lt_prog_compiler_no_builtin_flag_F77 \
18639 export_dynamic_flag_spec_F77 \
18640 thread_safe_flag_spec_F77 \
18641 whole_archive_flag_spec_F77 \
18642 enable_shared_with_static_runtimes_F77 \
18643 old_archive_cmds_F77 \
18644 old_archive_from_new_cmds_F77 \
18645 predep_objects_F77 \
18646 postdep_objects_F77 \
18649 compiler_lib_search_path_F77 \
18650 compiler_lib_search_dirs_F77 \
18652 archive_expsym_cmds_F77 \
18653 postinstall_cmds_F77 \
18654 postuninstall_cmds_F77 \
18655 old_archive_from_expsyms_cmds_F77 \
18656 allow_undefined_flag_F77 \
18657 no_undefined_flag_F77 \
18658 export_symbols_cmds_F77 \
18659 hardcode_libdir_flag_spec_F77 \
18660 hardcode_libdir_flag_spec_ld_F77 \
18661 hardcode_libdir_separator_F77 \
18662 hardcode_automatic_F77 \
18664 module_expsym_cmds_F77 \
18665 lt_cv_prog_compiler_c_o_F77 \
18666 fix_srcfile_path_F77 \
18667 exclude_expsyms_F77 \
18668 include_expsyms_F77; do
18671 old_archive_cmds_F77 | \
18672 old_archive_from_new_cmds_F77 | \
18673 archive_cmds_F77 | \
18674 archive_expsym_cmds_F77 | \
18675 module_cmds_F77 | \
18676 module_expsym_cmds_F77 | \
18677 old_archive_from_expsyms_cmds_F77 | \
18678 export_symbols_cmds_F77 | \
18679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18680 postinstall_cmds | postuninstall_cmds | \
18681 old_postinstall_cmds | old_postuninstall_cmds | \
18682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18683 # Double-quote double-evaled strings.
18684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18693 *'\$0 --fallback-echo"')
18694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18700 cat <<__EOF__ >> "$cfgfile"
18701 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18705 # Shell to use when invoking shell scripts.
18708 # Whether or not to build shared libraries.
18709 build_libtool_libs=$enable_shared
18711 # Whether or not to build static libraries.
18712 build_old_libs=$enable_static
18714 # Whether or not to add -lc for building shared libraries.
18715 build_libtool_need_lc=$archive_cmds_need_lc_F77
18717 # Whether or not to disallow shared libs when runtime libs are static
18718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18720 # Whether or not to optimize for fast installation.
18721 fast_install=$enable_fast_install
18724 host_alias=$host_alias
18728 # The build system.
18729 build_alias=$build_alias
18733 # An echo program that does not interpret backslashes.
18738 AR_FLAGS=$lt_AR_FLAGS
18743 # LTCC compiler flags.
18744 LTCFLAGS=$lt_LTCFLAGS
18746 # A language-specific compiler.
18747 CC=$lt_compiler_F77
18749 # Is the compiler the GNU C compiler?
18755 # The linker used to build libraries.
18758 # Whether we need hard or soft links.
18761 # A BSD-compatible nm program.
18764 # A symbol stripping program
18767 # Used to examine libraries when file_magic_cmd begins "file"
18768 MAGIC_CMD=$MAGIC_CMD
18770 # Used on cygwin: DLL creation program.
18773 # Used on cygwin: object dumper.
18776 # Used on cygwin: assembler.
18779 # The name of the directory that contains temporary libtool files.
18782 # How to create reloadable object files.
18783 reload_flag=$lt_reload_flag
18784 reload_cmds=$lt_reload_cmds
18786 # How to pass a linker flag through the compiler.
18787 wl=$lt_lt_prog_compiler_wl_F77
18789 # Object file suffix (normally "o").
18790 objext="$ac_objext"
18792 # Old archive suffix (normally "a").
18795 # Shared library suffix (normally ".so").
18796 shrext_cmds='$shrext_cmds'
18798 # Executable file suffix (normally "").
18801 # Additional compiler flags for building library objects.
18802 pic_flag=$lt_lt_prog_compiler_pic_F77
18805 # What is the maximum length of a command?
18806 max_cmd_len=$lt_cv_sys_max_cmd_len
18808 # Does compiler simultaneously support -c and -o options?
18809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18811 # Must we lock files when doing compilation?
18812 need_locks=$lt_need_locks
18814 # Do we need the lib prefix for modules?
18815 need_lib_prefix=$need_lib_prefix
18817 # Do we need a version for libraries?
18818 need_version=$need_version
18820 # Whether dlopen is supported.
18821 dlopen_support=$enable_dlopen
18823 # Whether dlopen of programs is supported.
18824 dlopen_self=$enable_dlopen_self
18826 # Whether dlopen of statically linked programs is supported.
18827 dlopen_self_static=$enable_dlopen_self_static
18829 # Compiler flag to prevent dynamic linking.
18830 link_static_flag=$lt_lt_prog_compiler_static_F77
18832 # Compiler flag to turn off builtin functions.
18833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18835 # Compiler flag to allow reflexive dlopens.
18836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18838 # Compiler flag to generate shared objects directly from archives.
18839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18841 # Compiler flag to generate thread-safe objects.
18842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18844 # Library versioning type.
18845 version_type=$version_type
18847 # Format of library name prefix.
18848 libname_spec=$lt_libname_spec
18850 # List of archive names. First name is the real one, the rest are links.
18851 # The last name is the one that the linker finds with -lNAME.
18852 library_names_spec=$lt_library_names_spec
18854 # The coded name of the library, if different from the real name.
18855 soname_spec=$lt_soname_spec
18857 # Commands used to build and install an old-style archive.
18859 old_archive_cmds=$lt_old_archive_cmds_F77
18860 old_postinstall_cmds=$lt_old_postinstall_cmds
18861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18863 # Create an old-style archive from a shared archive.
18864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18866 # Create a temporary old-style archive to link instead of a shared archive.
18867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18869 # Commands used to build and install a shared archive.
18870 archive_cmds=$lt_archive_cmds_F77
18871 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18872 postinstall_cmds=$lt_postinstall_cmds
18873 postuninstall_cmds=$lt_postuninstall_cmds
18875 # Commands used to build a loadable module (assumed same as above if empty)
18876 module_cmds=$lt_module_cmds_F77
18877 module_expsym_cmds=$lt_module_expsym_cmds_F77
18879 # Commands to strip libraries.
18880 old_striplib=$lt_old_striplib
18881 striplib=$lt_striplib
18883 # Dependencies to place before the objects being linked to create a
18885 predep_objects=$lt_predep_objects_F77
18887 # Dependencies to place after the objects being linked to create a
18889 postdep_objects=$lt_postdep_objects_F77
18891 # Dependencies to place before the objects being linked to create a
18893 predeps=$lt_predeps_F77
18895 # Dependencies to place after the objects being linked to create a
18897 postdeps=$lt_postdeps_F77
18899 # The directories searched by this compiler when creating a shared
18901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18903 # The library search path used internally by the compiler when linking
18904 # a shared library.
18905 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18907 # Method to check whether dependent libraries are shared objects.
18908 deplibs_check_method=$lt_deplibs_check_method
18910 # Command to use when deplibs_check_method == file_magic.
18911 file_magic_cmd=$lt_file_magic_cmd
18913 # Flag that allows shared libraries with undefined symbols to be built.
18914 allow_undefined_flag=$lt_allow_undefined_flag_F77
18916 # Flag that forces no undefined symbols.
18917 no_undefined_flag=$lt_no_undefined_flag_F77
18919 # Commands used to finish a libtool library installation in a directory.
18920 finish_cmds=$lt_finish_cmds
18922 # Same as above, but a single script fragment to be evaled but not shown.
18923 finish_eval=$lt_finish_eval
18925 # Take the output of nm and produce a listing of raw symbols and C names.
18926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18928 # Transform the output of nm in a proper C declaration
18929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18931 # Transform the output of nm in a C name address pair
18932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18934 # This is the shared library runtime path variable.
18935 runpath_var=$runpath_var
18937 # This is the shared library path variable.
18938 shlibpath_var=$shlibpath_var
18940 # Is shlibpath searched before the hard-coded library search path?
18941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18943 # How to hardcode a shared library path into an executable.
18944 hardcode_action=$hardcode_action_F77
18946 # Whether we should hardcode library paths into libraries.
18947 hardcode_into_libs=$hardcode_into_libs
18949 # Flag to hardcode \$libdir into a binary during linking.
18950 # This must work even if \$libdir does not exist.
18951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18953 # If ld is used when linking, flag to hardcode \$libdir into
18954 # a binary during linking. This must work even if \$libdir does
18956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18958 # Whether we need a single -rpath flag with a separated argument.
18959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18962 # resulting binary.
18963 hardcode_direct=$hardcode_direct_F77
18965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18966 # resulting binary.
18967 hardcode_minus_L=$hardcode_minus_L_F77
18969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18970 # the resulting binary.
18971 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18973 # Set to yes if building a shared library automatically hardcodes DIR into the library
18974 # and all subsequent libraries and executables linked against it.
18975 hardcode_automatic=$hardcode_automatic_F77
18977 # Variables whose values should be saved in libtool wrapper scripts and
18978 # restored at relink time.
18979 variables_saved_for_relink="$variables_saved_for_relink"
18981 # Whether libtool must link a program against all its dependency libraries.
18982 link_all_deplibs=$link_all_deplibs_F77
18984 # Compile-time system search path for libraries
18985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18987 # Run-time system search path for libraries
18988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18990 # Fix the shell variable \$srcfile for the compiler.
18991 fix_srcfile_path=$lt_fix_srcfile_path
18993 # Set to yes if exported symbols are required.
18994 always_export_symbols=$always_export_symbols_F77
18996 # The commands to list exported symbols.
18997 export_symbols_cmds=$lt_export_symbols_cmds_F77
18999 # The commands to extract the exported symbol list from a shared archive.
19000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19002 # Symbols that should not be listed in the preloaded symbols.
19003 exclude_expsyms=$lt_exclude_expsyms_F77
19005 # Symbols that must always be exported.
19006 include_expsyms=$lt_include_expsyms_F77
19008 # ### END LIBTOOL TAG CONFIG: $tagname
19014 # If there is no Makefile yet, we rely on a make rule to execute
19015 # `config.status --recheck' to rerun these tests and create the
19016 # libtool script then.
19017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19018 if test -f "$ltmain_in"; then
19019 test -f Makefile && make "$ltmain"
19025 ac_cpp='$CPP $CPPFLAGS'
19026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19041 # Source file extension for Java test sources.
19044 # Object file extension for compiled Java test sources.
19048 # Code to be used in simple compile tests
19049 lt_simple_compile_test_code="class foo {}"
19051 # Code to be used in simple link tests
19052 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19056 # If no C compiler was specified, use CC.
19059 # If no C compiler flags were specified, use CFLAGS.
19060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19062 # Allow CC to be a program name with arguments.
19066 # save warnings/boilerplate of simple test code
19067 ac_outfile=conftest.$ac_objext
19068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19070 _lt_compiler_boilerplate=`cat conftest.err`
19073 ac_outfile=conftest.$ac_objext
19074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19076 _lt_linker_boilerplate=`cat conftest.err`
19080 # Allow CC to be a program name with arguments.
19085 for cc_temp in $compiler""; do
19087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19096 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19097 archive_cmds_need_lc_GCJ=no
19099 old_archive_cmds_GCJ=$old_archive_cmds
19102 lt_prog_compiler_no_builtin_flag_GCJ=
19104 if test "$GCC" = yes; then
19105 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19108 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19111 $as_echo_n "(cached) " >&6
19113 lt_cv_prog_compiler_rtti_exceptions=no
19114 ac_outfile=conftest.$ac_objext
19115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19116 lt_compiler_flag="-fno-rtti -fno-exceptions"
19117 # Insert the option either (1) after the last *FLAGS variable, or
19118 # (2) before a word containing "conftest.", or (3) at the end.
19119 # Note that $ac_compile itself does not contain backslashes and begins
19120 # with a dollar sign (not a hyphen), so the echo should work correctly.
19121 # The option is referenced via a variable to avoid confusing sed.
19122 lt_compile=`echo "$ac_compile" | $SED \
19123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19125 -e 's:$: $lt_compiler_flag:'`
19126 (eval echo "\"\$as_me:19126: $lt_compile\"" >&5)
19127 (eval "$lt_compile" 2>conftest.err)
19129 cat conftest.err >&5
19130 echo "$as_me:19130: \$? = $ac_status" >&5
19131 if (exit $ac_status) && test -s "$ac_outfile"; then
19132 # The compiler can only warn and ignore the option if not recognized
19133 # So say no if there are warnings other than the usual output.
19134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19137 lt_cv_prog_compiler_rtti_exceptions=yes
19143 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19147 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19154 lt_prog_compiler_wl_GCJ=
19155 lt_prog_compiler_pic_GCJ=
19156 lt_prog_compiler_static_GCJ=
19158 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19159 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19161 if test "$GCC" = yes; then
19162 lt_prog_compiler_wl_GCJ='-Wl,'
19163 lt_prog_compiler_static_GCJ='-static'
19167 # All AIX code is PIC.
19168 if test "$host_cpu" = ia64; then
19169 # AIX 5 now supports IA64 processor
19170 lt_prog_compiler_static_GCJ='-Bstatic'
19175 # FIXME: we need at least 68020 code to build shared libraries, but
19176 # adding the `-m68020' flag to GCC prevents building anything better,
19178 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19182 # PIC is the default for these OSes.
19185 mingw* | cygwin* | pw32* | os2*)
19186 # This hack is so that the source file can tell whether it is being
19187 # built for inclusion in a dll (and should export symbols for example).
19188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19189 # (--disable-auto-import) libraries
19193 darwin* | rhapsody*)
19194 # PIC is the default on this platform
19195 # Common symbols not allowed in MH_DYLIB files
19196 lt_prog_compiler_pic_GCJ='-fno-common'
19200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19201 # Instead, we relocate shared libraries at runtime.
19205 # Just because we use GCC doesn't mean we suddenly get shared libraries
19206 # on systems that don't support them.
19207 lt_prog_compiler_can_build_shared_GCJ=no
19212 if test -d /usr/nec; then
19213 lt_prog_compiler_pic_GCJ=-Kconform_pic
19218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19219 # not for PA HP-UX.
19225 lt_prog_compiler_pic_GCJ='-fPIC'
19231 lt_prog_compiler_pic_GCJ='-fPIC'
19235 # PORTME Check for flag to pass linker flags through the system compiler.
19238 lt_prog_compiler_wl_GCJ='-Wl,'
19239 if test "$host_cpu" = ia64; then
19240 # AIX 5 now supports IA64 processor
19241 lt_prog_compiler_static_GCJ='-Bstatic'
19243 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19247 # PIC is the default on this platform
19248 # Common symbols not allowed in MH_DYLIB files
19249 case $cc_basename in
19251 lt_prog_compiler_pic_GCJ='-qnocommon'
19252 lt_prog_compiler_wl_GCJ='-Wl,'
19257 mingw* | cygwin* | pw32* | os2*)
19258 # This hack is so that the source file can tell whether it is being
19259 # built for inclusion in a dll (and should export symbols for example).
19263 hpux9* | hpux10* | hpux11*)
19264 lt_prog_compiler_wl_GCJ='-Wl,'
19265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19266 # not for PA HP-UX.
19272 lt_prog_compiler_pic_GCJ='+Z'
19275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19276 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19279 irix5* | irix6* | nonstopux*)
19280 lt_prog_compiler_wl_GCJ='-Wl,'
19281 # PIC (with -KPIC) is the default.
19282 lt_prog_compiler_static_GCJ='-non_shared'
19286 lt_prog_compiler_pic_GCJ='-KPIC'
19287 lt_prog_compiler_static_GCJ='-Bstatic'
19290 linux* | k*bsd*-gnu)
19291 case $cc_basename in
19293 lt_prog_compiler_wl_GCJ='-Wl,'
19294 lt_prog_compiler_pic_GCJ='-KPIC'
19295 lt_prog_compiler_static_GCJ='-static'
19297 pgcc* | pgf77* | pgf90* | pgf95*)
19298 # Portland Group compilers (*not* the Pentium gcc compiler,
19299 # which looks to be a dead project)
19300 lt_prog_compiler_wl_GCJ='-Wl,'
19301 lt_prog_compiler_pic_GCJ='-fpic'
19302 lt_prog_compiler_static_GCJ='-Bstatic'
19305 lt_prog_compiler_wl_GCJ='-Wl,'
19306 # All Alpha code is PIC.
19307 lt_prog_compiler_static_GCJ='-non_shared'
19310 case `$CC -V 2>&1 | sed 5q` in
19313 lt_prog_compiler_pic_GCJ='-KPIC'
19314 lt_prog_compiler_static_GCJ='-Bstatic'
19315 lt_prog_compiler_wl_GCJ='-Wl,'
19318 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19319 lt_prog_compiler_pic_GCJ='-KPIC'
19320 lt_prog_compiler_static_GCJ='-Bstatic'
19321 lt_prog_compiler_wl_GCJ=''
19328 osf3* | osf4* | osf5*)
19329 lt_prog_compiler_wl_GCJ='-Wl,'
19330 # All OSF/1 code is PIC.
19331 lt_prog_compiler_static_GCJ='-non_shared'
19335 lt_prog_compiler_static_GCJ='-non_shared'
19339 lt_prog_compiler_pic_GCJ='-KPIC'
19340 lt_prog_compiler_static_GCJ='-Bstatic'
19341 case $cc_basename in
19342 f77* | f90* | f95*)
19343 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19345 lt_prog_compiler_wl_GCJ='-Wl,';;
19350 lt_prog_compiler_wl_GCJ='-Qoption ld '
19351 lt_prog_compiler_pic_GCJ='-PIC'
19352 lt_prog_compiler_static_GCJ='-Bstatic'
19355 sysv4 | sysv4.2uw2* | sysv4.3*)
19356 lt_prog_compiler_wl_GCJ='-Wl,'
19357 lt_prog_compiler_pic_GCJ='-KPIC'
19358 lt_prog_compiler_static_GCJ='-Bstatic'
19362 if test -d /usr/nec ;then
19363 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19364 lt_prog_compiler_static_GCJ='-Bstatic'
19368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19369 lt_prog_compiler_wl_GCJ='-Wl,'
19370 lt_prog_compiler_pic_GCJ='-KPIC'
19371 lt_prog_compiler_static_GCJ='-Bstatic'
19375 lt_prog_compiler_wl_GCJ='-Wl,'
19376 lt_prog_compiler_can_build_shared_GCJ=no
19380 lt_prog_compiler_pic_GCJ='-pic'
19381 lt_prog_compiler_static_GCJ='-Bstatic'
19385 lt_prog_compiler_can_build_shared_GCJ=no
19390 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19391 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19394 # Check to make sure the PIC flag actually works.
19396 if test -n "$lt_prog_compiler_pic_GCJ"; then
19398 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19400 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19401 $as_echo_n "(cached) " >&6
19403 lt_cv_prog_compiler_pic_works_GCJ=no
19404 ac_outfile=conftest.$ac_objext
19405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19406 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19407 # Insert the option either (1) after the last *FLAGS variable, or
19408 # (2) before a word containing "conftest.", or (3) at the end.
19409 # Note that $ac_compile itself does not contain backslashes and begins
19410 # with a dollar sign (not a hyphen), so the echo should work correctly.
19411 # The option is referenced via a variable to avoid confusing sed.
19412 lt_compile=`echo "$ac_compile" | $SED \
19413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19415 -e 's:$: $lt_compiler_flag:'`
19416 (eval echo "\"\$as_me:19416: $lt_compile\"" >&5)
19417 (eval "$lt_compile" 2>conftest.err)
19419 cat conftest.err >&5
19420 echo "$as_me:19420: \$? = $ac_status" >&5
19421 if (exit $ac_status) && test -s "$ac_outfile"; then
19422 # The compiler can only warn and ignore the option if not recognized
19423 # So say no if there are warnings other than the usual output.
19424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19427 lt_cv_prog_compiler_pic_works_GCJ=yes
19433 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19434 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19436 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19437 case $lt_prog_compiler_pic_GCJ in
19439 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19442 lt_prog_compiler_pic_GCJ=
19443 lt_prog_compiler_can_build_shared_GCJ=no
19448 # For platforms which do not support PIC, -DPIC is meaningless:
19450 lt_prog_compiler_pic_GCJ=
19453 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19458 # Check to make sure the static flag actually works.
19460 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19461 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19463 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19464 $as_echo_n "(cached) " >&6
19466 lt_cv_prog_compiler_static_works_GCJ=no
19467 save_LDFLAGS="$LDFLAGS"
19468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19471 # The linker can only warn and ignore the option if not recognized
19472 # So say no if there are warnings
19473 if test -s conftest.err; then
19474 # Append any errors to the config.log.
19475 cat conftest.err 1>&5
19476 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19478 if diff conftest.exp conftest.er2 >/dev/null; then
19479 lt_cv_prog_compiler_static_works_GCJ=yes
19482 lt_cv_prog_compiler_static_works_GCJ=yes
19486 LDFLAGS="$save_LDFLAGS"
19489 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19490 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19492 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19495 lt_prog_compiler_static_GCJ=
19499 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19501 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19502 $as_echo_n "(cached) " >&6
19504 lt_cv_prog_compiler_c_o_GCJ=no
19505 $rm -r conftest 2>/dev/null
19509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19511 lt_compiler_flag="-o out/conftest2.$ac_objext"
19512 # Insert the option either (1) after the last *FLAGS variable, or
19513 # (2) before a word containing "conftest.", or (3) at the end.
19514 # Note that $ac_compile itself does not contain backslashes and begins
19515 # with a dollar sign (not a hyphen), so the echo should work correctly.
19516 lt_compile=`echo "$ac_compile" | $SED \
19517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19519 -e 's:$: $lt_compiler_flag:'`
19520 (eval echo "\"\$as_me:19520: $lt_compile\"" >&5)
19521 (eval "$lt_compile" 2>out/conftest.err)
19523 cat out/conftest.err >&5
19524 echo "$as_me:19524: \$? = $ac_status" >&5
19525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19527 # The compiler can only warn and ignore the option if not recognized
19528 # So say no if there are warnings
19529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19532 lt_cv_prog_compiler_c_o_GCJ=yes
19537 # SGI C++ compiler will create directory out/ii_files/ for
19538 # template instantiation
19539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19540 $rm out/* && rmdir out
19546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19547 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19550 hard_links="nottested"
19551 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19552 # do not overwrite the value of need_locks provided by the user
19553 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19554 $as_echo_n "checking if we can lock with hard links... " >&6; }
19557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19559 ln conftest.a conftest.b 2>&5 || hard_links=no
19560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19562 $as_echo "$hard_links" >&6; }
19563 if test "$hard_links" = no; then
19564 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19565 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19572 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19573 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19576 allow_undefined_flag_GCJ=
19577 enable_shared_with_static_runtimes_GCJ=no
19579 archive_expsym_cmds_GCJ=
19580 old_archive_From_new_cmds_GCJ=
19581 old_archive_from_expsyms_cmds_GCJ=
19582 export_dynamic_flag_spec_GCJ=
19583 whole_archive_flag_spec_GCJ=
19584 thread_safe_flag_spec_GCJ=
19585 hardcode_libdir_flag_spec_GCJ=
19586 hardcode_libdir_flag_spec_ld_GCJ=
19587 hardcode_libdir_separator_GCJ=
19588 hardcode_direct_GCJ=no
19589 hardcode_minus_L_GCJ=no
19590 hardcode_shlibpath_var_GCJ=unsupported
19591 link_all_deplibs_GCJ=unknown
19592 hardcode_automatic_GCJ=no
19594 module_expsym_cmds_GCJ=
19595 always_export_symbols_GCJ=no
19596 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19597 # include_expsyms should be a list of space-separated symbols to be *always*
19598 # included in the symbol list
19599 include_expsyms_GCJ=
19600 # exclude_expsyms can be an extended regexp of symbols to exclude
19601 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19603 # as well as any symbol that contains `d'.
19604 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19606 # platforms (ab)use it in PIC code, but their linkers get confused if
19607 # the symbol is explicitly referenced. Since portable code cannot
19608 # rely on this symbol name, it's probably fine to never include it in
19609 # preloaded symbol tables.
19610 # Exclude shared library initialization/finalization symbols.
19611 extract_expsyms_cmds=
19612 # Just being paranoid about ensuring that cc_basename is set.
19613 for cc_temp in $compiler""; do
19615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19621 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19624 cygwin* | mingw* | pw32*)
19625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19626 # When not using gcc, we currently assume that we are using
19627 # Microsoft Visual C++.
19628 if test "$GCC" != yes; then
19633 # we just hope/assume this is gcc and not c89 (= MSVC++)
19642 if test "$with_gnu_ld" = yes; then
19643 # If archive_cmds runs LD, not CC, wlarc should be empty
19646 # Set some defaults for GNU ld with shared library support. These
19647 # are reset later if shared libraries are not supported. Putting them
19648 # here allows them to be overridden if necessary.
19649 runpath_var=LD_RUN_PATH
19650 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19651 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19652 # ancient GNU ld didn't support --whole-archive et. al.
19653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19654 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19656 whole_archive_flag_spec_GCJ=
19658 supports_anon_versioning=no
19659 case `$LD -v 2>/dev/null` in
19660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19663 *\ 2.11.*) ;; # other 2.11 versions
19664 *) supports_anon_versioning=yes ;;
19667 # See if GNU ld supports shared libraries.
19670 # On AIX/PPC, the GNU linker is very broken
19671 if test "$host_cpu" != ia64; then
19675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19676 *** to be unable to reliably create shared libraries on AIX.
19677 *** Therefore, libtool is disabling shared libraries support. If you
19678 *** really care for shared libraries, you may want to modify your PATH
19679 *** so that a non-GNU linker is found, and then restart.
19686 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)'
19687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19688 hardcode_minus_L_GCJ=yes
19690 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19691 # that the semantics of dynamic libraries on AmigaOS, at least up
19692 # to version 4, is to share data among multiple programs linked
19693 # with the same dynamic library. Since this doesn't match the
19694 # behavior of shared libraries on other platforms, we can't use
19700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19701 allow_undefined_flag_GCJ=unsupported
19702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19703 # support --undefined. This deserves some investigation. FIXME
19704 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19710 cygwin* | mingw* | pw32*)
19711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19712 # as there is no search path for DLLs.
19713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19714 allow_undefined_flag_GCJ=unsupported
19715 always_export_symbols_GCJ=no
19716 enable_shared_with_static_runtimes_GCJ=yes
19717 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19721 # If the export-symbols file already is a .def file (1st line
19722 # is EXPORTS), use it as is; otherwise, prepend...
19723 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19724 cp $export_symbols $output_objdir/$soname.def;
19726 echo EXPORTS > $output_objdir/$soname.def;
19727 cat $export_symbols >> $output_objdir/$soname.def;
19729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19736 hardcode_direct_GCJ=no
19737 hardcode_shlibpath_var_GCJ=no
19738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19739 export_dynamic_flag_spec_GCJ='${wl}-E'
19740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19741 # Instead, shared libraries are loaded at an image base (0x10000000 by
19742 # default) and relocated if they conflict, which is a slow very memory
19743 # consuming and fragmenting process. To avoid this, we pick a random,
19744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19746 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'
19747 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'
19750 gnu* | linux* | k*bsd*-gnu)
19751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19753 case $cc_basename,$host_cpu in
19754 pgcc*) # Portland Group C compiler
19755 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'
19756 tmp_addflag=' $pic_flag'
19758 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19759 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'
19760 tmp_addflag=' $pic_flag -Mnomain' ;;
19761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19762 tmp_addflag=' -i_dynamic' ;;
19763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19764 tmp_addflag=' -i_dynamic -nofor_main' ;;
19765 ifc* | ifort*) # Intel Fortran compiler
19766 tmp_addflag=' -nofor_main' ;;
19768 case `$CC -V 2>&1 | sed 5q` in
19769 *Sun\ C*) # Sun C 5.9
19770 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'
19771 tmp_sharedflag='-G' ;;
19772 *Sun\ F*) # Sun Fortran 8.3
19773 tmp_sharedflag='-G' ;;
19775 tmp_sharedflag='-shared' ;;
19777 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19779 if test $supports_anon_versioning = yes; then
19780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19782 $echo "local: *; };" >> $output_objdir/$libname.ver~
19783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19792 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19806 *** create shared libraries on Solaris systems. Therefore, libtool
19807 *** is disabling shared libraries support. We urge you to upgrade GNU
19808 *** binutils to release 2.9.1 or newer. Another option is to modify
19809 *** your PATH or compiler configuration so that the native linker is
19810 *** used, and then restart.
19813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19815 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19822 case `$LD -v 2>&1` in
19823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19828 *** reliably create shared libraries on SCO systems. Therefore, libtool
19829 *** is disabling shared libraries support. We urge you to upgrade GNU
19830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19831 *** your PATH or compiler configuration so that the native linker is
19832 *** used, and then restart.
19837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19838 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19849 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19851 hardcode_direct_GCJ=yes
19852 hardcode_shlibpath_var_GCJ=no
19856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19865 if test "$ld_shlibs_GCJ" = no; then
19867 hardcode_libdir_flag_spec_GCJ=
19868 export_dynamic_flag_spec_GCJ=
19869 whole_archive_flag_spec_GCJ=
19872 # PORTME fill in a description of your system's linker (not GNU ld)
19875 allow_undefined_flag_GCJ=unsupported
19876 always_export_symbols_GCJ=yes
19877 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'
19878 # Note: this linker hardcodes the directories in LIBPATH if there
19879 # are no directories specified by -L.
19880 hardcode_minus_L_GCJ=yes
19881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19882 # Neither direct hardcoding nor static linking is supported with a
19884 hardcode_direct_GCJ=unsupported
19889 if test "$host_cpu" = ia64; then
19890 # On IA64, the linker does run time linking by default, so we don't
19891 # have to do anything special.
19892 aix_use_runtimelinking=no
19893 exp_sym_flag='-Bexport'
19896 # If we're using GNU nm, then we don't want the "-C" option.
19897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19899 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'
19901 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'
19903 aix_use_runtimelinking=no
19905 # Test if we are trying to use run time linking or normal
19906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19907 # need to do runtime linking.
19908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19909 for ld_flag in $LDFLAGS; do
19910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19911 aix_use_runtimelinking=yes
19918 exp_sym_flag='-bexport'
19919 no_entry_flag='-bnoentry'
19922 # When large executables or shared objects are built, AIX ld can
19923 # have problems creating the table of contents. If linking a library
19924 # or program results in "error TOC overflow" add -mminimal-toc to
19925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19928 archive_cmds_GCJ=''
19929 hardcode_direct_GCJ=yes
19930 hardcode_libdir_separator_GCJ=':'
19931 link_all_deplibs_GCJ=yes
19933 if test "$GCC" = yes; then
19934 case $host_os in aix4.[012]|aix4.[012].*)
19935 # We only want to do this on AIX 4.2 and lower, the check
19936 # below for broken collect2 doesn't work under 4.3+
19937 collect2name=`${CC} -print-prog-name=collect2`
19938 if test -f "$collect2name" && \
19939 strings "$collect2name" | grep resolve_lib_name >/dev/null
19941 # We have reworked collect2
19944 # We have old collect2
19945 hardcode_direct_GCJ=unsupported
19946 # It fails to find uninstalled libraries when the uninstalled
19947 # path is not listed in the libpath. Setting hardcode_minus_L
19948 # to unsupported forces relinking
19949 hardcode_minus_L_GCJ=yes
19950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19951 hardcode_libdir_separator_GCJ=
19955 shared_flag='-shared'
19956 if test "$aix_use_runtimelinking" = yes; then
19957 shared_flag="$shared_flag "'${wl}-G'
19961 if test "$host_cpu" = ia64; then
19962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19963 # chokes on -Wl,-G. The following line is correct:
19966 if test "$aix_use_runtimelinking" = yes; then
19967 shared_flag='${wl}-G'
19969 shared_flag='${wl}-bM:SRE'
19974 # It seems that -bexpall does not export symbols beginning with
19975 # underscore (_), so it is better to generate a list of symbols to export.
19976 always_export_symbols_GCJ=yes
19977 if test "$aix_use_runtimelinking" = yes; then
19978 # Warning - without using the other runtime loading flags (-brtl),
19979 # -berok will link without error, but may produce a broken library.
19980 allow_undefined_flag_GCJ='-berok'
19981 # Determine the default libpath from the value encoded in an empty executable.
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20004 $as_echo "$ac_try_echo") >&5
20005 (eval "$ac_link") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest$ac_exeext && {
20015 test "$cross_compiling" = yes ||
20016 $as_test_x conftest$ac_exeext
20019 lt_aix_libpath_sed='
20020 /Import File Strings/,/^$/ {
20026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20027 # Check for a 64-bit object if we didn't find anything.
20028 if test -z "$aix_libpath"; then
20029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20032 $as_echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20038 rm -rf conftest.dSYM
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040 conftest$ac_exeext conftest.$ac_ext
20041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20044 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"
20046 if test "$host_cpu" = ia64; then
20047 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20048 allow_undefined_flag_GCJ="-z nodefs"
20049 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"
20051 # Determine the default libpath from the value encoded in an empty executable.
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20067 rm -f conftest.$ac_objext conftest$ac_exeext
20068 if { (ac_try="$ac_link"
20069 case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20074 $as_echo "$ac_try_echo") >&5
20075 (eval "$ac_link") 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } && {
20082 test -z "$ac_c_werror_flag" ||
20083 test ! -s conftest.err
20084 } && test -s conftest$ac_exeext && {
20085 test "$cross_compiling" = yes ||
20086 $as_test_x conftest$ac_exeext
20089 lt_aix_libpath_sed='
20090 /Import File Strings/,/^$/ {
20096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20097 # Check for a 64-bit object if we didn't find anything.
20098 if test -z "$aix_libpath"; then
20099 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20102 $as_echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20108 rm -rf conftest.dSYM
20109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20110 conftest$ac_exeext conftest.$ac_ext
20111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20113 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20114 # Warning - without using the other run time loading flags,
20115 # -berok will link without error, but may produce a broken library.
20116 no_undefined_flag_GCJ=' ${wl}-bernotok'
20117 allow_undefined_flag_GCJ=' ${wl}-berok'
20118 # Exported symbols can be pulled into shared objects from archives
20119 whole_archive_flag_spec_GCJ='$convenience'
20120 archive_cmds_need_lc_GCJ=yes
20121 # This is similar to how AIX traditionally builds its shared libraries.
20122 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'
20128 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)'
20129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20130 hardcode_minus_L_GCJ=yes
20131 # see comment about different semantics on the GNU ld section
20136 export_dynamic_flag_spec_GCJ=-rdynamic
20139 cygwin* | mingw* | pw32*)
20140 # When not using gcc, we currently assume that we are using
20141 # Microsoft Visual C++.
20142 # hardcode_libdir_flag_spec is actually meaningless, as there is
20143 # no search path for DLLs.
20144 hardcode_libdir_flag_spec_GCJ=' '
20145 allow_undefined_flag_GCJ=unsupported
20146 # Tell ltmain to make .lib files, not .a files.
20148 # Tell ltmain to make .dll files, not .so files.
20150 # FIXME: Setting linknames here is a bad hack.
20151 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20152 # The linker will automatically build a .lib file if we build a DLL.
20153 old_archive_From_new_cmds_GCJ='true'
20154 # FIXME: Should let the user specify the lib program.
20155 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20156 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20157 enable_shared_with_static_runtimes_GCJ=yes
20160 darwin* | rhapsody*)
20162 rhapsody* | darwin1.[012])
20163 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20167 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20169 case ${MACOSX_DEPLOYMENT_TARGET} in
20171 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20174 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20180 archive_cmds_need_lc_GCJ=no
20181 hardcode_direct_GCJ=no
20182 hardcode_automatic_GCJ=yes
20183 hardcode_shlibpath_var_GCJ=unsupported
20184 whole_archive_flag_spec_GCJ=''
20185 link_all_deplibs_GCJ=yes
20186 if test "$GCC" = yes ; then
20187 output_verbose_link_cmd='echo'
20188 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20189 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20190 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20191 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
20193 case $cc_basename in
20195 output_verbose_link_cmd='echo'
20196 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20197 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20199 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}'
20200 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}'
20210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20212 hardcode_shlibpath_var_GCJ=no
20219 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20220 # support. Future versions do this automatically, but an explicit c++rt0.o
20221 # does not break anything, and helps significantly (at the cost of a little
20224 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20225 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20226 hardcode_direct_GCJ=yes
20227 hardcode_shlibpath_var_GCJ=no
20230 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20232 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20233 hardcode_direct_GCJ=yes
20234 hardcode_minus_L_GCJ=yes
20235 hardcode_shlibpath_var_GCJ=no
20238 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20239 freebsd* | dragonfly*)
20240 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20241 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20242 hardcode_direct_GCJ=yes
20243 hardcode_shlibpath_var_GCJ=no
20247 if test "$GCC" = yes; then
20248 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'
20250 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'
20252 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20253 hardcode_libdir_separator_GCJ=:
20254 hardcode_direct_GCJ=yes
20256 # hardcode_minus_L: Not really in the search PATH,
20257 # but as the default location of the library.
20258 hardcode_minus_L_GCJ=yes
20259 export_dynamic_flag_spec_GCJ='${wl}-E'
20263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20264 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20266 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20268 if test "$with_gnu_ld" = no; then
20269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20270 hardcode_libdir_separator_GCJ=:
20272 hardcode_direct_GCJ=yes
20273 export_dynamic_flag_spec_GCJ='${wl}-E'
20275 # hardcode_minus_L: Not really in the search PATH,
20276 # but as the default location of the library.
20277 hardcode_minus_L_GCJ=yes
20282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20285 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20288 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20291 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20297 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20300 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20303 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20307 if test "$with_gnu_ld" = no; then
20308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20309 hardcode_libdir_separator_GCJ=:
20313 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20314 hardcode_direct_GCJ=no
20315 hardcode_shlibpath_var_GCJ=no
20318 hardcode_direct_GCJ=yes
20319 export_dynamic_flag_spec_GCJ='${wl}-E'
20321 # hardcode_minus_L: Not really in the search PATH,
20322 # but as the default location of the library.
20323 hardcode_minus_L_GCJ=yes
20329 irix5* | irix6* | nonstopux*)
20330 if test "$GCC" = yes; then
20331 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'
20333 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'
20334 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20336 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20337 hardcode_libdir_separator_GCJ=:
20338 link_all_deplibs_GCJ=yes
20342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20343 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20345 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20347 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20348 hardcode_direct_GCJ=yes
20349 hardcode_shlibpath_var_GCJ=no
20353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20354 hardcode_direct_GCJ=yes
20355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20356 hardcode_libdir_separator_GCJ=:
20357 hardcode_shlibpath_var_GCJ=no
20361 if test -f /usr/libexec/ld.so; then
20362 hardcode_direct_GCJ=yes
20363 hardcode_shlibpath_var_GCJ=no
20364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20365 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20366 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20368 export_dynamic_flag_spec_GCJ='${wl}-E'
20371 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20372 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20373 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20376 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20388 hardcode_minus_L_GCJ=yes
20389 allow_undefined_flag_GCJ=unsupported
20390 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'
20391 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20395 if test "$GCC" = yes; then
20396 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20397 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'
20399 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20400 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'
20402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20403 hardcode_libdir_separator_GCJ=:
20406 osf4* | osf5*) # as osf3* with the addition of -msym flag
20407 if test "$GCC" = yes; then
20408 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20409 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'
20410 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20413 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'
20414 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~
20415 $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'
20417 # Both c and cxx compiler support -rpath directly
20418 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20420 hardcode_libdir_separator_GCJ=:
20424 no_undefined_flag_GCJ=' -z text'
20425 if test "$GCC" = yes; then
20427 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20428 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20429 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20432 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20433 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20436 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20437 hardcode_shlibpath_var_GCJ=no
20439 solaris2.[0-5] | solaris2.[0-5].*) ;;
20441 # The compiler driver will combine and reorder linker options,
20442 # but understands `-z linker_flag'. GCC discards it without `$wl',
20443 # but is careful enough not to reorder.
20444 # Supported since Solaris 2.6 (maybe 2.5.1?)
20445 if test "$GCC" = yes; then
20446 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20448 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20452 link_all_deplibs_GCJ=yes
20456 if test "x$host_vendor" = xsequent; then
20457 # Use $CC to link under sequent, because it throws in some extra .o
20458 # files that make .init and .fini sections work.
20459 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20461 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20464 hardcode_direct_GCJ=yes
20465 hardcode_minus_L_GCJ=yes
20466 hardcode_shlibpath_var_GCJ=no
20470 case $host_vendor in
20472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20473 hardcode_direct_GCJ=yes # is this really true???
20476 ## LD is ld it makes a PLAMLIB
20477 ## CC just makes a GrossModule.
20478 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20479 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20480 hardcode_direct_GCJ=no
20483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20484 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20487 runpath_var='LD_RUN_PATH'
20488 hardcode_shlibpath_var_GCJ=no
20492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20493 hardcode_shlibpath_var_GCJ=no
20494 export_dynamic_flag_spec_GCJ='-Bexport'
20498 if test -d /usr/nec; then
20499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20500 hardcode_shlibpath_var_GCJ=no
20501 runpath_var=LD_RUN_PATH
20502 hardcode_runpath_var=yes
20507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20508 no_undefined_flag_GCJ='${wl}-z,text'
20509 archive_cmds_need_lc_GCJ=no
20510 hardcode_shlibpath_var_GCJ=no
20511 runpath_var='LD_RUN_PATH'
20513 if test "$GCC" = yes; then
20514 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20515 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20517 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20518 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20522 sysv5* | sco3.2v5* | sco5v6*)
20523 # Note: We can NOT use -z defs as we might desire, because we do not
20524 # link with -lc, and that would cause any symbols used from libc to
20525 # always be unresolved, which means just about no library would
20526 # ever link correctly. If we're not using GNU ld we use -z text
20527 # though, which does catch some bad symbols but isn't as heavy-handed
20529 no_undefined_flag_GCJ='${wl}-z,text'
20530 allow_undefined_flag_GCJ='${wl}-z,nodefs'
20531 archive_cmds_need_lc_GCJ=no
20532 hardcode_shlibpath_var_GCJ=no
20533 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20534 hardcode_libdir_separator_GCJ=':'
20535 link_all_deplibs_GCJ=yes
20536 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20537 runpath_var='LD_RUN_PATH'
20539 if test "$GCC" = yes; then
20540 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20541 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20543 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20544 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20551 hardcode_shlibpath_var_GCJ=no
20560 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20561 $as_echo "$ld_shlibs_GCJ" >&6; }
20562 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20565 # Do we need to explicitly link libc?
20567 case "x$archive_cmds_need_lc_GCJ" in
20569 # Assume -lc should be added
20570 archive_cmds_need_lc_GCJ=yes
20572 if test "$enable_shared" = yes && test "$GCC" = yes; then
20573 case $archive_cmds_GCJ in
20575 # FIXME: we may have to deal with multi-command sequences.
20578 # Test whether the compiler implicitly links with -lc since on some
20579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20580 # to ld, don't add -lc before -lgcc.
20581 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587 (eval $ac_compile) 2>&5
20589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } 2>conftest.err; then
20593 libobjs=conftest.$ac_objext
20595 wl=$lt_prog_compiler_wl_GCJ
20596 pic_flag=$lt_prog_compiler_pic_GCJ
20602 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20603 allow_undefined_flag_GCJ=
20604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20605 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }
20610 archive_cmds_need_lc_GCJ=no
20612 archive_cmds_need_lc_GCJ=yes
20614 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20616 cat conftest.err 1>&5
20619 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20620 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20627 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20628 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20629 library_names_spec=
20630 libname_spec='lib$name'
20634 postuninstall_cmds=
20638 shlibpath_overrides_runpath=unknown
20640 dynamic_linker="$host_os ld.so"
20641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20643 need_lib_prefix=unknown
20644 hardcode_into_libs=no
20646 # when you set need_version to no, make sure it does not cause -set_version
20647 # flags to be left without arguments
20648 need_version=unknown
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20654 shlibpath_var=LIBPATH
20656 # AIX 3 has no versioning support, so we append a major version to the name.
20657 soname_spec='${libname}${release}${shared_ext}$major'
20664 hardcode_into_libs=yes
20665 if test "$host_cpu" = ia64; then
20666 # AIX 5 supports IA64
20667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20668 shlibpath_var=LD_LIBRARY_PATH
20670 # With GCC up to 2.95.x, collect2 would create an import file
20671 # for dependence libraries. The import file would start with
20672 # the line `#! .'. This would cause the generated library to
20673 # depend on `.', always an invalid library. This was fixed in
20674 # development snapshots of GCC prior to 3.0.
20676 aix4 | aix4.[01] | aix4.[01].*)
20677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20682 can_build_shared=no
20686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20687 # soname into executable. Probably we can add versioning support to
20688 # collect2, so additional links can be useful in future.
20689 if test "$aix_use_runtimelinking" = yes; then
20690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20691 # instead of lib<name>.a to let people know that these are not
20692 # typical AIX shared libraries.
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 # We preserve .a as extension for shared libraries through AIX4.2
20696 # and later when we are not doing run time linking.
20697 library_names_spec='${libname}${release}.a $libname.a'
20698 soname_spec='${libname}${release}${shared_ext}$major'
20700 shlibpath_var=LIBPATH
20705 library_names_spec='$libname.ixlibrary $libname.a'
20706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20707 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'
20711 library_names_spec='${libname}${shared_ext}'
20712 dynamic_linker="$host_os ld.so"
20713 shlibpath_var=LIBRARY_PATH
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20722 shlibpath_var=LD_LIBRARY_PATH
20723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20725 # the default ld.so.conf also contains /usr/contrib/lib and
20726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20727 # libtool to hard-code these into programs
20730 cygwin* | mingw* | pw32*)
20731 version_type=windows
20736 case $GCC,$host_os in
20737 yes,cygwin* | yes,mingw* | yes,pw32*)
20738 library_names_spec='$libname.dll.a'
20739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20740 postinstall_cmds='base_file=`basename \${file}`~
20741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20742 dldir=$destdir/`dirname \$dlpath`~
20743 test -d \$dldir || mkdir -p \$dldir~
20744 $install_prog $dir/$dlname \$dldir/$dlname~
20745 chmod a+x \$dldir/$dlname'
20746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20747 dlpath=$dir/\$dldll~
20749 shlibpath_overrides_runpath=yes
20753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20758 # MinGW DLLs use traditional 'lib' prefix
20759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20762 # It is most probably a Windows format PATH printed by
20763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20764 # path with ; separators, and with drive letters. We can handle the
20765 # drive letters (cygwin fileutils understands them), so leave them,
20766 # especially as we might pass files found there to a mingw objdump,
20767 # which wouldn't understand a cygwinified path. Ahh.
20768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20774 # pw32 DLLs use 'pw' prefix rather than 'lib'
20775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20784 dynamic_linker='Win32 ld.exe'
20785 # FIXME: first we should search . and the directory the executable is in
20789 darwin* | rhapsody*)
20790 dynamic_linker="$host_os dyld"
20791 version_type=darwin
20794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20795 soname_spec='${libname}${release}${major}$shared_ext'
20796 shlibpath_overrides_runpath=yes
20797 shlibpath_var=DYLD_LIBRARY_PATH
20798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 shlibpath_var=LD_LIBRARY_PATH
20816 freebsd* | dragonfly*)
20817 # DragonFly does not have aout. When/if they implement a new
20818 # versioning mechanism, adjust this.
20819 if test -x /usr/bin/objformat; then
20820 objformat=`/usr/bin/objformat`
20823 freebsd[123]*) objformat=aout ;;
20824 *) objformat=elf ;;
20827 version_type=freebsd-$objformat
20828 case $version_type in
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20839 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes
20844 freebsd3.[01]* | freebsdelf3.[01]*)
20845 shlibpath_overrides_runpath=yes
20846 hardcode_into_libs=yes
20848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20850 shlibpath_overrides_runpath=no
20851 hardcode_into_libs=yes
20853 *) # from 4.6 on, and DragonFly
20854 shlibpath_overrides_runpath=yes
20855 hardcode_into_libs=yes
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20865 soname_spec='${libname}${release}${shared_ext}$major'
20866 shlibpath_var=LD_LIBRARY_PATH
20867 hardcode_into_libs=yes
20870 hpux9* | hpux10* | hpux11*)
20871 # Give a soname corresponding to the major version so that dld.sl refuses to
20872 # link against other versions.
20879 hardcode_into_libs=yes
20880 dynamic_linker="$host_os dld.so"
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec='${libname}${release}${shared_ext}$major'
20885 if test "X$HPUX_IA64_MODE" = X32; then
20886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20894 hardcode_into_libs=yes
20895 dynamic_linker="$host_os dld.sl"
20896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 soname_spec='${libname}${release}${shared_ext}$major'
20900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20905 dynamic_linker="$host_os dld.sl"
20906 shlibpath_var=SHLIB_PATH
20907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20909 soname_spec='${libname}${release}${shared_ext}$major'
20912 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20913 postinstall_cmds='chmod 555 $lib'
20920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20921 soname_spec='${libname}${release}${shared_ext}$major'
20922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20923 shlibpath_var=LD_LIBRARY_PATH
20924 shlibpath_overrides_runpath=no
20925 hardcode_into_libs=yes
20928 irix5* | irix6* | nonstopux*)
20930 nonstopux*) version_type=nonstopux ;;
20932 if test "$lt_cv_prog_gnu_ld" = yes; then
20940 soname_spec='${libname}${release}${shared_ext}$major'
20941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20943 irix5* | nonstopux*)
20944 libsuff= shlibsuff=
20947 case $LD in # libtool.m4 will add one of these switches to LD
20948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20949 libsuff= shlibsuff= libmagic=32-bit;;
20950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20951 libsuff=32 shlibsuff=N32 libmagic=N32;;
20952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20954 *) libsuff= shlibsuff= libmagic=never-match;;
20958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20959 shlibpath_overrides_runpath=no
20960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20962 hardcode_into_libs=yes
20965 # No shared lib support for Linux oldld, aout, or coff.
20966 linux*oldld* | linux*aout* | linux*coff*)
20970 # This must be Linux ELF.
20971 linux* | k*bsd*-gnu)
20975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20976 soname_spec='${libname}${release}${shared_ext}$major'
20977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20978 shlibpath_var=LD_LIBRARY_PATH
20979 shlibpath_overrides_runpath=no
20980 # This implies no fast_install, which is unacceptable.
20981 # Some rework will be needed to allow for fast_install
20982 # before this can be enabled.
20983 hardcode_into_libs=yes
20984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20987 # Append ld.so.conf contents to the search path
20988 if test -f /etc/ld.so.conf; then
20989 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' ' '`
20990 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20993 # We used to test for /lib/ld.so.1 and disable shared libraries on
20994 # powerpc, because MkLinux only supported shared libraries with the
20995 # GNU dynamic linker. Since this was broken with cross compilers,
20996 # most powerpc-linux boxes support dynamic linking these days and
20997 # people can always --disable-shared, the test was removed, and we
20998 # assume the GNU/Linux dynamic linker is in use.
20999 dynamic_linker='GNU/Linux ld.so'
21006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21009 dynamic_linker='NetBSD (a.out) ld.so'
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 dynamic_linker='NetBSD ld.elf_so'
21015 shlibpath_var=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath=yes
21017 hardcode_into_libs=yes
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 shlibpath_var=LD_LIBRARY_PATH
21024 shlibpath_overrides_runpath=yes
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 soname_spec='${libname}${release}${shared_ext}$major'
21033 shlibpath_var=LD_LIBRARY_PATH
21034 shlibpath_overrides_runpath=yes
21039 sys_lib_dlsearch_path_spec="/usr/lib"
21041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21044 *) need_version=no ;;
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21051 openbsd2.[89] | openbsd2.[89].*)
21052 shlibpath_overrides_runpath=no
21055 shlibpath_overrides_runpath=yes
21059 shlibpath_overrides_runpath=yes
21064 libname_spec='$name'
21067 library_names_spec='$libname${shared_ext} $libname.a'
21068 dynamic_linker='OS/2 ld.exe'
21069 shlibpath_var=LIBPATH
21072 osf3* | osf4* | osf5*)
21076 soname_spec='${libname}${release}${shared_ext}$major'
21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21078 shlibpath_var=LD_LIBRARY_PATH
21079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21092 soname_spec='${libname}${release}${shared_ext}$major'
21093 shlibpath_var=LD_LIBRARY_PATH
21094 shlibpath_overrides_runpath=yes
21095 hardcode_into_libs=yes
21096 # ldd complains unless libraries are executable
21097 postinstall_cmds='chmod +x $lib'
21102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21104 shlibpath_var=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath=yes
21106 if test "$with_gnu_ld" = yes; then
21114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21115 soname_spec='${libname}${release}${shared_ext}$major'
21116 shlibpath_var=LD_LIBRARY_PATH
21117 case $host_vendor in
21119 shlibpath_overrides_runpath=no
21121 export_dynamic_flag_spec='${wl}-Blargedynsym'
21122 runpath_var=LD_RUN_PATH
21130 shlibpath_overrides_runpath=no
21131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21137 if test -d /usr/nec ;then
21139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21140 soname_spec='$libname${shared_ext}.$major'
21141 shlibpath_var=LD_LIBRARY_PATH
21145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21146 version_type=freebsd-elf
21149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21151 shlibpath_var=LD_LIBRARY_PATH
21152 hardcode_into_libs=yes
21153 if test "$with_gnu_ld" = yes; then
21154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21155 shlibpath_overrides_runpath=no
21157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21158 shlibpath_overrides_runpath=yes
21161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21165 sys_lib_dlsearch_path_spec='/usr/lib'
21170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21171 soname_spec='${libname}${release}${shared_ext}$major'
21172 shlibpath_var=LD_LIBRARY_PATH
21179 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21180 $as_echo "$dynamic_linker" >&6; }
21181 test "$dynamic_linker" = no && can_build_shared=no
21183 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21184 $as_echo_n "(cached) " >&6
21186 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21189 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21190 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21191 $as_echo_n "(cached) " >&6
21193 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21196 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21199 if test "$GCC" = yes; then
21200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21203 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21205 hardcode_action_GCJ=
21206 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21207 test -n "$runpath_var_GCJ" || \
21208 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21210 # We can hardcode non-existant directories.
21211 if test "$hardcode_direct_GCJ" != no &&
21212 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21213 # have to relink, otherwise we might link with an installed library
21214 # when we should be linking with a yet-to-be-installed one
21215 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21216 test "$hardcode_minus_L_GCJ" != no; then
21217 # Linking always hardcodes the temporary library directory.
21218 hardcode_action_GCJ=relink
21220 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21221 hardcode_action_GCJ=immediate
21224 # We cannot hardcode anything, or else we can only hardcode existing
21226 hardcode_action_GCJ=unsupported
21228 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21229 $as_echo "$hardcode_action_GCJ" >&6; }
21231 if test "$hardcode_action_GCJ" = relink; then
21232 # Fast installation is not supported
21233 enable_fast_install=no
21234 elif test "$shlibpath_overrides_runpath" = yes ||
21235 test "$enable_shared" = no; then
21236 # Fast installation is not necessary
21237 enable_fast_install=needless
21241 # The else clause should only fire when bootstrapping the
21242 # libtool distribution, otherwise you forgot to ship ltmain.sh
21243 # with your package, and you will get complaints that there are
21244 # no rules to generate ltmain.sh.
21245 if test -f "$ltmain"; then
21246 # See if we are running on zsh, and set the options which allow our commands through
21247 # without removal of \ escapes.
21248 if test -n "${ZSH_VERSION+set}" ; then
21249 setopt NO_GLOB_SUBST
21251 # Now quote all the things that may contain metacharacters while being
21252 # careful not to overquote the AC_SUBSTed values. We take copies of the
21253 # variables and quote the copies for generation of the libtool script.
21254 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21256 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21257 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21258 deplibs_check_method reload_flag reload_cmds need_locks \
21259 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21260 lt_cv_sys_global_symbol_to_c_name_address \
21261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21262 old_postinstall_cmds old_postuninstall_cmds \
21266 lt_prog_compiler_wl_GCJ \
21267 lt_prog_compiler_pic_GCJ \
21268 lt_prog_compiler_static_GCJ \
21269 lt_prog_compiler_no_builtin_flag_GCJ \
21270 export_dynamic_flag_spec_GCJ \
21271 thread_safe_flag_spec_GCJ \
21272 whole_archive_flag_spec_GCJ \
21273 enable_shared_with_static_runtimes_GCJ \
21274 old_archive_cmds_GCJ \
21275 old_archive_from_new_cmds_GCJ \
21276 predep_objects_GCJ \
21277 postdep_objects_GCJ \
21280 compiler_lib_search_path_GCJ \
21281 compiler_lib_search_dirs_GCJ \
21283 archive_expsym_cmds_GCJ \
21284 postinstall_cmds_GCJ \
21285 postuninstall_cmds_GCJ \
21286 old_archive_from_expsyms_cmds_GCJ \
21287 allow_undefined_flag_GCJ \
21288 no_undefined_flag_GCJ \
21289 export_symbols_cmds_GCJ \
21290 hardcode_libdir_flag_spec_GCJ \
21291 hardcode_libdir_flag_spec_ld_GCJ \
21292 hardcode_libdir_separator_GCJ \
21293 hardcode_automatic_GCJ \
21295 module_expsym_cmds_GCJ \
21296 lt_cv_prog_compiler_c_o_GCJ \
21297 fix_srcfile_path_GCJ \
21298 exclude_expsyms_GCJ \
21299 include_expsyms_GCJ; do
21302 old_archive_cmds_GCJ | \
21303 old_archive_from_new_cmds_GCJ | \
21304 archive_cmds_GCJ | \
21305 archive_expsym_cmds_GCJ | \
21306 module_cmds_GCJ | \
21307 module_expsym_cmds_GCJ | \
21308 old_archive_from_expsyms_cmds_GCJ | \
21309 export_symbols_cmds_GCJ | \
21310 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21311 postinstall_cmds | postuninstall_cmds | \
21312 old_postinstall_cmds | old_postuninstall_cmds | \
21313 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21314 # Double-quote double-evaled strings.
21315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21324 *'\$0 --fallback-echo"')
21325 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21331 cat <<__EOF__ >> "$cfgfile"
21332 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21334 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21336 # Shell to use when invoking shell scripts.
21339 # Whether or not to build shared libraries.
21340 build_libtool_libs=$enable_shared
21342 # Whether or not to build static libraries.
21343 build_old_libs=$enable_static
21345 # Whether or not to add -lc for building shared libraries.
21346 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21348 # Whether or not to disallow shared libs when runtime libs are static
21349 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21351 # Whether or not to optimize for fast installation.
21352 fast_install=$enable_fast_install
21355 host_alias=$host_alias
21359 # The build system.
21360 build_alias=$build_alias
21364 # An echo program that does not interpret backslashes.
21369 AR_FLAGS=$lt_AR_FLAGS
21374 # LTCC compiler flags.
21375 LTCFLAGS=$lt_LTCFLAGS
21377 # A language-specific compiler.
21378 CC=$lt_compiler_GCJ
21380 # Is the compiler the GNU C compiler?
21386 # The linker used to build libraries.
21389 # Whether we need hard or soft links.
21392 # A BSD-compatible nm program.
21395 # A symbol stripping program
21398 # Used to examine libraries when file_magic_cmd begins "file"
21399 MAGIC_CMD=$MAGIC_CMD
21401 # Used on cygwin: DLL creation program.
21404 # Used on cygwin: object dumper.
21407 # Used on cygwin: assembler.
21410 # The name of the directory that contains temporary libtool files.
21413 # How to create reloadable object files.
21414 reload_flag=$lt_reload_flag
21415 reload_cmds=$lt_reload_cmds
21417 # How to pass a linker flag through the compiler.
21418 wl=$lt_lt_prog_compiler_wl_GCJ
21420 # Object file suffix (normally "o").
21421 objext="$ac_objext"
21423 # Old archive suffix (normally "a").
21426 # Shared library suffix (normally ".so").
21427 shrext_cmds='$shrext_cmds'
21429 # Executable file suffix (normally "").
21432 # Additional compiler flags for building library objects.
21433 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21436 # What is the maximum length of a command?
21437 max_cmd_len=$lt_cv_sys_max_cmd_len
21439 # Does compiler simultaneously support -c and -o options?
21440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21442 # Must we lock files when doing compilation?
21443 need_locks=$lt_need_locks
21445 # Do we need the lib prefix for modules?
21446 need_lib_prefix=$need_lib_prefix
21448 # Do we need a version for libraries?
21449 need_version=$need_version
21451 # Whether dlopen is supported.
21452 dlopen_support=$enable_dlopen
21454 # Whether dlopen of programs is supported.
21455 dlopen_self=$enable_dlopen_self
21457 # Whether dlopen of statically linked programs is supported.
21458 dlopen_self_static=$enable_dlopen_self_static
21460 # Compiler flag to prevent dynamic linking.
21461 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21463 # Compiler flag to turn off builtin functions.
21464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21466 # Compiler flag to allow reflexive dlopens.
21467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21469 # Compiler flag to generate shared objects directly from archives.
21470 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21472 # Compiler flag to generate thread-safe objects.
21473 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21475 # Library versioning type.
21476 version_type=$version_type
21478 # Format of library name prefix.
21479 libname_spec=$lt_libname_spec
21481 # List of archive names. First name is the real one, the rest are links.
21482 # The last name is the one that the linker finds with -lNAME.
21483 library_names_spec=$lt_library_names_spec
21485 # The coded name of the library, if different from the real name.
21486 soname_spec=$lt_soname_spec
21488 # Commands used to build and install an old-style archive.
21490 old_archive_cmds=$lt_old_archive_cmds_GCJ
21491 old_postinstall_cmds=$lt_old_postinstall_cmds
21492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21494 # Create an old-style archive from a shared archive.
21495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21497 # Create a temporary old-style archive to link instead of a shared archive.
21498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21500 # Commands used to build and install a shared archive.
21501 archive_cmds=$lt_archive_cmds_GCJ
21502 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21503 postinstall_cmds=$lt_postinstall_cmds
21504 postuninstall_cmds=$lt_postuninstall_cmds
21506 # Commands used to build a loadable module (assumed same as above if empty)
21507 module_cmds=$lt_module_cmds_GCJ
21508 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21510 # Commands to strip libraries.
21511 old_striplib=$lt_old_striplib
21512 striplib=$lt_striplib
21514 # Dependencies to place before the objects being linked to create a
21516 predep_objects=$lt_predep_objects_GCJ
21518 # Dependencies to place after the objects being linked to create a
21520 postdep_objects=$lt_postdep_objects_GCJ
21522 # Dependencies to place before the objects being linked to create a
21524 predeps=$lt_predeps_GCJ
21526 # Dependencies to place after the objects being linked to create a
21528 postdeps=$lt_postdeps_GCJ
21530 # The directories searched by this compiler when creating a shared
21532 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21534 # The library search path used internally by the compiler when linking
21535 # a shared library.
21536 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21538 # Method to check whether dependent libraries are shared objects.
21539 deplibs_check_method=$lt_deplibs_check_method
21541 # Command to use when deplibs_check_method == file_magic.
21542 file_magic_cmd=$lt_file_magic_cmd
21544 # Flag that allows shared libraries with undefined symbols to be built.
21545 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21547 # Flag that forces no undefined symbols.
21548 no_undefined_flag=$lt_no_undefined_flag_GCJ
21550 # Commands used to finish a libtool library installation in a directory.
21551 finish_cmds=$lt_finish_cmds
21553 # Same as above, but a single script fragment to be evaled but not shown.
21554 finish_eval=$lt_finish_eval
21556 # Take the output of nm and produce a listing of raw symbols and C names.
21557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21559 # Transform the output of nm in a proper C declaration
21560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21562 # Transform the output of nm in a C name address pair
21563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21565 # This is the shared library runtime path variable.
21566 runpath_var=$runpath_var
21568 # This is the shared library path variable.
21569 shlibpath_var=$shlibpath_var
21571 # Is shlibpath searched before the hard-coded library search path?
21572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21574 # How to hardcode a shared library path into an executable.
21575 hardcode_action=$hardcode_action_GCJ
21577 # Whether we should hardcode library paths into libraries.
21578 hardcode_into_libs=$hardcode_into_libs
21580 # Flag to hardcode \$libdir into a binary during linking.
21581 # This must work even if \$libdir does not exist.
21582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21584 # If ld is used when linking, flag to hardcode \$libdir into
21585 # a binary during linking. This must work even if \$libdir does
21587 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21589 # Whether we need a single -rpath flag with a separated argument.
21590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21592 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21593 # resulting binary.
21594 hardcode_direct=$hardcode_direct_GCJ
21596 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21597 # resulting binary.
21598 hardcode_minus_L=$hardcode_minus_L_GCJ
21600 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21601 # the resulting binary.
21602 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21604 # Set to yes if building a shared library automatically hardcodes DIR into the library
21605 # and all subsequent libraries and executables linked against it.
21606 hardcode_automatic=$hardcode_automatic_GCJ
21608 # Variables whose values should be saved in libtool wrapper scripts and
21609 # restored at relink time.
21610 variables_saved_for_relink="$variables_saved_for_relink"
21612 # Whether libtool must link a program against all its dependency libraries.
21613 link_all_deplibs=$link_all_deplibs_GCJ
21615 # Compile-time system search path for libraries
21616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21618 # Run-time system search path for libraries
21619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21621 # Fix the shell variable \$srcfile for the compiler.
21622 fix_srcfile_path=$lt_fix_srcfile_path
21624 # Set to yes if exported symbols are required.
21625 always_export_symbols=$always_export_symbols_GCJ
21627 # The commands to list exported symbols.
21628 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21630 # The commands to extract the exported symbol list from a shared archive.
21631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21633 # Symbols that should not be listed in the preloaded symbols.
21634 exclude_expsyms=$lt_exclude_expsyms_GCJ
21636 # Symbols that must always be exported.
21637 include_expsyms=$lt_include_expsyms_GCJ
21639 # ### END LIBTOOL TAG CONFIG: $tagname
21645 # If there is no Makefile yet, we rely on a make rule to execute
21646 # `config.status --recheck' to rerun these tests and create the
21647 # libtool script then.
21648 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21649 if test -f "$ltmain_in"; then
21650 test -f Makefile && make "$ltmain"
21656 ac_cpp='$CPP $CPPFLAGS'
21657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21671 # Source file extension for RC test sources.
21674 # Object file extension for compiled RC test sources.
21678 # Code to be used in simple compile tests
21679 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21681 # Code to be used in simple link tests
21682 lt_simple_link_test_code="$lt_simple_compile_test_code"
21684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21686 # If no C compiler was specified, use CC.
21689 # If no C compiler flags were specified, use CFLAGS.
21690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21692 # Allow CC to be a program name with arguments.
21696 # save warnings/boilerplate of simple test code
21697 ac_outfile=conftest.$ac_objext
21698 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21699 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21700 _lt_compiler_boilerplate=`cat conftest.err`
21703 ac_outfile=conftest.$ac_objext
21704 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21705 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21706 _lt_linker_boilerplate=`cat conftest.err`
21710 # Allow CC to be a program name with arguments.
21715 for cc_temp in $compiler""; do
21717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21723 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21725 lt_cv_prog_compiler_c_o_RC=yes
21727 # The else clause should only fire when bootstrapping the
21728 # libtool distribution, otherwise you forgot to ship ltmain.sh
21729 # with your package, and you will get complaints that there are
21730 # no rules to generate ltmain.sh.
21731 if test -f "$ltmain"; then
21732 # See if we are running on zsh, and set the options which allow our commands through
21733 # without removal of \ escapes.
21734 if test -n "${ZSH_VERSION+set}" ; then
21735 setopt NO_GLOB_SUBST
21737 # Now quote all the things that may contain metacharacters while being
21738 # careful not to overquote the AC_SUBSTed values. We take copies of the
21739 # variables and quote the copies for generation of the libtool script.
21740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21744 deplibs_check_method reload_flag reload_cmds need_locks \
21745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21746 lt_cv_sys_global_symbol_to_c_name_address \
21747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21748 old_postinstall_cmds old_postuninstall_cmds \
21752 lt_prog_compiler_wl_RC \
21753 lt_prog_compiler_pic_RC \
21754 lt_prog_compiler_static_RC \
21755 lt_prog_compiler_no_builtin_flag_RC \
21756 export_dynamic_flag_spec_RC \
21757 thread_safe_flag_spec_RC \
21758 whole_archive_flag_spec_RC \
21759 enable_shared_with_static_runtimes_RC \
21760 old_archive_cmds_RC \
21761 old_archive_from_new_cmds_RC \
21762 predep_objects_RC \
21763 postdep_objects_RC \
21766 compiler_lib_search_path_RC \
21767 compiler_lib_search_dirs_RC \
21769 archive_expsym_cmds_RC \
21770 postinstall_cmds_RC \
21771 postuninstall_cmds_RC \
21772 old_archive_from_expsyms_cmds_RC \
21773 allow_undefined_flag_RC \
21774 no_undefined_flag_RC \
21775 export_symbols_cmds_RC \
21776 hardcode_libdir_flag_spec_RC \
21777 hardcode_libdir_flag_spec_ld_RC \
21778 hardcode_libdir_separator_RC \
21779 hardcode_automatic_RC \
21781 module_expsym_cmds_RC \
21782 lt_cv_prog_compiler_c_o_RC \
21783 fix_srcfile_path_RC \
21784 exclude_expsyms_RC \
21785 include_expsyms_RC; do
21788 old_archive_cmds_RC | \
21789 old_archive_from_new_cmds_RC | \
21790 archive_cmds_RC | \
21791 archive_expsym_cmds_RC | \
21793 module_expsym_cmds_RC | \
21794 old_archive_from_expsyms_cmds_RC | \
21795 export_symbols_cmds_RC | \
21796 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21797 postinstall_cmds | postuninstall_cmds | \
21798 old_postinstall_cmds | old_postuninstall_cmds | \
21799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21800 # Double-quote double-evaled strings.
21801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21810 *'\$0 --fallback-echo"')
21811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21817 cat <<__EOF__ >> "$cfgfile"
21818 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21822 # Shell to use when invoking shell scripts.
21825 # Whether or not to build shared libraries.
21826 build_libtool_libs=$enable_shared
21828 # Whether or not to build static libraries.
21829 build_old_libs=$enable_static
21831 # Whether or not to add -lc for building shared libraries.
21832 build_libtool_need_lc=$archive_cmds_need_lc_RC
21834 # Whether or not to disallow shared libs when runtime libs are static
21835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21837 # Whether or not to optimize for fast installation.
21838 fast_install=$enable_fast_install
21841 host_alias=$host_alias
21845 # The build system.
21846 build_alias=$build_alias
21850 # An echo program that does not interpret backslashes.
21855 AR_FLAGS=$lt_AR_FLAGS
21860 # LTCC compiler flags.
21861 LTCFLAGS=$lt_LTCFLAGS
21863 # A language-specific compiler.
21866 # Is the compiler the GNU C compiler?
21872 # The linker used to build libraries.
21875 # Whether we need hard or soft links.
21878 # A BSD-compatible nm program.
21881 # A symbol stripping program
21884 # Used to examine libraries when file_magic_cmd begins "file"
21885 MAGIC_CMD=$MAGIC_CMD
21887 # Used on cygwin: DLL creation program.
21890 # Used on cygwin: object dumper.
21893 # Used on cygwin: assembler.
21896 # The name of the directory that contains temporary libtool files.
21899 # How to create reloadable object files.
21900 reload_flag=$lt_reload_flag
21901 reload_cmds=$lt_reload_cmds
21903 # How to pass a linker flag through the compiler.
21904 wl=$lt_lt_prog_compiler_wl_RC
21906 # Object file suffix (normally "o").
21907 objext="$ac_objext"
21909 # Old archive suffix (normally "a").
21912 # Shared library suffix (normally ".so").
21913 shrext_cmds='$shrext_cmds'
21915 # Executable file suffix (normally "").
21918 # Additional compiler flags for building library objects.
21919 pic_flag=$lt_lt_prog_compiler_pic_RC
21922 # What is the maximum length of a command?
21923 max_cmd_len=$lt_cv_sys_max_cmd_len
21925 # Does compiler simultaneously support -c and -o options?
21926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21928 # Must we lock files when doing compilation?
21929 need_locks=$lt_need_locks
21931 # Do we need the lib prefix for modules?
21932 need_lib_prefix=$need_lib_prefix
21934 # Do we need a version for libraries?
21935 need_version=$need_version
21937 # Whether dlopen is supported.
21938 dlopen_support=$enable_dlopen
21940 # Whether dlopen of programs is supported.
21941 dlopen_self=$enable_dlopen_self
21943 # Whether dlopen of statically linked programs is supported.
21944 dlopen_self_static=$enable_dlopen_self_static
21946 # Compiler flag to prevent dynamic linking.
21947 link_static_flag=$lt_lt_prog_compiler_static_RC
21949 # Compiler flag to turn off builtin functions.
21950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21952 # Compiler flag to allow reflexive dlopens.
21953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21955 # Compiler flag to generate shared objects directly from archives.
21956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21958 # Compiler flag to generate thread-safe objects.
21959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21961 # Library versioning type.
21962 version_type=$version_type
21964 # Format of library name prefix.
21965 libname_spec=$lt_libname_spec
21967 # List of archive names. First name is the real one, the rest are links.
21968 # The last name is the one that the linker finds with -lNAME.
21969 library_names_spec=$lt_library_names_spec
21971 # The coded name of the library, if different from the real name.
21972 soname_spec=$lt_soname_spec
21974 # Commands used to build and install an old-style archive.
21976 old_archive_cmds=$lt_old_archive_cmds_RC
21977 old_postinstall_cmds=$lt_old_postinstall_cmds
21978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21980 # Create an old-style archive from a shared archive.
21981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21983 # Create a temporary old-style archive to link instead of a shared archive.
21984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21986 # Commands used to build and install a shared archive.
21987 archive_cmds=$lt_archive_cmds_RC
21988 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21989 postinstall_cmds=$lt_postinstall_cmds
21990 postuninstall_cmds=$lt_postuninstall_cmds
21992 # Commands used to build a loadable module (assumed same as above if empty)
21993 module_cmds=$lt_module_cmds_RC
21994 module_expsym_cmds=$lt_module_expsym_cmds_RC
21996 # Commands to strip libraries.
21997 old_striplib=$lt_old_striplib
21998 striplib=$lt_striplib
22000 # Dependencies to place before the objects being linked to create a
22002 predep_objects=$lt_predep_objects_RC
22004 # Dependencies to place after the objects being linked to create a
22006 postdep_objects=$lt_postdep_objects_RC
22008 # Dependencies to place before the objects being linked to create a
22010 predeps=$lt_predeps_RC
22012 # Dependencies to place after the objects being linked to create a
22014 postdeps=$lt_postdeps_RC
22016 # The directories searched by this compiler when creating a shared
22018 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22020 # The library search path used internally by the compiler when linking
22021 # a shared library.
22022 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22024 # Method to check whether dependent libraries are shared objects.
22025 deplibs_check_method=$lt_deplibs_check_method
22027 # Command to use when deplibs_check_method == file_magic.
22028 file_magic_cmd=$lt_file_magic_cmd
22030 # Flag that allows shared libraries with undefined symbols to be built.
22031 allow_undefined_flag=$lt_allow_undefined_flag_RC
22033 # Flag that forces no undefined symbols.
22034 no_undefined_flag=$lt_no_undefined_flag_RC
22036 # Commands used to finish a libtool library installation in a directory.
22037 finish_cmds=$lt_finish_cmds
22039 # Same as above, but a single script fragment to be evaled but not shown.
22040 finish_eval=$lt_finish_eval
22042 # Take the output of nm and produce a listing of raw symbols and C names.
22043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22045 # Transform the output of nm in a proper C declaration
22046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22048 # Transform the output of nm in a C name address pair
22049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22051 # This is the shared library runtime path variable.
22052 runpath_var=$runpath_var
22054 # This is the shared library path variable.
22055 shlibpath_var=$shlibpath_var
22057 # Is shlibpath searched before the hard-coded library search path?
22058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22060 # How to hardcode a shared library path into an executable.
22061 hardcode_action=$hardcode_action_RC
22063 # Whether we should hardcode library paths into libraries.
22064 hardcode_into_libs=$hardcode_into_libs
22066 # Flag to hardcode \$libdir into a binary during linking.
22067 # This must work even if \$libdir does not exist.
22068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22070 # If ld is used when linking, flag to hardcode \$libdir into
22071 # a binary during linking. This must work even if \$libdir does
22073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22075 # Whether we need a single -rpath flag with a separated argument.
22076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22079 # resulting binary.
22080 hardcode_direct=$hardcode_direct_RC
22082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22083 # resulting binary.
22084 hardcode_minus_L=$hardcode_minus_L_RC
22086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22087 # the resulting binary.
22088 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22090 # Set to yes if building a shared library automatically hardcodes DIR into the library
22091 # and all subsequent libraries and executables linked against it.
22092 hardcode_automatic=$hardcode_automatic_RC
22094 # Variables whose values should be saved in libtool wrapper scripts and
22095 # restored at relink time.
22096 variables_saved_for_relink="$variables_saved_for_relink"
22098 # Whether libtool must link a program against all its dependency libraries.
22099 link_all_deplibs=$link_all_deplibs_RC
22101 # Compile-time system search path for libraries
22102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22104 # Run-time system search path for libraries
22105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22107 # Fix the shell variable \$srcfile for the compiler.
22108 fix_srcfile_path=$lt_fix_srcfile_path
22110 # Set to yes if exported symbols are required.
22111 always_export_symbols=$always_export_symbols_RC
22113 # The commands to list exported symbols.
22114 export_symbols_cmds=$lt_export_symbols_cmds_RC
22116 # The commands to extract the exported symbol list from a shared archive.
22117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22119 # Symbols that should not be listed in the preloaded symbols.
22120 exclude_expsyms=$lt_exclude_expsyms_RC
22122 # Symbols that must always be exported.
22123 include_expsyms=$lt_include_expsyms_RC
22125 # ### END LIBTOOL TAG CONFIG: $tagname
22131 # If there is no Makefile yet, we rely on a make rule to execute
22132 # `config.status --recheck' to rerun these tests and create the
22133 # libtool script then.
22134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22135 if test -f "$ltmain_in"; then
22136 test -f Makefile && make "$ltmain"
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22152 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22153 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22154 { (exit 1); exit 1; }; }
22158 # Append the new tag name to the list of available tags.
22159 if test -n "$tagname" ; then
22160 available_tags="$available_tags $tagname"
22166 # Now substitute the updated list of available tags.
22167 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22168 mv "${ofile}T" "$ofile"
22172 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22173 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22174 { (exit 1); exit 1; }; }
22180 # This can be used to rebuild libtool when needed
22181 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22183 # Always use our own libtool.
22184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22186 # Prevent multiple expansion
22209 # Check for AViiON Machines running DGUX
22210 # FIXME: Should this be moved down to below the gc-debug processing?
22213 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22214 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
22215 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
22216 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22217 $as_echo_n "(cached) " >&6
22219 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
22220 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
22222 # Is the header compilable?
22223 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
22224 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 $ac_includes_default
22232 #include <sys/dg_sys_info.h>
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22252 ac_header_compiler=yes
22254 $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ac_header_compiler=no
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22262 $as_echo "$ac_header_compiler" >&6; }
22264 # Is the header present?
22265 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
22266 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 #include <sys/dg_sys_info.h>
22275 if { (ac_try="$ac_cpp conftest.$ac_ext"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22281 $as_echo "$ac_try_echo") >&5
22282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22284 grep -v '^ *+' conftest.er1 >conftest.err
22286 cat conftest.err >&5
22287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } >/dev/null && {
22289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22292 ac_header_preproc=yes
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_header_preproc=no
22300 rm -f conftest.err conftest.$ac_ext
22301 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22302 $as_echo "$ac_header_preproc" >&6; }
22304 # So? What about this header?
22305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
22308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22309 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
22310 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
22311 ac_header_preproc=yes
22314 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
22315 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
22316 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
22317 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
22318 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
22319 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
22320 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
22321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
22322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
22323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
22325 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
22327 ## -------------------------------- ##
22328 ## Report this to Hans.Boehm@hp.com ##
22329 ## -------------------------------- ##
22331 ) | sed "s/^/$as_me: WARNING: /" >&2
22334 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
22335 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
22336 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
22337 $as_echo_n "(cached) " >&6
22339 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
22341 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
22342 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
22345 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
22351 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
22352 if test $ac_is_dgux = yes; then
22353 if test "$enable_gc_debug" = "yes"; then
22354 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22355 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22357 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22358 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
22365 # Check whether --with-target-subdir was given.
22366 if test "${with_target_subdir+set}" = set; then
22367 withval=$with_target_subdir;
22371 # Check whether --with-cross-host was given.
22372 if test "${with_cross_host+set}" = set; then
22373 withval=$with_cross_host;
22377 # automake wants to see AC_EXEEXT. But we don't need it. And having
22378 # it is actually a problem, because the compiler we're passed can't
22379 # necessarily do a full link. So we fool automake here.
22381 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
22382 # to nothing, so nothing would remain between `then' and `fi' if it
22383 # were not for the `:' below.
22388 { $as_echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
22389 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
22392 if test "$GCC" = yes; then
22393 { $as_echo "$as_me:$LINENO: result: yes" >&5
22394 $as_echo "yes" >&6; }
22396 for i in $CFLAGS; do
22401 new_CFLAGS="$new_CFLAGS $i"
22405 CFLAGS="$new_CFLAGS"
22407 { $as_echo "$as_me:$LINENO: result: no" >&5
22408 $as_echo "no" >&6; }
22411 *) { $as_echo "$as_me:$LINENO: result: no" >&5
22412 $as_echo "no" >&6; } ;;
22416 cat >>confdefs.h <<\_ACEOF
22417 #define NO_EXECUTE_PERMISSION 1
22421 cat >>confdefs.h <<\_ACEOF
22422 #define ALL_INTERIOR_POINTERS 1
22427 # Check whether --enable-gcj-support was given.
22428 if test "${enable_gcj_support+set}" = set; then
22429 enableval=$enable_gcj_support;
22432 if test x"$enable_gcj_support" != xno; then
22433 ENABLE_GCJ_SUPPORT_TRUE=
22434 ENABLE_GCJ_SUPPORT_FALSE='#'
22436 ENABLE_GCJ_SUPPORT_TRUE='#'
22437 ENABLE_GCJ_SUPPORT_FALSE=
22440 if test x"$enable_gcj_support" != xno; then
22442 cat >>confdefs.h <<\_ACEOF
22443 #define GC_GCJ_SUPPORT 1
22456 # Check whether --enable-gc-debug was given.
22457 if test "${enable_gc_debug+set}" = set; then
22458 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
22459 { $as_echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
22460 $as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
22462 cat >>confdefs.h <<\_ACEOF
22463 #define KEEP_BACK_PTRS 1
22466 keep_back_ptrs=true
22468 cat >>confdefs.h <<\_ACEOF
22469 #define DBG_HDRS_ALL 1
22474 cat >>confdefs.h <<\_ACEOF
22475 #define MAKE_BACK_GRAPH 1
22478 cat >>confdefs.h <<\_ACEOF
22479 #define SAVE_CALL_COUNT 8
22482 { $as_echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
22483 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
22484 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
22485 $as_echo_n "(cached) " >&6
22487 ac_check_lib_save_LIBS=$LIBS
22488 LIBS="-lunwind $LIBS"
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22496 /* Override any GCC internal prototype to avoid an error.
22497 Use char because int might match the return type of a GCC
22498 builtin and then its argument prototype would still apply. */
22506 return backtrace ();
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (ac_try="$ac_link"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22518 $as_echo "$ac_try_echo") >&5
22519 (eval "$ac_link") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest$ac_exeext && {
22529 test "$cross_compiling" = yes ||
22530 $as_test_x conftest$ac_exeext
22532 ac_cv_lib_unwind_backtrace=yes
22534 $as_echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 ac_cv_lib_unwind_backtrace=no
22540 rm -rf conftest.dSYM
22541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22542 conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22545 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
22546 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
22547 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then
22549 cat >>confdefs.h <<\_ACEOF
22550 #define GC_HAVE_BUILTIN_BACKTRACE 1
22553 UNWINDLIBS=-lunwind
22554 { $as_echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
22555 $as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
22560 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
22561 cat >>confdefs.h <<\_ACEOF
22562 #define MAKE_BACK_GRAPH 1
22565 { $as_echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
22566 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
22567 cat >>confdefs.h <<\_ACEOF
22568 #define SAVE_CALL_COUNT 8
22573 cat >>confdefs.h <<\_ACEOF
22574 #define MAKE_BACK_GRAPH 1
22582 if test x"$keep_back_ptrs" = xtrue; then
22583 KEEP_BACK_PTRS_TRUE=
22584 KEEP_BACK_PTRS_FALSE='#'
22586 KEEP_BACK_PTRS_TRUE='#'
22587 KEEP_BACK_PTRS_FALSE=
22591 # Check whether --enable-java-finalization was given.
22592 if test "${enable_java_finalization+set}" = set; then
22593 enableval=$enable_java_finalization;
22596 if test x"$enable_java_finalization" != xno; then
22598 cat >>confdefs.h <<\_ACEOF
22599 #define JAVA_FINALIZATION 1
22604 # Check whether --enable-atomic-uncollectable was given.
22605 if test "${enable_atomic_uncollectable+set}" = set; then
22606 enableval=$enable_atomic_uncollectable;
22609 if test x"$enable_atomic_uncollectible" != x"no"; then
22611 cat >>confdefs.h <<\_ACEOF
22612 #define ATOMIC_UNCOLLECTABLE 1
22617 # Check whether --enable-redirect-malloc was given.
22618 if test "${enable_redirect_malloc+set}" = set; then
22619 enableval=$enable_redirect_malloc;
22623 if test "${enable_redirect_malloc}" = yes; then
22624 if test "${enable_gc_debug}" = yes; then
22626 cat >>confdefs.h <<\_ACEOF
22627 #define REDIRECT_MALLOC GC_debug_malloc_replacement
22631 cat >>confdefs.h <<\_ACEOF
22632 #define REDIRECT_REALLOC GC_debug_realloc_replacement
22636 cat >>confdefs.h <<\_ACEOF
22637 #define REDIRECT_FREE GC_debug_free
22641 cat >>confdefs.h <<\_ACEOF
22642 #define REDIRECT_MALLOC GC_malloc
22647 cat >>confdefs.h <<\_ACEOF
22648 #define GC_USE_DLOPEN_WRAP 1
22653 # Check whether --enable-large-config was given.
22654 if test "${enable_large_config+set}" = set; then
22655 enableval=$enable_large_config;
22659 if test "${enable_large_config}" = yes; then
22661 cat >>confdefs.h <<\_ACEOF
22662 #define LARGE_CONFIG 1
22667 if test -n "${with_cross_host}"; then
22669 cat >>confdefs.h <<\_ACEOF
22674 cat >>confdefs.h <<\_ACEOF
22675 #define SMALL_CONFIG 1
22679 cat >>confdefs.h <<\_ACEOF
22680 #define NO_DEBUGGING 1
22688 # Check whether --enable-gc-assertions was given.
22689 if test "${enable_gc_assertions+set}" = set; then
22690 enableval=$enable_gc_assertions;
22693 if test "${enable_gc_assertions}" = yes; then
22695 cat >>confdefs.h <<\_ACEOF
22696 #define GC_ASSERTIONS 1
22701 # Check whether --enable-munmap was given.
22702 if test "${enable_munmap+set}" = set; then
22703 enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
22706 { { $as_echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
22707 $as_echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
22708 { (exit 1); exit 1; }; }
22714 if test "${enable_munmap}" != ""; then
22716 cat >>confdefs.h <<\_ACEOF
22721 cat >>confdefs.h <<\_ACEOF
22722 #define USE_MUNMAP 1
22725 if test "${MUNMAP_THRESHOLD}" = "yes"; then
22729 cat >>confdefs.h <<_ACEOF
22730 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
22735 if test -z "$with_cross_host"; then
22737 USE_LIBDIR_FALSE='#'
22739 USE_LIBDIR_TRUE='#'
22748 # Do we want to use an external libatomic_ops? By default use it if it's
22751 # Check whether --with-libatomic-ops was given.
22752 if test "${with_libatomic_ops+set}" = set; then
22753 withval=$with_libatomic_ops;
22755 with_libatomic_ops=check
22759 # Check for an external libatomic_ops if the answer was yes or check. If not
22760 # found, fail on yes, and convert check to no.
22761 if test x"$with_libatomic_ops" != xno; then
22762 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22763 { $as_echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
22764 $as_echo_n "checking for atomic_ops.h... " >&6; }
22765 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22766 $as_echo_n "(cached) " >&6
22768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
22769 $as_echo "$ac_cv_header_atomic_ops_h" >&6; }
22771 # Is the header compilable?
22772 { $as_echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
22773 $as_echo_n "checking atomic_ops.h usability... " >&6; }
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 $ac_includes_default
22781 #include <atomic_ops.h>
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22790 $as_echo "$ac_try_echo") >&5
22791 (eval "$ac_compile") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest.$ac_objext; then
22801 ac_header_compiler=yes
22803 $as_echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ac_header_compiler=no
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22811 $as_echo "$ac_header_compiler" >&6; }
22813 # Is the header present?
22814 { $as_echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
22815 $as_echo_n "checking atomic_ops.h presence... " >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 #include <atomic_ops.h>
22824 if { (ac_try="$ac_cpp conftest.$ac_ext"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } >/dev/null && {
22838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22841 ac_header_preproc=yes
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_header_preproc=no
22849 rm -f conftest.err conftest.$ac_ext
22850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22851 $as_echo "$ac_header_preproc" >&6; }
22853 # So? What about this header?
22854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22856 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
22857 $as_echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22858 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
22859 $as_echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
22860 ac_header_preproc=yes
22863 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
22864 $as_echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
22865 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
22866 $as_echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
22867 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
22868 $as_echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
22869 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
22870 $as_echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
22871 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
22872 $as_echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
22873 { $as_echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
22874 $as_echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
22876 ## -------------------------------- ##
22877 ## Report this to Hans.Boehm@hp.com ##
22878 ## -------------------------------- ##
22880 ) | sed "s/^/$as_me: WARNING: /" >&2
22883 { $as_echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
22884 $as_echo_n "checking for atomic_ops.h... " >&6; }
22885 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
22886 $as_echo_n "(cached) " >&6
22888 ac_cv_header_atomic_ops_h=$ac_header_preproc
22890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
22891 $as_echo "$ac_cv_header_atomic_ops_h" >&6; }
22894 if test "x$ac_cv_header_atomic_ops_h" = x""yes; then
22897 if test x"$with_libatomic_ops" != xcheck; then
22898 { { $as_echo "$as_me:$LINENO: error: A pre-installed libatomic_ops was not found." >&5
22899 $as_echo "$as_me: error: A pre-installed libatomic_ops was not found." >&2;}
22900 { (exit 1); exit 1; }; }
22903 with_libatomic_ops=no
22910 # Finally, emit the definitions for bundled or pre-installed AO.
22911 { $as_echo "$as_me:$LINENO: checking which libatomic_ops to use" >&5
22912 $as_echo_n "checking which libatomic_ops to use... " >&6; }
22915 if test x"$with_libatomic_ops" != xno; then
22916 { $as_echo "$as_me:$LINENO: result: pre-installed" >&5
22917 $as_echo "pre-installed" >&6; }
22918 ATOMIC_OPS_LIBS="-latomic_ops"
22921 { $as_echo "$as_me:$LINENO: result: bundled" >&5
22922 $as_echo "bundled" >&6; }
22923 subdirs="$subdirs libatomic_ops"
22928 if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
22929 USE_INTERNAL_LIBATOMIC_OPS_TRUE=
22930 USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
22932 USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
22933 USE_INTERNAL_LIBATOMIC_OPS_FALSE=
22936 if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
22937 NEED_ATOMIC_OPS_ASM_TRUE=
22938 NEED_ATOMIC_OPS_ASM_FALSE='#'
22940 NEED_ATOMIC_OPS_ASM_TRUE='#'
22941 NEED_ATOMIC_OPS_ASM_FALSE=
22946 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
22949 ac_config_commands="$ac_config_commands default"
22952 cat >confcache <<\_ACEOF
22953 # This file is a shell script that caches the results of configure
22954 # tests run on this system so they can be shared between configure
22955 # scripts and configure runs, see configure's option --config-cache.
22956 # It is not useful on other systems. If it contains results you don't
22957 # want to keep, you may remove or edit it.
22959 # config.status only pays attention to the cache file if you give it
22960 # the --recheck option to rerun configure.
22962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22964 # following values.
22968 # The following way of writing the cache mishandles newlines in values,
22969 # but we know of no workaround that is simple, portable, and efficient.
22970 # So, we kill variables containing newlines.
22971 # Ultrix sh set writes to stderr and can't be redirected directly,
22972 # and sets the high bit in the cache file unless we assign to the vars.
22974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22975 eval ac_val=\$$ac_var
22979 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22983 _ | IFS | as_nl) ;; #(
22984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22985 *) $as_unset $ac_var ;;
22991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22992 *${as_nl}ac_space=\ *)
22993 # `set' does not quote correctly, so add quotes (double-quote
22994 # substitution turns \\\\ into \\, and sed turns \\ into \).
22997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23000 # `set' quotes correctly as required by POSIX, so do not add quotes.
23001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23015 if test -w "$cache_file"; then
23016 test "x$cache_file" != "x/dev/null" &&
23017 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23018 $as_echo "$as_me: updating cache $cache_file" >&6;}
23019 cat confcache >$cache_file
23021 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23028 # Let make expand exec_prefix.
23029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23031 DEFS=-DHAVE_CONFIG_H
23035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23036 # 1. Remove the extension, and $U if already installed.
23037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23040 # will be set to the directory where LIBOBJS objects are built.
23041 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23042 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23044 LIBOBJS=$ac_libobjs
23046 LTLIBOBJS=$ac_ltlibobjs
23049 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23050 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23051 Usually this means the macro was only invoked conditionally." >&5
23052 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23053 Usually this means the macro was only invoked conditionally." >&2;}
23054 { (exit 1); exit 1; }; }
23056 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23057 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23058 Usually this means the macro was only invoked conditionally." >&5
23059 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23060 Usually this means the macro was only invoked conditionally." >&2;}
23061 { (exit 1); exit 1; }; }
23063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23064 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23065 Usually this means the macro was only invoked conditionally." >&5
23066 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23067 Usually this means the macro was only invoked conditionally." >&2;}
23068 { (exit 1); exit 1; }; }
23070 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23071 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23072 Usually this means the macro was only invoked conditionally." >&5
23073 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23074 Usually this means the macro was only invoked conditionally." >&2;}
23075 { (exit 1); exit 1; }; }
23077 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23078 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
23079 Usually this means the macro was only invoked conditionally." >&5
23080 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
23081 Usually this means the macro was only invoked conditionally." >&2;}
23082 { (exit 1); exit 1; }; }
23084 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
23085 { { $as_echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
23086 Usually this means the macro was only invoked conditionally." >&5
23087 $as_echo "$as_me: error: conditional \"THREADS\" was never defined.
23088 Usually this means the macro was only invoked conditionally." >&2;}
23089 { (exit 1); exit 1; }; }
23091 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
23092 { { $as_echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
23093 Usually this means the macro was only invoked conditionally." >&5
23094 $as_echo "$as_me: error: conditional \"PTHREADS\" was never defined.
23095 Usually this means the macro was only invoked conditionally." >&2;}
23096 { (exit 1); exit 1; }; }
23098 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
23099 { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
23100 Usually this means the macro was only invoked conditionally." >&5
23101 $as_echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
23102 Usually this means the macro was only invoked conditionally." >&2;}
23103 { (exit 1); exit 1; }; }
23105 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
23106 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
23107 Usually this means the macro was only invoked conditionally." >&5
23108 $as_echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
23109 Usually this means the macro was only invoked conditionally." >&2;}
23110 { (exit 1); exit 1; }; }
23112 if test -z "${OPENBSD_THREADS_TRUE}" && test -z "${OPENBSD_THREADS_FALSE}"; then
23113 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENBSD_THREADS\" was never defined.
23114 Usually this means the macro was only invoked conditionally." >&5
23115 $as_echo "$as_me: error: conditional \"OPENBSD_THREADS\" was never defined.
23116 Usually this means the macro was only invoked conditionally." >&2;}
23117 { (exit 1); exit 1; }; }
23119 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
23120 { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
23121 Usually this means the macro was only invoked conditionally." >&5
23122 $as_echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
23123 Usually this means the macro was only invoked conditionally." >&2;}
23124 { (exit 1); exit 1; }; }
23126 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
23127 { { $as_echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
23128 Usually this means the macro was only invoked conditionally." >&5
23129 $as_echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
23130 Usually this means the macro was only invoked conditionally." >&2;}
23131 { (exit 1); exit 1; }; }
23133 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
23134 { { $as_echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
23135 Usually this means the macro was only invoked conditionally." >&5
23136 $as_echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
23137 Usually this means the macro was only invoked conditionally." >&2;}
23138 { (exit 1); exit 1; }; }
23140 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
23141 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
23142 Usually this means the macro was only invoked conditionally." >&5
23143 $as_echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
23144 Usually this means the macro was only invoked conditionally." >&2;}
23145 { (exit 1); exit 1; }; }
23147 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
23148 { { $as_echo "$as_me:$LINENO: error: conditional \"KEEP_BACK_PTRS\" was never defined.
23149 Usually this means the macro was only invoked conditionally." >&5
23150 $as_echo "$as_me: error: conditional \"KEEP_BACK_PTRS\" was never defined.
23151 Usually this means the macro was only invoked conditionally." >&2;}
23152 { (exit 1); exit 1; }; }
23154 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
23155 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
23156 Usually this means the macro was only invoked conditionally." >&5
23157 $as_echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
23158 Usually this means the macro was only invoked conditionally." >&2;}
23159 { (exit 1); exit 1; }; }
23161 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
23162 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
23163 Usually this means the macro was only invoked conditionally." >&5
23164 $as_echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
23165 Usually this means the macro was only invoked conditionally." >&2;}
23166 { (exit 1); exit 1; }; }
23168 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
23169 { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
23170 Usually this means the macro was only invoked conditionally." >&5
23171 $as_echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
23172 Usually this means the macro was only invoked conditionally." >&2;}
23173 { (exit 1); exit 1; }; }
23176 : ${CONFIG_STATUS=./config.status}
23178 ac_clean_files_save=$ac_clean_files
23179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23180 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23182 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23184 # Generated by $as_me.
23185 # Run this file to recreate the current configuration.
23186 # Compiler output produced by configure, useful for debugging
23187 # configure, is in config.log if it exists.
23190 ac_cs_recheck=false
23192 SHELL=\${CONFIG_SHELL-$SHELL}
23195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23196 ## --------------------- ##
23197 ## M4sh Initialization. ##
23198 ## --------------------- ##
23200 # Be more Bourne compatible
23201 DUALCASE=1; export DUALCASE # for MKS sh
23202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23206 # is contrary to our usage. Disable this feature.
23207 alias -g '${1+"$@"}'='"$@"'
23208 setopt NO_GLOB_SUBST
23210 case `(set -o) 2>/dev/null` in
23211 *posix*) set -o posix ;;
23220 # Avoid depending upon Character Ranges.
23221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23224 as_cr_digits='0123456789'
23225 as_cr_alnum=$as_cr_Letters$as_cr_digits
23230 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23231 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23234 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23235 as_echo='printf %s\n'
23236 as_echo_n='printf %s'
23238 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23239 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23240 as_echo_n='/usr/ucb/echo -n'
23242 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23243 as_echo_n_body='eval
23247 expr "X$arg" : "X\\(.*\\)$as_nl";
23248 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23250 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23252 export as_echo_n_body
23253 as_echo_n='sh -c $as_echo_n_body as_echo'
23255 export as_echo_body
23256 as_echo='sh -c $as_echo_body as_echo'
23259 # The user is always right.
23260 if test "${PATH_SEPARATOR+set}" != set; then
23262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23263 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23268 # Support unset when possible.
23269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23277 # We need space, tab and new line, in precisely that order. Quoting is
23278 # there to prevent editors from complaining about space-tab.
23279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23280 # splitting by setting IFS to empty value.)
23283 # Find who we are. Look in the path if we contain no directory separator.
23285 *[\\/]* ) as_myself=$0 ;;
23286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23287 for as_dir in $PATH
23290 test -z "$as_dir" && as_dir=.
23291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23297 # We did not find ourselves, most probably we were run as `sh COMMAND'
23298 # in which case we are not to be found in the path.
23299 if test "x$as_myself" = x; then
23302 if test ! -f "$as_myself"; then
23303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23304 { (exit 1); exit 1; }
23307 # Work around bugs in pre-3.0 UWIN ksh.
23308 for as_var in ENV MAIL MAILPATH
23309 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23321 # Required to use basename.
23322 if expr a : '\(a\)' >/dev/null 2>&1 &&
23323 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23329 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23330 as_basename=basename
23336 # Name of the executable.
23337 as_me=`$as_basename -- "$0" ||
23338 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23339 X"$0" : 'X\(//\)$' \| \
23340 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23342 sed '/^.*\/\([^/][^/]*\)\/*$/{
23361 as_lineno_1=$LINENO
23362 as_lineno_2=$LINENO
23363 test "x$as_lineno_1" != "x$as_lineno_2" &&
23364 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23366 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23367 # uniformly replaced by the line number. The first 'sed' inserts a
23368 # line-number line after each line using $LINENO; the second 'sed'
23369 # does the real work. The second script uses 'N' to pair each
23370 # line-number line with the line containing $LINENO, and appends
23371 # trailing '-' during substitution so that $LINENO is not a special
23372 # case at line end.
23373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23374 # scripts with optimization help from Paolo Bonzini. Blame Lee
23375 # E. McMahon (1931-1989) for sed's syntax. :-)
23387 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23390 ' >$as_me.lineno &&
23391 chmod +x "$as_me.lineno" ||
23392 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23393 { (exit 1); exit 1; }; }
23395 # Don't try to exec as it changes $[0], causing all sort of problems
23396 # (the dirname of $[0] is not the place where we might find the
23397 # original and so on. Autoconf is especially sensitive to this).
23398 . "./$as_me.lineno"
23399 # Exit status is that of the last command.
23404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23410 ECHO_C= ECHO_N= ECHO_T=
23411 case `echo -n x` in
23413 case `echo 'x\c'` in
23414 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23420 if expr a : '\(a\)' >/dev/null 2>&1 &&
23421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23427 rm -f conf$$ conf$$.exe conf$$.file
23428 if test -d conf$$.dir; then
23429 rm -f conf$$.dir/conf$$.file
23432 mkdir conf$$.dir 2>/dev/null
23434 if (echo >conf$$.file) 2>/dev/null; then
23435 if ln -s conf$$.file conf$$ 2>/dev/null; then
23437 # ... but there are two gotchas:
23438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23440 # In both cases, we have to default to `cp -p'.
23441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23443 elif ln conf$$.file conf$$ 2>/dev/null; then
23451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23452 rmdir conf$$.dir 2>/dev/null
23454 if mkdir -p . 2>/dev/null; then
23457 test -d ./-p && rmdir ./-p
23461 if test -x / >/dev/null 2>&1; then
23462 as_test_x='test -x'
23464 if ls -dL / >/dev/null 2>&1; then
23471 if test -d "$1"; then
23477 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23478 ???[sx]*):;;*)false;;esac;fi
23482 as_executable_p=$as_test_x
23484 # Sed expression to map a string onto a valid CPP name.
23485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23487 # Sed expression to map a string onto a valid variable name.
23488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23493 # Save the log message, to keep $[0] and so on meaningful, and to
23494 # report actual input values of CONFIG_FILES etc. instead of their
23495 # values after options handling.
23497 This file was extended by gc $as_me 7.2alpha4, which was
23498 generated by GNU Autoconf 2.63. Invocation command line was
23500 CONFIG_FILES = $CONFIG_FILES
23501 CONFIG_HEADERS = $CONFIG_HEADERS
23502 CONFIG_LINKS = $CONFIG_LINKS
23503 CONFIG_COMMANDS = $CONFIG_COMMANDS
23506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23511 case $ac_config_files in *"
23512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23515 case $ac_config_headers in *"
23516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23521 # Files that config.status was made for.
23522 config_files="$ac_config_files"
23523 config_headers="$ac_config_headers"
23524 config_commands="$ac_config_commands"
23528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23530 \`$as_me' instantiates files from templates according to the
23531 current configuration.
23533 Usage: $0 [OPTION]... [FILE]...
23535 -h, --help print this help, then exit
23536 -V, --version print version number and configuration settings, then exit
23537 -q, --quiet, --silent
23538 do not print progress messages
23539 -d, --debug don't remove temporary files
23540 --recheck update $as_me by reconfiguring in the same conditions
23541 --file=FILE[:TEMPLATE]
23542 instantiate the configuration file FILE
23543 --header=FILE[:TEMPLATE]
23544 instantiate the configuration header FILE
23546 Configuration files:
23549 Configuration headers:
23552 Configuration commands:
23555 Report bugs to <bug-autoconf@gnu.org>."
23558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23560 gc config.status 7.2alpha4
23561 configured by $0, generated by GNU Autoconf 2.63,
23562 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23564 Copyright (C) 2008 Free Software Foundation, Inc.
23565 This config.status script is free software; the Free Software Foundation
23566 gives unlimited permission to copy, distribute and modify it."
23573 test -n "\$AWK" || AWK=awk
23576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23577 # The default lists apply if the user does not specify any file.
23583 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23584 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23595 # Handling of the options.
23596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23598 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23599 $as_echo "$ac_cs_version"; exit ;;
23600 --debug | --debu | --deb | --de | --d | -d )
23602 --file | --fil | --fi | --f )
23605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23607 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23608 ac_need_defaults=false;;
23609 --header | --heade | --head | --hea )
23612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23614 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23615 ac_need_defaults=false;;
23617 # Conflict between --help and --header
23618 { $as_echo "$as_me: error: ambiguous option: $1
23619 Try \`$0 --help' for more information." >&2
23620 { (exit 1); exit 1; }; };;
23621 --help | --hel | -h )
23622 $as_echo "$ac_cs_usage"; exit ;;
23623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23627 # This is an error.
23628 -*) { $as_echo "$as_me: error: unrecognized option: $1
23629 Try \`$0 --help' for more information." >&2
23630 { (exit 1); exit 1; }; } ;;
23632 *) ac_config_targets="$ac_config_targets $1"
23633 ac_need_defaults=false ;;
23639 ac_configure_extra_args=
23641 if $ac_cs_silent; then
23643 ac_configure_extra_args="$ac_configure_extra_args --silent"
23647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23648 if \$ac_cs_recheck; then
23649 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23651 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23652 CONFIG_SHELL='$SHELL'
23653 export CONFIG_SHELL
23658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23662 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23663 ## Running $as_me. ##
23669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23676 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23684 # Handling of arguments.
23685 for ac_config_target in $ac_config_targets
23687 case $ac_config_target in
23688 "include/private/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/config.h" ;;
23689 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23690 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23691 "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
23692 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23694 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23695 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23696 { (exit 1); exit 1; }; };;
23701 # If the user did not use the arguments to specify the items to instantiate,
23702 # then the envvar interface is used. Set only those that are not.
23703 # We use the long form for the default assignment because of an extremely
23704 # bizarre bug on SunOS 4.1.3.
23705 if $ac_need_defaults; then
23706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23711 # Have a temporary directory for convenience. Make it in the build tree
23712 # simply because there is no reason against having it here, and in addition,
23713 # creating and moving files from /tmp can sometimes cause problems.
23714 # Hook for its removal unless debugging.
23715 # Note that there is a small window in which the directory will not be cleaned:
23716 # after its creation but before its name has been assigned to `$tmp'.
23720 trap 'exit_status=$?
23721 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23723 trap '{ (exit 1); exit 1; }' 1 2 13 15
23725 # Create a (secure) tmp directory for tmp files.
23728 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23729 test -n "$tmp" && test -d "$tmp"
23732 tmp=./conf$$-$RANDOM
23733 (umask 077 && mkdir "$tmp")
23736 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23737 { (exit 1); exit 1; }
23740 # Set up the scripts for CONFIG_FILES section.
23741 # No need to generate them if there are no CONFIG_FILES.
23742 # This happens for instance with `./config.status config.h'.
23743 if test -n "$CONFIG_FILES"; then
23747 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23748 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23751 ac_cs_awk_cr=$ac_cr
23754 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23759 echo "cat >conf$$subs.awk <<_ACEOF" &&
23760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23762 } >conf$$subs.sh ||
23763 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23764 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23765 { (exit 1); exit 1; }; }
23766 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23768 for ac_last_try in false false false false false :; do
23769 . ./conf$$subs.sh ||
23770 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23771 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23772 { (exit 1); exit 1; }; }
23774 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23775 if test $ac_delim_n = $ac_delim_num; then
23777 elif $ac_last_try; then
23778 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23779 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23780 { (exit 1); exit 1; }; }
23782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23785 rm -f conf$$subs.sh
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23792 s/^/S["/; s/!.*/"]=/
23802 s/\(.\{148\}\).*/\1/
23804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23816 s/\(.\{148\}\).*/\1/
23818 s/["\\]/\\&/g; s/^/"/; s/$/"/
23822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23827 ' <conf$$subs.awk | sed '
23832 ' >>$CONFIG_STATUS || ac_write_fail=1
23833 rm -f conf$$subs.awk
23834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23836 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23837 for (key in S) S_is_set[key] = 1
23843 nfields = split(line, field, "@")
23845 len = length(field[1])
23846 for (i = 2; i < nfields; i++) {
23848 keylen = length(key)
23849 if (S_is_set[key]) {
23851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23852 len += length(value) + length(field[++i])
23863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23868 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23869 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23870 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23871 { (exit 1); exit 1; }; }
23874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23876 # trailing colons and then remove the whole line if VPATH becomes empty
23877 # (actually we leave an empty line to preserve line numbers).
23878 if test "x$srcdir" = x.; then
23879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23880 s/:*\$(srcdir):*/:/
23881 s/:*\${srcdir}:*/:/
23883 s/^\([^=]*=[ ]*\):*/\1/
23889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23890 fi # test -n "$CONFIG_FILES"
23892 # Set up the scripts for CONFIG_HEADERS section.
23893 # No need to generate them if there are no CONFIG_HEADERS.
23894 # This happens for instance with `./config.status Makefile'.
23895 if test -n "$CONFIG_HEADERS"; then
23896 cat >"$tmp/defines.awk" <<\_ACAWK ||
23900 # Transform confdefs.h into an awk script `defines.awk', embedded as
23901 # here-document in config.status, that substitutes the proper values into
23902 # config.h.in to produce config.h.
23904 # Create a delimiter string that does not exist in confdefs.h, to ease
23905 # handling of long lines.
23907 for ac_last_try in false false :; do
23908 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23909 if test -z "$ac_t"; then
23911 elif $ac_last_try; then
23912 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23913 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23914 { (exit 1); exit 1; }; }
23916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23920 # For the awk script, D is an array of macro values keyed by name,
23921 # likewise P contains macro parameters if any. Preserve backslash
23922 # newline sequences.
23924 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23926 s/.\{148\}/&'"$ac_delim"'/g
23929 s/^[ ]*#[ ]*define[ ][ ]*/ /
23936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23938 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23943 D["\1"]=" \3\\\\\\n"\\/p
23945 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23950 s/.\{148\}/&'"$ac_delim"'/g
23955 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23958 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23960 ' <confdefs.h | sed '
23961 s/'"$ac_delim"'/"\\\
23962 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23965 for (key in D) D_is_set[key] = 1
23968 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23970 split(line, arg, " ")
23971 if (arg[1] == "#") {
23975 defundef = substr(arg[1], 2)
23978 split(mac1, mac2, "(") #)
23980 prefix = substr(line, 1, index(line, defundef) - 1)
23981 if (D_is_set[macro]) {
23982 # Preserve the white space surrounding the "#".
23983 print prefix "define", macro P[macro] D[macro]
23986 # Replace #undef with comments. This is necessary, for example,
23987 # in the case of _POSIX_SOURCE, which is predefined and required
23988 # on some systems where configure will not decide to define it.
23989 if (defundef == "undef") {
23990 print "/*", prefix defundef, macro, "*/"
23998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23999 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24000 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24001 { (exit 1); exit 1; }; }
24002 fi # test -n "$CONFIG_HEADERS"
24005 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24010 :[FHLC]) ac_mode=$ac_tag; continue;;
24012 case $ac_mode$ac_tag in
24014 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24015 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24016 { (exit 1); exit 1; }; };;
24017 :[FH]-) ac_tag=-:-;;
24018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24035 -) ac_f="$tmp/stdin";;
24036 *) # Look for the file first in the build tree, then in the source tree
24037 # (if the path is not absolute). The absolute path cannot be DOS-style,
24038 # because $ac_f cannot contain `:'.
24042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24044 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24045 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24046 { (exit 1); exit 1; }; };;
24048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24049 ac_file_inputs="$ac_file_inputs '$ac_f'"
24052 # Let's still pretend it is `configure' which instantiates (i.e., don't
24053 # use $as_me), people would be surprised to read:
24054 # /* config.h. Generated by config.status. */
24055 configure_input='Generated from '`
24056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24058 if test x"$ac_file" != x-; then
24059 configure_input="$ac_file. $configure_input"
24060 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24061 $as_echo "$as_me: creating $ac_file" >&6;}
24063 # Neutralize special characters interpreted by sed in replacement strings.
24064 case $configure_input in #(
24065 *\&* | *\|* | *\\* )
24066 ac_sed_conf_input=`$as_echo "$configure_input" |
24067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24068 *) ac_sed_conf_input=$configure_input;;
24072 *:-:* | *:-) cat >"$tmp/stdin" \
24073 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24074 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24075 { (exit 1); exit 1; }; } ;;
24080 ac_dir=`$as_dirname -- "$ac_file" ||
24081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082 X"$ac_file" : 'X\(//\)[^/]' \| \
24083 X"$ac_file" : 'X\(//\)$' \| \
24084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24085 $as_echo X"$ac_file" |
24086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24090 /^X\(\/\/\)[^/].*/{
24105 -*) as_dir=./$as_dir;;
24107 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24111 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24112 *) as_qdir=$as_dir;;
24114 as_dirs="'$as_qdir' $as_dirs"
24115 as_dir=`$as_dirname -- "$as_dir" ||
24116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24117 X"$as_dir" : 'X\(//\)[^/]' \| \
24118 X"$as_dir" : 'X\(//\)$' \| \
24119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 $as_echo X"$as_dir" |
24121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24125 /^X\(\/\/\)[^/].*/{
24138 test -d "$as_dir" && break
24140 test -z "$as_dirs" || eval "mkdir $as_dirs"
24141 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24142 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24143 { (exit 1); exit 1; }; }; }
24147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24149 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24150 # A ".." for each directory in $ac_dir_suffix.
24151 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24152 case $ac_top_builddir_sub in
24153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24157 ac_abs_top_builddir=$ac_pwd
24158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24159 # for backward compatibility:
24160 ac_top_builddir=$ac_top_build_prefix
24163 .) # We are building in place.
24165 ac_top_srcdir=$ac_top_builddir_sub
24166 ac_abs_top_srcdir=$ac_pwd ;;
24167 [\\/]* | ?:[\\/]* ) # Absolute name.
24168 ac_srcdir=$srcdir$ac_dir_suffix;
24169 ac_top_srcdir=$srcdir
24170 ac_abs_top_srcdir=$srcdir ;;
24171 *) # Relative name.
24172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24173 ac_top_srcdir=$ac_top_build_prefix$srcdir
24174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24189 ac_MKDIR_P=$MKDIR_P
24191 [\\/$]* | ?:[\\/]* ) ;;
24192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24197 # If the template does not know about datarootdir, expand it.
24198 # FIXME: This hack should be removed a few years after 2.60.
24199 ac_datarootdir_hack=; ac_datarootdir_seen=
24212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24213 *datarootdir*) ac_datarootdir_seen=yes;;
24214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24215 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24219 ac_datarootdir_hack='
24220 s&@datadir@&$datadir&g
24221 s&@docdir@&$docdir&g
24222 s&@infodir@&$infodir&g
24223 s&@localedir@&$localedir&g
24224 s&@mandir@&$mandir&g
24225 s&\\\${datarootdir}&$datarootdir&g' ;;
24229 # Neutralize VPATH when `$srcdir' = `.'.
24230 # Shell code in configure.ac might set extrasub.
24231 # FIXME: do we really want to maintain this feature?
24232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24233 ac_sed_extra="$ac_vpsub
24236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24239 s|@configure_input@|$ac_sed_conf_input|;t t
24240 s&@top_builddir@&$ac_top_builddir_sub&;t t
24241 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24242 s&@srcdir@&$ac_srcdir&;t t
24243 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24244 s&@top_srcdir@&$ac_top_srcdir&;t t
24245 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24246 s&@builddir@&$ac_builddir&;t t
24247 s&@abs_builddir@&$ac_abs_builddir&;t t
24248 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24249 s&@INSTALL@&$ac_INSTALL&;t t
24250 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24251 $ac_datarootdir_hack
24253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24254 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24256 { (exit 1); exit 1; }; }
24258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24261 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24262 which seems to be undefined. Please make sure it is defined." >&5
24263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24264 which seems to be undefined. Please make sure it is defined." >&2;}
24268 -) cat "$tmp/out" && rm -f "$tmp/out";;
24269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24271 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24272 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24273 { (exit 1); exit 1; }; }
24279 if test x"$ac_file" != x-; then
24281 $as_echo "/* $configure_input */" \
24282 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24283 } >"$tmp/config.h" \
24284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24286 { (exit 1); exit 1; }; }
24287 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24288 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24292 mv "$tmp/config.h" "$ac_file" \
24293 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24294 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24295 { (exit 1); exit 1; }; }
24298 $as_echo "/* $configure_input */" \
24299 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24300 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24301 $as_echo "$as_me: error: could not create -" >&2;}
24302 { (exit 1); exit 1; }; }
24304 # Compute "$ac_file"'s index in $config_headers.
24307 for _am_header in $config_headers :; do
24308 case $_am_header in
24309 $_am_arg | $_am_arg:* )
24312 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24315 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24316 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317 X"$_am_arg" : 'X\(//\)[^/]' \| \
24318 X"$_am_arg" : 'X\(//\)$' \| \
24319 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24320 $as_echo X"$_am_arg" |
24321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24325 /^X\(\/\/\)[^/].*/{
24337 s/.*/./; q'`/stamp-h$_am_stamp_count
24340 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24341 $as_echo "$as_me: executing $ac_file commands" >&6;}
24346 case $ac_file$ac_mode in
24347 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24348 # Strip MF so we end up with the name of the file.
24349 mf=`echo "$mf" | sed -e 's/:.*$//'`
24350 # Check whether this is an Automake generated Makefile or not.
24351 # We used to match only the files named `Makefile.in', but
24352 # some people rename them; so instead we look at the file content.
24353 # Grep'ing the first line is not enough: some people post-process
24354 # each Makefile.in and add a new line on top of each file to say so.
24355 # Grep'ing the whole file is not good either: AIX grep has a line
24356 # limit of 2048, but all sed's we know have understand at least 4000.
24357 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24358 dirpart=`$as_dirname -- "$mf" ||
24359 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24360 X"$mf" : 'X\(//\)[^/]' \| \
24361 X"$mf" : 'X\(//\)$' \| \
24362 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24368 /^X\(\/\/\)[^/].*/{
24384 # Extract the definition of DEPDIR, am__include, and am__quote
24385 # from the Makefile without running `make'.
24386 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24387 test -z "$DEPDIR" && continue
24388 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24389 test -z "am__include" && continue
24390 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24391 # When using ansi2knr, U may be empty or an underscore; expand it
24392 U=`sed -n 's/^U = //p' < "$mf"`
24393 # Find all dependency output files, they are included files with
24394 # $(DEPDIR) in their names. We invoke sed twice because it is the
24395 # simplest approach to changing $(DEPDIR) to its actual value in the
24397 for file in `sed -n "
24398 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24399 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24400 # Make sure the directory exists.
24401 test -f "$dirpart/$file" && continue
24402 fdir=`$as_dirname -- "$file" ||
24403 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24404 X"$file" : 'X\(//\)[^/]' \| \
24405 X"$file" : 'X\(//\)$' \| \
24406 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24407 $as_echo X"$file" |
24408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24412 /^X\(\/\/\)[^/].*/{
24425 { as_dir=$dirpart/$fdir
24427 -*) as_dir=./$as_dir;;
24429 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24434 *) as_qdir=$as_dir;;
24436 as_dirs="'$as_qdir' $as_dirs"
24437 as_dir=`$as_dirname -- "$as_dir" ||
24438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24439 X"$as_dir" : 'X\(//\)[^/]' \| \
24440 X"$as_dir" : 'X\(//\)$' \| \
24441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24442 $as_echo X"$as_dir" |
24443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24447 /^X\(\/\/\)[^/].*/{
24460 test -d "$as_dir" && break
24462 test -z "$as_dirs" || eval "mkdir $as_dirs"
24463 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24464 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24465 { (exit 1); exit 1; }; }; }
24466 # echo "creating $dirpart/$file"
24467 echo '# dummy' > "$dirpart/$file"
24476 { (exit 0); exit 0; }
24478 chmod +x $CONFIG_STATUS
24479 ac_clean_files=$ac_clean_files_save
24481 test $ac_write_fail = 0 ||
24482 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24483 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24484 { (exit 1); exit 1; }; }
24487 # configure is writing to config.log, and then calls config.status.
24488 # config.status does its own redirection, appending to config.log.
24489 # Unfortunately, on DOS this fails, as config.log is still kept open
24490 # by configure, so config.status won't be able to write to it; its
24491 # output is simply discarded. So we exec the FD to /dev/null,
24492 # effectively closing config.log, so it can be properly (re)opened and
24493 # appended to by config.status. When coming back to configure, we
24494 # need to make the FD available again.
24495 if test "$no_create" != yes; then
24497 ac_config_status_args=
24498 test "$silent" = yes &&
24499 ac_config_status_args="$ac_config_status_args --quiet"
24501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24504 # would make configure fail if this is the last instruction.
24505 $ac_cs_success || { (exit 1); exit 1; }
24509 # CONFIG_SUBDIRS section.
24511 if test "$no_recursion" != yes; then
24513 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24514 # so they do not pile up.
24515 ac_sub_configure_args=
24517 eval "set x $ac_configure_args"
24521 if test -n "$ac_prev"; then
24526 -cache-file | --cache-file | --cache-fil | --cache-fi \
24527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24528 ac_prev=cache_file ;;
24529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24533 --config-cache | -C)
24535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24539 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24541 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24543 --disable-option-checking)
24547 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24549 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24553 # Always prepend --prefix to ensure using the same prefix
24554 # in subdir configurations.
24555 ac_arg="--prefix=$prefix"
24557 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24559 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24562 if test "$silent" = yes; then
24563 ac_sub_configure_args="--silent $ac_sub_configure_args"
24566 # Always prepend --disable-option-checking to silence warnings, since
24567 # different subdirs can have different --enable and --with options.
24568 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24571 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24573 # Do not complain, so a configure script can configure whichever
24574 # parts of a large source tree are present.
24575 test -d "$srcdir/$ac_dir" || continue
24577 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24578 $as_echo "$as_me:$LINENO: $ac_msg" >&5
24579 $as_echo "$ac_msg" >&6
24582 -*) as_dir=./$as_dir;;
24584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24589 *) as_qdir=$as_dir;;
24591 as_dirs="'$as_qdir' $as_dirs"
24592 as_dir=`$as_dirname -- "$as_dir" ||
24593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24594 X"$as_dir" : 'X\(//\)[^/]' \| \
24595 X"$as_dir" : 'X\(//\)$' \| \
24596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24597 $as_echo X"$as_dir" |
24598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24602 /^X\(\/\/\)[^/].*/{
24615 test -d "$as_dir" && break
24617 test -z "$as_dirs" || eval "mkdir $as_dirs"
24618 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24620 { (exit 1); exit 1; }; }; }
24624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24627 # A ".." for each directory in $ac_dir_suffix.
24628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24629 case $ac_top_builddir_sub in
24630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24634 ac_abs_top_builddir=$ac_pwd
24635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24636 # for backward compatibility:
24637 ac_top_builddir=$ac_top_build_prefix
24640 .) # We are building in place.
24642 ac_top_srcdir=$ac_top_builddir_sub
24643 ac_abs_top_srcdir=$ac_pwd ;;
24644 [\\/]* | ?:[\\/]* ) # Absolute name.
24645 ac_srcdir=$srcdir$ac_dir_suffix;
24646 ac_top_srcdir=$srcdir
24647 ac_abs_top_srcdir=$srcdir ;;
24648 *) # Relative name.
24649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24650 ac_top_srcdir=$ac_top_build_prefix$srcdir
24651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24658 # Check for guested configure; otherwise get Cygnus style configure.
24659 if test -f "$ac_srcdir/configure.gnu"; then
24660 ac_sub_configure=$ac_srcdir/configure.gnu
24661 elif test -f "$ac_srcdir/configure"; then
24662 ac_sub_configure=$ac_srcdir/configure
24663 elif test -f "$ac_srcdir/configure.in"; then
24664 # This should be Cygnus configure.
24665 ac_sub_configure=$ac_aux_dir/configure
24667 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24672 # The recursion is here.
24673 if test -n "$ac_sub_configure"; then
24674 # Make the cache file name correct relative to the subdirectory.
24675 case $cache_file in
24676 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24677 *) # Relative name.
24678 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24681 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24682 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24683 # The eval makes quoting arguments work.
24684 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24685 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24686 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24687 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24688 { (exit 1); exit 1; }; }
24694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24695 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24696 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}