2 # From configure.ac Revision: 1.35 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for gc 7.1.
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 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 # Zsh 3.x and 4.x performs 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
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
732 PACKAGE_VERSION='7.1'
733 PACKAGE_STRING='gc 7.1'
734 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
736 ac_unique_file="gcj_mlc.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
835 INSTALL_STRIP_PROGRAM
844 MAINTAINER_MODE_FALSE
906 ENABLE_GCJ_SUPPORT_TRUE
907 ENABLE_GCJ_SUPPORT_FALSE
912 USE_INTERNAL_LIBATOMIC_OPS_TRUE
913 USE_INTERNAL_LIBATOMIC_OPS_FALSE
914 NEED_ATOMIC_OPS_ASM_TRUE
915 NEED_ATOMIC_OPS_ASM_FALSE
920 ac_precious_vars='build_alias
937 ac_subdirs_all='libatomic_ops'
939 # Initialize some variables set by options.
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046 eval enable_$ac_feature=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065 eval enable_$ac_feature=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=\$ac_optarg ;;
1264 -without-* | --without-*)
1265 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 { echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 # Be sure to have absolute directory names.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334 { (exit 1); exit 1; }; }
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 { echo "$as_me: error: Working directory cannot be determined" >&2
1365 { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 { echo "$as_me: error: pwd does not report name of working directory" >&2
1368 { (exit 1); exit 1; }; }
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$0" : 'X\(//\)[^/]' \| \
1378 X"$0" : 'X\(//\)$' \| \
1379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408 { (exit 1); exit 1; }; }
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413 { (exit 1); exit 1; }; }
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1439 \`configure' configures gc 7.1 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of gc 7.1:";;
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-maintainer-mode enable make rules and dependencies not useful
1518 (and sometimes confusing) to the casual installer
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --enable-threads=TYPE choose threading package
1522 --enable-parallel-mark parallelize marking and free list construction
1523 --enable-cplusplus install C++ support
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --disable-gcj-support Disable support for gcj.
1530 --disable-java-finalization
1531 Disable support for java finalization.
1532 --disable-atomic-uncollectible
1533 Disable support for atomic uncollectible allocation.
1534 --enable-redirect-malloc
1535 Redirect malloc and friends to GC routines
1536 --enable-large-config Optimize for large (> 100 MB) heap or root set
1537 --enable-gc-debug include full support for pointer backtracing etc.
1538 --enable-gc-assertions collector-internal assertion checking
1539 --enable-munmap=N return page to the os if empty for N collections
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-ecos enable runtime eCos target support
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1548 --with-tags[=TAGS] include additional configurations [automatic]
1549 --with-target-subdir=SUBDIR
1550 configuring with a cross compiler
1551 --with-cross-host=HOST configuring with a cross compiler
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CCAS assembler compiler command (defaults to CC)
1564 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1566 CXXCPP C++ preprocessor
1567 F77 Fortran 77 compiler command
1568 FFLAGS Fortran 77 compiler flags
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <Hans.Boehm@hp.com>.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" || continue
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1635 generated by GNU Autoconf 2.61
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by gc $as_me 7.1, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 elif test -f "$ac_dir/install.sh"; then
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 elif test -f "$ac_dir/shtool"; then
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2067 ac_save_IFS=$IFS; IFS='-'
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2117 { echo "$as_me:$LINENO: checking target system type" >&5
2118 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2119 if test "${ac_cv_target+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test "x$target_alias" = x; then
2123 ac_cv_target=$ac_cv_host
2125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2133 echo "${ECHO_T}$ac_cv_target" >&6; }
2134 case $ac_cv_target in
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2137 echo "$as_me: error: invalid value of canonical target" >&2;}
2138 { (exit 1); exit 1; }; };;
2140 target=$ac_cv_target
2141 ac_save_IFS=$IFS; IFS='-'
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2151 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2154 # The aliases save the names the user supplied, while $host etc.
2155 # will get canonicalized.
2156 test -n "$target_alias" &&
2157 test "$program_prefix$program_suffix$program_transform_name" = \
2159 program_prefix=${target_alias}-
2163 { echo "$as_me:$LINENO: checking GC version numbers" >&5
2164 echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; }
2165 GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2166 GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2167 GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2169 case "$GC_ALPHA_VERSION" in
2171 GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2172 | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2173 *) GC_ALPHA_MAJOR='' ;;
2176 if test :$GC_VERSION_MAJOR: = :: \
2177 -o :$GC_VERSION_MINOR: = :: ;
2179 { echo "$as_me:$LINENO: result: invalid" >&5
2180 echo "${ECHO_T}invalid" >&6; }
2181 { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
2182 echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
2183 { (exit 1); exit 1; }; }
2186 cat >>confdefs.h <<_ACEOF
2187 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2190 cat >>confdefs.h <<_ACEOF
2191 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2194 if test :$GC_ALPHA_VERSION: != :: ; then
2195 cat >>confdefs.h <<_ACEOF
2196 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2200 { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2201 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2202 echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2203 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2205 am__api_version="1.9"
2206 # Find a good install program. We prefer a C program (faster),
2207 # so one script is as good as another. But avoid the broken or
2208 # incompatible versions:
2209 # SysV /etc/install, /usr/sbin/install
2210 # SunOS /usr/etc/install
2211 # IRIX /sbin/install
2213 # AmigaOS /C/install, which installs bootblocks on floppy discs
2214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217 # OS/2's system install, which has a completely different semantic
2218 # ./install, which can be erroneously created by make from ./install.sh.
2219 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2221 if test -z "$INSTALL"; then
2222 if test "${ac_cv_path_install+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 # Account for people who put trailing slashes in PATH elements.
2232 ./ | .// | /cC/* | \
2233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2237 # OSF1 and SCO ODT 3.0 have their own names for install.
2238 # Don't use installbsd from OSF since it installs stuff as root
2240 for ac_prog in ginstall scoinst install; do
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2243 if test $ac_prog = install &&
2244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # AIX install. It has an incompatible calling convention.
2247 elif test $ac_prog = install &&
2248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # program-specific install script used by HP pwplus--don't use.
2252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2265 if test "${ac_cv_path_install+set}" = set; then
2266 INSTALL=$ac_cv_path_install
2268 # As a last resort, use the slow shell script. Don't cache a
2269 # value for INSTALL within a source directory, because that will
2270 # break other packages using the cache if that directory is
2271 # removed, or if the value is a relative name.
2272 INSTALL=$ac_install_sh
2275 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2276 echo "${ECHO_T}$INSTALL" >&6; }
2278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2279 # It thinks the first close brace ends the variable substitution.
2280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2286 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2287 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2290 echo timestamp > conftest.file
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments. Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2297 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2298 if test "$*" = "X"; then
2300 set X `ls -t $srcdir/configure conftest.file`
2303 if test "$*" != "X $srcdir/configure conftest.file" \
2304 && test "$*" != "X conftest.file $srcdir/configure"; then
2306 # If neither matched, then we have a broken ls. This can happen
2307 # if, for instance, CONFIG_SHELL is bash and it inherits a
2308 # broken ls alias from the environment. This has actually
2309 # happened. Such a system could not be considered "sane".
2310 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2311 alias in your environment" >&5
2312 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2313 alias in your environment" >&2;}
2314 { (exit 1); exit 1; }; }
2317 test "$2" = conftest.file
2323 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2324 Check your system clock" >&5
2325 echo "$as_me: error: newly created file is older than distributed files!
2326 Check your system clock" >&2;}
2327 { (exit 1); exit 1; }; }
2329 { echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $. echo might interpret backslashes.
2337 # By default was `s,x,x', remove it if useless.
2338 cat <<\_ACEOF >conftest.sed
2339 s/[\\$]/&&/g;s/;s,x,x,$//
2341 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2344 # expand $ac_aux_dir to an absolute path
2345 am_aux_dir=`cd $ac_aux_dir && pwd`
2347 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2348 # Use eval to expand $SHELL
2349 if eval "$MISSING --run true"; then
2350 am_missing_run="$MISSING --run "
2353 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2354 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2357 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2358 # We used to keeping the `.' as first argument, in order to
2359 # allow $(mkdir_p) to be used without argument. As in
2360 # $(mkdir_p) $(somedir)
2361 # where $(somedir) is conditionally defined. However this is wrong
2363 # 1. if the package is installed by a user who cannot write `.'
2364 # make install will fail,
2365 # 2. the above comment should most certainly read
2366 # $(mkdir_p) $(DESTDIR)$(somedir)
2367 # so it does not work when $(somedir) is undefined and
2368 # $(DESTDIR) is not.
2369 # To support the latter case, we have to write
2370 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2371 # so the `.' trick is pointless.
2372 mkdir_p='mkdir -p --'
2374 # On NextStep and OpenStep, the `mkdir' command does not
2375 # recognize any option. It will interpret all options as
2376 # directories to create, and then abort because `.' already
2378 for d in ./-p ./--version;
2380 test -d $d && rmdir $d
2382 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2383 if test -f "$ac_aux_dir/mkinstalldirs"; then
2384 mkdir_p='$(mkinstalldirs)'
2386 mkdir_p='$(install_sh) -d'
2390 for ac_prog in gawk mawk nawk awk
2392 # Extract the first word of "$ac_prog", so it can be a program name with args.
2393 set dummy $ac_prog; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_AWK+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$AWK"; then
2400 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_AWK="$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$AWK"; then
2421 { echo "$as_me:$LINENO: result: $AWK" >&5
2422 echo "${ECHO_T}$AWK" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2429 test -n "$AWK" && break
2432 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2433 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2434 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.make <<\_ACEOF
2441 @echo '@@@%%%=$(MAKE)=@@@%%%'
2443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2446 eval ac_cv_prog_make_${ac_make}_set=yes;;
2448 eval ac_cv_prog_make_${ac_make}_set=no;;
2452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2453 { echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2459 SET_MAKE="MAKE=${MAKE-make}"
2462 rm -rf .tst 2>/dev/null
2463 mkdir .tst 2>/dev/null
2464 if test -d .tst; then
2469 rmdir .tst 2>/dev/null
2471 # test to see if srcdir already configured
2472 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2473 test -f $srcdir/config.status; then
2474 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2475 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2476 { (exit 1); exit 1; }; }
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481 if (cygpath --version) >/dev/null 2>/dev/null; then
2482 CYGPATH_W='cygpath -w'
2489 # Define the identity of the package.
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2503 # Some tools Automake needs.
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { echo "$as_me:$LINENO: result: $STRIP" >&5
2557 echo "${ECHO_T}$STRIP" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2565 if test -z "$ac_cv_prog_STRIP"; then
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2597 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2603 if test "x$ac_ct_STRIP" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2619 STRIP="$ac_cv_prog_STRIP"
2623 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2625 # We need awk for the "check" target. The system "awk" is bad on
2627 # Always define AMTAR for backward compatibility.
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2631 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2637 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2638 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2639 # Check whether --enable-maintainer-mode was given.
2640 if test "${enable_maintainer_mode+set}" = set; then
2641 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2643 USE_MAINTAINER_MODE=no
2646 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2647 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2650 if test $USE_MAINTAINER_MODE = yes; then
2651 MAINTAINER_MODE_TRUE=
2652 MAINTAINER_MODE_FALSE='#'
2654 MAINTAINER_MODE_TRUE='#'
2655 MAINTAINER_MODE_FALSE=
2658 MAINT=$MAINTAINER_MODE_TRUE
2665 DEPDIR="${am__leading_dot}deps"
2667 ac_config_commands="$ac_config_commands depfiles"
2670 am_make=${MAKE-make}
2671 cat > confinc << 'END'
2676 # If we don't find an include directive, just comment out the code.
2677 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696 echo '.include "confinc"' > confmf
2697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698 am__include=.include
2705 { echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6; }
2707 rm -f confinc confmf
2709 # Check whether --enable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711 enableval=$enable_dependency_tracking;
2714 if test "x$enable_dependency_tracking" != xno; then
2715 am_depcomp="$ac_aux_dir/depcomp"
2720 if test "x$enable_dependency_tracking" != xno; then
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_CC+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test -n "$CC"; then
2765 { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2774 if test -z "$ac_cv_prog_CC"; then
2776 # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_CC="gcc"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&5
2820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2823 ac_tool_warned=yes ;;
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="${ac_tool_prefix}cc"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test -n "$CC"; then
2862 { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2872 if test -z "$CC"; then
2873 # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected=yes
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test $ac_prog_rejected = yes; then
2904 # We found a bogon in the path, so make sure we never use it.
2905 set dummy $ac_cv_prog_CC
2907 if test $# != 0; then
2908 # We chose a different compiler from the bogus one.
2909 # However, it has the same basename, so the bogon will be chosen
2910 # first if we set CC to just the basename; use the full file name.
2912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 if test -n "$CC"; then
2919 { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2922 { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in cl.exe
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2969 test -n "$CC" && break
2972 if test -z "$CC"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_ac_ct_CC="$ac_prog"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3008 { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3013 test -n "$ac_ct_CC" && break
3016 if test "x$ac_ct_CC" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # List of possible output files, starting from the most likely.
3101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3102 # only as a last resort. b.out is created by i960 compilers.
3103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3105 # The IRIX 6 linker writes into existing files which may not be
3106 # executable, retaining their permissions. Remove them first so a
3107 # subsequent execution test works.
3109 for ac_file in $ac_files
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118 if { (ac_try="$ac_link_default"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_link_default") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3133 for ac_file in $ac_files ''
3135 test -f "$ac_file" || continue
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3140 # We found the default executable, but exeext='' is most
3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 # We set ac_cv_exeext here because the later test for it is not
3149 # safe: cross compilers may not add the suffix if given an `-o'
3150 # argument, so we may need to know it at that point already.
3151 # Even if this section looks crufty: it has the advantage of
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164 { echo "$as_me:$LINENO: result: $ac_file" >&5
3165 echo "${ECHO_T}$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174 { (exit 77); exit 77; }; }
3177 ac_exeext=$ac_cv_exeext
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3184 # If not cross compiling, check that we can run a simple program.
3185 if test "$cross_compiling" != yes; then
3186 if { ac_try='./$ac_file'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3198 if test "$cross_compiling" = maybe; then
3201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3211 { echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6; }
3214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 # Check that the compiler produces executables we can run. If not, either
3217 # the compiler is broken, or we cross compile.
3218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3221 echo "${ECHO_T}$cross_compiling" >&6; }
3223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3225 if { (ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_link") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3239 for ac_file in conftest.exe conftest conftest.*; do
3240 test -f "$ac_file" || continue
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3256 rm -f conftest$ac_cv_exeext
3257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3265 if test "${ac_cv_objext+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 for ac_file in conftest.o conftest.obj conftest.*; do
3295 test -f "$ac_file" || continue;
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." >&2;}
3310 { (exit 1); exit 1; }; }
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3316 echo "${ECHO_T}$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_save_c_werror_flag=$ac_c_werror_flag
3382 ac_c_werror_flag=yes
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3522 if test "$GCC" = yes; then
3528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3530 if test "${ac_cv_prog_cc_c89+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_prog_cc_c89=no
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_prog_cc_c89=$ac_arg
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -f conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { echo "$as_me:$LINENO: result: none needed" >&5
3632 echo "${ECHO_T}none needed" >&6; } ;;
3634 { echo "$as_me:$LINENO: result: unsupported" >&5
3635 echo "${ECHO_T}unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 depcc="$CC" am_compiler_list=
3651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657 # We make a subdir and do the tests there. Otherwise we can end up
3658 # making bogus files that we don't know about and never remove. For
3659 # instance it was reported that on HP-UX the gcc test will end up
3660 # making a dummy file named `D' -- because `-MD' means `put the output
3663 # Copy depcomp to subdir because otherwise we won't find it if we're
3664 # using a relative directory.
3665 cp "$am_depcomp" conftest.dir
3667 # We will build objects and dependencies in a subdirectory because
3668 # it helps to detect inapplicable dependency modes. For instance
3669 # both Tru64's cc and ICC support -MD to output dependencies as a
3670 # side effect of compilation, but ICC will put the dependencies in
3671 # the current directory while Tru64 will put them in the object
3675 am_cv_CC_dependencies_compiler_type=none
3676 if test "$am_compiler_list" = ""; then
3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3679 for depmode in $am_compiler_list; do
3680 # Setup a source with many dependencies, because some compilers
3681 # like to wrap large dependency lists on column 80 (with \), and
3682 # we should not choose a depcomp mode which is confused by this.
3684 # We need to recreate these files for each test, as the compiler may
3685 # overwrite some of them when testing with obscure command lines.
3686 # This happens at least with the AIX C compiler.
3688 for i in 1 2 3 4 5 6; do
3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691 # Solaris 8's {/usr,}/bin/sh.
3692 touch sub/conftst$i.h
3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3698 # after this tag, mechanisms are not by side-effect, so they'll
3699 # only be used when explicitly requested
3700 if test "x$enable_dependency_tracking" = xyes; then
3708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709 # mode. It turns out that the SunPro C++ compiler does not properly
3710 # handle `-M -o', and we need to detect this.
3711 if depmode=$depmode \
3712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715 >/dev/null 2>conftest.err &&
3716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719 # icc doesn't choke on unknown options, it will just issue warnings
3720 # or remarks (even with -Werror). So we grep stderr for any message
3721 # that says an option was ignored or not supported.
3722 # When given -MP, icc 7.0 and 7.1 complain thusly:
3723 # icc: Command line warning: ignoring option '-M'; no argument required
3724 # The diagnosis changed in icc 8.0:
3725 # icc: Command line remark: option '-MP' not supported
3726 if (grep 'ignoring option' conftest.err ||
3727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728 am_cv_CC_dependencies_compiler_type=$depmode
3737 am_cv_CC_dependencies_compiler_type=none
3741 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751 am__fastdepCC_FALSE='#'
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3758 if test "x$CC" != xcc; then
3759 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3760 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3762 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3763 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3765 set dummy $CC; ac_cc=`echo $2 |
3766 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3767 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3785 # Make sure it works both with $CC and with simple cc.
3786 # We do the test twice because some compilers refuse to overwrite an
3787 # existing .o file with -o, though they will create one.
3788 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3790 if { (case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_try") 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); };
3809 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3810 if test "x$CC" != xcc; then
3811 # Test first that cc exists at all.
3812 if { ac_try='cc -c conftest.$ac_ext >&5'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3824 if { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_try") 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); };
3846 # cc exists but doesn't like -o.
3847 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3852 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3854 rm -f core conftest*
3857 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3858 { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3864 cat >>confdefs.h <<\_ACEOF
3865 #define NO_MINUS_C_MINUS_O 1
3870 # FIXME: we rely on the cache variable name because
3871 # there is no other way.
3873 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3874 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3875 # Losing compiler, so override with the script.
3876 # FIXME: It is wrong to rewrite CC.
3877 # But if we don't then we get into trouble of one sort or another.
3878 # A longer-term fix would be to have automake use am__CC in this case,
3879 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3880 CC="$am_aux_dir/compile $CC"
3884 ac_cpp='$CXXCPP $CPPFLAGS'
3885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3888 if test -z "$CXX"; then
3889 if test -n "$CCC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_CXX+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$CXX"; then
3903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$CXX"; then
3924 { echo "$as_me:$LINENO: result: $CXX" >&5
3925 echo "${ECHO_T}$CXX" >&6; }
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 test -n "$CXX" && break
3935 if test -z "$CXX"; then
3937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$ac_ct_CXX"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_ac_ct_CXX="$ac_prog"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3967 if test -n "$ac_ct_CXX"; then
3968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3976 test -n "$ac_ct_CXX" && break
3979 if test "x$ac_ct_CXX" = x; then
3982 case $cross_compiling:$ac_tool_warned in
3984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3985 whose name does not start with the host triplet. If you think this
3986 configuration is useful to you, please write to autoconf@gnu.org." >&5
3987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3988 whose name does not start with the host triplet. If you think this
3989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3990 ac_tool_warned=yes ;;
3998 # Provide some information about the compiler.
3999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4000 ac_compiler=`set X $ac_compile; echo $2`
4001 { (ac_try="$ac_compiler --version >&5"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compiler --version >&5") 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011 { (ac_try="$ac_compiler -v >&5"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compiler -v >&5") 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }
4021 { (ac_try="$ac_compiler -V >&5"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compiler -V >&5") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_cxx_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4086 GXX=`test $ac_compiler_gnu = yes && echo yes`
4087 ac_test_CXXFLAGS=${CXXFLAGS+set}
4088 ac_save_CXXFLAGS=$CXXFLAGS
4089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4091 if test "${ac_cv_prog_cxx_g+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4095 ac_cxx_werror_flag=yes
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_cxx_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_prog_cxx_g=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_cxx_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_cxx_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4207 ac_cv_prog_cxx_g=yes
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4226 if test "$ac_test_CXXFLAGS" = set; then
4227 CXXFLAGS=$ac_save_CXXFLAGS
4228 elif test $ac_cv_prog_cxx_g = yes; then
4229 if test "$GXX" = yes; then
4235 if test "$GXX" = yes; then
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 depcc="$CXX" am_compiler_list=
4249 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255 # We make a subdir and do the tests there. Otherwise we can end up
4256 # making bogus files that we don't know about and never remove. For
4257 # instance it was reported that on HP-UX the gcc test will end up
4258 # making a dummy file named `D' -- because `-MD' means `put the output
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4273 am_cv_CXX_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4277 for depmode in $am_compiler_list; do
4278 # Setup a source with many dependencies, because some compilers
4279 # like to wrap large dependency lists on column 80 (with \), and
4280 # we should not choose a depcomp mode which is confused by this.
4282 # We need to recreate these files for each test, as the compiler may
4283 # overwrite some of them when testing with obscure command lines.
4284 # This happens at least with the AIX C compiler.
4286 for i in 1 2 3 4 5 6; do
4287 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289 # Solaris 8's {/usr,}/bin/sh.
4290 touch sub/conftst$i.h
4292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296 # after this tag, mechanisms are not by side-effect, so they'll
4297 # only be used when explicitly requested
4298 if test "x$enable_dependency_tracking" = xyes; then
4306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307 # mode. It turns out that the SunPro C++ compiler does not properly
4308 # handle `-M -o', and we need to detect this.
4309 if depmode=$depmode \
4310 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313 >/dev/null 2>conftest.err &&
4314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317 # icc doesn't choke on unknown options, it will just issue warnings
4318 # or remarks (even with -Werror). So we grep stderr for any message
4319 # that says an option was ignored or not supported.
4320 # When given -MP, icc 7.0 and 7.1 complain thusly:
4321 # icc: Command line warning: ignoring option '-M'; no argument required
4322 # The diagnosis changed in icc 8.0:
4323 # icc: Command line remark: option '-MP' not supported
4324 if (grep 'ignoring option' conftest.err ||
4325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326 am_cv_CXX_dependencies_compiler_type=$depmode
4335 am_cv_CXX_dependencies_compiler_type=none
4339 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4340 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4341 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4346 test "x$enable_dependency_tracking" != xno \
4347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4348 am__fastdepCXX_TRUE=
4349 am__fastdepCXX_FALSE='#'
4351 am__fastdepCXX_TRUE='#'
4352 am__fastdepCXX_FALSE=
4357 # By default we simply use the C compiler to build assembly code.
4359 test "${CCAS+set}" = set || CCAS=$CC
4360 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4364 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4365 if test -n "$ac_tool_prefix"; then
4366 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4367 set dummy ${ac_tool_prefix}ar; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_AR+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test -n "$AR"; then
4374 ac_cv_prog_AR="$AR" # Let the user override the test.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_AR="${ac_tool_prefix}ar"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 if test -n "$AR"; then
4395 { echo "$as_me:$LINENO: result: $AR" >&5
4396 echo "${ECHO_T}$AR" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4404 if test -z "$ac_cv_prog_AR"; then
4406 # Extract the first word of "ar", so it can be a program name with args.
4407 set dummy ar; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$ac_ct_AR"; then
4414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_ac_ct_AR="ar"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4434 if test -n "$ac_ct_AR"; then
4435 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4436 echo "${ECHO_T}$ac_ct_AR" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4442 if test "x$ac_ct_AR" = x; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet. If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&5
4450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4451 whose name does not start with the host triplet. If you think this
4452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4453 ac_tool_warned=yes ;;
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_RANLIB+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$RANLIB"; then
4470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 RANLIB=$ac_cv_prog_RANLIB
4490 if test -n "$RANLIB"; then
4491 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4492 echo "${ECHO_T}$RANLIB" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4500 if test -z "$ac_cv_prog_RANLIB"; then
4501 ac_ct_RANLIB=$RANLIB
4502 # Extract the first word of "ranlib", so it can be a program name with args.
4503 set dummy ranlib; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 if test -n "$ac_ct_RANLIB"; then
4510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_RANLIB="ranlib"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4530 if test -n "$ac_ct_RANLIB"; then
4531 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4532 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4538 if test "x$ac_ct_RANLIB" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4549 ac_tool_warned=yes ;;
4551 RANLIB=$ac_ct_RANLIB
4554 RANLIB="$ac_cv_prog_RANLIB"
4558 # Find a good install program. We prefer a C program (faster),
4559 # so one script is as good as another. But avoid the broken or
4560 # incompatible versions:
4561 # SysV /etc/install, /usr/sbin/install
4562 # SunOS /usr/etc/install
4563 # IRIX /sbin/install
4565 # AmigaOS /C/install, which installs bootblocks on floppy discs
4566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4569 # OS/2's system install, which has a completely different semantic
4570 # ./install, which can be erroneously created by make from ./install.sh.
4571 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4573 if test -z "$INSTALL"; then
4574 if test "${ac_cv_path_install+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 # Account for people who put trailing slashes in PATH elements.
4584 ./ | .// | /cC/* | \
4585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4589 # OSF1 and SCO ODT 3.0 have their own names for install.
4590 # Don't use installbsd from OSF since it installs stuff as root
4592 for ac_prog in ginstall scoinst install; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4595 if test $ac_prog = install &&
4596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597 # AIX install. It has an incompatible calling convention.
4599 elif test $ac_prog = install &&
4600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601 # program-specific install script used by HP pwplus--don't use.
4604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4617 if test "${ac_cv_path_install+set}" = set; then
4618 INSTALL=$ac_cv_path_install
4620 # As a last resort, use the slow shell script. Don't cache a
4621 # value for INSTALL within a source directory, because that will
4622 # break other packages using the cache if that directory is
4623 # removed, or if the value is a relative name.
4624 INSTALL=$ac_install_sh
4627 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4628 echo "${ECHO_T}$INSTALL" >&6; }
4630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4631 # It thinks the first close brace ends the variable substitution.
4632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4639 . ${srcdir}/configure.host
4641 GC_CFLAGS=${gc_cflags}
4644 # Check whether --enable-threads was given.
4645 if test "${enable_threads+set}" = set; then
4646 enableval=$enable_threads; THREADS=$enableval
4648 { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4649 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
4650 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4651 if test -z "$THREADS"; then
4654 { echo "$as_me:$LINENO: result: $THREADS" >&5
4655 echo "${ECHO_T}$THREADS" >&6; }
4659 # Check whether --enable-parallel-mark was given.
4660 if test "${enable_parallel_mark+set}" = set; then
4661 enableval=$enable_parallel_mark; case "$THREADS" in
4663 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4664 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4665 { (exit 1); exit 1; }; }
4672 # Check whether --enable-cplusplus was given.
4673 if test "${enable_cplusplus+set}" = set; then
4674 enableval=$enable_cplusplus;
4678 INCLUDES=-I${srcdir}/include
4680 need_atomic_ops_asm=false
4681 ## Libraries needed to support dynamic loading and/or threads.
4688 THREADDLLIBS=-lpthread
4690 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4691 cat >>confdefs.h <<\_ACEOF
4692 #define GC_LINUX_THREADS 1
4695 cat >>confdefs.h <<\_ACEOF
4696 #define _REENTRANT 1
4699 if test "${enable_parallel_mark}" = yes; then
4700 cat >>confdefs.h <<\_ACEOF
4701 #define PARALLEL_MARK 1
4705 cat >>confdefs.h <<\_ACEOF
4706 #define THREAD_LOCAL_ALLOC 1
4709 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4710 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4713 cat >>confdefs.h <<\_ACEOF
4714 #define GC_LINUX_THREADS 1
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _REENTRANT 1
4723 cat >>confdefs.h <<\_ACEOF
4724 #define GC_AIX_THREADS 1
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _REENTRANT 1
4733 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
4734 echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
4735 cat >>confdefs.h <<\_ACEOF
4736 #define GC_HPUX_THREADS 1
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _POSIX_C_SOURCE 199506L
4743 if test "${enable_parallel_mark}" = yes; then
4744 cat >>confdefs.h <<\_ACEOF
4745 #define PARALLEL_MARK 1
4749 cat >>confdefs.h <<\_ACEOF
4750 #define THREAD_LOCAL_ALLOC 1
4753 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4754 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4755 THREADDLLIBS="-lpthread -lrt"
4756 # HPUX needs REENTRANT for the _r calls.
4758 cat >>confdefs.h <<\_ACEOF
4759 #define _REENTRANT 1
4764 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
4765 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4769 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4770 cat >>confdefs.h <<\_ACEOF
4771 #define GC_FREEBSD_THREADS 1
4774 INCLUDES="$INCLUDES -pthread"
4777 cat >>confdefs.h <<\_ACEOF
4778 #define GC_FREEBSD_THREADS 1
4781 INCLUDES="$INCLUDES -pthread"
4782 THREADDLLIBS=-pthread
4783 cat >>confdefs.h <<\_ACEOF
4784 #define _REENTRANT 1
4787 if test "${enable_parallel_mark}" = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define PARALLEL_MARK 1
4793 cat >>confdefs.h <<\_ACEOF
4794 #define THREAD_LOCAL_ALLOC 1
4797 cat >>confdefs.h <<\_ACEOF
4798 #define USE_COMPILER_TLS 1
4803 cat >>confdefs.h <<\_ACEOF
4804 #define GC_GNU_THREADS 1
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _REENTRANT 1
4811 cat >>confdefs.h <<\_ACEOF
4812 #define THREAD_LOCAL_ALLOC 1
4817 { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
4818 echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
4819 cat >>confdefs.h <<\_ACEOF
4820 #define GC_NETBSD_THREADS 1
4823 cat >>confdefs.h <<\_ACEOF
4824 #define _REENTRANT 1
4827 cat >>confdefs.h <<\_ACEOF
4831 THREADDLLIBS="-lpthread -lrt"
4834 cat >>confdefs.h <<\_ACEOF
4835 #define GC_SOLARIS_THREADS 1
4838 cat >>confdefs.h <<\_ACEOF
4839 #define THREAD_LOCAL_ALLOC 1
4842 THREADDLLIBS="-lpthread -lrt"
4843 if test "$GCC" != yes; then
4845 need_atomic_ops_asm=true
4849 cat >>confdefs.h <<\_ACEOF
4850 #define GC_IRIX_THREADS 1
4855 cat >>confdefs.h <<\_ACEOF
4856 #define GC_WIN32_THREADS 1
4859 cat >>confdefs.h <<\_ACEOF
4860 #define THREAD_LOCAL_ALLOC 1
4866 cat >>confdefs.h <<\_ACEOF
4867 #define GC_DARWIN_THREADS 1
4870 cat >>confdefs.h <<\_ACEOF
4871 #define THREAD_LOCAL_ALLOC 1
4874 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4875 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4876 # Parallel-mark is currently unreliable on Darwin; ignore request
4877 # if test "${enable_parallel_mark}" = yes; then
4878 # AC_DEFINE(PARALLEL_MARK)
4883 cat >>confdefs.h <<\_ACEOF
4884 #define GC_OSF1_THREADS 1
4887 if test "${enable_parallel_mark}" = yes; then
4888 cat >>confdefs.h <<\_ACEOF
4889 #define PARALLEL_MARK 1
4892 cat >>confdefs.h <<\_ACEOF
4893 #define THREAD_LOCAL_ALLOC 1
4896 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4897 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4898 # May want to enable it in other cases, too.
4899 # Measurements havent yet been done.
4901 INCLUDES="$INCLUDES -pthread"
4902 THREADDLLIBS="-lpthread -lrt"
4905 { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
4906 echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
4907 { (exit 1); exit 1; }; }
4912 cat >>confdefs.h <<\_ACEOF
4913 #define GC_WIN32_THREADS 1
4916 cat >>confdefs.h <<\_ACEOF
4923 { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
4924 echo "${ECHO_T}$THREADDLLIBS" >&6; }
4925 # Use pthread GCC switch
4926 THREADDLLIBS=-pthread
4927 if test "${enable_parallel_mark}" = yes; then
4928 cat >>confdefs.h <<\_ACEOF
4929 #define PARALLEL_MARK 1
4933 cat >>confdefs.h <<\_ACEOF
4934 #define THREAD_LOCAL_ALLOC 1
4937 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4938 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4939 cat >>confdefs.h <<\_ACEOF
4940 #define GC_DGUX386_THREADS 1
4943 cat >>confdefs.h <<\_ACEOF
4944 #define DGUX_THREADS 1
4947 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4948 INCLUDES="-pthread $INCLUDES"
4952 THREADDLLIBS=-lpthread
4953 cat >>confdefs.h <<\_ACEOF
4954 #define GC_AIX_THREADS 1
4957 cat >>confdefs.h <<\_ACEOF
4958 #define _REENTRANT 1
4962 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4963 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4964 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4965 { (exit 1); exit 1; }; }
4968 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4969 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4970 { (exit 1); exit 1; }; }
4976 if test x$THREADS != xnone; then
4986 if test x$THREADS = xposix; then
4996 if test x$darwin_threads = xtrue; then
4997 DARWIN_THREADS_TRUE=
4998 DARWIN_THREADS_FALSE='#'
5000 DARWIN_THREADS_TRUE='#'
5001 DARWIN_THREADS_FALSE=
5006 if test x$win32_threads = xtrue; then
5008 WIN32_THREADS_FALSE='#'
5010 WIN32_THREADS_TRUE='#'
5011 WIN32_THREADS_FALSE=
5021 # Darwin needs a few extra special tests to deal with variation in the
5026 { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5027 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
5028 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <mach/thread_status.h>
5042 static ppc_thread_state_t ac_aggr;
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_member_ppc_thread_state_t_r0=yes
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <mach/thread_status.h>
5082 static ppc_thread_state_t ac_aggr;
5083 if (sizeof ac_aggr.r0)
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compile") 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && {
5103 test -z "$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest.$ac_objext; then
5106 ac_cv_member_ppc_thread_state_t_r0=yes
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_cv_member_ppc_thread_state_t_r0=no
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5120 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5121 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
5123 cat >>confdefs.h <<\_ACEOF
5124 #define HAS_PPC_THREAD_STATE_R0 1
5129 { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5130 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
5131 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <mach/thread_status.h>
5145 static ppc_thread_state_t ac_aggr;
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_cv_member_ppc_thread_state_t___r0=yes
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <mach/thread_status.h>
5185 static ppc_thread_state_t ac_aggr;
5186 if (sizeof ac_aggr.__r0)
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_cv_member_ppc_thread_state_t___r0=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_cv_member_ppc_thread_state_t___r0=no
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5223 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5224 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
5226 cat >>confdefs.h <<\_ACEOF
5227 #define HAS_PPC_THREAD_STATE___R0 1
5232 { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5233 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
5234 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <mach/thread_status.h>
5248 static ppc_thread_state64_t ac_aggr;
5255 rm -f conftest.$ac_objext
5256 if { (ac_try="$ac_compile"
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
5272 ac_cv_member_ppc_thread_state64_t_r0=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <mach/thread_status.h>
5288 static ppc_thread_state64_t ac_aggr;
5289 if (sizeof ac_aggr.r0)
5295 rm -f conftest.$ac_objext
5296 if { (ac_try="$ac_compile"
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compile") 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } && {
5309 test -z "$ac_c_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest.$ac_objext; then
5312 ac_cv_member_ppc_thread_state64_t_r0=yes
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_cv_member_ppc_thread_state64_t_r0=no
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5326 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5327 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
5329 cat >>confdefs.h <<\_ACEOF
5330 #define HAS_PPC_THREAD_STATE64_R0 1
5335 { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5336 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
5337 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <mach/thread_status.h>
5351 static ppc_thread_state64_t ac_aggr;
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_compile") 2>conftest.er1
5367 grep -v '^ *+' conftest.er1 >conftest.err
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } && {
5372 test -z "$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5374 } && test -s conftest.$ac_objext; then
5375 ac_cv_member_ppc_thread_state64_t___r0=yes
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <mach/thread_status.h>
5391 static ppc_thread_state64_t ac_aggr;
5392 if (sizeof ac_aggr.__r0)
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 ac_cv_member_ppc_thread_state64_t___r0=yes
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 ac_cv_member_ppc_thread_state64_t___r0=no
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5429 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5430 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
5432 cat >>confdefs.h <<\_ACEOF
5433 #define HAS_PPC_THREAD_STATE64___R0 1
5440 { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5441 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
5442 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <sys/cdefs.h>
5452 #include <mach/thread_status.h>
5457 static x86_thread_state32_t ac_aggr;
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_member_x86_thread_state32_t_eax=yes
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <sys/cdefs.h>
5493 #include <mach/thread_status.h>
5498 static x86_thread_state32_t ac_aggr;
5499 if (sizeof ac_aggr.eax)
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && {
5519 test -z "$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 } && test -s conftest.$ac_objext; then
5522 ac_cv_member_x86_thread_state32_t_eax=yes
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 ac_cv_member_x86_thread_state32_t_eax=no
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5536 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5537 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
5539 cat >>confdefs.h <<\_ACEOF
5540 #define HAS_X86_THREAD_STATE32_EAX 1
5545 { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5546 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
5547 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/cdefs.h>
5557 #include <mach/thread_status.h>
5562 static x86_thread_state32_t ac_aggr;
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5586 ac_cv_member_x86_thread_state32_t___eax=yes
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <sys/cdefs.h>
5598 #include <mach/thread_status.h>
5603 static x86_thread_state32_t ac_aggr;
5604 if (sizeof ac_aggr.__eax)
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5627 ac_cv_member_x86_thread_state32_t___eax=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ac_cv_member_x86_thread_state32_t___eax=no
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5641 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5642 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
5644 cat >>confdefs.h <<\_ACEOF
5645 #define HAS_X86_THREAD_STATE32___EAX 1
5652 { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5653 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
5654 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <sys/cdefs.h>
5664 #include <mach/thread_status.h>
5669 static x86_thread_state64_t ac_aggr;
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1 >conftest.err
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 ac_cv_member_x86_thread_state64_t_rax=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <sys/cdefs.h>
5705 #include <mach/thread_status.h>
5710 static x86_thread_state64_t ac_aggr;
5711 if (sizeof ac_aggr.rax)
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_member_x86_thread_state64_t_rax=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_member_x86_thread_state64_t_rax=no
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
5748 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
5749 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
5751 cat >>confdefs.h <<\_ACEOF
5752 #define HAS_X86_THREAD_STATE64_RAX 1
5757 { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
5758 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
5759 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <sys/cdefs.h>
5769 #include <mach/thread_status.h>
5774 static x86_thread_state64_t ac_aggr;
5781 rm -f conftest.$ac_objext
5782 if { (ac_try="$ac_compile"
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_compile") 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_c_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest.$ac_objext; then
5798 ac_cv_member_x86_thread_state64_t___rax=yes
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <sys/cdefs.h>
5810 #include <mach/thread_status.h>
5815 static x86_thread_state64_t ac_aggr;
5816 if (sizeof ac_aggr.__rax)
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_cv_member_x86_thread_state64_t___rax=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_cv_member_x86_thread_state64_t___rax=no
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
5853 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
5854 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
5856 cat >>confdefs.h <<\_ACEOF
5857 #define HAS_X86_THREAD_STATE64___RAX 1
5866 { echo "$as_me:$LINENO: checking for xlc" >&5
5867 echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5887 rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest.$ac_objext; then
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 { echo "$as_me:$LINENO: result: $compiler_xlc" >&5
5914 echo "${ECHO_T}$compiler_xlc" >&6; }
5917 if test $compiler_xlc = yes; then
5919 COMPILER_XLC_FALSE='#'
5921 COMPILER_XLC_TRUE='#'
5925 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5926 # the darwin stack-frame-walking code is completely broken on xlc
5927 cat >>confdefs.h <<\_ACEOF
5928 #define DARWIN_DONT_PARSE_STACK 1
5933 # We never want libdl on darwin. It is a fake libdl that just ends up making
5938 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5939 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 ac_check_lib_save_LIBS=$LIBS
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5952 /* Override any GCC internal prototype to avoid an error.
5953 Use char because int might match the return type of a GCC
5954 builtin and then its argument prototype would still apply. */
5967 rm -f conftest.$ac_objext conftest$ac_exeext
5968 if { (ac_try="$ac_link"
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_link") 2>conftest.er1
5976 grep -v '^ *+' conftest.er1 >conftest.err
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && {
5981 test -z "$ac_c_werror_flag" ||
5982 test ! -s conftest.err
5983 } && test -s conftest$ac_exeext &&
5984 $as_test_x conftest$ac_exeext; then
5985 ac_cv_lib_dl_dlopen=yes
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 ac_cv_lib_dl_dlopen=no
5993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5994 conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5998 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5999 if test $ac_cv_lib_dl_dlopen = yes; then
6000 THREADDLLIBS="$THREADDLLIBS -ldl"
6015 if test $avoid_cpp_lib = yes; then
6017 AVOID_CPP_LIB_FALSE='#'
6019 AVOID_CPP_LIB_TRUE='#'
6020 AVOID_CPP_LIB_FALSE=
6024 # extra LD Flags which are required for targets
6027 extra_ldflags_libgc=-Wl,-single_module
6039 # Check whether --with-ecos was given.
6040 if test "${with_ecos+set}" = set; then
6041 withval=$with_ecos; TARGET_ECOS="$with_ecos"
6049 case "$TARGET_ECOS" in
6053 cat >>confdefs.h <<\_ACEOF
6057 CXXINCLUDES="-I${TARGET_ECOS}/include"
6058 addobjs="$addobjs ecos.lo"
6064 if test "${enable_cplusplus}" = yes; then
6078 # Configuration of shared libraries
6080 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6081 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
6082 # Check whether --enable-shared was given.
6083 if test "${enable_shared+set}" = set; then
6084 enableval=$enable_shared; p=${PACKAGE-default}
6086 yes) enable_shared=yes ;;
6087 no) enable_shared=no ;;
6090 # Look at the argument we got. We use all the common list separators.
6091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6092 for pkg in $enableval; do
6094 if test "X$pkg" = "X$p"; then
6115 { echo "$as_me:$LINENO: result: $enable_shared" >&5
6116 echo "${ECHO_T}$enable_shared" >&6; }
6118 # Configuration of machine-dependent code
6120 { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6121 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; }
6125 machdep="mach_dep.lo"
6126 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6127 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6128 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6132 machdep="mach_dep.lo"
6134 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6135 cat >>confdefs.h <<\_ACEOF
6136 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6141 machdep="mach_dep.lo"
6142 cat >>confdefs.h <<\_ACEOF
6143 #define STACKBASE __stackbase
6146 cat >>confdefs.h <<\_ACEOF
6147 #define DATASTART_IS_ETEXT 1
6152 machdep="mach-dep.lo"
6154 mips-nec-sysv*|mips-unknown-sysv*)
6159 machdep="mach_dep.lo"
6162 machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
6164 sparc-sun-solaris2.3)
6165 machdep="mach_dep.lo sparc_mach_dep.lo"
6166 cat >>confdefs.h <<\_ACEOF
6167 #define SUNOS53_SHARED_LIB 1
6171 sparc*-sun-solaris2.*)
6172 machdep="mach_dep.lo sparc_mach_dep.lo"
6175 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6178 if test x"$machdep" = x; then
6179 { echo "$as_me:$LINENO: result: $machdep" >&5
6180 echo "${ECHO_T}$machdep" >&6; }
6181 machdep="mach_dep.lo"
6183 addobjs="$addobjs $machdep"
6187 # Check whether --enable-static was given.
6188 if test "${enable_static+set}" = set; then
6189 enableval=$enable_static; p=${PACKAGE-default}
6191 yes) enable_static=yes ;;
6192 no) enable_static=no ;;
6195 # Look at the argument we got. We use all the common list separators.
6196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6197 for pkg in $enableval; do
6199 if test "X$pkg" = "X$p"; then
6211 # Check whether --enable-fast-install was given.
6212 if test "${enable_fast_install+set}" = set; then
6213 enableval=$enable_fast_install; p=${PACKAGE-default}
6215 yes) enable_fast_install=yes ;;
6216 no) enable_fast_install=no ;;
6218 enable_fast_install=no
6219 # Look at the argument we got. We use all the common list separators.
6220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6221 for pkg in $enableval; do
6223 if test "X$pkg" = "X$p"; then
6224 enable_fast_install=yes
6231 enable_fast_install=yes
6235 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6236 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6237 if test "${lt_cv_path_SED+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 # Loop through the user's path and test for sed and gsed.
6241 # Then use that list of sed's as ones to test for truncation.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for lt_ac_prog in sed gsed; do
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6250 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6257 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6258 # along with /bin/sed that truncates output.
6259 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6260 test ! -f $lt_ac_sed && continue
6261 cat /dev/null > conftest.in
6263 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6264 # Check for GNU sed and select it if it is found.
6265 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6266 lt_cv_path_SED=$lt_ac_sed
6270 cat conftest.in conftest.in >conftest.tmp
6271 mv conftest.tmp conftest.in
6272 cp conftest.in conftest.nl
6274 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6275 cmp -s conftest.out conftest.nl || break
6276 # 10000 chars as input seems more than enough
6277 test $lt_ac_count -gt 10 && break
6278 lt_ac_count=`expr $lt_ac_count + 1`
6279 if test $lt_ac_count -gt $lt_ac_max; then
6280 lt_ac_max=$lt_ac_count
6281 lt_cv_path_SED=$lt_ac_sed
6289 { echo "$as_me:$LINENO: result: $SED" >&5
6290 echo "${ECHO_T}$SED" >&6; }
6292 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6293 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6294 if test "${ac_cv_path_GREP+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 # Extract the first word of "grep ggrep" to use in msg output
6298 if test -z "$GREP"; then
6299 set dummy grep ggrep; ac_prog_name=$2
6300 if test "${ac_cv_path_GREP+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 ac_path_GREP_found=false
6304 # Loop through the user's path and test for each of PROGNAME-LIST
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6309 test -z "$as_dir" && as_dir=.
6310 for ac_prog in grep ggrep; do
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6314 # Check for GNU ac_path_GREP and select it if it is found.
6315 # Check for GNU $ac_path_GREP
6316 case `"$ac_path_GREP" --version 2>&1` in
6318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6321 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6324 cat "conftest.in" "conftest.in" >"conftest.tmp"
6325 mv "conftest.tmp" "conftest.in"
6326 cp "conftest.in" "conftest.nl"
6327 echo 'GREP' >> "conftest.nl"
6328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6330 ac_count=`expr $ac_count + 1`
6331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6332 # Best one so far, save it but keep looking for a better one
6333 ac_cv_path_GREP="$ac_path_GREP"
6334 ac_path_GREP_max=$ac_count
6336 # 10*(2^10) chars as input seems more than enough
6337 test $ac_count -gt 10 && break
6339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6343 $ac_path_GREP_found && break 3
6353 GREP="$ac_cv_path_GREP"
6354 if test -z "$GREP"; then
6355 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6356 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6357 { (exit 1); exit 1; }; }
6361 ac_cv_path_GREP=$GREP
6366 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6367 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6368 GREP="$ac_cv_path_GREP"
6371 { echo "$as_me:$LINENO: checking for egrep" >&5
6372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6373 if test "${ac_cv_path_EGREP+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6377 then ac_cv_path_EGREP="$GREP -E"
6379 # Extract the first word of "egrep" to use in msg output
6380 if test -z "$EGREP"; then
6381 set dummy egrep; ac_prog_name=$2
6382 if test "${ac_cv_path_EGREP+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_path_EGREP_found=false
6386 # Loop through the user's path and test for each of PROGNAME-LIST
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6391 test -z "$as_dir" && as_dir=.
6392 for ac_prog in egrep; do
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6396 # Check for GNU ac_path_EGREP and select it if it is found.
6397 # Check for GNU $ac_path_EGREP
6398 case `"$ac_path_EGREP" --version 2>&1` in
6400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6406 cat "conftest.in" "conftest.in" >"conftest.tmp"
6407 mv "conftest.tmp" "conftest.in"
6408 cp "conftest.in" "conftest.nl"
6409 echo 'EGREP' >> "conftest.nl"
6410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6412 ac_count=`expr $ac_count + 1`
6413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6414 # Best one so far, save it but keep looking for a better one
6415 ac_cv_path_EGREP="$ac_path_EGREP"
6416 ac_path_EGREP_max=$ac_count
6418 # 10*(2^10) chars as input seems more than enough
6419 test $ac_count -gt 10 && break
6421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6425 $ac_path_EGREP_found && break 3
6435 EGREP="$ac_cv_path_EGREP"
6436 if test -z "$EGREP"; then
6437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6439 { (exit 1); exit 1; }; }
6443 ac_cv_path_EGREP=$EGREP
6449 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6450 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6451 EGREP="$ac_cv_path_EGREP"
6455 # Check whether --with-gnu-ld was given.
6456 if test "${with_gnu_ld+set}" = set; then
6457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6463 if test "$GCC" = yes; then
6464 # Check if gcc -print-prog-name=ld gives a path.
6465 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6466 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6469 # gcc leaves a trailing carriage return which upsets mingw
6470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6475 # Accept absolute paths.
6477 re_direlt='/[^/][^/]*/\.\./'
6478 # Canonicalize the pathname of ld
6479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6483 test -z "$LD" && LD="$ac_prog"
6486 # If it fails, then pretend we aren't using GCC.
6490 # If it is relative, then search for the first ld in PATH.
6494 elif test "$with_gnu_ld" = yes; then
6495 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6498 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6501 if test "${lt_cv_path_LD+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 if test -z "$LD"; then
6505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6506 for ac_dir in $PATH; do
6508 test -z "$ac_dir" && ac_dir=.
6509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6510 lt_cv_path_LD="$ac_dir/$ac_prog"
6511 # Check to see if the program is GNU ld. I'd rather use --version,
6512 # but apparently some variants of GNU ld only accept -v.
6513 # Break only if it was the GNU/non-GNU ld that we prefer.
6514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6515 *GNU* | *'with BFD'*)
6516 test "$with_gnu_ld" != no && break
6519 test "$with_gnu_ld" != yes && break
6526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6531 if test -n "$LD"; then
6532 { echo "$as_me:$LINENO: result: $LD" >&5
6533 echo "${ECHO_T}$LD" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6540 { (exit 1); exit 1; }; }
6541 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6543 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6547 case `$LD -v 2>&1 </dev/null` in
6548 *GNU* | *'with BFD'*)
6549 lt_cv_prog_gnu_ld=yes
6552 lt_cv_prog_gnu_ld=no
6556 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6557 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6558 with_gnu_ld=$lt_cv_prog_gnu_ld
6561 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6562 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6563 if test "${lt_cv_ld_reload_flag+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 lt_cv_ld_reload_flag='-r'
6568 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6569 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6570 reload_flag=$lt_cv_ld_reload_flag
6571 case $reload_flag in
6573 *) reload_flag=" $reload_flag" ;;
6575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6578 if test "$GCC" = yes; then
6579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6586 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6587 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6588 if test "${lt_cv_path_NM+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 if test -n "$NM"; then
6592 # Let the user override the test.
6595 lt_nm_to_check="${ac_tool_prefix}nm"
6596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6597 lt_nm_to_check="$lt_nm_to_check nm"
6599 for lt_tmp_nm in $lt_nm_to_check; do
6600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6603 test -z "$ac_dir" && ac_dir=.
6604 tmp_nm="$ac_dir/$lt_tmp_nm"
6605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6606 # Check to see if the nm accepts a BSD-compat flag.
6607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6608 # nm: unknown option "B" ignored
6609 # Tru64's nm complains that /dev/null is an invalid object file
6610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6611 */dev/null* | *'Invalid file or object type'*)
6612 lt_cv_path_NM="$tmp_nm -B"
6616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6618 lt_cv_path_NM="$tmp_nm -p"
6622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6623 continue # so that we can try to find one that supports BSD flags
6632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6635 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6636 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6639 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6640 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6642 if test "$LN_S" = "ln -s"; then
6643 { echo "$as_me:$LINENO: result: yes" >&5
6644 echo "${ECHO_T}yes" >&6; }
6646 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6647 echo "${ECHO_T}no, using $LN_S" >&6; }
6650 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6651 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6652 if test "${lt_cv_deplibs_check_method+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 lt_cv_file_magic_cmd='$MAGIC_CMD'
6656 lt_cv_file_magic_test_file=
6657 lt_cv_deplibs_check_method='unknown'
6658 # Need to set the preceding variable on all platforms that support
6659 # interlibrary dependencies.
6660 # 'none' -- dependencies not supported.
6661 # `unknown' -- same as none, but documents that we really don't know.
6662 # 'pass_all' -- all dependencies passed with no checks.
6663 # 'test_compile' -- check by making test program.
6664 # 'file_magic [[regex]]' -- check by looking for files in library path
6665 # which responds to the $file_magic_cmd with a given extended regex.
6666 # If you have `file' or equivalent on your system and you're not sure
6667 # whether `pass_all' will *always* work, you probably want this one.
6671 lt_cv_deplibs_check_method=pass_all
6675 lt_cv_deplibs_check_method=pass_all
6679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6680 lt_cv_file_magic_cmd='/usr/bin/file -L'
6681 lt_cv_file_magic_test_file=/shlib/libc.so
6685 # func_win32_libid is a shell function defined in ltmain.sh
6686 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6687 lt_cv_file_magic_cmd='func_win32_libid'
6691 # Base MSYS/MinGW do not provide the 'file' command needed by
6692 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6693 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6694 lt_cv_file_magic_cmd='$OBJDUMP -f'
6697 darwin* | rhapsody*)
6698 lt_cv_deplibs_check_method=pass_all
6701 freebsd* | kfreebsd*-gnu | dragonfly*)
6702 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6705 # Not sure whether the presence of OpenBSD here was a mistake.
6706 # Let's accept both of them until this is cleared up.
6707 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6708 lt_cv_file_magic_cmd=/usr/bin/file
6709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6713 lt_cv_deplibs_check_method=pass_all
6718 lt_cv_deplibs_check_method=pass_all
6721 hpux10.20* | hpux11*)
6722 lt_cv_file_magic_cmd=/usr/bin/file
6725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6726 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6729 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]'
6730 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6734 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6740 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6744 irix5* | irix6* | nonstopux*)
6746 *-32|*"-32 ") libmagic=32-bit;;
6747 *-n32|*"-n32 ") libmagic=N32;;
6748 *-64|*"-64 ") libmagic=64-bit;;
6749 *) libmagic=never-match;;
6751 lt_cv_deplibs_check_method=pass_all
6754 # This must be Linux ELF.
6756 lt_cv_deplibs_check_method=pass_all
6760 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6769 lt_cv_file_magic_cmd=/usr/bin/file
6770 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6774 lt_cv_deplibs_check_method=unknown
6778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6785 osf3* | osf4* | osf5*)
6786 lt_cv_deplibs_check_method=pass_all
6790 lt_cv_deplibs_check_method=pass_all
6794 case $host_vendor in
6796 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]'
6797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6800 lt_cv_deplibs_check_method=pass_all
6803 lt_cv_file_magic_cmd='/bin/file'
6804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6807 lt_cv_file_magic_cmd='/bin/file'
6808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6809 lt_cv_file_magic_test_file=/lib/libc.so
6812 lt_cv_deplibs_check_method=pass_all
6815 lt_cv_deplibs_check_method=pass_all
6820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6821 lt_cv_deplibs_check_method=pass_all
6826 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6828 file_magic_cmd=$lt_cv_file_magic_cmd
6829 deplibs_check_method=$lt_cv_deplibs_check_method
6830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6835 # If no C compiler was specified, use CC.
6838 # If no C compiler flags were specified, use CFLAGS.
6839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6841 # Allow CC to be a program name with arguments.
6844 # Check whether --enable-libtool-lock was given.
6845 if test "${enable_libtool_lock+set}" = set; then
6846 enableval=$enable_libtool_lock;
6849 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6851 # Some flags need to be propagated to the compiler or linker for good
6855 # Find out which ABI we are using.
6856 echo 'int i;' > conftest.$ac_ext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858 (eval $ac_compile) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; then
6862 case `/usr/bin/file conftest.$ac_objext` in
6874 # Find out which ABI we are using.
6875 echo '#line 6875 "configure"' > conftest.$ac_ext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; then
6881 if test "$lt_cv_prog_gnu_ld" = yes; then
6882 case `/usr/bin/file conftest.$ac_objext` in
6884 LD="${LD-ld} -melf32bsmip"
6887 LD="${LD-ld} -melf32bmipn32"
6890 LD="${LD-ld} -melf64bmip"
6894 case `/usr/bin/file conftest.$ac_objext` in
6910 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6911 # Find out which ABI we are using.
6912 echo 'int i;' > conftest.$ac_ext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; then
6918 case `/usr/bin/file conftest.o` in
6922 LD="${LD-ld} -m elf_i386"
6924 ppc64-*linux*|powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6928 LD="${LD-ld} -m elf_s390"
6931 LD="${LD-ld} -m elf32_sparc"
6938 LD="${LD-ld} -m elf_x86_64"
6940 ppc*-*linux*|powerpc*-*linux*)
6941 LD="${LD-ld} -m elf64ppc"
6944 LD="${LD-ld} -m elf64_s390"
6947 LD="${LD-ld} -m elf64_sparc"
6957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6958 SAVE_CFLAGS="$CFLAGS"
6959 CFLAGS="$CFLAGS -belf"
6960 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6961 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6962 if test "${lt_cv_cc_needs_belf+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 ac_cpp='$CPP $CPPFLAGS'
6967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (ac_try="$ac_link"
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6993 (eval "$ac_link") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest$ac_exeext &&
7003 $as_test_x conftest$ac_exeext; then
7004 lt_cv_cc_needs_belf=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 lt_cv_cc_needs_belf=no
7012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7013 conftest$ac_exeext conftest.$ac_ext
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7022 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7023 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7024 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7025 CFLAGS="$SAVE_CFLAGS"
7029 # Find out which ABI we are using.
7030 echo 'int i;' > conftest.$ac_ext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; then
7036 case `/usr/bin/file conftest.o` in
7038 case $lt_cv_prog_gnu_ld in
7039 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7040 *) LD="${LD-ld} -64" ;;
7051 need_locks="$enable_libtool_lock"
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7061 # On Suns, sometimes $CPP names a directory.
7062 if test -n "$CPP" && test -d "$CPP"; then
7065 if test -z "$CPP"; then
7066 if test "${ac_cv_prog_CPP+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 # Double quotes because CPP needs to be expanded
7070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7073 for ac_c_preproc_warn_flag in '' yes
7075 # Use a header file that comes with gcc, so configuring glibc
7076 # with a fresh cross-compiler works.
7077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7078 # <limits.h> exists even on freestanding compilers.
7079 # On the NeXT, cc -E runs the code through the compiler's parser,
7080 # not just through cpp. "Syntax error" is here to catch this case.
7081 cat >conftest.$ac_ext <<_ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7088 # include <limits.h>
7090 # include <assert.h>
7094 if { (ac_try="$ac_cpp conftest.$ac_ext"
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7102 grep -v '^ *+' conftest.er1 >conftest.err
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } >/dev/null && {
7107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7115 # Broken: fails on valid input.
7119 rm -f conftest.err conftest.$ac_ext
7121 # OK, works on sane cases. Now check whether nonexistent headers
7122 # can be detected and how.
7123 cat >conftest.$ac_ext <<_ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 #include <ac_nonexistent.h>
7131 if { (ac_try="$ac_cpp conftest.$ac_ext"
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } >/dev/null && {
7144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7147 # Broken: success on invalid input.
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 # Passes both tests.
7158 rm -f conftest.err conftest.$ac_ext
7161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7162 rm -f conftest.err conftest.$ac_ext
7163 if $ac_preproc_ok; then
7175 { echo "$as_me:$LINENO: result: $CPP" >&5
7176 echo "${ECHO_T}$CPP" >&6; }
7178 for ac_c_preproc_warn_flag in '' yes
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7193 # include <limits.h>
7195 # include <assert.h>
7199 if { (ac_try="$ac_cpp conftest.$ac_ext"
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7207 grep -v '^ *+' conftest.er1 >conftest.err
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } >/dev/null && {
7212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 # Broken: fails on valid input.
7224 rm -f conftest.err conftest.$ac_ext
7226 # OK, works on sane cases. Now check whether nonexistent headers
7227 # can be detected and how.
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <ac_nonexistent.h>
7236 if { (ac_try="$ac_cpp conftest.$ac_ext"
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7244 grep -v '^ *+' conftest.er1 >conftest.err
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } >/dev/null && {
7249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7250 test ! -s conftest.err
7252 # Broken: success on invalid input.
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 # Passes both tests.
7263 rm -f conftest.err conftest.$ac_ext
7266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7267 rm -f conftest.err conftest.$ac_ext
7268 if $ac_preproc_ok; then
7271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7272 See \`config.log' for more details." >&5
7273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7274 See \`config.log' for more details." >&2;}
7275 { (exit 1); exit 1; }; }
7279 ac_cpp='$CPP $CPPFLAGS'
7280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7287 if test "${ac_cv_header_stdc+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 ac_cv_header_stdc=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_cv_header_stdc=no
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 if test $ac_cv_header_stdc = yes; then
7337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7348 $EGREP "memchr" >/dev/null 2>&1; then
7351 ac_cv_header_stdc=no
7357 if test $ac_cv_header_stdc = yes; then
7358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "free" >/dev/null 2>&1; then
7372 ac_cv_header_stdc=no
7378 if test $ac_cv_header_stdc = yes; then
7379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7380 if test "$cross_compiling" = yes; then
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7391 #if ((' ' & 0x0FF) == 0x020)
7392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7395 # define ISLOWER(c) \
7396 (('a' <= (c) && (c) <= 'i') \
7397 || ('j' <= (c) && (c) <= 'r') \
7398 || ('s' <= (c) && (c) <= 'z'))
7399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7407 for (i = 0; i < 256; i++)
7408 if (XOR (islower (i), ISLOWER (i))
7409 || toupper (i) != TOUPPER (i))
7414 rm -f conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_link") 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425 { (case "(($ac_try" in
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_try") 2>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7436 echo "$as_me: program exited with status $ac_status" >&5
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_cv_header_stdc=no
7443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7449 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7450 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7451 if test $ac_cv_header_stdc = yes; then
7453 cat >>confdefs.h <<\_ACEOF
7454 #define STDC_HEADERS 1
7459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7470 inttypes.h stdint.h unistd.h
7472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7486 #include <$ac_header>
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 eval "$as_ac_Header=yes"
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 eval "$as_ac_Header=no"
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 for ac_header in dlfcn.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null && {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7610 ac_header_preproc=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_header_preproc=no
7618 rm -f conftest.err conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc=yes
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7645 ## -------------------------------- ##
7646 ## Report this to Hans.Boehm@hp.com ##
7647 ## -------------------------------- ##
7649 ) | sed "s/^/$as_me: WARNING: /" >&2
7652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 eval "$as_ac_Header=\$ac_header_preproc"
7659 ac_res=`eval echo '${'$as_ac_Header'}'`
7660 { echo "$as_me:$LINENO: result: $ac_res" >&5
7661 echo "${ECHO_T}$ac_res" >&6; }
7664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7665 cat >>confdefs.h <<_ACEOF
7666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7676 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7677 (test "X$CXX" != "Xg++"))) ; then
7679 ac_cpp='$CXXCPP $CPPFLAGS'
7680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7683 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7684 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7685 if test -z "$CXXCPP"; then
7686 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 # Double quotes because CXXCPP needs to be expanded
7690 for CXXCPP in "$CXX -E" "/lib/cpp"
7693 for ac_cxx_preproc_warn_flag in '' yes
7695 # Use a header file that comes with gcc, so configuring glibc
7696 # with a fresh cross-compiler works.
7697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7698 # <limits.h> exists even on freestanding compilers.
7699 # On the NeXT, cc -E runs the code through the compiler's parser,
7700 # not just through cpp. "Syntax error" is here to catch this case.
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7708 # include <limits.h>
7710 # include <assert.h>
7714 if { (ac_try="$ac_cpp conftest.$ac_ext"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev/null && {
7727 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7728 test ! -s conftest.err
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 # Broken: fails on valid input.
7739 rm -f conftest.err conftest.$ac_ext
7741 # OK, works on sane cases. Now check whether nonexistent headers
7742 # can be detected and how.
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <ac_nonexistent.h>
7751 if { (ac_try="$ac_cpp conftest.$ac_ext"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } >/dev/null && {
7764 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7765 test ! -s conftest.err
7767 # Broken: success on invalid input.
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 # Passes both tests.
7778 rm -f conftest.err conftest.$ac_ext
7781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7782 rm -f conftest.err conftest.$ac_ext
7783 if $ac_preproc_ok; then
7788 ac_cv_prog_CXXCPP=$CXXCPP
7791 CXXCPP=$ac_cv_prog_CXXCPP
7793 ac_cv_prog_CXXCPP=$CXXCPP
7795 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7796 echo "${ECHO_T}$CXXCPP" >&6; }
7798 for ac_cxx_preproc_warn_flag in '' yes
7800 # Use a header file that comes with gcc, so configuring glibc
7801 # with a fresh cross-compiler works.
7802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7803 # <limits.h> exists even on freestanding compilers.
7804 # On the NeXT, cc -E runs the code through the compiler's parser,
7805 # not just through cpp. "Syntax error" is here to catch this case.
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7813 # include <limits.h>
7815 # include <assert.h>
7819 if { (ac_try="$ac_cpp conftest.$ac_ext"
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } >/dev/null && {
7832 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7833 test ! -s conftest.err
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 # Broken: fails on valid input.
7844 rm -f conftest.err conftest.$ac_ext
7846 # OK, works on sane cases. Now check whether nonexistent headers
7847 # can be detected and how.
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <ac_nonexistent.h>
7856 if { (ac_try="$ac_cpp conftest.$ac_ext"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } >/dev/null && {
7869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7870 test ! -s conftest.err
7872 # Broken: success on invalid input.
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 # Passes both tests.
7883 rm -f conftest.err conftest.$ac_ext
7886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7887 rm -f conftest.err conftest.$ac_ext
7888 if $ac_preproc_ok; then
7891 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; }
7899 ac_cpp='$CXXCPP $CPPFLAGS'
7900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7908 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7909 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7911 if test -n "$ac_tool_prefix"; then
7912 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
7914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7918 if test "${ac_cv_prog_F77+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test -n "$F77"; then
7922 ac_cv_prog_F77="$F77" # Let the user override the test.
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 if test -n "$F77"; then
7943 { echo "$as_me:$LINENO: result: $F77" >&5
7944 echo "${ECHO_T}$F77" >&6; }
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7951 test -n "$F77" && break
7954 if test -z "$F77"; then
7956 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
7958 # Extract the first word of "$ac_prog", so it can be a program name with args.
7959 set dummy $ac_prog; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 if test -n "$ac_ct_F77"; then
7966 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_ac_ct_F77="$ac_prog"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7986 if test -n "$ac_ct_F77"; then
7987 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7988 echo "${ECHO_T}$ac_ct_F77" >&6; }
7990 { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7995 test -n "$ac_ct_F77" && break
7998 if test "x$ac_ct_F77" = x; then
8001 case $cross_compiling:$ac_tool_warned in
8003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8004 whose name does not start with the host triplet. If you think this
8005 configuration is useful to you, please write to autoconf@gnu.org." >&5
8006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8007 whose name does not start with the host triplet. If you think this
8008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8009 ac_tool_warned=yes ;;
8016 # Provide some information about the compiler.
8017 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8018 ac_compiler=`set X $ac_compile; echo $2`
8019 { (ac_try="$ac_compiler --version >&5"
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_compiler --version >&5") 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }
8029 { (ac_try="$ac_compiler -v >&5"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compiler -v >&5") 2>&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }
8039 { (ac_try="$ac_compiler -V >&5"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compiler -V >&5") 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }
8051 # If we don't use `.F' as extension, the preprocessor is not run on the
8052 # input file. (Note that this only needs to work for GNU compilers.)
8055 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8056 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8057 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_f77_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8097 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8098 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8100 ac_test_FFLAGS=${FFLAGS+set}
8101 ac_save_FFLAGS=$FFLAGS
8103 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8104 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8105 if test "${ac_cv_prog_f77_g+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_f77_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8131 ac_cv_prog_f77_g=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8143 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8144 if test "$ac_test_FFLAGS" = set; then
8145 FFLAGS=$ac_save_FFLAGS
8146 elif test $ac_cv_prog_f77_g = yes; then
8147 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8160 G77=`test $ac_compiler_gnu = yes && echo yes`
8162 ac_cpp='$CPP $CPPFLAGS'
8163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8171 # find the maximum length of command line arguments
8172 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8173 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8174 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 # On DJGPP, this test can blow up pretty badly due to problems in libc
8183 # (any single argument exceeding 2000 bytes causes a buffer overrun
8184 # during glob expansion). Even if it were fixed, the result of this
8185 # check would be larger than it should be.
8186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8190 # Under GNU Hurd, this test is not required because there is
8191 # no limit to the length of command line arguments.
8192 # Libtool will interpret -1 as no limit whatsoever
8193 lt_cv_sys_max_cmd_len=-1;
8197 # On Win9x/ME, this test blows up -- it succeeds, but takes
8198 # about 5 minutes as the teststring grows exponentially.
8199 # Worse, since 9x/ME are not pre-emptively multitasking,
8200 # you end up with a "frozen" computer, even though with patience
8201 # the test eventually succeeds (with a max line length of 256k).
8202 # Instead, let's just punt: use the minimum linelength reported by
8203 # all of the supported platforms: 8192 (on NT/2K/XP).
8204 lt_cv_sys_max_cmd_len=8192;
8208 # On AmigaOS with pdksh, this test takes hours, literally.
8209 # So we just punt and use a minimum line length of 8192.
8210 lt_cv_sys_max_cmd_len=8192;
8213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8214 # This has been around since 386BSD, at least. Likely further.
8215 if test -x /sbin/sysctl; then
8216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8217 elif test -x /usr/sbin/sysctl; then
8218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8222 # And add a safety zone
8223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8229 lt_cv_sys_max_cmd_len=196608
8233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8235 # nice to cause kernel panics so lets avoid the loop below.
8236 # First set a reasonable default.
8237 lt_cv_sys_max_cmd_len=16384
8239 if test -x /sbin/sysconfig; then
8240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8241 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8246 lt_cv_sys_max_cmd_len=102400
8248 sysv5* | sco5v6* | sysv4.2uw2*)
8249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8250 if test -n "$kargmax"; then
8251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8253 lt_cv_sys_max_cmd_len=32768
8257 # If test is not a shell built-in, we'll probably end up computing a
8258 # maximum length that is only half of the actual maximum length, but
8260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8261 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8262 = "XX$teststring") >/dev/null 2>&1 &&
8263 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8264 lt_cv_sys_max_cmd_len=$new_result &&
8265 test $i != 17 # 1/2 MB should be enough
8268 teststring=$teststring$teststring
8271 # Add a significant safety factor because C++ compilers can tack on massive
8272 # amounts of additional arguments before passing them to the linker.
8273 # It appears as though 1/2 is a usable value.
8274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8280 if test -n $lt_cv_sys_max_cmd_len ; then
8281 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8282 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8284 { echo "$as_me:$LINENO: result: none" >&5
8285 echo "${ECHO_T}none" >&6; }
8291 # Check for command to grab the raw symbol name followed by C symbol from nm.
8292 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8293 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8294 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 # These are sane defaults that work on at least a few old systems.
8299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8301 # Character class describing NM global symbol codes.
8302 symcode='[BCDEGRST]'
8304 # Regexp to match symbols that can be accessed directly from C.
8305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8307 # Transform an extracted symbol line into a proper C declaration
8308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8310 # Transform an extracted symbol line into symbol name and symbol address
8311 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'"
8313 # Define system-specific variables.
8318 cygwin* | mingw* | pw32*)
8319 symcode='[ABCDGISTW]'
8321 hpux*) # Its linker distinguishes data from code symbols
8322 if test "$host_cpu" = ia64; then
8323 symcode='[ABCDEGRST]'
8325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8326 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'"
8329 if test "$host_cpu" = ia64; then
8330 symcode='[ABCDGIRSTW]'
8331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8332 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'"
8336 symcode='[BCDEGRST]'
8339 symcode='[BCDEGQRST]'
8350 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8358 # Handle CRLF in mingw tool chain
8362 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8366 # If we're using GNU nm, then use its standard symbol codes.
8367 case `$NM -V 2>&1` in
8368 *GNU* | *'with BFD'*)
8369 symcode='[ABCDGIRSTW]' ;;
8372 # Try without a prefix undercore, then with it.
8373 for ac_symprfx in "" "_"; do
8375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8376 symxfrm="\\1 $ac_symprfx\\2 \\2"
8378 # Write the raw and C identifiers.
8379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8381 # Check to see that the pipe works correctly.
8385 cat > conftest.$ac_ext <<EOF
8390 void nm_test_func(){}
8394 int main(){nm_test_var='a';nm_test_func();return(0);}
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; then
8402 # Now try to grab the symbols.
8404 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && test -s "$nlist"; then
8409 # Try sorting and uniquifying the output.
8410 if sort "$nlist" | uniq > "$nlist"T; then
8411 mv -f "$nlist"T "$nlist"
8416 # Make sure that we snagged all the symbols we need.
8417 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8418 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8419 cat <<EOF > conftest.$ac_ext
8425 # Now generate the symbol file.
8426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8428 cat <<EOF >> conftest.$ac_ext
8429 #if defined (__STDC__) && __STDC__
8430 # define lt_ptr_t void *
8432 # define lt_ptr_t char *
8436 /* The mapping between symbol names and symbols. */
8441 lt_preloaded_symbols[] =
8444 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8445 cat <<\EOF >> conftest.$ac_ext
8453 # Now try linking the two files.
8454 mv conftest.$ac_objext conftstm.$ac_objext
8455 lt_save_LIBS="$LIBS"
8456 lt_save_CFLAGS="$CFLAGS"
8457 LIBS="conftstm.$ac_objext"
8458 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8466 LIBS="$lt_save_LIBS"
8467 CFLAGS="$lt_save_CFLAGS"
8469 echo "cannot find nm_test_func in $nlist" >&5
8472 echo "cannot find nm_test_var in $nlist" >&5
8475 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8478 echo "$progname: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 rm -f conftest* conftst*
8483 # Do not use the global_symbol_pipe unless it works.
8484 if test "$pipe_works" = yes; then
8487 lt_cv_sys_global_symbol_pipe=
8493 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8494 lt_cv_sys_global_symbol_to_cdecl=
8496 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8497 { echo "$as_me:$LINENO: result: failed" >&5
8498 echo "${ECHO_T}failed" >&6; }
8500 { echo "$as_me:$LINENO: result: ok" >&5
8501 echo "${ECHO_T}ok" >&6; }
8504 { echo "$as_me:$LINENO: checking for objdir" >&5
8505 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8506 if test "${lt_cv_objdir+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 rm -f .libs 2>/dev/null
8510 mkdir .libs 2>/dev/null
8511 if test -d .libs; then
8514 # MS-DOS does not allow filenames that begin with a dot.
8517 rmdir .libs 2>/dev/null
8519 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8520 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8521 objdir=$lt_cv_objdir
8529 # AIX sometimes has problems with the GCC collect2 program. For some
8530 # reason, if we set the COLLECT_NAMES environment variable, the problems
8531 # vanish in a puff of smoke.
8532 if test "X${COLLECT_NAMES+set}" != Xset; then
8534 export COLLECT_NAMES
8539 # Sed substitution that helps us do robust quoting. It backslashifies
8540 # metacharacters that are still active within double-quoted strings.
8541 Xsed='sed -e 1s/^X//'
8542 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8544 # Same as above, but do not quote variable references.
8545 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8547 # Sed substitution to delay expansion of an escaped shell variable in a
8548 # double_quote_subst'ed string.
8549 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8551 # Sed substitution to avoid accidental globbing in evaled expressions
8552 no_glob_subst='s/\*/\\\*/g'
8558 default_ofile=libtool
8559 can_build_shared=yes
8561 # All known linkers require a `.a' archive for static linking (except MSVC,
8562 # which needs '.lib').
8564 ltmain="$ac_aux_dir/ltmain.sh"
8565 ofile="$default_ofile"
8566 with_gnu_ld="$lt_cv_prog_gnu_ld"
8568 if test -n "$ac_tool_prefix"; then
8569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8570 set dummy ${ac_tool_prefix}ar; ac_word=$2
8571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8573 if test "${ac_cv_prog_AR+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 if test -n "$AR"; then
8577 ac_cv_prog_AR="$AR" # Let the user override the test.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_prog_AR="${ac_tool_prefix}ar"
8587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 if test -n "$AR"; then
8598 { echo "$as_me:$LINENO: result: $AR" >&5
8599 echo "${ECHO_T}$AR" >&6; }
8601 { echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6; }
8607 if test -z "$ac_cv_prog_AR"; then
8609 # Extract the first word of "ar", so it can be a program name with args.
8610 set dummy ar; ac_word=$2
8611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 if test -n "$ac_ct_AR"; then
8617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_prog_ac_ct_AR="ar"
8627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8637 if test -n "$ac_ct_AR"; then
8638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8639 echo "${ECHO_T}$ac_ct_AR" >&6; }
8641 { echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6; }
8645 if test "x$ac_ct_AR" = x; then
8648 case $cross_compiling:$ac_tool_warned in
8650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8651 whose name does not start with the host triplet. If you think this
8652 configuration is useful to you, please write to autoconf@gnu.org." >&5
8653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8654 whose name does not start with the host triplet. If you think this
8655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8656 ac_tool_warned=yes ;;
8664 if test -n "$ac_tool_prefix"; then
8665 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8666 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8669 if test "${ac_cv_prog_RANLIB+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 if test -n "$RANLIB"; then
8673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 RANLIB=$ac_cv_prog_RANLIB
8693 if test -n "$RANLIB"; then
8694 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8695 echo "${ECHO_T}$RANLIB" >&6; }
8697 { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8703 if test -z "$ac_cv_prog_RANLIB"; then
8704 ac_ct_RANLIB=$RANLIB
8705 # Extract the first word of "ranlib", so it can be a program name with args.
8706 set dummy ranlib; ac_word=$2
8707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 if test -n "$ac_ct_RANLIB"; then
8713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_ac_ct_RANLIB="ranlib"
8723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8733 if test -n "$ac_ct_RANLIB"; then
8734 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8735 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8737 { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8741 if test "x$ac_ct_RANLIB" = x; then
8744 case $cross_compiling:$ac_tool_warned in
8746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8747 whose name does not start with the host triplet. If you think this
8748 configuration is useful to you, please write to autoconf@gnu.org." >&5
8749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8750 whose name does not start with the host triplet. If you think this
8751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8752 ac_tool_warned=yes ;;
8754 RANLIB=$ac_ct_RANLIB
8757 RANLIB="$ac_cv_prog_RANLIB"
8760 if test -n "$ac_tool_prefix"; then
8761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}strip; ac_word=$2
8763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8765 if test "${ac_cv_prog_STRIP+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 if test -n "$STRIP"; then
8769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 STRIP=$ac_cv_prog_STRIP
8789 if test -n "$STRIP"; then
8790 { echo "$as_me:$LINENO: result: $STRIP" >&5
8791 echo "${ECHO_T}$STRIP" >&6; }
8793 { echo "$as_me:$LINENO: result: no" >&5
8794 echo "${ECHO_T}no" >&6; }
8799 if test -z "$ac_cv_prog_STRIP"; then
8801 # Extract the first word of "strip", so it can be a program name with args.
8802 set dummy strip; ac_word=$2
8803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8805 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test -n "$ac_ct_STRIP"; then
8809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818 ac_cv_prog_ac_ct_STRIP="strip"
8819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8829 if test -n "$ac_ct_STRIP"; then
8830 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8831 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8833 { echo "$as_me:$LINENO: result: no" >&5
8834 echo "${ECHO_T}no" >&6; }
8837 if test "x$ac_ct_STRIP" = x; then
8840 case $cross_compiling:$ac_tool_warned in
8842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8843 whose name does not start with the host triplet. If you think this
8844 configuration is useful to you, please write to autoconf@gnu.org." >&5
8845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8846 whose name does not start with the host triplet. If you think this
8847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8848 ac_tool_warned=yes ;;
8853 STRIP="$ac_cv_prog_STRIP"
8858 old_CFLAGS="$CFLAGS"
8860 # Set sane defaults for various variables
8861 test -z "$AR" && AR=ar
8862 test -z "$AR_FLAGS" && AR_FLAGS=cru
8863 test -z "$AS" && AS=as
8864 test -z "$CC" && CC=cc
8865 test -z "$LTCC" && LTCC=$CC
8866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8867 test -z "$DLLTOOL" && DLLTOOL=dlltool
8868 test -z "$LD" && LD=ld
8869 test -z "$LN_S" && LN_S="ln -s"
8870 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8871 test -z "$NM" && NM=nm
8872 test -z "$SED" && SED=sed
8873 test -z "$OBJDUMP" && OBJDUMP=objdump
8874 test -z "$RANLIB" && RANLIB=:
8875 test -z "$STRIP" && STRIP=:
8876 test -z "$ac_objext" && ac_objext=o
8878 # Determine commands to create old-style static archives.
8879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8880 old_postinstall_cmds='chmod 644 $oldlib'
8881 old_postuninstall_cmds=
8883 if test -n "$RANLIB"; then
8886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8895 for cc_temp in $compiler""; do
8897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8906 # Only perform the check for file, if the check method requires it
8907 case $deplibs_check_method in
8909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8910 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8911 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8920 lt_save_MAGIC_CMD="$MAGIC_CMD"
8921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8923 for ac_dir in $ac_dummy; do
8925 test -z "$ac_dir" && ac_dir=.
8926 if test -f $ac_dir/${ac_tool_prefix}file; then
8927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8928 if test -n "$file_magic_test_file"; then
8929 case $deplibs_check_method in
8931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8934 $EGREP "$file_magic_regex" > /dev/null; then
8939 *** Warning: the command libtool uses to detect shared libraries,
8940 *** $file_magic_cmd, produces output that libtool cannot recognize.
8941 *** The result is that libtool may fail to recognize shared libraries
8942 *** as such. This will affect the creation of libtool libraries that
8943 *** depend on shared libraries, but programs linked with such libtool
8944 *** libraries will work regardless of this problem. Nevertheless, you
8945 *** may want to report the problem to your system manager and/or to
8946 *** bug-libtool@gnu.org
8956 MAGIC_CMD="$lt_save_MAGIC_CMD"
8961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8962 if test -n "$MAGIC_CMD"; then
8963 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8964 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8966 { echo "$as_me:$LINENO: result: no" >&5
8967 echo "${ECHO_T}no" >&6; }
8970 if test -z "$lt_cv_path_MAGIC_CMD"; then
8971 if test -n "$ac_tool_prefix"; then
8972 { echo "$as_me:$LINENO: checking for file" >&5
8973 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8982 lt_save_MAGIC_CMD="$MAGIC_CMD"
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8985 for ac_dir in $ac_dummy; do
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/file; then
8989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8990 if test -n "$file_magic_test_file"; then
8991 case $deplibs_check_method in
8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8996 $EGREP "$file_magic_regex" > /dev/null; then
9001 *** Warning: the command libtool uses to detect shared libraries,
9002 *** $file_magic_cmd, produces output that libtool cannot recognize.
9003 *** The result is that libtool may fail to recognize shared libraries
9004 *** as such. This will affect the creation of libtool libraries that
9005 *** depend on shared libraries, but programs linked with such libtool
9006 *** libraries will work regardless of this problem. Nevertheless, you
9007 *** may want to report the problem to your system manager and/or to
9008 *** bug-libtool@gnu.org
9018 MAGIC_CMD="$lt_save_MAGIC_CMD"
9023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9024 if test -n "$MAGIC_CMD"; then
9025 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9026 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9028 { echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6; }
9044 # Check whether --enable-libtool-lock was given.
9045 if test "${enable_libtool_lock+set}" = set; then
9046 enableval=$enable_libtool_lock;
9049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9052 # Check whether --with-pic was given.
9053 if test "${with_pic+set}" = set; then
9054 withval=$with_pic; pic_mode="$withval"
9059 test -z "$pic_mode" && pic_mode=default
9061 # Use C for the default configuration in the libtool script
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071 # Source file extension for C test sources.
9074 # Object file extension for compiled C test sources.
9078 # Code to be used in simple compile tests
9079 lt_simple_compile_test_code="int some_variable = 0;\n"
9081 # Code to be used in simple link tests
9082 lt_simple_link_test_code='int main(){return(0);}\n'
9085 # If no C compiler was specified, use CC.
9088 # If no C compiler flags were specified, use CFLAGS.
9089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9091 # Allow CC to be a program name with arguments.
9095 # save warnings/boilerplate of simple test code
9096 ac_outfile=conftest.$ac_objext
9097 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9099 _lt_compiler_boilerplate=`cat conftest.err`
9102 ac_outfile=conftest.$ac_objext
9103 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9105 _lt_linker_boilerplate=`cat conftest.err`
9110 ## There is no encapsulation within the following macros, do not change
9111 ## the running order or otherwise move them around unless you know exactly
9112 ## what you are doing...
9114 lt_prog_compiler_no_builtin_flag=
9116 if test "$GCC" = yes; then
9117 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9120 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9121 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9122 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 lt_cv_prog_compiler_rtti_exceptions=no
9126 ac_outfile=conftest.$ac_objext
9127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9128 lt_compiler_flag="-fno-rtti -fno-exceptions"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 # The option is referenced via a variable to avoid confusing sed.
9134 lt_compile=`echo "$ac_compile" | $SED \
9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137 -e 's:$: $lt_compiler_flag:'`
9138 (eval echo "\"\$as_me:9138: $lt_compile\"" >&5)
9139 (eval "$lt_compile" 2>conftest.err)
9141 cat conftest.err >&5
9142 echo "$as_me:9142: \$? = $ac_status" >&5
9143 if (exit $ac_status) && test -s "$ac_outfile"; then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings other than the usual output.
9146 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_rtti_exceptions=yes
9155 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9156 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9158 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9159 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9166 lt_prog_compiler_wl=
9167 lt_prog_compiler_pic=
9168 lt_prog_compiler_static=
9170 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9171 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9173 if test "$GCC" = yes; then
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_static='-static'
9179 # All AIX code is PIC.
9180 if test "$host_cpu" = ia64; then
9181 # AIX 5 now supports IA64 processor
9182 lt_prog_compiler_static='-Bstatic'
9187 # FIXME: we need at least 68020 code to build shared libraries, but
9188 # adding the `-m68020' flag to GCC prevents building anything better,
9190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9193 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9194 # PIC is the default for these OSes.
9197 mingw* | pw32* | os2*)
9198 # This hack is so that the source file can tell whether it is being
9199 # built for inclusion in a dll (and should export symbols for example).
9200 lt_prog_compiler_pic='-DDLL_EXPORT'
9203 darwin* | rhapsody*)
9204 # PIC is the default on this platform
9205 # Common symbols not allowed in MH_DYLIB files
9206 lt_prog_compiler_pic='-fno-common'
9210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9211 # Instead, we relocate shared libraries at runtime.
9215 # Just because we use GCC doesn't mean we suddenly get shared libraries
9216 # on systems that don't support them.
9217 lt_prog_compiler_can_build_shared=no
9222 if test -d /usr/nec; then
9223 lt_prog_compiler_pic=-Kconform_pic
9228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9235 lt_prog_compiler_pic='-fPIC'
9241 lt_prog_compiler_pic='-fPIC'
9245 # PORTME Check for flag to pass linker flags through the system compiler.
9248 lt_prog_compiler_wl='-Wl,'
9249 if test "$host_cpu" = ia64; then
9250 # AIX 5 now supports IA64 processor
9251 lt_prog_compiler_static='-Bstatic'
9253 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9257 # PIC is the default on this platform
9258 # Common symbols not allowed in MH_DYLIB files
9259 case $cc_basename in
9261 lt_prog_compiler_pic='-qnocommon'
9262 lt_prog_compiler_wl='-Wl,'
9267 mingw* | pw32* | os2*)
9268 # This hack is so that the source file can tell whether it is being
9269 # built for inclusion in a dll (and should export symbols for example).
9270 lt_prog_compiler_pic='-DDLL_EXPORT'
9273 hpux9* | hpux10* | hpux11*)
9274 lt_prog_compiler_wl='-Wl,'
9275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9282 lt_prog_compiler_pic='+Z'
9285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9286 lt_prog_compiler_static='${wl}-a ${wl}archive'
9289 irix5* | irix6* | nonstopux*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # PIC (with -KPIC) is the default.
9292 lt_prog_compiler_static='-non_shared'
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9301 case $cc_basename in
9303 lt_prog_compiler_wl='-Wl,'
9304 lt_prog_compiler_pic='-KPIC'
9305 lt_prog_compiler_static='-static'
9307 pgcc* | pgf77* | pgf90* | pgf95*)
9308 # Portland Group compilers (*not* the Pentium gcc compiler,
9309 # which looks to be a dead project)
9310 lt_prog_compiler_wl='-Wl,'
9311 lt_prog_compiler_pic='-fpic'
9312 lt_prog_compiler_static='-Bstatic'
9315 lt_prog_compiler_wl='-Wl,'
9316 # All Alpha code is PIC.
9317 lt_prog_compiler_static='-non_shared'
9322 osf3* | osf4* | osf5*)
9323 lt_prog_compiler_wl='-Wl,'
9324 # All OSF/1 code is PIC.
9325 lt_prog_compiler_static='-non_shared'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 case $cc_basename in
9333 lt_prog_compiler_wl='-Qoption ld ';;
9335 lt_prog_compiler_wl='-Wl,';;
9340 lt_prog_compiler_wl='-Qoption ld '
9341 lt_prog_compiler_pic='-PIC'
9342 lt_prog_compiler_static='-Bstatic'
9345 sysv4 | sysv4.2uw2* | sysv4.3*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9352 if test -d /usr/nec ;then
9353 lt_prog_compiler_pic='-Kconform_pic'
9354 lt_prog_compiler_static='-Bstatic'
9358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_can_build_shared=no
9370 lt_prog_compiler_pic='-pic'
9371 lt_prog_compiler_static='-Bstatic'
9375 lt_prog_compiler_can_build_shared=no
9380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9381 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9384 # Check to make sure the PIC flag actually works.
9386 if test -n "$lt_prog_compiler_pic"; then
9388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9390 if test "${lt_prog_compiler_pic_works+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 lt_prog_compiler_pic_works=no
9394 ac_outfile=conftest.$ac_objext
9395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9397 # Insert the option either (1) after the last *FLAGS variable, or
9398 # (2) before a word containing "conftest.", or (3) at the end.
9399 # Note that $ac_compile itself does not contain backslashes and begins
9400 # with a dollar sign (not a hyphen), so the echo should work correctly.
9401 # The option is referenced via a variable to avoid confusing sed.
9402 lt_compile=`echo "$ac_compile" | $SED \
9403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9405 -e 's:$: $lt_compiler_flag:'`
9406 (eval echo "\"\$as_me:9406: $lt_compile\"" >&5)
9407 (eval "$lt_compile" 2>conftest.err)
9409 cat conftest.err >&5
9410 echo "$as_me:9410: \$? = $ac_status" >&5
9411 if (exit $ac_status) && test -s "$ac_outfile"; then
9412 # The compiler can only warn and ignore the option if not recognized
9413 # So say no if there are warnings other than the usual output.
9414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9417 lt_prog_compiler_pic_works=yes
9423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9424 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9426 if test x"$lt_prog_compiler_pic_works" = xyes; then
9427 case $lt_prog_compiler_pic in
9429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9432 lt_prog_compiler_pic=
9433 lt_prog_compiler_can_build_shared=no
9438 # For platforms which do not support PIC, -DPIC is meaningless:
9440 lt_prog_compiler_pic=
9443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9448 # Check to make sure the static flag actually works.
9450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9453 if test "${lt_prog_compiler_static_works+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 lt_prog_compiler_static_works=no
9457 save_LDFLAGS="$LDFLAGS"
9458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9459 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9461 # The linker can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 if test -s conftest.err; then
9464 # Append any errors to the config.log.
9465 cat conftest.err 1>&5
9466 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_prog_compiler_static_works=yes
9472 lt_prog_compiler_static_works=yes
9476 LDFLAGS="$save_LDFLAGS"
9479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9480 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9482 if test x"$lt_prog_compiler_static_works" = xyes; then
9485 lt_prog_compiler_static=
9489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9491 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 lt_cv_prog_compiler_c_o=no
9495 $rm -r conftest 2>/dev/null
9499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9501 lt_compiler_flag="-o out/conftest2.$ac_objext"
9502 # Insert the option either (1) after the last *FLAGS variable, or
9503 # (2) before a word containing "conftest.", or (3) at the end.
9504 # Note that $ac_compile itself does not contain backslashes and begins
9505 # with a dollar sign (not a hyphen), so the echo should work correctly.
9506 lt_compile=`echo "$ac_compile" | $SED \
9507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9509 -e 's:$: $lt_compiler_flag:'`
9510 (eval echo "\"\$as_me:9510: $lt_compile\"" >&5)
9511 (eval "$lt_compile" 2>out/conftest.err)
9513 cat out/conftest.err >&5
9514 echo "$as_me:9514: \$? = $ac_status" >&5
9515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9517 # The compiler can only warn and ignore the option if not recognized
9518 # So say no if there are warnings
9519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9522 lt_cv_prog_compiler_c_o=yes
9527 # SGI C++ compiler will create directory out/ii_files/ for
9528 # template instantiation
9529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9530 $rm out/* && rmdir out
9536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9540 hard_links="nottested"
9541 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9542 # do not overwrite the value of need_locks provided by the user
9543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9549 ln conftest.a conftest.b 2>&5 || hard_links=no
9550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9551 { echo "$as_me:$LINENO: result: $hard_links" >&5
9552 echo "${ECHO_T}$hard_links" >&6; }
9553 if test "$hard_links" = no; then
9554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9566 allow_undefined_flag=
9567 enable_shared_with_static_runtimes=no
9569 archive_expsym_cmds=
9570 old_archive_From_new_cmds=
9571 old_archive_from_expsyms_cmds=
9572 export_dynamic_flag_spec=
9573 whole_archive_flag_spec=
9574 thread_safe_flag_spec=
9575 hardcode_libdir_flag_spec=
9576 hardcode_libdir_flag_spec_ld=
9577 hardcode_libdir_separator=
9580 hardcode_shlibpath_var=unsupported
9581 link_all_deplibs=unknown
9582 hardcode_automatic=no
9585 always_export_symbols=no
9586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9587 # include_expsyms should be a list of space-separated symbols to be *always*
9588 # included in the symbol list
9590 # exclude_expsyms can be an extended regexp of symbols to exclude
9591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9593 # as well as any symbol that contains `d'.
9594 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9596 # platforms (ab)use it in PIC code, but their linkers get confused if
9597 # the symbol is explicitly referenced. Since portable code cannot
9598 # rely on this symbol name, it's probably fine to never include it in
9599 # preloaded symbol tables.
9600 extract_expsyms_cmds=
9601 # Just being paranoid about ensuring that cc_basename is set.
9602 for cc_temp in $compiler""; do
9604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9613 cygwin* | mingw* | pw32*)
9614 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9615 # When not using gcc, we currently assume that we are using
9616 # Microsoft Visual C++.
9617 if test "$GCC" != yes; then
9622 # we just hope/assume this is gcc and not c89 (= MSVC++)
9631 if test "$with_gnu_ld" = yes; then
9632 # If archive_cmds runs LD, not CC, wlarc should be empty
9635 # Set some defaults for GNU ld with shared library support. These
9636 # are reset later if shared libraries are not supported. Putting them
9637 # here allows them to be overridden if necessary.
9638 runpath_var=LD_RUN_PATH
9639 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9640 export_dynamic_flag_spec='${wl}--export-dynamic'
9641 # ancient GNU ld didn't support --whole-archive et. al.
9642 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9643 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9645 whole_archive_flag_spec=
9647 supports_anon_versioning=no
9648 case `$LD -v 2>/dev/null` in
9649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9652 *\ 2.11.*) ;; # other 2.11 versions
9653 *) supports_anon_versioning=yes ;;
9656 # See if GNU ld supports shared libraries.
9658 aix3* | aix4* | aix5*)
9659 # On AIX/PPC, the GNU linker is very broken
9660 if test "$host_cpu" != ia64; then
9664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9665 *** to be unable to reliably create shared libraries on AIX.
9666 *** Therefore, libtool is disabling shared libraries support. If you
9667 *** really care for shared libraries, you may want to modify your PATH
9668 *** so that a non-GNU linker is found, and then restart.
9675 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)'
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_minus_L=yes
9679 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9680 # that the semantics of dynamic libraries on AmigaOS, at least up
9681 # to version 4, is to share data among multiple programs linked
9682 # with the same dynamic library. Since this doesn't match the
9683 # behavior of shared libraries on other platforms, we can't use
9689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9690 allow_undefined_flag=unsupported
9691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9692 # support --undefined. This deserves some investigation. FIXME
9693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 cygwin* | mingw* | pw32*)
9700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9701 # as there is no search path for DLLs.
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 allow_undefined_flag=unsupported
9704 always_export_symbols=no
9705 enable_shared_with_static_runtimes=yes
9706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9708 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9710 # If the export-symbols file already is a .def file (1st line
9711 # is EXPORTS), use it as is; otherwise, prepend...
9712 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9713 cp $export_symbols $output_objdir/$soname.def;
9715 echo EXPORTS > $output_objdir/$soname.def;
9716 cat $export_symbols >> $output_objdir/$soname.def;
9718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9726 hardcode_shlibpath_var=no
9727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9728 export_dynamic_flag_spec='${wl}-E'
9729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9730 # Instead, shared libraries are loaded at an image base (0x10000000 by
9731 # default) and relocated if they conflict, which is a slow very memory
9732 # consuming and fragmenting process. To avoid this, we pick a random,
9733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9736 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'
9740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9742 case $cc_basename,$host_cpu in
9743 pgcc*) # Portland Group C compiler
9744 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'
9745 tmp_addflag=' $pic_flag'
9747 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9748 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'
9749 tmp_addflag=' $pic_flag -Mnomain' ;;
9750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9751 tmp_addflag=' -i_dynamic' ;;
9752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9753 tmp_addflag=' -i_dynamic -nofor_main' ;;
9754 ifc* | ifort*) # Intel Fortran compiler
9755 tmp_addflag=' -nofor_main' ;;
9757 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759 if test $supports_anon_versioning = yes; then
9760 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9762 $echo "local: *; };" >> $output_objdir/$libname.ver~
9763 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9772 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9785 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9786 *** create shared libraries on Solaris systems. Therefore, libtool
9787 *** is disabling shared libraries support. We urge you to upgrade GNU
9788 *** binutils to release 2.9.1 or newer. Another option is to modify
9789 *** your PATH or compiler configuration so that the native linker is
9790 *** used, and then restart.
9793 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9802 case `$LD -v 2>&1` in
9803 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9807 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9808 *** reliably create shared libraries on SCO systems. Therefore, libtool
9809 *** is disabling shared libraries support. We urge you to upgrade GNU
9810 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9811 *** your PATH or compiler configuration so that the native linker is
9812 *** used, and then restart.
9817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9818 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9829 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_shlibpath_var=no
9836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9845 if test "$ld_shlibs" = no; then
9847 hardcode_libdir_flag_spec=
9848 export_dynamic_flag_spec=
9849 whole_archive_flag_spec=
9852 # PORTME fill in a description of your system's linker (not GNU ld)
9855 allow_undefined_flag=unsupported
9856 always_export_symbols=yes
9857 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'
9858 # Note: this linker hardcodes the directories in LIBPATH if there
9859 # are no directories specified by -L.
9860 hardcode_minus_L=yes
9861 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9862 # Neither direct hardcoding nor static linking is supported with a
9864 hardcode_direct=unsupported
9869 if test "$host_cpu" = ia64; then
9870 # On IA64, the linker does run time linking by default, so we don't
9871 # have to do anything special.
9872 aix_use_runtimelinking=no
9873 exp_sym_flag='-Bexport'
9876 # If we're using GNU nm, then we don't want the "-C" option.
9877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9879 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'
9881 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'
9883 aix_use_runtimelinking=no
9885 # Test if we are trying to use run time linking or normal
9886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9887 # need to do runtime linking.
9888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9889 for ld_flag in $LDFLAGS; do
9890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9891 aix_use_runtimelinking=yes
9898 exp_sym_flag='-bexport'
9899 no_entry_flag='-bnoentry'
9902 # When large executables or shared objects are built, AIX ld can
9903 # have problems creating the table of contents. If linking a library
9904 # or program results in "error TOC overflow" add -mminimal-toc to
9905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9910 hardcode_libdir_separator=':'
9911 link_all_deplibs=yes
9913 if test "$GCC" = yes; then
9914 case $host_os in aix4.[012]|aix4.[012].*)
9915 # We only want to do this on AIX 4.2 and lower, the check
9916 # below for broken collect2 doesn't work under 4.3+
9917 collect2name=`${CC} -print-prog-name=collect2`
9918 if test -f "$collect2name" && \
9919 strings "$collect2name" | grep resolve_lib_name >/dev/null
9921 # We have reworked collect2
9924 # We have old collect2
9925 hardcode_direct=unsupported
9926 # It fails to find uninstalled libraries when the uninstalled
9927 # path is not listed in the libpath. Setting hardcode_minus_L
9928 # to unsupported forces relinking
9929 hardcode_minus_L=yes
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 hardcode_libdir_separator=
9935 shared_flag='-shared'
9936 if test "$aix_use_runtimelinking" = yes; then
9937 shared_flag="$shared_flag "'${wl}-G'
9941 if test "$host_cpu" = ia64; then
9942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9943 # chokes on -Wl,-G. The following line is correct:
9946 if test "$aix_use_runtimelinking" = yes; then
9947 shared_flag='${wl}-G'
9949 shared_flag='${wl}-bM:SRE'
9954 # It seems that -bexpall does not export symbols beginning with
9955 # underscore (_), so it is better to generate a list of symbols to export.
9956 always_export_symbols=yes
9957 if test "$aix_use_runtimelinking" = yes; then
9958 # Warning - without using the other runtime loading flags (-brtl),
9959 # -berok will link without error, but may produce a broken library.
9960 allow_undefined_flag='-berok'
9961 # Determine the default libpath from the value encoded in an empty executable.
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
9996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9998 # Check for a 64-bit object if we didn't find anything.
9999 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10009 conftest$ac_exeext conftest.$ac_ext
10010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 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"
10015 if test "$host_cpu" = ia64; then
10016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10017 allow_undefined_flag="-z nodefs"
10018 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"
10020 # Determine the default libpath from the value encoded in an empty executable.
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest$ac_exeext &&
10053 $as_test_x conftest$ac_exeext; then
10055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10057 # Check for a 64-bit object if we didn't find anything.
10058 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10068 conftest$ac_exeext conftest.$ac_ext
10069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10072 # Warning - without using the other run time loading flags,
10073 # -berok will link without error, but may produce a broken library.
10074 no_undefined_flag=' ${wl}-bernotok'
10075 allow_undefined_flag=' ${wl}-berok'
10076 # Exported symbols can be pulled into shared objects from archives
10077 whole_archive_flag_spec='$convenience'
10078 archive_cmds_need_lc=yes
10079 # This is similar to how AIX traditionally builds its shared libraries.
10080 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'
10086 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)'
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_minus_L=yes
10089 # see comment about different semantics on the GNU ld section
10094 export_dynamic_flag_spec=-rdynamic
10097 cygwin* | mingw* | pw32*)
10098 # When not using gcc, we currently assume that we are using
10099 # Microsoft Visual C++.
10100 # hardcode_libdir_flag_spec is actually meaningless, as there is
10101 # no search path for DLLs.
10102 hardcode_libdir_flag_spec=' '
10103 allow_undefined_flag=unsupported
10104 # Tell ltmain to make .lib files, not .a files.
10106 # Tell ltmain to make .dll files, not .so files.
10108 # FIXME: Setting linknames here is a bad hack.
10109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10110 # The linker will automatically build a .lib file if we build a DLL.
10111 old_archive_From_new_cmds='true'
10112 # FIXME: Should let the user specify the lib program.
10113 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10114 fix_srcfile_path='`cygpath -w "$srcfile"`'
10115 enable_shared_with_static_runtimes=yes
10118 darwin* | rhapsody*)
10120 rhapsody* | darwin1.[012])
10121 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10124 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10125 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10127 case ${MACOSX_DEPLOYMENT_TARGET} in
10129 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10132 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10138 archive_cmds_need_lc=no
10140 hardcode_automatic=yes
10141 hardcode_shlibpath_var=unsupported
10142 whole_archive_flag_spec=''
10143 link_all_deplibs=yes
10144 if test "$GCC" = yes ; then
10145 output_verbose_link_cmd='echo'
10146 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10147 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10149 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10150 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}'
10152 case $cc_basename in
10154 output_verbose_link_cmd='echo'
10155 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10156 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10158 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10159 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}'
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_shlibpath_var=no
10178 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10179 # support. Future versions do this automatically, but an explicit c++rt0.o
10180 # does not break anything, and helps significantly (at the cost of a little
10183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10184 hardcode_libdir_flag_spec='-R$libdir'
10185 hardcode_direct=yes
10186 hardcode_shlibpath_var=no
10189 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_direct=yes
10193 hardcode_minus_L=yes
10194 hardcode_shlibpath_var=no
10197 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10198 freebsd* | kfreebsd*-gnu | dragonfly*)
10199 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10200 hardcode_libdir_flag_spec='-R$libdir'
10201 hardcode_direct=yes
10202 hardcode_shlibpath_var=no
10206 if test "$GCC" = yes; then
10207 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'
10209 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'
10211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10212 hardcode_libdir_separator=:
10213 hardcode_direct=yes
10215 # hardcode_minus_L: Not really in the search PATH,
10216 # but as the default location of the library.
10217 hardcode_minus_L=yes
10218 export_dynamic_flag_spec='${wl}-E'
10222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10227 if test "$with_gnu_ld" = no; then
10228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10229 hardcode_libdir_separator=:
10231 hardcode_direct=yes
10232 export_dynamic_flag_spec='${wl}-E'
10234 # hardcode_minus_L: Not really in the search PATH,
10235 # but as the default location of the library.
10236 hardcode_minus_L=yes
10241 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10244 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266 if test "$with_gnu_ld" = no; then
10267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10268 hardcode_libdir_separator=:
10272 hardcode_libdir_flag_spec_ld='+b $libdir'
10274 hardcode_shlibpath_var=no
10277 hardcode_direct=yes
10278 export_dynamic_flag_spec='${wl}-E'
10280 # hardcode_minus_L: Not really in the search PATH,
10281 # but as the default location of the library.
10282 hardcode_minus_L=yes
10288 irix5* | irix6* | nonstopux*)
10289 if test "$GCC" = yes; then
10290 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'
10292 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'
10293 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10296 hardcode_libdir_separator=:
10297 link_all_deplibs=yes
10301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10304 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10306 hardcode_libdir_flag_spec='-R$libdir'
10307 hardcode_direct=yes
10308 hardcode_shlibpath_var=no
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_direct=yes
10314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10315 hardcode_libdir_separator=:
10316 hardcode_shlibpath_var=no
10320 hardcode_direct=yes
10321 hardcode_shlibpath_var=no
10322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10326 export_dynamic_flag_spec='${wl}-E'
10329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_libdir_flag_spec='-R$libdir'
10334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_minus_L=yes
10344 allow_undefined_flag=unsupported
10345 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'
10346 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10350 if test "$GCC" = yes; then
10351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10352 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'
10354 allow_undefined_flag=' -expect_unresolved \*'
10355 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'
10357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358 hardcode_libdir_separator=:
10361 osf4* | osf5*) # as osf3* with the addition of -msym flag
10362 if test "$GCC" = yes; then
10363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10364 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'
10365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367 allow_undefined_flag=' -expect_unresolved \*'
10368 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'
10369 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10370 $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'
10372 # Both c and cxx compiler support -rpath directly
10373 hardcode_libdir_flag_spec='-rpath $libdir'
10375 hardcode_libdir_separator=:
10379 no_undefined_flag=' -z text'
10380 if test "$GCC" = yes; then
10382 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10384 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10387 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_shlibpath_var=no
10394 solaris2.[0-5] | solaris2.[0-5].*) ;;
10396 # The compiler driver will combine linker options so we
10397 # cannot just pass the convience library names through
10398 # without $wl, iff we do not link with $LD.
10399 # Luckily, gcc supports the same syntax we need for Sun Studio.
10400 # Supported since Solaris 2.6 (maybe 2.5.1?)
10403 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10405 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10408 link_all_deplibs=yes
10412 if test "x$host_vendor" = xsequent; then
10413 # Use $CC to link under sequent, because it throws in some extra .o
10414 # files that make .init and .fini sections work.
10415 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_direct=yes
10421 hardcode_minus_L=yes
10422 hardcode_shlibpath_var=no
10426 case $host_vendor in
10428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10429 hardcode_direct=yes # is this really true???
10432 ## LD is ld it makes a PLAMLIB
10433 ## CC just makes a GrossModule.
10434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10435 reload_cmds='$CC -r -o $output$reload_objs'
10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10443 runpath_var='LD_RUN_PATH'
10444 hardcode_shlibpath_var=no
10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_shlibpath_var=no
10450 export_dynamic_flag_spec='-Bexport'
10454 if test -d /usr/nec; then
10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_shlibpath_var=no
10457 runpath_var=LD_RUN_PATH
10458 hardcode_runpath_var=yes
10463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10464 no_undefined_flag='${wl}-z,text'
10465 archive_cmds_need_lc=no
10466 hardcode_shlibpath_var=no
10467 runpath_var='LD_RUN_PATH'
10469 if test "$GCC" = yes; then
10470 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478 sysv5* | sco3.2v5* | sco5v6*)
10479 # Note: We can NOT use -z defs as we might desire, because we do not
10480 # link with -lc, and that would cause any symbols used from libc to
10481 # always be unresolved, which means just about no library would
10482 # ever link correctly. If we're not using GNU ld we use -z text
10483 # though, which does catch some bad symbols but isn't as heavy-handed
10485 no_undefined_flag='${wl}-z,text'
10486 allow_undefined_flag='${wl}-z,nodefs'
10487 archive_cmds_need_lc=no
10488 hardcode_shlibpath_var=no
10489 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10490 hardcode_libdir_separator=':'
10491 link_all_deplibs=yes
10492 export_dynamic_flag_spec='${wl}-Bexport'
10493 runpath_var='LD_RUN_PATH'
10495 if test "$GCC" = yes; then
10496 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_shlibpath_var=no
10516 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10517 echo "${ECHO_T}$ld_shlibs" >&6; }
10518 test "$ld_shlibs" = no && can_build_shared=no
10521 # Do we need to explicitly link libc?
10523 case "x$archive_cmds_need_lc" in
10525 # Assume -lc should be added
10526 archive_cmds_need_lc=yes
10528 if test "$enable_shared" = yes && test "$GCC" = yes; then
10529 case $archive_cmds in
10531 # FIXME: we may have to deal with multi-command sequences.
10534 # Test whether the compiler implicitly links with -lc since on some
10535 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10536 # to ld, don't add -lc before -lgcc.
10537 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10538 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } 2>conftest.err; then
10549 libobjs=conftest.$ac_objext
10551 wl=$lt_prog_compiler_wl
10552 pic_flag=$lt_prog_compiler_pic
10558 lt_save_allow_undefined_flag=$allow_undefined_flag
10559 allow_undefined_flag=
10560 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10561 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }
10566 archive_cmds_need_lc=no
10568 archive_cmds_need_lc=yes
10570 allow_undefined_flag=$lt_save_allow_undefined_flag
10572 cat conftest.err 1>&5
10575 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10576 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10583 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10584 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10585 library_names_spec=
10586 libname_spec='lib$name'
10590 postuninstall_cmds=
10594 shlibpath_overrides_runpath=unknown
10596 dynamic_linker="$host_os ld.so"
10597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10598 if test "$GCC" = yes; then
10599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10600 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10601 # if the path contains ";" then we assume it to be the separator
10602 # otherwise default to the standard path separator (i.e. ":") - it is
10603 # assumed that no part of a normal pathname contains ";" but that should
10604 # okay in the real world where ";" in dirpaths is itself problematic.
10605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10651 can_build_shared=no
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LIBPATH
10674 library_names_spec='$libname.ixlibrary $libname.a'
10675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676 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'
10680 library_names_spec='${libname}${shared_ext}'
10681 dynamic_linker="$host_os ld.so"
10682 shlibpath_var=LIBRARY_PATH
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10694 # the default ld.so.conf also contains /usr/contrib/lib and
10695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10696 # libtool to hard-code these into programs
10699 cygwin* | mingw* | pw32*)
10700 version_type=windows
10705 case $GCC,$host_os in
10706 yes,cygwin* | yes,mingw* | yes,pw32*)
10707 library_names_spec='$libname.dll.a'
10708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10709 postinstall_cmds='base_file=`basename \${file}`~
10710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10711 dldir=$destdir/`dirname \$dlpath`~
10712 test -d \$dldir || mkdir -p \$dldir~
10713 $install_prog $dir/$dlname \$dldir/$dlname~
10714 chmod a+x \$dldir/$dlname'
10715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10716 dlpath=$dir/\$dldll~
10718 shlibpath_overrides_runpath=yes
10722 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10723 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10727 # MinGW DLLs use traditional 'lib' prefix
10728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10730 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10731 # It is most probably a Windows format PATH printed by
10732 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10733 # path with ; separators, and with drive letters. We can handle the
10734 # drive letters (cygwin fileutils understands them), so leave them,
10735 # especially as we might pass files found there to a mingw objdump,
10736 # which wouldn't understand a cygwinified path. Ahh.
10737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 # pw32 DLLs use 'pw' prefix rather than 'lib'
10744 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10750 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10753 dynamic_linker='Win32 ld.exe'
10754 # FIXME: first we should search . and the directory the executable is in
10758 darwin* | rhapsody*)
10759 dynamic_linker="$host_os dyld"
10760 version_type=darwin
10763 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10764 soname_spec='${libname}${release}${major}$shared_ext'
10765 shlibpath_overrides_runpath=yes
10766 shlibpath_var=DYLD_LIBRARY_PATH
10767 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10768 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10769 if test "$GCC" = yes; then
10770 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10772 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=no
10798 hardcode_into_libs=yes
10799 dynamic_linker='GNU ld.so'
10802 freebsd* | dragonfly*)
10803 # DragonFly does not have aout. When/if they implement a new
10804 # versioning mechanism, adjust this.
10805 if test -x /usr/bin/objformat; then
10806 objformat=`/usr/bin/objformat`
10809 freebsd[123]*) objformat=aout ;;
10810 *) objformat=elf ;;
10813 version_type=freebsd-$objformat
10814 case $version_type in
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10825 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10830 freebsd3.[01]* | freebsdelf3.[01]*)
10831 shlibpath_overrides_runpath=yes
10832 hardcode_into_libs=yes
10834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10836 shlibpath_overrides_runpath=no
10837 hardcode_into_libs=yes
10839 freebsd*) # from 4.6 on
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 hardcode_into_libs=yes
10856 hpux9* | hpux10* | hpux11*)
10857 # Give a soname corresponding to the major version so that dld.sl refuses to
10858 # link against other versions.
10865 hardcode_into_libs=yes
10866 dynamic_linker="$host_os dld.so"
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 if test "X$HPUX_IA64_MODE" = X32; then
10872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10880 hardcode_into_libs=yes
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10891 dynamic_linker="$host_os dld.sl"
10892 shlibpath_var=SHLIB_PATH
10893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10899 postinstall_cmds='chmod 555 $lib'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=no
10911 hardcode_into_libs=yes
10914 irix5* | irix6* | nonstopux*)
10916 nonstopux*) version_type=nonstopux ;;
10918 if test "$lt_cv_prog_gnu_ld" = yes; then
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 irix5* | nonstopux*)
10930 libsuff= shlibsuff=
10933 case $LD in # libtool.m4 will add one of these switches to LD
10934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10935 libsuff= shlibsuff= libmagic=32-bit;;
10936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10937 libsuff=32 shlibsuff=N32 libmagic=N32;;
10938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10940 *) libsuff= shlibsuff= libmagic=never-match;;
10944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10945 shlibpath_overrides_runpath=no
10946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10948 hardcode_into_libs=yes
10951 # No shared lib support for Linux oldld, aout, or coff.
10952 linux*oldld* | linux*aout* | linux*coff*)
10956 # This must be Linux ELF.
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=no
10966 # This implies no fast_install, which is unacceptable.
10967 # Some rework will be needed to allow for fast_install
10968 # before this can be enabled.
10969 hardcode_into_libs=yes
10971 # Append ld.so.conf contents to the search path
10972 if test -f /etc/ld.so.conf; then
10973 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10974 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10977 # We used to test for /lib/ld.so.1 and disable shared libraries on
10978 # powerpc, because MkLinux only supported shared libraries with the
10979 # GNU dynamic linker. Since this was broken with cross compilers,
10980 # most powerpc-linux boxes support dynamic linking these days and
10981 # people can always --disable-shared, the test was removed, and we
10982 # assume the GNU/Linux dynamic linker is in use.
10983 dynamic_linker='GNU/Linux ld.so'
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=no
10994 hardcode_into_libs=yes
10995 dynamic_linker='GNU ld.so'
11002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005 dynamic_linker='NetBSD (a.out) ld.so'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 dynamic_linker='NetBSD ld.elf_so'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=yes
11035 sys_lib_dlsearch_path_spec="/usr/lib"
11037 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11039 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11040 *) need_version=no ;;
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11047 openbsd2.[89] | openbsd2.[89].*)
11048 shlibpath_overrides_runpath=no
11051 shlibpath_overrides_runpath=yes
11055 shlibpath_overrides_runpath=yes
11060 libname_spec='$name'
11063 library_names_spec='$libname${shared_ext} $libname.a'
11064 dynamic_linker='OS/2 ld.exe'
11065 shlibpath_var=LIBPATH
11068 osf3* | osf4* | osf5*)
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 # ldd complains unless libraries are executable
11089 postinstall_cmds='chmod +x $lib'
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 if test "$with_gnu_ld" = yes; then
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 case $host_vendor in
11111 shlibpath_overrides_runpath=no
11113 export_dynamic_flag_spec='${wl}-Blargedynsym'
11114 runpath_var=LD_RUN_PATH
11122 shlibpath_overrides_runpath=no
11123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11129 if test -d /usr/nec ;then
11131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11132 soname_spec='$libname${shared_ext}.$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11138 version_type=freebsd-elf
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 hardcode_into_libs=yes
11145 if test "$with_gnu_ld" = yes; then
11146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11147 shlibpath_overrides_runpath=no
11149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11150 shlibpath_overrides_runpath=yes
11153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11157 sys_lib_dlsearch_path_spec='/usr/lib'
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11171 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11172 echo "${ECHO_T}$dynamic_linker" >&6; }
11173 test "$dynamic_linker" = no && can_build_shared=no
11175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11176 if test "$GCC" = yes; then
11177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11180 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11181 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11183 if test -n "$hardcode_libdir_flag_spec" || \
11184 test -n "$runpath_var" || \
11185 test "X$hardcode_automatic" = "Xyes" ; then
11187 # We can hardcode non-existant directories.
11188 if test "$hardcode_direct" != no &&
11189 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11190 # have to relink, otherwise we might link with an installed library
11191 # when we should be linking with a yet-to-be-installed one
11192 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11193 test "$hardcode_minus_L" != no; then
11194 # Linking always hardcodes the temporary library directory.
11195 hardcode_action=relink
11197 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11198 hardcode_action=immediate
11201 # We cannot hardcode anything, or else we can only hardcode existing
11203 hardcode_action=unsupported
11205 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11206 echo "${ECHO_T}$hardcode_action" >&6; }
11208 if test "$hardcode_action" = relink; then
11209 # Fast installation is not supported
11210 enable_fast_install=no
11211 elif test "$shlibpath_overrides_runpath" = yes ||
11212 test "$enable_shared" = no; then
11213 # Fast installation is not necessary
11214 enable_fast_install=needless
11219 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11220 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11221 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11223 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11224 { echo "$as_me:$LINENO: result: yes" >&5
11225 echo "${ECHO_T}yes" >&6; }
11227 # FIXME - insert some real tests, host_os isn't really good enough
11230 if test -n "$STRIP" ; then
11231 striplib="$STRIP -x"
11232 { echo "$as_me:$LINENO: result: yes" >&5
11233 echo "${ECHO_T}yes" >&6; }
11235 { echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6; }
11240 { echo "$as_me:$LINENO: result: no" >&5
11241 echo "${ECHO_T}no" >&6; }
11246 if test "x$enable_dlopen" != xyes; then
11247 enable_dlopen=unknown
11248 enable_dlopen_self=unknown
11249 enable_dlopen_self_static=unknown
11256 lt_cv_dlopen="load_add_on"
11258 lt_cv_dlopen_self=yes
11262 lt_cv_dlopen="LoadLibrary"
11267 lt_cv_dlopen="dlopen"
11272 # if libdl is installed we need to link against it
11273 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11274 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 ac_check_lib_save_LIBS=$LIBS
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 ac_cv_lib_dl_dlopen=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_cv_lib_dl_dlopen=no
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11334 if test $ac_cv_lib_dl_dlopen = yes; then
11335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11338 lt_cv_dlopen="dyld"
11340 lt_cv_dlopen_self=yes
11347 { echo "$as_me:$LINENO: checking for shl_load" >&5
11348 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11349 if test "${ac_cv_func_shl_load+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11360 #define shl_load innocuous_shl_load
11362 /* System header to define __stub macros and hopefully few prototypes,
11363 which can conflict with char shl_load (); below.
11364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11365 <limits.h> exists even on freestanding compilers. */
11368 # include <limits.h>
11370 # include <assert.h>
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11382 /* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385 #if defined __stub_shl_load || defined __stub___shl_load
11392 return shl_load ();
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (ac_try="$ac_link"
11399 case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_link") 2>conftest.er1
11406 grep -v '^ *+' conftest.er1 >conftest.err
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest$ac_exeext &&
11414 $as_test_x conftest$ac_exeext; then
11415 ac_cv_func_shl_load=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_cv_func_shl_load=no
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424 conftest$ac_exeext conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11427 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11428 if test $ac_cv_func_shl_load = yes; then
11429 lt_cv_dlopen="shl_load"
11431 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11432 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_check_lib_save_LIBS=$LIBS
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11455 return shl_load ();
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (ac_try="$ac_link"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 ac_cv_lib_dld_shl_load=yes
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_cv_lib_dld_shl_load=no
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11490 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11491 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11492 if test $ac_cv_lib_dld_shl_load = yes; then
11493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11495 { echo "$as_me:$LINENO: checking for dlopen" >&5
11496 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11497 if test "${ac_cv_func_dlopen+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11508 #define dlopen innocuous_dlopen
11510 /* System header to define __stub macros and hopefully few prototypes,
11511 which can conflict with char dlopen (); below.
11512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11513 <limits.h> exists even on freestanding compilers. */
11516 # include <limits.h>
11518 # include <assert.h>
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11530 /* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533 #if defined __stub_dlopen || defined __stub___dlopen
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (ac_try="$ac_link"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_link") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && {
11559 test -z "$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11561 } && test -s conftest$ac_exeext &&
11562 $as_test_x conftest$ac_exeext; then
11563 ac_cv_func_dlopen=yes
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_cv_func_dlopen=no
11571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11572 conftest$ac_exeext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11575 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11576 if test $ac_cv_func_dlopen = yes; then
11577 lt_cv_dlopen="dlopen"
11579 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11580 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 ac_check_lib_save_LIBS=$LIBS
11586 cat >conftest.$ac_ext <<_ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_link") 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest$ac_exeext &&
11625 $as_test_x conftest$ac_exeext; then
11626 ac_cv_lib_dl_dlopen=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_cv_lib_dl_dlopen=no
11634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11639 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11640 if test $ac_cv_lib_dl_dlopen = yes; then
11641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11643 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11644 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11645 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 ac_check_lib_save_LIBS=$LIBS
11649 LIBS="-lsvld $LIBS"
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1 >conftest.err
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } && {
11686 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 } && test -s conftest$ac_exeext &&
11689 $as_test_x conftest$ac_exeext; then
11690 ac_cv_lib_svld_dlopen=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_cv_lib_svld_dlopen=no
11698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11703 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11704 if test $ac_cv_lib_svld_dlopen = yes; then
11705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11707 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11708 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11709 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 ac_check_lib_save_LIBS=$LIBS
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11731 return dld_link ();
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_link") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest$ac_exeext &&
11753 $as_test_x conftest$ac_exeext; then
11754 ac_cv_lib_dld_dld_link=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_cv_lib_dld_dld_link=no
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11767 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11768 if test $ac_cv_lib_dld_dld_link = yes; then
11769 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11790 if test "x$lt_cv_dlopen" != xno; then
11796 case $lt_cv_dlopen in
11798 save_CPPFLAGS="$CPPFLAGS"
11799 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11801 save_LDFLAGS="$LDFLAGS"
11802 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11805 LIBS="$lt_cv_dlopen_libs $LIBS"
11807 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11808 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11809 if test "${lt_cv_dlopen_self+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 if test "$cross_compiling" = yes; then :
11813 lt_cv_dlopen_self=cross
11815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11816 lt_status=$lt_dlunknown
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11818 "configure"
11819 #include "confdefs.h"
11828 # define LT_DLGLOBAL RTLD_GLOBAL
11831 # define LT_DLGLOBAL DL_GLOBAL
11833 # define LT_DLGLOBAL 0
11837 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11838 find out it does not work in some platform. */
11839 #ifndef LT_DLLAZY_OR_NOW
11841 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11844 # define LT_DLLAZY_OR_NOW DL_LAZY
11847 # define LT_DLLAZY_OR_NOW RTLD_NOW
11850 # define LT_DLLAZY_OR_NOW DL_NOW
11852 # define LT_DLLAZY_OR_NOW 0
11860 extern "C" void exit (int);
11863 void fnord() { int i=42;}
11866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11867 int status = $lt_dlunknown;
11871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11873 /* dlclose (self); */
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11886 (./conftest; exit; ) >&5 2>/dev/null
11888 case x$lt_status in
11889 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11890 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11891 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11894 # compilation failed
11895 lt_cv_dlopen_self=no
11902 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11903 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11905 if test "x$lt_cv_dlopen_self" = xyes; then
11906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11907 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11908 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11909 if test "${lt_cv_dlopen_self_static+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 if test "$cross_compiling" = yes; then :
11913 lt_cv_dlopen_self_static=cross
11915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11916 lt_status=$lt_dlunknown
11917 cat > conftest.$ac_ext <<EOF
11918 #line 11918 "configure"
11919 #include "confdefs.h"
11928 # define LT_DLGLOBAL RTLD_GLOBAL
11931 # define LT_DLGLOBAL DL_GLOBAL
11933 # define LT_DLGLOBAL 0
11937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11938 find out it does not work in some platform. */
11939 #ifndef LT_DLLAZY_OR_NOW
11941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11944 # define LT_DLLAZY_OR_NOW DL_LAZY
11947 # define LT_DLLAZY_OR_NOW RTLD_NOW
11950 # define LT_DLLAZY_OR_NOW DL_NOW
11952 # define LT_DLLAZY_OR_NOW 0
11960 extern "C" void exit (int);
11963 void fnord() { int i=42;}
11966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11967 int status = $lt_dlunknown;
11971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11972 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11973 /* dlclose (self); */
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11986 (./conftest; exit; ) >&5 2>/dev/null
11988 case x$lt_status in
11989 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11990 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11991 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11994 # compilation failed
11995 lt_cv_dlopen_self_static=no
12002 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12003 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12006 CPPFLAGS="$save_CPPFLAGS"
12007 LDFLAGS="$save_LDFLAGS"
12012 case $lt_cv_dlopen_self in
12013 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12014 *) enable_dlopen_self=unknown ;;
12017 case $lt_cv_dlopen_self_static in
12018 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12019 *) enable_dlopen_self_static=unknown ;;
12024 # Report which library types will actually be built
12025 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12026 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12027 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12028 echo "${ECHO_T}$can_build_shared" >&6; }
12030 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12031 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12032 test "$can_build_shared" = "no" && enable_shared=no
12034 # On AIX, shared libraries and static libraries use the same namespace, and
12035 # are all built from PIC.
12038 test "$enable_shared" = yes && enable_static=no
12039 if test -n "$RANLIB"; then
12040 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12041 postinstall_cmds='$RANLIB $lib'
12046 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12047 test "$enable_shared" = yes && enable_static=no
12051 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12052 echo "${ECHO_T}$enable_shared" >&6; }
12054 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12055 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12056 # Make sure either enable_shared or enable_static is yes.
12057 test "$enable_shared" = yes || enable_static=yes
12058 { echo "$as_me:$LINENO: result: $enable_static" >&5
12059 echo "${ECHO_T}$enable_static" >&6; }
12061 # The else clause should only fire when bootstrapping the
12062 # libtool distribution, otherwise you forgot to ship ltmain.sh
12063 # with your package, and you will get complaints that there are
12064 # no rules to generate ltmain.sh.
12065 if test -f "$ltmain"; then
12066 # See if we are running on zsh, and set the options which allow our commands through
12067 # without removal of \ escapes.
12068 if test -n "${ZSH_VERSION+set}" ; then
12069 setopt NO_GLOB_SUBST
12071 # Now quote all the things that may contain metacharacters while being
12072 # careful not to overquote the AC_SUBSTed values. We take copies of the
12073 # variables and quote the copies for generation of the libtool script.
12074 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12076 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12077 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12078 deplibs_check_method reload_flag reload_cmds need_locks \
12079 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12080 lt_cv_sys_global_symbol_to_c_name_address \
12081 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12082 old_postinstall_cmds old_postuninstall_cmds \
12086 lt_prog_compiler_wl \
12087 lt_prog_compiler_pic \
12088 lt_prog_compiler_static \
12089 lt_prog_compiler_no_builtin_flag \
12090 export_dynamic_flag_spec \
12091 thread_safe_flag_spec \
12092 whole_archive_flag_spec \
12093 enable_shared_with_static_runtimes \
12095 old_archive_from_new_cmds \
12100 compiler_lib_search_path \
12102 archive_expsym_cmds \
12104 postuninstall_cmds \
12105 old_archive_from_expsyms_cmds \
12106 allow_undefined_flag \
12107 no_undefined_flag \
12108 export_symbols_cmds \
12109 hardcode_libdir_flag_spec \
12110 hardcode_libdir_flag_spec_ld \
12111 hardcode_libdir_separator \
12112 hardcode_automatic \
12114 module_expsym_cmds \
12115 lt_cv_prog_compiler_c_o \
12117 include_expsyms; do
12120 old_archive_cmds | \
12121 old_archive_from_new_cmds | \
12123 archive_expsym_cmds | \
12125 module_expsym_cmds | \
12126 old_archive_from_expsyms_cmds | \
12127 export_symbols_cmds | \
12128 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12129 postinstall_cmds | postuninstall_cmds | \
12130 old_postinstall_cmds | old_postuninstall_cmds | \
12131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12132 # Double-quote double-evaled strings.
12133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12142 *'\$0 --fallback-echo"')
12143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12147 cfgfile="${ofile}T"
12148 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12150 { echo "$as_me:$LINENO: creating $ofile" >&5
12151 echo "$as_me: creating $ofile" >&6;}
12153 cat <<__EOF__ >> "$cfgfile"
12156 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12157 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12160 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12161 # Free Software Foundation, Inc.
12163 # This file is part of GNU Libtool:
12164 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12166 # This program is free software; you can redistribute it and/or modify
12167 # it under the terms of the GNU General Public License as published by
12168 # the Free Software Foundation; either version 2 of the License, or
12169 # (at your option) any later version.
12171 # This program is distributed in the hope that it will be useful, but
12172 # WITHOUT ANY WARRANTY; without even the implied warranty of
12173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12174 # General Public License for more details.
12176 # You should have received a copy of the GNU General Public License
12177 # along with this program; if not, write to the Free Software
12178 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12180 # As a special exception to the GNU General Public License, if you
12181 # distribute this file as part of a program that contains a
12182 # configuration script generated by Autoconf, you may include it under
12183 # the same distribution terms that you use for the rest of that program.
12185 # A sed program that does not truncate output.
12188 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12189 Xsed="$SED -e 1s/^X//"
12191 # The HP-UX ksh and POSIX shell print the target directory to stdout
12192 # if CDPATH is set.
12193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12195 # The names of the tagged configurations supported by this script.
12198 # ### BEGIN LIBTOOL CONFIG
12200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12202 # Shell to use when invoking shell scripts.
12205 # Whether or not to build shared libraries.
12206 build_libtool_libs=$enable_shared
12208 # Whether or not to build static libraries.
12209 build_old_libs=$enable_static
12211 # Whether or not to add -lc for building shared libraries.
12212 build_libtool_need_lc=$archive_cmds_need_lc
12214 # Whether or not to disallow shared libs when runtime libs are static
12215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12217 # Whether or not to optimize for fast installation.
12218 fast_install=$enable_fast_install
12221 host_alias=$host_alias
12225 # The build system.
12226 build_alias=$build_alias
12230 # An echo program that does not interpret backslashes.
12235 AR_FLAGS=$lt_AR_FLAGS
12240 # LTCC compiler flags.
12241 LTCFLAGS=$lt_LTCFLAGS
12243 # A language-specific compiler.
12246 # Is the compiler the GNU C compiler?
12252 # The linker used to build libraries.
12255 # Whether we need hard or soft links.
12258 # A BSD-compatible nm program.
12261 # A symbol stripping program
12264 # Used to examine libraries when file_magic_cmd begins "file"
12265 MAGIC_CMD=$MAGIC_CMD
12267 # Used on cygwin: DLL creation program.
12270 # Used on cygwin: object dumper.
12273 # Used on cygwin: assembler.
12276 # The name of the directory that contains temporary libtool files.
12279 # How to create reloadable object files.
12280 reload_flag=$lt_reload_flag
12281 reload_cmds=$lt_reload_cmds
12283 # How to pass a linker flag through the compiler.
12284 wl=$lt_lt_prog_compiler_wl
12286 # Object file suffix (normally "o").
12287 objext="$ac_objext"
12289 # Old archive suffix (normally "a").
12292 # Shared library suffix (normally ".so").
12293 shrext_cmds='$shrext_cmds'
12295 # Executable file suffix (normally "").
12298 # Additional compiler flags for building library objects.
12299 pic_flag=$lt_lt_prog_compiler_pic
12302 # What is the maximum length of a command?
12303 max_cmd_len=$lt_cv_sys_max_cmd_len
12305 # Does compiler simultaneously support -c and -o options?
12306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12308 # Must we lock files when doing compilation?
12309 need_locks=$lt_need_locks
12311 # Do we need the lib prefix for modules?
12312 need_lib_prefix=$need_lib_prefix
12314 # Do we need a version for libraries?
12315 need_version=$need_version
12317 # Whether dlopen is supported.
12318 dlopen_support=$enable_dlopen
12320 # Whether dlopen of programs is supported.
12321 dlopen_self=$enable_dlopen_self
12323 # Whether dlopen of statically linked programs is supported.
12324 dlopen_self_static=$enable_dlopen_self_static
12326 # Compiler flag to prevent dynamic linking.
12327 link_static_flag=$lt_lt_prog_compiler_static
12329 # Compiler flag to turn off builtin functions.
12330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12332 # Compiler flag to allow reflexive dlopens.
12333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12335 # Compiler flag to generate shared objects directly from archives.
12336 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12338 # Compiler flag to generate thread-safe objects.
12339 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12341 # Library versioning type.
12342 version_type=$version_type
12344 # Format of library name prefix.
12345 libname_spec=$lt_libname_spec
12347 # List of archive names. First name is the real one, the rest are links.
12348 # The last name is the one that the linker finds with -lNAME.
12349 library_names_spec=$lt_library_names_spec
12351 # The coded name of the library, if different from the real name.
12352 soname_spec=$lt_soname_spec
12354 # Commands used to build and install an old-style archive.
12356 old_archive_cmds=$lt_old_archive_cmds
12357 old_postinstall_cmds=$lt_old_postinstall_cmds
12358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12360 # Create an old-style archive from a shared archive.
12361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12363 # Create a temporary old-style archive to link instead of a shared archive.
12364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12366 # Commands used to build and install a shared archive.
12367 archive_cmds=$lt_archive_cmds
12368 archive_expsym_cmds=$lt_archive_expsym_cmds
12369 postinstall_cmds=$lt_postinstall_cmds
12370 postuninstall_cmds=$lt_postuninstall_cmds
12372 # Commands used to build a loadable module (assumed same as above if empty)
12373 module_cmds=$lt_module_cmds
12374 module_expsym_cmds=$lt_module_expsym_cmds
12376 # Commands to strip libraries.
12377 old_striplib=$lt_old_striplib
12378 striplib=$lt_striplib
12380 # Dependencies to place before the objects being linked to create a
12382 predep_objects=$lt_predep_objects
12384 # Dependencies to place after the objects being linked to create a
12386 postdep_objects=$lt_postdep_objects
12388 # Dependencies to place before the objects being linked to create a
12390 predeps=$lt_predeps
12392 # Dependencies to place after the objects being linked to create a
12394 postdeps=$lt_postdeps
12396 # The library search path used internally by the compiler when linking
12397 # a shared library.
12398 compiler_lib_search_path=$lt_compiler_lib_search_path
12400 # Method to check whether dependent libraries are shared objects.
12401 deplibs_check_method=$lt_deplibs_check_method
12403 # Command to use when deplibs_check_method == file_magic.
12404 file_magic_cmd=$lt_file_magic_cmd
12406 # Flag that allows shared libraries with undefined symbols to be built.
12407 allow_undefined_flag=$lt_allow_undefined_flag
12409 # Flag that forces no undefined symbols.
12410 no_undefined_flag=$lt_no_undefined_flag
12412 # Commands used to finish a libtool library installation in a directory.
12413 finish_cmds=$lt_finish_cmds
12415 # Same as above, but a single script fragment to be evaled but not shown.
12416 finish_eval=$lt_finish_eval
12418 # Take the output of nm and produce a listing of raw symbols and C names.
12419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12421 # Transform the output of nm in a proper C declaration
12422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12424 # Transform the output of nm in a C name address pair
12425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12427 # This is the shared library runtime path variable.
12428 runpath_var=$runpath_var
12430 # This is the shared library path variable.
12431 shlibpath_var=$shlibpath_var
12433 # Is shlibpath searched before the hard-coded library search path?
12434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12436 # How to hardcode a shared library path into an executable.
12437 hardcode_action=$hardcode_action
12439 # Whether we should hardcode library paths into libraries.
12440 hardcode_into_libs=$hardcode_into_libs
12442 # Flag to hardcode \$libdir into a binary during linking.
12443 # This must work even if \$libdir does not exist.
12444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12446 # If ld is used when linking, flag to hardcode \$libdir into
12447 # a binary during linking. This must work even if \$libdir does
12449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12451 # Whether we need a single -rpath flag with a separated argument.
12452 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12455 # resulting binary.
12456 hardcode_direct=$hardcode_direct
12458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12459 # resulting binary.
12460 hardcode_minus_L=$hardcode_minus_L
12462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12463 # the resulting binary.
12464 hardcode_shlibpath_var=$hardcode_shlibpath_var
12466 # Set to yes if building a shared library automatically hardcodes DIR into the library
12467 # and all subsequent libraries and executables linked against it.
12468 hardcode_automatic=$hardcode_automatic
12470 # Variables whose values should be saved in libtool wrapper scripts and
12471 # restored at relink time.
12472 variables_saved_for_relink="$variables_saved_for_relink"
12474 # Whether libtool must link a program against all its dependency libraries.
12475 link_all_deplibs=$link_all_deplibs
12477 # Compile-time system search path for libraries
12478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12480 # Run-time system search path for libraries
12481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12483 # Fix the shell variable \$srcfile for the compiler.
12484 fix_srcfile_path="$fix_srcfile_path"
12486 # Set to yes if exported symbols are required.
12487 always_export_symbols=$always_export_symbols
12489 # The commands to list exported symbols.
12490 export_symbols_cmds=$lt_export_symbols_cmds
12492 # The commands to extract the exported symbol list from a shared archive.
12493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12495 # Symbols that should not be listed in the preloaded symbols.
12496 exclude_expsyms=$lt_exclude_expsyms
12498 # Symbols that must always be exported.
12499 include_expsyms=$lt_include_expsyms
12501 # ### END LIBTOOL CONFIG
12508 cat <<\EOF >> "$cfgfile"
12510 # AIX sometimes has problems with the GCC collect2 program. For some
12511 # reason, if we set the COLLECT_NAMES environment variable, the problems
12512 # vanish in a puff of smoke.
12513 if test "X${COLLECT_NAMES+set}" != Xset; then
12515 export COLLECT_NAMES
12521 # We use sed instead of cat because bash on DJGPP gets confused if
12522 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12523 # text mode, it properly converts lines to CR/LF. This bash problem
12524 # is reportedly fixed, but why not run on old versions too?
12525 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12527 mv -f "$cfgfile" "$ofile" || \
12528 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12532 # If there is no Makefile yet, we rely on a make rule to execute
12533 # `config.status --recheck' to rerun these tests and create the
12534 # libtool script then.
12535 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12536 if test -f "$ltmain_in"; then
12537 test -f Makefile && make "$ltmain"
12543 ac_cpp='$CPP $CPPFLAGS'
12544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551 # Check whether --with-tags was given.
12552 if test "${with_tags+set}" = set; then
12553 withval=$with_tags; tagnames="$withval"
12557 if test -f "$ltmain" && test -n "$tagnames"; then
12558 if test ! -f "${ofile}"; then
12559 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12560 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12563 if test -z "$LTCC"; then
12564 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12565 if test -z "$LTCC"; then
12566 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12567 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12570 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12573 if test -z "$LTCFLAGS"; then
12574 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12577 # Extract list of available tagged configurations in $ofile.
12578 # Note that this assumes the entire list is on one line.
12579 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12582 for tagname in $tagnames; do
12584 # Check whether tagname contains only valid characters
12585 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12587 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12588 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12589 { (exit 1); exit 1; }; }
12593 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12595 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12596 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12597 { (exit 1); exit 1; }; }
12600 # Update the list of available tags.
12601 if test -n "$tagname"; then
12602 echo appending configuration tag \"$tagname\" to $ofile
12606 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12607 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12608 (test "X$CXX" != "Xg++"))) ; then
12610 ac_cpp='$CXXCPP $CPPFLAGS'
12611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12618 archive_cmds_need_lc_CXX=no
12619 allow_undefined_flag_CXX=
12620 always_export_symbols_CXX=no
12621 archive_expsym_cmds_CXX=
12622 export_dynamic_flag_spec_CXX=
12623 hardcode_direct_CXX=no
12624 hardcode_libdir_flag_spec_CXX=
12625 hardcode_libdir_flag_spec_ld_CXX=
12626 hardcode_libdir_separator_CXX=
12627 hardcode_minus_L_CXX=no
12628 hardcode_shlibpath_var_CXX=unsupported
12629 hardcode_automatic_CXX=no
12631 module_expsym_cmds_CXX=
12632 link_all_deplibs_CXX=unknown
12633 old_archive_cmds_CXX=$old_archive_cmds
12634 no_undefined_flag_CXX=
12635 whole_archive_flag_spec_CXX=
12636 enable_shared_with_static_runtimes_CXX=no
12638 # Dependencies to place before and after the object being linked:
12639 predep_objects_CXX=
12640 postdep_objects_CXX=
12643 compiler_lib_search_path_CXX=
12645 # Source file extension for C++ test sources.
12648 # Object file extension for compiled C++ test sources.
12652 # Code to be used in simple compile tests
12653 lt_simple_compile_test_code="int some_variable = 0;\n"
12655 # Code to be used in simple link tests
12656 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12660 # If no C compiler was specified, use CC.
12663 # If no C compiler flags were specified, use CFLAGS.
12664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12666 # Allow CC to be a program name with arguments.
12670 # save warnings/boilerplate of simple test code
12671 ac_outfile=conftest.$ac_objext
12672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12674 _lt_compiler_boilerplate=`cat conftest.err`
12677 ac_outfile=conftest.$ac_objext
12678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12680 _lt_linker_boilerplate=`cat conftest.err`
12684 # Allow CC to be a program name with arguments.
12689 lt_save_with_gnu_ld=$with_gnu_ld
12690 lt_save_path_LD=$lt_cv_path_LD
12691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12692 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12694 $as_unset lt_cv_prog_gnu_ld
12696 if test -n "${lt_cv_path_LDCXX+set}"; then
12697 lt_cv_path_LD=$lt_cv_path_LDCXX
12699 $as_unset lt_cv_path_LD
12701 test -z "${LDCXX+set}" || LD=$LDCXX
12705 for cc_temp in $compiler""; do
12707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12713 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12716 # We don't want -fno-exception wen compiling C++ code, so set the
12717 # no_builtin_flag separately
12718 if test "$GXX" = yes; then
12719 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12721 lt_prog_compiler_no_builtin_flag_CXX=
12724 if test "$GXX" = yes; then
12725 # Set up default GNU C++ configuration
12728 # Check whether --with-gnu-ld was given.
12729 if test "${with_gnu_ld+set}" = set; then
12730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12736 if test "$GCC" = yes; then
12737 # Check if gcc -print-prog-name=ld gives a path.
12738 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12739 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12742 # gcc leaves a trailing carriage return which upsets mingw
12743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12748 # Accept absolute paths.
12750 re_direlt='/[^/][^/]*/\.\./'
12751 # Canonicalize the pathname of ld
12752 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12753 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12754 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12756 test -z "$LD" && LD="$ac_prog"
12759 # If it fails, then pretend we aren't using GCC.
12763 # If it is relative, then search for the first ld in PATH.
12764 with_gnu_ld=unknown
12767 elif test "$with_gnu_ld" = yes; then
12768 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12769 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12771 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12772 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12774 if test "${lt_cv_path_LD+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 if test -z "$LD"; then
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 for ac_dir in $PATH; do
12781 test -z "$ac_dir" && ac_dir=.
12782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12783 lt_cv_path_LD="$ac_dir/$ac_prog"
12784 # Check to see if the program is GNU ld. I'd rather use --version,
12785 # but apparently some variants of GNU ld only accept -v.
12786 # Break only if it was the GNU/non-GNU ld that we prefer.
12787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12788 *GNU* | *'with BFD'*)
12789 test "$with_gnu_ld" != no && break
12792 test "$with_gnu_ld" != yes && break
12799 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12803 LD="$lt_cv_path_LD"
12804 if test -n "$LD"; then
12805 { echo "$as_me:$LINENO: result: $LD" >&5
12806 echo "${ECHO_T}$LD" >&6; }
12808 { echo "$as_me:$LINENO: result: no" >&5
12809 echo "${ECHO_T}no" >&6; }
12811 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12812 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12813 { (exit 1); exit 1; }; }
12814 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12815 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12816 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12820 case `$LD -v 2>&1 </dev/null` in
12821 *GNU* | *'with BFD'*)
12822 lt_cv_prog_gnu_ld=yes
12825 lt_cv_prog_gnu_ld=no
12829 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12830 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12831 with_gnu_ld=$lt_cv_prog_gnu_ld
12835 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12836 # archiving commands below assume that GNU ld is being used.
12837 if test "$with_gnu_ld" = yes; then
12838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 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'
12841 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12844 # If archive_cmds runs LD, not CC, wlarc should be empty
12845 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12846 # investigate it a little bit more. (MM)
12849 # ancient GNU ld didn't support --whole-archive et. al.
12850 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12851 grep 'no-whole-archive' > /dev/null; then
12852 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12854 whole_archive_flag_spec_CXX=
12860 # A generic and very simple default shared library creation
12861 # command for GNU C++ for the case where it uses the native
12862 # linker, instead of GNU ld. If possible, this setting should
12863 # overridden to take advantage of the native linker features on
12864 # the platform it is being used on.
12865 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12868 # Commands to make compiler produce verbose output that lists
12869 # what "hidden" libraries, object files and flags are used when
12870 # linking a shared library.
12871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12879 # PORTME: fill in a description of your system's C++ link characteristics
12880 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12885 # FIXME: insert proper C++ library support
12889 if test "$host_cpu" = ia64; then
12890 # On IA64, the linker does run time linking by default, so we don't
12891 # have to do anything special.
12892 aix_use_runtimelinking=no
12893 exp_sym_flag='-Bexport'
12896 aix_use_runtimelinking=no
12898 # Test if we are trying to use run time linking or normal
12899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12900 # need to do runtime linking.
12901 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12902 for ld_flag in $LDFLAGS; do
12905 aix_use_runtimelinking=yes
12913 exp_sym_flag='-bexport'
12914 no_entry_flag='-bnoentry'
12917 # When large executables or shared objects are built, AIX ld can
12918 # have problems creating the table of contents. If linking a library
12919 # or program results in "error TOC overflow" add -mminimal-toc to
12920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12923 archive_cmds_CXX=''
12924 hardcode_direct_CXX=yes
12925 hardcode_libdir_separator_CXX=':'
12926 link_all_deplibs_CXX=yes
12928 if test "$GXX" = yes; then
12929 case $host_os in aix4.[012]|aix4.[012].*)
12930 # We only want to do this on AIX 4.2 and lower, the check
12931 # below for broken collect2 doesn't work under 4.3+
12932 collect2name=`${CC} -print-prog-name=collect2`
12933 if test -f "$collect2name" && \
12934 strings "$collect2name" | grep resolve_lib_name >/dev/null
12936 # We have reworked collect2
12937 hardcode_direct_CXX=yes
12939 # We have old collect2
12940 hardcode_direct_CXX=unsupported
12941 # It fails to find uninstalled libraries when the uninstalled
12942 # path is not listed in the libpath. Setting hardcode_minus_L
12943 # to unsupported forces relinking
12944 hardcode_minus_L_CXX=yes
12945 hardcode_libdir_flag_spec_CXX='-L$libdir'
12946 hardcode_libdir_separator_CXX=
12950 shared_flag='-shared'
12951 if test "$aix_use_runtimelinking" = yes; then
12952 shared_flag="$shared_flag "'${wl}-G'
12956 if test "$host_cpu" = ia64; then
12957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12958 # chokes on -Wl,-G. The following line is correct:
12961 if test "$aix_use_runtimelinking" = yes; then
12962 shared_flag='${wl}-G'
12964 shared_flag='${wl}-bM:SRE'
12969 # It seems that -bexpall does not export symbols beginning with
12970 # underscore (_), so it is better to generate a list of symbols to export.
12971 always_export_symbols_CXX=yes
12972 if test "$aix_use_runtimelinking" = yes; then
12973 # Warning - without using the other runtime loading flags (-brtl),
12974 # -berok will link without error, but may produce a broken library.
12975 allow_undefined_flag_CXX='-berok'
12976 # Determine the default libpath from the value encoded in an empty executable.
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_cxx_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext &&
13009 $as_test_x conftest$ac_exeext; then
13011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13013 # Check for a 64-bit object if we didn't find anything.
13014 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13024 conftest$ac_exeext conftest.$ac_ext
13025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13027 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13029 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"
13031 if test "$host_cpu" = ia64; then
13032 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13033 allow_undefined_flag_CXX="-z nodefs"
13034 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"
13036 # Determine the default libpath from the value encoded in an empty executable.
13037 cat >conftest.$ac_ext <<_ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_cxx_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13073 # Check for a 64-bit object if we didn't find anything.
13074 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13084 conftest$ac_exeext conftest.$ac_ext
13085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13087 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13088 # Warning - without using the other run time loading flags,
13089 # -berok will link without error, but may produce a broken library.
13090 no_undefined_flag_CXX=' ${wl}-bernotok'
13091 allow_undefined_flag_CXX=' ${wl}-berok'
13092 # Exported symbols can be pulled into shared objects from archives
13093 whole_archive_flag_spec_CXX='$convenience'
13094 archive_cmds_need_lc_CXX=yes
13095 # This is similar to how AIX traditionally builds its shared libraries.
13096 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'
13102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13103 allow_undefined_flag_CXX=unsupported
13104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13105 # support --undefined. This deserves some investigation. FIXME
13106 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13113 case $cc_basename in
13115 # FIXME: insert proper C++ library support
13121 cygwin* | mingw* | pw32*)
13122 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13123 # as there is no search path for DLLs.
13124 hardcode_libdir_flag_spec_CXX='-L$libdir'
13125 allow_undefined_flag_CXX=unsupported
13126 always_export_symbols_CXX=no
13127 enable_shared_with_static_runtimes_CXX=yes
13129 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13130 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'
13131 # If the export-symbols file already is a .def file (1st line
13132 # is EXPORTS), use it as is; otherwise, prepend...
13133 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13134 cp $export_symbols $output_objdir/$soname.def;
13136 echo EXPORTS > $output_objdir/$soname.def;
13137 cat $export_symbols >> $output_objdir/$soname.def;
13139 $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'
13144 darwin* | rhapsody*)
13146 rhapsody* | darwin1.[012])
13147 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13151 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13153 case ${MACOSX_DEPLOYMENT_TARGET} in
13155 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13158 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13164 archive_cmds_need_lc_CXX=no
13165 hardcode_direct_CXX=no
13166 hardcode_automatic_CXX=yes
13167 hardcode_shlibpath_var_CXX=unsupported
13168 whole_archive_flag_spec_CXX=''
13169 link_all_deplibs_CXX=yes
13171 if test "$GXX" = yes ; then
13172 lt_int_apple_cc_single_mod=no
13173 output_verbose_link_cmd='echo'
13174 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13175 lt_int_apple_cc_single_mod=yes
13177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13178 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13180 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'
13182 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13184 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13185 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13187 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13189 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}'
13191 case $cc_basename in
13193 output_verbose_link_cmd='echo'
13194 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13195 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13197 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13198 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}'
13208 case $cc_basename in
13210 # FIXME: insert proper C++ library support
13214 # Green Hills C++ Compiler
13215 # FIXME: insert proper C++ library support
13219 # FIXME: insert proper C++ library support
13225 # C++ shared libraries reported to be fairly broken before switch to ELF
13229 archive_cmds_need_lc_CXX=no
13231 freebsd* | kfreebsd*-gnu | dragonfly*)
13232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13240 hardcode_libdir_separator_CXX=:
13241 export_dynamic_flag_spec_CXX='${wl}-E'
13242 hardcode_direct_CXX=yes
13243 hardcode_minus_L_CXX=yes # Not in the search PATH,
13244 # but as the default
13245 # location of the library.
13247 case $cc_basename in
13249 # FIXME: insert proper C++ library support
13253 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'
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13258 # There doesn't appear to be a way to prevent this compiler from
13259 # explicitly linking system object files so we need to strip them
13260 # from the output so that they don't get included in the library
13262 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'
13265 if test "$GXX" = yes; then
13266 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'
13268 # FIXME: insert proper C++ library support
13275 if test $with_gnu_ld = no; then
13276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13277 hardcode_libdir_separator_CXX=:
13281 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13284 export_dynamic_flag_spec_CXX='${wl}-E'
13290 hardcode_direct_CXX=no
13291 hardcode_shlibpath_var_CXX=no
13294 hardcode_direct_CXX=yes
13295 hardcode_minus_L_CXX=yes # Not in the search PATH,
13296 # but as the default
13297 # location of the library.
13301 case $cc_basename in
13303 # FIXME: insert proper C++ library support
13309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318 # Commands to make compiler produce verbose output that lists
13319 # what "hidden" libraries, object files and flags are used when
13320 # linking a shared library.
13322 # There doesn't appear to be a way to prevent this compiler from
13323 # explicitly linking system object files so we need to strip them
13324 # from the output so that they don't get included in the library
13326 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'
13329 if test "$GXX" = yes; then
13330 if test $with_gnu_ld = no; then
13333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339 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'
13344 # FIXME: insert proper C++ library support
13351 hardcode_direct_CXX=no
13352 hardcode_shlibpath_var_CXX=no
13353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13354 export_dynamic_flag_spec_CXX='${wl}-E'
13355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13356 # Instead, shared libraries are loaded at an image base (0x10000000 by
13357 # default) and relocated if they conflict, which is a slow very memory
13358 # consuming and fragmenting process. To avoid this, we pick a random,
13359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13361 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'
13362 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'
13365 case $cc_basename in
13368 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'
13370 # Archives containing C++ object files must be created using
13371 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13372 # necessary to make sure instantiated templates are included
13374 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13377 if test "$GXX" = yes; then
13378 if test "$with_gnu_ld" = no; then
13379 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'
13381 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'
13384 link_all_deplibs_CXX=yes
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13388 hardcode_libdir_separator_CXX=:
13391 case $cc_basename in
13393 # Kuck and Associates, Inc. (KAI) C++ Compiler
13395 # KCC will only create a shared library if the output file
13396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13397 # to its proper name (with version) after linking.
13398 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'
13399 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'
13400 # Commands to make compiler produce verbose output that lists
13401 # what "hidden" libraries, object files and flags are used when
13402 # linking a shared library.
13404 # There doesn't appear to be a way to prevent this compiler from
13405 # explicitly linking system object files so we need to strip them
13406 # from the output so that they don't get included in the library
13408 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'
13410 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13413 # Archives containing C++ object files must be created using
13414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13420 # version 8.0 and above of icpc choke on multiply defined symbols
13421 # if we add $predep_objects and $postdep_objects, however 7.1 and
13422 # earlier do not add the objects themselves.
13423 case `$CC -V 2>&1` in
13425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426 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'
13428 *) # Version 8.0 or newer
13431 ia64*) tmp_idyn=' -i_dynamic';;
13433 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13434 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'
13437 archive_cmds_need_lc_CXX=no
13438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13440 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13443 # Portland Group C++ compiler
13444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13445 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'
13447 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13449 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'
13453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13454 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'
13456 runpath_var=LD_RUN_PATH
13457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13458 hardcode_libdir_separator_CXX=:
13460 # Commands to make compiler produce verbose output that lists
13461 # what "hidden" libraries, object files and flags are used when
13462 # linking a shared library.
13464 # There doesn't appear to be a way to prevent this compiler from
13465 # explicitly linking system object files so we need to strip them
13466 # from the output so that they don't get included in the library
13468 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'
13473 # FIXME: insert proper C++ library support
13477 # FIXME: insert proper C++ library support
13481 case $cc_basename in
13483 # FIXME: insert proper C++ library support
13487 # FIXME: insert proper C++ library support
13493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13496 hardcode_libdir_flag_spec_CXX='-R$libdir'
13497 hardcode_direct_CXX=yes
13498 hardcode_shlibpath_var_CXX=no
13500 # Workaround some broken pre-1.5 toolchains
13501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13504 # C++ shared libraries are fairly broken
13508 hardcode_direct_CXX=yes
13509 hardcode_shlibpath_var_CXX=no
13510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13514 export_dynamic_flag_spec_CXX='${wl}-E'
13515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13517 output_verbose_link_cmd='echo'
13520 case $cc_basename in
13522 # Kuck and Associates, Inc. (KAI) C++ Compiler
13524 # KCC will only create a shared library if the output file
13525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13526 # to its proper name (with version) after linking.
13527 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'
13529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13530 hardcode_libdir_separator_CXX=:
13532 # Archives containing C++ object files must be created using
13533 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13534 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13538 # Rational C++ 2.4.1
13539 # FIXME: insert proper C++ library support
13543 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13544 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'
13546 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13547 hardcode_libdir_separator_CXX=:
13549 # Commands to make compiler produce verbose output that lists
13550 # what "hidden" libraries, object files and flags are used when
13551 # linking a shared library.
13553 # There doesn't appear to be a way to prevent this compiler from
13554 # explicitly linking system object files so we need to strip them
13555 # from the output so that they don't get included in the library
13557 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'
13560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13562 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'
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13565 hardcode_libdir_separator_CXX=:
13567 # Commands to make compiler produce verbose output that lists
13568 # what "hidden" libraries, object files and flags are used when
13569 # linking a shared library.
13570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13573 # FIXME: insert proper C++ library support
13580 case $cc_basename in
13582 # Kuck and Associates, Inc. (KAI) C++ Compiler
13584 # KCC will only create a shared library if the output file
13585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13586 # to its proper name (with version) after linking.
13587 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'
13589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13590 hardcode_libdir_separator_CXX=:
13592 # Archives containing C++ object files must be created using
13593 # the KAI C++ compiler.
13594 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13597 # Rational C++ 2.4.1
13598 # FIXME: insert proper C++ library support
13602 allow_undefined_flag_CXX=' -expect_unresolved \*'
13603 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'
13604 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13605 echo "-hidden">> $lib.exp~
13606 $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~
13609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13610 hardcode_libdir_separator_CXX=:
13612 # Commands to make compiler produce verbose output that lists
13613 # what "hidden" libraries, object files and flags are used when
13614 # linking a shared library.
13616 # There doesn't appear to be a way to prevent this compiler from
13617 # explicitly linking system object files so we need to strip them
13618 # from the output so that they don't get included in the library
13620 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'
13623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13625 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'
13627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13628 hardcode_libdir_separator_CXX=:
13630 # Commands to make compiler produce verbose output that lists
13631 # what "hidden" libraries, object files and flags are used when
13632 # linking a shared library.
13633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13636 # FIXME: insert proper C++ library support
13643 # FIXME: insert proper C++ library support
13647 case $cc_basename in
13650 # FIXME: insert proper C++ library support
13655 # FIXME: insert proper C++ library support
13659 # FIXME: insert proper C++ library support
13665 case $cc_basename in
13667 # Sun C++ 4.2, 5.x and Centerline C++
13668 archive_cmds_need_lc_CXX=yes
13669 no_undefined_flag_CXX=' -zdefs'
13670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13672 $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'
13674 hardcode_libdir_flag_spec_CXX='-R$libdir'
13675 hardcode_shlibpath_var_CXX=no
13677 solaris2.[0-5] | solaris2.[0-5].*) ;;
13679 # The C++ compiler is used as linker so we must use $wl
13680 # flag to pass the commands to the underlying system
13681 # linker. We must also pass each convience library through
13682 # to the system linker between allextract/defaultextract.
13683 # The C++ compiler will combine linker options so we
13684 # cannot just pass the convience library names through
13686 # Supported since Solaris 2.6 (maybe 2.5.1?)
13687 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13690 link_all_deplibs_CXX=yes
13692 output_verbose_link_cmd='echo'
13694 # Archives containing C++ object files must be created using
13695 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13696 # necessary to make sure instantiated templates are included
13698 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13701 # Green Hills C++ Compiler
13702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13704 # The C++ compiler must be used to create the archive.
13705 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13708 # GNU C++ compiler with Solaris linker
13709 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13710 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13711 if $CC --version | grep -v '^2\.7' > /dev/null; then
13712 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13713 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13714 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13716 # Commands to make compiler produce verbose output that lists
13717 # what "hidden" libraries, object files and flags are used when
13718 # linking a shared library.
13719 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13721 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13723 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13724 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13725 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13727 # Commands to make compiler produce verbose output that lists
13728 # what "hidden" libraries, object files and flags are used when
13729 # linking a shared library.
13730 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13733 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13739 no_undefined_flag_CXX='${wl}-z,text'
13740 archive_cmds_need_lc_CXX=no
13741 hardcode_shlibpath_var_CXX=no
13742 runpath_var='LD_RUN_PATH'
13744 case $cc_basename in
13746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 sysv5* | sco3.2v5* | sco5v6*)
13756 # Note: We can NOT use -z defs as we might desire, because we do not
13757 # link with -lc, and that would cause any symbols used from libc to
13758 # always be unresolved, which means just about no library would
13759 # ever link correctly. If we're not using GNU ld we use -z text
13760 # though, which does catch some bad symbols but isn't as heavy-handed
13762 # For security reasons, it is highly recommended that you always
13763 # use absolute paths for naming shared libraries, and exclude the
13764 # DT_RUNPATH tag from executables and libraries. But doing so
13765 # requires that you compile everything twice, which is a pain.
13766 # So that behaviour is only enabled if SCOABSPATH is set to a
13767 # non-empty value in the environment. Most likely only useful for
13768 # creating official distributions of packages.
13769 # This is a hack until libtool officially supports absolute path
13770 # names for shared libraries.
13771 no_undefined_flag_CXX='${wl}-z,text'
13772 allow_undefined_flag_CXX='${wl}-z,nodefs'
13773 archive_cmds_need_lc_CXX=no
13774 hardcode_shlibpath_var_CXX=no
13775 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13776 hardcode_libdir_separator_CXX=':'
13777 link_all_deplibs_CXX=yes
13778 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13779 runpath_var='LD_RUN_PATH'
13781 case $cc_basename in
13783 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 case $cc_basename in
13795 # NonStop-UX NCC 3.20
13796 # FIXME: insert proper C++ library support
13800 # FIXME: insert proper C++ library support
13806 # FIXME: insert proper C++ library support
13810 # FIXME: insert proper C++ library support
13814 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13815 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13816 test "$ld_shlibs_CXX" = no && can_build_shared=no
13822 ## There is no encapsulation within the following macros, do not change
13823 ## the running order or otherwise move them around unless you know exactly
13824 ## what you are doing...
13826 cat > conftest.$ac_ext <<EOF
13830 Foo (void) { a = 0; }
13836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13837 (eval $ac_compile) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; then
13841 # Parse the compiler output and extract the necessary
13842 # objects, libraries and library flags.
13844 # Sentinel used to keep track of whether or not we are before
13845 # the conftest object file.
13846 pre_test_object_deps_done=no
13848 # The `*' in the case matches for architectures that use `case' in
13849 # $output_verbose_cmd can trigger glob expansion during the loop
13850 # eval without this substitution.
13851 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13853 for p in `eval $output_verbose_link_cmd`; do
13857 # Some compilers place space between "-{L,R}" and the path.
13858 # Remove the space.
13859 if test $p = "-L" \
13860 || test $p = "-R"; then
13867 if test "$pre_test_object_deps_done" = no; then
13870 # Internal compiler library paths should come after those
13871 # provided the user. The postdeps already come after the
13872 # user supplied libs so there is no need to process them.
13873 if test -z "$compiler_lib_search_path_CXX"; then
13874 compiler_lib_search_path_CXX="${prev}${p}"
13876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13879 # The "-l" case would never come before the object being
13880 # linked, so don't bother handling this case.
13883 if test -z "$postdeps_CXX"; then
13884 postdeps_CXX="${prev}${p}"
13886 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13892 # This assumes that the test object file only shows up
13893 # once in the compiler output.
13894 if test "$p" = "conftest.$objext"; then
13895 pre_test_object_deps_done=yes
13899 if test "$pre_test_object_deps_done" = no; then
13900 if test -z "$predep_objects_CXX"; then
13901 predep_objects_CXX="$p"
13903 predep_objects_CXX="$predep_objects_CXX $p"
13906 if test -z "$postdep_objects_CXX"; then
13907 postdep_objects_CXX="$p"
13909 postdep_objects_CXX="$postdep_objects_CXX $p"
13914 *) ;; # Ignore the rest.
13922 echo "libtool.m4: error: problem compiling CXX test program"
13925 $rm -f confest.$objext
13927 # PORTME: override above test on systems where it is broken
13930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931 # hack all around it, let's just trust "g++" to DTRT.
13932 predep_objects_CXX=
13933 postdep_objects_CXX=
13938 case $cc_basename in
13940 # Adding this requires a known-good setup of shared libraries for
13941 # Sun compiler versions before 5.6, else PIC objects from an old
13942 # archive will be linked into the output, leading to subtle bugs.
13943 postdeps_CXX='-lCstd -lCrun'
13950 case " $postdeps_CXX " in
13951 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13954 lt_prog_compiler_wl_CXX=
13955 lt_prog_compiler_pic_CXX=
13956 lt_prog_compiler_static_CXX=
13958 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13961 # C++ specific cases for pic, static, wl, etc.
13962 if test "$GXX" = yes; then
13963 lt_prog_compiler_wl_CXX='-Wl,'
13964 lt_prog_compiler_static_CXX='-static'
13968 # All AIX code is PIC.
13969 if test "$host_cpu" = ia64; then
13970 # AIX 5 now supports IA64 processor
13971 lt_prog_compiler_static_CXX='-Bstatic'
13975 # FIXME: we need at least 68020 code to build shared libraries, but
13976 # adding the `-m68020' flag to GCC prevents building anything better,
13978 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13981 # PIC is the default for these OSes.
13983 mingw* | os2* | pw32*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13988 darwin* | rhapsody*)
13989 # PIC is the default on this platform
13990 # Common symbols not allowed in MH_DYLIB files
13991 lt_prog_compiler_pic_CXX='-fno-common'
13994 # DJGPP does not support shared libraries at all
13995 lt_prog_compiler_pic_CXX=
13998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13999 # Instead, we relocate shared libraries at runtime.
14002 if test -d /usr/nec; then
14003 lt_prog_compiler_pic_CXX=-Kconform_pic
14007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14008 # not for PA HP-UX.
14013 lt_prog_compiler_pic_CXX='-fPIC'
14018 lt_prog_compiler_pic_CXX='-fPIC'
14024 # All AIX code is PIC.
14025 if test "$host_cpu" = ia64; then
14026 # AIX 5 now supports IA64 processor
14027 lt_prog_compiler_static_CXX='-Bstatic'
14029 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14033 case $cc_basename in
14035 # Green Hills C++ Compiler
14036 # _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"
14041 # PIC is the default on this platform
14042 # Common symbols not allowed in MH_DYLIB files
14043 case $cc_basename in
14045 lt_prog_compiler_pic_CXX='-qnocommon'
14046 lt_prog_compiler_wl_CXX='-Wl,'
14051 case $cc_basename in
14053 lt_prog_compiler_pic_CXX='-KPIC'
14056 # Green Hills C++ Compiler
14057 lt_prog_compiler_pic_CXX='-pic'
14063 freebsd* | kfreebsd*-gnu | dragonfly*)
14064 # FreeBSD uses GNU C++
14066 hpux9* | hpux10* | hpux11*)
14067 case $cc_basename in
14069 lt_prog_compiler_wl_CXX='-Wl,'
14070 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14071 if test "$host_cpu" != ia64; then
14072 lt_prog_compiler_pic_CXX='+Z'
14076 lt_prog_compiler_wl_CXX='-Wl,'
14077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14083 lt_prog_compiler_pic_CXX='+Z'
14092 # This is c89, which is MS Visual C++ (no shared libs)
14093 # Anyone wants to do a port?
14095 irix5* | irix6* | nonstopux*)
14096 case $cc_basename in
14098 lt_prog_compiler_wl_CXX='-Wl,'
14099 lt_prog_compiler_static_CXX='-non_shared'
14100 # CC pic flag -KPIC is the default.
14107 case $cc_basename in
14110 lt_prog_compiler_wl_CXX='--backend -Wl,'
14111 lt_prog_compiler_pic_CXX='-fPIC'
14115 lt_prog_compiler_wl_CXX='-Wl,'
14116 lt_prog_compiler_pic_CXX='-KPIC'
14117 lt_prog_compiler_static_CXX='-static'
14120 # Portland Group C++ compiler.
14121 lt_prog_compiler_wl_CXX='-Wl,'
14122 lt_prog_compiler_pic_CXX='-fpic'
14123 lt_prog_compiler_static_CXX='-Bstatic'
14127 # Make sure the PIC flag is empty. It appears that all Alpha
14128 # Linux and Compaq Tru64 Unix objects are PIC.
14129 lt_prog_compiler_pic_CXX=
14130 lt_prog_compiler_static_CXX='-non_shared'
14141 case $cc_basename in
14143 lt_prog_compiler_pic_CXX='-W c,exportall'
14151 osf3* | osf4* | osf5*)
14152 case $cc_basename in
14154 lt_prog_compiler_wl_CXX='--backend -Wl,'
14157 # Rational C++ 2.4.1
14158 lt_prog_compiler_pic_CXX='-pic'
14161 # Digital/Compaq C++
14162 lt_prog_compiler_wl_CXX='-Wl,'
14163 # Make sure the PIC flag is empty. It appears that all Alpha
14164 # Linux and Compaq Tru64 Unix objects are PIC.
14165 lt_prog_compiler_pic_CXX=
14166 lt_prog_compiler_static_CXX='-non_shared'
14175 case $cc_basename in
14177 # Sun C++ 4.2, 5.x and Centerline C++
14178 lt_prog_compiler_pic_CXX='-KPIC'
14179 lt_prog_compiler_static_CXX='-Bstatic'
14180 lt_prog_compiler_wl_CXX='-Qoption ld '
14183 # Green Hills C++ Compiler
14184 lt_prog_compiler_pic_CXX='-PIC'
14191 case $cc_basename in
14194 lt_prog_compiler_pic_CXX='-pic'
14195 lt_prog_compiler_static_CXX='-Bstatic'
14199 lt_prog_compiler_pic_CXX='-pic'
14206 case $cc_basename in
14208 # NonStop-UX NCC 3.20
14209 lt_prog_compiler_pic_CXX='-KPIC'
14215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14216 case $cc_basename in
14218 lt_prog_compiler_wl_CXX='-Wl,'
14219 lt_prog_compiler_pic_CXX='-KPIC'
14220 lt_prog_compiler_static_CXX='-Bstatic'
14227 lt_prog_compiler_can_build_shared_CXX=no
14232 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14233 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14236 # Check to make sure the PIC flag actually works.
14238 if test -n "$lt_prog_compiler_pic_CXX"; then
14240 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14241 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14242 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 lt_prog_compiler_pic_works_CXX=no
14246 ac_outfile=conftest.$ac_objext
14247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14248 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14249 # Insert the option either (1) after the last *FLAGS variable, or
14250 # (2) before a word containing "conftest.", or (3) at the end.
14251 # Note that $ac_compile itself does not contain backslashes and begins
14252 # with a dollar sign (not a hyphen), so the echo should work correctly.
14253 # The option is referenced via a variable to avoid confusing sed.
14254 lt_compile=`echo "$ac_compile" | $SED \
14255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14257 -e 's:$: $lt_compiler_flag:'`
14258 (eval echo "\"\$as_me:14258: $lt_compile\"" >&5)
14259 (eval "$lt_compile" 2>conftest.err)
14261 cat conftest.err >&5
14262 echo "$as_me:14262: \$? = $ac_status" >&5
14263 if (exit $ac_status) && test -s "$ac_outfile"; then
14264 # The compiler can only warn and ignore the option if not recognized
14265 # So say no if there are warnings other than the usual output.
14266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14269 lt_prog_compiler_pic_works_CXX=yes
14275 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14276 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14278 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14279 case $lt_prog_compiler_pic_CXX in
14281 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14284 lt_prog_compiler_pic_CXX=
14285 lt_prog_compiler_can_build_shared_CXX=no
14290 # For platforms which do not support PIC, -DPIC is meaningless:
14292 lt_prog_compiler_pic_CXX=
14295 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14300 # Check to make sure the static flag actually works.
14302 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14303 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14304 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14305 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 lt_prog_compiler_static_works_CXX=no
14309 save_LDFLAGS="$LDFLAGS"
14310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14311 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14313 # The linker can only warn and ignore the option if not recognized
14314 # So say no if there are warnings
14315 if test -s conftest.err; then
14316 # Append any errors to the config.log.
14317 cat conftest.err 1>&5
14318 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14320 if diff conftest.exp conftest.er2 >/dev/null; then
14321 lt_prog_compiler_static_works_CXX=yes
14324 lt_prog_compiler_static_works_CXX=yes
14328 LDFLAGS="$save_LDFLAGS"
14331 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14332 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14334 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14337 lt_prog_compiler_static_CXX=
14341 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14342 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 lt_cv_prog_compiler_c_o_CXX=no
14347 $rm -r conftest 2>/dev/null
14351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 lt_compiler_flag="-o out/conftest2.$ac_objext"
14354 # Insert the option either (1) after the last *FLAGS variable, or
14355 # (2) before a word containing "conftest.", or (3) at the end.
14356 # Note that $ac_compile itself does not contain backslashes and begins
14357 # with a dollar sign (not a hyphen), so the echo should work correctly.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>out/conftest.err)
14365 cat out/conftest.err >&5
14366 echo "$as_me:14366: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14369 # The compiler can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14374 lt_cv_prog_compiler_c_o_CXX=yes
14379 # SGI C++ compiler will create directory out/ii_files/ for
14380 # template instantiation
14381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14382 $rm out/* && rmdir out
14388 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14392 hard_links="nottested"
14393 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14394 # do not overwrite the value of need_locks provided by the user
14395 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14396 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14401 ln conftest.a conftest.b 2>&5 || hard_links=no
14402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14403 { echo "$as_me:$LINENO: result: $hard_links" >&5
14404 echo "${ECHO_T}$hard_links" >&6; }
14405 if test "$hard_links" = no; then
14406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14407 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14414 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14415 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14420 # If we're using GNU nm, then we don't want the "-C" option.
14421 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14422 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14423 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'
14425 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'
14429 export_symbols_cmds_CXX="$ltdll_cmds"
14432 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'
14435 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14439 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14440 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14441 test "$ld_shlibs_CXX" = no && can_build_shared=no
14444 # Do we need to explicitly link libc?
14446 case "x$archive_cmds_need_lc_CXX" in
14448 # Assume -lc should be added
14449 archive_cmds_need_lc_CXX=yes
14451 if test "$enable_shared" = yes && test "$GCC" = yes; then
14452 case $archive_cmds_CXX in
14454 # FIXME: we may have to deal with multi-command sequences.
14457 # Test whether the compiler implicitly links with -lc since on some
14458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14459 # to ld, don't add -lc before -lgcc.
14460 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14461 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } 2>conftest.err; then
14472 libobjs=conftest.$ac_objext
14474 wl=$lt_prog_compiler_wl_CXX
14475 pic_flag=$lt_prog_compiler_pic_CXX
14481 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14482 allow_undefined_flag_CXX=
14483 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14484 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }
14489 archive_cmds_need_lc_CXX=no
14491 archive_cmds_need_lc_CXX=yes
14493 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14495 cat conftest.err 1>&5
14498 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14499 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14506 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14507 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14508 library_names_spec=
14509 libname_spec='lib$name'
14513 postuninstall_cmds=
14517 shlibpath_overrides_runpath=unknown
14519 dynamic_linker="$host_os ld.so"
14520 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14521 if test "$GCC" = yes; then
14522 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14523 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14524 # if the path contains ";" then we assume it to be the separator
14525 # otherwise default to the standard path separator (i.e. ":") - it is
14526 # assumed that no part of a normal pathname contains ";" but that should
14527 # okay in the real world where ";" in dirpaths is itself problematic.
14528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14533 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14535 need_lib_prefix=unknown
14536 hardcode_into_libs=no
14538 # when you set need_version to no, make sure it does not cause -set_version
14539 # flags to be left without arguments
14540 need_version=unknown
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14546 shlibpath_var=LIBPATH
14548 # AIX 3 has no versioning support, so we append a major version to the name.
14549 soname_spec='${libname}${release}${shared_ext}$major'
14556 hardcode_into_libs=yes
14557 if test "$host_cpu" = ia64; then
14558 # AIX 5 supports IA64
14559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14560 shlibpath_var=LD_LIBRARY_PATH
14562 # With GCC up to 2.95.x, collect2 would create an import file
14563 # for dependence libraries. The import file would start with
14564 # the line `#! .'. This would cause the generated library to
14565 # depend on `.', always an invalid library. This was fixed in
14566 # development snapshots of GCC prior to 3.0.
14568 aix4 | aix4.[01] | aix4.[01].*)
14569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14571 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14574 can_build_shared=no
14578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14579 # soname into executable. Probably we can add versioning support to
14580 # collect2, so additional links can be useful in future.
14581 if test "$aix_use_runtimelinking" = yes; then
14582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14583 # instead of lib<name>.a to let people know that these are not
14584 # typical AIX shared libraries.
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 # We preserve .a as extension for shared libraries through AIX4.2
14588 # and later when we are not doing run time linking.
14589 library_names_spec='${libname}${release}.a $libname.a'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LIBPATH
14597 library_names_spec='$libname.ixlibrary $libname.a'
14598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14599 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'
14603 library_names_spec='${libname}${shared_ext}'
14604 dynamic_linker="$host_os ld.so"
14605 shlibpath_var=LIBRARY_PATH
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14616 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14617 # the default ld.so.conf also contains /usr/contrib/lib and
14618 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14619 # libtool to hard-code these into programs
14622 cygwin* | mingw* | pw32*)
14623 version_type=windows
14628 case $GCC,$host_os in
14629 yes,cygwin* | yes,mingw* | yes,pw32*)
14630 library_names_spec='$libname.dll.a'
14631 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14632 postinstall_cmds='base_file=`basename \${file}`~
14633 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14634 dldir=$destdir/`dirname \$dlpath`~
14635 test -d \$dldir || mkdir -p \$dldir~
14636 $install_prog $dir/$dlname \$dldir/$dlname~
14637 chmod a+x \$dldir/$dlname'
14638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14639 dlpath=$dir/\$dldll~
14641 shlibpath_overrides_runpath=yes
14645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14650 # MinGW DLLs use traditional 'lib' prefix
14651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14654 # It is most probably a Windows format PATH printed by
14655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14656 # path with ; separators, and with drive letters. We can handle the
14657 # drive letters (cygwin fileutils understands them), so leave them,
14658 # especially as we might pass files found there to a mingw objdump,
14659 # which wouldn't understand a cygwinified path. Ahh.
14660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14666 # pw32 DLLs use 'pw' prefix rather than 'lib'
14667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14676 dynamic_linker='Win32 ld.exe'
14677 # FIXME: first we should search . and the directory the executable is in
14681 darwin* | rhapsody*)
14682 dynamic_linker="$host_os dyld"
14683 version_type=darwin
14686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14687 soname_spec='${libname}${release}${major}$shared_ext'
14688 shlibpath_overrides_runpath=yes
14689 shlibpath_var=DYLD_LIBRARY_PATH
14690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14692 if test "$GCC" = yes; then
14693 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14722 dynamic_linker='GNU ld.so'
14725 freebsd* | dragonfly*)
14726 # DragonFly does not have aout. When/if they implement a new
14727 # versioning mechanism, adjust this.
14728 if test -x /usr/bin/objformat; then
14729 objformat=`/usr/bin/objformat`
14732 freebsd[123]*) objformat=aout ;;
14733 *) objformat=elf ;;
14736 version_type=freebsd-$objformat
14737 case $version_type in
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14748 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14753 freebsd3.[01]* | freebsdelf3.[01]*)
14754 shlibpath_overrides_runpath=yes
14755 hardcode_into_libs=yes
14757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14759 shlibpath_overrides_runpath=no
14760 hardcode_into_libs=yes
14762 freebsd*) # from 4.6 on
14763 shlibpath_overrides_runpath=yes
14764 hardcode_into_libs=yes
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 hardcode_into_libs=yes
14779 hpux9* | hpux10* | hpux11*)
14780 # Give a soname corresponding to the major version so that dld.sl refuses to
14781 # link against other versions.
14788 hardcode_into_libs=yes
14789 dynamic_linker="$host_os dld.so"
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 if test "X$HPUX_IA64_MODE" = X32; then
14795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14803 hardcode_into_libs=yes
14804 dynamic_linker="$host_os dld.sl"
14805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14814 dynamic_linker="$host_os dld.sl"
14815 shlibpath_var=SHLIB_PATH
14816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14822 postinstall_cmds='chmod 555 $lib'
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=no
14834 hardcode_into_libs=yes
14837 irix5* | irix6* | nonstopux*)
14839 nonstopux*) version_type=nonstopux ;;
14841 if test "$lt_cv_prog_gnu_ld" = yes; then
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14852 irix5* | nonstopux*)
14853 libsuff= shlibsuff=
14856 case $LD in # libtool.m4 will add one of these switches to LD
14857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14858 libsuff= shlibsuff= libmagic=32-bit;;
14859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14860 libsuff=32 shlibsuff=N32 libmagic=N32;;
14861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14863 *) libsuff= shlibsuff= libmagic=never-match;;
14867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14868 shlibpath_overrides_runpath=no
14869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14871 hardcode_into_libs=yes
14874 # No shared lib support for Linux oldld, aout, or coff.
14875 linux*oldld* | linux*aout* | linux*coff*)
14879 # This must be Linux ELF.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=no
14889 # This implies no fast_install, which is unacceptable.
14890 # Some rework will be needed to allow for fast_install
14891 # before this can be enabled.
14892 hardcode_into_libs=yes
14894 # Append ld.so.conf contents to the search path
14895 if test -f /etc/ld.so.conf; then
14896 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14900 # We used to test for /lib/ld.so.1 and disable shared libraries on
14901 # powerpc, because MkLinux only supported shared libraries with the
14902 # GNU dynamic linker. Since this was broken with cross compilers,
14903 # most powerpc-linux boxes support dynamic linking these days and
14904 # people can always --disable-shared, the test was removed, and we
14905 # assume the GNU/Linux dynamic linker is in use.
14906 dynamic_linker='GNU/Linux ld.so'
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 shlibpath_overrides_runpath=no
14917 hardcode_into_libs=yes
14918 dynamic_linker='GNU ld.so'
14925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14928 dynamic_linker='NetBSD (a.out) ld.so'
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 dynamic_linker='NetBSD ld.elf_so'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 hardcode_into_libs=yes
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 shlibpath_overrides_runpath=yes
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14958 sys_lib_dlsearch_path_spec="/usr/lib"
14960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14963 *) need_version=no ;;
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14970 openbsd2.[89] | openbsd2.[89].*)
14971 shlibpath_overrides_runpath=no
14974 shlibpath_overrides_runpath=yes
14978 shlibpath_overrides_runpath=yes
14983 libname_spec='$name'
14986 library_names_spec='$libname${shared_ext} $libname.a'
14987 dynamic_linker='OS/2 ld.exe'
14988 shlibpath_var=LIBPATH
14991 osf3* | osf4* | osf5*)
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=yes
15010 hardcode_into_libs=yes
15011 # ldd complains unless libraries are executable
15012 postinstall_cmds='chmod +x $lib'
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=yes
15021 if test "$with_gnu_ld" = yes; then
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 case $host_vendor in
15034 shlibpath_overrides_runpath=no
15036 export_dynamic_flag_spec='${wl}-Blargedynsym'
15037 runpath_var=LD_RUN_PATH
15045 shlibpath_overrides_runpath=no
15046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15052 if test -d /usr/nec ;then
15054 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15055 soname_spec='$libname${shared_ext}.$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15061 version_type=freebsd-elf
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 shlibpath_var=LD_LIBRARY_PATH
15067 hardcode_into_libs=yes
15068 if test "$with_gnu_ld" = yes; then
15069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15070 shlibpath_overrides_runpath=no
15072 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15073 shlibpath_overrides_runpath=yes
15076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15080 sys_lib_dlsearch_path_spec='/usr/lib'
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 shlibpath_var=LD_LIBRARY_PATH
15094 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15095 echo "${ECHO_T}$dynamic_linker" >&6; }
15096 test "$dynamic_linker" = no && can_build_shared=no
15098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15099 if test "$GCC" = yes; then
15100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15103 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15104 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15105 hardcode_action_CXX=
15106 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15107 test -n "$runpath_var_CXX" || \
15108 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15110 # We can hardcode non-existant directories.
15111 if test "$hardcode_direct_CXX" != no &&
15112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15113 # have to relink, otherwise we might link with an installed library
15114 # when we should be linking with a yet-to-be-installed one
15115 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15116 test "$hardcode_minus_L_CXX" != no; then
15117 # Linking always hardcodes the temporary library directory.
15118 hardcode_action_CXX=relink
15120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15121 hardcode_action_CXX=immediate
15124 # We cannot hardcode anything, or else we can only hardcode existing
15126 hardcode_action_CXX=unsupported
15128 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15129 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15131 if test "$hardcode_action_CXX" = relink; then
15132 # Fast installation is not supported
15133 enable_fast_install=no
15134 elif test "$shlibpath_overrides_runpath" = yes ||
15135 test "$enable_shared" = no; then
15136 # Fast installation is not necessary
15137 enable_fast_install=needless
15141 # The else clause should only fire when bootstrapping the
15142 # libtool distribution, otherwise you forgot to ship ltmain.sh
15143 # with your package, and you will get complaints that there are
15144 # no rules to generate ltmain.sh.
15145 if test -f "$ltmain"; then
15146 # See if we are running on zsh, and set the options which allow our commands through
15147 # without removal of \ escapes.
15148 if test -n "${ZSH_VERSION+set}" ; then
15149 setopt NO_GLOB_SUBST
15151 # Now quote all the things that may contain metacharacters while being
15152 # careful not to overquote the AC_SUBSTed values. We take copies of the
15153 # variables and quote the copies for generation of the libtool script.
15154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15158 deplibs_check_method reload_flag reload_cmds need_locks \
15159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15160 lt_cv_sys_global_symbol_to_c_name_address \
15161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15162 old_postinstall_cmds old_postuninstall_cmds \
15166 lt_prog_compiler_wl_CXX \
15167 lt_prog_compiler_pic_CXX \
15168 lt_prog_compiler_static_CXX \
15169 lt_prog_compiler_no_builtin_flag_CXX \
15170 export_dynamic_flag_spec_CXX \
15171 thread_safe_flag_spec_CXX \
15172 whole_archive_flag_spec_CXX \
15173 enable_shared_with_static_runtimes_CXX \
15174 old_archive_cmds_CXX \
15175 old_archive_from_new_cmds_CXX \
15176 predep_objects_CXX \
15177 postdep_objects_CXX \
15180 compiler_lib_search_path_CXX \
15182 archive_expsym_cmds_CXX \
15183 postinstall_cmds_CXX \
15184 postuninstall_cmds_CXX \
15185 old_archive_from_expsyms_cmds_CXX \
15186 allow_undefined_flag_CXX \
15187 no_undefined_flag_CXX \
15188 export_symbols_cmds_CXX \
15189 hardcode_libdir_flag_spec_CXX \
15190 hardcode_libdir_flag_spec_ld_CXX \
15191 hardcode_libdir_separator_CXX \
15192 hardcode_automatic_CXX \
15194 module_expsym_cmds_CXX \
15195 lt_cv_prog_compiler_c_o_CXX \
15196 exclude_expsyms_CXX \
15197 include_expsyms_CXX; do
15200 old_archive_cmds_CXX | \
15201 old_archive_from_new_cmds_CXX | \
15202 archive_cmds_CXX | \
15203 archive_expsym_cmds_CXX | \
15204 module_cmds_CXX | \
15205 module_expsym_cmds_CXX | \
15206 old_archive_from_expsyms_cmds_CXX | \
15207 export_symbols_cmds_CXX | \
15208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15209 postinstall_cmds | postuninstall_cmds | \
15210 old_postinstall_cmds | old_postuninstall_cmds | \
15211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15212 # Double-quote double-evaled strings.
15213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15222 *'\$0 --fallback-echo"')
15223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15229 cat <<__EOF__ >> "$cfgfile"
15230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15234 # Shell to use when invoking shell scripts.
15237 # Whether or not to build shared libraries.
15238 build_libtool_libs=$enable_shared
15240 # Whether or not to build static libraries.
15241 build_old_libs=$enable_static
15243 # Whether or not to add -lc for building shared libraries.
15244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15246 # Whether or not to disallow shared libs when runtime libs are static
15247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15249 # Whether or not to optimize for fast installation.
15250 fast_install=$enable_fast_install
15253 host_alias=$host_alias
15257 # The build system.
15258 build_alias=$build_alias
15262 # An echo program that does not interpret backslashes.
15267 AR_FLAGS=$lt_AR_FLAGS
15272 # LTCC compiler flags.
15273 LTCFLAGS=$lt_LTCFLAGS
15275 # A language-specific compiler.
15276 CC=$lt_compiler_CXX
15278 # Is the compiler the GNU C compiler?
15284 # The linker used to build libraries.
15287 # Whether we need hard or soft links.
15290 # A BSD-compatible nm program.
15293 # A symbol stripping program
15296 # Used to examine libraries when file_magic_cmd begins "file"
15297 MAGIC_CMD=$MAGIC_CMD
15299 # Used on cygwin: DLL creation program.
15302 # Used on cygwin: object dumper.
15305 # Used on cygwin: assembler.
15308 # The name of the directory that contains temporary libtool files.
15311 # How to create reloadable object files.
15312 reload_flag=$lt_reload_flag
15313 reload_cmds=$lt_reload_cmds
15315 # How to pass a linker flag through the compiler.
15316 wl=$lt_lt_prog_compiler_wl_CXX
15318 # Object file suffix (normally "o").
15319 objext="$ac_objext"
15321 # Old archive suffix (normally "a").
15324 # Shared library suffix (normally ".so").
15325 shrext_cmds='$shrext_cmds'
15327 # Executable file suffix (normally "").
15330 # Additional compiler flags for building library objects.
15331 pic_flag=$lt_lt_prog_compiler_pic_CXX
15334 # What is the maximum length of a command?
15335 max_cmd_len=$lt_cv_sys_max_cmd_len
15337 # Does compiler simultaneously support -c and -o options?
15338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15340 # Must we lock files when doing compilation?
15341 need_locks=$lt_need_locks
15343 # Do we need the lib prefix for modules?
15344 need_lib_prefix=$need_lib_prefix
15346 # Do we need a version for libraries?
15347 need_version=$need_version
15349 # Whether dlopen is supported.
15350 dlopen_support=$enable_dlopen
15352 # Whether dlopen of programs is supported.
15353 dlopen_self=$enable_dlopen_self
15355 # Whether dlopen of statically linked programs is supported.
15356 dlopen_self_static=$enable_dlopen_self_static
15358 # Compiler flag to prevent dynamic linking.
15359 link_static_flag=$lt_lt_prog_compiler_static_CXX
15361 # Compiler flag to turn off builtin functions.
15362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15364 # Compiler flag to allow reflexive dlopens.
15365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15367 # Compiler flag to generate shared objects directly from archives.
15368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15370 # Compiler flag to generate thread-safe objects.
15371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15373 # Library versioning type.
15374 version_type=$version_type
15376 # Format of library name prefix.
15377 libname_spec=$lt_libname_spec
15379 # List of archive names. First name is the real one, the rest are links.
15380 # The last name is the one that the linker finds with -lNAME.
15381 library_names_spec=$lt_library_names_spec
15383 # The coded name of the library, if different from the real name.
15384 soname_spec=$lt_soname_spec
15386 # Commands used to build and install an old-style archive.
15388 old_archive_cmds=$lt_old_archive_cmds_CXX
15389 old_postinstall_cmds=$lt_old_postinstall_cmds
15390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15392 # Create an old-style archive from a shared archive.
15393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15395 # Create a temporary old-style archive to link instead of a shared archive.
15396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15398 # Commands used to build and install a shared archive.
15399 archive_cmds=$lt_archive_cmds_CXX
15400 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15401 postinstall_cmds=$lt_postinstall_cmds
15402 postuninstall_cmds=$lt_postuninstall_cmds
15404 # Commands used to build a loadable module (assumed same as above if empty)
15405 module_cmds=$lt_module_cmds_CXX
15406 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15408 # Commands to strip libraries.
15409 old_striplib=$lt_old_striplib
15410 striplib=$lt_striplib
15412 # Dependencies to place before the objects being linked to create a
15414 predep_objects=$lt_predep_objects_CXX
15416 # Dependencies to place after the objects being linked to create a
15418 postdep_objects=$lt_postdep_objects_CXX
15420 # Dependencies to place before the objects being linked to create a
15422 predeps=$lt_predeps_CXX
15424 # Dependencies to place after the objects being linked to create a
15426 postdeps=$lt_postdeps_CXX
15428 # The library search path used internally by the compiler when linking
15429 # a shared library.
15430 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15432 # Method to check whether dependent libraries are shared objects.
15433 deplibs_check_method=$lt_deplibs_check_method
15435 # Command to use when deplibs_check_method == file_magic.
15436 file_magic_cmd=$lt_file_magic_cmd
15438 # Flag that allows shared libraries with undefined symbols to be built.
15439 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15441 # Flag that forces no undefined symbols.
15442 no_undefined_flag=$lt_no_undefined_flag_CXX
15444 # Commands used to finish a libtool library installation in a directory.
15445 finish_cmds=$lt_finish_cmds
15447 # Same as above, but a single script fragment to be evaled but not shown.
15448 finish_eval=$lt_finish_eval
15450 # Take the output of nm and produce a listing of raw symbols and C names.
15451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15453 # Transform the output of nm in a proper C declaration
15454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15456 # Transform the output of nm in a C name address pair
15457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15459 # This is the shared library runtime path variable.
15460 runpath_var=$runpath_var
15462 # This is the shared library path variable.
15463 shlibpath_var=$shlibpath_var
15465 # Is shlibpath searched before the hard-coded library search path?
15466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15468 # How to hardcode a shared library path into an executable.
15469 hardcode_action=$hardcode_action_CXX
15471 # Whether we should hardcode library paths into libraries.
15472 hardcode_into_libs=$hardcode_into_libs
15474 # Flag to hardcode \$libdir into a binary during linking.
15475 # This must work even if \$libdir does not exist.
15476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15478 # If ld is used when linking, flag to hardcode \$libdir into
15479 # a binary during linking. This must work even if \$libdir does
15481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15483 # Whether we need a single -rpath flag with a separated argument.
15484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15487 # resulting binary.
15488 hardcode_direct=$hardcode_direct_CXX
15490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15491 # resulting binary.
15492 hardcode_minus_L=$hardcode_minus_L_CXX
15494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15495 # the resulting binary.
15496 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15498 # Set to yes if building a shared library automatically hardcodes DIR into the library
15499 # and all subsequent libraries and executables linked against it.
15500 hardcode_automatic=$hardcode_automatic_CXX
15502 # Variables whose values should be saved in libtool wrapper scripts and
15503 # restored at relink time.
15504 variables_saved_for_relink="$variables_saved_for_relink"
15506 # Whether libtool must link a program against all its dependency libraries.
15507 link_all_deplibs=$link_all_deplibs_CXX
15509 # Compile-time system search path for libraries
15510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15512 # Run-time system search path for libraries
15513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15515 # Fix the shell variable \$srcfile for the compiler.
15516 fix_srcfile_path="$fix_srcfile_path_CXX"
15518 # Set to yes if exported symbols are required.
15519 always_export_symbols=$always_export_symbols_CXX
15521 # The commands to list exported symbols.
15522 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15524 # The commands to extract the exported symbol list from a shared archive.
15525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15527 # Symbols that should not be listed in the preloaded symbols.
15528 exclude_expsyms=$lt_exclude_expsyms_CXX
15530 # Symbols that must always be exported.
15531 include_expsyms=$lt_include_expsyms_CXX
15533 # ### END LIBTOOL TAG CONFIG: $tagname
15539 # If there is no Makefile yet, we rely on a make rule to execute
15540 # `config.status --recheck' to rerun these tests and create the
15541 # libtool script then.
15542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15543 if test -f "$ltmain_in"; then
15544 test -f Makefile && make "$ltmain"
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15559 with_gnu_ldcxx=$with_gnu_ld
15560 with_gnu_ld=$lt_save_with_gnu_ld
15561 lt_cv_path_LDCXX=$lt_cv_path_LD
15562 lt_cv_path_LD=$lt_save_path_LD
15563 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15564 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15572 if test -n "$F77" && test "X$F77" != "Xno"; then
15575 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15576 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15580 archive_cmds_need_lc_F77=no
15581 allow_undefined_flag_F77=
15582 always_export_symbols_F77=no
15583 archive_expsym_cmds_F77=
15584 export_dynamic_flag_spec_F77=
15585 hardcode_direct_F77=no
15586 hardcode_libdir_flag_spec_F77=
15587 hardcode_libdir_flag_spec_ld_F77=
15588 hardcode_libdir_separator_F77=
15589 hardcode_minus_L_F77=no
15590 hardcode_automatic_F77=no
15592 module_expsym_cmds_F77=
15593 link_all_deplibs_F77=unknown
15594 old_archive_cmds_F77=$old_archive_cmds
15595 no_undefined_flag_F77=
15596 whole_archive_flag_spec_F77=
15597 enable_shared_with_static_runtimes_F77=no
15599 # Source file extension for f77 test sources.
15602 # Object file extension for compiled f77 test sources.
15606 # Code to be used in simple compile tests
15607 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15609 # Code to be used in simple link tests
15610 lt_simple_link_test_code=" program t\n end\n"
15612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15614 # If no C compiler was specified, use CC.
15617 # If no C compiler flags were specified, use CFLAGS.
15618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15620 # Allow CC to be a program name with arguments.
15624 # save warnings/boilerplate of simple test code
15625 ac_outfile=conftest.$ac_objext
15626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15628 _lt_compiler_boilerplate=`cat conftest.err`
15631 ac_outfile=conftest.$ac_objext
15632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15634 _lt_linker_boilerplate=`cat conftest.err`
15638 # Allow CC to be a program name with arguments.
15643 for cc_temp in $compiler""; do
15645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15651 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15654 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15656 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15657 echo "${ECHO_T}$can_build_shared" >&6; }
15659 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15661 test "$can_build_shared" = "no" && enable_shared=no
15663 # On AIX, shared libraries and static libraries use the same namespace, and
15664 # are all built from PIC.
15667 test "$enable_shared" = yes && enable_static=no
15668 if test -n "$RANLIB"; then
15669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15670 postinstall_cmds='$RANLIB $lib'
15674 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15675 test "$enable_shared" = yes && enable_static=no
15679 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15680 echo "${ECHO_T}$enable_shared" >&6; }
15682 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15684 # Make sure either enable_shared or enable_static is yes.
15685 test "$enable_shared" = yes || enable_static=yes
15686 { echo "$as_me:$LINENO: result: $enable_static" >&5
15687 echo "${ECHO_T}$enable_static" >&6; }
15692 lt_prog_compiler_wl_F77=
15693 lt_prog_compiler_pic_F77=
15694 lt_prog_compiler_static_F77=
15696 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15699 if test "$GCC" = yes; then
15700 lt_prog_compiler_wl_F77='-Wl,'
15701 lt_prog_compiler_static_F77='-static'
15705 # All AIX code is PIC.
15706 if test "$host_cpu" = ia64; then
15707 # AIX 5 now supports IA64 processor
15708 lt_prog_compiler_static_F77='-Bstatic'
15713 # FIXME: we need at least 68020 code to build shared libraries, but
15714 # adding the `-m68020' flag to GCC prevents building anything better,
15716 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15719 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15720 # PIC is the default for these OSes.
15723 mingw* | pw32* | os2*)
15724 # This hack is so that the source file can tell whether it is being
15725 # built for inclusion in a dll (and should export symbols for example).
15726 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15729 darwin* | rhapsody*)
15730 # PIC is the default on this platform
15731 # Common symbols not allowed in MH_DYLIB files
15732 lt_prog_compiler_pic_F77='-fno-common'
15736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15737 # Instead, we relocate shared libraries at runtime.
15741 # Just because we use GCC doesn't mean we suddenly get shared libraries
15742 # on systems that don't support them.
15743 lt_prog_compiler_can_build_shared_F77=no
15748 if test -d /usr/nec; then
15749 lt_prog_compiler_pic_F77=-Kconform_pic
15754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15755 # not for PA HP-UX.
15761 lt_prog_compiler_pic_F77='-fPIC'
15767 lt_prog_compiler_pic_F77='-fPIC'
15771 # PORTME Check for flag to pass linker flags through the system compiler.
15774 lt_prog_compiler_wl_F77='-Wl,'
15775 if test "$host_cpu" = ia64; then
15776 # AIX 5 now supports IA64 processor
15777 lt_prog_compiler_static_F77='-Bstatic'
15779 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15783 # PIC is the default on this platform
15784 # Common symbols not allowed in MH_DYLIB files
15785 case $cc_basename in
15787 lt_prog_compiler_pic_F77='-qnocommon'
15788 lt_prog_compiler_wl_F77='-Wl,'
15793 mingw* | pw32* | os2*)
15794 # This hack is so that the source file can tell whether it is being
15795 # built for inclusion in a dll (and should export symbols for example).
15796 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15799 hpux9* | hpux10* | hpux11*)
15800 lt_prog_compiler_wl_F77='-Wl,'
15801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15802 # not for PA HP-UX.
15808 lt_prog_compiler_pic_F77='+Z'
15811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15812 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15815 irix5* | irix6* | nonstopux*)
15816 lt_prog_compiler_wl_F77='-Wl,'
15817 # PIC (with -KPIC) is the default.
15818 lt_prog_compiler_static_F77='-non_shared'
15822 lt_prog_compiler_pic_F77='-KPIC'
15823 lt_prog_compiler_static_F77='-Bstatic'
15827 case $cc_basename in
15829 lt_prog_compiler_wl_F77='-Wl,'
15830 lt_prog_compiler_pic_F77='-KPIC'
15831 lt_prog_compiler_static_F77='-static'
15833 pgcc* | pgf77* | pgf90* | pgf95*)
15834 # Portland Group compilers (*not* the Pentium gcc compiler,
15835 # which looks to be a dead project)
15836 lt_prog_compiler_wl_F77='-Wl,'
15837 lt_prog_compiler_pic_F77='-fpic'
15838 lt_prog_compiler_static_F77='-Bstatic'
15841 lt_prog_compiler_wl_F77='-Wl,'
15842 # All Alpha code is PIC.
15843 lt_prog_compiler_static_F77='-non_shared'
15848 osf3* | osf4* | osf5*)
15849 lt_prog_compiler_wl_F77='-Wl,'
15850 # All OSF/1 code is PIC.
15851 lt_prog_compiler_static_F77='-non_shared'
15855 lt_prog_compiler_pic_F77='-KPIC'
15856 lt_prog_compiler_static_F77='-Bstatic'
15857 case $cc_basename in
15858 f77* | f90* | f95*)
15859 lt_prog_compiler_wl_F77='-Qoption ld ';;
15861 lt_prog_compiler_wl_F77='-Wl,';;
15866 lt_prog_compiler_wl_F77='-Qoption ld '
15867 lt_prog_compiler_pic_F77='-PIC'
15868 lt_prog_compiler_static_F77='-Bstatic'
15871 sysv4 | sysv4.2uw2* | sysv4.3*)
15872 lt_prog_compiler_wl_F77='-Wl,'
15873 lt_prog_compiler_pic_F77='-KPIC'
15874 lt_prog_compiler_static_F77='-Bstatic'
15878 if test -d /usr/nec ;then
15879 lt_prog_compiler_pic_F77='-Kconform_pic'
15880 lt_prog_compiler_static_F77='-Bstatic'
15884 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15885 lt_prog_compiler_wl_F77='-Wl,'
15886 lt_prog_compiler_pic_F77='-KPIC'
15887 lt_prog_compiler_static_F77='-Bstatic'
15891 lt_prog_compiler_wl_F77='-Wl,'
15892 lt_prog_compiler_can_build_shared_F77=no
15896 lt_prog_compiler_pic_F77='-pic'
15897 lt_prog_compiler_static_F77='-Bstatic'
15901 lt_prog_compiler_can_build_shared_F77=no
15906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15907 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15910 # Check to make sure the PIC flag actually works.
15912 if test -n "$lt_prog_compiler_pic_F77"; then
15914 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15916 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 lt_prog_compiler_pic_works_F77=no
15920 ac_outfile=conftest.$ac_objext
15921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15922 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15923 # Insert the option either (1) after the last *FLAGS variable, or
15924 # (2) before a word containing "conftest.", or (3) at the end.
15925 # Note that $ac_compile itself does not contain backslashes and begins
15926 # with a dollar sign (not a hyphen), so the echo should work correctly.
15927 # The option is referenced via a variable to avoid confusing sed.
15928 lt_compile=`echo "$ac_compile" | $SED \
15929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931 -e 's:$: $lt_compiler_flag:'`
15932 (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
15933 (eval "$lt_compile" 2>conftest.err)
15935 cat conftest.err >&5
15936 echo "$as_me:15936: \$? = $ac_status" >&5
15937 if (exit $ac_status) && test -s "$ac_outfile"; then
15938 # The compiler can only warn and ignore the option if not recognized
15939 # So say no if there are warnings other than the usual output.
15940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15943 lt_prog_compiler_pic_works_F77=yes
15949 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15950 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15952 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15953 case $lt_prog_compiler_pic_F77 in
15955 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15958 lt_prog_compiler_pic_F77=
15959 lt_prog_compiler_can_build_shared_F77=no
15964 # For platforms which do not support PIC, -DPIC is meaningless:
15966 lt_prog_compiler_pic_F77=
15969 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15974 # Check to make sure the static flag actually works.
15976 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15977 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15978 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15979 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 lt_prog_compiler_static_works_F77=no
15983 save_LDFLAGS="$LDFLAGS"
15984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15985 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15987 # The linker can only warn and ignore the option if not recognized
15988 # So say no if there are warnings
15989 if test -s conftest.err; then
15990 # Append any errors to the config.log.
15991 cat conftest.err 1>&5
15992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15994 if diff conftest.exp conftest.er2 >/dev/null; then
15995 lt_prog_compiler_static_works_F77=yes
15998 lt_prog_compiler_static_works_F77=yes
16002 LDFLAGS="$save_LDFLAGS"
16005 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16006 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16008 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16011 lt_prog_compiler_static_F77=
16015 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16017 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 lt_cv_prog_compiler_c_o_F77=no
16021 $rm -r conftest 2>/dev/null
16025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16027 lt_compiler_flag="-o out/conftest2.$ac_objext"
16028 # Insert the option either (1) after the last *FLAGS variable, or
16029 # (2) before a word containing "conftest.", or (3) at the end.
16030 # Note that $ac_compile itself does not contain backslashes and begins
16031 # with a dollar sign (not a hyphen), so the echo should work correctly.
16032 lt_compile=`echo "$ac_compile" | $SED \
16033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16035 -e 's:$: $lt_compiler_flag:'`
16036 (eval echo "\"\$as_me:16036: $lt_compile\"" >&5)
16037 (eval "$lt_compile" 2>out/conftest.err)
16039 cat out/conftest.err >&5
16040 echo "$as_me:16040: \$? = $ac_status" >&5
16041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16043 # The compiler can only warn and ignore the option if not recognized
16044 # So say no if there are warnings
16045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16048 lt_cv_prog_compiler_c_o_F77=yes
16053 # SGI C++ compiler will create directory out/ii_files/ for
16054 # template instantiation
16055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16056 $rm out/* && rmdir out
16062 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16066 hard_links="nottested"
16067 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16068 # do not overwrite the value of need_locks provided by the user
16069 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16075 ln conftest.a conftest.b 2>&5 || hard_links=no
16076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16077 { echo "$as_me:$LINENO: result: $hard_links" >&5
16078 echo "${ECHO_T}$hard_links" >&6; }
16079 if test "$hard_links" = no; then
16080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16088 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16092 allow_undefined_flag_F77=
16093 enable_shared_with_static_runtimes_F77=no
16095 archive_expsym_cmds_F77=
16096 old_archive_From_new_cmds_F77=
16097 old_archive_from_expsyms_cmds_F77=
16098 export_dynamic_flag_spec_F77=
16099 whole_archive_flag_spec_F77=
16100 thread_safe_flag_spec_F77=
16101 hardcode_libdir_flag_spec_F77=
16102 hardcode_libdir_flag_spec_ld_F77=
16103 hardcode_libdir_separator_F77=
16104 hardcode_direct_F77=no
16105 hardcode_minus_L_F77=no
16106 hardcode_shlibpath_var_F77=unsupported
16107 link_all_deplibs_F77=unknown
16108 hardcode_automatic_F77=no
16110 module_expsym_cmds_F77=
16111 always_export_symbols_F77=no
16112 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16113 # include_expsyms should be a list of space-separated symbols to be *always*
16114 # included in the symbol list
16115 include_expsyms_F77=
16116 # exclude_expsyms can be an extended regexp of symbols to exclude
16117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16119 # as well as any symbol that contains `d'.
16120 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16122 # platforms (ab)use it in PIC code, but their linkers get confused if
16123 # the symbol is explicitly referenced. Since portable code cannot
16124 # rely on this symbol name, it's probably fine to never include it in
16125 # preloaded symbol tables.
16126 extract_expsyms_cmds=
16127 # Just being paranoid about ensuring that cc_basename is set.
16128 for cc_temp in $compiler""; do
16130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16139 cygwin* | mingw* | pw32*)
16140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16141 # When not using gcc, we currently assume that we are using
16142 # Microsoft Visual C++.
16143 if test "$GCC" != yes; then
16148 # we just hope/assume this is gcc and not c89 (= MSVC++)
16157 if test "$with_gnu_ld" = yes; then
16158 # If archive_cmds runs LD, not CC, wlarc should be empty
16161 # Set some defaults for GNU ld with shared library support. These
16162 # are reset later if shared libraries are not supported. Putting them
16163 # here allows them to be overridden if necessary.
16164 runpath_var=LD_RUN_PATH
16165 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16166 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16167 # ancient GNU ld didn't support --whole-archive et. al.
16168 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16169 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16171 whole_archive_flag_spec_F77=
16173 supports_anon_versioning=no
16174 case `$LD -v 2>/dev/null` in
16175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16178 *\ 2.11.*) ;; # other 2.11 versions
16179 *) supports_anon_versioning=yes ;;
16182 # See if GNU ld supports shared libraries.
16184 aix3* | aix4* | aix5*)
16185 # On AIX/PPC, the GNU linker is very broken
16186 if test "$host_cpu" != ia64; then
16190 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16191 *** to be unable to reliably create shared libraries on AIX.
16192 *** Therefore, libtool is disabling shared libraries support. If you
16193 *** really care for shared libraries, you may want to modify your PATH
16194 *** so that a non-GNU linker is found, and then restart.
16201 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)'
16202 hardcode_libdir_flag_spec_F77='-L$libdir'
16203 hardcode_minus_L_F77=yes
16205 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16206 # that the semantics of dynamic libraries on AmigaOS, at least up
16207 # to version 4, is to share data among multiple programs linked
16208 # with the same dynamic library. Since this doesn't match the
16209 # behavior of shared libraries on other platforms, we can't use
16215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16216 allow_undefined_flag_F77=unsupported
16217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16218 # support --undefined. This deserves some investigation. FIXME
16219 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16225 cygwin* | mingw* | pw32*)
16226 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16227 # as there is no search path for DLLs.
16228 hardcode_libdir_flag_spec_F77='-L$libdir'
16229 allow_undefined_flag_F77=unsupported
16230 always_export_symbols_F77=no
16231 enable_shared_with_static_runtimes_F77=yes
16232 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16234 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16235 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16236 # If the export-symbols file already is a .def file (1st line
16237 # is EXPORTS), use it as is; otherwise, prepend...
16238 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16239 cp $export_symbols $output_objdir/$soname.def;
16241 echo EXPORTS > $output_objdir/$soname.def;
16242 cat $export_symbols >> $output_objdir/$soname.def;
16244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16251 hardcode_direct_F77=no
16252 hardcode_shlibpath_var_F77=no
16253 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16254 export_dynamic_flag_spec_F77='${wl}-E'
16255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16256 # Instead, shared libraries are loaded at an image base (0x10000000 by
16257 # default) and relocated if they conflict, which is a slow very memory
16258 # consuming and fragmenting process. To avoid this, we pick a random,
16259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16261 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'
16262 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'
16266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16268 case $cc_basename,$host_cpu in
16269 pgcc*) # Portland Group C compiler
16270 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'
16271 tmp_addflag=' $pic_flag'
16273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16274 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'
16275 tmp_addflag=' $pic_flag -Mnomain' ;;
16276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16277 tmp_addflag=' -i_dynamic' ;;
16278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16279 tmp_addflag=' -i_dynamic -nofor_main' ;;
16280 ifc* | ifort*) # Intel Fortran compiler
16281 tmp_addflag=' -nofor_main' ;;
16283 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16285 if test $supports_anon_versioning = yes; then
16286 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16288 $echo "local: *; };" >> $output_objdir/$libname.ver~
16289 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16298 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16307 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16312 *** create shared libraries on Solaris systems. Therefore, libtool
16313 *** is disabling shared libraries support. We urge you to upgrade GNU
16314 *** binutils to release 2.9.1 or newer. Another option is to modify
16315 *** your PATH or compiler configuration so that the native linker is
16316 *** used, and then restart.
16319 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16328 case `$LD -v 2>&1` in
16329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16334 *** reliably create shared libraries on SCO systems. Therefore, libtool
16335 *** is disabling shared libraries support. We urge you to upgrade GNU
16336 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16337 *** your PATH or compiler configuration so that the native linker is
16338 *** used, and then restart.
16343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16344 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16355 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_direct_F77=yes
16358 hardcode_shlibpath_var_F77=no
16362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16371 if test "$ld_shlibs_F77" = no; then
16373 hardcode_libdir_flag_spec_F77=
16374 export_dynamic_flag_spec_F77=
16375 whole_archive_flag_spec_F77=
16378 # PORTME fill in a description of your system's linker (not GNU ld)
16381 allow_undefined_flag_F77=unsupported
16382 always_export_symbols_F77=yes
16383 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'
16384 # Note: this linker hardcodes the directories in LIBPATH if there
16385 # are no directories specified by -L.
16386 hardcode_minus_L_F77=yes
16387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16388 # Neither direct hardcoding nor static linking is supported with a
16390 hardcode_direct_F77=unsupported
16395 if test "$host_cpu" = ia64; then
16396 # On IA64, the linker does run time linking by default, so we don't
16397 # have to do anything special.
16398 aix_use_runtimelinking=no
16399 exp_sym_flag='-Bexport'
16402 # If we're using GNU nm, then we don't want the "-C" option.
16403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16405 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'
16407 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'
16409 aix_use_runtimelinking=no
16411 # Test if we are trying to use run time linking or normal
16412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16413 # need to do runtime linking.
16414 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16415 for ld_flag in $LDFLAGS; do
16416 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16417 aix_use_runtimelinking=yes
16424 exp_sym_flag='-bexport'
16425 no_entry_flag='-bnoentry'
16428 # When large executables or shared objects are built, AIX ld can
16429 # have problems creating the table of contents. If linking a library
16430 # or program results in "error TOC overflow" add -mminimal-toc to
16431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16434 archive_cmds_F77=''
16435 hardcode_direct_F77=yes
16436 hardcode_libdir_separator_F77=':'
16437 link_all_deplibs_F77=yes
16439 if test "$GCC" = yes; then
16440 case $host_os in aix4.[012]|aix4.[012].*)
16441 # We only want to do this on AIX 4.2 and lower, the check
16442 # below for broken collect2 doesn't work under 4.3+
16443 collect2name=`${CC} -print-prog-name=collect2`
16444 if test -f "$collect2name" && \
16445 strings "$collect2name" | grep resolve_lib_name >/dev/null
16447 # We have reworked collect2
16448 hardcode_direct_F77=yes
16450 # We have old collect2
16451 hardcode_direct_F77=unsupported
16452 # It fails to find uninstalled libraries when the uninstalled
16453 # path is not listed in the libpath. Setting hardcode_minus_L
16454 # to unsupported forces relinking
16455 hardcode_minus_L_F77=yes
16456 hardcode_libdir_flag_spec_F77='-L$libdir'
16457 hardcode_libdir_separator_F77=
16461 shared_flag='-shared'
16462 if test "$aix_use_runtimelinking" = yes; then
16463 shared_flag="$shared_flag "'${wl}-G'
16467 if test "$host_cpu" = ia64; then
16468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16469 # chokes on -Wl,-G. The following line is correct:
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag='${wl}-G'
16475 shared_flag='${wl}-bM:SRE'
16480 # It seems that -bexpall does not export symbols beginning with
16481 # underscore (_), so it is better to generate a list of symbols to export.
16482 always_export_symbols_F77=yes
16483 if test "$aix_use_runtimelinking" = yes; then
16484 # Warning - without using the other runtime loading flags (-brtl),
16485 # -berok will link without error, but may produce a broken library.
16486 allow_undefined_flag_F77='-berok'
16487 # Determine the default libpath from the value encoded in an empty executable.
16488 cat >conftest.$ac_ext <<_ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_link") 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && {
16507 test -z "$ac_f77_werror_flag" ||
16508 test ! -s conftest.err
16509 } && test -s conftest$ac_exeext &&
16510 $as_test_x conftest$ac_exeext; then
16512 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16514 # Check for a 64-bit object if we didn't find anything.
16515 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16528 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16529 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"
16531 if test "$host_cpu" = ia64; then
16532 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16533 allow_undefined_flag_F77="-z nodefs"
16534 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"
16536 # Determine the default libpath from the value encoded in an empty executable.
16537 cat >conftest.$ac_ext <<_ACEOF
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_link") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && {
16556 test -z "$ac_f77_werror_flag" ||
16557 test ! -s conftest.err
16558 } && test -s conftest$ac_exeext &&
16559 $as_test_x conftest$ac_exeext; then
16561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16563 # Check for a 64-bit object if we didn't find anything.
16564 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574 conftest$ac_exeext conftest.$ac_ext
16575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16577 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16578 # Warning - without using the other run time loading flags,
16579 # -berok will link without error, but may produce a broken library.
16580 no_undefined_flag_F77=' ${wl}-bernotok'
16581 allow_undefined_flag_F77=' ${wl}-berok'
16582 # Exported symbols can be pulled into shared objects from archives
16583 whole_archive_flag_spec_F77='$convenience'
16584 archive_cmds_need_lc_F77=yes
16585 # This is similar to how AIX traditionally builds its shared libraries.
16586 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'
16592 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)'
16593 hardcode_libdir_flag_spec_F77='-L$libdir'
16594 hardcode_minus_L_F77=yes
16595 # see comment about different semantics on the GNU ld section
16600 export_dynamic_flag_spec_F77=-rdynamic
16603 cygwin* | mingw* | pw32*)
16604 # When not using gcc, we currently assume that we are using
16605 # Microsoft Visual C++.
16606 # hardcode_libdir_flag_spec is actually meaningless, as there is
16607 # no search path for DLLs.
16608 hardcode_libdir_flag_spec_F77=' '
16609 allow_undefined_flag_F77=unsupported
16610 # Tell ltmain to make .lib files, not .a files.
16612 # Tell ltmain to make .dll files, not .so files.
16614 # FIXME: Setting linknames here is a bad hack.
16615 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16616 # The linker will automatically build a .lib file if we build a DLL.
16617 old_archive_From_new_cmds_F77='true'
16618 # FIXME: Should let the user specify the lib program.
16619 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16620 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16621 enable_shared_with_static_runtimes_F77=yes
16624 darwin* | rhapsody*)
16626 rhapsody* | darwin1.[012])
16627 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16630 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16631 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16633 case ${MACOSX_DEPLOYMENT_TARGET} in
16635 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16638 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16644 archive_cmds_need_lc_F77=no
16645 hardcode_direct_F77=no
16646 hardcode_automatic_F77=yes
16647 hardcode_shlibpath_var_F77=unsupported
16648 whole_archive_flag_spec_F77=''
16649 link_all_deplibs_F77=yes
16650 if test "$GCC" = yes ; then
16651 output_verbose_link_cmd='echo'
16652 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16653 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16654 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16655 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16656 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}'
16658 case $cc_basename in
16660 output_verbose_link_cmd='echo'
16661 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16662 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16663 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16664 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16665 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}'
16675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_libdir_flag_spec_F77='-L$libdir'
16677 hardcode_shlibpath_var_F77=no
16684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16685 # support. Future versions do this automatically, but an explicit c++rt0.o
16686 # does not break anything, and helps significantly (at the cost of a little
16689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16690 hardcode_libdir_flag_spec_F77='-R$libdir'
16691 hardcode_direct_F77=yes
16692 hardcode_shlibpath_var_F77=no
16695 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_direct_F77=yes
16699 hardcode_minus_L_F77=yes
16700 hardcode_shlibpath_var_F77=no
16703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16704 freebsd* | kfreebsd*-gnu | dragonfly*)
16705 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16706 hardcode_libdir_flag_spec_F77='-R$libdir'
16707 hardcode_direct_F77=yes
16708 hardcode_shlibpath_var_F77=no
16712 if test "$GCC" = yes; then
16713 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'
16715 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'
16717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16718 hardcode_libdir_separator_F77=:
16719 hardcode_direct_F77=yes
16721 # hardcode_minus_L: Not really in the search PATH,
16722 # but as the default location of the library.
16723 hardcode_minus_L_F77=yes
16724 export_dynamic_flag_spec_F77='${wl}-E'
16728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16729 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16731 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16733 if test "$with_gnu_ld" = no; then
16734 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16735 hardcode_libdir_separator_F77=:
16737 hardcode_direct_F77=yes
16738 export_dynamic_flag_spec_F77='${wl}-E'
16740 # hardcode_minus_L: Not really in the search PATH,
16741 # but as the default location of the library.
16742 hardcode_minus_L_F77=yes
16747 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16750 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16753 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16756 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16762 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16765 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16772 if test "$with_gnu_ld" = no; then
16773 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16774 hardcode_libdir_separator_F77=:
16778 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16779 hardcode_direct_F77=no
16780 hardcode_shlibpath_var_F77=no
16783 hardcode_direct_F77=yes
16784 export_dynamic_flag_spec_F77='${wl}-E'
16786 # hardcode_minus_L: Not really in the search PATH,
16787 # but as the default location of the library.
16788 hardcode_minus_L_F77=yes
16794 irix5* | irix6* | nonstopux*)
16795 if test "$GCC" = yes; then
16796 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'
16798 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'
16799 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16802 hardcode_libdir_separator_F77=:
16803 link_all_deplibs_F77=yes
16807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16808 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16810 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16812 hardcode_libdir_flag_spec_F77='-R$libdir'
16813 hardcode_direct_F77=yes
16814 hardcode_shlibpath_var_F77=no
16818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16819 hardcode_direct_F77=yes
16820 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16821 hardcode_libdir_separator_F77=:
16822 hardcode_shlibpath_var_F77=no
16826 hardcode_direct_F77=yes
16827 hardcode_shlibpath_var_F77=no
16828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16829 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16830 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16831 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16832 export_dynamic_flag_spec_F77='${wl}-E'
16835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16836 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_libdir_flag_spec_F77='-R$libdir'
16840 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16841 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16848 hardcode_libdir_flag_spec_F77='-L$libdir'
16849 hardcode_minus_L_F77=yes
16850 allow_undefined_flag_F77=unsupported
16851 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'
16852 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16856 if test "$GCC" = yes; then
16857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16858 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'
16860 allow_undefined_flag_F77=' -expect_unresolved \*'
16861 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'
16863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16864 hardcode_libdir_separator_F77=:
16867 osf4* | osf5*) # as osf3* with the addition of -msym flag
16868 if test "$GCC" = yes; then
16869 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16870 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'
16871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16873 allow_undefined_flag_F77=' -expect_unresolved \*'
16874 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'
16875 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~
16876 $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'
16878 # Both c and cxx compiler support -rpath directly
16879 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16881 hardcode_libdir_separator_F77=:
16885 no_undefined_flag_F77=' -z text'
16886 if test "$GCC" = yes; then
16888 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16889 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16890 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16893 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16895 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16897 hardcode_libdir_flag_spec_F77='-R$libdir'
16898 hardcode_shlibpath_var_F77=no
16900 solaris2.[0-5] | solaris2.[0-5].*) ;;
16902 # The compiler driver will combine linker options so we
16903 # cannot just pass the convience library names through
16904 # without $wl, iff we do not link with $LD.
16905 # Luckily, gcc supports the same syntax we need for Sun Studio.
16906 # Supported since Solaris 2.6 (maybe 2.5.1?)
16909 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16911 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16914 link_all_deplibs_F77=yes
16918 if test "x$host_vendor" = xsequent; then
16919 # Use $CC to link under sequent, because it throws in some extra .o
16920 # files that make .init and .fini sections work.
16921 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16923 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16925 hardcode_libdir_flag_spec_F77='-L$libdir'
16926 hardcode_direct_F77=yes
16927 hardcode_minus_L_F77=yes
16928 hardcode_shlibpath_var_F77=no
16932 case $host_vendor in
16934 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935 hardcode_direct_F77=yes # is this really true???
16938 ## LD is ld it makes a PLAMLIB
16939 ## CC just makes a GrossModule.
16940 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16941 reload_cmds_F77='$CC -r -o $output$reload_objs'
16942 hardcode_direct_F77=no
16945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16946 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16949 runpath_var='LD_RUN_PATH'
16950 hardcode_shlibpath_var_F77=no
16954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955 hardcode_shlibpath_var_F77=no
16956 export_dynamic_flag_spec_F77='-Bexport'
16960 if test -d /usr/nec; then
16961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16962 hardcode_shlibpath_var_F77=no
16963 runpath_var=LD_RUN_PATH
16964 hardcode_runpath_var=yes
16969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16970 no_undefined_flag_F77='${wl}-z,text'
16971 archive_cmds_need_lc_F77=no
16972 hardcode_shlibpath_var_F77=no
16973 runpath_var='LD_RUN_PATH'
16975 if test "$GCC" = yes; then
16976 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 sysv5* | sco3.2v5* | sco5v6*)
16985 # Note: We can NOT use -z defs as we might desire, because we do not
16986 # link with -lc, and that would cause any symbols used from libc to
16987 # always be unresolved, which means just about no library would
16988 # ever link correctly. If we're not using GNU ld we use -z text
16989 # though, which does catch some bad symbols but isn't as heavy-handed
16991 no_undefined_flag_F77='${wl}-z,text'
16992 allow_undefined_flag_F77='${wl}-z,nodefs'
16993 archive_cmds_need_lc_F77=no
16994 hardcode_shlibpath_var_F77=no
16995 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16996 hardcode_libdir_separator_F77=':'
16997 link_all_deplibs_F77=yes
16998 export_dynamic_flag_spec_F77='${wl}-Bexport'
16999 runpath_var='LD_RUN_PATH'
17001 if test "$GCC" = yes; then
17002 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17003 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17011 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17012 hardcode_libdir_flag_spec_F77='-L$libdir'
17013 hardcode_shlibpath_var_F77=no
17022 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17023 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17024 test "$ld_shlibs_F77" = no && can_build_shared=no
17027 # Do we need to explicitly link libc?
17029 case "x$archive_cmds_need_lc_F77" in
17031 # Assume -lc should be added
17032 archive_cmds_need_lc_F77=yes
17034 if test "$enable_shared" = yes && test "$GCC" = yes; then
17035 case $archive_cmds_F77 in
17037 # FIXME: we may have to deal with multi-command sequences.
17040 # Test whether the compiler implicitly links with -lc since on some
17041 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17042 # to ld, don't add -lc before -lgcc.
17043 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17044 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17049 (eval $ac_compile) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } 2>conftest.err; then
17055 libobjs=conftest.$ac_objext
17057 wl=$lt_prog_compiler_wl_F77
17058 pic_flag=$lt_prog_compiler_pic_F77
17064 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17065 allow_undefined_flag_F77=
17066 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17067 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }
17072 archive_cmds_need_lc_F77=no
17074 archive_cmds_need_lc_F77=yes
17076 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17078 cat conftest.err 1>&5
17081 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17082 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17089 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17090 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17091 library_names_spec=
17092 libname_spec='lib$name'
17096 postuninstall_cmds=
17100 shlibpath_overrides_runpath=unknown
17102 dynamic_linker="$host_os ld.so"
17103 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17104 if test "$GCC" = yes; then
17105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17106 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17107 # if the path contains ";" then we assume it to be the separator
17108 # otherwise default to the standard path separator (i.e. ":") - it is
17109 # assumed that no part of a normal pathname contains ";" but that should
17110 # okay in the real world where ";" in dirpaths is itself problematic.
17111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17116 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17118 need_lib_prefix=unknown
17119 hardcode_into_libs=no
17121 # when you set need_version to no, make sure it does not cause -set_version
17122 # flags to be left without arguments
17123 need_version=unknown
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17129 shlibpath_var=LIBPATH
17131 # AIX 3 has no versioning support, so we append a major version to the name.
17132 soname_spec='${libname}${release}${shared_ext}$major'
17139 hardcode_into_libs=yes
17140 if test "$host_cpu" = ia64; then
17141 # AIX 5 supports IA64
17142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17143 shlibpath_var=LD_LIBRARY_PATH
17145 # With GCC up to 2.95.x, collect2 would create an import file
17146 # for dependence libraries. The import file would start with
17147 # the line `#! .'. This would cause the generated library to
17148 # depend on `.', always an invalid library. This was fixed in
17149 # development snapshots of GCC prior to 3.0.
17151 aix4 | aix4.[01] | aix4.[01].*)
17152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17154 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17157 can_build_shared=no
17161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17162 # soname into executable. Probably we can add versioning support to
17163 # collect2, so additional links can be useful in future.
17164 if test "$aix_use_runtimelinking" = yes; then
17165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17166 # instead of lib<name>.a to let people know that these are not
17167 # typical AIX shared libraries.
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 # We preserve .a as extension for shared libraries through AIX4.2
17171 # and later when we are not doing run time linking.
17172 library_names_spec='${libname}${release}.a $libname.a'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17175 shlibpath_var=LIBPATH
17180 library_names_spec='$libname.ixlibrary $libname.a'
17181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17182 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'
17186 library_names_spec='${libname}${shared_ext}'
17187 dynamic_linker="$host_os ld.so"
17188 shlibpath_var=LIBRARY_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17200 # the default ld.so.conf also contains /usr/contrib/lib and
17201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17202 # libtool to hard-code these into programs
17205 cygwin* | mingw* | pw32*)
17206 version_type=windows
17211 case $GCC,$host_os in
17212 yes,cygwin* | yes,mingw* | yes,pw32*)
17213 library_names_spec='$libname.dll.a'
17214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17215 postinstall_cmds='base_file=`basename \${file}`~
17216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17217 dldir=$destdir/`dirname \$dlpath`~
17218 test -d \$dldir || mkdir -p \$dldir~
17219 $install_prog $dir/$dlname \$dldir/$dlname~
17220 chmod a+x \$dldir/$dlname'
17221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17222 dlpath=$dir/\$dldll~
17224 shlibpath_overrides_runpath=yes
17228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17233 # MinGW DLLs use traditional 'lib' prefix
17234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17235 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17236 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17237 # It is most probably a Windows format PATH printed by
17238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17239 # path with ; separators, and with drive letters. We can handle the
17240 # drive letters (cygwin fileutils understands them), so leave them,
17241 # especially as we might pass files found there to a mingw objdump,
17242 # which wouldn't understand a cygwinified path. Ahh.
17243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17249 # pw32 DLLs use 'pw' prefix rather than 'lib'
17250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17259 dynamic_linker='Win32 ld.exe'
17260 # FIXME: first we should search . and the directory the executable is in
17264 darwin* | rhapsody*)
17265 dynamic_linker="$host_os dyld"
17266 version_type=darwin
17269 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17270 soname_spec='${libname}${release}${major}$shared_ext'
17271 shlibpath_overrides_runpath=yes
17272 shlibpath_var=DYLD_LIBRARY_PATH
17273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17274 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17275 if test "$GCC" = yes; then
17276 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17278 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath=no
17304 hardcode_into_libs=yes
17305 dynamic_linker='GNU ld.so'
17308 freebsd* | dragonfly*)
17309 # DragonFly does not have aout. When/if they implement a new
17310 # versioning mechanism, adjust this.
17311 if test -x /usr/bin/objformat; then
17312 objformat=`/usr/bin/objformat`
17315 freebsd[123]*) objformat=aout ;;
17316 *) objformat=elf ;;
17319 version_type=freebsd-$objformat
17320 case $version_type in
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17331 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes
17336 freebsd3.[01]* | freebsdelf3.[01]*)
17337 shlibpath_overrides_runpath=yes
17338 hardcode_into_libs=yes
17340 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17341 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17342 shlibpath_overrides_runpath=no
17343 hardcode_into_libs=yes
17345 freebsd*) # from 4.6 on
17346 shlibpath_overrides_runpath=yes
17347 hardcode_into_libs=yes
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 hardcode_into_libs=yes
17362 hpux9* | hpux10* | hpux11*)
17363 # Give a soname corresponding to the major version so that dld.sl refuses to
17364 # link against other versions.
17371 hardcode_into_libs=yes
17372 dynamic_linker="$host_os dld.so"
17373 shlibpath_var=LD_LIBRARY_PATH
17374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 if test "X$HPUX_IA64_MODE" = X32; then
17378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17380 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17386 hardcode_into_libs=yes
17387 dynamic_linker="$host_os dld.sl"
17388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17397 dynamic_linker="$host_os dld.sl"
17398 shlibpath_var=SHLIB_PATH
17399 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17404 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17405 postinstall_cmds='chmod 555 $lib'
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 shlibpath_overrides_runpath=no
17417 hardcode_into_libs=yes
17420 irix5* | irix6* | nonstopux*)
17422 nonstopux*) version_type=nonstopux ;;
17424 if test "$lt_cv_prog_gnu_ld" = yes; then
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17435 irix5* | nonstopux*)
17436 libsuff= shlibsuff=
17439 case $LD in # libtool.m4 will add one of these switches to LD
17440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17441 libsuff= shlibsuff= libmagic=32-bit;;
17442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17443 libsuff=32 shlibsuff=N32 libmagic=N32;;
17444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17446 *) libsuff= shlibsuff= libmagic=never-match;;
17450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17451 shlibpath_overrides_runpath=no
17452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17454 hardcode_into_libs=yes
17457 # No shared lib support for Linux oldld, aout, or coff.
17458 linux*oldld* | linux*aout* | linux*coff*)
17462 # This must be Linux ELF.
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=no
17472 # This implies no fast_install, which is unacceptable.
17473 # Some rework will be needed to allow for fast_install
17474 # before this can be enabled.
17475 hardcode_into_libs=yes
17477 # Append ld.so.conf contents to the search path
17478 if test -f /etc/ld.so.conf; then
17479 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17480 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17483 # We used to test for /lib/ld.so.1 and disable shared libraries on
17484 # powerpc, because MkLinux only supported shared libraries with the
17485 # GNU dynamic linker. Since this was broken with cross compilers,
17486 # most powerpc-linux boxes support dynamic linking these days and
17487 # people can always --disable-shared, the test was removed, and we
17488 # assume the GNU/Linux dynamic linker is in use.
17489 dynamic_linker='GNU/Linux ld.so'
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 shlibpath_overrides_runpath=no
17500 hardcode_into_libs=yes
17501 dynamic_linker='GNU ld.so'
17508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17511 dynamic_linker='NetBSD (a.out) ld.so'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 dynamic_linker='NetBSD ld.elf_so'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17519 hardcode_into_libs=yes
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=yes
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 shlibpath_overrides_runpath=yes
17541 sys_lib_dlsearch_path_spec="/usr/lib"
17543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17546 *) need_version=no ;;
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17553 openbsd2.[89] | openbsd2.[89].*)
17554 shlibpath_overrides_runpath=no
17557 shlibpath_overrides_runpath=yes
17561 shlibpath_overrides_runpath=yes
17566 libname_spec='$name'
17569 library_names_spec='$libname${shared_ext} $libname.a'
17570 dynamic_linker='OS/2 ld.exe'
17571 shlibpath_var=LIBPATH
17574 osf3* | osf4* | osf5*)
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 shlibpath_overrides_runpath=yes
17593 hardcode_into_libs=yes
17594 # ldd complains unless libraries are executable
17595 postinstall_cmds='chmod +x $lib'
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17602 shlibpath_var=LD_LIBRARY_PATH
17603 shlibpath_overrides_runpath=yes
17604 if test "$with_gnu_ld" = yes; then
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 case $host_vendor in
17617 shlibpath_overrides_runpath=no
17619 export_dynamic_flag_spec='${wl}-Blargedynsym'
17620 runpath_var=LD_RUN_PATH
17628 shlibpath_overrides_runpath=no
17629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17635 if test -d /usr/nec ;then
17637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17638 soname_spec='$libname${shared_ext}.$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17644 version_type=freebsd-elf
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 shlibpath_var=LD_LIBRARY_PATH
17650 hardcode_into_libs=yes
17651 if test "$with_gnu_ld" = yes; then
17652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17653 shlibpath_overrides_runpath=no
17655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17656 shlibpath_overrides_runpath=yes
17659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17663 sys_lib_dlsearch_path_spec='/usr/lib'
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17670 shlibpath_var=LD_LIBRARY_PATH
17677 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17678 echo "${ECHO_T}$dynamic_linker" >&6; }
17679 test "$dynamic_linker" = no && can_build_shared=no
17681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17682 if test "$GCC" = yes; then
17683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17686 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17688 hardcode_action_F77=
17689 if test -n "$hardcode_libdir_flag_spec_F77" || \
17690 test -n "$runpath_var_F77" || \
17691 test "X$hardcode_automatic_F77" = "Xyes" ; then
17693 # We can hardcode non-existant directories.
17694 if test "$hardcode_direct_F77" != no &&
17695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17696 # have to relink, otherwise we might link with an installed library
17697 # when we should be linking with a yet-to-be-installed one
17698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17699 test "$hardcode_minus_L_F77" != no; then
17700 # Linking always hardcodes the temporary library directory.
17701 hardcode_action_F77=relink
17703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17704 hardcode_action_F77=immediate
17707 # We cannot hardcode anything, or else we can only hardcode existing
17709 hardcode_action_F77=unsupported
17711 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17712 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17714 if test "$hardcode_action_F77" = relink; then
17715 # Fast installation is not supported
17716 enable_fast_install=no
17717 elif test "$shlibpath_overrides_runpath" = yes ||
17718 test "$enable_shared" = no; then
17719 # Fast installation is not necessary
17720 enable_fast_install=needless
17724 # The else clause should only fire when bootstrapping the
17725 # libtool distribution, otherwise you forgot to ship ltmain.sh
17726 # with your package, and you will get complaints that there are
17727 # no rules to generate ltmain.sh.
17728 if test -f "$ltmain"; then
17729 # See if we are running on zsh, and set the options which allow our commands through
17730 # without removal of \ escapes.
17731 if test -n "${ZSH_VERSION+set}" ; then
17732 setopt NO_GLOB_SUBST
17734 # Now quote all the things that may contain metacharacters while being
17735 # careful not to overquote the AC_SUBSTed values. We take copies of the
17736 # variables and quote the copies for generation of the libtool script.
17737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17741 deplibs_check_method reload_flag reload_cmds need_locks \
17742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17743 lt_cv_sys_global_symbol_to_c_name_address \
17744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17745 old_postinstall_cmds old_postuninstall_cmds \
17749 lt_prog_compiler_wl_F77 \
17750 lt_prog_compiler_pic_F77 \
17751 lt_prog_compiler_static_F77 \
17752 lt_prog_compiler_no_builtin_flag_F77 \
17753 export_dynamic_flag_spec_F77 \
17754 thread_safe_flag_spec_F77 \
17755 whole_archive_flag_spec_F77 \
17756 enable_shared_with_static_runtimes_F77 \
17757 old_archive_cmds_F77 \
17758 old_archive_from_new_cmds_F77 \
17759 predep_objects_F77 \
17760 postdep_objects_F77 \
17763 compiler_lib_search_path_F77 \
17765 archive_expsym_cmds_F77 \
17766 postinstall_cmds_F77 \
17767 postuninstall_cmds_F77 \
17768 old_archive_from_expsyms_cmds_F77 \
17769 allow_undefined_flag_F77 \
17770 no_undefined_flag_F77 \
17771 export_symbols_cmds_F77 \
17772 hardcode_libdir_flag_spec_F77 \
17773 hardcode_libdir_flag_spec_ld_F77 \
17774 hardcode_libdir_separator_F77 \
17775 hardcode_automatic_F77 \
17777 module_expsym_cmds_F77 \
17778 lt_cv_prog_compiler_c_o_F77 \
17779 exclude_expsyms_F77 \
17780 include_expsyms_F77; do
17783 old_archive_cmds_F77 | \
17784 old_archive_from_new_cmds_F77 | \
17785 archive_cmds_F77 | \
17786 archive_expsym_cmds_F77 | \
17787 module_cmds_F77 | \
17788 module_expsym_cmds_F77 | \
17789 old_archive_from_expsyms_cmds_F77 | \
17790 export_symbols_cmds_F77 | \
17791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17792 postinstall_cmds | postuninstall_cmds | \
17793 old_postinstall_cmds | old_postuninstall_cmds | \
17794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17795 # Double-quote double-evaled strings.
17796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17805 *'\$0 --fallback-echo"')
17806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17812 cat <<__EOF__ >> "$cfgfile"
17813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17817 # Shell to use when invoking shell scripts.
17820 # Whether or not to build shared libraries.
17821 build_libtool_libs=$enable_shared
17823 # Whether or not to build static libraries.
17824 build_old_libs=$enable_static
17826 # Whether or not to add -lc for building shared libraries.
17827 build_libtool_need_lc=$archive_cmds_need_lc_F77
17829 # Whether or not to disallow shared libs when runtime libs are static
17830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17832 # Whether or not to optimize for fast installation.
17833 fast_install=$enable_fast_install
17836 host_alias=$host_alias
17840 # The build system.
17841 build_alias=$build_alias
17845 # An echo program that does not interpret backslashes.
17850 AR_FLAGS=$lt_AR_FLAGS
17855 # LTCC compiler flags.
17856 LTCFLAGS=$lt_LTCFLAGS
17858 # A language-specific compiler.
17859 CC=$lt_compiler_F77
17861 # Is the compiler the GNU C compiler?
17867 # The linker used to build libraries.
17870 # Whether we need hard or soft links.
17873 # A BSD-compatible nm program.
17876 # A symbol stripping program
17879 # Used to examine libraries when file_magic_cmd begins "file"
17880 MAGIC_CMD=$MAGIC_CMD
17882 # Used on cygwin: DLL creation program.
17885 # Used on cygwin: object dumper.
17888 # Used on cygwin: assembler.
17891 # The name of the directory that contains temporary libtool files.
17894 # How to create reloadable object files.
17895 reload_flag=$lt_reload_flag
17896 reload_cmds=$lt_reload_cmds
17898 # How to pass a linker flag through the compiler.
17899 wl=$lt_lt_prog_compiler_wl_F77
17901 # Object file suffix (normally "o").
17902 objext="$ac_objext"
17904 # Old archive suffix (normally "a").
17907 # Shared library suffix (normally ".so").
17908 shrext_cmds='$shrext_cmds'
17910 # Executable file suffix (normally "").
17913 # Additional compiler flags for building library objects.
17914 pic_flag=$lt_lt_prog_compiler_pic_F77
17917 # What is the maximum length of a command?
17918 max_cmd_len=$lt_cv_sys_max_cmd_len
17920 # Does compiler simultaneously support -c and -o options?
17921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17923 # Must we lock files when doing compilation?
17924 need_locks=$lt_need_locks
17926 # Do we need the lib prefix for modules?
17927 need_lib_prefix=$need_lib_prefix
17929 # Do we need a version for libraries?
17930 need_version=$need_version
17932 # Whether dlopen is supported.
17933 dlopen_support=$enable_dlopen
17935 # Whether dlopen of programs is supported.
17936 dlopen_self=$enable_dlopen_self
17938 # Whether dlopen of statically linked programs is supported.
17939 dlopen_self_static=$enable_dlopen_self_static
17941 # Compiler flag to prevent dynamic linking.
17942 link_static_flag=$lt_lt_prog_compiler_static_F77
17944 # Compiler flag to turn off builtin functions.
17945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17947 # Compiler flag to allow reflexive dlopens.
17948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17950 # Compiler flag to generate shared objects directly from archives.
17951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17953 # Compiler flag to generate thread-safe objects.
17954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17956 # Library versioning type.
17957 version_type=$version_type
17959 # Format of library name prefix.
17960 libname_spec=$lt_libname_spec
17962 # List of archive names. First name is the real one, the rest are links.
17963 # The last name is the one that the linker finds with -lNAME.
17964 library_names_spec=$lt_library_names_spec
17966 # The coded name of the library, if different from the real name.
17967 soname_spec=$lt_soname_spec
17969 # Commands used to build and install an old-style archive.
17971 old_archive_cmds=$lt_old_archive_cmds_F77
17972 old_postinstall_cmds=$lt_old_postinstall_cmds
17973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17975 # Create an old-style archive from a shared archive.
17976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17978 # Create a temporary old-style archive to link instead of a shared archive.
17979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17981 # Commands used to build and install a shared archive.
17982 archive_cmds=$lt_archive_cmds_F77
17983 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17984 postinstall_cmds=$lt_postinstall_cmds
17985 postuninstall_cmds=$lt_postuninstall_cmds
17987 # Commands used to build a loadable module (assumed same as above if empty)
17988 module_cmds=$lt_module_cmds_F77
17989 module_expsym_cmds=$lt_module_expsym_cmds_F77
17991 # Commands to strip libraries.
17992 old_striplib=$lt_old_striplib
17993 striplib=$lt_striplib
17995 # Dependencies to place before the objects being linked to create a
17997 predep_objects=$lt_predep_objects_F77
17999 # Dependencies to place after the objects being linked to create a
18001 postdep_objects=$lt_postdep_objects_F77
18003 # Dependencies to place before the objects being linked to create a
18005 predeps=$lt_predeps_F77
18007 # Dependencies to place after the objects being linked to create a
18009 postdeps=$lt_postdeps_F77
18011 # The library search path used internally by the compiler when linking
18012 # a shared library.
18013 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18015 # Method to check whether dependent libraries are shared objects.
18016 deplibs_check_method=$lt_deplibs_check_method
18018 # Command to use when deplibs_check_method == file_magic.
18019 file_magic_cmd=$lt_file_magic_cmd
18021 # Flag that allows shared libraries with undefined symbols to be built.
18022 allow_undefined_flag=$lt_allow_undefined_flag_F77
18024 # Flag that forces no undefined symbols.
18025 no_undefined_flag=$lt_no_undefined_flag_F77
18027 # Commands used to finish a libtool library installation in a directory.
18028 finish_cmds=$lt_finish_cmds
18030 # Same as above, but a single script fragment to be evaled but not shown.
18031 finish_eval=$lt_finish_eval
18033 # Take the output of nm and produce a listing of raw symbols and C names.
18034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18036 # Transform the output of nm in a proper C declaration
18037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18039 # Transform the output of nm in a C name address pair
18040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18042 # This is the shared library runtime path variable.
18043 runpath_var=$runpath_var
18045 # This is the shared library path variable.
18046 shlibpath_var=$shlibpath_var
18048 # Is shlibpath searched before the hard-coded library search path?
18049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18051 # How to hardcode a shared library path into an executable.
18052 hardcode_action=$hardcode_action_F77
18054 # Whether we should hardcode library paths into libraries.
18055 hardcode_into_libs=$hardcode_into_libs
18057 # Flag to hardcode \$libdir into a binary during linking.
18058 # This must work even if \$libdir does not exist.
18059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18061 # If ld is used when linking, flag to hardcode \$libdir into
18062 # a binary during linking. This must work even if \$libdir does
18064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18066 # Whether we need a single -rpath flag with a separated argument.
18067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18070 # resulting binary.
18071 hardcode_direct=$hardcode_direct_F77
18073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18074 # resulting binary.
18075 hardcode_minus_L=$hardcode_minus_L_F77
18077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18078 # the resulting binary.
18079 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18081 # Set to yes if building a shared library automatically hardcodes DIR into the library
18082 # and all subsequent libraries and executables linked against it.
18083 hardcode_automatic=$hardcode_automatic_F77
18085 # Variables whose values should be saved in libtool wrapper scripts and
18086 # restored at relink time.
18087 variables_saved_for_relink="$variables_saved_for_relink"
18089 # Whether libtool must link a program against all its dependency libraries.
18090 link_all_deplibs=$link_all_deplibs_F77
18092 # Compile-time system search path for libraries
18093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18095 # Run-time system search path for libraries
18096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18098 # Fix the shell variable \$srcfile for the compiler.
18099 fix_srcfile_path="$fix_srcfile_path_F77"
18101 # Set to yes if exported symbols are required.
18102 always_export_symbols=$always_export_symbols_F77
18104 # The commands to list exported symbols.
18105 export_symbols_cmds=$lt_export_symbols_cmds_F77
18107 # The commands to extract the exported symbol list from a shared archive.
18108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms_F77
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms_F77
18116 # ### END LIBTOOL TAG CONFIG: $tagname
18122 # If there is no Makefile yet, we rely on a make rule to execute
18123 # `config.status --recheck' to rerun these tests and create the
18124 # libtool script then.
18125 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18126 if test -f "$ltmain_in"; then
18127 test -f Makefile && make "$ltmain"
18133 ac_cpp='$CPP $CPPFLAGS'
18134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18146 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18149 # Source file extension for Java test sources.
18152 # Object file extension for compiled Java test sources.
18156 # Code to be used in simple compile tests
18157 lt_simple_compile_test_code="class foo {}\n"
18159 # Code to be used in simple link tests
18160 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18162 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18164 # If no C compiler was specified, use CC.
18167 # If no C compiler flags were specified, use CFLAGS.
18168 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18170 # Allow CC to be a program name with arguments.
18174 # save warnings/boilerplate of simple test code
18175 ac_outfile=conftest.$ac_objext
18176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178 _lt_compiler_boilerplate=`cat conftest.err`
18181 ac_outfile=conftest.$ac_objext
18182 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184 _lt_linker_boilerplate=`cat conftest.err`
18188 # Allow CC to be a program name with arguments.
18193 for cc_temp in $compiler""; do
18195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18201 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18204 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18205 archive_cmds_need_lc_GCJ=no
18207 old_archive_cmds_GCJ=$old_archive_cmds
18210 ## There is no encapsulation within the following macros, do not change
18211 ## the running order or otherwise move them around unless you know exactly
18212 ## what you are doing...
18214 lt_prog_compiler_no_builtin_flag_GCJ=
18216 if test "$GCC" = yes; then
18217 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18220 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18221 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18222 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 lt_cv_prog_compiler_rtti_exceptions=no
18226 ac_outfile=conftest.$ac_objext
18227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18228 lt_compiler_flag="-fno-rtti -fno-exceptions"
18229 # Insert the option either (1) after the last *FLAGS variable, or
18230 # (2) before a word containing "conftest.", or (3) at the end.
18231 # Note that $ac_compile itself does not contain backslashes and begins
18232 # with a dollar sign (not a hyphen), so the echo should work correctly.
18233 # The option is referenced via a variable to avoid confusing sed.
18234 lt_compile=`echo "$ac_compile" | $SED \
18235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18237 -e 's:$: $lt_compiler_flag:'`
18238 (eval echo "\"\$as_me:18238: $lt_compile\"" >&5)
18239 (eval "$lt_compile" 2>conftest.err)
18241 cat conftest.err >&5
18242 echo "$as_me:18242: \$? = $ac_status" >&5
18243 if (exit $ac_status) && test -s "$ac_outfile"; then
18244 # The compiler can only warn and ignore the option if not recognized
18245 # So say no if there are warnings other than the usual output.
18246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18249 lt_cv_prog_compiler_rtti_exceptions=yes
18255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18256 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18258 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18259 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18266 lt_prog_compiler_wl_GCJ=
18267 lt_prog_compiler_pic_GCJ=
18268 lt_prog_compiler_static_GCJ=
18270 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18271 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18273 if test "$GCC" = yes; then
18274 lt_prog_compiler_wl_GCJ='-Wl,'
18275 lt_prog_compiler_static_GCJ='-static'
18279 # All AIX code is PIC.
18280 if test "$host_cpu" = ia64; then
18281 # AIX 5 now supports IA64 processor
18282 lt_prog_compiler_static_GCJ='-Bstatic'
18287 # FIXME: we need at least 68020 code to build shared libraries, but
18288 # adding the `-m68020' flag to GCC prevents building anything better,
18290 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18293 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18294 # PIC is the default for these OSes.
18297 mingw* | pw32* | os2*)
18298 # This hack is so that the source file can tell whether it is being
18299 # built for inclusion in a dll (and should export symbols for example).
18300 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18303 darwin* | rhapsody*)
18304 # PIC is the default on this platform
18305 # Common symbols not allowed in MH_DYLIB files
18306 lt_prog_compiler_pic_GCJ='-fno-common'
18310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18311 # Instead, we relocate shared libraries at runtime.
18315 # Just because we use GCC doesn't mean we suddenly get shared libraries
18316 # on systems that don't support them.
18317 lt_prog_compiler_can_build_shared_GCJ=no
18322 if test -d /usr/nec; then
18323 lt_prog_compiler_pic_GCJ=-Kconform_pic
18328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18329 # not for PA HP-UX.
18335 lt_prog_compiler_pic_GCJ='-fPIC'
18341 lt_prog_compiler_pic_GCJ='-fPIC'
18345 # PORTME Check for flag to pass linker flags through the system compiler.
18348 lt_prog_compiler_wl_GCJ='-Wl,'
18349 if test "$host_cpu" = ia64; then
18350 # AIX 5 now supports IA64 processor
18351 lt_prog_compiler_static_GCJ='-Bstatic'
18353 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18357 # PIC is the default on this platform
18358 # Common symbols not allowed in MH_DYLIB files
18359 case $cc_basename in
18361 lt_prog_compiler_pic_GCJ='-qnocommon'
18362 lt_prog_compiler_wl_GCJ='-Wl,'
18367 mingw* | pw32* | os2*)
18368 # This hack is so that the source file can tell whether it is being
18369 # built for inclusion in a dll (and should export symbols for example).
18370 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18373 hpux9* | hpux10* | hpux11*)
18374 lt_prog_compiler_wl_GCJ='-Wl,'
18375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18376 # not for PA HP-UX.
18382 lt_prog_compiler_pic_GCJ='+Z'
18385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18386 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18389 irix5* | irix6* | nonstopux*)
18390 lt_prog_compiler_wl_GCJ='-Wl,'
18391 # PIC (with -KPIC) is the default.
18392 lt_prog_compiler_static_GCJ='-non_shared'
18396 lt_prog_compiler_pic_GCJ='-KPIC'
18397 lt_prog_compiler_static_GCJ='-Bstatic'
18401 case $cc_basename in
18403 lt_prog_compiler_wl_GCJ='-Wl,'
18404 lt_prog_compiler_pic_GCJ='-KPIC'
18405 lt_prog_compiler_static_GCJ='-static'
18407 pgcc* | pgf77* | pgf90* | pgf95*)
18408 # Portland Group compilers (*not* the Pentium gcc compiler,
18409 # which looks to be a dead project)
18410 lt_prog_compiler_wl_GCJ='-Wl,'
18411 lt_prog_compiler_pic_GCJ='-fpic'
18412 lt_prog_compiler_static_GCJ='-Bstatic'
18415 lt_prog_compiler_wl_GCJ='-Wl,'
18416 # All Alpha code is PIC.
18417 lt_prog_compiler_static_GCJ='-non_shared'
18422 osf3* | osf4* | osf5*)
18423 lt_prog_compiler_wl_GCJ='-Wl,'
18424 # All OSF/1 code is PIC.
18425 lt_prog_compiler_static_GCJ='-non_shared'
18429 lt_prog_compiler_pic_GCJ='-KPIC'
18430 lt_prog_compiler_static_GCJ='-Bstatic'
18431 case $cc_basename in
18432 f77* | f90* | f95*)
18433 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18435 lt_prog_compiler_wl_GCJ='-Wl,';;
18440 lt_prog_compiler_wl_GCJ='-Qoption ld '
18441 lt_prog_compiler_pic_GCJ='-PIC'
18442 lt_prog_compiler_static_GCJ='-Bstatic'
18445 sysv4 | sysv4.2uw2* | sysv4.3*)
18446 lt_prog_compiler_wl_GCJ='-Wl,'
18447 lt_prog_compiler_pic_GCJ='-KPIC'
18448 lt_prog_compiler_static_GCJ='-Bstatic'
18452 if test -d /usr/nec ;then
18453 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18454 lt_prog_compiler_static_GCJ='-Bstatic'
18458 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18459 lt_prog_compiler_wl_GCJ='-Wl,'
18460 lt_prog_compiler_pic_GCJ='-KPIC'
18461 lt_prog_compiler_static_GCJ='-Bstatic'
18465 lt_prog_compiler_wl_GCJ='-Wl,'
18466 lt_prog_compiler_can_build_shared_GCJ=no
18470 lt_prog_compiler_pic_GCJ='-pic'
18471 lt_prog_compiler_static_GCJ='-Bstatic'
18475 lt_prog_compiler_can_build_shared_GCJ=no
18480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18481 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18484 # Check to make sure the PIC flag actually works.
18486 if test -n "$lt_prog_compiler_pic_GCJ"; then
18488 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18489 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18490 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 lt_prog_compiler_pic_works_GCJ=no
18494 ac_outfile=conftest.$ac_objext
18495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18496 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18497 # Insert the option either (1) after the last *FLAGS variable, or
18498 # (2) before a word containing "conftest.", or (3) at the end.
18499 # Note that $ac_compile itself does not contain backslashes and begins
18500 # with a dollar sign (not a hyphen), so the echo should work correctly.
18501 # The option is referenced via a variable to avoid confusing sed.
18502 lt_compile=`echo "$ac_compile" | $SED \
18503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18505 -e 's:$: $lt_compiler_flag:'`
18506 (eval echo "\"\$as_me:18506: $lt_compile\"" >&5)
18507 (eval "$lt_compile" 2>conftest.err)
18509 cat conftest.err >&5
18510 echo "$as_me:18510: \$? = $ac_status" >&5
18511 if (exit $ac_status) && test -s "$ac_outfile"; then
18512 # The compiler can only warn and ignore the option if not recognized
18513 # So say no if there are warnings other than the usual output.
18514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18517 lt_prog_compiler_pic_works_GCJ=yes
18523 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18524 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18526 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18527 case $lt_prog_compiler_pic_GCJ in
18529 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18532 lt_prog_compiler_pic_GCJ=
18533 lt_prog_compiler_can_build_shared_GCJ=no
18538 # For platforms which do not support PIC, -DPIC is meaningless:
18540 lt_prog_compiler_pic_GCJ=
18543 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18548 # Check to make sure the static flag actually works.
18550 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18551 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18552 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18553 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 lt_prog_compiler_static_works_GCJ=no
18557 save_LDFLAGS="$LDFLAGS"
18558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18559 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18561 # The linker can only warn and ignore the option if not recognized
18562 # So say no if there are warnings
18563 if test -s conftest.err; then
18564 # Append any errors to the config.log.
18565 cat conftest.err 1>&5
18566 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18568 if diff conftest.exp conftest.er2 >/dev/null; then
18569 lt_prog_compiler_static_works_GCJ=yes
18572 lt_prog_compiler_static_works_GCJ=yes
18576 LDFLAGS="$save_LDFLAGS"
18579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18580 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18582 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18585 lt_prog_compiler_static_GCJ=
18589 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18590 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18591 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 lt_cv_prog_compiler_c_o_GCJ=no
18595 $rm -r conftest 2>/dev/null
18599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18601 lt_compiler_flag="-o out/conftest2.$ac_objext"
18602 # Insert the option either (1) after the last *FLAGS variable, or
18603 # (2) before a word containing "conftest.", or (3) at the end.
18604 # Note that $ac_compile itself does not contain backslashes and begins
18605 # with a dollar sign (not a hyphen), so the echo should work correctly.
18606 lt_compile=`echo "$ac_compile" | $SED \
18607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18609 -e 's:$: $lt_compiler_flag:'`
18610 (eval echo "\"\$as_me:18610: $lt_compile\"" >&5)
18611 (eval "$lt_compile" 2>out/conftest.err)
18613 cat out/conftest.err >&5
18614 echo "$as_me:18614: \$? = $ac_status" >&5
18615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18617 # The compiler can only warn and ignore the option if not recognized
18618 # So say no if there are warnings
18619 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18622 lt_cv_prog_compiler_c_o_GCJ=yes
18627 # SGI C++ compiler will create directory out/ii_files/ for
18628 # template instantiation
18629 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18630 $rm out/* && rmdir out
18636 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18637 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18640 hard_links="nottested"
18641 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18642 # do not overwrite the value of need_locks provided by the user
18643 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18644 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18649 ln conftest.a conftest.b 2>&5 || hard_links=no
18650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18651 { echo "$as_me:$LINENO: result: $hard_links" >&5
18652 echo "${ECHO_T}$hard_links" >&6; }
18653 if test "$hard_links" = no; then
18654 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18655 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18662 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18666 allow_undefined_flag_GCJ=
18667 enable_shared_with_static_runtimes_GCJ=no
18669 archive_expsym_cmds_GCJ=
18670 old_archive_From_new_cmds_GCJ=
18671 old_archive_from_expsyms_cmds_GCJ=
18672 export_dynamic_flag_spec_GCJ=
18673 whole_archive_flag_spec_GCJ=
18674 thread_safe_flag_spec_GCJ=
18675 hardcode_libdir_flag_spec_GCJ=
18676 hardcode_libdir_flag_spec_ld_GCJ=
18677 hardcode_libdir_separator_GCJ=
18678 hardcode_direct_GCJ=no
18679 hardcode_minus_L_GCJ=no
18680 hardcode_shlibpath_var_GCJ=unsupported
18681 link_all_deplibs_GCJ=unknown
18682 hardcode_automatic_GCJ=no
18684 module_expsym_cmds_GCJ=
18685 always_export_symbols_GCJ=no
18686 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18687 # include_expsyms should be a list of space-separated symbols to be *always*
18688 # included in the symbol list
18689 include_expsyms_GCJ=
18690 # exclude_expsyms can be an extended regexp of symbols to exclude
18691 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18692 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18693 # as well as any symbol that contains `d'.
18694 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18695 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18696 # platforms (ab)use it in PIC code, but their linkers get confused if
18697 # the symbol is explicitly referenced. Since portable code cannot
18698 # rely on this symbol name, it's probably fine to never include it in
18699 # preloaded symbol tables.
18700 extract_expsyms_cmds=
18701 # Just being paranoid about ensuring that cc_basename is set.
18702 for cc_temp in $compiler""; do
18704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18710 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18713 cygwin* | mingw* | pw32*)
18714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18715 # When not using gcc, we currently assume that we are using
18716 # Microsoft Visual C++.
18717 if test "$GCC" != yes; then
18722 # we just hope/assume this is gcc and not c89 (= MSVC++)
18731 if test "$with_gnu_ld" = yes; then
18732 # If archive_cmds runs LD, not CC, wlarc should be empty
18735 # Set some defaults for GNU ld with shared library support. These
18736 # are reset later if shared libraries are not supported. Putting them
18737 # here allows them to be overridden if necessary.
18738 runpath_var=LD_RUN_PATH
18739 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18740 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18741 # ancient GNU ld didn't support --whole-archive et. al.
18742 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18743 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18745 whole_archive_flag_spec_GCJ=
18747 supports_anon_versioning=no
18748 case `$LD -v 2>/dev/null` in
18749 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18752 *\ 2.11.*) ;; # other 2.11 versions
18753 *) supports_anon_versioning=yes ;;
18756 # See if GNU ld supports shared libraries.
18758 aix3* | aix4* | aix5*)
18759 # On AIX/PPC, the GNU linker is very broken
18760 if test "$host_cpu" != ia64; then
18764 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18765 *** to be unable to reliably create shared libraries on AIX.
18766 *** Therefore, libtool is disabling shared libraries support. If you
18767 *** really care for shared libraries, you may want to modify your PATH
18768 *** so that a non-GNU linker is found, and then restart.
18775 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)'
18776 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18777 hardcode_minus_L_GCJ=yes
18779 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18780 # that the semantics of dynamic libraries on AmigaOS, at least up
18781 # to version 4, is to share data among multiple programs linked
18782 # with the same dynamic library. Since this doesn't match the
18783 # behavior of shared libraries on other platforms, we can't use
18789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18790 allow_undefined_flag_GCJ=unsupported
18791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18792 # support --undefined. This deserves some investigation. FIXME
18793 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18799 cygwin* | mingw* | pw32*)
18800 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18801 # as there is no search path for DLLs.
18802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18803 allow_undefined_flag_GCJ=unsupported
18804 always_export_symbols_GCJ=no
18805 enable_shared_with_static_runtimes_GCJ=yes
18806 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18808 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18809 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18810 # If the export-symbols file already is a .def file (1st line
18811 # is EXPORTS), use it as is; otherwise, prepend...
18812 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18813 cp $export_symbols $output_objdir/$soname.def;
18815 echo EXPORTS > $output_objdir/$soname.def;
18816 cat $export_symbols >> $output_objdir/$soname.def;
18818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18825 hardcode_direct_GCJ=no
18826 hardcode_shlibpath_var_GCJ=no
18827 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18828 export_dynamic_flag_spec_GCJ='${wl}-E'
18829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18830 # Instead, shared libraries are loaded at an image base (0x10000000 by
18831 # default) and relocated if they conflict, which is a slow very memory
18832 # consuming and fragmenting process. To avoid this, we pick a random,
18833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18834 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18835 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'
18836 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'
18840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18842 case $cc_basename,$host_cpu in
18843 pgcc*) # Portland Group C compiler
18844 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'
18845 tmp_addflag=' $pic_flag'
18847 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18848 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'
18849 tmp_addflag=' $pic_flag -Mnomain' ;;
18850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18851 tmp_addflag=' -i_dynamic' ;;
18852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18853 tmp_addflag=' -i_dynamic -nofor_main' ;;
18854 ifc* | ifort*) # Intel Fortran compiler
18855 tmp_addflag=' -nofor_main' ;;
18857 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18859 if test $supports_anon_versioning = yes; then
18860 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18862 $echo "local: *; };" >> $output_objdir/$libname.ver~
18863 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18872 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18875 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18876 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18881 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18886 *** create shared libraries on Solaris systems. Therefore, libtool
18887 *** is disabling shared libraries support. We urge you to upgrade GNU
18888 *** binutils to release 2.9.1 or newer. Another option is to modify
18889 *** your PATH or compiler configuration so that the native linker is
18890 *** used, and then restart.
18893 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18902 case `$LD -v 2>&1` in
18903 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18907 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18908 *** reliably create shared libraries on SCO systems. Therefore, libtool
18909 *** is disabling shared libraries support. We urge you to upgrade GNU
18910 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18911 *** your PATH or compiler configuration so that the native linker is
18912 *** used, and then restart.
18917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18918 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18919 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18920 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18929 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18931 hardcode_direct_GCJ=yes
18932 hardcode_shlibpath_var_GCJ=no
18936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18937 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18945 if test "$ld_shlibs_GCJ" = no; then
18947 hardcode_libdir_flag_spec_GCJ=
18948 export_dynamic_flag_spec_GCJ=
18949 whole_archive_flag_spec_GCJ=
18952 # PORTME fill in a description of your system's linker (not GNU ld)
18955 allow_undefined_flag_GCJ=unsupported
18956 always_export_symbols_GCJ=yes
18957 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'
18958 # Note: this linker hardcodes the directories in LIBPATH if there
18959 # are no directories specified by -L.
18960 hardcode_minus_L_GCJ=yes
18961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18962 # Neither direct hardcoding nor static linking is supported with a
18964 hardcode_direct_GCJ=unsupported
18969 if test "$host_cpu" = ia64; then
18970 # On IA64, the linker does run time linking by default, so we don't
18971 # have to do anything special.
18972 aix_use_runtimelinking=no
18973 exp_sym_flag='-Bexport'
18976 # If we're using GNU nm, then we don't want the "-C" option.
18977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18979 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'
18981 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'
18983 aix_use_runtimelinking=no
18985 # Test if we are trying to use run time linking or normal
18986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18987 # need to do runtime linking.
18988 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18989 for ld_flag in $LDFLAGS; do
18990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18991 aix_use_runtimelinking=yes
18998 exp_sym_flag='-bexport'
18999 no_entry_flag='-bnoentry'
19002 # When large executables or shared objects are built, AIX ld can
19003 # have problems creating the table of contents. If linking a library
19004 # or program results in "error TOC overflow" add -mminimal-toc to
19005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19008 archive_cmds_GCJ=''
19009 hardcode_direct_GCJ=yes
19010 hardcode_libdir_separator_GCJ=':'
19011 link_all_deplibs_GCJ=yes
19013 if test "$GCC" = yes; then
19014 case $host_os in aix4.[012]|aix4.[012].*)
19015 # We only want to do this on AIX 4.2 and lower, the check
19016 # below for broken collect2 doesn't work under 4.3+
19017 collect2name=`${CC} -print-prog-name=collect2`
19018 if test -f "$collect2name" && \
19019 strings "$collect2name" | grep resolve_lib_name >/dev/null
19021 # We have reworked collect2
19022 hardcode_direct_GCJ=yes
19024 # We have old collect2
19025 hardcode_direct_GCJ=unsupported
19026 # It fails to find uninstalled libraries when the uninstalled
19027 # path is not listed in the libpath. Setting hardcode_minus_L
19028 # to unsupported forces relinking
19029 hardcode_minus_L_GCJ=yes
19030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19031 hardcode_libdir_separator_GCJ=
19035 shared_flag='-shared'
19036 if test "$aix_use_runtimelinking" = yes; then
19037 shared_flag="$shared_flag "'${wl}-G'
19041 if test "$host_cpu" = ia64; then
19042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19043 # chokes on -Wl,-G. The following line is correct:
19046 if test "$aix_use_runtimelinking" = yes; then
19047 shared_flag='${wl}-G'
19049 shared_flag='${wl}-bM:SRE'
19054 # It seems that -bexpall does not export symbols beginning with
19055 # underscore (_), so it is better to generate a list of symbols to export.
19056 always_export_symbols_GCJ=yes
19057 if test "$aix_use_runtimelinking" = yes; then
19058 # Warning - without using the other runtime loading flags (-brtl),
19059 # -berok will link without error, but may produce a broken library.
19060 allow_undefined_flag_GCJ='-berok'
19061 # Determine the default libpath from the value encoded in an empty executable.
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_link") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest$ac_exeext &&
19094 $as_test_x conftest$ac_exeext; then
19096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19098 # Check for a 64-bit object if we didn't find anything.
19099 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19112 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19113 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"
19115 if test "$host_cpu" = ia64; then
19116 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19117 allow_undefined_flag_GCJ="-z nodefs"
19118 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"
19120 # Determine the default libpath from the value encoded in an empty executable.
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext &&
19153 $as_test_x conftest$ac_exeext; then
19155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19157 # Check for a 64-bit object if we didn't find anything.
19158 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19168 conftest$ac_exeext conftest.$ac_ext
19169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19172 # Warning - without using the other run time loading flags,
19173 # -berok will link without error, but may produce a broken library.
19174 no_undefined_flag_GCJ=' ${wl}-bernotok'
19175 allow_undefined_flag_GCJ=' ${wl}-berok'
19176 # Exported symbols can be pulled into shared objects from archives
19177 whole_archive_flag_spec_GCJ='$convenience'
19178 archive_cmds_need_lc_GCJ=yes
19179 # This is similar to how AIX traditionally builds its shared libraries.
19180 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'
19186 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)'
19187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19188 hardcode_minus_L_GCJ=yes
19189 # see comment about different semantics on the GNU ld section
19194 export_dynamic_flag_spec_GCJ=-rdynamic
19197 cygwin* | mingw* | pw32*)
19198 # When not using gcc, we currently assume that we are using
19199 # Microsoft Visual C++.
19200 # hardcode_libdir_flag_spec is actually meaningless, as there is
19201 # no search path for DLLs.
19202 hardcode_libdir_flag_spec_GCJ=' '
19203 allow_undefined_flag_GCJ=unsupported
19204 # Tell ltmain to make .lib files, not .a files.
19206 # Tell ltmain to make .dll files, not .so files.
19208 # FIXME: Setting linknames here is a bad hack.
19209 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19210 # The linker will automatically build a .lib file if we build a DLL.
19211 old_archive_From_new_cmds_GCJ='true'
19212 # FIXME: Should let the user specify the lib program.
19213 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19214 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19215 enable_shared_with_static_runtimes_GCJ=yes
19218 darwin* | rhapsody*)
19220 rhapsody* | darwin1.[012])
19221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19225 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19227 case ${MACOSX_DEPLOYMENT_TARGET} in
19229 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19232 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19238 archive_cmds_need_lc_GCJ=no
19239 hardcode_direct_GCJ=no
19240 hardcode_automatic_GCJ=yes
19241 hardcode_shlibpath_var_GCJ=unsupported
19242 whole_archive_flag_spec_GCJ=''
19243 link_all_deplibs_GCJ=yes
19244 if test "$GCC" = yes ; then
19245 output_verbose_link_cmd='echo'
19246 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19247 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19249 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19250 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}'
19252 case $cc_basename in
19254 output_verbose_link_cmd='echo'
19255 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19256 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19258 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19259 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}'
19269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19271 hardcode_shlibpath_var_GCJ=no
19278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19279 # support. Future versions do this automatically, but an explicit c++rt0.o
19280 # does not break anything, and helps significantly (at the cost of a little
19283 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19285 hardcode_direct_GCJ=yes
19286 hardcode_shlibpath_var_GCJ=no
19289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19292 hardcode_direct_GCJ=yes
19293 hardcode_minus_L_GCJ=yes
19294 hardcode_shlibpath_var_GCJ=no
19297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19298 freebsd* | kfreebsd*-gnu | dragonfly*)
19299 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19301 hardcode_direct_GCJ=yes
19302 hardcode_shlibpath_var_GCJ=no
19306 if test "$GCC" = yes; then
19307 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'
19309 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'
19311 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19312 hardcode_libdir_separator_GCJ=:
19313 hardcode_direct_GCJ=yes
19315 # hardcode_minus_L: Not really in the search PATH,
19316 # but as the default location of the library.
19317 hardcode_minus_L_GCJ=yes
19318 export_dynamic_flag_spec_GCJ='${wl}-E'
19322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19323 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19325 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19327 if test "$with_gnu_ld" = no; then
19328 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19329 hardcode_libdir_separator_GCJ=:
19331 hardcode_direct_GCJ=yes
19332 export_dynamic_flag_spec_GCJ='${wl}-E'
19334 # hardcode_minus_L: Not really in the search PATH,
19335 # but as the default location of the library.
19336 hardcode_minus_L_GCJ=yes
19341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19344 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19347 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19350 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19356 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19362 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19366 if test "$with_gnu_ld" = no; then
19367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19368 hardcode_libdir_separator_GCJ=:
19372 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19373 hardcode_direct_GCJ=no
19374 hardcode_shlibpath_var_GCJ=no
19377 hardcode_direct_GCJ=yes
19378 export_dynamic_flag_spec_GCJ='${wl}-E'
19380 # hardcode_minus_L: Not really in the search PATH,
19381 # but as the default location of the library.
19382 hardcode_minus_L_GCJ=yes
19388 irix5* | irix6* | nonstopux*)
19389 if test "$GCC" = yes; then
19390 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'
19392 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'
19393 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19396 hardcode_libdir_separator_GCJ=:
19397 link_all_deplibs_GCJ=yes
19401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19404 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19407 hardcode_direct_GCJ=yes
19408 hardcode_shlibpath_var_GCJ=no
19412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19413 hardcode_direct_GCJ=yes
19414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19415 hardcode_libdir_separator_GCJ=:
19416 hardcode_shlibpath_var_GCJ=no
19420 hardcode_direct_GCJ=yes
19421 hardcode_shlibpath_var_GCJ=no
19422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19423 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19424 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19426 export_dynamic_flag_spec_GCJ='${wl}-E'
19429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19431 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19434 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19443 hardcode_minus_L_GCJ=yes
19444 allow_undefined_flag_GCJ=unsupported
19445 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'
19446 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19450 if test "$GCC" = yes; then
19451 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19452 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'
19454 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19455 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'
19457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_GCJ=:
19461 osf4* | osf5*) # as osf3* with the addition of -msym flag
19462 if test "$GCC" = yes; then
19463 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19464 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'
19465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19467 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19468 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'
19469 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~
19470 $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'
19472 # Both c and cxx compiler support -rpath directly
19473 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19475 hardcode_libdir_separator_GCJ=:
19479 no_undefined_flag_GCJ=' -z text'
19480 if test "$GCC" = yes; then
19482 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19483 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19487 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19488 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19491 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19492 hardcode_shlibpath_var_GCJ=no
19494 solaris2.[0-5] | solaris2.[0-5].*) ;;
19496 # The compiler driver will combine linker options so we
19497 # cannot just pass the convience library names through
19498 # without $wl, iff we do not link with $LD.
19499 # Luckily, gcc supports the same syntax we need for Sun Studio.
19500 # Supported since Solaris 2.6 (maybe 2.5.1?)
19503 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19505 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19508 link_all_deplibs_GCJ=yes
19512 if test "x$host_vendor" = xsequent; then
19513 # Use $CC to link under sequent, because it throws in some extra .o
19514 # files that make .init and .fini sections work.
19515 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19517 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19520 hardcode_direct_GCJ=yes
19521 hardcode_minus_L_GCJ=yes
19522 hardcode_shlibpath_var_GCJ=no
19526 case $host_vendor in
19528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529 hardcode_direct_GCJ=yes # is this really true???
19532 ## LD is ld it makes a PLAMLIB
19533 ## CC just makes a GrossModule.
19534 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19535 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19536 hardcode_direct_GCJ=no
19539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19540 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19543 runpath_var='LD_RUN_PATH'
19544 hardcode_shlibpath_var_GCJ=no
19548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_shlibpath_var_GCJ=no
19550 export_dynamic_flag_spec_GCJ='-Bexport'
19554 if test -d /usr/nec; then
19555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19556 hardcode_shlibpath_var_GCJ=no
19557 runpath_var=LD_RUN_PATH
19558 hardcode_runpath_var=yes
19563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19564 no_undefined_flag_GCJ='${wl}-z,text'
19565 archive_cmds_need_lc_GCJ=no
19566 hardcode_shlibpath_var_GCJ=no
19567 runpath_var='LD_RUN_PATH'
19569 if test "$GCC" = yes; then
19570 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19573 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19574 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19578 sysv5* | sco3.2v5* | sco5v6*)
19579 # Note: We can NOT use -z defs as we might desire, because we do not
19580 # link with -lc, and that would cause any symbols used from libc to
19581 # always be unresolved, which means just about no library would
19582 # ever link correctly. If we're not using GNU ld we use -z text
19583 # though, which does catch some bad symbols but isn't as heavy-handed
19585 no_undefined_flag_GCJ='${wl}-z,text'
19586 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19587 archive_cmds_need_lc_GCJ=no
19588 hardcode_shlibpath_var_GCJ=no
19589 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19590 hardcode_libdir_separator_GCJ=':'
19591 link_all_deplibs_GCJ=yes
19592 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19593 runpath_var='LD_RUN_PATH'
19595 if test "$GCC" = yes; then
19596 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19597 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19607 hardcode_shlibpath_var_GCJ=no
19616 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19617 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19618 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19621 # Do we need to explicitly link libc?
19623 case "x$archive_cmds_need_lc_GCJ" in
19625 # Assume -lc should be added
19626 archive_cmds_need_lc_GCJ=yes
19628 if test "$enable_shared" = yes && test "$GCC" = yes; then
19629 case $archive_cmds_GCJ in
19631 # FIXME: we may have to deal with multi-command sequences.
19634 # Test whether the compiler implicitly links with -lc since on some
19635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19636 # to ld, don't add -lc before -lgcc.
19637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } 2>conftest.err; then
19649 libobjs=conftest.$ac_objext
19651 wl=$lt_prog_compiler_wl_GCJ
19652 pic_flag=$lt_prog_compiler_pic_GCJ
19658 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19659 allow_undefined_flag_GCJ=
19660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19661 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }
19666 archive_cmds_need_lc_GCJ=no
19668 archive_cmds_need_lc_GCJ=yes
19670 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19672 cat conftest.err 1>&5
19675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19676 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19685 library_names_spec=
19686 libname_spec='lib$name'
19690 postuninstall_cmds=
19694 shlibpath_overrides_runpath=unknown
19696 dynamic_linker="$host_os ld.so"
19697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19698 if test "$GCC" = yes; then
19699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19701 # if the path contains ";" then we assume it to be the separator
19702 # otherwise default to the standard path separator (i.e. ":") - it is
19703 # assumed that no part of a normal pathname contains ";" but that should
19704 # okay in the real world where ";" in dirpaths is itself problematic.
19705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19712 need_lib_prefix=unknown
19713 hardcode_into_libs=no
19715 # when you set need_version to no, make sure it does not cause -set_version
19716 # flags to be left without arguments
19717 need_version=unknown
19722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19723 shlibpath_var=LIBPATH
19725 # AIX 3 has no versioning support, so we append a major version to the name.
19726 soname_spec='${libname}${release}${shared_ext}$major'
19733 hardcode_into_libs=yes
19734 if test "$host_cpu" = ia64; then
19735 # AIX 5 supports IA64
19736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19737 shlibpath_var=LD_LIBRARY_PATH
19739 # With GCC up to 2.95.x, collect2 would create an import file
19740 # for dependence libraries. The import file would start with
19741 # the line `#! .'. This would cause the generated library to
19742 # depend on `.', always an invalid library. This was fixed in
19743 # development snapshots of GCC prior to 3.0.
19745 aix4 | aix4.[01] | aix4.[01].*)
19746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19751 can_build_shared=no
19755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19756 # soname into executable. Probably we can add versioning support to
19757 # collect2, so additional links can be useful in future.
19758 if test "$aix_use_runtimelinking" = yes; then
19759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19760 # instead of lib<name>.a to let people know that these are not
19761 # typical AIX shared libraries.
19762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19764 # We preserve .a as extension for shared libraries through AIX4.2
19765 # and later when we are not doing run time linking.
19766 library_names_spec='${libname}${release}.a $libname.a'
19767 soname_spec='${libname}${release}${shared_ext}$major'
19769 shlibpath_var=LIBPATH
19774 library_names_spec='$libname.ixlibrary $libname.a'
19775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19776 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'
19780 library_names_spec='${libname}${shared_ext}'
19781 dynamic_linker="$host_os ld.so"
19782 shlibpath_var=LIBRARY_PATH
19788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19789 soname_spec='${libname}${release}${shared_ext}$major'
19790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19791 shlibpath_var=LD_LIBRARY_PATH
19792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19794 # the default ld.so.conf also contains /usr/contrib/lib and
19795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19796 # libtool to hard-code these into programs
19799 cygwin* | mingw* | pw32*)
19800 version_type=windows
19805 case $GCC,$host_os in
19806 yes,cygwin* | yes,mingw* | yes,pw32*)
19807 library_names_spec='$libname.dll.a'
19808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19809 postinstall_cmds='base_file=`basename \${file}`~
19810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19811 dldir=$destdir/`dirname \$dlpath`~
19812 test -d \$dldir || mkdir -p \$dldir~
19813 $install_prog $dir/$dlname \$dldir/$dlname~
19814 chmod a+x \$dldir/$dlname'
19815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19816 dlpath=$dir/\$dldll~
19818 shlibpath_overrides_runpath=yes
19822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19827 # MinGW DLLs use traditional 'lib' prefix
19828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19831 # It is most probably a Windows format PATH printed by
19832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19833 # path with ; separators, and with drive letters. We can handle the
19834 # drive letters (cygwin fileutils understands them), so leave them,
19835 # especially as we might pass files found there to a mingw objdump,
19836 # which wouldn't understand a cygwinified path. Ahh.
19837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19843 # pw32 DLLs use 'pw' prefix rather than 'lib'
19844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19853 dynamic_linker='Win32 ld.exe'
19854 # FIXME: first we should search . and the directory the executable is in
19858 darwin* | rhapsody*)
19859 dynamic_linker="$host_os dyld"
19860 version_type=darwin
19863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19864 soname_spec='${libname}${release}${major}$shared_ext'
19865 shlibpath_overrides_runpath=yes
19866 shlibpath_var=DYLD_LIBRARY_PATH
19867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19869 if test "$GCC" = yes; then
19870 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19882 soname_spec='${libname}${release}${shared_ext}$major'
19883 shlibpath_var=LD_LIBRARY_PATH
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19895 soname_spec='${libname}${release}${shared_ext}$major'
19896 shlibpath_var=LD_LIBRARY_PATH
19897 shlibpath_overrides_runpath=no
19898 hardcode_into_libs=yes
19899 dynamic_linker='GNU ld.so'
19902 freebsd* | dragonfly*)
19903 # DragonFly does not have aout. When/if they implement a new
19904 # versioning mechanism, adjust this.
19905 if test -x /usr/bin/objformat; then
19906 objformat=`/usr/bin/objformat`
19909 freebsd[123]*) objformat=aout ;;
19910 *) objformat=elf ;;
19913 version_type=freebsd-$objformat
19914 case $version_type in
19916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19925 shlibpath_var=LD_LIBRARY_PATH
19928 shlibpath_overrides_runpath=yes
19930 freebsd3.[01]* | freebsdelf3.[01]*)
19931 shlibpath_overrides_runpath=yes
19932 hardcode_into_libs=yes
19934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19936 shlibpath_overrides_runpath=no
19937 hardcode_into_libs=yes
19939 freebsd*) # from 4.6 on
19940 shlibpath_overrides_runpath=yes
19941 hardcode_into_libs=yes
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 hardcode_into_libs=yes
19956 hpux9* | hpux10* | hpux11*)
19957 # Give a soname corresponding to the major version so that dld.sl refuses to
19958 # link against other versions.
19965 hardcode_into_libs=yes
19966 dynamic_linker="$host_os dld.so"
19967 shlibpath_var=LD_LIBRARY_PATH
19968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19970 soname_spec='${libname}${release}${shared_ext}$major'
19971 if test "X$HPUX_IA64_MODE" = X32; then
19972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19980 hardcode_into_libs=yes
19981 dynamic_linker="$host_os dld.sl"
19982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19991 dynamic_linker="$host_os dld.sl"
19992 shlibpath_var=SHLIB_PATH
19993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec='${libname}${release}${shared_ext}$major'
19998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19999 postinstall_cmds='chmod 555 $lib'
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20009 shlibpath_var=LD_LIBRARY_PATH
20010 shlibpath_overrides_runpath=no
20011 hardcode_into_libs=yes
20014 irix5* | irix6* | nonstopux*)
20016 nonstopux*) version_type=nonstopux ;;
20018 if test "$lt_cv_prog_gnu_ld" = yes; then
20026 soname_spec='${libname}${release}${shared_ext}$major'
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20029 irix5* | nonstopux*)
20030 libsuff= shlibsuff=
20033 case $LD in # libtool.m4 will add one of these switches to LD
20034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20035 libsuff= shlibsuff= libmagic=32-bit;;
20036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20037 libsuff=32 shlibsuff=N32 libmagic=N32;;
20038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20040 *) libsuff= shlibsuff= libmagic=never-match;;
20044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20045 shlibpath_overrides_runpath=no
20046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20048 hardcode_into_libs=yes
20051 # No shared lib support for Linux oldld, aout, or coff.
20052 linux*oldld* | linux*aout* | linux*coff*)
20056 # This must be Linux ELF.
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20064 shlibpath_var=LD_LIBRARY_PATH
20065 shlibpath_overrides_runpath=no
20066 # This implies no fast_install, which is unacceptable.
20067 # Some rework will be needed to allow for fast_install
20068 # before this can be enabled.
20069 hardcode_into_libs=yes
20071 # Append ld.so.conf contents to the search path
20072 if test -f /etc/ld.so.conf; then
20073 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20077 # We used to test for /lib/ld.so.1 and disable shared libraries on
20078 # powerpc, because MkLinux only supported shared libraries with the
20079 # GNU dynamic linker. Since this was broken with cross compilers,
20080 # most powerpc-linux boxes support dynamic linking these days and
20081 # people can always --disable-shared, the test was removed, and we
20082 # assume the GNU/Linux dynamic linker is in use.
20083 dynamic_linker='GNU/Linux ld.so'
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 shlibpath_var=LD_LIBRARY_PATH
20093 shlibpath_overrides_runpath=no
20094 hardcode_into_libs=yes
20095 dynamic_linker='GNU ld.so'
20102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20105 dynamic_linker='NetBSD (a.out) ld.so'
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 dynamic_linker='NetBSD ld.elf_so'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath=yes
20113 hardcode_into_libs=yes
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 shlibpath_var=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath=yes
20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 shlibpath_var=LD_LIBRARY_PATH
20130 shlibpath_overrides_runpath=yes
20135 sys_lib_dlsearch_path_spec="/usr/lib"
20137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20140 *) need_version=no ;;
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20147 openbsd2.[89] | openbsd2.[89].*)
20148 shlibpath_overrides_runpath=no
20151 shlibpath_overrides_runpath=yes
20155 shlibpath_overrides_runpath=yes
20160 libname_spec='$name'
20163 library_names_spec='$libname${shared_ext} $libname.a'
20164 dynamic_linker='OS/2 ld.exe'
20165 shlibpath_var=LIBPATH
20168 osf3* | osf4* | osf5*)
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 shlibpath_var=LD_LIBRARY_PATH
20186 shlibpath_overrides_runpath=yes
20187 hardcode_into_libs=yes
20188 # ldd complains unless libraries are executable
20189 postinstall_cmds='chmod +x $lib'
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 shlibpath_overrides_runpath=yes
20198 if test "$with_gnu_ld" = yes; then
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20208 shlibpath_var=LD_LIBRARY_PATH
20209 case $host_vendor in
20211 shlibpath_overrides_runpath=no
20213 export_dynamic_flag_spec='${wl}-Blargedynsym'
20214 runpath_var=LD_RUN_PATH
20222 shlibpath_overrides_runpath=no
20223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20229 if test -d /usr/nec ;then
20231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20232 soname_spec='$libname${shared_ext}.$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20238 version_type=freebsd-elf
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 shlibpath_var=LD_LIBRARY_PATH
20244 hardcode_into_libs=yes
20245 if test "$with_gnu_ld" = yes; then
20246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20247 shlibpath_overrides_runpath=no
20249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20250 shlibpath_overrides_runpath=yes
20253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20257 sys_lib_dlsearch_path_spec='/usr/lib'
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20271 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20272 echo "${ECHO_T}$dynamic_linker" >&6; }
20273 test "$dynamic_linker" = no && can_build_shared=no
20275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20276 if test "$GCC" = yes; then
20277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20280 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20282 hardcode_action_GCJ=
20283 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20284 test -n "$runpath_var_GCJ" || \
20285 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20287 # We can hardcode non-existant directories.
20288 if test "$hardcode_direct_GCJ" != no &&
20289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20290 # have to relink, otherwise we might link with an installed library
20291 # when we should be linking with a yet-to-be-installed one
20292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20293 test "$hardcode_minus_L_GCJ" != no; then
20294 # Linking always hardcodes the temporary library directory.
20295 hardcode_action_GCJ=relink
20297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20298 hardcode_action_GCJ=immediate
20301 # We cannot hardcode anything, or else we can only hardcode existing
20303 hardcode_action_GCJ=unsupported
20305 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20306 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20308 if test "$hardcode_action_GCJ" = relink; then
20309 # Fast installation is not supported
20310 enable_fast_install=no
20311 elif test "$shlibpath_overrides_runpath" = yes ||
20312 test "$enable_shared" = no; then
20313 # Fast installation is not necessary
20314 enable_fast_install=needless
20318 # The else clause should only fire when bootstrapping the
20319 # libtool distribution, otherwise you forgot to ship ltmain.sh
20320 # with your package, and you will get complaints that there are
20321 # no rules to generate ltmain.sh.
20322 if test -f "$ltmain"; then
20323 # See if we are running on zsh, and set the options which allow our commands through
20324 # without removal of \ escapes.
20325 if test -n "${ZSH_VERSION+set}" ; then
20326 setopt NO_GLOB_SUBST
20328 # Now quote all the things that may contain metacharacters while being
20329 # careful not to overquote the AC_SUBSTed values. We take copies of the
20330 # variables and quote the copies for generation of the libtool script.
20331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20335 deplibs_check_method reload_flag reload_cmds need_locks \
20336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20337 lt_cv_sys_global_symbol_to_c_name_address \
20338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20339 old_postinstall_cmds old_postuninstall_cmds \
20343 lt_prog_compiler_wl_GCJ \
20344 lt_prog_compiler_pic_GCJ \
20345 lt_prog_compiler_static_GCJ \
20346 lt_prog_compiler_no_builtin_flag_GCJ \
20347 export_dynamic_flag_spec_GCJ \
20348 thread_safe_flag_spec_GCJ \
20349 whole_archive_flag_spec_GCJ \
20350 enable_shared_with_static_runtimes_GCJ \
20351 old_archive_cmds_GCJ \
20352 old_archive_from_new_cmds_GCJ \
20353 predep_objects_GCJ \
20354 postdep_objects_GCJ \
20357 compiler_lib_search_path_GCJ \
20359 archive_expsym_cmds_GCJ \
20360 postinstall_cmds_GCJ \
20361 postuninstall_cmds_GCJ \
20362 old_archive_from_expsyms_cmds_GCJ \
20363 allow_undefined_flag_GCJ \
20364 no_undefined_flag_GCJ \
20365 export_symbols_cmds_GCJ \
20366 hardcode_libdir_flag_spec_GCJ \
20367 hardcode_libdir_flag_spec_ld_GCJ \
20368 hardcode_libdir_separator_GCJ \
20369 hardcode_automatic_GCJ \
20371 module_expsym_cmds_GCJ \
20372 lt_cv_prog_compiler_c_o_GCJ \
20373 exclude_expsyms_GCJ \
20374 include_expsyms_GCJ; do
20377 old_archive_cmds_GCJ | \
20378 old_archive_from_new_cmds_GCJ | \
20379 archive_cmds_GCJ | \
20380 archive_expsym_cmds_GCJ | \
20381 module_cmds_GCJ | \
20382 module_expsym_cmds_GCJ | \
20383 old_archive_from_expsyms_cmds_GCJ | \
20384 export_symbols_cmds_GCJ | \
20385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20386 postinstall_cmds | postuninstall_cmds | \
20387 old_postinstall_cmds | old_postuninstall_cmds | \
20388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20389 # Double-quote double-evaled strings.
20390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20399 *'\$0 --fallback-echo"')
20400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20406 cat <<__EOF__ >> "$cfgfile"
20407 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20411 # Shell to use when invoking shell scripts.
20414 # Whether or not to build shared libraries.
20415 build_libtool_libs=$enable_shared
20417 # Whether or not to build static libraries.
20418 build_old_libs=$enable_static
20420 # Whether or not to add -lc for building shared libraries.
20421 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20423 # Whether or not to disallow shared libs when runtime libs are static
20424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20426 # Whether or not to optimize for fast installation.
20427 fast_install=$enable_fast_install
20430 host_alias=$host_alias
20434 # The build system.
20435 build_alias=$build_alias
20439 # An echo program that does not interpret backslashes.
20444 AR_FLAGS=$lt_AR_FLAGS
20449 # LTCC compiler flags.
20450 LTCFLAGS=$lt_LTCFLAGS
20452 # A language-specific compiler.
20453 CC=$lt_compiler_GCJ
20455 # Is the compiler the GNU C compiler?
20461 # The linker used to build libraries.
20464 # Whether we need hard or soft links.
20467 # A BSD-compatible nm program.
20470 # A symbol stripping program
20473 # Used to examine libraries when file_magic_cmd begins "file"
20474 MAGIC_CMD=$MAGIC_CMD
20476 # Used on cygwin: DLL creation program.
20479 # Used on cygwin: object dumper.
20482 # Used on cygwin: assembler.
20485 # The name of the directory that contains temporary libtool files.
20488 # How to create reloadable object files.
20489 reload_flag=$lt_reload_flag
20490 reload_cmds=$lt_reload_cmds
20492 # How to pass a linker flag through the compiler.
20493 wl=$lt_lt_prog_compiler_wl_GCJ
20495 # Object file suffix (normally "o").
20496 objext="$ac_objext"
20498 # Old archive suffix (normally "a").
20501 # Shared library suffix (normally ".so").
20502 shrext_cmds='$shrext_cmds'
20504 # Executable file suffix (normally "").
20507 # Additional compiler flags for building library objects.
20508 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20511 # What is the maximum length of a command?
20512 max_cmd_len=$lt_cv_sys_max_cmd_len
20514 # Does compiler simultaneously support -c and -o options?
20515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20517 # Must we lock files when doing compilation?
20518 need_locks=$lt_need_locks
20520 # Do we need the lib prefix for modules?
20521 need_lib_prefix=$need_lib_prefix
20523 # Do we need a version for libraries?
20524 need_version=$need_version
20526 # Whether dlopen is supported.
20527 dlopen_support=$enable_dlopen
20529 # Whether dlopen of programs is supported.
20530 dlopen_self=$enable_dlopen_self
20532 # Whether dlopen of statically linked programs is supported.
20533 dlopen_self_static=$enable_dlopen_self_static
20535 # Compiler flag to prevent dynamic linking.
20536 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20538 # Compiler flag to turn off builtin functions.
20539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20541 # Compiler flag to allow reflexive dlopens.
20542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20544 # Compiler flag to generate shared objects directly from archives.
20545 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20547 # Compiler flag to generate thread-safe objects.
20548 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20550 # Library versioning type.
20551 version_type=$version_type
20553 # Format of library name prefix.
20554 libname_spec=$lt_libname_spec
20556 # List of archive names. First name is the real one, the rest are links.
20557 # The last name is the one that the linker finds with -lNAME.
20558 library_names_spec=$lt_library_names_spec
20560 # The coded name of the library, if different from the real name.
20561 soname_spec=$lt_soname_spec
20563 # Commands used to build and install an old-style archive.
20565 old_archive_cmds=$lt_old_archive_cmds_GCJ
20566 old_postinstall_cmds=$lt_old_postinstall_cmds
20567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20569 # Create an old-style archive from a shared archive.
20570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20572 # Create a temporary old-style archive to link instead of a shared archive.
20573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20575 # Commands used to build and install a shared archive.
20576 archive_cmds=$lt_archive_cmds_GCJ
20577 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20578 postinstall_cmds=$lt_postinstall_cmds
20579 postuninstall_cmds=$lt_postuninstall_cmds
20581 # Commands used to build a loadable module (assumed same as above if empty)
20582 module_cmds=$lt_module_cmds_GCJ
20583 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20585 # Commands to strip libraries.
20586 old_striplib=$lt_old_striplib
20587 striplib=$lt_striplib
20589 # Dependencies to place before the objects being linked to create a
20591 predep_objects=$lt_predep_objects_GCJ
20593 # Dependencies to place after the objects being linked to create a
20595 postdep_objects=$lt_postdep_objects_GCJ
20597 # Dependencies to place before the objects being linked to create a
20599 predeps=$lt_predeps_GCJ
20601 # Dependencies to place after the objects being linked to create a
20603 postdeps=$lt_postdeps_GCJ
20605 # The library search path used internally by the compiler when linking
20606 # a shared library.
20607 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20609 # Method to check whether dependent libraries are shared objects.
20610 deplibs_check_method=$lt_deplibs_check_method
20612 # Command to use when deplibs_check_method == file_magic.
20613 file_magic_cmd=$lt_file_magic_cmd
20615 # Flag that allows shared libraries with undefined symbols to be built.
20616 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20618 # Flag that forces no undefined symbols.
20619 no_undefined_flag=$lt_no_undefined_flag_GCJ
20621 # Commands used to finish a libtool library installation in a directory.
20622 finish_cmds=$lt_finish_cmds
20624 # Same as above, but a single script fragment to be evaled but not shown.
20625 finish_eval=$lt_finish_eval
20627 # Take the output of nm and produce a listing of raw symbols and C names.
20628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20630 # Transform the output of nm in a proper C declaration
20631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20633 # Transform the output of nm in a C name address pair
20634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20636 # This is the shared library runtime path variable.
20637 runpath_var=$runpath_var
20639 # This is the shared library path variable.
20640 shlibpath_var=$shlibpath_var
20642 # Is shlibpath searched before the hard-coded library search path?
20643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20645 # How to hardcode a shared library path into an executable.
20646 hardcode_action=$hardcode_action_GCJ
20648 # Whether we should hardcode library paths into libraries.
20649 hardcode_into_libs=$hardcode_into_libs
20651 # Flag to hardcode \$libdir into a binary during linking.
20652 # This must work even if \$libdir does not exist.
20653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20655 # If ld is used when linking, flag to hardcode \$libdir into
20656 # a binary during linking. This must work even if \$libdir does
20658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20660 # Whether we need a single -rpath flag with a separated argument.
20661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20664 # resulting binary.
20665 hardcode_direct=$hardcode_direct_GCJ
20667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20668 # resulting binary.
20669 hardcode_minus_L=$hardcode_minus_L_GCJ
20671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20672 # the resulting binary.
20673 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20675 # Set to yes if building a shared library automatically hardcodes DIR into the library
20676 # and all subsequent libraries and executables linked against it.
20677 hardcode_automatic=$hardcode_automatic_GCJ
20679 # Variables whose values should be saved in libtool wrapper scripts and
20680 # restored at relink time.
20681 variables_saved_for_relink="$variables_saved_for_relink"
20683 # Whether libtool must link a program against all its dependency libraries.
20684 link_all_deplibs=$link_all_deplibs_GCJ
20686 # Compile-time system search path for libraries
20687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20689 # Run-time system search path for libraries
20690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20692 # Fix the shell variable \$srcfile for the compiler.
20693 fix_srcfile_path="$fix_srcfile_path_GCJ"
20695 # Set to yes if exported symbols are required.
20696 always_export_symbols=$always_export_symbols_GCJ
20698 # The commands to list exported symbols.
20699 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20701 # The commands to extract the exported symbol list from a shared archive.
20702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20704 # Symbols that should not be listed in the preloaded symbols.
20705 exclude_expsyms=$lt_exclude_expsyms_GCJ
20707 # Symbols that must always be exported.
20708 include_expsyms=$lt_include_expsyms_GCJ
20710 # ### END LIBTOOL TAG CONFIG: $tagname
20716 # If there is no Makefile yet, we rely on a make rule to execute
20717 # `config.status --recheck' to rerun these tests and create the
20718 # libtool script then.
20719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20720 if test -f "$ltmain_in"; then
20721 test -f Makefile && make "$ltmain"
20727 ac_cpp='$CPP $CPPFLAGS'
20728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20742 # Source file extension for RC test sources.
20745 # Object file extension for compiled RC test sources.
20749 # Code to be used in simple compile tests
20750 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20752 # Code to be used in simple link tests
20753 lt_simple_link_test_code="$lt_simple_compile_test_code"
20755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20757 # If no C compiler was specified, use CC.
20760 # If no C compiler flags were specified, use CFLAGS.
20761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20763 # Allow CC to be a program name with arguments.
20767 # save warnings/boilerplate of simple test code
20768 ac_outfile=conftest.$ac_objext
20769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20771 _lt_compiler_boilerplate=`cat conftest.err`
20774 ac_outfile=conftest.$ac_objext
20775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20777 _lt_linker_boilerplate=`cat conftest.err`
20781 # Allow CC to be a program name with arguments.
20786 for cc_temp in $compiler""; do
20788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20794 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20796 lt_cv_prog_compiler_c_o_RC=yes
20798 # The else clause should only fire when bootstrapping the
20799 # libtool distribution, otherwise you forgot to ship ltmain.sh
20800 # with your package, and you will get complaints that there are
20801 # no rules to generate ltmain.sh.
20802 if test -f "$ltmain"; then
20803 # See if we are running on zsh, and set the options which allow our commands through
20804 # without removal of \ escapes.
20805 if test -n "${ZSH_VERSION+set}" ; then
20806 setopt NO_GLOB_SUBST
20808 # Now quote all the things that may contain metacharacters while being
20809 # careful not to overquote the AC_SUBSTed values. We take copies of the
20810 # variables and quote the copies for generation of the libtool script.
20811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20815 deplibs_check_method reload_flag reload_cmds need_locks \
20816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20817 lt_cv_sys_global_symbol_to_c_name_address \
20818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20819 old_postinstall_cmds old_postuninstall_cmds \
20823 lt_prog_compiler_wl_RC \
20824 lt_prog_compiler_pic_RC \
20825 lt_prog_compiler_static_RC \
20826 lt_prog_compiler_no_builtin_flag_RC \
20827 export_dynamic_flag_spec_RC \
20828 thread_safe_flag_spec_RC \
20829 whole_archive_flag_spec_RC \
20830 enable_shared_with_static_runtimes_RC \
20831 old_archive_cmds_RC \
20832 old_archive_from_new_cmds_RC \
20833 predep_objects_RC \
20834 postdep_objects_RC \
20837 compiler_lib_search_path_RC \
20839 archive_expsym_cmds_RC \
20840 postinstall_cmds_RC \
20841 postuninstall_cmds_RC \
20842 old_archive_from_expsyms_cmds_RC \
20843 allow_undefined_flag_RC \
20844 no_undefined_flag_RC \
20845 export_symbols_cmds_RC \
20846 hardcode_libdir_flag_spec_RC \
20847 hardcode_libdir_flag_spec_ld_RC \
20848 hardcode_libdir_separator_RC \
20849 hardcode_automatic_RC \
20851 module_expsym_cmds_RC \
20852 lt_cv_prog_compiler_c_o_RC \
20853 exclude_expsyms_RC \
20854 include_expsyms_RC; do
20857 old_archive_cmds_RC | \
20858 old_archive_from_new_cmds_RC | \
20859 archive_cmds_RC | \
20860 archive_expsym_cmds_RC | \
20862 module_expsym_cmds_RC | \
20863 old_archive_from_expsyms_cmds_RC | \
20864 export_symbols_cmds_RC | \
20865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20866 postinstall_cmds | postuninstall_cmds | \
20867 old_postinstall_cmds | old_postuninstall_cmds | \
20868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20869 # Double-quote double-evaled strings.
20870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20879 *'\$0 --fallback-echo"')
20880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20886 cat <<__EOF__ >> "$cfgfile"
20887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20891 # Shell to use when invoking shell scripts.
20894 # Whether or not to build shared libraries.
20895 build_libtool_libs=$enable_shared
20897 # Whether or not to build static libraries.
20898 build_old_libs=$enable_static
20900 # Whether or not to add -lc for building shared libraries.
20901 build_libtool_need_lc=$archive_cmds_need_lc_RC
20903 # Whether or not to disallow shared libs when runtime libs are static
20904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20906 # Whether or not to optimize for fast installation.
20907 fast_install=$enable_fast_install
20910 host_alias=$host_alias
20914 # The build system.
20915 build_alias=$build_alias
20919 # An echo program that does not interpret backslashes.
20924 AR_FLAGS=$lt_AR_FLAGS
20929 # LTCC compiler flags.
20930 LTCFLAGS=$lt_LTCFLAGS
20932 # A language-specific compiler.
20935 # Is the compiler the GNU C compiler?
20941 # The linker used to build libraries.
20944 # Whether we need hard or soft links.
20947 # A BSD-compatible nm program.
20950 # A symbol stripping program
20953 # Used to examine libraries when file_magic_cmd begins "file"
20954 MAGIC_CMD=$MAGIC_CMD
20956 # Used on cygwin: DLL creation program.
20959 # Used on cygwin: object dumper.
20962 # Used on cygwin: assembler.
20965 # The name of the directory that contains temporary libtool files.
20968 # How to create reloadable object files.
20969 reload_flag=$lt_reload_flag
20970 reload_cmds=$lt_reload_cmds
20972 # How to pass a linker flag through the compiler.
20973 wl=$lt_lt_prog_compiler_wl_RC
20975 # Object file suffix (normally "o").
20976 objext="$ac_objext"
20978 # Old archive suffix (normally "a").
20981 # Shared library suffix (normally ".so").
20982 shrext_cmds='$shrext_cmds'
20984 # Executable file suffix (normally "").
20987 # Additional compiler flags for building library objects.
20988 pic_flag=$lt_lt_prog_compiler_pic_RC
20991 # What is the maximum length of a command?
20992 max_cmd_len=$lt_cv_sys_max_cmd_len
20994 # Does compiler simultaneously support -c and -o options?
20995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20997 # Must we lock files when doing compilation?
20998 need_locks=$lt_need_locks
21000 # Do we need the lib prefix for modules?
21001 need_lib_prefix=$need_lib_prefix
21003 # Do we need a version for libraries?
21004 need_version=$need_version
21006 # Whether dlopen is supported.
21007 dlopen_support=$enable_dlopen
21009 # Whether dlopen of programs is supported.
21010 dlopen_self=$enable_dlopen_self
21012 # Whether dlopen of statically linked programs is supported.
21013 dlopen_self_static=$enable_dlopen_self_static
21015 # Compiler flag to prevent dynamic linking.
21016 link_static_flag=$lt_lt_prog_compiler_static_RC
21018 # Compiler flag to turn off builtin functions.
21019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21021 # Compiler flag to allow reflexive dlopens.
21022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21024 # Compiler flag to generate shared objects directly from archives.
21025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21027 # Compiler flag to generate thread-safe objects.
21028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21030 # Library versioning type.
21031 version_type=$version_type
21033 # Format of library name prefix.
21034 libname_spec=$lt_libname_spec
21036 # List of archive names. First name is the real one, the rest are links.
21037 # The last name is the one that the linker finds with -lNAME.
21038 library_names_spec=$lt_library_names_spec
21040 # The coded name of the library, if different from the real name.
21041 soname_spec=$lt_soname_spec
21043 # Commands used to build and install an old-style archive.
21045 old_archive_cmds=$lt_old_archive_cmds_RC
21046 old_postinstall_cmds=$lt_old_postinstall_cmds
21047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21049 # Create an old-style archive from a shared archive.
21050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21052 # Create a temporary old-style archive to link instead of a shared archive.
21053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21055 # Commands used to build and install a shared archive.
21056 archive_cmds=$lt_archive_cmds_RC
21057 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21058 postinstall_cmds=$lt_postinstall_cmds
21059 postuninstall_cmds=$lt_postuninstall_cmds
21061 # Commands used to build a loadable module (assumed same as above if empty)
21062 module_cmds=$lt_module_cmds_RC
21063 module_expsym_cmds=$lt_module_expsym_cmds_RC
21065 # Commands to strip libraries.
21066 old_striplib=$lt_old_striplib
21067 striplib=$lt_striplib
21069 # Dependencies to place before the objects being linked to create a
21071 predep_objects=$lt_predep_objects_RC
21073 # Dependencies to place after the objects being linked to create a
21075 postdep_objects=$lt_postdep_objects_RC
21077 # Dependencies to place before the objects being linked to create a
21079 predeps=$lt_predeps_RC
21081 # Dependencies to place after the objects being linked to create a
21083 postdeps=$lt_postdeps_RC
21085 # The library search path used internally by the compiler when linking
21086 # a shared library.
21087 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21089 # Method to check whether dependent libraries are shared objects.
21090 deplibs_check_method=$lt_deplibs_check_method
21092 # Command to use when deplibs_check_method == file_magic.
21093 file_magic_cmd=$lt_file_magic_cmd
21095 # Flag that allows shared libraries with undefined symbols to be built.
21096 allow_undefined_flag=$lt_allow_undefined_flag_RC
21098 # Flag that forces no undefined symbols.
21099 no_undefined_flag=$lt_no_undefined_flag_RC
21101 # Commands used to finish a libtool library installation in a directory.
21102 finish_cmds=$lt_finish_cmds
21104 # Same as above, but a single script fragment to be evaled but not shown.
21105 finish_eval=$lt_finish_eval
21107 # Take the output of nm and produce a listing of raw symbols and C names.
21108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21110 # Transform the output of nm in a proper C declaration
21111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21113 # Transform the output of nm in a C name address pair
21114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21116 # This is the shared library runtime path variable.
21117 runpath_var=$runpath_var
21119 # This is the shared library path variable.
21120 shlibpath_var=$shlibpath_var
21122 # Is shlibpath searched before the hard-coded library search path?
21123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21125 # How to hardcode a shared library path into an executable.
21126 hardcode_action=$hardcode_action_RC
21128 # Whether we should hardcode library paths into libraries.
21129 hardcode_into_libs=$hardcode_into_libs
21131 # Flag to hardcode \$libdir into a binary during linking.
21132 # This must work even if \$libdir does not exist.
21133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21135 # If ld is used when linking, flag to hardcode \$libdir into
21136 # a binary during linking. This must work even if \$libdir does
21138 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21140 # Whether we need a single -rpath flag with a separated argument.
21141 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21143 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21144 # resulting binary.
21145 hardcode_direct=$hardcode_direct_RC
21147 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21148 # resulting binary.
21149 hardcode_minus_L=$hardcode_minus_L_RC
21151 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21152 # the resulting binary.
21153 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21155 # Set to yes if building a shared library automatically hardcodes DIR into the library
21156 # and all subsequent libraries and executables linked against it.
21157 hardcode_automatic=$hardcode_automatic_RC
21159 # Variables whose values should be saved in libtool wrapper scripts and
21160 # restored at relink time.
21161 variables_saved_for_relink="$variables_saved_for_relink"
21163 # Whether libtool must link a program against all its dependency libraries.
21164 link_all_deplibs=$link_all_deplibs_RC
21166 # Compile-time system search path for libraries
21167 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21169 # Run-time system search path for libraries
21170 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21172 # Fix the shell variable \$srcfile for the compiler.
21173 fix_srcfile_path="$fix_srcfile_path_RC"
21175 # Set to yes if exported symbols are required.
21176 always_export_symbols=$always_export_symbols_RC
21178 # The commands to list exported symbols.
21179 export_symbols_cmds=$lt_export_symbols_cmds_RC
21181 # The commands to extract the exported symbol list from a shared archive.
21182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21184 # Symbols that should not be listed in the preloaded symbols.
21185 exclude_expsyms=$lt_exclude_expsyms_RC
21187 # Symbols that must always be exported.
21188 include_expsyms=$lt_include_expsyms_RC
21190 # ### END LIBTOOL TAG CONFIG: $tagname
21196 # If there is no Makefile yet, we rely on a make rule to execute
21197 # `config.status --recheck' to rerun these tests and create the
21198 # libtool script then.
21199 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21200 if test -f "$ltmain_in"; then
21201 test -f Makefile && make "$ltmain"
21207 ac_cpp='$CPP $CPPFLAGS'
21208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21217 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21218 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21219 { (exit 1); exit 1; }; }
21223 # Append the new tag name to the list of available tags.
21224 if test -n "$tagname" ; then
21225 available_tags="$available_tags $tagname"
21231 # Now substitute the updated list of available tags.
21232 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21233 mv "${ofile}T" "$ofile"
21237 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21238 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21239 { (exit 1); exit 1; }; }
21245 # This can be used to rebuild libtool when needed
21246 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21248 # Always use our own libtool.
21249 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21251 # Prevent multiple expansion
21274 # Check for AViiON Machines running DGUX
21277 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21278 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21279 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21280 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21284 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21286 # Is the header compilable?
21287 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
21288 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 $ac_includes_default
21296 #include <sys/dg_sys_info.h>
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_header_compiler=yes
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_compiler=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21325 echo "${ECHO_T}$ac_header_compiler" >&6; }
21327 # Is the header present?
21328 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
21329 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 #include <sys/dg_sys_info.h>
21338 if { (ac_try="$ac_cpp conftest.$ac_ext"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } >/dev/null && {
21351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21354 ac_header_preproc=yes
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_preproc=no
21362 rm -f conftest.err conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364 echo "${ECHO_T}$ac_header_preproc" >&6; }
21366 # So? What about this header?
21367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21369 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
21370 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
21372 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
21373 ac_header_preproc=yes
21376 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
21377 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
21379 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
21381 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
21383 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
21385 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
21387 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
21389 ## -------------------------------- ##
21390 ## Report this to Hans.Boehm@hp.com ##
21391 ## -------------------------------- ##
21393 ) | sed "s/^/$as_me: WARNING: /" >&2
21396 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21397 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
21403 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21404 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21407 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
21413 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
21414 if test $ac_is_dgux = yes; then
21415 if test "$enable_full_debug" = "yes"; then
21416 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21417 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21419 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21420 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21427 # Check whether --with-target-subdir was given.
21428 if test "${with_target_subdir+set}" = set; then
21429 withval=$with_target_subdir;
21433 # Check whether --with-cross-host was given.
21434 if test "${with_cross_host+set}" = set; then
21435 withval=$with_cross_host;
21439 # automake wants to see AC_EXEEXT. But we don't need it. And having
21440 # it is actually a problem, because the compiler we're passed can't
21441 # necessarily do a full link. So we fool automake here.
21443 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
21444 # to nothing, so nothing would remain between `then' and `fi' if it
21445 # were not for the `:' below.
21450 { echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
21451 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6; }
21454 if test "$GCC" = yes; then
21455 { echo "$as_me:$LINENO: result: yes" >&5
21456 echo "${ECHO_T}yes" >&6; }
21458 for i in $CFLAGS; do
21463 new_CFLAGS="$new_CFLAGS $i"
21467 CFLAGS="$new_CFLAGS"
21469 { echo "$as_me:$LINENO: result: no" >&5
21470 echo "${ECHO_T}no" >&6; }
21473 *) { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; } ;;
21477 cat >>confdefs.h <<\_ACEOF
21478 #define NO_EXECUTE_PERMISSION 1
21481 cat >>confdefs.h <<\_ACEOF
21482 #define ALL_INTERIOR_POINTERS 1
21487 # Check whether --enable-gcj-support was given.
21488 if test "${enable_gcj_support+set}" = set; then
21489 enableval=$enable_gcj_support;
21494 if test x"$enable_gcj_support" != xno; then
21495 ENABLE_GCJ_SUPPORT_TRUE=
21496 ENABLE_GCJ_SUPPORT_FALSE='#'
21498 ENABLE_GCJ_SUPPORT_TRUE='#'
21499 ENABLE_GCJ_SUPPORT_FALSE=
21502 if test x"$enable_gcj_support" != xno; then
21504 cat >>confdefs.h <<\_ACEOF
21505 #define GC_GCJ_SUPPORT 1
21510 # Check whether --enable-java-finalization was given.
21511 if test "${enable_java_finalization+set}" = set; then
21512 enableval=$enable_java_finalization;
21515 if test x"$enable_java_finalization" != xno; then
21516 cat >>confdefs.h <<\_ACEOF
21517 #define JAVA_FINALIZATION 1
21522 # Check whether --enable-atomic-uncollectable was given.
21523 if test "${enable_atomic_uncollectable+set}" = set; then
21524 enableval=$enable_atomic_uncollectable;
21527 if test x"$enable_atomic_uncollectible" != x"no"; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define ATOMIC_UNCOLLECTABLE 1
21535 # Check whether --enable-redirect-malloc was given.
21536 if test "${enable_redirect_malloc+set}" = set; then
21537 enableval=$enable_redirect_malloc;
21541 if test "${enable_redirect_malloc}" = yes; then
21542 if test "${enable_full_debug}" = yes; then
21543 cat >>confdefs.h <<\_ACEOF
21544 #define REDIRECT_MALLOC GC_debug_malloc_replacement
21547 cat >>confdefs.h <<\_ACEOF
21548 #define REDIRECT_REALLOC GC_debug_realloc_replacement
21551 cat >>confdefs.h <<\_ACEOF
21552 #define REDIRECT_FREE GC_debug_free
21556 cat >>confdefs.h <<\_ACEOF
21557 #define REDIRECT_MALLOC GC_malloc
21561 cat >>confdefs.h <<\_ACEOF
21562 #define GC_USE_DLOPEN_WRAP 1
21567 # Check whether --enable-large-config was given.
21568 if test "${enable_large_config+set}" = set; then
21569 enableval=$enable_large_config;
21573 if test "${enable_large_config}" = yes; then
21575 cat >>confdefs.h <<\_ACEOF
21576 #define LARGE_CONFIG 1
21581 if test -n "${with_cross_host}"; then
21582 cat >>confdefs.h <<\_ACEOF
21586 cat >>confdefs.h <<\_ACEOF
21587 #define SMALL_CONFIG 1
21590 cat >>confdefs.h <<\_ACEOF
21591 #define NO_DEBUGGING 1
21599 # Check whether --enable-gc-debug was given.
21600 if test "${enable_gc_debug+set}" = set; then
21601 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
21602 { echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
21603 echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
21604 cat >>confdefs.h <<\_ACEOF
21605 #define KEEP_BACK_PTRS 1
21608 cat >>confdefs.h <<\_ACEOF
21609 #define DBG_HDRS_ALL 1
21614 cat >>confdefs.h <<\_ACEOF
21615 #define MAKE_BACK_GRAPH 1
21618 cat >>confdefs.h <<\_ACEOF
21619 #define SAVE_CALL_COUNT 8
21622 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
21623 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
21624 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 ac_check_lib_save_LIBS=$LIBS
21628 LIBS="-lunwind $LIBS"
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21636 /* Override any GCC internal prototype to avoid an error.
21637 Use char because int might match the return type of a GCC
21638 builtin and then its argument prototype would still apply. */
21646 return backtrace ();
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_link") 2>conftest.er1
21660 grep -v '^ *+' conftest.er1 >conftest.err
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && {
21665 test -z "$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21667 } && test -s conftest$ac_exeext &&
21668 $as_test_x conftest$ac_exeext; then
21669 ac_cv_lib_unwind_backtrace=yes
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_cv_lib_unwind_backtrace=no
21677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21678 conftest$ac_exeext conftest.$ac_ext
21679 LIBS=$ac_check_lib_save_LIBS
21681 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
21682 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
21683 if test $ac_cv_lib_unwind_backtrace = yes; then
21685 cat >>confdefs.h <<\_ACEOF
21686 #define GC_HAVE_BUILTIN_BACKTRACE 1
21689 UNWINDLIBS=-lunwind
21690 { echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
21691 echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
21696 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
21697 cat >>confdefs.h <<\_ACEOF
21698 #define MAKE_BACK_GRAPH 1
21701 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
21702 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
21703 cat >>confdefs.h <<\_ACEOF
21704 #define SAVE_CALL_COUNT 8
21709 cat >>confdefs.h <<\_ACEOF
21710 #define MAKE_BACK_GRAPH 1
21721 # Check whether --enable-gc-assertions was given.
21722 if test "${enable_gc_assertions+set}" = set; then
21723 enableval=$enable_gc_assertions;
21726 if test "${enable_gc_assertions}" = yes; then
21727 cat >>confdefs.h <<\_ACEOF
21728 #define GC_ASSERTIONS 1
21733 # Check whether --enable-munmap was given.
21734 if test "${enable_munmap+set}" = set; then
21735 enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
21738 { { echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
21739 echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
21740 { (exit 1); exit 1; }; }
21746 if test "${enable_munmap}" != ""; then
21747 cat >>confdefs.h <<\_ACEOF
21751 cat >>confdefs.h <<\_ACEOF
21752 #define USE_MUNMAP 1
21755 if test "${MUNMAP_THRESHOLD}" = "yes"; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
21766 if test -z "$with_cross_host"; then
21768 USE_LIBDIR_FALSE='#'
21770 USE_LIBDIR_TRUE='#'
21777 atomic_ops_libs=-latomic_ops
21778 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21779 { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21780 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21781 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21785 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21787 # Is the header compilable?
21788 { echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
21789 echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 $ac_includes_default
21797 #include <atomic_ops.h>
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_header_compiler=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_compiler=no
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6; }
21828 # Is the header present?
21829 { echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
21830 echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 #include <atomic_ops.h>
21839 if { (ac_try="$ac_cpp conftest.$ac_ext"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } >/dev/null && {
21852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21855 ac_header_preproc=yes
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_header_preproc=no
21863 rm -f conftest.err conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21865 echo "${ECHO_T}$ac_header_preproc" >&6; }
21867 # So? What about this header?
21868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21870 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
21871 echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
21873 echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
21874 ac_header_preproc=yes
21877 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
21878 echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
21880 echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
21882 echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
21884 echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
21886 echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
21888 echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
21890 ## -------------------------------- ##
21891 ## Report this to Hans.Boehm@hp.com ##
21892 ## -------------------------------- ##
21894 ) | sed "s/^/$as_me: WARNING: /" >&2
21897 { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21898 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21899 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 ac_cv_header_atomic_ops_h=$ac_header_preproc
21904 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21905 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21908 if test $ac_cv_header_atomic_ops_h = yes; then
21909 { echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5
21910 echo "$as_me: Using pre-installed libatomic_ops" >&6;}
21913 for candidate in ${srcdir}/libatomic_ops*; do
21920 if test -e "$candidate"; then
21921 ao_dir="$candidate"
21926 if test -z "$ao_dir"; then
21927 { { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5
21928 echo "$as_me: error: Missig libatomic_ops." >&2;}
21929 { (exit 1); exit 1; }; }
21931 ao_version="${ao_dir#*libatomic_ops-}"
21932 { echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5
21933 echo "$as_me: Using internal version of libatomic_ops" >&6;}
21935 test -e libatomic_ops \
21936 || ln -s ${ao_dir} libatomic_ops
21937 subdirs="$subdirs libatomic_ops"
21940 test -e atomic_ops.c \
21941 || ln -s libatomic_ops/src/atomic_ops.c \
21944 test -e atomic_ops_sysdeps.S \
21945 || ln -s libatomic_ops/src/atomic_ops_sysdeps.S \
21946 atomic_ops_sysdeps.S
21948 GC_CFLAGS="${GC_CFLAGS} -I libatomic_ops/src"
21949 maybe_libatomic_ops="libatomic_ops"
21957 if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then
21958 USE_INTERNAL_LIBATOMIC_OPS_TRUE=
21959 USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
21961 USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
21962 USE_INTERNAL_LIBATOMIC_OPS_FALSE=
21967 if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then
21968 NEED_ATOMIC_OPS_ASM_TRUE=
21969 NEED_ATOMIC_OPS_ASM_FALSE='#'
21971 NEED_ATOMIC_OPS_ASM_TRUE='#'
21972 NEED_ATOMIC_OPS_ASM_FALSE=
21978 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
21981 ac_config_commands="$ac_config_commands default"
21984 cat >confcache <<\_ACEOF
21985 # This file is a shell script that caches the results of configure
21986 # tests run on this system so they can be shared between configure
21987 # scripts and configure runs, see configure's option --config-cache.
21988 # It is not useful on other systems. If it contains results you don't
21989 # want to keep, you may remove or edit it.
21991 # config.status only pays attention to the cache file if you give it
21992 # the --recheck option to rerun configure.
21994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21996 # following values.
22000 # The following way of writing the cache mishandles newlines in values,
22001 # but we know of no workaround that is simple, portable, and efficient.
22002 # So, we kill variables containing newlines.
22003 # Ultrix sh set writes to stderr and can't be redirected directly,
22004 # and sets the high bit in the cache file unless we assign to the vars.
22006 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22007 eval ac_val=\$$ac_var
22011 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22012 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22015 _ | IFS | as_nl) ;; #(
22016 *) $as_unset $ac_var ;;
22022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22023 *${as_nl}ac_space=\ *)
22024 # `set' does not quote correctly, so add quotes (double-quote
22025 # substitution turns \\\\ into \\, and sed turns \\ into \).
22028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22031 # `set' quotes correctly as required by POSIX, so do not add quotes.
22032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22046 if test -w "$cache_file"; then
22047 test "x$cache_file" != "x/dev/null" &&
22048 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22049 echo "$as_me: updating cache $cache_file" >&6;}
22050 cat confcache >$cache_file
22052 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22053 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22059 # Let make expand exec_prefix.
22060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22062 # Transform confdefs.h into DEFS.
22063 # Protect against shell expansion while executing Makefile rules.
22064 # Protect against Makefile macro expansion.
22066 # If the first sed substitution is executed (which looks for macros that
22067 # take arguments), then branch to the quote section. Otherwise,
22068 # look for a macro that doesn't take arguments.
22072 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22074 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22078 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22091 DEFS=`sed -n "$ac_script" confdefs.h`
22096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22097 # 1. Remove the extension, and $U if already installed.
22098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22099 ac_i=`echo "$ac_i" | sed "$ac_script"`
22100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22101 # will be set to the directory where LIBOBJS objects are built.
22102 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22103 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22105 LIBOBJS=$ac_libobjs
22107 LTLIBOBJS=$ac_ltlibobjs
22110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22111 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&5
22113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22114 Usually this means the macro was only invoked conditionally." >&2;}
22115 { (exit 1); exit 1; }; }
22117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22118 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&5
22120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22121 Usually this means the macro was only invoked conditionally." >&2;}
22122 { (exit 1); exit 1; }; }
22124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&5
22127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22128 Usually this means the macro was only invoked conditionally." >&2;}
22129 { (exit 1); exit 1; }; }
22131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22132 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22133 Usually this means the macro was only invoked conditionally." >&5
22134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22135 Usually this means the macro was only invoked conditionally." >&2;}
22136 { (exit 1); exit 1; }; }
22138 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
22139 { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
22140 Usually this means the macro was only invoked conditionally." >&5
22141 echo "$as_me: error: conditional \"THREADS\" was never defined.
22142 Usually this means the macro was only invoked conditionally." >&2;}
22143 { (exit 1); exit 1; }; }
22145 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
22146 { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&5
22148 echo "$as_me: error: conditional \"PTHREADS\" was never defined.
22149 Usually this means the macro was only invoked conditionally." >&2;}
22150 { (exit 1); exit 1; }; }
22152 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
22153 { { echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
22154 Usually this means the macro was only invoked conditionally." >&5
22155 echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
22156 Usually this means the macro was only invoked conditionally." >&2;}
22157 { (exit 1); exit 1; }; }
22159 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
22160 { { echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
22161 Usually this means the macro was only invoked conditionally." >&5
22162 echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
22163 Usually this means the macro was only invoked conditionally." >&2;}
22164 { (exit 1); exit 1; }; }
22166 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
22167 { { echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
22168 Usually this means the macro was only invoked conditionally." >&5
22169 echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
22170 Usually this means the macro was only invoked conditionally." >&2;}
22171 { (exit 1); exit 1; }; }
22173 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
22174 { { echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
22175 Usually this means the macro was only invoked conditionally." >&5
22176 echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&2;}
22178 { (exit 1); exit 1; }; }
22180 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
22181 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
22182 Usually this means the macro was only invoked conditionally." >&5
22183 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&2;}
22185 { (exit 1); exit 1; }; }
22187 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
22188 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22189 Usually this means the macro was only invoked conditionally." >&5
22190 echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22191 Usually this means the macro was only invoked conditionally." >&2;}
22192 { (exit 1); exit 1; }; }
22194 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
22195 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
22196 Usually this means the macro was only invoked conditionally." >&5
22197 echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
22198 Usually this means the macro was only invoked conditionally." >&2;}
22199 { (exit 1); exit 1; }; }
22201 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
22202 { { echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22203 Usually this means the macro was only invoked conditionally." >&5
22204 echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22205 Usually this means the macro was only invoked conditionally." >&2;}
22206 { (exit 1); exit 1; }; }
22208 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
22209 { { echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22210 Usually this means the macro was only invoked conditionally." >&5
22211 echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22212 Usually this means the macro was only invoked conditionally." >&2;}
22213 { (exit 1); exit 1; }; }
22216 : ${CONFIG_STATUS=./config.status}
22217 ac_clean_files_save=$ac_clean_files
22218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22221 cat >$CONFIG_STATUS <<_ACEOF
22223 # Generated by $as_me.
22224 # Run this file to recreate the current configuration.
22225 # Compiler output produced by configure, useful for debugging
22226 # configure, is in config.log if it exists.
22229 ac_cs_recheck=false
22231 SHELL=\${CONFIG_SHELL-$SHELL}
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 ## --------------------- ##
22236 ## M4sh Initialization. ##
22237 ## --------------------- ##
22239 # Be more Bourne compatible
22240 DUALCASE=1; export DUALCASE # for MKS sh
22241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22245 # is contrary to our usage. Disable this feature.
22246 alias -g '${1+"$@"}'='"$@"'
22247 setopt NO_GLOB_SUBST
22249 case `(set -o) 2>/dev/null` in
22250 *posix*) set -o posix ;;
22259 # Avoid depending upon Character Ranges.
22260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22263 as_cr_digits='0123456789'
22264 as_cr_alnum=$as_cr_Letters$as_cr_digits
22266 # The user is always right.
22267 if test "${PATH_SEPARATOR+set}" != set; then
22268 echo "#! /bin/sh" >conf$$.sh
22269 echo "exit 0" >>conf$$.sh
22271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22279 # Support unset when possible.
22280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22288 # We need space, tab and new line, in precisely that order. Quoting is
22289 # there to prevent editors from complaining about space-tab.
22290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22291 # splitting by setting IFS to empty value.)
22296 # Find who we are. Look in the path if we contain no directory separator.
22298 *[\\/]* ) as_myself=$0 ;;
22299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22300 for as_dir in $PATH
22303 test -z "$as_dir" && as_dir=.
22304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22310 # We did not find ourselves, most probably we were run as `sh COMMAND'
22311 # in which case we are not to be found in the path.
22312 if test "x$as_myself" = x; then
22315 if test ! -f "$as_myself"; then
22316 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22317 { (exit 1); exit 1; }
22320 # Work around bugs in pre-3.0 UWIN ksh.
22321 for as_var in ENV MAIL MAILPATH
22322 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22330 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22331 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22332 LC_TELEPHONE LC_TIME
22334 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22335 eval $as_var=C; export $as_var
22337 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22341 # Required to use basename.
22342 if expr a : '\(a\)' >/dev/null 2>&1 &&
22343 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22349 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22350 as_basename=basename
22356 # Name of the executable.
22357 as_me=`$as_basename -- "$0" ||
22358 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22359 X"$0" : 'X\(//\)$' \| \
22360 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22362 sed '/^.*\/\([^/][^/]*\)\/*$/{
22381 as_lineno_1=$LINENO
22382 as_lineno_2=$LINENO
22383 test "x$as_lineno_1" != "x$as_lineno_2" &&
22384 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22386 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22387 # uniformly replaced by the line number. The first 'sed' inserts a
22388 # line-number line after each line using $LINENO; the second 'sed'
22389 # does the real work. The second script uses 'N' to pair each
22390 # line-number line with the line containing $LINENO, and appends
22391 # trailing '-' during substitution so that $LINENO is not a special
22392 # case at line end.
22393 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22394 # scripts with optimization help from Paolo Bonzini. Blame Lee
22395 # E. McMahon (1931-1989) for sed's syntax. :-)
22407 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22410 ' >$as_me.lineno &&
22411 chmod +x "$as_me.lineno" ||
22412 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22413 { (exit 1); exit 1; }; }
22415 # Don't try to exec as it changes $[0], causing all sort of problems
22416 # (the dirname of $[0] is not the place where we might find the
22417 # original and so on. Autoconf is especially sensitive to this).
22418 . "./$as_me.lineno"
22419 # Exit status is that of the last command.
22424 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22430 ECHO_C= ECHO_N= ECHO_T=
22431 case `echo -n x` in
22433 case `echo 'x\c'` in
22434 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22441 if expr a : '\(a\)' >/dev/null 2>&1 &&
22442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22448 rm -f conf$$ conf$$.exe conf$$.file
22449 if test -d conf$$.dir; then
22450 rm -f conf$$.dir/conf$$.file
22456 if ln -s conf$$.file conf$$ 2>/dev/null; then
22458 # ... but there are two gotchas:
22459 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22460 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22461 # In both cases, we have to default to `cp -p'.
22462 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22464 elif ln conf$$.file conf$$ 2>/dev/null; then
22469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22470 rmdir conf$$.dir 2>/dev/null
22472 if mkdir -p . 2>/dev/null; then
22475 test -d ./-p && rmdir ./-p
22479 if test -x / >/dev/null 2>&1; then
22480 as_test_x='test -x'
22482 if ls -dL / >/dev/null 2>&1; then
22489 if test -d "$1"; then
22495 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22496 ???[sx]*):;;*)false;;esac;fi
22500 as_executable_p=$as_test_x
22502 # Sed expression to map a string onto a valid CPP name.
22503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22505 # Sed expression to map a string onto a valid variable name.
22506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22511 # Save the log message, to keep $[0] and so on meaningful, and to
22512 # report actual input values of CONFIG_FILES etc. instead of their
22513 # values after options handling.
22515 This file was extended by gc $as_me 7.1, which was
22516 generated by GNU Autoconf 2.61. Invocation command line was
22518 CONFIG_FILES = $CONFIG_FILES
22519 CONFIG_HEADERS = $CONFIG_HEADERS
22520 CONFIG_LINKS = $CONFIG_LINKS
22521 CONFIG_COMMANDS = $CONFIG_COMMANDS
22524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22529 cat >>$CONFIG_STATUS <<_ACEOF
22530 # Files that config.status was made for.
22531 config_files="$ac_config_files"
22532 config_commands="$ac_config_commands"
22536 cat >>$CONFIG_STATUS <<\_ACEOF
22538 \`$as_me' instantiates files from templates according to the
22539 current configuration.
22541 Usage: $0 [OPTIONS] [FILE]...
22543 -h, --help print this help, then exit
22544 -V, --version print version number and configuration settings, then exit
22545 -q, --quiet do not print progress messages
22546 -d, --debug don't remove temporary files
22547 --recheck update $as_me by reconfiguring in the same conditions
22548 --file=FILE[:TEMPLATE]
22549 instantiate the configuration file FILE
22551 Configuration files:
22554 Configuration commands:
22557 Report bugs to <bug-autoconf@gnu.org>."
22560 cat >>$CONFIG_STATUS <<_ACEOF
22562 gc config.status 7.1
22563 configured by $0, generated by GNU Autoconf 2.61,
22564 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22566 Copyright (C) 2006 Free Software Foundation, Inc.
22567 This config.status script is free software; the Free Software Foundation
22568 gives unlimited permission to copy, distribute and modify it."
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576 # If no file are specified by the user, then we need to provide default
22577 # value. By we need to know if files were specified by the user.
22583 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22584 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22595 # Handling of the options.
22596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22598 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22599 echo "$ac_cs_version"; exit ;;
22600 --debug | --debu | --deb | --de | --d | -d )
22602 --file | --fil | --fi | --f )
22604 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22605 ac_need_defaults=false;;
22606 --he | --h | --help | --hel | -h )
22607 echo "$ac_cs_usage"; exit ;;
22608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22612 # This is an error.
22613 -*) { echo "$as_me: error: unrecognized option: $1
22614 Try \`$0 --help' for more information." >&2
22615 { (exit 1); exit 1; }; } ;;
22617 *) ac_config_targets="$ac_config_targets $1"
22618 ac_need_defaults=false ;;
22624 ac_configure_extra_args=
22626 if $ac_cs_silent; then
22628 ac_configure_extra_args="$ac_configure_extra_args --silent"
22632 cat >>$CONFIG_STATUS <<_ACEOF
22633 if \$ac_cs_recheck; then
22634 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22635 CONFIG_SHELL=$SHELL
22636 export CONFIG_SHELL
22637 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22641 cat >>$CONFIG_STATUS <<\_ACEOF
22645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22646 ## Running $as_me. ##
22652 cat >>$CONFIG_STATUS <<_ACEOF
22656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22659 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22667 # Handling of arguments.
22668 for ac_config_target in $ac_config_targets
22670 case $ac_config_target in
22671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22673 "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
22674 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22676 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22677 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22678 { (exit 1); exit 1; }; };;
22683 # If the user did not use the arguments to specify the items to instantiate,
22684 # then the envvar interface is used. Set only those that are not.
22685 # We use the long form for the default assignment because of an extremely
22686 # bizarre bug on SunOS 4.1.3.
22687 if $ac_need_defaults; then
22688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22689 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22692 # Have a temporary directory for convenience. Make it in the build tree
22693 # simply because there is no reason against having it here, and in addition,
22694 # creating and moving files from /tmp can sometimes cause problems.
22695 # Hook for its removal unless debugging.
22696 # Note that there is a small window in which the directory will not be cleaned:
22697 # after its creation but before its name has been assigned to `$tmp'.
22701 trap 'exit_status=$?
22702 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22704 trap '{ (exit 1); exit 1; }' 1 2 13 15
22706 # Create a (secure) tmp directory for tmp files.
22709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22710 test -n "$tmp" && test -d "$tmp"
22713 tmp=./conf$$-$RANDOM
22714 (umask 077 && mkdir "$tmp")
22717 echo "$me: cannot create a temporary directory in ." >&2
22718 { (exit 1); exit 1; }
22722 # Set up the sed scripts for CONFIG_FILES section.
22725 # No need to generate the scripts if there are no CONFIG_FILES.
22726 # This happens for instance when ./config.status config.h
22727 if test -n "$CONFIG_FILES"; then
22734 for ac_last_try in false false false false false :; do
22735 cat >conf$$subs.sed <<_ACEOF
22736 SHELL!$SHELL$ac_delim
22737 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22738 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22739 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22740 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22741 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22742 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22743 exec_prefix!$exec_prefix$ac_delim
22744 prefix!$prefix$ac_delim
22745 program_transform_name!$program_transform_name$ac_delim
22746 bindir!$bindir$ac_delim
22747 sbindir!$sbindir$ac_delim
22748 libexecdir!$libexecdir$ac_delim
22749 datarootdir!$datarootdir$ac_delim
22750 datadir!$datadir$ac_delim
22751 sysconfdir!$sysconfdir$ac_delim
22752 sharedstatedir!$sharedstatedir$ac_delim
22753 localstatedir!$localstatedir$ac_delim
22754 includedir!$includedir$ac_delim
22755 oldincludedir!$oldincludedir$ac_delim
22756 docdir!$docdir$ac_delim
22757 infodir!$infodir$ac_delim
22758 htmldir!$htmldir$ac_delim
22759 dvidir!$dvidir$ac_delim
22760 pdfdir!$pdfdir$ac_delim
22761 psdir!$psdir$ac_delim
22762 libdir!$libdir$ac_delim
22763 localedir!$localedir$ac_delim
22764 mandir!$mandir$ac_delim
22765 DEFS!$DEFS$ac_delim
22766 ECHO_C!$ECHO_C$ac_delim
22767 ECHO_N!$ECHO_N$ac_delim
22768 ECHO_T!$ECHO_T$ac_delim
22769 LIBS!$LIBS$ac_delim
22770 build_alias!$build_alias$ac_delim
22771 host_alias!$host_alias$ac_delim
22772 target_alias!$target_alias$ac_delim
22773 build!$build$ac_delim
22774 build_cpu!$build_cpu$ac_delim
22775 build_vendor!$build_vendor$ac_delim
22776 build_os!$build_os$ac_delim
22777 host!$host$ac_delim
22778 host_cpu!$host_cpu$ac_delim
22779 host_vendor!$host_vendor$ac_delim
22780 host_os!$host_os$ac_delim
22781 target!$target$ac_delim
22782 target_cpu!$target_cpu$ac_delim
22783 target_vendor!$target_vendor$ac_delim
22784 target_os!$target_os$ac_delim
22785 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22786 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22787 INSTALL_DATA!$INSTALL_DATA$ac_delim
22788 CYGPATH_W!$CYGPATH_W$ac_delim
22789 PACKAGE!$PACKAGE$ac_delim
22790 VERSION!$VERSION$ac_delim
22791 ACLOCAL!$ACLOCAL$ac_delim
22792 AUTOCONF!$AUTOCONF$ac_delim
22793 AUTOMAKE!$AUTOMAKE$ac_delim
22794 AUTOHEADER!$AUTOHEADER$ac_delim
22795 MAKEINFO!$MAKEINFO$ac_delim
22796 install_sh!$install_sh$ac_delim
22797 STRIP!$STRIP$ac_delim
22798 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22799 mkdir_p!$mkdir_p$ac_delim
22801 SET_MAKE!$SET_MAKE$ac_delim
22802 am__leading_dot!$am__leading_dot$ac_delim
22803 AMTAR!$AMTAR$ac_delim
22804 am__tar!$am__tar$ac_delim
22805 am__untar!$am__untar$ac_delim
22806 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22807 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22808 MAINT!$MAINT$ac_delim
22809 GC_VERSION!$GC_VERSION$ac_delim
22811 CFLAGS!$CFLAGS$ac_delim
22812 LDFLAGS!$LDFLAGS$ac_delim
22813 CPPFLAGS!$CPPFLAGS$ac_delim
22814 ac_ct_CC!$ac_ct_CC$ac_delim
22815 EXEEXT!$EXEEXT$ac_delim
22816 OBJEXT!$OBJEXT$ac_delim
22817 DEPDIR!$DEPDIR$ac_delim
22818 am__include!$am__include$ac_delim
22819 am__quote!$am__quote$ac_delim
22820 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22821 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22822 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22823 CCDEPMODE!$CCDEPMODE$ac_delim
22824 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22825 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22827 CXXFLAGS!$CXXFLAGS$ac_delim
22828 ac_ct_CXX!$ac_ct_CXX$ac_delim
22829 CXXDEPMODE!$CXXDEPMODE$ac_delim
22830 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22831 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22832 CCAS!$CCAS$ac_delim
22835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22837 elif $ac_last_try; then
22838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840 { (exit 1); exit 1; }; }
22842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849 ac_eof=`expr $ac_eof + 1`
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22861 s/'"$ac_delim"'$/,g/; t
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22872 for ac_last_try in false false false false false :; do
22873 cat >conf$$subs.sed <<_ACEOF
22874 CCASFLAGS!$CCASFLAGS$ac_delim
22876 RANLIB!$RANLIB$ac_delim
22877 GC_CFLAGS!$GC_CFLAGS$ac_delim
22878 THREADDLLIBS!$THREADDLLIBS$ac_delim
22879 THREADS_TRUE!$THREADS_TRUE$ac_delim
22880 THREADS_FALSE!$THREADS_FALSE$ac_delim
22881 PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
22882 PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
22883 DARWIN_THREADS_TRUE!$DARWIN_THREADS_TRUE$ac_delim
22884 DARWIN_THREADS_FALSE!$DARWIN_THREADS_FALSE$ac_delim
22885 WIN32_THREADS_TRUE!$WIN32_THREADS_TRUE$ac_delim
22886 WIN32_THREADS_FALSE!$WIN32_THREADS_FALSE$ac_delim
22887 COMPILER_XLC_TRUE!$COMPILER_XLC_TRUE$ac_delim
22888 COMPILER_XLC_FALSE!$COMPILER_XLC_FALSE$ac_delim
22889 AVOID_CPP_LIB_TRUE!$AVOID_CPP_LIB_TRUE$ac_delim
22890 AVOID_CPP_LIB_FALSE!$AVOID_CPP_LIB_FALSE$ac_delim
22891 extra_ldflags_libgc!$extra_ldflags_libgc$ac_delim
22892 EXTRA_TEST_LIBS!$EXTRA_TEST_LIBS$ac_delim
22893 target_all!$target_all$ac_delim
22894 CPLUSPLUS_TRUE!$CPLUSPLUS_TRUE$ac_delim
22895 CPLUSPLUS_FALSE!$CPLUSPLUS_FALSE$ac_delim
22896 INCLUDES!$INCLUDES$ac_delim
22897 CXXINCLUDES!$CXXINCLUDES$ac_delim
22898 addobjs!$addobjs$ac_delim
22899 addlibs!$addlibs$ac_delim
22900 GREP!$GREP$ac_delim
22901 EGREP!$EGREP$ac_delim
22902 LN_S!$LN_S$ac_delim
22903 ECHO!$ECHO$ac_delim
22905 CXXCPP!$CXXCPP$ac_delim
22907 FFLAGS!$FFLAGS$ac_delim
22908 ac_ct_F77!$ac_ct_F77$ac_delim
22909 LIBTOOL!$LIBTOOL$ac_delim
22910 ENABLE_GCJ_SUPPORT_TRUE!$ENABLE_GCJ_SUPPORT_TRUE$ac_delim
22911 ENABLE_GCJ_SUPPORT_FALSE!$ENABLE_GCJ_SUPPORT_FALSE$ac_delim
22912 UNWINDLIBS!$UNWINDLIBS$ac_delim
22913 USE_LIBDIR_TRUE!$USE_LIBDIR_TRUE$ac_delim
22914 USE_LIBDIR_FALSE!$USE_LIBDIR_FALSE$ac_delim
22915 subdirs!$subdirs$ac_delim
22916 USE_INTERNAL_LIBATOMIC_OPS_TRUE!$USE_INTERNAL_LIBATOMIC_OPS_TRUE$ac_delim
22917 USE_INTERNAL_LIBATOMIC_OPS_FALSE!$USE_INTERNAL_LIBATOMIC_OPS_FALSE$ac_delim
22918 NEED_ATOMIC_OPS_ASM_TRUE!$NEED_ATOMIC_OPS_ASM_TRUE$ac_delim
22919 NEED_ATOMIC_OPS_ASM_FALSE!$NEED_ATOMIC_OPS_ASM_FALSE$ac_delim
22920 atomic_ops_libs!$atomic_ops_libs$ac_delim
22921 LIBOBJS!$LIBOBJS$ac_delim
22922 LTLIBOBJS!$LTLIBOBJS$ac_delim
22925 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
22927 elif $ac_last_try; then
22928 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22929 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22930 { (exit 1); exit 1; }; }
22932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22936 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22937 if test -n "$ac_eof"; then
22938 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22939 ac_eof=`expr $ac_eof + 1`
22942 cat >>$CONFIG_STATUS <<_ACEOF
22943 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22947 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22948 s/^/s,@/; s/!/@,|#_!!_#|/
22951 s/'"$ac_delim"'$/,g/; t
22953 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22954 ' >>$CONFIG_STATUS <conf$$subs.sed
22955 rm -f conf$$subs.sed
22956 cat >>$CONFIG_STATUS <<_ACEOF
22963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22965 # trailing colons and then remove the whole line if VPATH becomes empty
22966 # (actually we leave an empty line to preserve line numbers).
22967 if test "x$srcdir" = x.; then
22968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22969 s/:*\$(srcdir):*/:/
22970 s/:*\${srcdir}:*/:/
22972 s/^\([^=]*=[ ]*\):*/\1/
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979 fi # test -n "$CONFIG_FILES"
22982 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22985 :[FHLC]) ac_mode=$ac_tag; continue;;
22987 case $ac_mode$ac_tag in
22989 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22990 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22991 { (exit 1); exit 1; }; };;
22992 :[FH]-) ac_tag=-:-;;
22993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23010 -) ac_f="$tmp/stdin";;
23011 *) # Look for the file first in the build tree, then in the source tree
23012 # (if the path is not absolute). The absolute path cannot be DOS-style,
23013 # because $ac_f cannot contain `:'.
23017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23019 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23020 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23021 { (exit 1); exit 1; }; };;
23023 ac_file_inputs="$ac_file_inputs $ac_f"
23026 # Let's still pretend it is `configure' which instantiates (i.e., don't
23027 # use $as_me), people would be surprised to read:
23028 # /* config.h. Generated by config.status. */
23029 configure_input="Generated from "`IFS=:
23030 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23031 if test x"$ac_file" != x-; then
23032 configure_input="$ac_file. $configure_input"
23033 { echo "$as_me:$LINENO: creating $ac_file" >&5
23034 echo "$as_me: creating $ac_file" >&6;}
23038 *:-:* | *:-) cat >"$tmp/stdin";;
23043 ac_dir=`$as_dirname -- "$ac_file" ||
23044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23045 X"$ac_file" : 'X\(//\)[^/]' \| \
23046 X"$ac_file" : 'X\(//\)$' \| \
23047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23053 /^X\(\/\/\)[^/].*/{
23068 -*) as_dir=./$as_dir;;
23070 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23074 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23075 *) as_qdir=$as_dir;;
23077 as_dirs="'$as_qdir' $as_dirs"
23078 as_dir=`$as_dirname -- "$as_dir" ||
23079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23080 X"$as_dir" : 'X\(//\)[^/]' \| \
23081 X"$as_dir" : 'X\(//\)$' \| \
23082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23088 /^X\(\/\/\)[^/].*/{
23101 test -d "$as_dir" && break
23103 test -z "$as_dirs" || eval "mkdir $as_dirs"
23104 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23105 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23106 { (exit 1); exit 1; }; }; }
23110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23113 # A ".." for each directory in $ac_dir_suffix.
23114 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23115 case $ac_top_builddir_sub in
23116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23120 ac_abs_top_builddir=$ac_pwd
23121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23122 # for backward compatibility:
23123 ac_top_builddir=$ac_top_build_prefix
23126 .) # We are building in place.
23128 ac_top_srcdir=$ac_top_builddir_sub
23129 ac_abs_top_srcdir=$ac_pwd ;;
23130 [\\/]* | ?:[\\/]* ) # Absolute name.
23131 ac_srcdir=$srcdir$ac_dir_suffix;
23132 ac_top_srcdir=$srcdir
23133 ac_abs_top_srcdir=$srcdir ;;
23134 *) # Relative name.
23135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23136 ac_top_srcdir=$ac_top_build_prefix$srcdir
23137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23154 cat >>$CONFIG_STATUS <<\_ACEOF
23155 # If the template does not know about datarootdir, expand it.
23156 # FIXME: This hack should be removed a few years after 2.60.
23157 ac_datarootdir_hack=; ac_datarootdir_seen=
23159 case `sed -n '/datarootdir/ {
23168 ' $ac_file_inputs` in
23169 *datarootdir*) ac_datarootdir_seen=yes;;
23170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23171 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23172 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23174 cat >>$CONFIG_STATUS <<_ACEOF
23175 ac_datarootdir_hack='
23176 s&@datadir@&$datadir&g
23177 s&@docdir@&$docdir&g
23178 s&@infodir@&$infodir&g
23179 s&@localedir@&$localedir&g
23180 s&@mandir@&$mandir&g
23181 s&\\\${datarootdir}&$datarootdir&g' ;;
23185 # Neutralize VPATH when `$srcdir' = `.'.
23186 # Shell code in configure.ac might set extrasub.
23187 # FIXME: do we really want to maintain this feature?
23188 cat >>$CONFIG_STATUS <<_ACEOF
23192 cat >>$CONFIG_STATUS <<\_ACEOF
23194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23195 s&@configure_input@&$configure_input&;t t
23196 s&@top_builddir@&$ac_top_builddir_sub&;t t
23197 s&@srcdir@&$ac_srcdir&;t t
23198 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23199 s&@top_srcdir@&$ac_top_srcdir&;t t
23200 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23201 s&@builddir@&$ac_builddir&;t t
23202 s&@abs_builddir@&$ac_abs_builddir&;t t
23203 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23204 s&@INSTALL@&$ac_INSTALL&;t t
23205 $ac_datarootdir_hack
23206 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23209 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23211 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23212 which seems to be undefined. Please make sure it is defined." >&5
23213 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23214 which seems to be undefined. Please make sure it is defined." >&2;}
23218 -) cat "$tmp/out"; rm -f "$tmp/out";;
23219 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23224 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23225 echo "$as_me: executing $ac_file commands" >&6;}
23230 case $ac_file$ac_mode in
23231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23232 # Strip MF so we end up with the name of the file.
23233 mf=`echo "$mf" | sed -e 's/:.*$//'`
23234 # Check whether this is an Automake generated Makefile or not.
23235 # We used to match only the files named `Makefile.in', but
23236 # some people rename them; so instead we look at the file content.
23237 # Grep'ing the first line is not enough: some people post-process
23238 # each Makefile.in and add a new line on top of each file to say so.
23239 # So let's grep whole file.
23240 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23241 dirpart=`$as_dirname -- "$mf" ||
23242 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23243 X"$mf" : 'X\(//\)[^/]' \| \
23244 X"$mf" : 'X\(//\)$' \| \
23245 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23251 /^X\(\/\/\)[^/].*/{
23267 # Extract the definition of DEPDIR, am__include, and am__quote
23268 # from the Makefile without running `make'.
23269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23270 test -z "$DEPDIR" && continue
23271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23272 test -z "am__include" && continue
23273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23274 # When using ansi2knr, U may be empty or an underscore; expand it
23275 U=`sed -n 's/^U = //p' < "$mf"`
23276 # Find all dependency output files, they are included files with
23277 # $(DEPDIR) in their names. We invoke sed twice because it is the
23278 # simplest approach to changing $(DEPDIR) to its actual value in the
23280 for file in `sed -n "
23281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23283 # Make sure the directory exists.
23284 test -f "$dirpart/$file" && continue
23285 fdir=`$as_dirname -- "$file" ||
23286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23287 X"$file" : 'X\(//\)[^/]' \| \
23288 X"$file" : 'X\(//\)$' \| \
23289 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23295 /^X\(\/\/\)[^/].*/{
23308 { as_dir=$dirpart/$fdir
23310 -*) as_dir=./$as_dir;;
23312 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23316 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23317 *) as_qdir=$as_dir;;
23319 as_dirs="'$as_qdir' $as_dirs"
23320 as_dir=`$as_dirname -- "$as_dir" ||
23321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$as_dir" : 'X\(//\)[^/]' \| \
23323 X"$as_dir" : 'X\(//\)$' \| \
23324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23330 /^X\(\/\/\)[^/].*/{
23343 test -d "$as_dir" && break
23345 test -z "$as_dirs" || eval "mkdir $as_dirs"
23346 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23347 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23348 { (exit 1); exit 1; }; }; }
23349 # echo "creating $dirpart/$file"
23350 echo '# dummy' > "$dirpart/$file"
23359 { (exit 0); exit 0; }
23361 chmod +x $CONFIG_STATUS
23362 ac_clean_files=$ac_clean_files_save
23365 # configure is writing to config.log, and then calls config.status.
23366 # config.status does its own redirection, appending to config.log.
23367 # Unfortunately, on DOS this fails, as config.log is still kept open
23368 # by configure, so config.status won't be able to write to it; its
23369 # output is simply discarded. So we exec the FD to /dev/null,
23370 # effectively closing config.log, so it can be properly (re)opened and
23371 # appended to by config.status. When coming back to configure, we
23372 # need to make the FD available again.
23373 if test "$no_create" != yes; then
23375 ac_config_status_args=
23376 test "$silent" = yes &&
23377 ac_config_status_args="$ac_config_status_args --quiet"
23379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23382 # would make configure fail if this is the last instruction.
23383 $ac_cs_success || { (exit 1); exit 1; }
23387 # CONFIG_SUBDIRS section.
23389 if test "$no_recursion" != yes; then
23391 # Remove --cache-file and --srcdir arguments so they do not pile up.
23392 ac_sub_configure_args=
23394 eval "set x $ac_configure_args"
23398 if test -n "$ac_prev"; then
23403 -cache-file | --cache-file | --cache-fil | --cache-fi \
23404 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23405 ac_prev=cache_file ;;
23406 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23407 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23410 --config-cache | -C)
23412 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23414 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23422 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23424 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23428 # Always prepend --prefix to ensure using the same prefix
23429 # in subdir configurations.
23430 ac_arg="--prefix=$prefix"
23432 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23434 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23437 if test "$silent" = yes; then
23438 ac_sub_configure_args="--silent $ac_sub_configure_args"
23442 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23444 # Do not complain, so a configure script can configure whichever
23445 # parts of a large source tree are present.
23446 test -d "$srcdir/$ac_dir" || continue
23448 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23449 echo "$as_me:$LINENO: $ac_msg" >&5
23453 -*) as_dir=./$as_dir;;
23455 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23459 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23460 *) as_qdir=$as_dir;;
23462 as_dirs="'$as_qdir' $as_dirs"
23463 as_dir=`$as_dirname -- "$as_dir" ||
23464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23465 X"$as_dir" : 'X\(//\)[^/]' \| \
23466 X"$as_dir" : 'X\(//\)$' \| \
23467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23473 /^X\(\/\/\)[^/].*/{
23486 test -d "$as_dir" && break
23488 test -z "$as_dirs" || eval "mkdir $as_dirs"
23489 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23490 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23491 { (exit 1); exit 1; }; }; }
23495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23498 # A ".." for each directory in $ac_dir_suffix.
23499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23500 case $ac_top_builddir_sub in
23501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23505 ac_abs_top_builddir=$ac_pwd
23506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23507 # for backward compatibility:
23508 ac_top_builddir=$ac_top_build_prefix
23511 .) # We are building in place.
23513 ac_top_srcdir=$ac_top_builddir_sub
23514 ac_abs_top_srcdir=$ac_pwd ;;
23515 [\\/]* | ?:[\\/]* ) # Absolute name.
23516 ac_srcdir=$srcdir$ac_dir_suffix;
23517 ac_top_srcdir=$srcdir
23518 ac_abs_top_srcdir=$srcdir ;;
23519 *) # Relative name.
23520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23521 ac_top_srcdir=$ac_top_build_prefix$srcdir
23522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23529 # Check for guested configure; otherwise get Cygnus style configure.
23530 if test -f "$ac_srcdir/configure.gnu"; then
23531 ac_sub_configure=$ac_srcdir/configure.gnu
23532 elif test -f "$ac_srcdir/configure"; then
23533 ac_sub_configure=$ac_srcdir/configure
23534 elif test -f "$ac_srcdir/configure.in"; then
23535 # This should be Cygnus configure.
23536 ac_sub_configure=$ac_aux_dir/configure
23538 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23543 # The recursion is here.
23544 if test -n "$ac_sub_configure"; then
23545 # Make the cache file name correct relative to the subdirectory.
23546 case $cache_file in
23547 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23548 *) # Relative name.
23549 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23552 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23553 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23554 # The eval makes quoting arguments work.
23555 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23556 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23557 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23558 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23559 { (exit 1); exit 1; }; }