2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
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 *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
932 ENABLE_VISIBILITY_INLINES_HIDDEN
938 ac_precious_vars='build_alias
952 ac_subdirs_all='projects/sample
954 projects/llvm-stacker
961 projects/llvm-poolalloc
963 projects/llvm-kernel'
965 # Initialize some variables set by options.
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name=s,x,x,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072 eval enable_$ac_feature=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091 eval enable_$ac_feature=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package| sed 's/-/_/g'`
1288 eval with_$ac_package=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/-/_/g'`
1297 eval with_$ac_package=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1348 # Be sure to have absolute directory names.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
1405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434 { (exit 1); exit 1; }; }
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439 { (exit 1); exit 1; }; }
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1542 --enable-expensive-checks
1543 Compile with expensive debug checks enabled (default
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1547 --enable-jit Enable Just In Time Compiling (default is YES)
1548 --enable-doxygen Build doxygen documentation (default is NO)
1549 --enable-threads Use threads if available (default is YES)
1550 --enable-pic Build LLVM with Position Independent Code (default
1552 --enable-targets Build specific host targets:
1553 all,host-only,{target-name} (default=all)
1554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
1558 --enable-libffi Check for the presence of libffi (default is YES)
1559 --enable-ltdl-install install libltdl
1560 --enable-shared[=PKGS] build shared libraries
1562 --enable-static[=PKGS] build static libraries
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1574 --with-llvmgcc Specify location of llvm-gcc driver (default
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1578 --with-extra-options Specify additional options to compile LLVM with
1579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
1583 --with-tclinclude directory where tcl headers are
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1587 --with-tags[=TAGS] include additional configurations [automatic]
1588 --with-udis86=<path> Use udis86 external x86 disassembler library
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
1600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 Report bugs to <llvmbugs@cs.uiuc.edu>.
1612 if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
1614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615 test -d "$ac_dir" || continue
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1668 llvm configure 2.6svn
1669 generated by GNU Autoconf 2.60
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1676 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1684 It was created by llvm $as_me 2.6svn, which was
1685 generated by GNU Autoconf 2.60. Invocation command line was
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_must_keep_next=false
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
1763 ac_must_keep_next=false # Got value, back to normal.
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774 -* ) ac_must_keep_next=true ;;
1777 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log. We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1801 # The following way of writing the cache mishandles newlines in values,
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1848 if test -n "$ac_subst_files"; then
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1855 for ac_var in $ac_subst_files
1857 eval ac_val=\$$ac_var
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 echo "$ac_var='\''$ac_val'\''"
1866 if test -s confdefs.h; then
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 # Predefined preprocessor variables.
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
1932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1940 if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1957 # Check that the precious variables saved in the cache have kept the same
1959 ac_cache_corrupted=false
1960 for ac_var in $ac_precious_vars; do
1961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
1963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
1965 case $ac_old_set,$ac_new_set in
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
1977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1980 echo "$as_me: former value: $ac_old_val" >&2;}
1981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1982 echo "$as_me: current value: $ac_new_val" >&2;}
1983 ac_cache_corrupted=:
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998 if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2047 for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 if test ${srcdir} != "." ; then
2079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2081 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
2086 for i in `ls ${srcdir}/projects`
2088 if test -d ${srcdir}/projects/${i} ; then
2091 sample) subdirs="$subdirs projects/sample"
2093 privbracket) subdirs="$subdirs projects/privbracket"
2095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2097 # llvm-test is the old name of the test-suite, kept here for backwards
2099 llvm-test) subdirs="$subdirs projects/llvm-test"
2101 test-suite) subdirs="$subdirs projects/test-suite"
2103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2107 llvm-java) subdirs="$subdirs projects/llvm-java"
2109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2113 poolalloc) subdirs="$subdirs projects/poolalloc"
2115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220 { (exit 1); exit 1; }; }
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2251 program_prefix=${target_alias}-
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2255 if test "${llvm_cv_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="AIX"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,-all_load"
2276 llvm_cv_no_link_all_option="-Wl,-noall_load"
2277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
2332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
2336 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2339 if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2342 { (exit 1); exit 1; }; }
2348 LINKALL=$llvm_cv_link_all_option
2350 NOLINKALL=$llvm_cv_no_link_all_option
2353 case $llvm_cv_platform_type in
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_UNIX 1
2367 cat >>confdefs.h <<\_ACEOF
2368 #define LLVM_ON_WIN32 1
2378 { echo "$as_me:$LINENO: checking target architecture" >&5
2379 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2380 if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 i?86-*) llvm_cv_target_arch="x86" ;;
2385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2389 ia64-*) llvm_cv_target_arch="IA64" ;;
2390 arm*-*) llvm_cv_target_arch="ARM" ;;
2391 mips-*) llvm_cv_target_arch="Mips" ;;
2392 pic16-*) llvm_cv_target_arch="PIC16" ;;
2393 xcore-*) llvm_cv_target_arch="XCore" ;;
2394 msp430-*) llvm_cv_target_arch="MSP430" ;;
2395 *) llvm_cv_target_arch="Unknown" ;;
2398 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2401 if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406 ARCH=$llvm_cv_target_arch
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 if test -n "$CC"; then
2444 { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2453 if test -z "$ac_cv_prog_CC"; then
2455 # Extract the first word of "gcc", so it can be a program name with args.
2456 set dummy gcc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$ac_ct_CC"; then
2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_ac_ct_CC="gcc"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2491 if test "x$ac_ct_CC" = x; then
2494 case $cross_compiling:$ac_tool_warned in
2496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&5
2499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500 whose name does not start with the host triplet. If you think this
2501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502 ac_tool_warned=yes ;;
2510 if test -z "$CC"; then
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}cc; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="${ac_tool_prefix}cc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2551 if test -z "$CC"; then
2552 # Extract the first word of "cc", so it can be a program name with args.
2553 set dummy cc; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2571 ac_prog_rejected=yes
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test $ac_prog_rejected = yes; then
2583 # We found a bogon in the path, so make sure we never use it.
2584 set dummy $ac_cv_prog_CC
2586 if test $# != 0; then
2587 # We chose a different compiler from the bogus one.
2588 # However, it has the same basename, so the bogon will be chosen
2589 # first if we set CC to just the basename; use the full file name.
2591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2597 if test -n "$CC"; then
2598 { echo "$as_me:$LINENO: result: $CC" >&5
2599 echo "${ECHO_T}$CC" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2607 if test -z "$CC"; then
2608 if test -n "$ac_tool_prefix"; then
2609 for ac_prog in cl.exe
2611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test -n "$CC"; then
2640 { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2648 test -n "$CC" && break
2651 if test -z "$CC"; then
2653 for ac_prog in cl.exe
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 if test -n "$ac_ct_CC"; then
2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_CC="$ac_prog"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2685 echo "${ECHO_T}$ac_ct_CC" >&6; }
2687 { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2692 test -n "$ac_ct_CC" && break
2695 if test "x$ac_ct_CC" = x; then
2698 case $cross_compiling:$ac_tool_warned in
2700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet. If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&5
2703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704 whose name does not start with the host triplet. If you think this
2705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706 ac_tool_warned=yes ;;
2715 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2721 # Provide some information about the compiler.
2722 echo "$as_me:$LINENO: checking for C compiler version" >&5
2723 ac_compiler=`set X $ac_compile; echo $2`
2724 { (ac_try="$ac_compiler --version >&5"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler --version >&5") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (ac_try="$ac_compiler -v >&5"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compiler -v >&5") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (ac_try="$ac_compiler -V >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler -V >&5") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 ac_clean_files_save=$ac_clean_files
2771 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2772 # Try to create an executable without -o first, disregard a.out.
2773 # It will help us diagnose broken compilers, and finding out an intuition
2775 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2776 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2777 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779 # List of possible output files, starting from the most likely.
2780 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2781 # only as a last resort. b.out is created by i960 compilers.
2782 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2784 # The IRIX 6 linker writes into existing files which may not be
2785 # executable, retaining their permissions. Remove them first so a
2786 # subsequent execution test works.
2788 for ac_file in $ac_files
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2797 if { (ac_try="$ac_link_default"
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_link_default") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; then
2807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2810 # so that the user can short-circuit this test for compilers unknown to
2812 for ac_file in $ac_files
2814 test -f "$ac_file" || continue
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2819 # We found the default executable, but exeext='' is most
2823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2827 # We set ac_cv_exeext here because the later test for it is not
2828 # safe: cross compilers may not add the suffix if given an `-o'
2829 # argument, so we may need to know it at that point already.
2830 # Even if this section looks crufty: it has the advantage of
2837 test "$ac_cv_exeext" = no && ac_cv_exeext=
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&5
2845 echo "$as_me: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&2;}
2847 { (exit 77); exit 77; }; }
2850 ac_exeext=$ac_cv_exeext
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2854 # Check that the compiler produces executables we can run. If not, either
2855 # the compiler is broken, or we cross compile.
2856 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859 # If not cross compiling, check that we can run a simple program.
2860 if test "$cross_compiling" != yes; then
2861 if { ac_try='./$ac_file'
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_try") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2873 if test "$cross_compiling" = maybe; then
2876 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details." >&5
2879 echo "$as_me: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2886 { echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6; }
2889 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2890 ac_clean_files=$ac_clean_files_save
2891 # Check that the compiler produces executables we can run. If not, either
2892 # the compiler is broken, or we cross compile.
2893 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2894 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2895 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2896 echo "${ECHO_T}$cross_compiling" >&6; }
2898 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2899 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2900 if { (ac_try="$ac_link"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_link") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2911 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2912 # work properly (i.e., refer to `conftest.exe'), while it won't with
2914 for ac_file in conftest.exe conftest conftest.*; do
2915 test -f "$ac_file" || continue
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2931 rm -f conftest$ac_cv_exeext
2932 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2933 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2935 rm -f conftest.$ac_ext
2936 EXEEXT=$ac_cv_exeext
2938 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2939 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2940 if test "${ac_cv_objext+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 rm -f conftest.o conftest.obj
2959 if { (ac_try="$ac_compile"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 for ac_file in conftest.o conftest.obj conftest.*; do
2970 test -f "$ac_file" || continue;
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2991 echo "${ECHO_T}$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2994 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest.$ac_objext'
3228 { (case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_try") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3254 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3256 if test "$ac_test_CFLAGS" = set; then
3257 CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3265 if test "$GCC" = yes; then
3271 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3272 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_cc_c89+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_cv_prog_cc_c89=no
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3302 s = g (p, va_arg (v,int));
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3308 function prototypes and stuff, but not '\xHH' hex character constants.
3309 These don't provoke an error unfortunately, instead are silently treated
3310 as 'x'. The following induces an error, until -std is added to get
3311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3312 array size at least. It's necessary to write '\x00'==0 to get something
3313 that's true only with -std. */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3317 inside strings and character constants. */
3319 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321 int test (int i, double x);
3322 struct s1 {int (*f) (int a);};
3323 struct s2 {int (*f) (double a);};
3324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3336 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 CC="$ac_save_CC $ac_arg"
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3354 { (case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_try") 2>&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_try") 2>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 ac_cv_prog_cc_c89=$ac_arg
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext
3382 test "x$ac_cv_prog_cc_c89" != "xno" && break
3384 rm -f conftest.$ac_ext
3389 case "x$ac_cv_prog_cc_c89" in
3391 { echo "$as_me:$LINENO: result: none needed" >&5
3392 echo "${ECHO_T}none needed" >&6; } ;;
3394 { echo "$as_me:$LINENO: result: unsupported" >&5
3395 echo "${ECHO_T}unsupported" >&6; } ;;
3397 CC="$CC $ac_cv_prog_cc_c89"
3398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3416 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3421 if test -z "$CPP"; then
3422 if test "${ac_cv_prog_CPP+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3444 # include <limits.h>
3446 # include <assert.h>
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } >/dev/null; then
3463 if test -s conftest.err; then
3464 ac_cpp_err=$ac_c_preproc_warn_flag
3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472 if test -z "$ac_cpp_err"; then
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Broken: fails on valid input.
3482 rm -f conftest.err conftest.$ac_ext
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <ac_nonexistent.h>
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null; then
3507 if test -s conftest.err; then
3508 ac_cpp_err=$ac_c_preproc_warn_flag
3509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3528 rm -f conftest.err conftest.$ac_ext
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3548 for ac_c_preproc_warn_flag in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 # include <limits.h>
3565 # include <assert.h>
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null; then
3582 if test -s conftest.err; then
3583 ac_cpp_err=$ac_c_preproc_warn_flag
3584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3591 if test -z "$ac_cpp_err"; then
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 # Broken: fails on valid input.
3601 rm -f conftest.err conftest.$ac_ext
3603 # OK, works on sane cases. Now check whether nonexistent headers
3604 # can be detected and how.
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <ac_nonexistent.h>
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null; then
3626 if test -s conftest.err; then
3627 ac_cpp_err=$ac_c_preproc_warn_flag
3628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3635 if test -z "$ac_cpp_err"; then
3636 # Broken: success on invalid input.
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 # Passes both tests.
3647 rm -f conftest.err conftest.$ac_ext
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.$ac_ext
3652 if $ac_preproc_ok; then
3655 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&5
3657 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3658 See \`config.log' for more details." >&2;}
3659 { (exit 1); exit 1; }; }
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3670 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 # Extract the first word of "grep ggrep" to use in msg output
3675 if test -z "$GREP"; then
3676 set dummy grep ggrep; ac_prog_name=$2
3677 if test "${ac_cv_path_GREP+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_path_GREP_found=false
3681 # Loop through the user's path and test for each of PROGNAME-LIST
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 test -z "$as_dir" && as_dir=.
3687 for ac_prog in grep ggrep; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3690 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3691 # Check for GNU ac_path_GREP and select it if it is found.
3692 # Check for GNU $ac_path_GREP
3693 case `"$ac_path_GREP" --version 2>&1` in
3695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3701 cat "conftest.in" "conftest.in" >"conftest.tmp"
3702 mv "conftest.tmp" "conftest.in"
3703 cp "conftest.in" "conftest.nl"
3704 echo 'GREP' >> "conftest.nl"
3705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707 ac_count=`expr $ac_count + 1`
3708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3709 # Best one so far, save it but keep looking for a better one
3710 ac_cv_path_GREP="$ac_path_GREP"
3711 ac_path_GREP_max=$ac_count
3713 # 10*(2^10) chars as input seems more than enough
3714 test $ac_count -gt 10 && break
3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3720 $ac_path_GREP_found && break 3
3730 GREP="$ac_cv_path_GREP"
3731 if test -z "$GREP"; then
3732 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3733 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3734 { (exit 1); exit 1; }; }
3738 ac_cv_path_GREP=$GREP
3743 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3744 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3745 GREP="$ac_cv_path_GREP"
3748 { echo "$as_me:$LINENO: checking for egrep" >&5
3749 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_EGREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3754 then ac_cv_path_EGREP="$GREP -E"
3756 # Extract the first word of "egrep" to use in msg output
3757 if test -z "$EGREP"; then
3758 set dummy egrep; ac_prog_name=$2
3759 if test "${ac_cv_path_EGREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 ac_path_EGREP_found=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in egrep; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3772 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3773 # Check for GNU ac_path_EGREP and select it if it is found.
3774 # Check for GNU $ac_path_EGREP
3775 case `"$ac_path_EGREP" --version 2>&1` in
3777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 echo 'EGREP' >> "conftest.nl"
3787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 ac_count=`expr $ac_count + 1`
3790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_EGREP="$ac_path_EGREP"
3793 ac_path_EGREP_max=$ac_count
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 $ac_path_EGREP_found && break 3
3812 EGREP="$ac_cv_path_EGREP"
3813 if test -z "$EGREP"; then
3814 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816 { (exit 1); exit 1; }; }
3820 ac_cv_path_EGREP=$EGREP
3826 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3827 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3828 EGREP="$ac_cv_path_EGREP"
3831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3833 if test "${ac_cv_header_stdc+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_try") 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_cv_header_stdc=yes
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_cv_header_stdc=no
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 if test $ac_cv_header_stdc = yes; then
3900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 $EGREP "memchr" >/dev/null 2>&1; then
3914 ac_cv_header_stdc=no
3920 if test $ac_cv_header_stdc = yes; then
3921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "free" >/dev/null 2>&1; then
3935 ac_cv_header_stdc=no
3941 if test $ac_cv_header_stdc = yes; then
3942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3943 if test "$cross_compiling" = yes; then
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3954 #if ((' ' & 0x0FF) == 0x020)
3955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958 # define ISLOWER(c) \
3959 (('a' <= (c) && (c) <= 'i') \
3960 || ('j' <= (c) && (c) <= 'r') \
3961 || ('s' <= (c) && (c) <= 'z'))
3962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3970 for (i = 0; i < 256; i++)
3971 if (XOR (islower (i), ISLOWER (i))
3972 || toupper (i) != TOUPPER (i))
3977 rm -f conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_link") 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3988 { (case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_try") 2>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3999 echo "$as_me: program exited with status $ac_status" >&5
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_cv_header_stdc=no
4006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4014 if test $ac_cv_header_stdc = yes; then
4016 cat >>confdefs.h <<\_ACEOF
4017 #define STDC_HEADERS 1
4022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033 inttypes.h stdint.h unistd.h
4035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4049 #include <$ac_header>
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 eval "$as_ac_Header=yes"
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 eval "$as_ac_Header=no"
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_res=`eval echo '${'$as_ac_Header'}'`
4096 { echo "$as_me:$LINENO: result: $ac_res" >&5
4097 echo "${ECHO_T}$ac_res" >&6; }
4098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4110 if test "${ac_cv_c_bigendian+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 # See if sys/param.h defines the BYTE_ORDER macro.
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4126 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 # It does; now see whether it defined to BIG_ENDIAN or not.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <sys/types.h>
4176 #include <sys/param.h>
4181 #if BYTE_ORDER != BIG_ENDIAN
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4198 grep -v '^ *+' conftest.er1 >conftest.err
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_try") 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try='test -s conftest.$ac_objext'
4214 { (case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_try") 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 ac_cv_c_bigendian=yes
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 ac_cv_c_bigendian=no
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # It does not; compile a test program.
4237 if test "$cross_compiling" = yes; then
4238 # try to guess the endianness by grepping values into an object file
4239 ac_cv_c_bigendian=unknown
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4247 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4248 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4249 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4250 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4251 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4255 _ascii (); _ebcdic ();
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4295 ac_cv_c_bigendian=yes
4297 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4298 if test "$ac_cv_c_bigendian" = unknown; then
4299 ac_cv_c_bigendian=no
4301 # finding both strings is unlikely to happen, but who knows?
4302 ac_cv_c_bigendian=unknown
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4325 /* Are we little or big endian? From Harbison&Steele. */
4329 char c[sizeof (long int)];
4332 return u.c[sizeof (long int) - 1] == 1;
4338 rm -f conftest$ac_exeext
4339 if { (ac_try="$ac_link"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_link") 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_c_bigendian=no
4360 echo "$as_me: program exited with status $ac_status" >&5
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_c_bigendian=yes
4367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4376 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4377 case $ac_cv_c_bigendian in
4385 { { echo "$as_me:$LINENO: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4387 echo "$as_me: error: unknown endianness
4388 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4389 { (exit 1); exit 1; }; } ;;
4393 if test "$cross_compiling" = yes; then
4394 LLVM_CROSS_COMPILING=1
4397 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4398 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4399 if test "${ac_cv_build_exeext+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4403 ac_cv_build_exeext=.exe
4405 ac_build_prefix=${build_alias}-
4407 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_build_prefix}gcc; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$BUILD_CC"; then
4415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 BUILD_CC=$ac_cv_prog_BUILD_CC
4435 if test -n "$BUILD_CC"; then
4436 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4437 echo "${ECHO_T}$BUILD_CC" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test -z "$BUILD_CC"; then
4445 # Extract the first word of "gcc", so it can be a program name with args.
4446 set dummy gcc; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$BUILD_CC"; then
4453 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_BUILD_CC="gcc"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4482 if test -z "$BUILD_CC"; then
4483 # Extract the first word of "cc", so it can be a program name with args.
4484 set dummy cc; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$BUILD_CC"; then
4491 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502 ac_prog_rejected=yes
4505 ac_cv_prog_BUILD_CC="cc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 if test $ac_prog_rejected = yes; then
4514 # We found a bogon in the path, so make sure we never use it.
4515 set dummy $ac_cv_prog_BUILD_CC
4517 if test $# != 0; then
4518 # We chose a different compiler from the bogus one.
4519 # However, it has the same basename, so the bogon will be chosen
4520 # first if we set BUILD_CC to just the basename; use the full file name.
4522 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4527 BUILD_CC=$ac_cv_prog_BUILD_CC
4528 if test -n "$BUILD_CC"; then
4529 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4530 echo "${ECHO_T}$BUILD_CC" >&6; }
4532 { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4539 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4540 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4541 { (exit 1); exit 1; }; }
4542 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4544 echo 'int main () { return 0; }' > conftest.$ac_ext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4547 (eval $ac_build_link) 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; then
4551 for file in conftest.*; do
4553 *.c | *.o | *.obj | *.dSYM) ;;
4554 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4558 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4559 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4560 { (exit 1); exit 1; }; }
4563 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4568 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4569 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4570 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4571 ac_build_exeext=$BUILD_EXEEXT
4573 ac_build_prefix=${build_alias}-
4574 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4575 set dummy ${ac_build_prefix}g++; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 if test -n "$BUILD_CXX"; then
4582 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4602 if test -n "$BUILD_CXX"; then
4603 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4604 echo "${ECHO_T}$BUILD_CXX" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 if test -z "$BUILD_CXX"; then
4612 # Extract the first word of "g++", so it can be a program name with args.
4613 set dummy g++; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$BUILD_CXX"; then
4620 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CXX="g++"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 if test -z "$BUILD_CXX"; then
4650 # Extract the first word of "c++", so it can be a program name with args.
4651 set dummy c++; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$BUILD_CXX"; then
4658 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4669 ac_prog_rejected=yes
4672 ac_cv_prog_BUILD_CXX="c++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 if test $ac_prog_rejected = yes; then
4681 # We found a bogon in the path, so make sure we never use it.
4682 set dummy $ac_cv_prog_BUILD_CXX
4684 if test $# != 0; then
4685 # We chose a different compiler from the bogus one.
4686 # However, it has the same basename, so the bogon will be chosen
4687 # first if we set BUILD_CXX to just the basename; use the full file name.
4689 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4694 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4695 if test -n "$BUILD_CXX"; then
4696 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4697 echo "${ECHO_T}$BUILD_CXX" >&6; }
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4707 LLVM_CROSS_COMPILING=0
4711 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4722 # Check whether --enable-optimized was given.
4723 if test "${enable_optimized+set}" = set; then
4724 enableval=$enable_optimized;
4729 if test ${enableval} = "no" ; then
4733 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4737 # Check whether --enable-profiling was given.
4738 if test "${enable_profiling+set}" = set; then
4739 enableval=$enable_profiling;
4744 if test ${enableval} = "no" ; then
4748 ENABLE_PROFILING=ENABLE_PROFILING=1
4752 # Check whether --enable-assertions was given.
4753 if test "${enable_assertions+set}" = set; then
4754 enableval=$enable_assertions;
4759 if test ${enableval} = "yes" ; then
4763 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4767 # Check whether --enable-expensive-checks was given.
4768 if test "${enable_expensive_checks+set}" = set; then
4769 enableval=$enable_expensive_checks;
4774 if test ${enableval} = "yes" ; then
4775 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4777 EXPENSIVE_CHECKS=yes
4780 ENABLE_EXPENSIVE_CHECKS=
4786 # Check whether --enable-debug-runtime was given.
4787 if test "${enable_debug_runtime+set}" = set; then
4788 enableval=$enable_debug_runtime;
4793 if test ${enableval} = "no" ; then
4797 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4801 # Check whether --enable-jit was given.
4802 if test "${enable_jit+set}" = set; then
4803 enableval=$enable_jit;
4808 if test ${enableval} = "no"
4813 case "$llvm_cv_target_arch" in
4814 x86) TARGET_HAS_JIT=1
4816 Sparc) TARGET_HAS_JIT=0
4818 PowerPC) TARGET_HAS_JIT=1
4820 x86_64) TARGET_HAS_JIT=1
4822 Alpha) TARGET_HAS_JIT=1
4824 IA64) TARGET_HAS_JIT=0
4826 ARM) TARGET_HAS_JIT=0
4828 Mips) TARGET_HAS_JIT=0
4830 PIC16) TARGET_HAS_JIT=0
4832 XCore) TARGET_HAS_JIT=0
4834 MSP430) TARGET_HAS_JIT=0
4841 # Check whether --enable-doxygen was given.
4842 if test "${enable_doxygen+set}" = set; then
4843 enableval=$enable_doxygen;
4848 case "$enableval" in
4849 yes) ENABLE_DOXYGEN=1
4851 no) ENABLE_DOXYGEN=0
4853 default) ENABLE_DOXYGEN=0
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4860 # Check whether --enable-threads was given.
4861 if test "${enable_threads+set}" = set; then
4862 enableval=$enable_threads;
4867 case "$enableval" in
4868 yes) ENABLE_THREADS=1
4870 no) ENABLE_THREADS=0
4872 default) ENABLE_THREADS=1
4874 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4875 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4876 { (exit 1); exit 1; }; } ;;
4879 cat >>confdefs.h <<_ACEOF
4880 #define ENABLE_THREADS $ENABLE_THREADS
4884 # Check whether --enable-pic was given.
4885 if test "${enable_pic+set}" = set; then
4886 enableval=$enable_pic;
4891 case "$enableval" in
4896 default) ENABLE_PIC=1
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4903 cat >>confdefs.h <<_ACEOF
4904 #define ENABLE_PIC $ENABLE_PIC
4909 # Check whether --enable-targets was given.
4910 if test "${enable_targets+set}" = set; then
4911 enableval=$enable_targets;
4916 case "$enableval" in
4917 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4919 case "$llvm_cv_target_arch" in
4920 x86) TARGETS_TO_BUILD="X86" ;;
4921 x86_64) TARGETS_TO_BUILD="X86" ;;
4922 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4923 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4924 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4925 IA64) TARGETS_TO_BUILD="IA64" ;;
4926 ARM) TARGETS_TO_BUILD="ARM" ;;
4927 Mips) TARGETS_TO_BUILD="Mips" ;;
4928 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4929 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4930 XCore) TARGETS_TO_BUILD="XCore" ;;
4931 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4932 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4933 echo "$as_me: error: Can not set target to build" >&2;}
4934 { (exit 1); exit 1; }; } ;;
4937 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4945 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4946 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4947 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4948 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4949 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4950 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4954 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4955 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4961 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4964 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4965 # Targets.def and AsmPrinters.def.
4966 LLVM_ENUM_TARGETS=""
4967 LLVM_ENUM_ASM_PRINTERS=""
4968 for target_to_build in $TARGETS_TO_BUILD; do
4969 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4970 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4971 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4977 # Check whether --enable-cbe-printf-a was given.
4978 if test "${enable_cbe_printf_a+set}" = set; then
4979 enableval=$enable_cbe_printf_a;
4984 case "$enableval" in
4985 yes) ENABLE_CBE_PRINTF_A=1
4987 no) ENABLE_CBE_PRINTF_A=0
4989 default) ENABLE_CBE_PRINTF_A=1
4991 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993 { (exit 1); exit 1; }; } ;;
4996 cat >>confdefs.h <<_ACEOF
4997 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5002 # Check whether --with-llvmgccdir was given.
5003 if test "${with_llvmgccdir+set}" = set; then
5004 withval=$with_llvmgccdir;
5010 default) WITH_LLVMGCCDIR=default ;;
5011 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5012 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5018 # Check whether --with-llvmgcc was given.
5019 if test "${with_llvmgcc+set}" = set; then
5020 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5026 # Check whether --with-llvmgxx was given.
5027 if test "${with_llvmgxx+set}" = set; then
5028 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5033 if test -n "$LLVMGCC"; then
5034 LLVMGCCCOMMAND="$LLVMGCC"
5037 if test -n "$LLVMGXX"; then
5038 LLVMGXXCOMMAND="$LLVMGXX"
5041 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5042 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044 { (exit 1); exit 1; }; };
5047 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5048 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050 { (exit 1); exit 1; }; };
5054 # Check whether --with-extra-options was given.
5055 if test "${with_extra_options+set}" = set; then
5056 withval=$with_extra_options;
5062 default) EXTRA_OPTIONS= ;;
5063 *) EXTRA_OPTIONS=$withval ;;
5065 EXTRA_OPTIONS=$EXTRA_OPTIONS
5068 # Check whether --enable-bindings was given.
5069 if test "${enable_bindings+set}" = set; then
5070 enableval=$enable_bindings;
5075 BINDINGS_TO_BUILD=""
5076 case "$enableval" in
5077 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5078 all ) BINDINGS_TO_BUILD="ocaml" ;;
5079 none | no) BINDINGS_TO_BUILD="" ;;
5080 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5081 case "$a_binding" in
5082 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5083 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5084 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5092 # Check whether --with-ocaml-libdir was given.
5093 if test "${with_ocaml_libdir+set}" = set; then
5094 withval=$with_ocaml_libdir;
5100 auto) with_ocaml_libdir="$withval" ;;
5101 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5103 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5108 # Check whether --with-binutils-include was given.
5109 if test "${with_binutils_include+set}" = set; then
5110 withval=$with_binutils_include;
5116 default) WITH_BINUTILS_INCDIR=default ;;
5117 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5118 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5119 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5122 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5123 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5125 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5126 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5127 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5128 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5129 { (exit 1); exit 1; }; };
5133 # Check whether --enable-libffi was given.
5134 if test "${enable_libffi+set}" = set; then
5135 enableval=$enable_libffi;
5140 case "$enableval" in
5141 yes) llvm_cv_enable_libffi="yes" ;;
5142 no) llvm_cv_enable_libffi="no" ;;
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5156 # On Suns, sometimes $CPP names a directory.
5157 if test -n "$CPP" && test -d "$CPP"; then
5160 if test -z "$CPP"; then
5161 if test "${ac_cv_prog_CPP+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 # Double quotes because CPP needs to be expanded
5165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5168 for ac_c_preproc_warn_flag in '' yes
5170 # Use a header file that comes with gcc, so configuring glibc
5171 # with a fresh cross-compiler works.
5172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 # <limits.h> exists even on freestanding compilers.
5174 # On the NeXT, cc -E runs the code through the compiler's parser,
5175 # not just through cpp. "Syntax error" is here to catch this case.
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5183 # include <limits.h>
5185 # include <assert.h>
5189 if { (ac_try="$ac_cpp conftest.$ac_ext"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_c_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5211 if test -z "$ac_cpp_err"; then
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 # Broken: fails on valid input.
5221 rm -f conftest.err conftest.$ac_ext
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <ac_nonexistent.h>
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev/null; then
5246 if test -s conftest.err; then
5247 ac_cpp_err=$ac_c_preproc_warn_flag
5248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5255 if test -z "$ac_cpp_err"; then
5256 # Broken: success on invalid input.
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 # Passes both tests.
5267 rm -f conftest.err conftest.$ac_ext
5270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5271 rm -f conftest.err conftest.$ac_ext
5272 if $ac_preproc_ok; then
5284 { echo "$as_me:$LINENO: result: $CPP" >&5
5285 echo "${ECHO_T}$CPP" >&6; }
5287 for ac_c_preproc_warn_flag in '' yes
5289 # Use a header file that comes with gcc, so configuring glibc
5290 # with a fresh cross-compiler works.
5291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292 # <limits.h> exists even on freestanding compilers.
5293 # On the NeXT, cc -E runs the code through the compiler's parser,
5294 # not just through cpp. "Syntax error" is here to catch this case.
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 # include <limits.h>
5304 # include <assert.h>
5308 if { (ac_try="$ac_cpp conftest.$ac_ext"
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5316 grep -v '^ *+' conftest.er1 >conftest.err
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5330 if test -z "$ac_cpp_err"; then
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5336 # Broken: fails on valid input.
5340 rm -f conftest.err conftest.$ac_ext
5342 # OK, works on sane cases. Now check whether nonexistent headers
5343 # can be detected and how.
5344 cat >conftest.$ac_ext <<_ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <ac_nonexistent.h>
5352 if { (ac_try="$ac_cpp conftest.$ac_ext"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } >/dev/null; then
5365 if test -s conftest.err; then
5366 ac_cpp_err=$ac_c_preproc_warn_flag
5367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374 if test -z "$ac_cpp_err"; then
5375 # Broken: success on invalid input.
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 # Passes both tests.
5386 rm -f conftest.err conftest.$ac_ext
5389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390 rm -f conftest.err conftest.$ac_ext
5391 if $ac_preproc_ok; then
5394 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5395 See \`config.log' for more details." >&5
5396 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5397 See \`config.log' for more details." >&2;}
5398 { (exit 1); exit 1; }; }
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419 if test "${ac_cv_prog_CC+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 if test -n "$CC"; then
5423 ac_cv_prog_CC="$CC" # Let the user override the test.
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 if test -n "$CC"; then
5444 { echo "$as_me:$LINENO: result: $CC" >&5
5445 echo "${ECHO_T}$CC" >&6; }
5447 { echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6; }
5452 test -n "$CC" && break
5455 if test -z "$CC"; then
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 if test -n "$ac_ct_CC"; then
5467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_ac_ct_CC="$ac_prog"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5487 if test -n "$ac_ct_CC"; then
5488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5489 echo "${ECHO_T}$ac_ct_CC" >&6; }
5491 { echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6; }
5496 test -n "$ac_ct_CC" && break
5499 if test "x$ac_ct_CC" = x; then
5502 case $cross_compiling:$ac_tool_warned in
5504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5505 whose name does not start with the host triplet. If you think this
5506 configuration is useful to you, please write to autoconf@gnu.org." >&5
5507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5508 whose name does not start with the host triplet. If you think this
5509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5510 ac_tool_warned=yes ;;
5517 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5518 See \`config.log' for more details." >&5
5519 echo "$as_me: error: no acceptable C compiler found in \$PATH
5520 See \`config.log' for more details." >&2;}
5521 { (exit 1); exit 1; }; }
5523 # Provide some information about the compiler.
5524 echo "$as_me:$LINENO: checking for C compiler version" >&5
5525 ac_compiler=`set X $ac_compile; echo $2`
5526 { (ac_try="$ac_compiler --version >&5"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compiler --version >&5") 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }
5536 { (ac_try="$ac_compiler -v >&5"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compiler -v >&5") 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }
5546 { (ac_try="$ac_compiler -V >&5"
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compiler -V >&5") 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5557 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5558 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5559 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5626 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5627 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5628 GCC=`test $ac_compiler_gnu = yes && echo yes`
5629 ac_test_CFLAGS=${CFLAGS+set}
5630 ac_save_CFLAGS=$CFLAGS
5631 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5632 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_cc_g+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_save_c_werror_flag=$ac_c_werror_flag
5637 ac_c_werror_flag=yes
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_try") 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_compile") 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5781 { (case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_try") 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 ac_c_werror_flag=$ac_save_c_werror_flag
5817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5819 if test "$ac_test_CFLAGS" = set; then
5820 CFLAGS=$ac_save_CFLAGS
5821 elif test $ac_cv_prog_cc_g = yes; then
5822 if test "$GCC" = yes; then
5828 if test "$GCC" = yes; then
5834 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5835 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_c89+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_cv_prog_cc_c89=no
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5849 #include <sys/types.h>
5850 #include <sys/stat.h>
5851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5852 struct buf { int x; };
5853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5854 static char *e (p, i)
5860 static char *f (char * (*g) (char **, int), char **p, ...)
5865 s = g (p, va_arg (v,int));
5870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5871 function prototypes and stuff, but not '\xHH' hex character constants.
5872 These don't provoke an error unfortunately, instead are silently treated
5873 as 'x'. The following induces an error, until -std is added to get
5874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5875 array size at least. It's necessary to write '\x00'==0 to get something
5876 that's true only with -std. */
5877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5880 inside strings and character constants. */
5882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5884 int test (int i, double x);
5885 struct s1 {int (*f) (int a);};
5886 struct s2 {int (*f) (double a);};
5887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5901 CC="$ac_save_CC $ac_arg"
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917 { (case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_prog_cc_c89=$ac_arg
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext
5945 test "x$ac_cv_prog_cc_c89" != "xno" && break
5947 rm -f conftest.$ac_ext
5952 case "x$ac_cv_prog_cc_c89" in
5954 { echo "$as_me:$LINENO: result: none needed" >&5
5955 echo "${ECHO_T}none needed" >&6; } ;;
5957 { echo "$as_me:$LINENO: result: unsupported" >&5
5958 echo "${ECHO_T}unsupported" >&6; } ;;
5960 CC="$CC $ac_cv_prog_cc_c89"
5961 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5962 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5967 ac_cpp='$CPP $CPPFLAGS'
5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973 ac_cpp='$CXXCPP $CPPFLAGS'
5974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5977 if test -z "$CXX"; then
5978 if test -n "$CCC"; then
5981 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_CXX+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 if test -n "$CXX"; then
5992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 if test -n "$CXX"; then
6013 { echo "$as_me:$LINENO: result: $CXX" >&5
6014 echo "${ECHO_T}$CXX" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 test -n "$CXX" && break
6024 if test -z "$CXX"; then
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 if test -n "$ac_ct_CXX"; then
6036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_CXX="$ac_prog"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6056 if test -n "$ac_ct_CXX"; then
6057 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6058 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6060 { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6065 test -n "$ac_ct_CXX" && break
6068 if test "x$ac_ct_CXX" = x; then
6071 case $cross_compiling:$ac_tool_warned in
6073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6074 whose name does not start with the host triplet. If you think this
6075 configuration is useful to you, please write to autoconf@gnu.org." >&5
6076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6077 whose name does not start with the host triplet. If you think this
6078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6079 ac_tool_warned=yes ;;
6087 # Provide some information about the compiler.
6088 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6089 ac_compiler=`set X $ac_compile; echo $2`
6090 { (ac_try="$ac_compiler --version >&5"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compiler --version >&5") 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }
6100 { (ac_try="$ac_compiler -v >&5"
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compiler -v >&5") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }
6110 { (ac_try="$ac_compiler -V >&5"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler -V >&5") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6121 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6122 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6123 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6144 rm -f conftest.$ac_objext
6145 if { (ac_try="$ac_compile"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6153 grep -v '^ *+' conftest.er1 >conftest.err
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6159 { (case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_try") 2>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest.$ac_objext'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6190 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6191 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6192 GXX=`test $ac_compiler_gnu = yes && echo yes`
6193 ac_test_CXXFLAGS=${CXXFLAGS+set}
6194 ac_save_CXXFLAGS=$CXXFLAGS
6195 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6196 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_cxx_g+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6201 ac_cxx_werror_flag=yes
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_try") 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_prog_cxx_g=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_try") 2>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6345 { (case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_try") 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_prog_cxx_g=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6382 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6383 if test "$ac_test_CXXFLAGS" = set; then
6384 CXXFLAGS=$ac_save_CXXFLAGS
6385 elif test $ac_cv_prog_cxx_g = yes; then
6386 if test "$GXX" = yes; then
6392 if test "$GXX" = yes; then
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6406 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6407 if test "${lt_cv_path_NM+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 if test -n "$NM"; then
6411 # Let the user override the test.
6414 lt_nm_to_check="${ac_tool_prefix}nm"
6415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6416 lt_nm_to_check="$lt_nm_to_check nm"
6418 for lt_tmp_nm in $lt_nm_to_check; do
6419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6422 test -z "$ac_dir" && ac_dir=.
6423 tmp_nm="$ac_dir/$lt_tmp_nm"
6424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6425 # Check to see if the nm accepts a BSD-compat flag.
6426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6427 # nm: unknown option "B" ignored
6428 # Tru64's nm complains that /dev/null is an invalid object file
6429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6430 */dev/null* | *'Invalid file or object type'*)
6431 lt_cv_path_NM="$tmp_nm -B"
6435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6437 lt_cv_path_NM="$tmp_nm -p"
6441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6442 continue # so that we can try to find one that supports BSD flags
6451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6454 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6455 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6460 { echo "$as_me:$LINENO: checking for GNU make" >&5
6461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6462 if test "${llvm_cv_gnu_make_command+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 llvm_cv_gnu_make_command=''
6466 for a in "$MAKE" make gmake gnumake ; do
6467 if test -z "$a" ; then continue ; fi ;
6468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6470 llvm_cv_gnu_make_command=$a ;
6475 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6481 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6482 echo "${ECHO_T}\"Not found\"" >&6; };
6486 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6489 if test "$LN_S" = "ln -s"; then
6490 { echo "$as_me:$LINENO: result: yes" >&5
6491 echo "${ECHO_T}yes" >&6; }
6493 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6494 echo "${ECHO_T}no, using $LN_S" >&6; }
6497 # Extract the first word of "cmp", so it can be a program name with args.
6498 set dummy cmp; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_CMP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6529 if test -n "$CMP"; then
6530 { echo "$as_me:$LINENO: result: $CMP" >&5
6531 echo "${ECHO_T}$CMP" >&6; }
6533 { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6538 # Extract the first word of "cp", so it can be a program name with args.
6539 set dummy cp; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_CP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6570 if test -n "$CP"; then
6571 { echo "$as_me:$LINENO: result: $CP" >&5
6572 echo "${ECHO_T}$CP" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6579 # Extract the first word of "date", so it can be a program name with args.
6580 set dummy date; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_DATE+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6610 DATE=$ac_cv_path_DATE
6611 if test -n "$DATE"; then
6612 { echo "$as_me:$LINENO: result: $DATE" >&5
6613 echo "${ECHO_T}$DATE" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6620 # Extract the first word of "find", so it can be a program name with args.
6621 set dummy find; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_FIND+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6651 FIND=$ac_cv_path_FIND
6652 if test -n "$FIND"; then
6653 { echo "$as_me:$LINENO: result: $FIND" >&5
6654 echo "${ECHO_T}$FIND" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6661 # Extract the first word of "grep", so it can be a program name with args.
6662 set dummy grep; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_GREP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6692 GREP=$ac_cv_path_GREP
6693 if test -n "$GREP"; then
6694 { echo "$as_me:$LINENO: result: $GREP" >&5
6695 echo "${ECHO_T}$GREP" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6702 # Extract the first word of "mkdir", so it can be a program name with args.
6703 set dummy mkdir; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_MKDIR+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6733 MKDIR=$ac_cv_path_MKDIR
6734 if test -n "$MKDIR"; then
6735 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6736 echo "${ECHO_T}$MKDIR" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6743 # Extract the first word of "mv", so it can be a program name with args.
6744 set dummy mv; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_MV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6775 if test -n "$MV"; then
6776 { echo "$as_me:$LINENO: result: $MV" >&5
6777 echo "${ECHO_T}$MV" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_RANLIB+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 if test -n "$RANLIB"; then
6793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 RANLIB=$ac_cv_prog_RANLIB
6813 if test -n "$RANLIB"; then
6814 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6815 echo "${ECHO_T}$RANLIB" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6823 if test -z "$ac_cv_prog_RANLIB"; then
6824 ac_ct_RANLIB=$RANLIB
6825 # Extract the first word of "ranlib", so it can be a program name with args.
6826 set dummy ranlib; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 if test -n "$ac_ct_RANLIB"; then
6833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_ac_ct_RANLIB="ranlib"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6855 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6861 if test "x$ac_ct_RANLIB" = x; then
6864 case $cross_compiling:$ac_tool_warned in
6866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&5
6869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet. If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872 ac_tool_warned=yes ;;
6874 RANLIB=$ac_ct_RANLIB
6877 RANLIB="$ac_cv_prog_RANLIB"
6880 # Extract the first word of "rm", so it can be a program name with args.
6881 set dummy rm; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_RM+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6912 if test -n "$RM"; then
6913 { echo "$as_me:$LINENO: result: $RM" >&5
6914 echo "${ECHO_T}$RM" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 # Extract the first word of "sed", so it can be a program name with args.
6922 set dummy sed; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_SED+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6953 if test -n "$SED"; then
6954 { echo "$as_me:$LINENO: result: $SED" >&5
6955 echo "${ECHO_T}$SED" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 # Extract the first word of "tar", so it can be a program name with args.
6963 set dummy tar; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_TAR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6994 if test -n "$TAR"; then
6995 { echo "$as_me:$LINENO: result: $TAR" >&5
6996 echo "${ECHO_T}$TAR" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "pwd", so it can be a program name with args.
7004 set dummy pwd; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_BINPWD+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7034 BINPWD=$ac_cv_path_BINPWD
7035 if test -n "$BINPWD"; then
7036 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7037 echo "${ECHO_T}$BINPWD" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7045 # Extract the first word of "Graphviz", so it can be a program name with args.
7046 set dummy Graphviz; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7076 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7077 if test -n "$GRAPHVIZ"; then
7078 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7079 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_GRAPHVIZ 1
7092 if test "$llvm_cv_os_type" = "MingW" ; then
7093 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7096 cat >>confdefs.h <<_ACEOF
7097 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7101 # Extract the first word of "dot", so it can be a program name with args.
7102 set dummy dot; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_DOT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7133 if test -n "$DOT"; then
7134 { echo "$as_me:$LINENO: result: $DOT" >&5
7135 echo "${ECHO_T}$DOT" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 if test "$DOT" != "echo dot" ; then
7144 cat >>confdefs.h <<\_ACEOF
7148 if test "$llvm_cv_os_type" = "MingW" ; then
7149 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7152 cat >>confdefs.h <<_ACEOF
7153 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7157 for ac_prog in gv gsview32
7159 # Extract the first word of "$ac_prog", so it can be a program name with args.
7160 set dummy $ac_prog; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_GV+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 if test -n "$GV"; then
7191 { echo "$as_me:$LINENO: result: $GV" >&5
7192 echo "${ECHO_T}$GV" >&6; }
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7199 test -n "$GV" && break
7201 test -n "$GV" || GV="echo gv"
7203 if test "$GV" != "echo gv" ; then
7205 cat >>confdefs.h <<\_ACEOF
7209 if test "$llvm_cv_os_type" = "MingW" ; then
7210 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7213 cat >>confdefs.h <<_ACEOF
7214 #define LLVM_PATH_GV "$GV${EXEEXT}"
7218 # Extract the first word of "dotty", so it can be a program name with args.
7219 set dummy dotty; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_DOTTY+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7249 DOTTY=$ac_cv_path_DOTTY
7250 if test -n "$DOTTY"; then
7251 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7252 echo "${ECHO_T}$DOTTY" >&6; }
7254 { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7259 if test "$DOTTY" != "echo dotty" ; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_DOTTY 1
7265 if test "$llvm_cv_os_type" = "MingW" ; then
7266 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7269 cat >>confdefs.h <<_ACEOF
7270 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7276 # Extract the first word of "perl", so it can be a program name with args.
7277 set dummy perl; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_PERL+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7307 PERL=$ac_cv_path_PERL
7308 if test -n "$PERL"; then
7309 { echo "$as_me:$LINENO: result: $PERL" >&5
7310 echo "${ECHO_T}$PERL" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 if test "$PERL" != "none"; then
7318 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7319 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7320 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7321 { echo "$as_me:$LINENO: result: yes" >&5
7322 echo "${ECHO_T}yes" >&6; }
7325 { echo "$as_me:$LINENO: result: not found" >&5
7326 echo "${ECHO_T}not found" >&6; }
7331 if test x"$PERL" = xnone; then
7334 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7335 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7336 { (exit 1); exit 1; }; }
7342 # Find a good install program. We prefer a C program (faster),
7343 # so one script is as good as another. But avoid the broken or
7344 # incompatible versions:
7345 # SysV /etc/install, /usr/sbin/install
7346 # SunOS /usr/etc/install
7347 # IRIX /sbin/install
7349 # AmigaOS /C/install, which installs bootblocks on floppy discs
7350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7353 # OS/2's system install, which has a completely different semantic
7354 # ./install, which can be erroneously created by make from ./install.sh.
7355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7357 if test -z "$INSTALL"; then
7358 if test "${ac_cv_path_install+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 # Account for people who put trailing slashes in PATH elements.
7368 ./ | .// | /cC/* | \
7369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7373 # OSF1 and SCO ODT 3.0 have their own names for install.
7374 # Don't use installbsd from OSF since it installs stuff as root
7376 for ac_prog in ginstall scoinst install; do
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7379 if test $ac_prog = install &&
7380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7381 # AIX install. It has an incompatible calling convention.
7383 elif test $ac_prog = install &&
7384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7385 # program-specific install script used by HP pwplus--don't use.
7388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7401 if test "${ac_cv_path_install+set}" = set; then
7402 INSTALL=$ac_cv_path_install
7404 # As a last resort, use the slow shell script. Don't cache a
7405 # value for INSTALL within a source directory, because that will
7406 # break other packages using the cache if that directory is
7407 # removed, or if the value is a relative name.
7408 INSTALL=$ac_install_sh
7411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7412 echo "${ECHO_T}$INSTALL" >&6; }
7414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7415 # It thinks the first close brace ends the variable substitution.
7416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7423 # Extract the first word of "bzip2", so it can be a program name with args.
7424 set dummy bzip2; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_BZIP2+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 BZIP2=$ac_cv_path_BZIP2
7454 if test -n "$BZIP2"; then
7455 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456 echo "${ECHO_T}$BZIP2" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "doxygen", so it can be a program name with args.
7464 set dummy doxygen; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 DOXYGEN=$ac_cv_path_DOXYGEN
7494 if test -n "$DOXYGEN"; then
7495 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496 echo "${ECHO_T}$DOXYGEN" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "groff", so it can be a program name with args.
7504 set dummy groff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 GROFF=$ac_cv_path_GROFF
7534 if test -n "$GROFF"; then
7535 { echo "$as_me:$LINENO: result: $GROFF" >&5
7536 echo "${ECHO_T}$GROFF" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 # Extract the first word of "gzip", so it can be a program name with args.
7544 set dummy gzip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_GZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 GZIP=$ac_cv_path_GZIP
7574 if test -n "$GZIP"; then
7575 { echo "$as_me:$LINENO: result: $GZIP" >&5
7576 echo "${ECHO_T}$GZIP" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 # Extract the first word of "pod2html", so it can be a program name with args.
7584 set dummy pod2html; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_POD2HTML+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 POD2HTML=$ac_cv_path_POD2HTML
7614 if test -n "$POD2HTML"; then
7615 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7616 echo "${ECHO_T}$POD2HTML" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 # Extract the first word of "pod2man", so it can be a program name with args.
7624 set dummy pod2man; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_POD2MAN+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 POD2MAN=$ac_cv_path_POD2MAN
7654 if test -n "$POD2MAN"; then
7655 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7656 echo "${ECHO_T}$POD2MAN" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 # Extract the first word of "runtest", so it can be a program name with args.
7664 set dummy runtest; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_RUNTEST+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 RUNTEST=$ac_cv_path_RUNTEST
7694 if test -n "$RUNTEST"; then
7695 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7696 echo "${ECHO_T}$RUNTEST" >&6; }
7698 { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7705 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7706 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7708 # Check whether --with-tclinclude was given.
7709 if test "${with_tclinclude+set}" = set; then
7710 withval=$with_tclinclude; with_tclinclude=${withval}
7715 if test "${ac_cv_path_tclsh+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 if test x"${with_tclinclude}" != x ; then
7720 if test -f ${with_tclinclude}/tclsh ; then
7721 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7722 elif test -f ${with_tclinclude}/src/tclsh ; then
7723 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7725 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7726 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7727 { (exit 1); exit 1; }; }
7731 if test x"${ac_cv_path_tclsh}" = x ; then
7732 { echo "$as_me:$LINENO: result: none" >&5
7733 echo "${ECHO_T}none" >&6; }
7734 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7736 # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_TCLSH+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 TCLSH=$ac_cv_path_TCLSH
7767 if test -n "$TCLSH"; then
7768 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7769 echo "${ECHO_T}$TCLSH" >&6; }
7771 { echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6; }
7776 test -n "$TCLSH" && break
7779 if test x"${TCLSH}" = x ; then
7780 ac_cv_path_tclsh='';
7782 ac_cv_path_tclsh="${TCLSH}";
7785 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7786 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7787 TCLSH="${ac_cv_path_tclsh}"
7793 # Extract the first word of "zip", so it can be a program name with args.
7794 set dummy zip; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_path_ZIP+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 if test -n "$ZIP"; then
7825 { echo "$as_me:$LINENO: result: $ZIP" >&5
7826 echo "${ECHO_T}$ZIP" >&6; }
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7833 for ac_prog in ocamlc
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839 if test "${ac_cv_path_OCAMLC+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 OCAMLC=$ac_cv_path_OCAMLC
7866 if test -n "$OCAMLC"; then
7867 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7868 echo "${ECHO_T}$OCAMLC" >&6; }
7870 { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7875 test -n "$OCAMLC" && break
7878 for ac_prog in ocamlopt
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7884 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 OCAMLOPT=$ac_cv_path_OCAMLOPT
7911 if test -n "$OCAMLOPT"; then
7912 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7913 echo "${ECHO_T}$OCAMLOPT" >&6; }
7915 { echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6; }
7920 test -n "$OCAMLOPT" && break
7923 for ac_prog in ocamldep
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 OCAMLDEP=$ac_cv_path_OCAMLDEP
7956 if test -n "$OCAMLDEP"; then
7957 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7958 echo "${ECHO_T}$OCAMLDEP" >&6; }
7960 { echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6; }
7965 test -n "$OCAMLDEP" && break
7968 for ac_prog in ocamldoc
7970 # Extract the first word of "$ac_prog", so it can be a program name with args.
7971 set dummy $ac_prog; ac_word=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 OCAMLDOC=$ac_cv_path_OCAMLDOC
8001 if test -n "$OCAMLDOC"; then
8002 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8003 echo "${ECHO_T}$OCAMLDOC" >&6; }
8005 { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8010 test -n "$OCAMLDOC" && break
8013 for ac_prog in gas as
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019 if test "${ac_cv_path_GAS+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 if test -n "$GAS"; then
8047 { echo "$as_me:$LINENO: result: $GAS" >&5
8048 echo "${ECHO_T}$GAS" >&6; }
8050 { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8055 test -n "$GAS" && break
8059 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8060 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8061 if test "${llvm_cv_link_use_r+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 ac_cpp='$CPP $CPPFLAGS'
8066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071 CFLAGS="$CFLAGS -Wl,-R."
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8082 int main() { return 0; }
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 llvm_cv_link_use_r=yes
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 llvm_cv_link_use_r=no
8129 rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8141 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8142 if test "$llvm_cv_link_use_r" = yes ; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_LINK_R 1
8151 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8152 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8153 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8174 int main() { return 0; }
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_link") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_try") 2>&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 llvm_cv_link_use_export_dynamic=yes
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 llvm_cv_link_use_export_dynamic=no
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8232 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8233 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8234 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LINK_EXPORT_DYNAMIC 1
8245 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8247 if test "${ac_cv_c_const+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8260 /* FIXME: Include the comments suggested by Paul. */
8262 /* Ultrix mips cc rejects this. */
8263 typedef int charset[2];
8265 /* SunOS 4.1.1 cc rejects this. */
8266 char const *const *ccp;
8268 /* NEC SVR4.0.2 mips cc rejects this. */
8269 struct point {int x, y;};
8270 static struct point const zero = {0,0};
8271 /* AIX XL C 1.02.0.0 rejects this.
8272 It does not let you subtract one const X* pointer from another in
8273 an arm of an if-expression whose if-part is not a constant
8275 const char *g = "string";
8276 ccp = &g + (g ? g-g : 0);
8277 /* HPUX 7.0 cc rejects these. */
8280 ccp = (char const *const *) p;
8281 { /* SCO 3.2v4 cc rejects this. */
8283 char const *s = 0 ? (char *) 0 : (char const *) 0;
8288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8290 const int *foo = &x[0];
8293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8294 typedef const int *iptr;
8298 { /* AIX XL C 1.02.0.0 rejects this saying
8299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8300 struct s { int j; const int *ap[3]; };
8301 struct s *b; b->j = 5;
8303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8307 return !x[0] && !zero.x;
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_try") 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_try") 2>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8359 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8360 if test $ac_cv_c_const = no; then
8362 cat >>confdefs.h <<\_ACEOF
8374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8375 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8376 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8377 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 eval "$as_ac_Header=yes"
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 eval "$as_ac_Header=no"
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 ac_res=`eval echo '${'$as_ac_Header'}'`
8444 { echo "$as_me:$LINENO: result: $ac_res" >&5
8445 echo "${ECHO_T}$ac_res" >&6; }
8446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8447 cat >>confdefs.h <<_ACEOF
8448 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8451 ac_header_dirent=$ac_hdr; break
8455 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8456 if test $ac_header_dirent = dirent.h; then
8457 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8459 if test "${ac_cv_search_opendir+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 ac_func_search_save_LIBS=$LIBS
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8470 /* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
8485 for ac_lib in '' dir; do
8486 if test -z "$ac_lib"; then
8487 ac_res="none required"
8490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_try") 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_search_opendir=$ac_res
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8534 rm -f core conftest.err conftest.$ac_objext \
8536 if test "${ac_cv_search_opendir+set}" = set; then
8540 if test "${ac_cv_search_opendir+set}" = set; then
8543 ac_cv_search_opendir=no
8546 LIBS=$ac_func_search_save_LIBS
8548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8550 ac_res=$ac_cv_search_opendir
8551 if test "$ac_res" != no; then
8552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8557 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8559 if test "${ac_cv_search_opendir+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 ac_func_search_save_LIBS=$LIBS
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8570 /* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8585 for ac_lib in '' x; do
8586 if test -z "$ac_lib"; then
8587 ac_res="none required"
8590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (ac_try="$ac_link"
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_link") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_try") 2>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_search_opendir=$ac_res
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8634 rm -f core conftest.err conftest.$ac_objext \
8636 if test "${ac_cv_search_opendir+set}" = set; then
8640 if test "${ac_cv_search_opendir+set}" = set; then
8643 ac_cv_search_opendir=no
8646 LIBS=$ac_func_search_save_LIBS
8648 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8649 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8650 ac_res=$ac_cv_search_opendir
8651 if test "$ac_res" != no; then
8652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8659 for ac_header in dlfcn.h
8661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670 echo "${ECHO_T}$ac_res" >&6; }
8672 # Is the header compilable?
8673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 #include <$ac_header>
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_header_compiler=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_header_compiler=no
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728 echo "${ECHO_T}$ac_header_compiler" >&6; }
8730 # Is the header present?
8731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 #include <$ac_header>
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null; then
8754 if test -s conftest.err; then
8755 ac_cpp_err=$ac_c_preproc_warn_flag
8756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8763 if test -z "$ac_cpp_err"; then
8764 ac_header_preproc=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_header_preproc=no
8772 rm -f conftest.err conftest.$ac_ext
8773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774 echo "${ECHO_T}$ac_header_preproc" >&6; }
8776 # So? What about this header?
8777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783 ac_header_preproc=yes
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8799 ## ----------------------------------- ##
8800 ## Report this to llvmbugs@cs.uiuc.edu ##
8801 ## ----------------------------------- ##
8803 ) | sed "s/^/$as_me: WARNING: /" >&2
8806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 eval "$as_ac_Header=\$ac_header_preproc"
8813 ac_res=`eval echo '${'$as_ac_Header'}'`
8814 { echo "$as_me:$LINENO: result: $ac_res" >&5
8815 echo "${ECHO_T}$ac_res" >&6; }
8818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8819 cat >>confdefs.h <<_ACEOF
8820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8827 # Check whether --enable-ltdl-install was given.
8828 if test "${enable_ltdl_install+set}" = set; then
8829 enableval=$enable_ltdl_install;
8835 if test x"${enable_ltdl_install-no}" != xno; then
8837 INSTALL_LTDL_FALSE='#'
8839 INSTALL_LTDL_TRUE='#'
8845 if test x"${enable_ltdl_convenience-no}" != xno; then
8846 CONVENIENCE_LTDL_TRUE=
8847 CONVENIENCE_LTDL_FALSE='#'
8849 CONVENIENCE_LTDL_TRUE='#'
8850 CONVENIENCE_LTDL_FALSE=
8854 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8857 libname_spec='lib$name'
8865 shlibpath_overrides_runpath=unknown
8867 dynamic_linker="$host_os ld.so"
8868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 if test "$GCC" = yes; then
8870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8872 # if the path contains ";" then we assume it to be the separator
8873 # otherwise default to the standard path separator (i.e. ":") - it is
8874 # assumed that no part of a normal pathname contains ";" but that should
8875 # okay in the real world where ";" in dirpaths is itself problematic.
8876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8883 need_lib_prefix=unknown
8884 hardcode_into_libs=no
8886 # when you set need_version to no, make sure it does not cause -set_version
8887 # flags to be left without arguments
8888 need_version=unknown
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8894 shlibpath_var=LIBPATH
8896 # AIX 3 has no versioning support, so we append a major version to the name.
8897 soname_spec='${libname}${release}${shared_ext}$major'
8904 hardcode_into_libs=yes
8905 if test "$host_cpu" = ia64; then
8906 # AIX 5 supports IA64
8907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8908 shlibpath_var=LD_LIBRARY_PATH
8910 # With GCC up to 2.95.x, collect2 would create an import file
8911 # for dependence libraries. The import file would start with
8912 # the line `#! .'. This would cause the generated library to
8913 # depend on `.', always an invalid library. This was fixed in
8914 # development snapshots of GCC prior to 3.0.
8916 aix4 | aix4.[01] | aix4.[01].*)
8917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8927 # soname into executable. Probably we can add versioning support to
8928 # collect2, so additional links can be useful in future.
8929 if test "$aix_use_runtimelinking" = yes; then
8930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8931 # instead of lib<name>.a to let people know that these are not
8932 # typical AIX shared libraries.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935 # We preserve .a as extension for shared libraries through AIX4.2
8936 # and later when we are not doing run time linking.
8937 library_names_spec='${libname}${release}.a $libname.a'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8940 shlibpath_var=LIBPATH
8945 library_names_spec='$libname.ixlibrary $libname.a'
8946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8947 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'
8951 library_names_spec='${libname}${shared_ext}'
8952 dynamic_linker="$host_os ld.so"
8953 shlibpath_var=LIBRARY_PATH
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8965 # the default ld.so.conf also contains /usr/contrib/lib and
8966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8967 # libtool to hard-code these into programs
8970 cygwin* | mingw* | pw32*)
8971 version_type=windows
8976 case $GCC,$host_os in
8977 yes,cygwin* | yes,mingw* | yes,pw32*)
8978 library_names_spec='$libname.dll.a'
8979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8980 postinstall_cmds='base_file=`basename \${file}`~
8981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8982 dldir=$destdir/`dirname \$dlpath`~
8983 test -d \$dldir || mkdir -p \$dldir~
8984 $install_prog $dir/$dlname \$dldir/$dlname~
8985 chmod a+x \$dldir/$dlname'
8986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987 dlpath=$dir/\$dldll~
8989 shlibpath_overrides_runpath=yes
8993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8998 # MinGW DLLs use traditional 'lib' prefix
8999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9002 # It is most probably a Windows format PATH printed by
9003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004 # path with ; separators, and with drive letters. We can handle the
9005 # drive letters (cygwin fileutils understands them), so leave them,
9006 # especially as we might pass files found there to a mingw objdump,
9007 # which wouldn't understand a cygwinified path. Ahh.
9008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9014 # pw32 DLLs use 'pw' prefix rather than 'lib'
9015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9024 dynamic_linker='Win32 ld.exe'
9025 # FIXME: first we should search . and the directory the executable is in
9029 darwin* | rhapsody*)
9030 dynamic_linker="$host_os dyld"
9034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035 soname_spec='${libname}${release}${major}$shared_ext'
9036 shlibpath_overrides_runpath=yes
9037 shlibpath_var=DYLD_LIBRARY_PATH
9038 shrext_cmds='.dylib'
9039 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9040 if test "$GCC" = yes; then
9041 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"`
9043 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=no
9069 hardcode_into_libs=yes
9070 dynamic_linker='GNU ld.so'
9073 freebsd* | dragonfly*)
9074 # DragonFly does not have aout. When/if they implement a new
9075 # versioning mechanism, adjust this.
9076 if test -x /usr/bin/objformat; then
9077 objformat=`/usr/bin/objformat`
9080 freebsd[123]*) objformat=aout ;;
9084 version_type=freebsd-$objformat
9085 case $version_type in
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9096 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9101 freebsd3.[01]* | freebsdelf3.[01]*)
9102 shlibpath_overrides_runpath=yes
9103 hardcode_into_libs=yes
9105 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9106 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9107 shlibpath_overrides_runpath=no
9108 hardcode_into_libs=yes
9110 freebsd*) # from 4.6 on
9111 shlibpath_overrides_runpath=yes
9112 hardcode_into_libs=yes
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 hardcode_into_libs=yes
9127 hpux9* | hpux10* | hpux11*)
9128 # Give a soname corresponding to the major version so that dld.sl refuses to
9129 # link against other versions.
9136 hardcode_into_libs=yes
9137 dynamic_linker="$host_os dld.so"
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 if test "X$HPUX_IA64_MODE" = X32; then
9143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9151 hardcode_into_libs=yes
9152 dynamic_linker="$host_os dld.sl"
9153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9162 dynamic_linker="$host_os dld.sl"
9163 shlibpath_var=SHLIB_PATH
9164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9169 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9170 postinstall_cmds='chmod 555 $lib'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9185 irix5* | irix6* | nonstopux*)
9187 nonstopux*) version_type=nonstopux ;;
9189 if test "$lt_cv_prog_gnu_ld" = yes; then
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9200 irix5* | nonstopux*)
9204 case $LD in # libtool.m4 will add one of these switches to LD
9205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9206 libsuff= shlibsuff= libmagic=32-bit;;
9207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9208 libsuff=32 shlibsuff=N32 libmagic=N32;;
9209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9210 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9211 *) libsuff= shlibsuff= libmagic=never-match;;
9215 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9216 shlibpath_overrides_runpath=no
9217 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9218 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9219 hardcode_into_libs=yes
9222 # No shared lib support for Linux oldld, aout, or coff.
9223 linux*oldld* | linux*aout* | linux*coff*)
9227 # This must be Linux ELF.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=no
9237 # This implies no fast_install, which is unacceptable.
9238 # Some rework will be needed to allow for fast_install
9239 # before this can be enabled.
9240 hardcode_into_libs=yes
9242 # Append ld.so.conf contents to the search path
9243 if test -f /etc/ld.so.conf; then
9244 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' ' '`
9245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9248 # We used to test for /lib/ld.so.1 and disable shared libraries on
9249 # powerpc, because MkLinux only supported shared libraries with the
9250 # GNU dynamic linker. Since this was broken with cross compilers,
9251 # most powerpc-linux boxes support dynamic linking these days and
9252 # people can always --disable-shared, the test was removed, and we
9253 # assume the GNU/Linux dynamic linker is in use.
9254 dynamic_linker='GNU/Linux ld.so'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9266 dynamic_linker='GNU ld.so'
9273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276 dynamic_linker='NetBSD (a.out) ld.so'
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 dynamic_linker='NetBSD ld.elf_so'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 hardcode_into_libs=yes
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=yes
9306 sys_lib_dlsearch_path_spec="/usr/lib"
9308 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9310 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9311 *) need_version=no ;;
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9318 openbsd2.[89] | openbsd2.[89].*)
9319 shlibpath_overrides_runpath=no
9322 shlibpath_overrides_runpath=yes
9326 shlibpath_overrides_runpath=yes
9331 libname_spec='$name'
9334 library_names_spec='$libname${shared_ext} $libname.a'
9335 dynamic_linker='OS/2 ld.exe'
9336 shlibpath_var=LIBPATH
9339 osf3* | osf4* | osf5*)
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9347 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=yes
9358 hardcode_into_libs=yes
9359 # ldd complains unless libraries are executable
9360 postinstall_cmds='chmod +x $lib'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=yes
9369 if test "$with_gnu_ld" = yes; then
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 case $host_vendor in
9382 shlibpath_overrides_runpath=no
9384 export_dynamic_flag_spec='${wl}-Blargedynsym'
9385 runpath_var=LD_RUN_PATH
9393 shlibpath_overrides_runpath=no
9394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9400 if test -d /usr/nec ;then
9402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9403 soname_spec='$libname${shared_ext}.$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9409 version_type=freebsd-elf
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 hardcode_into_libs=yes
9416 if test "$with_gnu_ld" = yes; then
9417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9418 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9421 shlibpath_overrides_runpath=yes
9424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9428 sys_lib_dlsearch_path_spec='/usr/lib'
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9442 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9443 echo "${ECHO_T}$dynamic_linker" >&6; }
9444 test "$dynamic_linker" = no && can_build_shared=no
9446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9447 if test "$GCC" = yes; then
9448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9452 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9453 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_shlibext+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 eval libltdl_cv_shlibext=$shrext_cmds
9462 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9463 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9464 if test -n "$libltdl_cv_shlibext"; then
9466 cat >>confdefs.h <<_ACEOF
9467 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9473 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9474 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9475 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 libltdl_cv_shlibpath_var="$shlibpath_var"
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9481 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9482 if test -n "$libltdl_cv_shlibpath_var"; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9491 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9492 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_sys_search_path+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9499 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9500 if test -n "$libltdl_cv_sys_search_path"; then
9502 for dir in $libltdl_cv_sys_search_path; do
9503 if test -z "$sys_search_path"; then
9504 sys_search_path="$dir"
9506 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9510 cat >>confdefs.h <<_ACEOF
9511 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9516 { echo "$as_me:$LINENO: checking for objdir" >&5
9517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_objdir+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 libltdl_cv_objdir="$objdir"
9522 if test -n "$objdir"; then
9525 rm -f .libs 2>/dev/null
9526 mkdir .libs 2>/dev/null
9527 if test -d .libs; then
9528 libltdl_cv_objdir=.libs
9530 # MS-DOS does not allow filenames that begin with a dot.
9531 libltdl_cv_objdir=_libs
9533 rmdir .libs 2>/dev/null
9537 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9538 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9549 # Check for command to grab the raw symbol name followed by C symbol from nm.
9550 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9551 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9552 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 # These are sane defaults that work on at least a few old systems.
9557 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9559 # Character class describing NM global symbol codes.
9560 symcode='[BCDEGRST]'
9562 # Regexp to match symbols that can be accessed directly from C.
9563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9565 # Transform an extracted symbol line into a proper C declaration
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9568 # Transform an extracted symbol line into symbol name and symbol address
9569 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'"
9571 # Define system-specific variables.
9576 cygwin* | mingw* | pw32*)
9577 symcode='[ABCDGISTW]'
9579 hpux*) # Its linker distinguishes data from code symbols
9580 if test "$host_cpu" = ia64; then
9581 symcode='[ABCDEGRST]'
9583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9584 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'"
9587 if test "$host_cpu" = ia64; then
9588 symcode='[ABCDGIRSTW]'
9589 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9590 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'"
9594 symcode='[BCDEGRST]'
9597 symcode='[BCDEGQRST]'
9608 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9616 # Handle CRLF in mingw tool chain
9620 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9624 # If we're using GNU nm, then use its standard symbol codes.
9625 case `$NM -V 2>&1` in
9626 *GNU* | *'with BFD'*)
9627 symcode='[ABCDGIRSTW]' ;;
9630 # Try without a prefix undercore, then with it.
9631 for ac_symprfx in "" "_"; do
9633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9634 symxfrm="\\1 $ac_symprfx\\2 \\2"
9636 # Write the raw and C identifiers.
9637 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9639 # Check to see that the pipe works correctly.
9643 cat > conftest.$ac_ext <<EOF
9648 void nm_test_func(){}
9652 int main(){nm_test_var='a';nm_test_func();return(0);}
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 # Now try to grab the symbols.
9662 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s "$nlist"; then
9667 # Try sorting and uniquifying the output.
9668 if sort "$nlist" | uniq > "$nlist"T; then
9669 mv -f "$nlist"T "$nlist"
9674 # Make sure that we snagged all the symbols we need.
9675 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9676 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9677 cat <<EOF > conftest.$ac_ext
9683 # Now generate the symbol file.
9684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9686 cat <<EOF >> conftest.$ac_ext
9687 #if defined (__STDC__) && __STDC__
9688 # define lt_ptr_t void *
9690 # define lt_ptr_t char *
9694 /* The mapping between symbol names and symbols. */
9699 lt_preloaded_symbols[] =
9702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9703 cat <<\EOF >> conftest.$ac_ext
9711 # Now try linking the two files.
9712 mv conftest.$ac_objext conftstm.$ac_objext
9713 lt_save_LIBS="$LIBS"
9714 lt_save_CFLAGS="$CFLAGS"
9715 LIBS="conftstm.$ac_objext"
9716 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9724 LIBS="$lt_save_LIBS"
9725 CFLAGS="$lt_save_CFLAGS"
9727 echo "cannot find nm_test_func in $nlist" >&5
9730 echo "cannot find nm_test_var in $nlist" >&5
9733 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9736 echo "$progname: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 rm -f conftest* conftst*
9741 # Do not use the global_symbol_pipe unless it works.
9742 if test "$pipe_works" = yes; then
9745 lt_cv_sys_global_symbol_pipe=
9751 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9752 lt_cv_sys_global_symbol_to_cdecl=
9754 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9755 { echo "$as_me:$LINENO: result: failed" >&5
9756 echo "${ECHO_T}failed" >&6; }
9758 { echo "$as_me:$LINENO: result: ok" >&5
9759 echo "${ECHO_T}ok" >&6; }
9763 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9764 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9769 libltdl_cv_preloaded_symbols=yes
9771 libltdl_cv_preloaded_symbols=no
9775 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9776 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9777 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_PRELOADED_SYMBOLS 1
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9794 { echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807 #define shl_load innocuous_shl_load
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char shl_load (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9815 # include <limits.h>
9817 # include <assert.h>
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined __stub_shl_load || defined __stub___shl_load
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_shl_load=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_func_shl_load=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9889 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9891 if test $ac_cv_func_shl_load = yes; then
9893 cat >>confdefs.h <<\_ACEOF
9894 #define HAVE_SHL_LOAD 1
9898 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_check_lib_save_LIBS=$LIBS
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_cv_lib_dld_shl_load=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_cv_lib_dld_shl_load=no
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9975 if test $ac_cv_lib_dld_shl_load = yes; then
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_SHL_LOAD 1
9981 LIBADD_DL="$LIBADD_DL -ldld"
9983 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dl_dlopen=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_dl_dlopen=no
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10060 if test $ac_cv_lib_dl_dlopen = yes; then
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10066 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 # include <dlfcn.h>
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_try") 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_LIBDL 1
10124 libltdl_cv_func_dlopen="yes"
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_lib_svld_dlopen=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_lib_svld_dlopen=no
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10206 if test $ac_cv_lib_svld_dlopen = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_LIBDL 1
10212 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10214 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10215 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 ac_check_lib_save_LIBS=$LIBS
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10238 return dld_link ();
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_lib_dld_dld_link=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_lib_dld_dld_link=no
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10291 if test $ac_cv_lib_dld_dld_link = yes; then
10293 cat >>confdefs.h <<\_ACEOF
10297 LIBADD_DL="$LIBADD_DL -ldld"
10299 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10300 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10301 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10312 #define _dyld_func_lookup innocuous__dyld_func_lookup
10314 /* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char _dyld_func_lookup (); below.
10316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317 <limits.h> exists even on freestanding compilers. */
10320 # include <limits.h>
10322 # include <assert.h>
10325 #undef _dyld_func_lookup
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10333 char _dyld_func_lookup ();
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10344 return _dyld_func_lookup ();
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10358 grep -v '^ *+' conftest.er1 >conftest.err
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_func__dyld_func_lookup=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_func__dyld_func_lookup=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10394 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10395 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10396 if test $ac_cv_func__dyld_func_lookup = yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_DYLD 1
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10427 lt_save_LIBS="$LIBS"
10428 LIBS="$LIBS $LIBADD_DL"
10430 for ac_func in dlerror
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446 #define $ac_func innocuous_$ac_func
10448 /* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char $ac_func (); below.
10450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451 <limits.h> exists even on freestanding compilers. */
10454 # include <limits.h>
10456 # include <assert.h>
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10468 /* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
10471 #if defined __stub_$ac_func || defined __stub___$ac_func
10478 return $ac_func ();
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_link") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498 { (case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_try") 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_try") 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 eval "$as_ac_var=yes"
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 eval "$as_ac_var=no"
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10528 ac_res=`eval echo '${'$as_ac_var'}'`
10529 { echo "$as_me:$LINENO: result: $ac_res" >&5
10530 echo "${ECHO_T}$ac_res" >&6; }
10531 if test `eval echo '${'$as_ac_var'}'` = yes; then
10532 cat >>confdefs.h <<_ACEOF
10533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10539 LIBS="$lt_save_LIBS"
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10549 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10550 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10551 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 ac_cv_sys_symbol_underscore=no
10555 cat > conftest.$ac_ext <<EOF
10556 void nm_test_func(){}
10557 int main(){nm_test_func;return 0;}
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560 (eval $ac_compile) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; then
10564 # Now try to grab the symbols.
10565 ac_nlist=conftest.nm
10566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s "$ac_nlist"; then
10571 # See whether the symbols have a leading underscore.
10572 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10573 ac_cv_sys_symbol_underscore=yes
10575 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10578 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10582 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10585 echo "configure: failed program was:" >&5
10591 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10592 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10595 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10596 if test x"$libltdl_cv_func_dlopen" = xyes ||
10597 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10598 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10599 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10600 if test "${libltdl_cv_need_uscore+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 libltdl_cv_need_uscore=unknown
10605 LIBS="$LIBS $LIBADD_DL"
10606 if test "$cross_compiling" = yes; then :
10607 libltdl_cv_need_uscore=cross
10609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610 lt_status=$lt_dlunknown
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10612 "configure"
10613 #include "confdefs.h"
10622 # define LT_DLGLOBAL RTLD_GLOBAL
10625 # define LT_DLGLOBAL DL_GLOBAL
10627 # define LT_DLGLOBAL 0
10631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632 find out it does not work in some platform. */
10633 #ifndef LT_DLLAZY_OR_NOW
10635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10638 # define LT_DLLAZY_OR_NOW DL_LAZY
10641 # define LT_DLLAZY_OR_NOW RTLD_NOW
10644 # define LT_DLLAZY_OR_NOW DL_NOW
10646 # define LT_DLLAZY_OR_NOW 0
10654 extern "C" void exit (int);
10657 void fnord() { int i=42;}
10660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661 int status = $lt_dlunknown;
10665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667 /* dlclose (self); */
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10680 (./conftest; exit; ) >&5 2>/dev/null
10682 case x$lt_status in
10683 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10684 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10685 x$lt_dlunknown|x*) ;;
10688 # compilation failed
10697 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10698 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10702 if test x"$libltdl_cv_need_uscore" = xyes; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define NEED_USCORE 1
10711 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10712 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10713 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 # PORTME does your system automatically load deplibs for dlopen?
10717 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10718 # For now, we just catch OSes we know something about -- in the
10719 # future, we'll try test this programmatically.
10720 libltdl_cv_sys_dlopen_deplibs=unknown
10722 aix3*|aix4.1.*|aix4.2.*)
10723 # Unknown whether this is true for these versions of AIX, but
10724 # we want this `case' here to explicitly catch those versions.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10728 libltdl_cv_sys_dlopen_deplibs=yes
10731 # Assuming the user has installed a libdl from somewhere, this is true
10732 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10733 libltdl_cv_sys_dlopen_deplibs=yes
10735 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10736 # GNU and its variants, using gnu ld.so (Glibc)
10737 libltdl_cv_sys_dlopen_deplibs=yes
10740 libltdl_cv_sys_dlopen_deplibs=yes
10743 libltdl_cv_sys_dlopen_deplibs=yes
10745 irix[12345]*|irix6.[01]*)
10746 # Catch all versions of IRIX before 6.2, and indicate that we don't
10747 # know how it worked for any of those versions.
10748 libltdl_cv_sys_dlopen_deplibs=unknown
10751 # The case above catches anything before 6.2, and it's known that
10752 # at 6.2 and later dlopen does load deplibs.
10753 libltdl_cv_sys_dlopen_deplibs=yes
10756 libltdl_cv_sys_dlopen_deplibs=yes
10759 libltdl_cv_sys_dlopen_deplibs=yes
10762 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10763 # it did *not* use an RPATH in a shared library to find objects the
10764 # library depends on, so we explictly say `no'.
10765 libltdl_cv_sys_dlopen_deplibs=no
10767 osf5.0|osf5.0a|osf5.1)
10768 # dlopen *does* load deplibs and with the right loader patch applied
10769 # it even uses RPATH in a shared library to search for shared objects
10770 # that the library depends on, but there's no easy way to know if that
10771 # patch is installed. Since this is the case, all we can really
10772 # say is unknown -- it depends on the patch being installed. If
10773 # it is, this changes to `yes'. Without it, it would be `no'.
10774 libltdl_cv_sys_dlopen_deplibs=unknown
10777 # the two cases above should catch all versions of osf <= 5.1. Read
10778 # the comments above for what we know about them.
10779 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10780 # is used to find them so we can finally say `yes'.
10781 libltdl_cv_sys_dlopen_deplibs=yes
10784 libltdl_cv_sys_dlopen_deplibs=yes
10786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787 libltdl_cv_sys_dlopen_deplibs=yes
10792 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10793 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10794 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10796 cat >>confdefs.h <<\_ACEOF
10797 #define LTDL_DLOPEN_DEPLIBS 1
10803 for ac_header in argz.h
10805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10816 # Is the header compilable?
10817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 #include <$ac_header>
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_compile") 2>conftest.er1
10837 grep -v '^ *+' conftest.er1 >conftest.err
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_try") 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_compiler=no
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10872 echo "${ECHO_T}$ac_header_compiler" >&6; }
10874 # Is the header present?
10875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <$ac_header>
10885 if { (ac_try="$ac_cpp conftest.$ac_ext"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } >/dev/null; then
10898 if test -s conftest.err; then
10899 ac_cpp_err=$ac_c_preproc_warn_flag
10900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10907 if test -z "$ac_cpp_err"; then
10908 ac_header_preproc=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_header_preproc=no
10916 rm -f conftest.err conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 echo "${ECHO_T}$ac_header_preproc" >&6; }
10920 # So? What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927 ac_header_preproc=yes
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10943 ## ----------------------------------- ##
10944 ## Report this to llvmbugs@cs.uiuc.edu ##
10945 ## ----------------------------------- ##
10947 ) | sed "s/^/$as_me: WARNING: /" >&2
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 eval "$as_ac_Header=\$ac_header_preproc"
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10963 cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10972 { echo "$as_me:$LINENO: checking for error_t" >&5
10973 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10974 if test "${ac_cv_type_error_t+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10987 typedef error_t ac__type_new_;
10991 if ((ac__type_new_ *) 0)
10993 if (sizeof (ac__type_new_))
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_compile") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_type_error_t=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_cv_type_error_t=no
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11044 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11045 if test $ac_cv_type_error_t = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_ERROR_T 1
11054 cat >>confdefs.h <<\_ACEOF
11055 #define error_t int
11066 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11090 # include <limits.h>
11092 # include <assert.h>
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11114 return $ac_func ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 eval "$as_ac_var=yes"
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 eval "$as_ac_var=no"
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11164 ac_res=`eval echo '${'$as_ac_var'}'`
11165 { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 if test `eval echo '${'$as_ac_var'}'` = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11216 # Is the header compilable?
11217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11219 cat >conftest.$ac_ext <<_ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 $ac_includes_default
11226 #include <$ac_header>
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_compile") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243 { (case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_try") 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_header_compiler=yes
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 ac_header_compiler=no
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11272 echo "${ECHO_T}$ac_header_compiler" >&6; }
11274 # Is the header present?
11275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <$ac_header>
11285 if { (ac_try="$ac_cpp conftest.$ac_ext"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null; then
11298 if test -s conftest.err; then
11299 ac_cpp_err=$ac_c_preproc_warn_flag
11300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11307 if test -z "$ac_cpp_err"; then
11308 ac_header_preproc=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_preproc=no
11316 rm -f conftest.err conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318 echo "${ECHO_T}$ac_header_preproc" >&6; }
11320 # So? What about this header?
11321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11327 ac_header_preproc=yes
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343 ## ----------------------------------- ##
11344 ## Report this to llvmbugs@cs.uiuc.edu ##
11345 ## ----------------------------------- ##
11347 ) | sed "s/^/$as_me: WARNING: /" >&2
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 eval "$as_ac_Header=\$ac_header_preproc"
11357 ac_res=`eval echo '${'$as_ac_Header'}'`
11358 { echo "$as_me:$LINENO: result: $ac_res" >&5
11359 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11388 # Is the header compilable?
11389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <$ac_header>
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_header_compiler=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_compiler=no
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 #include <$ac_header>
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11479 if test -z "$ac_cpp_err"; then
11480 ac_header_preproc=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_preproc=no
11488 rm -f conftest.err conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6; }
11492 # So? What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499 ac_header_preproc=yes
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11515 ## ----------------------------------- ##
11516 ## Report this to llvmbugs@cs.uiuc.edu ##
11517 ## ----------------------------------- ##
11519 ) | sed "s/^/$as_me: WARNING: /" >&2
11522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 eval "$as_ac_Header=\$ac_header_preproc"
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11545 for ac_header in string.h strings.h
11547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11558 # Is the header compilable?
11559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 $ac_includes_default
11568 #include <$ac_header>
11570 rm -f conftest.$ac_objext
11571 if { (ac_try="$ac_compile"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_compile") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_header_compiler=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_header_compiler=no
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11614 echo "${ECHO_T}$ac_header_compiler" >&6; }
11616 # Is the header present?
11617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #include <$ac_header>
11627 if { (ac_try="$ac_cpp conftest.$ac_ext"
11628 case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11635 grep -v '^ *+' conftest.er1 >conftest.err
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } >/dev/null; then
11640 if test -s conftest.err; then
11641 ac_cpp_err=$ac_c_preproc_warn_flag
11642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11649 if test -z "$ac_cpp_err"; then
11650 ac_header_preproc=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_preproc=no
11658 rm -f conftest.err conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6; }
11662 # So? What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc=yes
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11685 ## ----------------------------------- ##
11686 ## Report this to llvmbugs@cs.uiuc.edu ##
11687 ## ----------------------------------- ##
11689 ) | sed "s/^/$as_me: WARNING: /" >&2
11692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 eval "$as_ac_Header=\$ac_header_preproc"
11699 ac_res=`eval echo '${'$as_ac_Header'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11705 cat >>confdefs.h <<_ACEOF
11706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11716 for ac_func in strchr index
11718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732 #define $ac_func innocuous_$ac_func
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11740 # include <limits.h>
11742 # include <assert.h>
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined __stub_$ac_func || defined __stub___$ac_func
11764 return $ac_func ();
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 eval "$as_ac_var=yes"
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 eval "$as_ac_var=no"
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11814 ac_res=`eval echo '${'$as_ac_var'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11827 for ac_func in strrchr rindex
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11843 #define $ac_func innocuous_$ac_func
11845 /* System header to define __stub macros and hopefully few prototypes,
11846 which can conflict with char $ac_func (); below.
11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 <limits.h> exists even on freestanding compilers. */
11851 # include <limits.h>
11853 # include <assert.h>
11858 /* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11865 /* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
11868 #if defined __stub_$ac_func || defined __stub___$ac_func
11875 return $ac_func ();
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_link") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895 { (case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_try") 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 eval "$as_ac_var=yes"
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 eval "$as_ac_var=no"
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11925 ac_res=`eval echo '${'$as_ac_var'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 for ac_func in memcpy bcopy
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954 #define $ac_func innocuous_$ac_func
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11962 # include <limits.h>
11964 # include <assert.h>
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11986 return $ac_func ();
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in memmove strcmp
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065 #define $ac_func innocuous_$ac_func
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12073 # include <limits.h>
12075 # include <assert.h>
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12087 /* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12097 return $ac_func ();
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 eval "$as_ac_var=no"
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12161 for ac_func in closedir opendir readdir
12163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177 #define $ac_func innocuous_$ac_func
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12185 # include <limits.h>
12187 # include <assert.h>
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined __stub_$ac_func || defined __stub___$ac_func
12209 return $ac_func ();
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_try") 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 eval "$as_ac_var=no"
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12259 ac_res=`eval echo '${'$as_ac_var'}'`
12260 { echo "$as_me:$LINENO: result: $ac_res" >&5
12261 echo "${ECHO_T}$ac_res" >&6; }
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 # Check whether --enable-shared was given.
12272 if test "${enable_shared+set}" = set; then
12273 enableval=$enable_shared; p=${PACKAGE-default}
12275 yes) enable_shared=yes ;;
12276 no) enable_shared=no ;;
12279 # Look at the argument we got. We use all the common list separators.
12280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12281 for pkg in $enableval; do
12283 if test "X$pkg" = "X$p"; then
12295 # Check whether --enable-static was given.
12296 if test "${enable_static+set}" = set; then
12297 enableval=$enable_static; p=${PACKAGE-default}
12299 yes) enable_static=yes ;;
12300 no) enable_static=no ;;
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12307 if test "X$pkg" = "X$p"; then
12319 # Check whether --enable-fast-install was given.
12320 if test "${enable_fast_install+set}" = set; then
12321 enableval=$enable_fast_install; p=${PACKAGE-default}
12323 yes) enable_fast_install=yes ;;
12324 no) enable_fast_install=no ;;
12326 enable_fast_install=no
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329 for pkg in $enableval; do
12331 if test "X$pkg" = "X$p"; then
12332 enable_fast_install=yes
12339 enable_fast_install=yes
12343 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12344 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12345 if test "${lt_cv_path_SED+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 # Loop through the user's path and test for sed and gsed.
12349 # Then use that list of sed's as ones to test for truncation.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12354 test -z "$as_dir" && as_dir=.
12355 for lt_ac_prog in sed gsed; do
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12358 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12365 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12366 # along with /bin/sed that truncates output.
12367 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12368 test ! -f $lt_ac_sed && continue
12369 cat /dev/null > conftest.in
12371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12372 # Check for GNU sed and select it if it is found.
12373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12374 lt_cv_path_SED=$lt_ac_sed
12378 cat conftest.in conftest.in >conftest.tmp
12379 mv conftest.tmp conftest.in
12380 cp conftest.in conftest.nl
12382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12383 cmp -s conftest.out conftest.nl || break
12384 # 10000 chars as input seems more than enough
12385 test $lt_ac_count -gt 10 && break
12386 lt_ac_count=`expr $lt_ac_count + 1`
12387 if test $lt_ac_count -gt $lt_ac_max; then
12388 lt_ac_max=$lt_ac_count
12389 lt_cv_path_SED=$lt_ac_sed
12396 SED=$lt_cv_path_SED
12397 { echo "$as_me:$LINENO: result: $SED" >&5
12398 echo "${ECHO_T}$SED" >&6; }
12401 # Check whether --with-gnu-ld was given.
12402 if test "${with_gnu_ld+set}" = set; then
12403 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12409 if test "$GCC" = yes; then
12410 # Check if gcc -print-prog-name=ld gives a path.
12411 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12415 # gcc leaves a trailing carriage return which upsets mingw
12416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12421 # Accept absolute paths.
12423 re_direlt='/[^/][^/]*/\.\./'
12424 # Canonicalize the pathname of ld
12425 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12427 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12429 test -z "$LD" && LD="$ac_prog"
12432 # If it fails, then pretend we aren't using GCC.
12436 # If it is relative, then search for the first ld in PATH.
12437 with_gnu_ld=unknown
12440 elif test "$with_gnu_ld" = yes; then
12441 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12444 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12447 if test "${lt_cv_path_LD+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 if test -z "$LD"; then
12451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12452 for ac_dir in $PATH; do
12454 test -z "$ac_dir" && ac_dir=.
12455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12456 lt_cv_path_LD="$ac_dir/$ac_prog"
12457 # Check to see if the program is GNU ld. I'd rather use --version,
12458 # but apparently some variants of GNU ld only accept -v.
12459 # Break only if it was the GNU/non-GNU ld that we prefer.
12460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12461 *GNU* | *'with BFD'*)
12462 test "$with_gnu_ld" != no && break
12465 test "$with_gnu_ld" != yes && break
12472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12476 LD="$lt_cv_path_LD"
12477 if test -n "$LD"; then
12478 { echo "$as_me:$LINENO: result: $LD" >&5
12479 echo "${ECHO_T}$LD" >&6; }
12481 { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12486 { (exit 1); exit 1; }; }
12487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12493 case `$LD -v 2>&1 </dev/null` in
12494 *GNU* | *'with BFD'*)
12495 lt_cv_prog_gnu_ld=yes
12498 lt_cv_prog_gnu_ld=no
12502 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12504 with_gnu_ld=$lt_cv_prog_gnu_ld
12507 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12508 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12509 if test "${lt_cv_ld_reload_flag+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 lt_cv_ld_reload_flag='-r'
12514 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12515 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12516 reload_flag=$lt_cv_ld_reload_flag
12517 case $reload_flag in
12519 *) reload_flag=" $reload_flag" ;;
12521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12524 if test "$GCC" = yes; then
12525 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12532 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12533 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12534 if test "${lt_cv_deplibs_check_method+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 lt_cv_file_magic_cmd='$MAGIC_CMD'
12538 lt_cv_file_magic_test_file=
12539 lt_cv_deplibs_check_method='unknown'
12540 # Need to set the preceding variable on all platforms that support
12541 # interlibrary dependencies.
12542 # 'none' -- dependencies not supported.
12543 # `unknown' -- same as none, but documents that we really don't know.
12544 # 'pass_all' -- all dependencies passed with no checks.
12545 # 'test_compile' -- check by making test program.
12546 # 'file_magic [[regex]]' -- check by looking for files in library path
12547 # which responds to the $file_magic_cmd with a given extended regex.
12548 # If you have `file' or equivalent on your system and you're not sure
12549 # whether `pass_all' will *always* work, you probably want this one.
12553 lt_cv_deplibs_check_method=pass_all
12557 lt_cv_deplibs_check_method=pass_all
12561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12562 lt_cv_file_magic_cmd='/usr/bin/file -L'
12563 lt_cv_file_magic_test_file=/shlib/libc.so
12567 # func_win32_libid is a shell function defined in ltmain.sh
12568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12569 lt_cv_file_magic_cmd='func_win32_libid'
12573 # Base MSYS/MinGW do not provide the 'file' command needed by
12574 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12575 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12576 lt_cv_file_magic_cmd='$OBJDUMP -f'
12579 darwin* | rhapsody*)
12580 lt_cv_deplibs_check_method=pass_all
12583 freebsd* | kfreebsd*-gnu | dragonfly*)
12584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12587 # Not sure whether the presence of OpenBSD here was a mistake.
12588 # Let's accept both of them until this is cleared up.
12589 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12590 lt_cv_file_magic_cmd=/usr/bin/file
12591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12595 lt_cv_deplibs_check_method=pass_all
12600 lt_cv_deplibs_check_method=pass_all
12603 hpux10.20* | hpux11*)
12604 lt_cv_file_magic_cmd=/usr/bin/file
12607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12611 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]'
12612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12616 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12626 irix5* | irix6* | nonstopux*)
12628 *-32|*"-32 ") libmagic=32-bit;;
12629 *-n32|*"-n32 ") libmagic=N32;;
12630 *-64|*"-64 ") libmagic=64-bit;;
12631 *) libmagic=never-match;;
12633 lt_cv_deplibs_check_method=pass_all
12636 # This must be Linux ELF.
12638 lt_cv_deplibs_check_method=pass_all
12642 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12651 lt_cv_file_magic_cmd=/usr/bin/file
12652 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12656 lt_cv_deplibs_check_method=unknown
12660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12667 osf3* | osf4* | osf5*)
12668 lt_cv_deplibs_check_method=pass_all
12672 lt_cv_deplibs_check_method=pass_all
12676 case $host_vendor in
12678 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]'
12679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12682 lt_cv_deplibs_check_method=pass_all
12685 lt_cv_file_magic_cmd='/bin/file'
12686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12689 lt_cv_file_magic_cmd='/bin/file'
12690 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12691 lt_cv_file_magic_test_file=/lib/libc.so
12694 lt_cv_deplibs_check_method=pass_all
12697 lt_cv_deplibs_check_method=pass_all
12702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12703 lt_cv_deplibs_check_method=pass_all
12708 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12709 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12710 file_magic_cmd=$lt_cv_file_magic_cmd
12711 deplibs_check_method=$lt_cv_deplibs_check_method
12712 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12716 # If no C compiler was specified, use CC.
12719 # If no C compiler flags were specified, use CFLAGS.
12720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12722 # Allow CC to be a program name with arguments.
12725 # Check whether --enable-libtool-lock was given.
12726 if test "${enable_libtool_lock+set}" = set; then
12727 enableval=$enable_libtool_lock;
12730 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12732 # Some flags need to be propagated to the compiler or linker for good
12736 # Find out which ABI we are using.
12737 echo 'int i;' > conftest.$ac_ext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; then
12743 case `/usr/bin/file conftest.$ac_objext` in
12745 HPUX_IA64_MODE="32"
12748 HPUX_IA64_MODE="64"
12755 # Find out which ABI we are using.
12756 echo '#line 12756 "configure"' > conftest.$ac_ext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; then
12762 if test "$lt_cv_prog_gnu_ld" = yes; then
12763 case `/usr/bin/file conftest.$ac_objext` in
12765 LD="${LD-ld} -melf32bsmip"
12768 LD="${LD-ld} -melf32bmipn32"
12771 LD="${LD-ld} -melf64bmip"
12775 case `/usr/bin/file conftest.$ac_objext` in
12791 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12792 # Find out which ABI we are using.
12793 echo 'int i;' > conftest.$ac_ext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; then
12799 case `/usr/bin/file conftest.o` in
12803 LD="${LD-ld} -m elf_i386"
12805 ppc64-*linux*|powerpc64-*linux*)
12806 LD="${LD-ld} -m elf32ppclinux"
12809 LD="${LD-ld} -m elf_s390"
12812 LD="${LD-ld} -m elf32_sparc"
12819 LD="${LD-ld} -m elf_x86_64"
12821 ppc*-*linux*|powerpc*-*linux*)
12822 LD="${LD-ld} -m elf64ppc"
12825 LD="${LD-ld} -m elf64_s390"
12828 LD="${LD-ld} -m elf64_sparc"
12838 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12839 SAVE_CFLAGS="$CFLAGS"
12840 CFLAGS="$CFLAGS -belf"
12841 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12842 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12843 if test "${lt_cv_cc_needs_belf+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 lt_cv_cc_needs_belf=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 lt_cv_cc_needs_belf=no
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12918 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12919 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12920 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12922 CFLAGS="$SAVE_CFLAGS"
12926 # Find out which ABI we are using.
12927 echo 'int i;' > conftest.$ac_ext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; then
12933 case `/usr/bin/file conftest.o` in
12935 case $lt_cv_prog_gnu_ld in
12936 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12937 *) LD="${LD-ld} -64" ;;
12948 need_locks="$enable_libtool_lock"
12953 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12954 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12955 (test "X$CXX" != "Xg++"))) ; then
12957 ac_cpp='$CXXCPP $CPPFLAGS'
12958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12963 if test -z "$CXXCPP"; then
12964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 # Double quotes because CXXCPP needs to be expanded
12968 for CXXCPP in "$CXX -E" "/lib/cpp"
12970 ac_preproc_ok=false
12971 for ac_cxx_preproc_warn_flag in '' yes
12973 # Use a header file that comes with gcc, so configuring glibc
12974 # with a fresh cross-compiler works.
12975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12976 # <limits.h> exists even on freestanding compilers.
12977 # On the NeXT, cc -E runs the code through the compiler's parser,
12978 # not just through cpp. "Syntax error" is here to catch this case.
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 # include <limits.h>
12988 # include <assert.h>
12992 if { (ac_try="$ac_cpp conftest.$ac_ext"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_cxx_preproc_warn_flag
13007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13014 if test -z "$ac_cpp_err"; then
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 # Broken: fails on valid input.
13024 rm -f conftest.err conftest.$ac_ext
13026 # OK, works on sane cases. Now check whether nonexistent headers
13027 # can be detected and how.
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 #include <ac_nonexistent.h>
13036 if { (ac_try="$ac_cpp conftest.$ac_ext"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } >/dev/null; then
13049 if test -s conftest.err; then
13050 ac_cpp_err=$ac_cxx_preproc_warn_flag
13051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13058 if test -z "$ac_cpp_err"; then
13059 # Broken: success on invalid input.
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 # Passes both tests.
13070 rm -f conftest.err conftest.$ac_ext
13073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13074 rm -f conftest.err conftest.$ac_ext
13075 if $ac_preproc_ok; then
13080 ac_cv_prog_CXXCPP=$CXXCPP
13083 CXXCPP=$ac_cv_prog_CXXCPP
13085 ac_cv_prog_CXXCPP=$CXXCPP
13087 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13088 echo "${ECHO_T}$CXXCPP" >&6; }
13089 ac_preproc_ok=false
13090 for ac_cxx_preproc_warn_flag in '' yes
13092 # Use a header file that comes with gcc, so configuring glibc
13093 # with a fresh cross-compiler works.
13094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 # <limits.h> exists even on freestanding compilers.
13096 # On the NeXT, cc -E runs the code through the compiler's parser,
13097 # not just through cpp. "Syntax error" is here to catch this case.
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 # include <limits.h>
13107 # include <assert.h>
13111 if { (ac_try="$ac_cpp conftest.$ac_ext"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13119 grep -v '^ *+' conftest.er1 >conftest.err
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } >/dev/null; then
13124 if test -s conftest.err; then
13125 ac_cpp_err=$ac_cxx_preproc_warn_flag
13126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13133 if test -z "$ac_cpp_err"; then
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 # Broken: fails on valid input.
13143 rm -f conftest.err conftest.$ac_ext
13145 # OK, works on sane cases. Now check whether nonexistent headers
13146 # can be detected and how.
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 #include <ac_nonexistent.h>
13155 if { (ac_try="$ac_cpp conftest.$ac_ext"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_cxx_preproc_warn_flag
13170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13177 if test -z "$ac_cpp_err"; then
13178 # Broken: success on invalid input.
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 # Passes both tests.
13189 rm -f conftest.err conftest.$ac_ext
13192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13193 rm -f conftest.err conftest.$ac_ext
13194 if $ac_preproc_ok; then
13197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13198 See \`config.log' for more details." >&5
13199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13200 See \`config.log' for more details." >&2;}
13201 { (exit 1); exit 1; }; }
13205 ac_cpp='$CXXCPP $CPPFLAGS'
13206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13217 if test -n "$ac_tool_prefix"; then
13218 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13224 if test "${ac_cv_prog_F77+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 if test -n "$F77"; then
13228 ac_cv_prog_F77="$F77" # Let the user override the test.
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 F77=$ac_cv_prog_F77
13248 if test -n "$F77"; then
13249 { echo "$as_me:$LINENO: result: $F77" >&5
13250 echo "${ECHO_T}$F77" >&6; }
13252 { echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6; }
13257 test -n "$F77" && break
13260 if test -z "$F77"; then
13262 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13264 # Extract the first word of "$ac_prog", so it can be a program name with args.
13265 set dummy $ac_prog; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 if test -n "$ac_ct_F77"; then
13272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_F77="$ac_prog"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13292 if test -n "$ac_ct_F77"; then
13293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13294 echo "${ECHO_T}$ac_ct_F77" >&6; }
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13301 test -n "$ac_ct_F77" && break
13304 if test "x$ac_ct_F77" = x; then
13307 case $cross_compiling:$ac_tool_warned in
13309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13310 whose name does not start with the host triplet. If you think this
13311 configuration is useful to you, please write to autoconf@gnu.org." >&5
13312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13313 whose name does not start with the host triplet. If you think this
13314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13315 ac_tool_warned=yes ;;
13322 # Provide some information about the compiler.
13323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13324 ac_compiler=`set X $ac_compile; echo $2`
13325 { (ac_try="$ac_compiler --version >&5"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compiler --version >&5") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }
13335 { (ac_try="$ac_compiler -v >&5"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compiler -v >&5") 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }
13345 { (ac_try="$ac_compiler -V >&5"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compiler -V >&5") 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }
13357 # If we don't use `.F' as extension, the preprocessor is not run on the
13358 # input file. (Note that this only needs to work for GNU compilers.)
13359 ac_save_ext=$ac_ext
13361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.$ac_ext <<_ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (ac_try="$ac_compile"
13376 case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_compile") 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_compiler_gnu=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13420 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13421 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13422 ac_ext=$ac_save_ext
13423 ac_test_FFLAGS=${FFLAGS+set}
13424 ac_save_FFLAGS=$FFLAGS
13426 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13427 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13428 if test "${ac_cv_prog_f77_g+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13437 rm -f conftest.$ac_objext
13438 if { (ac_try="$ac_compile"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest.$ac_objext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_prog_f77_g=yes
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 ac_cv_prog_f77_g=no
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13483 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13484 if test "$ac_test_FFLAGS" = set; then
13485 FFLAGS=$ac_save_FFLAGS
13486 elif test $ac_cv_prog_f77_g = yes; then
13487 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13493 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13500 G77=`test $ac_compiler_gnu = yes && echo yes`
13502 ac_cpp='$CPP $CPPFLAGS'
13503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13509 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13511 # find the maximum length of command line arguments
13512 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13513 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13514 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 # On DJGPP, this test can blow up pretty badly due to problems in libc
13523 # (any single argument exceeding 2000 bytes causes a buffer overrun
13524 # during glob expansion). Even if it were fixed, the result of this
13525 # check would be larger than it should be.
13526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13530 # Under GNU Hurd, this test is not required because there is
13531 # no limit to the length of command line arguments.
13532 # Libtool will interpret -1 as no limit whatsoever
13533 lt_cv_sys_max_cmd_len=-1;
13537 # On Win9x/ME, this test blows up -- it succeeds, but takes
13538 # about 5 minutes as the teststring grows exponentially.
13539 # Worse, since 9x/ME are not pre-emptively multitasking,
13540 # you end up with a "frozen" computer, even though with patience
13541 # the test eventually succeeds (with a max line length of 256k).
13542 # Instead, let's just punt: use the minimum linelength reported by
13543 # all of the supported platforms: 8192 (on NT/2K/XP).
13544 lt_cv_sys_max_cmd_len=8192;
13548 # On AmigaOS with pdksh, this test takes hours, literally.
13549 # So we just punt and use a minimum line length of 8192.
13550 lt_cv_sys_max_cmd_len=8192;
13553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13554 # This has been around since 386BSD, at least. Likely further.
13555 if test -x /sbin/sysctl; then
13556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13557 elif test -x /usr/sbin/sysctl; then
13558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13562 # And add a safety zone
13563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13568 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13569 lt_cv_sys_max_cmd_len=196608
13573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13575 # nice to cause kernel panics so lets avoid the loop below.
13576 # First set a reasonable default.
13577 lt_cv_sys_max_cmd_len=16384
13579 if test -x /sbin/sysconfig; then
13580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13586 lt_cv_sys_max_cmd_len=102400
13588 sysv5* | sco5v6* | sysv4.2uw2*)
13589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13590 if test -n "$kargmax"; then
13591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13593 lt_cv_sys_max_cmd_len=32768
13597 # If test is not a shell built-in, we'll probably end up computing a
13598 # maximum length that is only half of the actual maximum length, but
13600 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13601 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13602 = "XX$teststring") >/dev/null 2>&1 &&
13603 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13604 lt_cv_sys_max_cmd_len=$new_result &&
13605 test $i != 17 # 1/2 MB should be enough
13608 teststring=$teststring$teststring
13611 # Add a significant safety factor because C++ compilers can tack on massive
13612 # amounts of additional arguments before passing them to the linker.
13613 # It appears as though 1/2 is a usable value.
13614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13620 if test -n $lt_cv_sys_max_cmd_len ; then
13621 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13622 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13624 { echo "$as_me:$LINENO: result: none" >&5
13625 echo "${ECHO_T}none" >&6; }
13631 # Check for command to grab the raw symbol name followed by C symbol from nm.
13632 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13633 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13634 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 # These are sane defaults that work on at least a few old systems.
13639 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13641 # Character class describing NM global symbol codes.
13642 symcode='[BCDEGRST]'
13644 # Regexp to match symbols that can be accessed directly from C.
13645 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13647 # Transform an extracted symbol line into a proper C declaration
13648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13650 # Transform an extracted symbol line into symbol name and symbol address
13651 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'"
13653 # Define system-specific variables.
13658 cygwin* | mingw* | pw32*)
13659 symcode='[ABCDGISTW]'
13661 hpux*) # Its linker distinguishes data from code symbols
13662 if test "$host_cpu" = ia64; then
13663 symcode='[ABCDEGRST]'
13665 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13666 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'"
13669 if test "$host_cpu" = ia64; then
13670 symcode='[ABCDGIRSTW]'
13671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13672 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'"
13675 irix* | nonstopux*)
13676 symcode='[BCDEGRST]'
13679 symcode='[BCDEGQRST]'
13690 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13698 # Handle CRLF in mingw tool chain
13702 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13706 # If we're using GNU nm, then use its standard symbol codes.
13707 case `$NM -V 2>&1` in
13708 *GNU* | *'with BFD'*)
13709 symcode='[ABCDGIRSTW]' ;;
13712 # Try without a prefix undercore, then with it.
13713 for ac_symprfx in "" "_"; do
13715 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13716 symxfrm="\\1 $ac_symprfx\\2 \\2"
13718 # Write the raw and C identifiers.
13719 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13721 # Check to see that the pipe works correctly.
13725 cat > conftest.$ac_ext <<EOF
13730 void nm_test_func(){}
13734 int main(){nm_test_var='a';nm_test_func();return(0);}
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; then
13742 # Now try to grab the symbols.
13744 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13745 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && test -s "$nlist"; then
13749 # Try sorting and uniquifying the output.
13750 if sort "$nlist" | uniq > "$nlist"T; then
13751 mv -f "$nlist"T "$nlist"
13756 # Make sure that we snagged all the symbols we need.
13757 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13758 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13759 cat <<EOF > conftest.$ac_ext
13765 # Now generate the symbol file.
13766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13768 cat <<EOF >> conftest.$ac_ext
13769 #if defined (__STDC__) && __STDC__
13770 # define lt_ptr_t void *
13772 # define lt_ptr_t char *
13776 /* The mapping between symbol names and symbols. */
13781 lt_preloaded_symbols[] =
13784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13785 cat <<\EOF >> conftest.$ac_ext
13793 # Now try linking the two files.
13794 mv conftest.$ac_objext conftstm.$ac_objext
13795 lt_save_LIBS="$LIBS"
13796 lt_save_CFLAGS="$CFLAGS"
13797 LIBS="conftstm.$ac_objext"
13798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13806 LIBS="$lt_save_LIBS"
13807 CFLAGS="$lt_save_CFLAGS"
13809 echo "cannot find nm_test_func in $nlist" >&5
13812 echo "cannot find nm_test_var in $nlist" >&5
13815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13818 echo "$progname: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13821 rm -f conftest* conftst*
13823 # Do not use the global_symbol_pipe unless it works.
13824 if test "$pipe_works" = yes; then
13827 lt_cv_sys_global_symbol_pipe=
13833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13834 lt_cv_sys_global_symbol_to_cdecl=
13836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13837 { echo "$as_me:$LINENO: result: failed" >&5
13838 echo "${ECHO_T}failed" >&6; }
13840 { echo "$as_me:$LINENO: result: ok" >&5
13841 echo "${ECHO_T}ok" >&6; }
13844 { echo "$as_me:$LINENO: checking for objdir" >&5
13845 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13846 if test "${lt_cv_objdir+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 rm -f .libs 2>/dev/null
13850 mkdir .libs 2>/dev/null
13851 if test -d .libs; then
13854 # MS-DOS does not allow filenames that begin with a dot.
13857 rmdir .libs 2>/dev/null
13859 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13860 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13861 objdir=$lt_cv_objdir
13869 # AIX sometimes has problems with the GCC collect2 program. For some
13870 # reason, if we set the COLLECT_NAMES environment variable, the problems
13871 # vanish in a puff of smoke.
13872 if test "X${COLLECT_NAMES+set}" != Xset; then
13874 export COLLECT_NAMES
13879 # Sed substitution that helps us do robust quoting. It backslashifies
13880 # metacharacters that are still active within double-quoted strings.
13881 Xsed='sed -e 1s/^X//'
13882 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13884 # Same as above, but do not quote variable references.
13885 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13887 # Sed substitution to delay expansion of an escaped shell variable in a
13888 # double_quote_subst'ed string.
13889 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13891 # Sed substitution to avoid accidental globbing in evaled expressions
13892 no_glob_subst='s/\*/\\\*/g'
13897 # Global variables:
13898 default_ofile=mklib
13899 can_build_shared=yes
13901 # All known linkers require a `.a' archive for static linking (except MSVC,
13902 # which needs '.lib').
13904 ltmain="$ac_aux_dir/ltmain.sh"
13905 ofile="$default_ofile"
13906 with_gnu_ld="$lt_cv_prog_gnu_ld"
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}ar; ac_word=$2
13911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13913 if test "${ac_cv_prog_AR+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 if test -n "$AR"; then
13917 ac_cv_prog_AR="$AR" # Let the user override the test.
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_AR="${ac_tool_prefix}ar"
13927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 if test -n "$AR"; then
13938 { echo "$as_me:$LINENO: result: $AR" >&5
13939 echo "${ECHO_T}$AR" >&6; }
13941 { echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6; }
13947 if test -z "$ac_cv_prog_AR"; then
13949 # Extract the first word of "ar", so it can be a program name with args.
13950 set dummy ar; ac_word=$2
13951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13953 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 if test -n "$ac_ct_AR"; then
13957 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_ac_ct_AR="ar"
13967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13977 if test -n "$ac_ct_AR"; then
13978 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13979 echo "${ECHO_T}$ac_ct_AR" >&6; }
13981 { echo "$as_me:$LINENO: result: no" >&5
13982 echo "${ECHO_T}no" >&6; }
13985 if test "x$ac_ct_AR" = x; then
13988 case $cross_compiling:$ac_tool_warned in
13990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13991 whose name does not start with the host triplet. If you think this
13992 configuration is useful to you, please write to autoconf@gnu.org." >&5
13993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13994 whose name does not start with the host triplet. If you think this
13995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13996 ac_tool_warned=yes ;;
14001 AR="$ac_cv_prog_AR"
14004 if test -n "$ac_tool_prefix"; then
14005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_RANLIB+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 if test -n "$RANLIB"; then
14013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 RANLIB=$ac_cv_prog_RANLIB
14033 if test -n "$RANLIB"; then
14034 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14035 echo "${ECHO_T}$RANLIB" >&6; }
14037 { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14043 if test -z "$ac_cv_prog_RANLIB"; then
14044 ac_ct_RANLIB=$RANLIB
14045 # Extract the first word of "ranlib", so it can be a program name with args.
14046 set dummy ranlib; ac_word=$2
14047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 if test -n "$ac_ct_RANLIB"; then
14053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14062 ac_cv_prog_ac_ct_RANLIB="ranlib"
14063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14073 if test -n "$ac_ct_RANLIB"; then
14074 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14075 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14077 { echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6; }
14081 if test "x$ac_ct_RANLIB" = x; then
14084 case $cross_compiling:$ac_tool_warned in
14086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14087 whose name does not start with the host triplet. If you think this
14088 configuration is useful to you, please write to autoconf@gnu.org." >&5
14089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14090 whose name does not start with the host triplet. If you think this
14091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14092 ac_tool_warned=yes ;;
14094 RANLIB=$ac_ct_RANLIB
14097 RANLIB="$ac_cv_prog_RANLIB"
14100 if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}strip; ac_word=$2
14103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14105 if test "${ac_cv_prog_STRIP+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 if test -n "$STRIP"; then
14109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 STRIP=$ac_cv_prog_STRIP
14129 if test -n "$STRIP"; then
14130 { echo "$as_me:$LINENO: result: $STRIP" >&5
14131 echo "${ECHO_T}$STRIP" >&6; }
14133 { echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6; }
14139 if test -z "$ac_cv_prog_STRIP"; then
14141 # Extract the first word of "strip", so it can be a program name with args.
14142 set dummy strip; ac_word=$2
14143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14145 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 if test -n "$ac_ct_STRIP"; then
14149 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_ac_ct_STRIP="strip"
14159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14168 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14169 if test -n "$ac_ct_STRIP"; then
14170 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14171 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14173 { echo "$as_me:$LINENO: result: no" >&5
14174 echo "${ECHO_T}no" >&6; }
14177 if test "x$ac_ct_STRIP" = x; then
14180 case $cross_compiling:$ac_tool_warned in
14182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14183 whose name does not start with the host triplet. If you think this
14184 configuration is useful to you, please write to autoconf@gnu.org." >&5
14185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14186 whose name does not start with the host triplet. If you think this
14187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14188 ac_tool_warned=yes ;;
14193 STRIP="$ac_cv_prog_STRIP"
14198 old_CFLAGS="$CFLAGS"
14200 # Set sane defaults for various variables
14201 test -z "$AR" && AR=ar
14202 test -z "$AR_FLAGS" && AR_FLAGS=cru
14203 test -z "$AS" && AS=as
14204 test -z "$CC" && CC=cc
14205 test -z "$LTCC" && LTCC=$CC
14206 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14207 test -z "$DLLTOOL" && DLLTOOL=dlltool
14208 test -z "$LD" && LD=ld
14209 test -z "$LN_S" && LN_S="ln -s"
14210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14211 test -z "$NM" && NM=nm
14212 test -z "$SED" && SED=sed
14213 test -z "$OBJDUMP" && OBJDUMP=objdump
14214 test -z "$RANLIB" && RANLIB=:
14215 test -z "$STRIP" && STRIP=:
14216 test -z "$ac_objext" && ac_objext=o
14218 # Determine commands to create old-style static archives.
14219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14220 old_postinstall_cmds='chmod 644 $oldlib'
14221 old_postuninstall_cmds=
14223 if test -n "$RANLIB"; then
14226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14235 for cc_temp in $compiler""; do
14237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14246 # Only perform the check for file, if the check method requires it
14247 case $deplibs_check_method in
14249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14250 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14260 lt_save_MAGIC_CMD="$MAGIC_CMD"
14261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14263 for ac_dir in $ac_dummy; do
14265 test -z "$ac_dir" && ac_dir=.
14266 if test -f $ac_dir/${ac_tool_prefix}file; then
14267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14268 if test -n "$file_magic_test_file"; then
14269 case $deplibs_check_method in
14271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14274 $EGREP "$file_magic_regex" > /dev/null; then
14279 *** Warning: the command libtool uses to detect shared libraries,
14280 *** $file_magic_cmd, produces output that libtool cannot recognize.
14281 *** The result is that libtool may fail to recognize shared libraries
14282 *** as such. This will affect the creation of libtool libraries that
14283 *** depend on shared libraries, but programs linked with such libtool
14284 *** libraries will work regardless of this problem. Nevertheless, you
14285 *** may want to report the problem to your system manager and/or to
14286 *** bug-libtool@gnu.org
14296 MAGIC_CMD="$lt_save_MAGIC_CMD"
14301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14302 if test -n "$MAGIC_CMD"; then
14303 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14306 { echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6; }
14310 if test -z "$lt_cv_path_MAGIC_CMD"; then
14311 if test -n "$ac_tool_prefix"; then
14312 { echo "$as_me:$LINENO: checking for file" >&5
14313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14322 lt_save_MAGIC_CMD="$MAGIC_CMD"
14323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14325 for ac_dir in $ac_dummy; do
14327 test -z "$ac_dir" && ac_dir=.
14328 if test -f $ac_dir/file; then
14329 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14330 if test -n "$file_magic_test_file"; then
14331 case $deplibs_check_method in
14333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14336 $EGREP "$file_magic_regex" > /dev/null; then
14341 *** Warning: the command libtool uses to detect shared libraries,
14342 *** $file_magic_cmd, produces output that libtool cannot recognize.
14343 *** The result is that libtool may fail to recognize shared libraries
14344 *** as such. This will affect the creation of libtool libraries that
14345 *** depend on shared libraries, but programs linked with such libtool
14346 *** libraries will work regardless of this problem. Nevertheless, you
14347 *** may want to report the problem to your system manager and/or to
14348 *** bug-libtool@gnu.org
14358 MAGIC_CMD="$lt_save_MAGIC_CMD"
14363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364 if test -n "$MAGIC_CMD"; then
14365 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14368 { echo "$as_me:$LINENO: result: no" >&5
14369 echo "${ECHO_T}no" >&6; }
14382 enable_win32_dll=no
14384 # Check whether --enable-libtool-lock was given.
14385 if test "${enable_libtool_lock+set}" = set; then
14386 enableval=$enable_libtool_lock;
14389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14392 # Check whether --with-pic was given.
14393 if test "${with_pic+set}" = set; then
14394 withval=$with_pic; pic_mode="$withval"
14399 test -z "$pic_mode" && pic_mode=default
14401 # Use C for the default configuration in the libtool script
14405 ac_cpp='$CPP $CPPFLAGS'
14406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411 # Source file extension for C test sources.
14414 # Object file extension for compiled C test sources.
14418 # Code to be used in simple compile tests
14419 lt_simple_compile_test_code="int some_variable = 0;\n"
14421 # Code to be used in simple link tests
14422 lt_simple_link_test_code='int main(){return(0);}\n'
14425 # If no C compiler was specified, use CC.
14428 # If no C compiler flags were specified, use CFLAGS.
14429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14431 # Allow CC to be a program name with arguments.
14435 # save warnings/boilerplate of simple test code
14436 ac_outfile=conftest.$ac_objext
14437 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14439 _lt_compiler_boilerplate=`cat conftest.err`
14442 ac_outfile=conftest.$ac_objext
14443 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14445 _lt_linker_boilerplate=`cat conftest.err`
14450 lt_prog_compiler_no_builtin_flag=
14452 if test "$GCC" = yes; then
14453 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14456 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14457 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 lt_cv_prog_compiler_rtti_exceptions=no
14462 ac_outfile=conftest.$ac_objext
14463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464 lt_compiler_flag="-fno-rtti -fno-exceptions"
14465 # Insert the option either (1) after the last *FLAGS variable, or
14466 # (2) before a word containing "conftest.", or (3) at the end.
14467 # Note that $ac_compile itself does not contain backslashes and begins
14468 # with a dollar sign (not a hyphen), so the echo should work correctly.
14469 # The option is referenced via a variable to avoid confusing sed.
14470 lt_compile=`echo "$ac_compile" | $SED \
14471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473 -e 's:$: $lt_compiler_flag:'`
14474 (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
14475 (eval "$lt_compile" 2>conftest.err)
14477 cat conftest.err >&5
14478 echo "$as_me:14478: \$? = $ac_status" >&5
14479 if (exit $ac_status) && test -s "$ac_outfile"; then
14480 # The compiler can only warn and ignore the option if not recognized
14481 # So say no if there are warnings other than the usual output.
14482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14485 lt_cv_prog_compiler_rtti_exceptions=yes
14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14492 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14502 lt_prog_compiler_wl=
14503 lt_prog_compiler_pic=
14504 lt_prog_compiler_static=
14506 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14507 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14509 if test "$GCC" = yes; then
14510 lt_prog_compiler_wl='-Wl,'
14511 lt_prog_compiler_static='-static'
14515 # All AIX code is PIC.
14516 if test "$host_cpu" = ia64; then
14517 # AIX 5 now supports IA64 processor
14518 lt_prog_compiler_static='-Bstatic'
14523 # FIXME: we need at least 68020 code to build shared libraries, but
14524 # adding the `-m68020' flag to GCC prevents building anything better,
14526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14529 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14530 # PIC is the default for these OSes.
14533 mingw* | pw32* | os2*)
14534 # This hack is so that the source file can tell whether it is being
14535 # built for inclusion in a dll (and should export symbols for example).
14536 lt_prog_compiler_pic='-DDLL_EXPORT'
14539 darwin* | rhapsody*)
14540 # PIC is the default on this platform
14541 # Common symbols not allowed in MH_DYLIB files
14542 lt_prog_compiler_pic='-fno-common'
14546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14547 # Instead, we relocate shared libraries at runtime.
14551 # Just because we use GCC doesn't mean we suddenly get shared libraries
14552 # on systems that don't support them.
14553 lt_prog_compiler_can_build_shared=no
14558 if test -d /usr/nec; then
14559 lt_prog_compiler_pic=-Kconform_pic
14564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14565 # not for PA HP-UX.
14571 lt_prog_compiler_pic='-fPIC'
14577 lt_prog_compiler_pic='-fPIC'
14581 # PORTME Check for flag to pass linker flags through the system compiler.
14584 lt_prog_compiler_wl='-Wl,'
14585 if test "$host_cpu" = ia64; then
14586 # AIX 5 now supports IA64 processor
14587 lt_prog_compiler_static='-Bstatic'
14589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14593 # PIC is the default on this platform
14594 # Common symbols not allowed in MH_DYLIB files
14595 case $cc_basename in
14597 lt_prog_compiler_pic='-qnocommon'
14598 lt_prog_compiler_wl='-Wl,'
14603 mingw* | pw32* | os2*)
14604 # This hack is so that the source file can tell whether it is being
14605 # built for inclusion in a dll (and should export symbols for example).
14606 lt_prog_compiler_pic='-DDLL_EXPORT'
14609 hpux9* | hpux10* | hpux11*)
14610 lt_prog_compiler_wl='-Wl,'
14611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14612 # not for PA HP-UX.
14618 lt_prog_compiler_pic='+Z'
14621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14622 lt_prog_compiler_static='${wl}-a ${wl}archive'
14625 irix5* | irix6* | nonstopux*)
14626 lt_prog_compiler_wl='-Wl,'
14627 # PIC (with -KPIC) is the default.
14628 lt_prog_compiler_static='-non_shared'
14632 lt_prog_compiler_pic='-KPIC'
14633 lt_prog_compiler_static='-Bstatic'
14637 case $cc_basename in
14639 lt_prog_compiler_wl='-Wl,'
14640 lt_prog_compiler_pic='-KPIC'
14641 lt_prog_compiler_static='-static'
14643 pgcc* | pgf77* | pgf90* | pgf95*)
14644 # Portland Group compilers (*not* the Pentium gcc compiler,
14645 # which looks to be a dead project)
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_pic='-fpic'
14648 lt_prog_compiler_static='-Bstatic'
14651 lt_prog_compiler_wl='-Wl,'
14652 # All Alpha code is PIC.
14653 lt_prog_compiler_static='-non_shared'
14658 osf3* | osf4* | osf5*)
14659 lt_prog_compiler_wl='-Wl,'
14660 # All OSF/1 code is PIC.
14661 lt_prog_compiler_static='-non_shared'
14665 lt_prog_compiler_pic='-KPIC'
14666 lt_prog_compiler_static='-Bstatic'
14667 case $cc_basename in
14668 f77* | f90* | f95*)
14669 lt_prog_compiler_wl='-Qoption ld ';;
14671 lt_prog_compiler_wl='-Wl,';;
14676 lt_prog_compiler_wl='-Qoption ld '
14677 lt_prog_compiler_pic='-PIC'
14678 lt_prog_compiler_static='-Bstatic'
14681 sysv4 | sysv4.2uw2* | sysv4.3*)
14682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_pic='-KPIC'
14684 lt_prog_compiler_static='-Bstatic'
14688 if test -d /usr/nec ;then
14689 lt_prog_compiler_pic='-Kconform_pic'
14690 lt_prog_compiler_static='-Bstatic'
14694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14695 lt_prog_compiler_wl='-Wl,'
14696 lt_prog_compiler_pic='-KPIC'
14697 lt_prog_compiler_static='-Bstatic'
14701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_can_build_shared=no
14706 lt_prog_compiler_pic='-pic'
14707 lt_prog_compiler_static='-Bstatic'
14711 lt_prog_compiler_can_build_shared=no
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14720 # Check to make sure the PIC flag actually works.
14722 if test -n "$lt_prog_compiler_pic"; then
14724 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14725 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14726 if test "${lt_prog_compiler_pic_works+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 lt_prog_compiler_pic_works=no
14730 ac_outfile=conftest.$ac_objext
14731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14732 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14733 # Insert the option either (1) after the last *FLAGS variable, or
14734 # (2) before a word containing "conftest.", or (3) at the end.
14735 # Note that $ac_compile itself does not contain backslashes and begins
14736 # with a dollar sign (not a hyphen), so the echo should work correctly.
14737 # The option is referenced via a variable to avoid confusing sed.
14738 lt_compile=`echo "$ac_compile" | $SED \
14739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14741 -e 's:$: $lt_compiler_flag:'`
14742 (eval echo "\"\$as_me:14742: $lt_compile\"" >&5)
14743 (eval "$lt_compile" 2>conftest.err)
14745 cat conftest.err >&5
14746 echo "$as_me:14746: \$? = $ac_status" >&5
14747 if (exit $ac_status) && test -s "$ac_outfile"; then
14748 # The compiler can only warn and ignore the option if not recognized
14749 # So say no if there are warnings other than the usual output.
14750 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14753 lt_prog_compiler_pic_works=yes
14759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14760 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14762 if test x"$lt_prog_compiler_pic_works" = xyes; then
14763 case $lt_prog_compiler_pic in
14765 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14768 lt_prog_compiler_pic=
14769 lt_prog_compiler_can_build_shared=no
14774 # For platforms which do not support PIC, -DPIC is meaningless:
14776 lt_prog_compiler_pic=
14779 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14784 # Check to make sure the static flag actually works.
14786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14787 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14788 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14789 if test "${lt_prog_compiler_static_works+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 lt_prog_compiler_static_works=no
14793 save_LDFLAGS="$LDFLAGS"
14794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14795 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14797 # The linker can only warn and ignore the option if not recognized
14798 # So say no if there are warnings
14799 if test -s conftest.err; then
14800 # Append any errors to the config.log.
14801 cat conftest.err 1>&5
14802 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if diff conftest.exp conftest.er2 >/dev/null; then
14805 lt_prog_compiler_static_works=yes
14808 lt_prog_compiler_static_works=yes
14812 LDFLAGS="$save_LDFLAGS"
14815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14816 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14818 if test x"$lt_prog_compiler_static_works" = xyes; then
14821 lt_prog_compiler_static=
14825 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14826 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14827 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 lt_cv_prog_compiler_c_o=no
14831 $rm -r conftest 2>/dev/null
14835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14837 lt_compiler_flag="-o out/conftest2.$ac_objext"
14838 # Insert the option either (1) after the last *FLAGS variable, or
14839 # (2) before a word containing "conftest.", or (3) at the end.
14840 # Note that $ac_compile itself does not contain backslashes and begins
14841 # with a dollar sign (not a hyphen), so the echo should work correctly.
14842 lt_compile=`echo "$ac_compile" | $SED \
14843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14845 -e 's:$: $lt_compiler_flag:'`
14846 (eval echo "\"\$as_me:14846: $lt_compile\"" >&5)
14847 (eval "$lt_compile" 2>out/conftest.err)
14849 cat out/conftest.err >&5
14850 echo "$as_me:14850: \$? = $ac_status" >&5
14851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14853 # The compiler can only warn and ignore the option if not recognized
14854 # So say no if there are warnings
14855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14858 lt_cv_prog_compiler_c_o=yes
14863 # SGI C++ compiler will create directory out/ii_files/ for
14864 # template instantiation
14865 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14866 $rm out/* && rmdir out
14872 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14873 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14876 hard_links="nottested"
14877 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14878 # do not overwrite the value of need_locks provided by the user
14879 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14880 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14885 ln conftest.a conftest.b 2>&5 || hard_links=no
14886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14887 { echo "$as_me:$LINENO: result: $hard_links" >&5
14888 echo "${ECHO_T}$hard_links" >&6; }
14889 if test "$hard_links" = no; then
14890 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14891 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14898 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14899 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14902 allow_undefined_flag=
14903 enable_shared_with_static_runtimes=no
14905 archive_expsym_cmds=
14906 old_archive_From_new_cmds=
14907 old_archive_from_expsyms_cmds=
14908 export_dynamic_flag_spec=
14909 whole_archive_flag_spec=
14910 thread_safe_flag_spec=
14911 hardcode_libdir_flag_spec=
14912 hardcode_libdir_flag_spec_ld=
14913 hardcode_libdir_separator=
14915 hardcode_minus_L=no
14916 hardcode_shlibpath_var=unsupported
14917 link_all_deplibs=unknown
14918 hardcode_automatic=no
14920 module_expsym_cmds=
14921 always_export_symbols=no
14922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14923 # include_expsyms should be a list of space-separated symbols to be *always*
14924 # included in the symbol list
14926 # exclude_expsyms can be an extended regexp of symbols to exclude
14927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14929 # as well as any symbol that contains `d'.
14930 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14932 # platforms (ab)use it in PIC code, but their linkers get confused if
14933 # the symbol is explicitly referenced. Since portable code cannot
14934 # rely on this symbol name, it's probably fine to never include it in
14935 # preloaded symbol tables.
14936 extract_expsyms_cmds=
14937 # Just being paranoid about ensuring that cc_basename is set.
14938 for cc_temp in $compiler""; do
14940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14949 cygwin* | mingw* | pw32*)
14950 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14951 # When not using gcc, we currently assume that we are using
14952 # Microsoft Visual C++.
14953 if test "$GCC" != yes; then
14958 # we just hope/assume this is gcc and not c89 (= MSVC++)
14967 if test "$with_gnu_ld" = yes; then
14968 # If archive_cmds runs LD, not CC, wlarc should be empty
14971 # Set some defaults for GNU ld with shared library support. These
14972 # are reset later if shared libraries are not supported. Putting them
14973 # here allows them to be overridden if necessary.
14974 runpath_var=LD_RUN_PATH
14975 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14976 export_dynamic_flag_spec='${wl}--export-dynamic'
14977 # ancient GNU ld didn't support --whole-archive et. al.
14978 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14979 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14981 whole_archive_flag_spec=
14983 supports_anon_versioning=no
14984 case `$LD -v 2>/dev/null` in
14985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988 *\ 2.11.*) ;; # other 2.11 versions
14989 *) supports_anon_versioning=yes ;;
14992 # See if GNU ld supports shared libraries.
14994 aix3* | aix4* | aix5*)
14995 # On AIX/PPC, the GNU linker is very broken
14996 if test "$host_cpu" != ia64; then
15000 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15001 *** to be unable to reliably create shared libraries on AIX.
15002 *** Therefore, libtool is disabling shared libraries support. If you
15003 *** really care for shared libraries, you may want to modify your PATH
15004 *** so that a non-GNU linker is found, and then restart.
15011 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)'
15012 hardcode_libdir_flag_spec='-L$libdir'
15013 hardcode_minus_L=yes
15015 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15016 # that the semantics of dynamic libraries on AmigaOS, at least up
15017 # to version 4, is to share data among multiple programs linked
15018 # with the same dynamic library. Since this doesn't match the
15019 # behavior of shared libraries on other platforms, we can't use
15025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15026 allow_undefined_flag=unsupported
15027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15028 # support --undefined. This deserves some investigation. FIXME
15029 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15035 cygwin* | mingw* | pw32*)
15036 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15037 # as there is no search path for DLLs.
15038 hardcode_libdir_flag_spec='-L$libdir'
15039 allow_undefined_flag=unsupported
15040 always_export_symbols=no
15041 enable_shared_with_static_runtimes=yes
15042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15044 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15046 # If the export-symbols file already is a .def file (1st line
15047 # is EXPORTS), use it as is; otherwise, prepend...
15048 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15049 cp $export_symbols $output_objdir/$soname.def;
15051 echo EXPORTS > $output_objdir/$soname.def;
15052 cat $export_symbols >> $output_objdir/$soname.def;
15054 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15062 hardcode_shlibpath_var=no
15063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15064 export_dynamic_flag_spec='${wl}-E'
15065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15066 # Instead, shared libraries are loaded at an image base (0x10000000 by
15067 # default) and relocated if they conflict, which is a slow very memory
15068 # consuming and fragmenting process. To avoid this, we pick a random,
15069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15072 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'
15076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078 case $cc_basename,$host_cpu in
15079 pgcc*) # Portland Group C compiler
15080 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'
15081 tmp_addflag=' $pic_flag'
15083 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15084 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'
15085 tmp_addflag=' $pic_flag -Mnomain' ;;
15086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15087 tmp_addflag=' -i_dynamic' ;;
15088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15089 tmp_addflag=' -i_dynamic -nofor_main' ;;
15090 ifc* | ifort*) # Intel Fortran compiler
15091 tmp_addflag=' -nofor_main' ;;
15093 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15095 if test $supports_anon_versioning = yes; then
15096 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15098 $echo "local: *; };" >> $output_objdir/$libname.ver~
15099 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15122 *** create shared libraries on Solaris systems. Therefore, libtool
15123 *** is disabling shared libraries support. We urge you to upgrade GNU
15124 *** binutils to release 2.9.1 or newer. Another option is to modify
15125 *** your PATH or compiler configuration so that the native linker is
15126 *** used, and then restart.
15129 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15138 case `$LD -v 2>&1` in
15139 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15143 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15144 *** reliably create shared libraries on SCO systems. Therefore, libtool
15145 *** is disabling shared libraries support. We urge you to upgrade GNU
15146 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15147 *** your PATH or compiler configuration so that the native linker is
15148 *** used, and then restart.
15153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_direct=yes
15168 hardcode_shlibpath_var=no
15172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181 if test "$ld_shlibs" = no; then
15183 hardcode_libdir_flag_spec=
15184 export_dynamic_flag_spec=
15185 whole_archive_flag_spec=
15188 # PORTME fill in a description of your system's linker (not GNU ld)
15191 allow_undefined_flag=unsupported
15192 always_export_symbols=yes
15193 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'
15194 # Note: this linker hardcodes the directories in LIBPATH if there
15195 # are no directories specified by -L.
15196 hardcode_minus_L=yes
15197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15198 # Neither direct hardcoding nor static linking is supported with a
15200 hardcode_direct=unsupported
15205 if test "$host_cpu" = ia64; then
15206 # On IA64, the linker does run time linking by default, so we don't
15207 # have to do anything special.
15208 aix_use_runtimelinking=no
15209 exp_sym_flag='-Bexport'
15212 # If we're using GNU nm, then we don't want the "-C" option.
15213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15214 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15215 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'
15217 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'
15219 aix_use_runtimelinking=no
15221 # Test if we are trying to use run time linking or normal
15222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15223 # need to do runtime linking.
15224 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15225 for ld_flag in $LDFLAGS; do
15226 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15227 aix_use_runtimelinking=yes
15234 exp_sym_flag='-bexport'
15235 no_entry_flag='-bnoentry'
15238 # When large executables or shared objects are built, AIX ld can
15239 # have problems creating the table of contents. If linking a library
15240 # or program results in "error TOC overflow" add -mminimal-toc to
15241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15245 hardcode_direct=yes
15246 hardcode_libdir_separator=':'
15247 link_all_deplibs=yes
15249 if test "$GCC" = yes; then
15250 case $host_os in aix4.[012]|aix4.[012].*)
15251 # We only want to do this on AIX 4.2 and lower, the check
15252 # below for broken collect2 doesn't work under 4.3+
15253 collect2name=`${CC} -print-prog-name=collect2`
15254 if test -f "$collect2name" && \
15255 strings "$collect2name" | grep resolve_lib_name >/dev/null
15257 # We have reworked collect2
15258 hardcode_direct=yes
15260 # We have old collect2
15261 hardcode_direct=unsupported
15262 # It fails to find uninstalled libraries when the uninstalled
15263 # path is not listed in the libpath. Setting hardcode_minus_L
15264 # to unsupported forces relinking
15265 hardcode_minus_L=yes
15266 hardcode_libdir_flag_spec='-L$libdir'
15267 hardcode_libdir_separator=
15271 shared_flag='-shared'
15272 if test "$aix_use_runtimelinking" = yes; then
15273 shared_flag="$shared_flag "'${wl}-G'
15277 if test "$host_cpu" = ia64; then
15278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15279 # chokes on -Wl,-G. The following line is correct:
15282 if test "$aix_use_runtimelinking" = yes; then
15283 shared_flag='${wl}-G'
15285 shared_flag='${wl}-bM:SRE'
15290 # It seems that -bexpall does not export symbols beginning with
15291 # underscore (_), so it is better to generate a list of symbols to export.
15292 always_export_symbols=yes
15293 if test "$aix_use_runtimelinking" = yes; then
15294 # Warning - without using the other runtime loading flags (-brtl),
15295 # -berok will link without error, but may produce a broken library.
15296 allow_undefined_flag='-berok'
15297 # Determine the default libpath from the value encoded in an empty executable.
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_link") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15350 # Check for a 64-bit object if we didn't find anything.
15351 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; }
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15365 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"
15367 if test "$host_cpu" = ia64; then
15368 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15369 allow_undefined_flag="-z nodefs"
15370 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"
15372 # Determine the default libpath from the value encoded in an empty executable.
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_link") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15425 # Check for a 64-bit object if we didn't find anything.
15426 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; }
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15440 # Warning - without using the other run time loading flags,
15441 # -berok will link without error, but may produce a broken library.
15442 no_undefined_flag=' ${wl}-bernotok'
15443 allow_undefined_flag=' ${wl}-berok'
15444 # Exported symbols can be pulled into shared objects from archives
15445 whole_archive_flag_spec='$convenience'
15446 archive_cmds_need_lc=yes
15447 # This is similar to how AIX traditionally builds its shared libraries.
15448 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'
15454 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)'
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_minus_L=yes
15457 # see comment about different semantics on the GNU ld section
15462 export_dynamic_flag_spec=-rdynamic
15465 cygwin* | mingw* | pw32*)
15466 # When not using gcc, we currently assume that we are using
15467 # Microsoft Visual C++.
15468 # hardcode_libdir_flag_spec is actually meaningless, as there is
15469 # no search path for DLLs.
15470 hardcode_libdir_flag_spec=' '
15471 allow_undefined_flag=unsupported
15472 # Tell ltmain to make .lib files, not .a files.
15474 # Tell ltmain to make .dll files, not .so files.
15476 # FIXME: Setting linknames here is a bad hack.
15477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15478 # The linker will automatically build a .lib file if we build a DLL.
15479 old_archive_From_new_cmds='true'
15480 # FIXME: Should let the user specify the lib program.
15481 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15482 fix_srcfile_path='`cygpath -w "$srcfile"`'
15483 enable_shared_with_static_runtimes=yes
15486 darwin* | rhapsody*)
15488 rhapsody* | darwin1.[012])
15489 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495 case ${MACOSX_DEPLOYMENT_TARGET} in
15497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15500 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15506 archive_cmds_need_lc=no
15508 hardcode_automatic=yes
15509 hardcode_shlibpath_var=unsupported
15510 whole_archive_flag_spec=''
15511 link_all_deplibs=yes
15512 if test "$GCC" = yes ; then
15513 output_verbose_link_cmd='echo'
15514 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15517 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}'
15518 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}'
15520 case $cc_basename in
15522 output_verbose_link_cmd='echo'
15523 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15526 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}'
15527 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}'
15537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538 hardcode_libdir_flag_spec='-L$libdir'
15539 hardcode_shlibpath_var=no
15546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15547 # support. Future versions do this automatically, but an explicit c++rt0.o
15548 # does not break anything, and helps significantly (at the cost of a little
15551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15552 hardcode_libdir_flag_spec='-R$libdir'
15553 hardcode_direct=yes
15554 hardcode_shlibpath_var=no
15557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_direct=yes
15561 hardcode_minus_L=yes
15562 hardcode_shlibpath_var=no
15565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15566 freebsd* | kfreebsd*-gnu | dragonfly*)
15567 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15568 hardcode_libdir_flag_spec='-R$libdir'
15569 hardcode_direct=yes
15570 hardcode_shlibpath_var=no
15574 if test "$GCC" = yes; then
15575 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'
15577 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'
15579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15580 hardcode_libdir_separator=:
15581 hardcode_direct=yes
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L=yes
15586 export_dynamic_flag_spec='${wl}-E'
15590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15591 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15595 if test "$with_gnu_ld" = no; then
15596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator=:
15599 hardcode_direct=yes
15600 export_dynamic_flag_spec='${wl}-E'
15602 # hardcode_minus_L: Not really in the search PATH,
15603 # but as the default location of the library.
15604 hardcode_minus_L=yes
15609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15612 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15618 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15634 if test "$with_gnu_ld" = no; then
15635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15636 hardcode_libdir_separator=:
15640 hardcode_libdir_flag_spec_ld='+b $libdir'
15642 hardcode_shlibpath_var=no
15645 hardcode_direct=yes
15646 export_dynamic_flag_spec='${wl}-E'
15648 # hardcode_minus_L: Not really in the search PATH,
15649 # but as the default location of the library.
15650 hardcode_minus_L=yes
15656 irix5* | irix6* | nonstopux*)
15657 if test "$GCC" = yes; then
15658 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'
15660 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'
15661 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15664 hardcode_libdir_separator=:
15665 link_all_deplibs=yes
15669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15674 hardcode_libdir_flag_spec='-R$libdir'
15675 hardcode_direct=yes
15676 hardcode_shlibpath_var=no
15680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_direct=yes
15682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683 hardcode_libdir_separator=:
15684 hardcode_shlibpath_var=no
15688 hardcode_direct=yes
15689 hardcode_shlibpath_var=no
15690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15691 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15694 export_dynamic_flag_spec='${wl}-E'
15697 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_libdir_flag_spec='-R$libdir'
15702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15710 hardcode_libdir_flag_spec='-L$libdir'
15711 hardcode_minus_L=yes
15712 allow_undefined_flag=unsupported
15713 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'
15714 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15718 if test "$GCC" = yes; then
15719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15720 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'
15722 allow_undefined_flag=' -expect_unresolved \*'
15723 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'
15725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator=:
15729 osf4* | osf5*) # as osf3* with the addition of -msym flag
15730 if test "$GCC" = yes; then
15731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15732 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'
15733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15735 allow_undefined_flag=' -expect_unresolved \*'
15736 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'
15737 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15738 $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'
15740 # Both c and cxx compiler support -rpath directly
15741 hardcode_libdir_flag_spec='-rpath $libdir'
15743 hardcode_libdir_separator=:
15747 no_undefined_flag=' -z text'
15748 if test "$GCC" = yes; then
15750 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15752 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15759 hardcode_libdir_flag_spec='-R$libdir'
15760 hardcode_shlibpath_var=no
15762 solaris2.[0-5] | solaris2.[0-5].*) ;;
15764 # The compiler driver will combine linker options so we
15765 # cannot just pass the convience library names through
15766 # without $wl, iff we do not link with $LD.
15767 # Luckily, gcc supports the same syntax we need for Sun Studio.
15768 # Supported since Solaris 2.6 (maybe 2.5.1?)
15771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15773 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' ;;
15776 link_all_deplibs=yes
15780 if test "x$host_vendor" = xsequent; then
15781 # Use $CC to link under sequent, because it throws in some extra .o
15782 # files that make .init and .fini sections work.
15783 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15787 hardcode_libdir_flag_spec='-L$libdir'
15788 hardcode_direct=yes
15789 hardcode_minus_L=yes
15790 hardcode_shlibpath_var=no
15794 case $host_vendor in
15796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 hardcode_direct=yes # is this really true???
15800 ## LD is ld it makes a PLAMLIB
15801 ## CC just makes a GrossModule.
15802 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15803 reload_cmds='$CC -r -o $output$reload_objs'
15807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15811 runpath_var='LD_RUN_PATH'
15812 hardcode_shlibpath_var=no
15816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_shlibpath_var=no
15818 export_dynamic_flag_spec='-Bexport'
15822 if test -d /usr/nec; then
15823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_shlibpath_var=no
15825 runpath_var=LD_RUN_PATH
15826 hardcode_runpath_var=yes
15831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15832 no_undefined_flag='${wl}-z,text'
15833 archive_cmds_need_lc=no
15834 hardcode_shlibpath_var=no
15835 runpath_var='LD_RUN_PATH'
15837 if test "$GCC" = yes; then
15838 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15846 sysv5* | sco3.2v5* | sco5v6*)
15847 # Note: We can NOT use -z defs as we might desire, because we do not
15848 # link with -lc, and that would cause any symbols used from libc to
15849 # always be unresolved, which means just about no library would
15850 # ever link correctly. If we're not using GNU ld we use -z text
15851 # though, which does catch some bad symbols but isn't as heavy-handed
15853 no_undefined_flag='${wl}-z,text'
15854 allow_undefined_flag='${wl}-z,nodefs'
15855 archive_cmds_need_lc=no
15856 hardcode_shlibpath_var=no
15857 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15858 hardcode_libdir_separator=':'
15859 link_all_deplibs=yes
15860 export_dynamic_flag_spec='${wl}-Bexport'
15861 runpath_var='LD_RUN_PATH'
15863 if test "$GCC" = yes; then
15864 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15867 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_libdir_flag_spec='-L$libdir'
15875 hardcode_shlibpath_var=no
15884 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15885 echo "${ECHO_T}$ld_shlibs" >&6; }
15886 test "$ld_shlibs" = no && can_build_shared=no
15889 # Do we need to explicitly link libc?
15891 case "x$archive_cmds_need_lc" in
15893 # Assume -lc should be added
15894 archive_cmds_need_lc=yes
15896 if test "$enable_shared" = yes && test "$GCC" = yes; then
15897 case $archive_cmds in
15899 # FIXME: we may have to deal with multi-command sequences.
15902 # Test whether the compiler implicitly links with -lc since on some
15903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15904 # to ld, don't add -lc before -lgcc.
15905 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15906 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15911 (eval $ac_compile) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } 2>conftest.err; then
15917 libobjs=conftest.$ac_objext
15919 wl=$lt_prog_compiler_wl
15920 pic_flag=$lt_prog_compiler_pic
15926 lt_save_allow_undefined_flag=$allow_undefined_flag
15927 allow_undefined_flag=
15928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }
15934 archive_cmds_need_lc=no
15936 archive_cmds_need_lc=yes
15938 allow_undefined_flag=$lt_save_allow_undefined_flag
15940 cat conftest.err 1>&5
15943 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15944 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15951 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15953 library_names_spec=
15954 libname_spec='lib$name'
15958 postuninstall_cmds=
15962 shlibpath_overrides_runpath=unknown
15964 dynamic_linker="$host_os ld.so"
15965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15966 if test "$GCC" = yes; then
15967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15968 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15969 # if the path contains ";" then we assume it to be the separator
15970 # otherwise default to the standard path separator (i.e. ":") - it is
15971 # assumed that no part of a normal pathname contains ";" but that should
15972 # okay in the real world where ";" in dirpaths is itself problematic.
15973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15980 need_lib_prefix=unknown
15981 hardcode_into_libs=no
15983 # when you set need_version to no, make sure it does not cause -set_version
15984 # flags to be left without arguments
15985 need_version=unknown
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15991 shlibpath_var=LIBPATH
15993 # AIX 3 has no versioning support, so we append a major version to the name.
15994 soname_spec='${libname}${release}${shared_ext}$major'
16001 hardcode_into_libs=yes
16002 if test "$host_cpu" = ia64; then
16003 # AIX 5 supports IA64
16004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16005 shlibpath_var=LD_LIBRARY_PATH
16007 # With GCC up to 2.95.x, collect2 would create an import file
16008 # for dependence libraries. The import file would start with
16009 # the line `#! .'. This would cause the generated library to
16010 # depend on `.', always an invalid library. This was fixed in
16011 # development snapshots of GCC prior to 3.0.
16013 aix4 | aix4.[01] | aix4.[01].*)
16014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16019 can_build_shared=no
16023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16024 # soname into executable. Probably we can add versioning support to
16025 # collect2, so additional links can be useful in future.
16026 if test "$aix_use_runtimelinking" = yes; then
16027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16028 # instead of lib<name>.a to let people know that these are not
16029 # typical AIX shared libraries.
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 # We preserve .a as extension for shared libraries through AIX4.2
16033 # and later when we are not doing run time linking.
16034 library_names_spec='${libname}${release}.a $libname.a'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16037 shlibpath_var=LIBPATH
16042 library_names_spec='$libname.ixlibrary $libname.a'
16043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16044 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'
16048 library_names_spec='${libname}${shared_ext}'
16049 dynamic_linker="$host_os ld.so"
16050 shlibpath_var=LIBRARY_PATH
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16062 # the default ld.so.conf also contains /usr/contrib/lib and
16063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16064 # libtool to hard-code these into programs
16067 cygwin* | mingw* | pw32*)
16068 version_type=windows
16073 case $GCC,$host_os in
16074 yes,cygwin* | yes,mingw* | yes,pw32*)
16075 library_names_spec='$libname.dll.a'
16076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16077 postinstall_cmds='base_file=`basename \${file}`~
16078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16079 dldir=$destdir/`dirname \$dlpath`~
16080 test -d \$dldir || mkdir -p \$dldir~
16081 $install_prog $dir/$dlname \$dldir/$dlname~
16082 chmod a+x \$dldir/$dlname'
16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084 dlpath=$dir/\$dldll~
16086 shlibpath_overrides_runpath=yes
16090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16095 # MinGW DLLs use traditional 'lib' prefix
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099 # It is most probably a Windows format PATH printed by
16100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101 # path with ; separators, and with drive letters. We can handle the
16102 # drive letters (cygwin fileutils understands them), so leave them,
16103 # especially as we might pass files found there to a mingw objdump,
16104 # which wouldn't understand a cygwinified path. Ahh.
16105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
16112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16121 dynamic_linker='Win32 ld.exe'
16122 # FIXME: first we should search . and the directory the executable is in
16126 darwin* | rhapsody*)
16127 dynamic_linker="$host_os dyld"
16128 version_type=darwin
16131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16132 soname_spec='${libname}${release}${major}$shared_ext'
16133 shlibpath_overrides_runpath=yes
16134 shlibpath_var=DYLD_LIBRARY_PATH
16135 shrext_cmds='.dylib'
16136 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16137 if test "$GCC" = yes; then
16138 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"`
16140 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 shlibpath_var=LD_LIBRARY_PATH
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16167 dynamic_linker='GNU ld.so'
16170 freebsd* | dragonfly*)
16171 # DragonFly does not have aout. When/if they implement a new
16172 # versioning mechanism, adjust this.
16173 if test -x /usr/bin/objformat; then
16174 objformat=`/usr/bin/objformat`
16177 freebsd[123]*) objformat=aout ;;
16178 *) objformat=elf ;;
16181 version_type=freebsd-$objformat
16182 case $version_type in
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16193 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16198 freebsd3.[01]* | freebsdelf3.[01]*)
16199 shlibpath_overrides_runpath=yes
16200 hardcode_into_libs=yes
16202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16204 shlibpath_overrides_runpath=no
16205 hardcode_into_libs=yes
16207 freebsd*) # from 4.6 on
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 hardcode_into_libs=yes
16224 hpux9* | hpux10* | hpux11*)
16225 # Give a soname corresponding to the major version so that dld.sl refuses to
16226 # link against other versions.
16233 hardcode_into_libs=yes
16234 dynamic_linker="$host_os dld.so"
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 if test "X$HPUX_IA64_MODE" = X32; then
16240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16248 hardcode_into_libs=yes
16249 dynamic_linker="$host_os dld.sl"
16250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=SHLIB_PATH
16261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16266 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16267 postinstall_cmds='chmod 555 $lib'
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16282 irix5* | irix6* | nonstopux*)
16284 nonstopux*) version_type=nonstopux ;;
16286 if test "$lt_cv_prog_gnu_ld" = yes; then
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16297 irix5* | nonstopux*)
16298 libsuff= shlibsuff=
16301 case $LD in # libtool.m4 will add one of these switches to LD
16302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16303 libsuff= shlibsuff= libmagic=32-bit;;
16304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16305 libsuff=32 shlibsuff=N32 libmagic=N32;;
16306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16307 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16308 *) libsuff= shlibsuff= libmagic=never-match;;
16312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16313 shlibpath_overrides_runpath=no
16314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16316 hardcode_into_libs=yes
16319 # No shared lib support for Linux oldld, aout, or coff.
16320 linux*oldld* | linux*aout* | linux*coff*)
16324 # This must be Linux ELF.
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=no
16334 # This implies no fast_install, which is unacceptable.
16335 # Some rework will be needed to allow for fast_install
16336 # before this can be enabled.
16337 hardcode_into_libs=yes
16339 # Append ld.so.conf contents to the search path
16340 if test -f /etc/ld.so.conf; then
16341 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' ' '`
16342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16345 # We used to test for /lib/ld.so.1 and disable shared libraries on
16346 # powerpc, because MkLinux only supported shared libraries with the
16347 # GNU dynamic linker. Since this was broken with cross compilers,
16348 # most powerpc-linux boxes support dynamic linking these days and
16349 # people can always --disable-shared, the test was removed, and we
16350 # assume the GNU/Linux dynamic linker is in use.
16351 dynamic_linker='GNU/Linux ld.so'
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 hardcode_into_libs=yes
16363 dynamic_linker='GNU ld.so'
16370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373 dynamic_linker='NetBSD (a.out) ld.so'
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 dynamic_linker='NetBSD ld.elf_so'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=yes
16381 hardcode_into_libs=yes
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=yes
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16403 sys_lib_dlsearch_path_spec="/usr/lib"
16405 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16407 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16408 *) need_version=no ;;
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16415 openbsd2.[89] | openbsd2.[89].*)
16416 shlibpath_overrides_runpath=no
16419 shlibpath_overrides_runpath=yes
16423 shlibpath_overrides_runpath=yes
16428 libname_spec='$name'
16431 library_names_spec='$libname${shared_ext} $libname.a'
16432 dynamic_linker='OS/2 ld.exe'
16433 shlibpath_var=LIBPATH
16436 osf3* | osf4* | osf5*)
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 soname_spec='${libname}${release}${shared_ext}$major'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 shlibpath_overrides_runpath=yes
16455 hardcode_into_libs=yes
16456 # ldd complains unless libraries are executable
16457 postinstall_cmds='chmod +x $lib'
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=yes
16466 if test "$with_gnu_ld" = yes; then
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 case $host_vendor in
16479 shlibpath_overrides_runpath=no
16481 export_dynamic_flag_spec='${wl}-Blargedynsym'
16482 runpath_var=LD_RUN_PATH
16490 shlibpath_overrides_runpath=no
16491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16497 if test -d /usr/nec ;then
16499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16500 soname_spec='$libname${shared_ext}.$major'
16501 shlibpath_var=LD_LIBRARY_PATH
16505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16506 version_type=freebsd-elf
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 hardcode_into_libs=yes
16513 if test "$with_gnu_ld" = yes; then
16514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16515 shlibpath_overrides_runpath=no
16517 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16518 shlibpath_overrides_runpath=yes
16521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16525 sys_lib_dlsearch_path_spec='/usr/lib'
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16539 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16540 echo "${ECHO_T}$dynamic_linker" >&6; }
16541 test "$dynamic_linker" = no && can_build_shared=no
16543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16544 if test "$GCC" = yes; then
16545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16548 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16549 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16551 if test -n "$hardcode_libdir_flag_spec" || \
16552 test -n "$runpath_var" || \
16553 test "X$hardcode_automatic" = "Xyes" ; then
16555 # We can hardcode non-existant directories.
16556 if test "$hardcode_direct" != no &&
16557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16558 # have to relink, otherwise we might link with an installed library
16559 # when we should be linking with a yet-to-be-installed one
16560 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16561 test "$hardcode_minus_L" != no; then
16562 # Linking always hardcodes the temporary library directory.
16563 hardcode_action=relink
16565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16566 hardcode_action=immediate
16569 # We cannot hardcode anything, or else we can only hardcode existing
16571 hardcode_action=unsupported
16573 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16574 echo "${ECHO_T}$hardcode_action" >&6; }
16576 if test "$hardcode_action" = relink; then
16577 # Fast installation is not supported
16578 enable_fast_install=no
16579 elif test "$shlibpath_overrides_runpath" = yes ||
16580 test "$enable_shared" = no; then
16581 # Fast installation is not necessary
16582 enable_fast_install=needless
16587 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16588 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16589 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16590 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16591 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16592 { echo "$as_me:$LINENO: result: yes" >&5
16593 echo "${ECHO_T}yes" >&6; }
16595 # FIXME - insert some real tests, host_os isn't really good enough
16598 if test -n "$STRIP" ; then
16599 striplib="$STRIP -x"
16600 { echo "$as_me:$LINENO: result: yes" >&5
16601 echo "${ECHO_T}yes" >&6; }
16603 { echo "$as_me:$LINENO: result: no" >&5
16604 echo "${ECHO_T}no" >&6; }
16608 { echo "$as_me:$LINENO: result: no" >&5
16609 echo "${ECHO_T}no" >&6; }
16614 if test "x$enable_dlopen" != xyes; then
16615 enable_dlopen=unknown
16616 enable_dlopen_self=unknown
16617 enable_dlopen_self_static=unknown
16624 lt_cv_dlopen="load_add_on"
16626 lt_cv_dlopen_self=yes
16630 lt_cv_dlopen="LoadLibrary"
16635 lt_cv_dlopen="dlopen"
16640 # if libdl is installed we need to link against it
16641 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16642 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 ac_check_lib_save_LIBS=$LIBS
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 ac_cv_lib_dl_dlopen=yes
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ac_cv_lib_dl_dlopen=no
16712 rm -f core conftest.err conftest.$ac_objext \
16713 conftest$ac_exeext conftest.$ac_ext
16714 LIBS=$ac_check_lib_save_LIBS
16716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16718 if test $ac_cv_lib_dl_dlopen = yes; then
16719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16722 lt_cv_dlopen="dyld"
16724 lt_cv_dlopen_self=yes
16731 { echo "$as_me:$LINENO: checking for shl_load" >&5
16732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16733 if test "${ac_cv_func_shl_load+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16744 #define shl_load innocuous_shl_load
16746 /* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char shl_load (); below.
16748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749 <limits.h> exists even on freestanding compilers. */
16752 # include <limits.h>
16754 # include <assert.h>
16759 /* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16766 /* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
16769 #if defined __stub_shl_load || defined __stub___shl_load
16776 return shl_load ();
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_link") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_try") 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_func_shl_load=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_func_shl_load=no
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16826 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16827 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16828 if test $ac_cv_func_shl_load = yes; then
16829 lt_cv_dlopen="shl_load"
16831 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16832 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16833 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_check_lib_save_LIBS=$LIBS
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16855 return shl_load ();
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (ac_try="$ac_link"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_link") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_lib_dld_shl_load=yes
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_cv_lib_dld_shl_load=no
16902 rm -f core conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16904 LIBS=$ac_check_lib_save_LIBS
16906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16908 if test $ac_cv_lib_dld_shl_load = yes; then
16909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16911 { echo "$as_me:$LINENO: checking for dlopen" >&5
16912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16913 if test "${ac_cv_func_dlopen+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16924 #define dlopen innocuous_dlopen
16926 /* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char dlopen (); below.
16928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16929 <limits.h> exists even on freestanding compilers. */
16932 # include <limits.h>
16934 # include <assert.h>
16939 /* Override any GCC internal prototype to avoid an error.
16940 Use char because int might match the return type of a GCC
16941 builtin and then its argument prototype would still apply. */
16946 /* The GNU C library defines this for functions which it implements
16947 to always fail with ENOSYS. Some functions are actually named
16948 something starting with __ and the normal name is an alias. */
16949 #if defined __stub_dlopen || defined __stub___dlopen
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1 >conftest.err
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_func_dlopen=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_func_dlopen=no
17003 rm -f core conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17006 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17008 if test $ac_cv_func_dlopen = yes; then
17009 lt_cv_dlopen="dlopen"
17011 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 ac_check_lib_save_LIBS=$LIBS
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_lib_dl_dlopen=yes
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_cv_lib_dl_dlopen=no
17082 rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17084 LIBS=$ac_check_lib_save_LIBS
17086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17088 if test $ac_cv_lib_dl_dlopen = yes; then
17089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17091 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17092 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17093 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 ac_check_lib_save_LIBS=$LIBS
17097 LIBS="-lsvld $LIBS"
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17105 /* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_lib_svld_dlopen=yes
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ac_cv_lib_svld_dlopen=no
17162 rm -f core conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17164 LIBS=$ac_check_lib_save_LIBS
17166 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17168 if test $ac_cv_lib_svld_dlopen = yes; then
17169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17171 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17172 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 ac_check_lib_save_LIBS=$LIBS
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17195 return dld_link ();
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_link") 2>conftest.er1
17209 grep -v '^ *+' conftest.er1 >conftest.err
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_lib_dld_dld_link=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_cv_lib_dld_dld_link=no
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS
17246 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17248 if test $ac_cv_lib_dld_dld_link = yes; then
17249 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17270 if test "x$lt_cv_dlopen" != xno; then
17276 case $lt_cv_dlopen in
17278 save_CPPFLAGS="$CPPFLAGS"
17279 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17281 save_LDFLAGS="$LDFLAGS"
17282 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17285 LIBS="$lt_cv_dlopen_libs $LIBS"
17287 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17288 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17289 if test "${lt_cv_dlopen_self+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 if test "$cross_compiling" = yes; then :
17293 lt_cv_dlopen_self=cross
17295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17296 lt_status=$lt_dlunknown
17297 cat > conftest.$ac_ext <<EOF
17298 #line 17298 "configure"
17299 #include "confdefs.h"
17308 # define LT_DLGLOBAL RTLD_GLOBAL
17311 # define LT_DLGLOBAL DL_GLOBAL
17313 # define LT_DLGLOBAL 0
17317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17318 find out it does not work in some platform. */
17319 #ifndef LT_DLLAZY_OR_NOW
17321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17324 # define LT_DLLAZY_OR_NOW DL_LAZY
17327 # define LT_DLLAZY_OR_NOW RTLD_NOW
17330 # define LT_DLLAZY_OR_NOW DL_NOW
17332 # define LT_DLLAZY_OR_NOW 0
17340 extern "C" void exit (int);
17343 void fnord() { int i=42;}
17346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17347 int status = $lt_dlunknown;
17351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17353 /* dlclose (self); */
17361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17362 (eval $ac_link) 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17366 (./conftest; exit; ) >&5 2>/dev/null
17368 case x$lt_status in
17369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17374 # compilation failed
17375 lt_cv_dlopen_self=no
17382 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17385 if test "x$lt_cv_dlopen_self" = xyes; then
17386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17387 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17389 if test "${lt_cv_dlopen_self_static+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 if test "$cross_compiling" = yes; then :
17393 lt_cv_dlopen_self_static=cross
17395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17396 lt_status=$lt_dlunknown
17397 cat > conftest.$ac_ext <<EOF
17398 #line 17398 "configure"
17399 #include "confdefs.h"
17408 # define LT_DLGLOBAL RTLD_GLOBAL
17411 # define LT_DLGLOBAL DL_GLOBAL
17413 # define LT_DLGLOBAL 0
17417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17418 find out it does not work in some platform. */
17419 #ifndef LT_DLLAZY_OR_NOW
17421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17424 # define LT_DLLAZY_OR_NOW DL_LAZY
17427 # define LT_DLLAZY_OR_NOW RTLD_NOW
17430 # define LT_DLLAZY_OR_NOW DL_NOW
17432 # define LT_DLLAZY_OR_NOW 0
17440 extern "C" void exit (int);
17443 void fnord() { int i=42;}
17446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17447 int status = $lt_dlunknown;
17451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17453 /* dlclose (self); */
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17466 (./conftest; exit; ) >&5 2>/dev/null
17468 case x$lt_status in
17469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17471 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17474 # compilation failed
17475 lt_cv_dlopen_self_static=no
17482 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17486 CPPFLAGS="$save_CPPFLAGS"
17487 LDFLAGS="$save_LDFLAGS"
17492 case $lt_cv_dlopen_self in
17493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17494 *) enable_dlopen_self=unknown ;;
17497 case $lt_cv_dlopen_self_static in
17498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17499 *) enable_dlopen_self_static=unknown ;;
17504 # Report which library types will actually be built
17505 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17506 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17507 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17508 echo "${ECHO_T}$can_build_shared" >&6; }
17510 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17511 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17512 test "$can_build_shared" = "no" && enable_shared=no
17514 # On AIX, shared libraries and static libraries use the same namespace, and
17515 # are all built from PIC.
17518 test "$enable_shared" = yes && enable_static=no
17519 if test -n "$RANLIB"; then
17520 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17521 postinstall_cmds='$RANLIB $lib'
17526 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17527 test "$enable_shared" = yes && enable_static=no
17531 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17532 echo "${ECHO_T}$enable_shared" >&6; }
17534 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17535 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17536 # Make sure either enable_shared or enable_static is yes.
17537 test "$enable_shared" = yes || enable_static=yes
17538 { echo "$as_me:$LINENO: result: $enable_static" >&5
17539 echo "${ECHO_T}$enable_static" >&6; }
17541 # The else clause should only fire when bootstrapping the
17542 # libtool distribution, otherwise you forgot to ship ltmain.sh
17543 # with your package, and you will get complaints that there are
17544 # no rules to generate ltmain.sh.
17545 if test -f "$ltmain"; then
17546 # See if we are running on zsh, and set the options which allow our commands through
17547 # without removal of \ escapes.
17548 if test -n "${ZSH_VERSION+set}" ; then
17549 setopt NO_GLOB_SUBST
17551 # Now quote all the things that may contain metacharacters while being
17552 # careful not to overquote the AC_SUBSTed values. We take copies of the
17553 # variables and quote the copies for generation of the libtool script.
17554 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17558 deplibs_check_method reload_flag reload_cmds need_locks \
17559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17560 lt_cv_sys_global_symbol_to_c_name_address \
17561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17562 old_postinstall_cmds old_postuninstall_cmds \
17566 lt_prog_compiler_wl \
17567 lt_prog_compiler_pic \
17568 lt_prog_compiler_static \
17569 lt_prog_compiler_no_builtin_flag \
17570 export_dynamic_flag_spec \
17571 thread_safe_flag_spec \
17572 whole_archive_flag_spec \
17573 enable_shared_with_static_runtimes \
17575 old_archive_from_new_cmds \
17580 compiler_lib_search_path \
17582 archive_expsym_cmds \
17584 postuninstall_cmds \
17585 old_archive_from_expsyms_cmds \
17586 allow_undefined_flag \
17587 no_undefined_flag \
17588 export_symbols_cmds \
17589 hardcode_libdir_flag_spec \
17590 hardcode_libdir_flag_spec_ld \
17591 hardcode_libdir_separator \
17592 hardcode_automatic \
17594 module_expsym_cmds \
17595 lt_cv_prog_compiler_c_o \
17597 include_expsyms; do
17600 old_archive_cmds | \
17601 old_archive_from_new_cmds | \
17603 archive_expsym_cmds | \
17605 module_expsym_cmds | \
17606 old_archive_from_expsyms_cmds | \
17607 export_symbols_cmds | \
17608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17609 postinstall_cmds | postuninstall_cmds | \
17610 old_postinstall_cmds | old_postuninstall_cmds | \
17611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17612 # Double-quote double-evaled strings.
17613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17622 *'\$0 --fallback-echo"')
17623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17627 cfgfile="${ofile}T"
17628 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17630 { echo "$as_me:$LINENO: creating $ofile" >&5
17631 echo "$as_me: creating $ofile" >&6;}
17633 cat <<__EOF__ >> "$cfgfile"
17636 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17637 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17640 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17641 # Free Software Foundation, Inc.
17643 # This file is part of GNU Libtool:
17644 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17646 # This program is free software; you can redistribute it and/or modify
17647 # it under the terms of the GNU General Public License as published by
17648 # the Free Software Foundation; either version 2 of the License, or
17649 # (at your option) any later version.
17651 # This program is distributed in the hope that it will be useful, but
17652 # WITHOUT ANY WARRANTY; without even the implied warranty of
17653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17654 # General Public License for more details.
17656 # You should have received a copy of the GNU General Public License
17657 # along with this program; if not, write to the Free Software
17658 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17660 # As a special exception to the GNU General Public License, if you
17661 # distribute this file as part of a program that contains a
17662 # configuration script generated by Autoconf, you may include it under
17663 # the same distribution terms that you use for the rest of that program.
17665 # A sed program that does not truncate output.
17668 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17669 Xsed="$SED -e 1s/^X//"
17671 # The HP-UX ksh and POSIX shell print the target directory to stdout
17672 # if CDPATH is set.
17673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17675 # The names of the tagged configurations supported by this script.
17678 # ### BEGIN LIBTOOL CONFIG
17680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17682 # Shell to use when invoking shell scripts.
17685 # Whether or not to build shared libraries.
17686 build_libtool_libs=$enable_shared
17688 # Whether or not to build static libraries.
17689 build_old_libs=$enable_static
17691 # Whether or not to add -lc for building shared libraries.
17692 build_libtool_need_lc=$archive_cmds_need_lc
17694 # Whether or not to disallow shared libs when runtime libs are static
17695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17697 # Whether or not to optimize for fast installation.
17698 fast_install=$enable_fast_install
17701 host_alias=$host_alias
17705 # The build system.
17706 build_alias=$build_alias
17710 # An echo program that does not interpret backslashes.
17715 AR_FLAGS=$lt_AR_FLAGS
17720 # LTCC compiler flags.
17721 LTCFLAGS=$lt_LTCFLAGS
17723 # A language-specific compiler.
17726 # Is the compiler the GNU C compiler?
17732 # The linker used to build libraries.
17735 # Whether we need hard or soft links.
17738 # A BSD-compatible nm program.
17741 # A symbol stripping program
17744 # Used to examine libraries when file_magic_cmd begins "file"
17745 MAGIC_CMD=$MAGIC_CMD
17747 # Used on cygwin: DLL creation program.
17750 # Used on cygwin: object dumper.
17753 # Used on cygwin: assembler.
17756 # The name of the directory that contains temporary libtool files.
17759 # How to create reloadable object files.
17760 reload_flag=$lt_reload_flag
17761 reload_cmds=$lt_reload_cmds
17763 # How to pass a linker flag through the compiler.
17764 wl=$lt_lt_prog_compiler_wl
17766 # Object file suffix (normally "o").
17767 objext="$ac_objext"
17769 # Old archive suffix (normally "a").
17772 # Shared library suffix (normally ".so").
17773 shrext_cmds='$shrext_cmds'
17775 # Executable file suffix (normally "").
17778 # Additional compiler flags for building library objects.
17779 pic_flag=$lt_lt_prog_compiler_pic
17782 # What is the maximum length of a command?
17783 max_cmd_len=$lt_cv_sys_max_cmd_len
17785 # Does compiler simultaneously support -c and -o options?
17786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17788 # Must we lock files when doing compilation?
17789 need_locks=$lt_need_locks
17791 # Do we need the lib prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17797 # Whether dlopen is supported.
17798 dlopen_support=$enable_dlopen
17800 # Whether dlopen of programs is supported.
17801 dlopen_self=$enable_dlopen_self
17803 # Whether dlopen of statically linked programs is supported.
17804 dlopen_self_static=$enable_dlopen_self_static
17806 # Compiler flag to prevent dynamic linking.
17807 link_static_flag=$lt_lt_prog_compiler_static
17809 # Compiler flag to turn off builtin functions.
17810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17812 # Compiler flag to allow reflexive dlopens.
17813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17815 # Compiler flag to generate shared objects directly from archives.
17816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17818 # Compiler flag to generate thread-safe objects.
17819 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17821 # Library versioning type.
17822 version_type=$version_type
17824 # Format of library name prefix.
17825 libname_spec=$lt_libname_spec
17827 # List of archive names. First name is the real one, the rest are links.
17828 # The last name is the one that the linker finds with -lNAME.
17829 library_names_spec=$lt_library_names_spec
17831 # The coded name of the library, if different from the real name.
17832 soname_spec=$lt_soname_spec
17834 # Commands used to build and install an old-style archive.
17836 old_archive_cmds=$lt_old_archive_cmds
17837 old_postinstall_cmds=$lt_old_postinstall_cmds
17838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17846 # Commands used to build and install a shared archive.
17847 archive_cmds=$lt_archive_cmds
17848 archive_expsym_cmds=$lt_archive_expsym_cmds
17849 postinstall_cmds=$lt_postinstall_cmds
17850 postuninstall_cmds=$lt_postuninstall_cmds
17852 # Commands used to build a loadable module (assumed same as above if empty)
17853 module_cmds=$lt_module_cmds
17854 module_expsym_cmds=$lt_module_expsym_cmds
17856 # Commands to strip libraries.
17857 old_striplib=$lt_old_striplib
17858 striplib=$lt_striplib
17860 # Dependencies to place before the objects being linked to create a
17862 predep_objects=$lt_predep_objects
17864 # Dependencies to place after the objects being linked to create a
17866 postdep_objects=$lt_postdep_objects
17868 # Dependencies to place before the objects being linked to create a
17870 predeps=$lt_predeps
17872 # Dependencies to place after the objects being linked to create a
17874 postdeps=$lt_postdeps
17876 # The library search path used internally by the compiler when linking
17877 # a shared library.
17878 compiler_lib_search_path=$lt_compiler_lib_search_path
17880 # Method to check whether dependent libraries are shared objects.
17881 deplibs_check_method=$lt_deplibs_check_method
17883 # Command to use when deplibs_check_method == file_magic.
17884 file_magic_cmd=$lt_file_magic_cmd
17886 # Flag that allows shared libraries with undefined symbols to be built.
17887 allow_undefined_flag=$lt_allow_undefined_flag
17889 # Flag that forces no undefined symbols.
17890 no_undefined_flag=$lt_no_undefined_flag
17892 # Commands used to finish a libtool library installation in a directory.
17893 finish_cmds=$lt_finish_cmds
17895 # Same as above, but a single script fragment to be evaled but not shown.
17896 finish_eval=$lt_finish_eval
17898 # Take the output of nm and produce a listing of raw symbols and C names.
17899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17901 # Transform the output of nm in a proper C declaration
17902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17904 # Transform the output of nm in a C name address pair
17905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17907 # This is the shared library runtime path variable.
17908 runpath_var=$runpath_var
17910 # This is the shared library path variable.
17911 shlibpath_var=$shlibpath_var
17913 # Is shlibpath searched before the hard-coded library search path?
17914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17916 # How to hardcode a shared library path into an executable.
17917 hardcode_action=$hardcode_action
17919 # Whether we should hardcode library paths into libraries.
17920 hardcode_into_libs=$hardcode_into_libs
17922 # Flag to hardcode \$libdir into a binary during linking.
17923 # This must work even if \$libdir does not exist.
17924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17926 # If ld is used when linking, flag to hardcode \$libdir into
17927 # a binary during linking. This must work even if \$libdir does
17929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17931 # Whether we need a single -rpath flag with a separated argument.
17932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17935 # resulting binary.
17936 hardcode_direct=$hardcode_direct
17938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17939 # resulting binary.
17940 hardcode_minus_L=$hardcode_minus_L
17942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17943 # the resulting binary.
17944 hardcode_shlibpath_var=$hardcode_shlibpath_var
17946 # Set to yes if building a shared library automatically hardcodes DIR into the library
17947 # and all subsequent libraries and executables linked against it.
17948 hardcode_automatic=$hardcode_automatic
17950 # Variables whose values should be saved in libtool wrapper scripts and
17951 # restored at relink time.
17952 variables_saved_for_relink="$variables_saved_for_relink"
17954 # Whether libtool must link a program against all its dependency libraries.
17955 link_all_deplibs=$link_all_deplibs
17957 # Compile-time system search path for libraries
17958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17960 # Run-time system search path for libraries
17961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17963 # Fix the shell variable \$srcfile for the compiler.
17964 fix_srcfile_path="$fix_srcfile_path"
17966 # Set to yes if exported symbols are required.
17967 always_export_symbols=$always_export_symbols
17969 # The commands to list exported symbols.
17970 export_symbols_cmds=$lt_export_symbols_cmds
17972 # The commands to extract the exported symbol list from a shared archive.
17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17975 # Symbols that should not be listed in the preloaded symbols.
17976 exclude_expsyms=$lt_exclude_expsyms
17978 # Symbols that must always be exported.
17979 include_expsyms=$lt_include_expsyms
17981 # ### END LIBTOOL CONFIG
17988 cat <<\EOF >> "$cfgfile"
17990 # AIX sometimes has problems with the GCC collect2 program. For some
17991 # reason, if we set the COLLECT_NAMES environment variable, the problems
17992 # vanish in a puff of smoke.
17993 if test "X${COLLECT_NAMES+set}" != Xset; then
17995 export COLLECT_NAMES
18001 # We use sed instead of cat because bash on DJGPP gets confused if
18002 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18003 # text mode, it properly converts lines to CR/LF. This bash problem
18004 # is reportedly fixed, but why not run on old versions too?
18005 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18007 mv -f "$cfgfile" "$ofile" || \
18008 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18012 # If there is no Makefile yet, we rely on a make rule to execute
18013 # `config.status --recheck' to rerun these tests and create the
18014 # libtool script then.
18015 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18016 if test -f "$ltmain_in"; then
18017 test -f Makefile && make "$ltmain"
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031 # Check whether --with-tags was given.
18032 if test "${with_tags+set}" = set; then
18033 withval=$with_tags; tagnames="$withval"
18037 if test -f "$ltmain" && test -n "$tagnames"; then
18038 if test ! -f "${ofile}"; then
18039 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18040 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18043 if test -z "$LTCC"; then
18044 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18045 if test -z "$LTCC"; then
18046 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18047 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18049 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18050 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18053 if test -z "$LTCFLAGS"; then
18054 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18057 # Extract list of available tagged configurations in $ofile.
18058 # Note that this assumes the entire list is on one line.
18059 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18062 for tagname in $tagnames; do
18064 # Check whether tagname contains only valid characters
18065 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18067 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18068 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18069 { (exit 1); exit 1; }; }
18073 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18075 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18076 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18077 { (exit 1); exit 1; }; }
18080 # Update the list of available tags.
18081 if test -n "$tagname"; then
18082 echo appending configuration tag \"$tagname\" to $ofile
18086 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18087 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18088 (test "X$CXX" != "Xg++"))) ; then
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18098 archive_cmds_need_lc_CXX=no
18099 allow_undefined_flag_CXX=
18100 always_export_symbols_CXX=no
18101 archive_expsym_cmds_CXX=
18102 export_dynamic_flag_spec_CXX=
18103 hardcode_direct_CXX=no
18104 hardcode_libdir_flag_spec_CXX=
18105 hardcode_libdir_flag_spec_ld_CXX=
18106 hardcode_libdir_separator_CXX=
18107 hardcode_minus_L_CXX=no
18108 hardcode_shlibpath_var_CXX=unsupported
18109 hardcode_automatic_CXX=no
18111 module_expsym_cmds_CXX=
18112 link_all_deplibs_CXX=unknown
18113 old_archive_cmds_CXX=$old_archive_cmds
18114 no_undefined_flag_CXX=
18115 whole_archive_flag_spec_CXX=
18116 enable_shared_with_static_runtimes_CXX=no
18118 # Dependencies to place before and after the object being linked:
18119 predep_objects_CXX=
18120 postdep_objects_CXX=
18123 compiler_lib_search_path_CXX=
18125 # Source file extension for C++ test sources.
18128 # Object file extension for compiled C++ test sources.
18132 # Code to be used in simple compile tests
18133 lt_simple_compile_test_code="int some_variable = 0;\n"
18135 # Code to be used in simple link tests
18136 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18140 # If no C compiler was specified, use CC.
18143 # If no C compiler flags were specified, use CFLAGS.
18144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18146 # Allow CC to be a program name with arguments.
18150 # save warnings/boilerplate of simple test code
18151 ac_outfile=conftest.$ac_objext
18152 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18154 _lt_compiler_boilerplate=`cat conftest.err`
18157 ac_outfile=conftest.$ac_objext
18158 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18160 _lt_linker_boilerplate=`cat conftest.err`
18164 # Allow CC to be a program name with arguments.
18169 lt_save_with_gnu_ld=$with_gnu_ld
18170 lt_save_path_LD=$lt_cv_path_LD
18171 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18172 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18174 $as_unset lt_cv_prog_gnu_ld
18176 if test -n "${lt_cv_path_LDCXX+set}"; then
18177 lt_cv_path_LD=$lt_cv_path_LDCXX
18179 $as_unset lt_cv_path_LD
18181 test -z "${LDCXX+set}" || LD=$LDCXX
18185 for cc_temp in $compiler""; do
18187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18196 # We don't want -fno-exception wen compiling C++ code, so set the
18197 # no_builtin_flag separately
18198 if test "$GXX" = yes; then
18199 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18201 lt_prog_compiler_no_builtin_flag_CXX=
18204 if test "$GXX" = yes; then
18205 # Set up default GNU C++ configuration
18208 # Check whether --with-gnu-ld was given.
18209 if test "${with_gnu_ld+set}" = set; then
18210 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18216 if test "$GCC" = yes; then
18217 # Check if gcc -print-prog-name=ld gives a path.
18218 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18219 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18222 # gcc leaves a trailing carriage return which upsets mingw
18223 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18225 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18228 # Accept absolute paths.
18230 re_direlt='/[^/][^/]*/\.\./'
18231 # Canonicalize the pathname of ld
18232 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18233 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18234 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18236 test -z "$LD" && LD="$ac_prog"
18239 # If it fails, then pretend we aren't using GCC.
18243 # If it is relative, then search for the first ld in PATH.
18244 with_gnu_ld=unknown
18247 elif test "$with_gnu_ld" = yes; then
18248 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18249 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18251 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18252 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18254 if test "${lt_cv_path_LD+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18257 if test -z "$LD"; then
18258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18259 for ac_dir in $PATH; do
18261 test -z "$ac_dir" && ac_dir=.
18262 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18263 lt_cv_path_LD="$ac_dir/$ac_prog"
18264 # Check to see if the program is GNU ld. I'd rather use --version,
18265 # but apparently some variants of GNU ld only accept -v.
18266 # Break only if it was the GNU/non-GNU ld that we prefer.
18267 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18268 *GNU* | *'with BFD'*)
18269 test "$with_gnu_ld" != no && break
18272 test "$with_gnu_ld" != yes && break
18279 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18283 LD="$lt_cv_path_LD"
18284 if test -n "$LD"; then
18285 { echo "$as_me:$LINENO: result: $LD" >&5
18286 echo "${ECHO_T}$LD" >&6; }
18288 { echo "$as_me:$LINENO: result: no" >&5
18289 echo "${ECHO_T}no" >&6; }
18291 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18292 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18293 { (exit 1); exit 1; }; }
18294 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18295 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18296 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18300 case `$LD -v 2>&1 </dev/null` in
18301 *GNU* | *'with BFD'*)
18302 lt_cv_prog_gnu_ld=yes
18305 lt_cv_prog_gnu_ld=no
18309 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18310 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18311 with_gnu_ld=$lt_cv_prog_gnu_ld
18315 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18316 # archiving commands below assume that GNU ld is being used.
18317 if test "$with_gnu_ld" = yes; then
18318 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18319 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'
18321 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18324 # If archive_cmds runs LD, not CC, wlarc should be empty
18325 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18326 # investigate it a little bit more. (MM)
18329 # ancient GNU ld didn't support --whole-archive et. al.
18330 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18331 grep 'no-whole-archive' > /dev/null; then
18332 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18334 whole_archive_flag_spec_CXX=
18340 # A generic and very simple default shared library creation
18341 # command for GNU C++ for the case where it uses the native
18342 # linker, instead of GNU ld. If possible, this setting should
18343 # overridden to take advantage of the native linker features on
18344 # the platform it is being used on.
18345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18348 # Commands to make compiler produce verbose output that lists
18349 # what "hidden" libraries, object files and flags are used when
18350 # linking a shared library.
18351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18359 # PORTME: fill in a description of your system's C++ link characteristics
18360 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18361 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18365 # FIXME: insert proper C++ library support
18369 if test "$host_cpu" = ia64; then
18370 # On IA64, the linker does run time linking by default, so we don't
18371 # have to do anything special.
18372 aix_use_runtimelinking=no
18373 exp_sym_flag='-Bexport'
18376 aix_use_runtimelinking=no
18378 # Test if we are trying to use run time linking or normal
18379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18380 # need to do runtime linking.
18381 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18382 for ld_flag in $LDFLAGS; do
18385 aix_use_runtimelinking=yes
18393 exp_sym_flag='-bexport'
18394 no_entry_flag='-bnoentry'
18397 # When large executables or shared objects are built, AIX ld can
18398 # have problems creating the table of contents. If linking a library
18399 # or program results in "error TOC overflow" add -mminimal-toc to
18400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18403 archive_cmds_CXX=''
18404 hardcode_direct_CXX=yes
18405 hardcode_libdir_separator_CXX=':'
18406 link_all_deplibs_CXX=yes
18408 if test "$GXX" = yes; then
18409 case $host_os in aix4.[012]|aix4.[012].*)
18410 # We only want to do this on AIX 4.2 and lower, the check
18411 # below for broken collect2 doesn't work under 4.3+
18412 collect2name=`${CC} -print-prog-name=collect2`
18413 if test -f "$collect2name" && \
18414 strings "$collect2name" | grep resolve_lib_name >/dev/null
18416 # We have reworked collect2
18417 hardcode_direct_CXX=yes
18419 # We have old collect2
18420 hardcode_direct_CXX=unsupported
18421 # It fails to find uninstalled libraries when the uninstalled
18422 # path is not listed in the libpath. Setting hardcode_minus_L
18423 # to unsupported forces relinking
18424 hardcode_minus_L_CXX=yes
18425 hardcode_libdir_flag_spec_CXX='-L$libdir'
18426 hardcode_libdir_separator_CXX=
18430 shared_flag='-shared'
18431 if test "$aix_use_runtimelinking" = yes; then
18432 shared_flag="$shared_flag "'${wl}-G'
18436 if test "$host_cpu" = ia64; then
18437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18438 # chokes on -Wl,-G. The following line is correct:
18441 if test "$aix_use_runtimelinking" = yes; then
18442 shared_flag='${wl}-G'
18444 shared_flag='${wl}-bM:SRE'
18449 # It seems that -bexpall does not export symbols beginning with
18450 # underscore (_), so it is better to generate a list of symbols to export.
18451 always_export_symbols_CXX=yes
18452 if test "$aix_use_runtimelinking" = yes; then
18453 # Warning - without using the other runtime loading flags (-brtl),
18454 # -berok will link without error, but may produce a broken library.
18455 allow_undefined_flag_CXX='-berok'
18456 # Determine the default libpath from the value encoded in an empty executable.
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_link") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18509 # Check for a 64-bit object if we didn't find anything.
18510 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; }
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18523 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18525 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"
18527 if test "$host_cpu" = ia64; then
18528 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18529 allow_undefined_flag_CXX="-z nodefs"
18530 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"
18532 # Determine the default libpath from the value encoded in an empty executable.
18533 cat >conftest.$ac_ext <<_ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18585 # Check for a 64-bit object if we didn't find anything.
18586 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; }
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18599 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18600 # Warning - without using the other run time loading flags,
18601 # -berok will link without error, but may produce a broken library.
18602 no_undefined_flag_CXX=' ${wl}-bernotok'
18603 allow_undefined_flag_CXX=' ${wl}-berok'
18604 # Exported symbols can be pulled into shared objects from archives
18605 whole_archive_flag_spec_CXX='$convenience'
18606 archive_cmds_need_lc_CXX=yes
18607 # This is similar to how AIX traditionally builds its shared libraries.
18608 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'
18614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615 allow_undefined_flag_CXX=unsupported
18616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18617 # support --undefined. This deserves some investigation. FIXME
18618 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625 case $cc_basename in
18627 # FIXME: insert proper C++ library support
18633 cygwin* | mingw* | pw32*)
18634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18635 # as there is no search path for DLLs.
18636 hardcode_libdir_flag_spec_CXX='-L$libdir'
18637 allow_undefined_flag_CXX=unsupported
18638 always_export_symbols_CXX=no
18639 enable_shared_with_static_runtimes_CXX=yes
18641 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18642 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'
18643 # If the export-symbols file already is a .def file (1st line
18644 # is EXPORTS), use it as is; otherwise, prepend...
18645 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18646 cp $export_symbols $output_objdir/$soname.def;
18648 echo EXPORTS > $output_objdir/$soname.def;
18649 cat $export_symbols >> $output_objdir/$soname.def;
18651 $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'
18656 darwin* | rhapsody*)
18658 rhapsody* | darwin1.[012])
18659 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18662 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18663 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18665 case ${MACOSX_DEPLOYMENT_TARGET} in
18667 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18670 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18676 archive_cmds_need_lc_CXX=no
18677 hardcode_direct_CXX=no
18678 hardcode_automatic_CXX=yes
18679 hardcode_shlibpath_var_CXX=unsupported
18680 whole_archive_flag_spec_CXX=''
18681 link_all_deplibs_CXX=yes
18683 if test "$GXX" = yes ; then
18684 lt_int_apple_cc_single_mod=no
18685 output_verbose_link_cmd='echo'
18686 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18687 lt_int_apple_cc_single_mod=yes
18689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18690 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18692 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'
18694 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18696 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18697 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}'
18699 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}'
18701 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}'
18703 case $cc_basename in
18705 output_verbose_link_cmd='echo'
18706 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'
18707 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18708 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18709 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}'
18710 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}'
18720 case $cc_basename in
18722 # FIXME: insert proper C++ library support
18726 # Green Hills C++ Compiler
18727 # FIXME: insert proper C++ library support
18731 # FIXME: insert proper C++ library support
18737 # C++ shared libraries reported to be fairly broken before switch to ELF
18741 archive_cmds_need_lc_CXX=no
18743 freebsd* | kfreebsd*-gnu | dragonfly*)
18744 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18751 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18752 hardcode_libdir_separator_CXX=:
18753 export_dynamic_flag_spec_CXX='${wl}-E'
18754 hardcode_direct_CXX=yes
18755 hardcode_minus_L_CXX=yes # Not in the search PATH,
18756 # but as the default
18757 # location of the library.
18759 case $cc_basename in
18761 # FIXME: insert proper C++ library support
18765 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'
18766 # Commands to make compiler produce verbose output that lists
18767 # what "hidden" libraries, object files and flags are used when
18768 # linking a shared library.
18770 # There doesn't appear to be a way to prevent this compiler from
18771 # explicitly linking system object files so we need to strip them
18772 # from the output so that they don't get included in the library
18774 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'
18777 if test "$GXX" = yes; then
18778 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'
18780 # FIXME: insert proper C++ library support
18787 if test $with_gnu_ld = no; then
18788 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18793 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18796 export_dynamic_flag_spec_CXX='${wl}-E'
18802 hardcode_direct_CXX=no
18803 hardcode_shlibpath_var_CXX=no
18806 hardcode_direct_CXX=yes
18807 hardcode_minus_L_CXX=yes # Not in the search PATH,
18808 # but as the default
18809 # location of the library.
18813 case $cc_basename in
18815 # FIXME: insert proper C++ library support
18821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18830 # Commands to make compiler produce verbose output that lists
18831 # what "hidden" libraries, object files and flags are used when
18832 # linking a shared library.
18834 # There doesn't appear to be a way to prevent this compiler from
18835 # explicitly linking system object files so we need to strip them
18836 # from the output so that they don't get included in the library
18838 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'
18841 if test "$GXX" = yes; then
18842 if test $with_gnu_ld = no; then
18845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18848 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18851 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'
18856 # FIXME: insert proper C++ library support
18863 hardcode_direct_CXX=no
18864 hardcode_shlibpath_var_CXX=no
18865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866 export_dynamic_flag_spec_CXX='${wl}-E'
18867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18868 # Instead, shared libraries are loaded at an image base (0x10000000 by
18869 # default) and relocated if they conflict, which is a slow very memory
18870 # consuming and fragmenting process. To avoid this, we pick a random,
18871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18873 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'
18874 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'
18877 case $cc_basename in
18880 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'
18882 # Archives containing C++ object files must be created using
18883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18884 # necessary to make sure instantiated templates are included
18886 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18889 if test "$GXX" = yes; then
18890 if test "$with_gnu_ld" = no; then
18891 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'
18893 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'
18896 link_all_deplibs_CXX=yes
18899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900 hardcode_libdir_separator_CXX=:
18903 case $cc_basename in
18905 # Kuck and Associates, Inc. (KAI) C++ Compiler
18907 # KCC will only create a shared library if the output file
18908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18909 # to its proper name (with version) after linking.
18910 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'
18911 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'
18912 # Commands to make compiler produce verbose output that lists
18913 # what "hidden" libraries, object files and flags are used when
18914 # linking a shared library.
18916 # There doesn't appear to be a way to prevent this compiler from
18917 # explicitly linking system object files so we need to strip them
18918 # from the output so that they don't get included in the library
18920 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'
18922 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18925 # Archives containing C++ object files must be created using
18926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18932 # version 8.0 and above of icpc choke on multiply defined symbols
18933 # if we add $predep_objects and $postdep_objects, however 7.1 and
18934 # earlier do not add the objects themselves.
18935 case `$CC -V 2>&1` in
18937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938 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'
18940 *) # Version 8.0 or newer
18943 ia64*) tmp_idyn=' -i_dynamic';;
18945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18946 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'
18949 archive_cmds_need_lc_CXX=no
18950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18955 # Portland Group C++ compiler
18956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18957 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'
18959 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18961 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'
18965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18966 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'
18968 runpath_var=LD_RUN_PATH
18969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18970 hardcode_libdir_separator_CXX=:
18972 # Commands to make compiler produce verbose output that lists
18973 # what "hidden" libraries, object files and flags are used when
18974 # linking a shared library.
18976 # There doesn't appear to be a way to prevent this compiler from
18977 # explicitly linking system object files so we need to strip them
18978 # from the output so that they don't get included in the library
18980 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'
18985 # FIXME: insert proper C++ library support
18989 # FIXME: insert proper C++ library support
18993 case $cc_basename in
18995 # FIXME: insert proper C++ library support
18999 # FIXME: insert proper C++ library support
19005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19006 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19008 hardcode_libdir_flag_spec_CXX='-R$libdir'
19009 hardcode_direct_CXX=yes
19010 hardcode_shlibpath_var_CXX=no
19012 # Workaround some broken pre-1.5 toolchains
19013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19016 # C++ shared libraries are fairly broken
19020 hardcode_direct_CXX=yes
19021 hardcode_shlibpath_var_CXX=no
19022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19025 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19026 export_dynamic_flag_spec_CXX='${wl}-E'
19027 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19029 output_verbose_link_cmd='echo'
19032 case $cc_basename in
19034 # Kuck and Associates, Inc. (KAI) C++ Compiler
19036 # KCC will only create a shared library if the output file
19037 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19038 # to its proper name (with version) after linking.
19039 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'
19041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19042 hardcode_libdir_separator_CXX=:
19044 # Archives containing C++ object files must be created using
19045 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19046 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19050 # Rational C++ 2.4.1
19051 # FIXME: insert proper C++ library support
19055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19056 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'
19058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19059 hardcode_libdir_separator_CXX=:
19061 # Commands to make compiler produce verbose output that lists
19062 # what "hidden" libraries, object files and flags are used when
19063 # linking a shared library.
19065 # There doesn't appear to be a way to prevent this compiler from
19066 # explicitly linking system object files so we need to strip them
19067 # from the output so that they don't get included in the library
19069 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'
19072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19074 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'
19076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19077 hardcode_libdir_separator_CXX=:
19079 # Commands to make compiler produce verbose output that lists
19080 # what "hidden" libraries, object files and flags are used when
19081 # linking a shared library.
19082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19085 # FIXME: insert proper C++ library support
19092 case $cc_basename in
19094 # Kuck and Associates, Inc. (KAI) C++ Compiler
19096 # KCC will only create a shared library if the output file
19097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19098 # to its proper name (with version) after linking.
19099 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'
19101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19102 hardcode_libdir_separator_CXX=:
19104 # Archives containing C++ object files must be created using
19105 # the KAI C++ compiler.
19106 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19109 # Rational C++ 2.4.1
19110 # FIXME: insert proper C++ library support
19114 allow_undefined_flag_CXX=' -expect_unresolved \*'
19115 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'
19116 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19117 echo "-hidden">> $lib.exp~
19118 $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~
19121 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19122 hardcode_libdir_separator_CXX=:
19124 # Commands to make compiler produce verbose output that lists
19125 # what "hidden" libraries, object files and flags are used when
19126 # linking a shared library.
19128 # There doesn't appear to be a way to prevent this compiler from
19129 # explicitly linking system object files so we need to strip them
19130 # from the output so that they don't get included in the library
19132 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'
19135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19137 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'
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140 hardcode_libdir_separator_CXX=:
19142 # Commands to make compiler produce verbose output that lists
19143 # what "hidden" libraries, object files and flags are used when
19144 # linking a shared library.
19145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19148 # FIXME: insert proper C++ library support
19155 # FIXME: insert proper C++ library support
19159 case $cc_basename in
19162 # FIXME: insert proper C++ library support
19167 # FIXME: insert proper C++ library support
19171 # FIXME: insert proper C++ library support
19177 case $cc_basename in
19179 # Sun C++ 4.2, 5.x and Centerline C++
19180 archive_cmds_need_lc_CXX=yes
19181 no_undefined_flag_CXX=' -zdefs'
19182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19184 $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'
19186 hardcode_libdir_flag_spec_CXX='-R$libdir'
19187 hardcode_shlibpath_var_CXX=no
19189 solaris2.[0-5] | solaris2.[0-5].*) ;;
19191 # The C++ compiler is used as linker so we must use $wl
19192 # flag to pass the commands to the underlying system
19193 # linker. We must also pass each convience library through
19194 # to the system linker between allextract/defaultextract.
19195 # The C++ compiler will combine linker options so we
19196 # cannot just pass the convience library names through
19198 # Supported since Solaris 2.6 (maybe 2.5.1?)
19199 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'
19202 link_all_deplibs_CXX=yes
19204 output_verbose_link_cmd='echo'
19206 # Archives containing C++ object files must be created using
19207 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19208 # necessary to make sure instantiated templates are included
19210 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19213 # Green Hills C++ Compiler
19214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19216 # The C++ compiler must be used to create the archive.
19217 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19220 # GNU C++ compiler with Solaris linker
19221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19222 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19223 if $CC --version | grep -v '^2\.7' > /dev/null; then
19224 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19225 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19226 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19228 # Commands to make compiler produce verbose output that lists
19229 # what "hidden" libraries, object files and flags are used when
19230 # linking a shared library.
19231 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19233 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19235 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19239 # Commands to make compiler produce verbose output that lists
19240 # what "hidden" libraries, object files and flags are used when
19241 # linking a shared library.
19242 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19245 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19251 no_undefined_flag_CXX='${wl}-z,text'
19252 archive_cmds_need_lc_CXX=no
19253 hardcode_shlibpath_var_CXX=no
19254 runpath_var='LD_RUN_PATH'
19256 case $cc_basename in
19258 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19259 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19262 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19267 sysv5* | sco3.2v5* | sco5v6*)
19268 # Note: We can NOT use -z defs as we might desire, because we do not
19269 # link with -lc, and that would cause any symbols used from libc to
19270 # always be unresolved, which means just about no library would
19271 # ever link correctly. If we're not using GNU ld we use -z text
19272 # though, which does catch some bad symbols but isn't as heavy-handed
19274 # For security reasons, it is highly recommended that you always
19275 # use absolute paths for naming shared libraries, and exclude the
19276 # DT_RUNPATH tag from executables and libraries. But doing so
19277 # requires that you compile everything twice, which is a pain.
19278 # So that behaviour is only enabled if SCOABSPATH is set to a
19279 # non-empty value in the environment. Most likely only useful for
19280 # creating official distributions of packages.
19281 # This is a hack until libtool officially supports absolute path
19282 # names for shared libraries.
19283 no_undefined_flag_CXX='${wl}-z,text'
19284 allow_undefined_flag_CXX='${wl}-z,nodefs'
19285 archive_cmds_need_lc_CXX=no
19286 hardcode_shlibpath_var_CXX=no
19287 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19288 hardcode_libdir_separator_CXX=':'
19289 link_all_deplibs_CXX=yes
19290 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19291 runpath_var='LD_RUN_PATH'
19293 case $cc_basename in
19295 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19299 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19305 case $cc_basename in
19307 # NonStop-UX NCC 3.20
19308 # FIXME: insert proper C++ library support
19312 # FIXME: insert proper C++ library support
19318 # FIXME: insert proper C++ library support
19322 # FIXME: insert proper C++ library support
19326 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19327 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19328 test "$ld_shlibs_CXX" = no && can_build_shared=no
19334 cat > conftest.$ac_ext <<EOF
19338 Foo (void) { a = 0; }
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; then
19349 # Parse the compiler output and extract the necessary
19350 # objects, libraries and library flags.
19352 # Sentinel used to keep track of whether or not we are before
19353 # the conftest object file.
19354 pre_test_object_deps_done=no
19356 # The `*' in the case matches for architectures that use `case' in
19357 # $output_verbose_cmd can trigger glob expansion during the loop
19358 # eval without this substitution.
19359 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19361 for p in `eval $output_verbose_link_cmd`; do
19365 # Some compilers place space between "-{L,R}" and the path.
19366 # Remove the space.
19367 if test $p = "-L" \
19368 || test $p = "-R"; then
19375 if test "$pre_test_object_deps_done" = no; then
19378 # Internal compiler library paths should come after those
19379 # provided the user. The postdeps already come after the
19380 # user supplied libs so there is no need to process them.
19381 if test -z "$compiler_lib_search_path_CXX"; then
19382 compiler_lib_search_path_CXX="${prev}${p}"
19384 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19387 # The "-l" case would never come before the object being
19388 # linked, so don't bother handling this case.
19391 if test -z "$postdeps_CXX"; then
19392 postdeps_CXX="${prev}${p}"
19394 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19400 # This assumes that the test object file only shows up
19401 # once in the compiler output.
19402 if test "$p" = "conftest.$objext"; then
19403 pre_test_object_deps_done=yes
19407 if test "$pre_test_object_deps_done" = no; then
19408 if test -z "$predep_objects_CXX"; then
19409 predep_objects_CXX="$p"
19411 predep_objects_CXX="$predep_objects_CXX $p"
19414 if test -z "$postdep_objects_CXX"; then
19415 postdep_objects_CXX="$p"
19417 postdep_objects_CXX="$postdep_objects_CXX $p"
19422 *) ;; # Ignore the rest.
19430 echo "libtool.m4: error: problem compiling CXX test program"
19433 $rm -f confest.$objext
19435 # PORTME: override above test on systems where it is broken
19438 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19439 # hack all around it, let's just trust "g++" to DTRT.
19440 predep_objects_CXX=
19441 postdep_objects_CXX=
19446 case $cc_basename in
19448 # Adding this requires a known-good setup of shared libraries for
19449 # Sun compiler versions before 5.6, else PIC objects from an old
19450 # archive will be linked into the output, leading to subtle bugs.
19451 postdeps_CXX='-lCstd -lCrun'
19458 case " $postdeps_CXX " in
19459 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19462 lt_prog_compiler_wl_CXX=
19463 lt_prog_compiler_pic_CXX=
19464 lt_prog_compiler_static_CXX=
19466 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19469 # C++ specific cases for pic, static, wl, etc.
19470 if test "$GXX" = yes; then
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 lt_prog_compiler_static_CXX='-static'
19476 # All AIX code is PIC.
19477 if test "$host_cpu" = ia64; then
19478 # AIX 5 now supports IA64 processor
19479 lt_prog_compiler_static_CXX='-Bstatic'
19483 # FIXME: we need at least 68020 code to build shared libraries, but
19484 # adding the `-m68020' flag to GCC prevents building anything better,
19486 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19489 # PIC is the default for these OSes.
19491 mingw* | os2* | pw32*)
19492 # This hack is so that the source file can tell whether it is being
19493 # built for inclusion in a dll (and should export symbols for example).
19494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19496 darwin* | rhapsody*)
19497 # PIC is the default on this platform
19498 # Common symbols not allowed in MH_DYLIB files
19499 lt_prog_compiler_pic_CXX='-fno-common'
19502 # DJGPP does not support shared libraries at all
19503 lt_prog_compiler_pic_CXX=
19506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19507 # Instead, we relocate shared libraries at runtime.
19510 if test -d /usr/nec; then
19511 lt_prog_compiler_pic_CXX=-Kconform_pic
19515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19516 # not for PA HP-UX.
19521 lt_prog_compiler_pic_CXX='-fPIC'
19526 lt_prog_compiler_pic_CXX='-fPIC'
19532 # All AIX code is PIC.
19533 if test "$host_cpu" = ia64; then
19534 # AIX 5 now supports IA64 processor
19535 lt_prog_compiler_static_CXX='-Bstatic'
19537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19541 case $cc_basename in
19543 # Green Hills C++ Compiler
19544 # _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"
19549 # PIC is the default on this platform
19550 # Common symbols not allowed in MH_DYLIB files
19551 case $cc_basename in
19553 lt_prog_compiler_pic_CXX='-qnocommon'
19554 lt_prog_compiler_wl_CXX='-Wl,'
19559 case $cc_basename in
19561 lt_prog_compiler_pic_CXX='-KPIC'
19564 # Green Hills C++ Compiler
19565 lt_prog_compiler_pic_CXX='-pic'
19571 freebsd* | kfreebsd*-gnu | dragonfly*)
19572 # FreeBSD uses GNU C++
19574 hpux9* | hpux10* | hpux11*)
19575 case $cc_basename in
19577 lt_prog_compiler_wl_CXX='-Wl,'
19578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19579 if test "$host_cpu" != ia64; then
19580 lt_prog_compiler_pic_CXX='+Z'
19584 lt_prog_compiler_wl_CXX='-Wl,'
19585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19591 lt_prog_compiler_pic_CXX='+Z'
19600 # This is c89, which is MS Visual C++ (no shared libs)
19601 # Anyone wants to do a port?
19603 irix5* | irix6* | nonstopux*)
19604 case $cc_basename in
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 lt_prog_compiler_static_CXX='-non_shared'
19608 # CC pic flag -KPIC is the default.
19615 case $cc_basename in
19618 lt_prog_compiler_wl_CXX='--backend -Wl,'
19619 lt_prog_compiler_pic_CXX='-fPIC'
19623 lt_prog_compiler_wl_CXX='-Wl,'
19624 lt_prog_compiler_pic_CXX='-KPIC'
19625 lt_prog_compiler_static_CXX='-static'
19628 # Portland Group C++ compiler.
19629 lt_prog_compiler_wl_CXX='-Wl,'
19630 lt_prog_compiler_pic_CXX='-fpic'
19631 lt_prog_compiler_static_CXX='-Bstatic'
19635 # Make sure the PIC flag is empty. It appears that all Alpha
19636 # Linux and Compaq Tru64 Unix objects are PIC.
19637 lt_prog_compiler_pic_CXX=
19638 lt_prog_compiler_static_CXX='-non_shared'
19649 case $cc_basename in
19651 lt_prog_compiler_pic_CXX='-W c,exportall'
19659 osf3* | osf4* | osf5*)
19660 case $cc_basename in
19662 lt_prog_compiler_wl_CXX='--backend -Wl,'
19665 # Rational C++ 2.4.1
19666 lt_prog_compiler_pic_CXX='-pic'
19669 # Digital/Compaq C++
19670 lt_prog_compiler_wl_CXX='-Wl,'
19671 # Make sure the PIC flag is empty. It appears that all Alpha
19672 # Linux and Compaq Tru64 Unix objects are PIC.
19673 lt_prog_compiler_pic_CXX=
19674 lt_prog_compiler_static_CXX='-non_shared'
19683 case $cc_basename in
19685 # Sun C++ 4.2, 5.x and Centerline C++
19686 lt_prog_compiler_pic_CXX='-KPIC'
19687 lt_prog_compiler_static_CXX='-Bstatic'
19688 lt_prog_compiler_wl_CXX='-Qoption ld '
19691 # Green Hills C++ Compiler
19692 lt_prog_compiler_pic_CXX='-PIC'
19699 case $cc_basename in
19702 lt_prog_compiler_pic_CXX='-pic'
19703 lt_prog_compiler_static_CXX='-Bstatic'
19707 lt_prog_compiler_pic_CXX='-pic'
19714 case $cc_basename in
19716 # NonStop-UX NCC 3.20
19717 lt_prog_compiler_pic_CXX='-KPIC'
19723 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19724 case $cc_basename in
19726 lt_prog_compiler_wl_CXX='-Wl,'
19727 lt_prog_compiler_pic_CXX='-KPIC'
19728 lt_prog_compiler_static_CXX='-Bstatic'
19735 lt_prog_compiler_can_build_shared_CXX=no
19740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19741 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19744 # Check to make sure the PIC flag actually works.
19746 if test -n "$lt_prog_compiler_pic_CXX"; then
19748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19750 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 lt_prog_compiler_pic_works_CXX=no
19754 ac_outfile=conftest.$ac_objext
19755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19757 # Insert the option either (1) after the last *FLAGS variable, or
19758 # (2) before a word containing "conftest.", or (3) at the end.
19759 # Note that $ac_compile itself does not contain backslashes and begins
19760 # with a dollar sign (not a hyphen), so the echo should work correctly.
19761 # The option is referenced via a variable to avoid confusing sed.
19762 lt_compile=`echo "$ac_compile" | $SED \
19763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19765 -e 's:$: $lt_compiler_flag:'`
19766 (eval echo "\"\$as_me:19766: $lt_compile\"" >&5)
19767 (eval "$lt_compile" 2>conftest.err)
19769 cat conftest.err >&5
19770 echo "$as_me:19770: \$? = $ac_status" >&5
19771 if (exit $ac_status) && test -s "$ac_outfile"; then
19772 # The compiler can only warn and ignore the option if not recognized
19773 # So say no if there are warnings other than the usual output.
19774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19777 lt_prog_compiler_pic_works_CXX=yes
19783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19784 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19786 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19787 case $lt_prog_compiler_pic_CXX in
19789 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19792 lt_prog_compiler_pic_CXX=
19793 lt_prog_compiler_can_build_shared_CXX=no
19798 # For platforms which do not support PIC, -DPIC is meaningless:
19800 lt_prog_compiler_pic_CXX=
19803 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19808 # Check to make sure the static flag actually works.
19810 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19813 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 lt_prog_compiler_static_works_CXX=no
19817 save_LDFLAGS="$LDFLAGS"
19818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19821 # The linker can only warn and ignore the option if not recognized
19822 # So say no if there are warnings
19823 if test -s conftest.err; then
19824 # Append any errors to the config.log.
19825 cat conftest.err 1>&5
19826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19828 if diff conftest.exp conftest.er2 >/dev/null; then
19829 lt_prog_compiler_static_works_CXX=yes
19832 lt_prog_compiler_static_works_CXX=yes
19836 LDFLAGS="$save_LDFLAGS"
19839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19840 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19842 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19845 lt_prog_compiler_static_CXX=
19849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19851 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 lt_cv_prog_compiler_c_o_CXX=no
19855 $rm -r conftest 2>/dev/null
19859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19861 lt_compiler_flag="-o out/conftest2.$ac_objext"
19862 # Insert the option either (1) after the last *FLAGS variable, or
19863 # (2) before a word containing "conftest.", or (3) at the end.
19864 # Note that $ac_compile itself does not contain backslashes and begins
19865 # with a dollar sign (not a hyphen), so the echo should work correctly.
19866 lt_compile=`echo "$ac_compile" | $SED \
19867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19869 -e 's:$: $lt_compiler_flag:'`
19870 (eval echo "\"\$as_me:19870: $lt_compile\"" >&5)
19871 (eval "$lt_compile" 2>out/conftest.err)
19873 cat out/conftest.err >&5
19874 echo "$as_me:19874: \$? = $ac_status" >&5
19875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19877 # The compiler can only warn and ignore the option if not recognized
19878 # So say no if there are warnings
19879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19882 lt_cv_prog_compiler_c_o_CXX=yes
19887 # SGI C++ compiler will create directory out/ii_files/ for
19888 # template instantiation
19889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19890 $rm out/* && rmdir out
19896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19900 hard_links="nottested"
19901 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19902 # do not overwrite the value of need_locks provided by the user
19903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19909 ln conftest.a conftest.b 2>&5 || hard_links=no
19910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19911 { echo "$as_me:$LINENO: result: $hard_links" >&5
19912 echo "${ECHO_T}$hard_links" >&6; }
19913 if test "$hard_links" = no; then
19914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19928 # If we're using GNU nm, then we don't want the "-C" option.
19929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19931 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'
19933 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'
19937 export_symbols_cmds_CXX="$ltdll_cmds"
19940 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'
19943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19947 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19948 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19949 test "$ld_shlibs_CXX" = no && can_build_shared=no
19952 # Do we need to explicitly link libc?
19954 case "x$archive_cmds_need_lc_CXX" in
19956 # Assume -lc should be added
19957 archive_cmds_need_lc_CXX=yes
19959 if test "$enable_shared" = yes && test "$GCC" = yes; then
19960 case $archive_cmds_CXX in
19962 # FIXME: we may have to deal with multi-command sequences.
19965 # Test whether the compiler implicitly links with -lc since on some
19966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19967 # to ld, don't add -lc before -lgcc.
19968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } 2>conftest.err; then
19980 libobjs=conftest.$ac_objext
19982 wl=$lt_prog_compiler_wl_CXX
19983 pic_flag=$lt_prog_compiler_pic_CXX
19989 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19990 allow_undefined_flag_CXX=
19991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }
19997 archive_cmds_need_lc_CXX=no
19999 archive_cmds_need_lc_CXX=yes
20001 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20003 cat conftest.err 1>&5
20006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20007 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20014 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20016 library_names_spec=
20017 libname_spec='lib$name'
20021 postuninstall_cmds=
20025 shlibpath_overrides_runpath=unknown
20027 dynamic_linker="$host_os ld.so"
20028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029 if test "$GCC" = yes; then
20030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032 # if the path contains ";" then we assume it to be the separator
20033 # otherwise default to the standard path separator (i.e. ":") - it is
20034 # assumed that no part of a normal pathname contains ";" but that should
20035 # okay in the real world where ";" in dirpaths is itself problematic.
20036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20043 need_lib_prefix=unknown
20044 hardcode_into_libs=no
20046 # when you set need_version to no, make sure it does not cause -set_version
20047 # flags to be left without arguments
20048 need_version=unknown
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054 shlibpath_var=LIBPATH
20056 # AIX 3 has no versioning support, so we append a major version to the name.
20057 soname_spec='${libname}${release}${shared_ext}$major'
20064 hardcode_into_libs=yes
20065 if test "$host_cpu" = ia64; then
20066 # AIX 5 supports IA64
20067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068 shlibpath_var=LD_LIBRARY_PATH
20070 # With GCC up to 2.95.x, collect2 would create an import file
20071 # for dependence libraries. The import file would start with
20072 # the line `#! .'. This would cause the generated library to
20073 # depend on `.', always an invalid library. This was fixed in
20074 # development snapshots of GCC prior to 3.0.
20076 aix4 | aix4.[01] | aix4.[01].*)
20077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20082 can_build_shared=no
20086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087 # soname into executable. Probably we can add versioning support to
20088 # collect2, so additional links can be useful in future.
20089 if test "$aix_use_runtimelinking" = yes; then
20090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091 # instead of lib<name>.a to let people know that these are not
20092 # typical AIX shared libraries.
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095 # We preserve .a as extension for shared libraries through AIX4.2
20096 # and later when we are not doing run time linking.
20097 library_names_spec='${libname}${release}.a $libname.a'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20100 shlibpath_var=LIBPATH
20105 library_names_spec='$libname.ixlibrary $libname.a'
20106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20107 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'
20111 library_names_spec='${libname}${shared_ext}'
20112 dynamic_linker="$host_os ld.so"
20113 shlibpath_var=LIBRARY_PATH
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125 # the default ld.so.conf also contains /usr/contrib/lib and
20126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127 # libtool to hard-code these into programs
20130 cygwin* | mingw* | pw32*)
20131 version_type=windows
20136 case $GCC,$host_os in
20137 yes,cygwin* | yes,mingw* | yes,pw32*)
20138 library_names_spec='$libname.dll.a'
20139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20140 postinstall_cmds='base_file=`basename \${file}`~
20141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142 dldir=$destdir/`dirname \$dlpath`~
20143 test -d \$dldir || mkdir -p \$dldir~
20144 $install_prog $dir/$dlname \$dldir/$dlname~
20145 chmod a+x \$dldir/$dlname'
20146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20147 dlpath=$dir/\$dldll~
20149 shlibpath_overrides_runpath=yes
20153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20158 # MinGW DLLs use traditional 'lib' prefix
20159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20162 # It is most probably a Windows format PATH printed by
20163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20164 # path with ; separators, and with drive letters. We can handle the
20165 # drive letters (cygwin fileutils understands them), so leave them,
20166 # especially as we might pass files found there to a mingw objdump,
20167 # which wouldn't understand a cygwinified path. Ahh.
20168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20174 # pw32 DLLs use 'pw' prefix rather than 'lib'
20175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20184 dynamic_linker='Win32 ld.exe'
20185 # FIXME: first we should search . and the directory the executable is in
20189 darwin* | rhapsody*)
20190 dynamic_linker="$host_os dyld"
20191 version_type=darwin
20194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20195 soname_spec='${libname}${release}${major}$shared_ext'
20196 shlibpath_overrides_runpath=yes
20197 shlibpath_var=DYLD_LIBRARY_PATH
20198 shrext_cmds='.dylib'
20199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20200 if test "$GCC" = yes; then
20201 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"`
20203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 shlibpath_var=LD_LIBRARY_PATH
20228 shlibpath_overrides_runpath=no
20229 hardcode_into_libs=yes
20230 dynamic_linker='GNU ld.so'
20233 freebsd* | dragonfly*)
20234 # DragonFly does not have aout. When/if they implement a new
20235 # versioning mechanism, adjust this.
20236 if test -x /usr/bin/objformat; then
20237 objformat=`/usr/bin/objformat`
20240 freebsd[123]*) objformat=aout ;;
20241 *) objformat=elf ;;
20244 version_type=freebsd-$objformat
20245 case $version_type in
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20256 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes
20261 freebsd3.[01]* | freebsdelf3.[01]*)
20262 shlibpath_overrides_runpath=yes
20263 hardcode_into_libs=yes
20265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20267 shlibpath_overrides_runpath=no
20268 hardcode_into_libs=yes
20270 freebsd*) # from 4.6 on
20271 shlibpath_overrides_runpath=yes
20272 hardcode_into_libs=yes
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 hardcode_into_libs=yes
20287 hpux9* | hpux10* | hpux11*)
20288 # Give a soname corresponding to the major version so that dld.sl refuses to
20289 # link against other versions.
20296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.so"
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 if test "X$HPUX_IA64_MODE" = X32; then
20303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20311 hardcode_into_libs=yes
20312 dynamic_linker="$host_os dld.sl"
20313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20322 dynamic_linker="$host_os dld.sl"
20323 shlibpath_var=SHLIB_PATH
20324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 soname_spec='${libname}${release}${shared_ext}$major'
20329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20330 postinstall_cmds='chmod 555 $lib'
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20345 irix5* | irix6* | nonstopux*)
20347 nonstopux*) version_type=nonstopux ;;
20349 if test "$lt_cv_prog_gnu_ld" = yes; then
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20360 irix5* | nonstopux*)
20361 libsuff= shlibsuff=
20364 case $LD in # libtool.m4 will add one of these switches to LD
20365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20366 libsuff= shlibsuff= libmagic=32-bit;;
20367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20368 libsuff=32 shlibsuff=N32 libmagic=N32;;
20369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20371 *) libsuff= shlibsuff= libmagic=never-match;;
20375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20376 shlibpath_overrides_runpath=no
20377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20379 hardcode_into_libs=yes
20382 # No shared lib support for Linux oldld, aout, or coff.
20383 linux*oldld* | linux*aout* | linux*coff*)
20387 # This must be Linux ELF.
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=no
20397 # This implies no fast_install, which is unacceptable.
20398 # Some rework will be needed to allow for fast_install
20399 # before this can be enabled.
20400 hardcode_into_libs=yes
20402 # Append ld.so.conf contents to the search path
20403 if test -f /etc/ld.so.conf; then
20404 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' ' '`
20405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20408 # We used to test for /lib/ld.so.1 and disable shared libraries on
20409 # powerpc, because MkLinux only supported shared libraries with the
20410 # GNU dynamic linker. Since this was broken with cross compilers,
20411 # most powerpc-linux boxes support dynamic linking these days and
20412 # people can always --disable-shared, the test was removed, and we
20413 # assume the GNU/Linux dynamic linker is in use.
20414 dynamic_linker='GNU/Linux ld.so'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 shlibpath_overrides_runpath=no
20425 hardcode_into_libs=yes
20426 dynamic_linker='GNU ld.so'
20433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436 dynamic_linker='NetBSD (a.out) ld.so'
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 dynamic_linker='NetBSD ld.elf_so'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 shlibpath_overrides_runpath=yes
20444 hardcode_into_libs=yes
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20459 soname_spec='${libname}${release}${shared_ext}$major'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=yes
20466 sys_lib_dlsearch_path_spec="/usr/lib"
20468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20471 *) need_version=no ;;
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20478 openbsd2.[89] | openbsd2.[89].*)
20479 shlibpath_overrides_runpath=no
20482 shlibpath_overrides_runpath=yes
20486 shlibpath_overrides_runpath=yes
20491 libname_spec='$name'
20494 library_names_spec='$libname${shared_ext} $libname.a'
20495 dynamic_linker='OS/2 ld.exe'
20496 shlibpath_var=LIBPATH
20499 osf3* | osf4* | osf5*)
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 shlibpath_overrides_runpath=yes
20518 hardcode_into_libs=yes
20519 # ldd complains unless libraries are executable
20520 postinstall_cmds='chmod +x $lib'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20527 shlibpath_var=LD_LIBRARY_PATH
20528 shlibpath_overrides_runpath=yes
20529 if test "$with_gnu_ld" = yes; then
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 case $host_vendor in
20542 shlibpath_overrides_runpath=no
20544 export_dynamic_flag_spec='${wl}-Blargedynsym'
20545 runpath_var=LD_RUN_PATH
20553 shlibpath_overrides_runpath=no
20554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20560 if test -d /usr/nec ;then
20562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20563 soname_spec='$libname${shared_ext}.$major'
20564 shlibpath_var=LD_LIBRARY_PATH
20568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20569 version_type=freebsd-elf
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20573 soname_spec='${libname}${release}${shared_ext}$major'
20574 shlibpath_var=LD_LIBRARY_PATH
20575 hardcode_into_libs=yes
20576 if test "$with_gnu_ld" = yes; then
20577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20578 shlibpath_overrides_runpath=no
20580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20581 shlibpath_overrides_runpath=yes
20584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20588 sys_lib_dlsearch_path_spec='/usr/lib'
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20602 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20603 echo "${ECHO_T}$dynamic_linker" >&6; }
20604 test "$dynamic_linker" = no && can_build_shared=no
20606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20607 if test "$GCC" = yes; then
20608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20611 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20613 hardcode_action_CXX=
20614 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20615 test -n "$runpath_var_CXX" || \
20616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20618 # We can hardcode non-existant directories.
20619 if test "$hardcode_direct_CXX" != no &&
20620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20621 # have to relink, otherwise we might link with an installed library
20622 # when we should be linking with a yet-to-be-installed one
20623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20624 test "$hardcode_minus_L_CXX" != no; then
20625 # Linking always hardcodes the temporary library directory.
20626 hardcode_action_CXX=relink
20628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20629 hardcode_action_CXX=immediate
20632 # We cannot hardcode anything, or else we can only hardcode existing
20634 hardcode_action_CXX=unsupported
20636 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20637 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20639 if test "$hardcode_action_CXX" = relink; then
20640 # Fast installation is not supported
20641 enable_fast_install=no
20642 elif test "$shlibpath_overrides_runpath" = yes ||
20643 test "$enable_shared" = no; then
20644 # Fast installation is not necessary
20645 enable_fast_install=needless
20649 # The else clause should only fire when bootstrapping the
20650 # libtool distribution, otherwise you forgot to ship ltmain.sh
20651 # with your package, and you will get complaints that there are
20652 # no rules to generate ltmain.sh.
20653 if test -f "$ltmain"; then
20654 # See if we are running on zsh, and set the options which allow our commands through
20655 # without removal of \ escapes.
20656 if test -n "${ZSH_VERSION+set}" ; then
20657 setopt NO_GLOB_SUBST
20659 # Now quote all the things that may contain metacharacters while being
20660 # careful not to overquote the AC_SUBSTed values. We take copies of the
20661 # variables and quote the copies for generation of the libtool script.
20662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666 deplibs_check_method reload_flag reload_cmds need_locks \
20667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668 lt_cv_sys_global_symbol_to_c_name_address \
20669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670 old_postinstall_cmds old_postuninstall_cmds \
20674 lt_prog_compiler_wl_CXX \
20675 lt_prog_compiler_pic_CXX \
20676 lt_prog_compiler_static_CXX \
20677 lt_prog_compiler_no_builtin_flag_CXX \
20678 export_dynamic_flag_spec_CXX \
20679 thread_safe_flag_spec_CXX \
20680 whole_archive_flag_spec_CXX \
20681 enable_shared_with_static_runtimes_CXX \
20682 old_archive_cmds_CXX \
20683 old_archive_from_new_cmds_CXX \
20684 predep_objects_CXX \
20685 postdep_objects_CXX \
20688 compiler_lib_search_path_CXX \
20690 archive_expsym_cmds_CXX \
20691 postinstall_cmds_CXX \
20692 postuninstall_cmds_CXX \
20693 old_archive_from_expsyms_cmds_CXX \
20694 allow_undefined_flag_CXX \
20695 no_undefined_flag_CXX \
20696 export_symbols_cmds_CXX \
20697 hardcode_libdir_flag_spec_CXX \
20698 hardcode_libdir_flag_spec_ld_CXX \
20699 hardcode_libdir_separator_CXX \
20700 hardcode_automatic_CXX \
20702 module_expsym_cmds_CXX \
20703 lt_cv_prog_compiler_c_o_CXX \
20704 exclude_expsyms_CXX \
20705 include_expsyms_CXX; do
20708 old_archive_cmds_CXX | \
20709 old_archive_from_new_cmds_CXX | \
20710 archive_cmds_CXX | \
20711 archive_expsym_cmds_CXX | \
20712 module_cmds_CXX | \
20713 module_expsym_cmds_CXX | \
20714 old_archive_from_expsyms_cmds_CXX | \
20715 export_symbols_cmds_CXX | \
20716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717 postinstall_cmds | postuninstall_cmds | \
20718 old_postinstall_cmds | old_postuninstall_cmds | \
20719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720 # Double-quote double-evaled strings.
20721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20730 *'\$0 --fallback-echo"')
20731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20737 cat <<__EOF__ >> "$cfgfile"
20738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20742 # Shell to use when invoking shell scripts.
20745 # Whether or not to build shared libraries.
20746 build_libtool_libs=$enable_shared
20748 # Whether or not to build static libraries.
20749 build_old_libs=$enable_static
20751 # Whether or not to add -lc for building shared libraries.
20752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20754 # Whether or not to disallow shared libs when runtime libs are static
20755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20757 # Whether or not to optimize for fast installation.
20758 fast_install=$enable_fast_install
20761 host_alias=$host_alias
20765 # The build system.
20766 build_alias=$build_alias
20770 # An echo program that does not interpret backslashes.
20775 AR_FLAGS=$lt_AR_FLAGS
20780 # LTCC compiler flags.
20781 LTCFLAGS=$lt_LTCFLAGS
20783 # A language-specific compiler.
20784 CC=$lt_compiler_CXX
20786 # Is the compiler the GNU C compiler?
20792 # The linker used to build libraries.
20795 # Whether we need hard or soft links.
20798 # A BSD-compatible nm program.
20801 # A symbol stripping program
20804 # Used to examine libraries when file_magic_cmd begins "file"
20805 MAGIC_CMD=$MAGIC_CMD
20807 # Used on cygwin: DLL creation program.
20810 # Used on cygwin: object dumper.
20813 # Used on cygwin: assembler.
20816 # The name of the directory that contains temporary libtool files.
20819 # How to create reloadable object files.
20820 reload_flag=$lt_reload_flag
20821 reload_cmds=$lt_reload_cmds
20823 # How to pass a linker flag through the compiler.
20824 wl=$lt_lt_prog_compiler_wl_CXX
20826 # Object file suffix (normally "o").
20827 objext="$ac_objext"
20829 # Old archive suffix (normally "a").
20832 # Shared library suffix (normally ".so").
20833 shrext_cmds='$shrext_cmds'
20835 # Executable file suffix (normally "").
20838 # Additional compiler flags for building library objects.
20839 pic_flag=$lt_lt_prog_compiler_pic_CXX
20842 # What is the maximum length of a command?
20843 max_cmd_len=$lt_cv_sys_max_cmd_len
20845 # Does compiler simultaneously support -c and -o options?
20846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20848 # Must we lock files when doing compilation?
20849 need_locks=$lt_need_locks
20851 # Do we need the lib prefix for modules?
20852 need_lib_prefix=$need_lib_prefix
20854 # Do we need a version for libraries?
20855 need_version=$need_version
20857 # Whether dlopen is supported.
20858 dlopen_support=$enable_dlopen
20860 # Whether dlopen of programs is supported.
20861 dlopen_self=$enable_dlopen_self
20863 # Whether dlopen of statically linked programs is supported.
20864 dlopen_self_static=$enable_dlopen_self_static
20866 # Compiler flag to prevent dynamic linking.
20867 link_static_flag=$lt_lt_prog_compiler_static_CXX
20869 # Compiler flag to turn off builtin functions.
20870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20872 # Compiler flag to allow reflexive dlopens.
20873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20875 # Compiler flag to generate shared objects directly from archives.
20876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20878 # Compiler flag to generate thread-safe objects.
20879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20881 # Library versioning type.
20882 version_type=$version_type
20884 # Format of library name prefix.
20885 libname_spec=$lt_libname_spec
20887 # List of archive names. First name is the real one, the rest are links.
20888 # The last name is the one that the linker finds with -lNAME.
20889 library_names_spec=$lt_library_names_spec
20891 # The coded name of the library, if different from the real name.
20892 soname_spec=$lt_soname_spec
20894 # Commands used to build and install an old-style archive.
20896 old_archive_cmds=$lt_old_archive_cmds_CXX
20897 old_postinstall_cmds=$lt_old_postinstall_cmds
20898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20900 # Create an old-style archive from a shared archive.
20901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20903 # Create a temporary old-style archive to link instead of a shared archive.
20904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20906 # Commands used to build and install a shared archive.
20907 archive_cmds=$lt_archive_cmds_CXX
20908 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20909 postinstall_cmds=$lt_postinstall_cmds
20910 postuninstall_cmds=$lt_postuninstall_cmds
20912 # Commands used to build a loadable module (assumed same as above if empty)
20913 module_cmds=$lt_module_cmds_CXX
20914 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20916 # Commands to strip libraries.
20917 old_striplib=$lt_old_striplib
20918 striplib=$lt_striplib
20920 # Dependencies to place before the objects being linked to create a
20922 predep_objects=$lt_predep_objects_CXX
20924 # Dependencies to place after the objects being linked to create a
20926 postdep_objects=$lt_postdep_objects_CXX
20928 # Dependencies to place before the objects being linked to create a
20930 predeps=$lt_predeps_CXX
20932 # Dependencies to place after the objects being linked to create a
20934 postdeps=$lt_postdeps_CXX
20936 # The library search path used internally by the compiler when linking
20937 # a shared library.
20938 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20940 # Method to check whether dependent libraries are shared objects.
20941 deplibs_check_method=$lt_deplibs_check_method
20943 # Command to use when deplibs_check_method == file_magic.
20944 file_magic_cmd=$lt_file_magic_cmd
20946 # Flag that allows shared libraries with undefined symbols to be built.
20947 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20949 # Flag that forces no undefined symbols.
20950 no_undefined_flag=$lt_no_undefined_flag_CXX
20952 # Commands used to finish a libtool library installation in a directory.
20953 finish_cmds=$lt_finish_cmds
20955 # Same as above, but a single script fragment to be evaled but not shown.
20956 finish_eval=$lt_finish_eval
20958 # Take the output of nm and produce a listing of raw symbols and C names.
20959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20961 # Transform the output of nm in a proper C declaration
20962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20964 # Transform the output of nm in a C name address pair
20965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20967 # This is the shared library runtime path variable.
20968 runpath_var=$runpath_var
20970 # This is the shared library path variable.
20971 shlibpath_var=$shlibpath_var
20973 # Is shlibpath searched before the hard-coded library search path?
20974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20976 # How to hardcode a shared library path into an executable.
20977 hardcode_action=$hardcode_action_CXX
20979 # Whether we should hardcode library paths into libraries.
20980 hardcode_into_libs=$hardcode_into_libs
20982 # Flag to hardcode \$libdir into a binary during linking.
20983 # This must work even if \$libdir does not exist.
20984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20986 # If ld is used when linking, flag to hardcode \$libdir into
20987 # a binary during linking. This must work even if \$libdir does
20989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20991 # Whether we need a single -rpath flag with a separated argument.
20992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20995 # resulting binary.
20996 hardcode_direct=$hardcode_direct_CXX
20998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20999 # resulting binary.
21000 hardcode_minus_L=$hardcode_minus_L_CXX
21002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21003 # the resulting binary.
21004 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21006 # Set to yes if building a shared library automatically hardcodes DIR into the library
21007 # and all subsequent libraries and executables linked against it.
21008 hardcode_automatic=$hardcode_automatic_CXX
21010 # Variables whose values should be saved in libtool wrapper scripts and
21011 # restored at relink time.
21012 variables_saved_for_relink="$variables_saved_for_relink"
21014 # Whether libtool must link a program against all its dependency libraries.
21015 link_all_deplibs=$link_all_deplibs_CXX
21017 # Compile-time system search path for libraries
21018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21020 # Run-time system search path for libraries
21021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21023 # Fix the shell variable \$srcfile for the compiler.
21024 fix_srcfile_path="$fix_srcfile_path_CXX"
21026 # Set to yes if exported symbols are required.
21027 always_export_symbols=$always_export_symbols_CXX
21029 # The commands to list exported symbols.
21030 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21032 # The commands to extract the exported symbol list from a shared archive.
21033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21035 # Symbols that should not be listed in the preloaded symbols.
21036 exclude_expsyms=$lt_exclude_expsyms_CXX
21038 # Symbols that must always be exported.
21039 include_expsyms=$lt_include_expsyms_CXX
21041 # ### END LIBTOOL TAG CONFIG: $tagname
21047 # If there is no Makefile yet, we rely on a make rule to execute
21048 # `config.status --recheck' to rerun these tests and create the
21049 # libtool script then.
21050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21051 if test -f "$ltmain_in"; then
21052 test -f Makefile && make "$ltmain"
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21067 with_gnu_ldcxx=$with_gnu_ld
21068 with_gnu_ld=$lt_save_with_gnu_ld
21069 lt_cv_path_LDCXX=$lt_cv_path_LD
21070 lt_cv_path_LD=$lt_save_path_LD
21071 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21072 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21080 if test -n "$F77" && test "X$F77" != "Xno"; then
21083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21088 archive_cmds_need_lc_F77=no
21089 allow_undefined_flag_F77=
21090 always_export_symbols_F77=no
21091 archive_expsym_cmds_F77=
21092 export_dynamic_flag_spec_F77=
21093 hardcode_direct_F77=no
21094 hardcode_libdir_flag_spec_F77=
21095 hardcode_libdir_flag_spec_ld_F77=
21096 hardcode_libdir_separator_F77=
21097 hardcode_minus_L_F77=no
21098 hardcode_automatic_F77=no
21100 module_expsym_cmds_F77=
21101 link_all_deplibs_F77=unknown
21102 old_archive_cmds_F77=$old_archive_cmds
21103 no_undefined_flag_F77=
21104 whole_archive_flag_spec_F77=
21105 enable_shared_with_static_runtimes_F77=no
21107 # Source file extension for f77 test sources.
21110 # Object file extension for compiled f77 test sources.
21114 # Code to be used in simple compile tests
21115 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21117 # Code to be used in simple link tests
21118 lt_simple_link_test_code=" program t\n end\n"
21120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21122 # If no C compiler was specified, use CC.
21125 # If no C compiler flags were specified, use CFLAGS.
21126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21128 # Allow CC to be a program name with arguments.
21132 # save warnings/boilerplate of simple test code
21133 ac_outfile=conftest.$ac_objext
21134 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21136 _lt_compiler_boilerplate=`cat conftest.err`
21139 ac_outfile=conftest.$ac_objext
21140 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21142 _lt_linker_boilerplate=`cat conftest.err`
21146 # Allow CC to be a program name with arguments.
21151 for cc_temp in $compiler""; do
21153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21162 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21164 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21165 echo "${ECHO_T}$can_build_shared" >&6; }
21167 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21169 test "$can_build_shared" = "no" && enable_shared=no
21171 # On AIX, shared libraries and static libraries use the same namespace, and
21172 # are all built from PIC.
21175 test "$enable_shared" = yes && enable_static=no
21176 if test -n "$RANLIB"; then
21177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21178 postinstall_cmds='$RANLIB $lib'
21182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21183 test "$enable_shared" = yes && enable_static=no
21187 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21188 echo "${ECHO_T}$enable_shared" >&6; }
21190 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21191 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21192 # Make sure either enable_shared or enable_static is yes.
21193 test "$enable_shared" = yes || enable_static=yes
21194 { echo "$as_me:$LINENO: result: $enable_static" >&5
21195 echo "${ECHO_T}$enable_static" >&6; }
21200 lt_prog_compiler_wl_F77=
21201 lt_prog_compiler_pic_F77=
21202 lt_prog_compiler_static_F77=
21204 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21205 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21207 if test "$GCC" = yes; then
21208 lt_prog_compiler_wl_F77='-Wl,'
21209 lt_prog_compiler_static_F77='-static'
21213 # All AIX code is PIC.
21214 if test "$host_cpu" = ia64; then
21215 # AIX 5 now supports IA64 processor
21216 lt_prog_compiler_static_F77='-Bstatic'
21221 # FIXME: we need at least 68020 code to build shared libraries, but
21222 # adding the `-m68020' flag to GCC prevents building anything better,
21224 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21227 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21228 # PIC is the default for these OSes.
21231 mingw* | pw32* | os2*)
21232 # This hack is so that the source file can tell whether it is being
21233 # built for inclusion in a dll (and should export symbols for example).
21234 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21237 darwin* | rhapsody*)
21238 # PIC is the default on this platform
21239 # Common symbols not allowed in MH_DYLIB files
21240 lt_prog_compiler_pic_F77='-fno-common'
21244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21245 # Instead, we relocate shared libraries at runtime.
21249 # Just because we use GCC doesn't mean we suddenly get shared libraries
21250 # on systems that don't support them.
21251 lt_prog_compiler_can_build_shared_F77=no
21256 if test -d /usr/nec; then
21257 lt_prog_compiler_pic_F77=-Kconform_pic
21262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21263 # not for PA HP-UX.
21269 lt_prog_compiler_pic_F77='-fPIC'
21275 lt_prog_compiler_pic_F77='-fPIC'
21279 # PORTME Check for flag to pass linker flags through the system compiler.
21282 lt_prog_compiler_wl_F77='-Wl,'
21283 if test "$host_cpu" = ia64; then
21284 # AIX 5 now supports IA64 processor
21285 lt_prog_compiler_static_F77='-Bstatic'
21287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21291 # PIC is the default on this platform
21292 # Common symbols not allowed in MH_DYLIB files
21293 case $cc_basename in
21295 lt_prog_compiler_pic_F77='-qnocommon'
21296 lt_prog_compiler_wl_F77='-Wl,'
21301 mingw* | pw32* | os2*)
21302 # This hack is so that the source file can tell whether it is being
21303 # built for inclusion in a dll (and should export symbols for example).
21304 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21307 hpux9* | hpux10* | hpux11*)
21308 lt_prog_compiler_wl_F77='-Wl,'
21309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21310 # not for PA HP-UX.
21316 lt_prog_compiler_pic_F77='+Z'
21319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21320 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21323 irix5* | irix6* | nonstopux*)
21324 lt_prog_compiler_wl_F77='-Wl,'
21325 # PIC (with -KPIC) is the default.
21326 lt_prog_compiler_static_F77='-non_shared'
21330 lt_prog_compiler_pic_F77='-KPIC'
21331 lt_prog_compiler_static_F77='-Bstatic'
21335 case $cc_basename in
21337 lt_prog_compiler_wl_F77='-Wl,'
21338 lt_prog_compiler_pic_F77='-KPIC'
21339 lt_prog_compiler_static_F77='-static'
21341 pgcc* | pgf77* | pgf90* | pgf95*)
21342 # Portland Group compilers (*not* the Pentium gcc compiler,
21343 # which looks to be a dead project)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 lt_prog_compiler_pic_F77='-fpic'
21346 lt_prog_compiler_static_F77='-Bstatic'
21349 lt_prog_compiler_wl_F77='-Wl,'
21350 # All Alpha code is PIC.
21351 lt_prog_compiler_static_F77='-non_shared'
21356 osf3* | osf4* | osf5*)
21357 lt_prog_compiler_wl_F77='-Wl,'
21358 # All OSF/1 code is PIC.
21359 lt_prog_compiler_static_F77='-non_shared'
21363 lt_prog_compiler_pic_F77='-KPIC'
21364 lt_prog_compiler_static_F77='-Bstatic'
21365 case $cc_basename in
21366 f77* | f90* | f95*)
21367 lt_prog_compiler_wl_F77='-Qoption ld ';;
21369 lt_prog_compiler_wl_F77='-Wl,';;
21374 lt_prog_compiler_wl_F77='-Qoption ld '
21375 lt_prog_compiler_pic_F77='-PIC'
21376 lt_prog_compiler_static_F77='-Bstatic'
21379 sysv4 | sysv4.2uw2* | sysv4.3*)
21380 lt_prog_compiler_wl_F77='-Wl,'
21381 lt_prog_compiler_pic_F77='-KPIC'
21382 lt_prog_compiler_static_F77='-Bstatic'
21386 if test -d /usr/nec ;then
21387 lt_prog_compiler_pic_F77='-Kconform_pic'
21388 lt_prog_compiler_static_F77='-Bstatic'
21392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21393 lt_prog_compiler_wl_F77='-Wl,'
21394 lt_prog_compiler_pic_F77='-KPIC'
21395 lt_prog_compiler_static_F77='-Bstatic'
21399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_can_build_shared_F77=no
21404 lt_prog_compiler_pic_F77='-pic'
21405 lt_prog_compiler_static_F77='-Bstatic'
21409 lt_prog_compiler_can_build_shared_F77=no
21414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21415 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21418 # Check to make sure the PIC flag actually works.
21420 if test -n "$lt_prog_compiler_pic_F77"; then
21422 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21424 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 lt_prog_compiler_pic_works_F77=no
21428 ac_outfile=conftest.$ac_objext
21429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21430 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21431 # Insert the option either (1) after the last *FLAGS variable, or
21432 # (2) before a word containing "conftest.", or (3) at the end.
21433 # Note that $ac_compile itself does not contain backslashes and begins
21434 # with a dollar sign (not a hyphen), so the echo should work correctly.
21435 # The option is referenced via a variable to avoid confusing sed.
21436 lt_compile=`echo "$ac_compile" | $SED \
21437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21439 -e 's:$: $lt_compiler_flag:'`
21440 (eval echo "\"\$as_me:21440: $lt_compile\"" >&5)
21441 (eval "$lt_compile" 2>conftest.err)
21443 cat conftest.err >&5
21444 echo "$as_me:21444: \$? = $ac_status" >&5
21445 if (exit $ac_status) && test -s "$ac_outfile"; then
21446 # The compiler can only warn and ignore the option if not recognized
21447 # So say no if there are warnings other than the usual output.
21448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21451 lt_prog_compiler_pic_works_F77=yes
21457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21458 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21460 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21461 case $lt_prog_compiler_pic_F77 in
21463 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21466 lt_prog_compiler_pic_F77=
21467 lt_prog_compiler_can_build_shared_F77=no
21472 # For platforms which do not support PIC, -DPIC is meaningless:
21474 lt_prog_compiler_pic_F77=
21477 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21482 # Check to make sure the static flag actually works.
21484 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21485 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21486 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21487 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 lt_prog_compiler_static_works_F77=no
21491 save_LDFLAGS="$LDFLAGS"
21492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21493 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21495 # The linker can only warn and ignore the option if not recognized
21496 # So say no if there are warnings
21497 if test -s conftest.err; then
21498 # Append any errors to the config.log.
21499 cat conftest.err 1>&5
21500 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21502 if diff conftest.exp conftest.er2 >/dev/null; then
21503 lt_prog_compiler_static_works_F77=yes
21506 lt_prog_compiler_static_works_F77=yes
21510 LDFLAGS="$save_LDFLAGS"
21513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21514 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21516 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21519 lt_prog_compiler_static_F77=
21523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21525 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 lt_cv_prog_compiler_c_o_F77=no
21529 $rm -r conftest 2>/dev/null
21533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21535 lt_compiler_flag="-o out/conftest2.$ac_objext"
21536 # Insert the option either (1) after the last *FLAGS variable, or
21537 # (2) before a word containing "conftest.", or (3) at the end.
21538 # Note that $ac_compile itself does not contain backslashes and begins
21539 # with a dollar sign (not a hyphen), so the echo should work correctly.
21540 lt_compile=`echo "$ac_compile" | $SED \
21541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21543 -e 's:$: $lt_compiler_flag:'`
21544 (eval echo "\"\$as_me:21544: $lt_compile\"" >&5)
21545 (eval "$lt_compile" 2>out/conftest.err)
21547 cat out/conftest.err >&5
21548 echo "$as_me:21548: \$? = $ac_status" >&5
21549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21551 # The compiler can only warn and ignore the option if not recognized
21552 # So say no if there are warnings
21553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21556 lt_cv_prog_compiler_c_o_F77=yes
21561 # SGI C++ compiler will create directory out/ii_files/ for
21562 # template instantiation
21563 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21564 $rm out/* && rmdir out
21570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21571 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21574 hard_links="nottested"
21575 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21576 # do not overwrite the value of need_locks provided by the user
21577 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21578 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21583 ln conftest.a conftest.b 2>&5 || hard_links=no
21584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21585 { echo "$as_me:$LINENO: result: $hard_links" >&5
21586 echo "${ECHO_T}$hard_links" >&6; }
21587 if test "$hard_links" = no; then
21588 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21589 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21596 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21600 allow_undefined_flag_F77=
21601 enable_shared_with_static_runtimes_F77=no
21603 archive_expsym_cmds_F77=
21604 old_archive_From_new_cmds_F77=
21605 old_archive_from_expsyms_cmds_F77=
21606 export_dynamic_flag_spec_F77=
21607 whole_archive_flag_spec_F77=
21608 thread_safe_flag_spec_F77=
21609 hardcode_libdir_flag_spec_F77=
21610 hardcode_libdir_flag_spec_ld_F77=
21611 hardcode_libdir_separator_F77=
21612 hardcode_direct_F77=no
21613 hardcode_minus_L_F77=no
21614 hardcode_shlibpath_var_F77=unsupported
21615 link_all_deplibs_F77=unknown
21616 hardcode_automatic_F77=no
21618 module_expsym_cmds_F77=
21619 always_export_symbols_F77=no
21620 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21621 # include_expsyms should be a list of space-separated symbols to be *always*
21622 # included in the symbol list
21623 include_expsyms_F77=
21624 # exclude_expsyms can be an extended regexp of symbols to exclude
21625 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21626 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21627 # as well as any symbol that contains `d'.
21628 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21629 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21630 # platforms (ab)use it in PIC code, but their linkers get confused if
21631 # the symbol is explicitly referenced. Since portable code cannot
21632 # rely on this symbol name, it's probably fine to never include it in
21633 # preloaded symbol tables.
21634 extract_expsyms_cmds=
21635 # Just being paranoid about ensuring that cc_basename is set.
21636 for cc_temp in $compiler""; do
21638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21647 cygwin* | mingw* | pw32*)
21648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21649 # When not using gcc, we currently assume that we are using
21650 # Microsoft Visual C++.
21651 if test "$GCC" != yes; then
21656 # we just hope/assume this is gcc and not c89 (= MSVC++)
21665 if test "$with_gnu_ld" = yes; then
21666 # If archive_cmds runs LD, not CC, wlarc should be empty
21669 # Set some defaults for GNU ld with shared library support. These
21670 # are reset later if shared libraries are not supported. Putting them
21671 # here allows them to be overridden if necessary.
21672 runpath_var=LD_RUN_PATH
21673 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21674 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21675 # ancient GNU ld didn't support --whole-archive et. al.
21676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21677 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21679 whole_archive_flag_spec_F77=
21681 supports_anon_versioning=no
21682 case `$LD -v 2>/dev/null` in
21683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21686 *\ 2.11.*) ;; # other 2.11 versions
21687 *) supports_anon_versioning=yes ;;
21690 # See if GNU ld supports shared libraries.
21692 aix3* | aix4* | aix5*)
21693 # On AIX/PPC, the GNU linker is very broken
21694 if test "$host_cpu" != ia64; then
21698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21699 *** to be unable to reliably create shared libraries on AIX.
21700 *** Therefore, libtool is disabling shared libraries support. If you
21701 *** really care for shared libraries, you may want to modify your PATH
21702 *** so that a non-GNU linker is found, and then restart.
21709 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)'
21710 hardcode_libdir_flag_spec_F77='-L$libdir'
21711 hardcode_minus_L_F77=yes
21713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21714 # that the semantics of dynamic libraries on AmigaOS, at least up
21715 # to version 4, is to share data among multiple programs linked
21716 # with the same dynamic library. Since this doesn't match the
21717 # behavior of shared libraries on other platforms, we can't use
21723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21724 allow_undefined_flag_F77=unsupported
21725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21726 # support --undefined. This deserves some investigation. FIXME
21727 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21733 cygwin* | mingw* | pw32*)
21734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21735 # as there is no search path for DLLs.
21736 hardcode_libdir_flag_spec_F77='-L$libdir'
21737 allow_undefined_flag_F77=unsupported
21738 always_export_symbols_F77=no
21739 enable_shared_with_static_runtimes_F77=yes
21740 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21744 # If the export-symbols file already is a .def file (1st line
21745 # is EXPORTS), use it as is; otherwise, prepend...
21746 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21747 cp $export_symbols $output_objdir/$soname.def;
21749 echo EXPORTS > $output_objdir/$soname.def;
21750 cat $export_symbols >> $output_objdir/$soname.def;
21752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21759 hardcode_direct_F77=no
21760 hardcode_shlibpath_var_F77=no
21761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21762 export_dynamic_flag_spec_F77='${wl}-E'
21763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21764 # Instead, shared libraries are loaded at an image base (0x10000000 by
21765 # default) and relocated if they conflict, which is a slow very memory
21766 # consuming and fragmenting process. To avoid this, we pick a random,
21767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21769 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'
21770 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'
21774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21776 case $cc_basename,$host_cpu in
21777 pgcc*) # Portland Group C compiler
21778 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'
21779 tmp_addflag=' $pic_flag'
21781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21782 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'
21783 tmp_addflag=' $pic_flag -Mnomain' ;;
21784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21785 tmp_addflag=' -i_dynamic' ;;
21786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21787 tmp_addflag=' -i_dynamic -nofor_main' ;;
21788 ifc* | ifort*) # Intel Fortran compiler
21789 tmp_addflag=' -nofor_main' ;;
21791 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21793 if test $supports_anon_versioning = yes; then
21794 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21796 $echo "local: *; };" >> $output_objdir/$libname.ver~
21797 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21806 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21809 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21810 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21815 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21819 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21820 *** create shared libraries on Solaris systems. Therefore, libtool
21821 *** is disabling shared libraries support. We urge you to upgrade GNU
21822 *** binutils to release 2.9.1 or newer. Another option is to modify
21823 *** your PATH or compiler configuration so that the native linker is
21824 *** used, and then restart.
21827 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21836 case `$LD -v 2>&1` in
21837 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21841 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21842 *** reliably create shared libraries on SCO systems. Therefore, libtool
21843 *** is disabling shared libraries support. We urge you to upgrade GNU
21844 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21845 *** your PATH or compiler configuration so that the native linker is
21846 *** used, and then restart.
21851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21853 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21854 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21863 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21865 hardcode_direct_F77=yes
21866 hardcode_shlibpath_var_F77=no
21870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21879 if test "$ld_shlibs_F77" = no; then
21881 hardcode_libdir_flag_spec_F77=
21882 export_dynamic_flag_spec_F77=
21883 whole_archive_flag_spec_F77=
21886 # PORTME fill in a description of your system's linker (not GNU ld)
21889 allow_undefined_flag_F77=unsupported
21890 always_export_symbols_F77=yes
21891 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'
21892 # Note: this linker hardcodes the directories in LIBPATH if there
21893 # are no directories specified by -L.
21894 hardcode_minus_L_F77=yes
21895 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21896 # Neither direct hardcoding nor static linking is supported with a
21898 hardcode_direct_F77=unsupported
21903 if test "$host_cpu" = ia64; then
21904 # On IA64, the linker does run time linking by default, so we don't
21905 # have to do anything special.
21906 aix_use_runtimelinking=no
21907 exp_sym_flag='-Bexport'
21910 # If we're using GNU nm, then we don't want the "-C" option.
21911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21912 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21913 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'
21915 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'
21917 aix_use_runtimelinking=no
21919 # Test if we are trying to use run time linking or normal
21920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21921 # need to do runtime linking.
21922 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21923 for ld_flag in $LDFLAGS; do
21924 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21925 aix_use_runtimelinking=yes
21932 exp_sym_flag='-bexport'
21933 no_entry_flag='-bnoentry'
21936 # When large executables or shared objects are built, AIX ld can
21937 # have problems creating the table of contents. If linking a library
21938 # or program results in "error TOC overflow" add -mminimal-toc to
21939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21942 archive_cmds_F77=''
21943 hardcode_direct_F77=yes
21944 hardcode_libdir_separator_F77=':'
21945 link_all_deplibs_F77=yes
21947 if test "$GCC" = yes; then
21948 case $host_os in aix4.[012]|aix4.[012].*)
21949 # We only want to do this on AIX 4.2 and lower, the check
21950 # below for broken collect2 doesn't work under 4.3+
21951 collect2name=`${CC} -print-prog-name=collect2`
21952 if test -f "$collect2name" && \
21953 strings "$collect2name" | grep resolve_lib_name >/dev/null
21955 # We have reworked collect2
21956 hardcode_direct_F77=yes
21958 # We have old collect2
21959 hardcode_direct_F77=unsupported
21960 # It fails to find uninstalled libraries when the uninstalled
21961 # path is not listed in the libpath. Setting hardcode_minus_L
21962 # to unsupported forces relinking
21963 hardcode_minus_L_F77=yes
21964 hardcode_libdir_flag_spec_F77='-L$libdir'
21965 hardcode_libdir_separator_F77=
21969 shared_flag='-shared'
21970 if test "$aix_use_runtimelinking" = yes; then
21971 shared_flag="$shared_flag "'${wl}-G'
21975 if test "$host_cpu" = ia64; then
21976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21977 # chokes on -Wl,-G. The following line is correct:
21980 if test "$aix_use_runtimelinking" = yes; then
21981 shared_flag='${wl}-G'
21983 shared_flag='${wl}-bM:SRE'
21988 # It seems that -bexpall does not export symbols beginning with
21989 # underscore (_), so it is better to generate a list of symbols to export.
21990 always_export_symbols_F77=yes
21991 if test "$aix_use_runtimelinking" = yes; then
21992 # Warning - without using the other runtime loading flags (-brtl),
21993 # -berok will link without error, but may produce a broken library.
21994 allow_undefined_flag_F77='-berok'
21995 # Determine the default libpath from the value encoded in an empty executable.
21996 cat >conftest.$ac_ext <<_ACEOF
22001 rm -f conftest.$ac_objext conftest$ac_exeext
22002 if { (ac_try="$ac_link"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_link") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22038 # Check for a 64-bit object if we didn't find anything.
22039 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; }
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22053 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"
22055 if test "$host_cpu" = ia64; then
22056 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22057 allow_undefined_flag_F77="-z nodefs"
22058 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"
22060 # Determine the default libpath from the value encoded in an empty executable.
22061 cat >conftest.$ac_ext <<_ACEOF
22066 rm -f conftest.$ac_objext conftest$ac_exeext
22067 if { (ac_try="$ac_link"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_link") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22081 { (case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_try") 2>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest$ac_exeext'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22103 # Check for a 64-bit object if we didn't find anything.
22104 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; }
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22113 rm -f core conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
22115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22117 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22118 # Warning - without using the other run time loading flags,
22119 # -berok will link without error, but may produce a broken library.
22120 no_undefined_flag_F77=' ${wl}-bernotok'
22121 allow_undefined_flag_F77=' ${wl}-berok'
22122 # Exported symbols can be pulled into shared objects from archives
22123 whole_archive_flag_spec_F77='$convenience'
22124 archive_cmds_need_lc_F77=yes
22125 # This is similar to how AIX traditionally builds its shared libraries.
22126 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'
22132 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)'
22133 hardcode_libdir_flag_spec_F77='-L$libdir'
22134 hardcode_minus_L_F77=yes
22135 # see comment about different semantics on the GNU ld section
22140 export_dynamic_flag_spec_F77=-rdynamic
22143 cygwin* | mingw* | pw32*)
22144 # When not using gcc, we currently assume that we are using
22145 # Microsoft Visual C++.
22146 # hardcode_libdir_flag_spec is actually meaningless, as there is
22147 # no search path for DLLs.
22148 hardcode_libdir_flag_spec_F77=' '
22149 allow_undefined_flag_F77=unsupported
22150 # Tell ltmain to make .lib files, not .a files.
22152 # Tell ltmain to make .dll files, not .so files.
22154 # FIXME: Setting linknames here is a bad hack.
22155 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22156 # The linker will automatically build a .lib file if we build a DLL.
22157 old_archive_From_new_cmds_F77='true'
22158 # FIXME: Should let the user specify the lib program.
22159 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22160 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22161 enable_shared_with_static_runtimes_F77=yes
22164 darwin* | rhapsody*)
22166 rhapsody* | darwin1.[012])
22167 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22171 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22173 case ${MACOSX_DEPLOYMENT_TARGET} in
22175 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22178 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22184 archive_cmds_need_lc_F77=no
22185 hardcode_direct_F77=no
22186 hardcode_automatic_F77=yes
22187 hardcode_shlibpath_var_F77=unsupported
22188 whole_archive_flag_spec_F77=''
22189 link_all_deplibs_F77=yes
22190 if test "$GCC" = yes ; then
22191 output_verbose_link_cmd='echo'
22192 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22193 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22195 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}'
22196 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}'
22198 case $cc_basename in
22200 output_verbose_link_cmd='echo'
22201 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22202 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22204 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}'
22205 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}'
22215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22216 hardcode_libdir_flag_spec_F77='-L$libdir'
22217 hardcode_shlibpath_var_F77=no
22224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22225 # support. Future versions do this automatically, but an explicit c++rt0.o
22226 # does not break anything, and helps significantly (at the cost of a little
22229 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22230 hardcode_libdir_flag_spec_F77='-R$libdir'
22231 hardcode_direct_F77=yes
22232 hardcode_shlibpath_var_F77=no
22235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22237 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_direct_F77=yes
22239 hardcode_minus_L_F77=yes
22240 hardcode_shlibpath_var_F77=no
22243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22244 freebsd* | kfreebsd*-gnu | dragonfly*)
22245 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22246 hardcode_libdir_flag_spec_F77='-R$libdir'
22247 hardcode_direct_F77=yes
22248 hardcode_shlibpath_var_F77=no
22252 if test "$GCC" = yes; then
22253 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'
22255 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'
22257 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22258 hardcode_libdir_separator_F77=:
22259 hardcode_direct_F77=yes
22261 # hardcode_minus_L: Not really in the search PATH,
22262 # but as the default location of the library.
22263 hardcode_minus_L_F77=yes
22264 export_dynamic_flag_spec_F77='${wl}-E'
22268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22269 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22271 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22273 if test "$with_gnu_ld" = no; then
22274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275 hardcode_libdir_separator_F77=:
22277 hardcode_direct_F77=yes
22278 export_dynamic_flag_spec_F77='${wl}-E'
22280 # hardcode_minus_L: Not really in the search PATH,
22281 # but as the default location of the library.
22282 hardcode_minus_L_F77=yes
22287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22290 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22302 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22305 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22308 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22312 if test "$with_gnu_ld" = no; then
22313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22314 hardcode_libdir_separator_F77=:
22318 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22319 hardcode_direct_F77=no
22320 hardcode_shlibpath_var_F77=no
22323 hardcode_direct_F77=yes
22324 export_dynamic_flag_spec_F77='${wl}-E'
22326 # hardcode_minus_L: Not really in the search PATH,
22327 # but as the default location of the library.
22328 hardcode_minus_L_F77=yes
22334 irix5* | irix6* | nonstopux*)
22335 if test "$GCC" = yes; then
22336 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'
22338 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'
22339 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22341 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22342 hardcode_libdir_separator_F77=:
22343 link_all_deplibs_F77=yes
22347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22348 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22350 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22352 hardcode_libdir_flag_spec_F77='-R$libdir'
22353 hardcode_direct_F77=yes
22354 hardcode_shlibpath_var_F77=no
22358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359 hardcode_direct_F77=yes
22360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361 hardcode_libdir_separator_F77=:
22362 hardcode_shlibpath_var_F77=no
22366 hardcode_direct_F77=yes
22367 hardcode_shlibpath_var_F77=no
22368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22369 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22370 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22372 export_dynamic_flag_spec_F77='${wl}-E'
22375 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22377 hardcode_libdir_flag_spec_F77='-R$libdir'
22380 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22381 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22388 hardcode_libdir_flag_spec_F77='-L$libdir'
22389 hardcode_minus_L_F77=yes
22390 allow_undefined_flag_F77=unsupported
22391 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'
22392 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22396 if test "$GCC" = yes; then
22397 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22398 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'
22400 allow_undefined_flag_F77=' -expect_unresolved \*'
22401 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'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404 hardcode_libdir_separator_F77=:
22407 osf4* | osf5*) # as osf3* with the addition of -msym flag
22408 if test "$GCC" = yes; then
22409 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22410 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'
22411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22413 allow_undefined_flag_F77=' -expect_unresolved \*'
22414 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'
22415 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~
22416 $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'
22418 # Both c and cxx compiler support -rpath directly
22419 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22421 hardcode_libdir_separator_F77=:
22425 no_undefined_flag_F77=' -z text'
22426 if test "$GCC" = yes; then
22428 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22433 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22437 hardcode_libdir_flag_spec_F77='-R$libdir'
22438 hardcode_shlibpath_var_F77=no
22440 solaris2.[0-5] | solaris2.[0-5].*) ;;
22442 # The compiler driver will combine linker options so we
22443 # cannot just pass the convience library names through
22444 # without $wl, iff we do not link with $LD.
22445 # Luckily, gcc supports the same syntax we need for Sun Studio.
22446 # Supported since Solaris 2.6 (maybe 2.5.1?)
22449 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22451 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' ;;
22454 link_all_deplibs_F77=yes
22458 if test "x$host_vendor" = xsequent; then
22459 # Use $CC to link under sequent, because it throws in some extra .o
22460 # files that make .init and .fini sections work.
22461 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22465 hardcode_libdir_flag_spec_F77='-L$libdir'
22466 hardcode_direct_F77=yes
22467 hardcode_minus_L_F77=yes
22468 hardcode_shlibpath_var_F77=no
22472 case $host_vendor in
22474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22475 hardcode_direct_F77=yes # is this really true???
22478 ## LD is ld it makes a PLAMLIB
22479 ## CC just makes a GrossModule.
22480 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22481 reload_cmds_F77='$CC -r -o $output$reload_objs'
22482 hardcode_direct_F77=no
22485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22489 runpath_var='LD_RUN_PATH'
22490 hardcode_shlibpath_var_F77=no
22494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22495 hardcode_shlibpath_var_F77=no
22496 export_dynamic_flag_spec_F77='-Bexport'
22500 if test -d /usr/nec; then
22501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502 hardcode_shlibpath_var_F77=no
22503 runpath_var=LD_RUN_PATH
22504 hardcode_runpath_var=yes
22509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22510 no_undefined_flag_F77='${wl}-z,text'
22511 archive_cmds_need_lc_F77=no
22512 hardcode_shlibpath_var_F77=no
22513 runpath_var='LD_RUN_PATH'
22515 if test "$GCC" = yes; then
22516 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22517 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22519 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22520 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22524 sysv5* | sco3.2v5* | sco5v6*)
22525 # Note: We can NOT use -z defs as we might desire, because we do not
22526 # link with -lc, and that would cause any symbols used from libc to
22527 # always be unresolved, which means just about no library would
22528 # ever link correctly. If we're not using GNU ld we use -z text
22529 # though, which does catch some bad symbols but isn't as heavy-handed
22531 no_undefined_flag_F77='${wl}-z,text'
22532 allow_undefined_flag_F77='${wl}-z,nodefs'
22533 archive_cmds_need_lc_F77=no
22534 hardcode_shlibpath_var_F77=no
22535 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22536 hardcode_libdir_separator_F77=':'
22537 link_all_deplibs_F77=yes
22538 export_dynamic_flag_spec_F77='${wl}-Bexport'
22539 runpath_var='LD_RUN_PATH'
22541 if test "$GCC" = yes; then
22542 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22545 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22546 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22552 hardcode_libdir_flag_spec_F77='-L$libdir'
22553 hardcode_shlibpath_var_F77=no
22562 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22563 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22564 test "$ld_shlibs_F77" = no && can_build_shared=no
22567 # Do we need to explicitly link libc?
22569 case "x$archive_cmds_need_lc_F77" in
22571 # Assume -lc should be added
22572 archive_cmds_need_lc_F77=yes
22574 if test "$enable_shared" = yes && test "$GCC" = yes; then
22575 case $archive_cmds_F77 in
22577 # FIXME: we may have to deal with multi-command sequences.
22580 # Test whether the compiler implicitly links with -lc since on some
22581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22582 # to ld, don't add -lc before -lgcc.
22583 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22584 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22589 (eval $ac_compile) 2>&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } 2>conftest.err; then
22595 libobjs=conftest.$ac_objext
22597 wl=$lt_prog_compiler_wl_F77
22598 pic_flag=$lt_prog_compiler_pic_F77
22604 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22605 allow_undefined_flag_F77=
22606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22607 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }
22612 archive_cmds_need_lc_F77=no
22614 archive_cmds_need_lc_F77=yes
22616 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22618 cat conftest.err 1>&5
22621 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22622 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22629 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22631 library_names_spec=
22632 libname_spec='lib$name'
22636 postuninstall_cmds=
22640 shlibpath_overrides_runpath=unknown
22642 dynamic_linker="$host_os ld.so"
22643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22644 if test "$GCC" = yes; then
22645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22647 # if the path contains ";" then we assume it to be the separator
22648 # otherwise default to the standard path separator (i.e. ":") - it is
22649 # assumed that no part of a normal pathname contains ";" but that should
22650 # okay in the real world where ";" in dirpaths is itself problematic.
22651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22658 need_lib_prefix=unknown
22659 hardcode_into_libs=no
22661 # when you set need_version to no, make sure it does not cause -set_version
22662 # flags to be left without arguments
22663 need_version=unknown
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22669 shlibpath_var=LIBPATH
22671 # AIX 3 has no versioning support, so we append a major version to the name.
22672 soname_spec='${libname}${release}${shared_ext}$major'
22679 hardcode_into_libs=yes
22680 if test "$host_cpu" = ia64; then
22681 # AIX 5 supports IA64
22682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22683 shlibpath_var=LD_LIBRARY_PATH
22685 # With GCC up to 2.95.x, collect2 would create an import file
22686 # for dependence libraries. The import file would start with
22687 # the line `#! .'. This would cause the generated library to
22688 # depend on `.', always an invalid library. This was fixed in
22689 # development snapshots of GCC prior to 3.0.
22691 aix4 | aix4.[01] | aix4.[01].*)
22692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22697 can_build_shared=no
22701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22702 # soname into executable. Probably we can add versioning support to
22703 # collect2, so additional links can be useful in future.
22704 if test "$aix_use_runtimelinking" = yes; then
22705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22706 # instead of lib<name>.a to let people know that these are not
22707 # typical AIX shared libraries.
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710 # We preserve .a as extension for shared libraries through AIX4.2
22711 # and later when we are not doing run time linking.
22712 library_names_spec='${libname}${release}.a $libname.a'
22713 soname_spec='${libname}${release}${shared_ext}$major'
22715 shlibpath_var=LIBPATH
22720 library_names_spec='$libname.ixlibrary $libname.a'
22721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22722 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'
22726 library_names_spec='${libname}${shared_ext}'
22727 dynamic_linker="$host_os ld.so"
22728 shlibpath_var=LIBRARY_PATH
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22740 # the default ld.so.conf also contains /usr/contrib/lib and
22741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22742 # libtool to hard-code these into programs
22745 cygwin* | mingw* | pw32*)
22746 version_type=windows
22751 case $GCC,$host_os in
22752 yes,cygwin* | yes,mingw* | yes,pw32*)
22753 library_names_spec='$libname.dll.a'
22754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22755 postinstall_cmds='base_file=`basename \${file}`~
22756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22757 dldir=$destdir/`dirname \$dlpath`~
22758 test -d \$dldir || mkdir -p \$dldir~
22759 $install_prog $dir/$dlname \$dldir/$dlname~
22760 chmod a+x \$dldir/$dlname'
22761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22762 dlpath=$dir/\$dldll~
22764 shlibpath_overrides_runpath=yes
22768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22773 # MinGW DLLs use traditional 'lib' prefix
22774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22777 # It is most probably a Windows format PATH printed by
22778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22779 # path with ; separators, and with drive letters. We can handle the
22780 # drive letters (cygwin fileutils understands them), so leave them,
22781 # especially as we might pass files found there to a mingw objdump,
22782 # which wouldn't understand a cygwinified path. Ahh.
22783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22789 # pw32 DLLs use 'pw' prefix rather than 'lib'
22790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22799 dynamic_linker='Win32 ld.exe'
22800 # FIXME: first we should search . and the directory the executable is in
22804 darwin* | rhapsody*)
22805 dynamic_linker="$host_os dyld"
22806 version_type=darwin
22809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22810 soname_spec='${libname}${release}${major}$shared_ext'
22811 shlibpath_overrides_runpath=yes
22812 shlibpath_var=DYLD_LIBRARY_PATH
22813 shrext_cmds='.dylib'
22814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22815 if test "$GCC" = yes; then
22816 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"`
22818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22828 soname_spec='${libname}${release}${shared_ext}$major'
22829 shlibpath_var=LD_LIBRARY_PATH
22840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22841 soname_spec='${libname}${release}${shared_ext}$major'
22842 shlibpath_var=LD_LIBRARY_PATH
22843 shlibpath_overrides_runpath=no
22844 hardcode_into_libs=yes
22845 dynamic_linker='GNU ld.so'
22848 freebsd* | dragonfly*)
22849 # DragonFly does not have aout. When/if they implement a new
22850 # versioning mechanism, adjust this.
22851 if test -x /usr/bin/objformat; then
22852 objformat=`/usr/bin/objformat`
22855 freebsd[123]*) objformat=aout ;;
22856 *) objformat=elf ;;
22859 version_type=freebsd-$objformat
22860 case $version_type in
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22871 shlibpath_var=LD_LIBRARY_PATH
22874 shlibpath_overrides_runpath=yes
22876 freebsd3.[01]* | freebsdelf3.[01]*)
22877 shlibpath_overrides_runpath=yes
22878 hardcode_into_libs=yes
22880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22882 shlibpath_overrides_runpath=no
22883 hardcode_into_libs=yes
22885 freebsd*) # from 4.6 on
22886 shlibpath_overrides_runpath=yes
22887 hardcode_into_libs=yes
22896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22897 soname_spec='${libname}${release}${shared_ext}$major'
22898 shlibpath_var=LD_LIBRARY_PATH
22899 hardcode_into_libs=yes
22902 hpux9* | hpux10* | hpux11*)
22903 # Give a soname corresponding to the major version so that dld.sl refuses to
22904 # link against other versions.
22911 hardcode_into_libs=yes
22912 dynamic_linker="$host_os dld.so"
22913 shlibpath_var=LD_LIBRARY_PATH
22914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 if test "X$HPUX_IA64_MODE" = X32; then
22918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22926 hardcode_into_libs=yes
22927 dynamic_linker="$host_os dld.sl"
22928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931 soname_spec='${libname}${release}${shared_ext}$major'
22932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22937 dynamic_linker="$host_os dld.sl"
22938 shlibpath_var=SHLIB_PATH
22939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 soname_spec='${libname}${release}${shared_ext}$major'
22944 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22945 postinstall_cmds='chmod 555 $lib'
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=no
22957 hardcode_into_libs=yes
22960 irix5* | irix6* | nonstopux*)
22962 nonstopux*) version_type=nonstopux ;;
22964 if test "$lt_cv_prog_gnu_ld" = yes; then
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22975 irix5* | nonstopux*)
22976 libsuff= shlibsuff=
22979 case $LD in # libtool.m4 will add one of these switches to LD
22980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22981 libsuff= shlibsuff= libmagic=32-bit;;
22982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22983 libsuff=32 shlibsuff=N32 libmagic=N32;;
22984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22986 *) libsuff= shlibsuff= libmagic=never-match;;
22990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22991 shlibpath_overrides_runpath=no
22992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22994 hardcode_into_libs=yes
22997 # No shared lib support for Linux oldld, aout, or coff.
22998 linux*oldld* | linux*aout* | linux*coff*)
23002 # This must be Linux ELF.
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=no
23012 # This implies no fast_install, which is unacceptable.
23013 # Some rework will be needed to allow for fast_install
23014 # before this can be enabled.
23015 hardcode_into_libs=yes
23017 # Append ld.so.conf contents to the search path
23018 if test -f /etc/ld.so.conf; then
23019 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' ' '`
23020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23023 # We used to test for /lib/ld.so.1 and disable shared libraries on
23024 # powerpc, because MkLinux only supported shared libraries with the
23025 # GNU dynamic linker. Since this was broken with cross compilers,
23026 # most powerpc-linux boxes support dynamic linking these days and
23027 # people can always --disable-shared, the test was removed, and we
23028 # assume the GNU/Linux dynamic linker is in use.
23029 dynamic_linker='GNU/Linux ld.so'
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23037 soname_spec='${libname}${release}${shared_ext}$major'
23038 shlibpath_var=LD_LIBRARY_PATH
23039 shlibpath_overrides_runpath=no
23040 hardcode_into_libs=yes
23041 dynamic_linker='GNU ld.so'
23048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051 dynamic_linker='NetBSD (a.out) ld.so'
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23054 soname_spec='${libname}${release}${shared_ext}$major'
23055 dynamic_linker='NetBSD ld.elf_so'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 shlibpath_overrides_runpath=yes
23059 hardcode_into_libs=yes
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=yes
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=yes
23081 sys_lib_dlsearch_path_spec="/usr/lib"
23083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23086 *) need_version=no ;;
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23090 shlibpath_var=LD_LIBRARY_PATH
23091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23093 openbsd2.[89] | openbsd2.[89].*)
23094 shlibpath_overrides_runpath=no
23097 shlibpath_overrides_runpath=yes
23101 shlibpath_overrides_runpath=yes
23106 libname_spec='$name'
23109 library_names_spec='$libname${shared_ext} $libname.a'
23110 dynamic_linker='OS/2 ld.exe'
23111 shlibpath_var=LIBPATH
23114 osf3* | osf4* | osf5*)
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 shlibpath_var=LD_LIBRARY_PATH
23121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130 soname_spec='${libname}${release}${shared_ext}$major'
23131 shlibpath_var=LD_LIBRARY_PATH
23132 shlibpath_overrides_runpath=yes
23133 hardcode_into_libs=yes
23134 # ldd complains unless libraries are executable
23135 postinstall_cmds='chmod +x $lib'
23140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 shlibpath_overrides_runpath=yes
23144 if test "$with_gnu_ld" = yes; then
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23153 soname_spec='${libname}${release}${shared_ext}$major'
23154 shlibpath_var=LD_LIBRARY_PATH
23155 case $host_vendor in
23157 shlibpath_overrides_runpath=no
23159 export_dynamic_flag_spec='${wl}-Blargedynsym'
23160 runpath_var=LD_RUN_PATH
23168 shlibpath_overrides_runpath=no
23169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23175 if test -d /usr/nec ;then
23177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23178 soname_spec='$libname${shared_ext}.$major'
23179 shlibpath_var=LD_LIBRARY_PATH
23183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23184 version_type=freebsd-elf
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23188 soname_spec='${libname}${release}${shared_ext}$major'
23189 shlibpath_var=LD_LIBRARY_PATH
23190 hardcode_into_libs=yes
23191 if test "$with_gnu_ld" = yes; then
23192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23193 shlibpath_overrides_runpath=no
23195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23196 shlibpath_overrides_runpath=yes
23199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23203 sys_lib_dlsearch_path_spec='/usr/lib'
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23218 echo "${ECHO_T}$dynamic_linker" >&6; }
23219 test "$dynamic_linker" = no && can_build_shared=no
23221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23222 if test "$GCC" = yes; then
23223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23226 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23227 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23228 hardcode_action_F77=
23229 if test -n "$hardcode_libdir_flag_spec_F77" || \
23230 test -n "$runpath_var_F77" || \
23231 test "X$hardcode_automatic_F77" = "Xyes" ; then
23233 # We can hardcode non-existant directories.
23234 if test "$hardcode_direct_F77" != no &&
23235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23236 # have to relink, otherwise we might link with an installed library
23237 # when we should be linking with a yet-to-be-installed one
23238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23239 test "$hardcode_minus_L_F77" != no; then
23240 # Linking always hardcodes the temporary library directory.
23241 hardcode_action_F77=relink
23243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23244 hardcode_action_F77=immediate
23247 # We cannot hardcode anything, or else we can only hardcode existing
23249 hardcode_action_F77=unsupported
23251 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23252 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23254 if test "$hardcode_action_F77" = relink; then
23255 # Fast installation is not supported
23256 enable_fast_install=no
23257 elif test "$shlibpath_overrides_runpath" = yes ||
23258 test "$enable_shared" = no; then
23259 # Fast installation is not necessary
23260 enable_fast_install=needless
23264 # The else clause should only fire when bootstrapping the
23265 # libtool distribution, otherwise you forgot to ship ltmain.sh
23266 # with your package, and you will get complaints that there are
23267 # no rules to generate ltmain.sh.
23268 if test -f "$ltmain"; then
23269 # See if we are running on zsh, and set the options which allow our commands through
23270 # without removal of \ escapes.
23271 if test -n "${ZSH_VERSION+set}" ; then
23272 setopt NO_GLOB_SUBST
23274 # Now quote all the things that may contain metacharacters while being
23275 # careful not to overquote the AC_SUBSTed values. We take copies of the
23276 # variables and quote the copies for generation of the libtool script.
23277 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23281 deplibs_check_method reload_flag reload_cmds need_locks \
23282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23283 lt_cv_sys_global_symbol_to_c_name_address \
23284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23285 old_postinstall_cmds old_postuninstall_cmds \
23289 lt_prog_compiler_wl_F77 \
23290 lt_prog_compiler_pic_F77 \
23291 lt_prog_compiler_static_F77 \
23292 lt_prog_compiler_no_builtin_flag_F77 \
23293 export_dynamic_flag_spec_F77 \
23294 thread_safe_flag_spec_F77 \
23295 whole_archive_flag_spec_F77 \
23296 enable_shared_with_static_runtimes_F77 \
23297 old_archive_cmds_F77 \
23298 old_archive_from_new_cmds_F77 \
23299 predep_objects_F77 \
23300 postdep_objects_F77 \
23303 compiler_lib_search_path_F77 \
23305 archive_expsym_cmds_F77 \
23306 postinstall_cmds_F77 \
23307 postuninstall_cmds_F77 \
23308 old_archive_from_expsyms_cmds_F77 \
23309 allow_undefined_flag_F77 \
23310 no_undefined_flag_F77 \
23311 export_symbols_cmds_F77 \
23312 hardcode_libdir_flag_spec_F77 \
23313 hardcode_libdir_flag_spec_ld_F77 \
23314 hardcode_libdir_separator_F77 \
23315 hardcode_automatic_F77 \
23317 module_expsym_cmds_F77 \
23318 lt_cv_prog_compiler_c_o_F77 \
23319 exclude_expsyms_F77 \
23320 include_expsyms_F77; do
23323 old_archive_cmds_F77 | \
23324 old_archive_from_new_cmds_F77 | \
23325 archive_cmds_F77 | \
23326 archive_expsym_cmds_F77 | \
23327 module_cmds_F77 | \
23328 module_expsym_cmds_F77 | \
23329 old_archive_from_expsyms_cmds_F77 | \
23330 export_symbols_cmds_F77 | \
23331 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23332 postinstall_cmds | postuninstall_cmds | \
23333 old_postinstall_cmds | old_postuninstall_cmds | \
23334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23335 # Double-quote double-evaled strings.
23336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23345 *'\$0 --fallback-echo"')
23346 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23352 cat <<__EOF__ >> "$cfgfile"
23353 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23355 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23357 # Shell to use when invoking shell scripts.
23360 # Whether or not to build shared libraries.
23361 build_libtool_libs=$enable_shared
23363 # Whether or not to build static libraries.
23364 build_old_libs=$enable_static
23366 # Whether or not to add -lc for building shared libraries.
23367 build_libtool_need_lc=$archive_cmds_need_lc_F77
23369 # Whether or not to disallow shared libs when runtime libs are static
23370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23372 # Whether or not to optimize for fast installation.
23373 fast_install=$enable_fast_install
23376 host_alias=$host_alias
23380 # The build system.
23381 build_alias=$build_alias
23385 # An echo program that does not interpret backslashes.
23390 AR_FLAGS=$lt_AR_FLAGS
23395 # LTCC compiler flags.
23396 LTCFLAGS=$lt_LTCFLAGS
23398 # A language-specific compiler.
23399 CC=$lt_compiler_F77
23401 # Is the compiler the GNU C compiler?
23407 # The linker used to build libraries.
23410 # Whether we need hard or soft links.
23413 # A BSD-compatible nm program.
23416 # A symbol stripping program
23419 # Used to examine libraries when file_magic_cmd begins "file"
23420 MAGIC_CMD=$MAGIC_CMD
23422 # Used on cygwin: DLL creation program.
23425 # Used on cygwin: object dumper.
23428 # Used on cygwin: assembler.
23431 # The name of the directory that contains temporary libtool files.
23434 # How to create reloadable object files.
23435 reload_flag=$lt_reload_flag
23436 reload_cmds=$lt_reload_cmds
23438 # How to pass a linker flag through the compiler.
23439 wl=$lt_lt_prog_compiler_wl_F77
23441 # Object file suffix (normally "o").
23442 objext="$ac_objext"
23444 # Old archive suffix (normally "a").
23447 # Shared library suffix (normally ".so").
23448 shrext_cmds='$shrext_cmds'
23450 # Executable file suffix (normally "").
23453 # Additional compiler flags for building library objects.
23454 pic_flag=$lt_lt_prog_compiler_pic_F77
23457 # What is the maximum length of a command?
23458 max_cmd_len=$lt_cv_sys_max_cmd_len
23460 # Does compiler simultaneously support -c and -o options?
23461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23463 # Must we lock files when doing compilation?
23464 need_locks=$lt_need_locks
23466 # Do we need the lib prefix for modules?
23467 need_lib_prefix=$need_lib_prefix
23469 # Do we need a version for libraries?
23470 need_version=$need_version
23472 # Whether dlopen is supported.
23473 dlopen_support=$enable_dlopen
23475 # Whether dlopen of programs is supported.
23476 dlopen_self=$enable_dlopen_self
23478 # Whether dlopen of statically linked programs is supported.
23479 dlopen_self_static=$enable_dlopen_self_static
23481 # Compiler flag to prevent dynamic linking.
23482 link_static_flag=$lt_lt_prog_compiler_static_F77
23484 # Compiler flag to turn off builtin functions.
23485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23487 # Compiler flag to allow reflexive dlopens.
23488 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23490 # Compiler flag to generate shared objects directly from archives.
23491 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23493 # Compiler flag to generate thread-safe objects.
23494 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23496 # Library versioning type.
23497 version_type=$version_type
23499 # Format of library name prefix.
23500 libname_spec=$lt_libname_spec
23502 # List of archive names. First name is the real one, the rest are links.
23503 # The last name is the one that the linker finds with -lNAME.
23504 library_names_spec=$lt_library_names_spec
23506 # The coded name of the library, if different from the real name.
23507 soname_spec=$lt_soname_spec
23509 # Commands used to build and install an old-style archive.
23511 old_archive_cmds=$lt_old_archive_cmds_F77
23512 old_postinstall_cmds=$lt_old_postinstall_cmds
23513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23515 # Create an old-style archive from a shared archive.
23516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23518 # Create a temporary old-style archive to link instead of a shared archive.
23519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23521 # Commands used to build and install a shared archive.
23522 archive_cmds=$lt_archive_cmds_F77
23523 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23524 postinstall_cmds=$lt_postinstall_cmds
23525 postuninstall_cmds=$lt_postuninstall_cmds
23527 # Commands used to build a loadable module (assumed same as above if empty)
23528 module_cmds=$lt_module_cmds_F77
23529 module_expsym_cmds=$lt_module_expsym_cmds_F77
23531 # Commands to strip libraries.
23532 old_striplib=$lt_old_striplib
23533 striplib=$lt_striplib
23535 # Dependencies to place before the objects being linked to create a
23537 predep_objects=$lt_predep_objects_F77
23539 # Dependencies to place after the objects being linked to create a
23541 postdep_objects=$lt_postdep_objects_F77
23543 # Dependencies to place before the objects being linked to create a
23545 predeps=$lt_predeps_F77
23547 # Dependencies to place after the objects being linked to create a
23549 postdeps=$lt_postdeps_F77
23551 # The library search path used internally by the compiler when linking
23552 # a shared library.
23553 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23555 # Method to check whether dependent libraries are shared objects.
23556 deplibs_check_method=$lt_deplibs_check_method
23558 # Command to use when deplibs_check_method == file_magic.
23559 file_magic_cmd=$lt_file_magic_cmd
23561 # Flag that allows shared libraries with undefined symbols to be built.
23562 allow_undefined_flag=$lt_allow_undefined_flag_F77
23564 # Flag that forces no undefined symbols.
23565 no_undefined_flag=$lt_no_undefined_flag_F77
23567 # Commands used to finish a libtool library installation in a directory.
23568 finish_cmds=$lt_finish_cmds
23570 # Same as above, but a single script fragment to be evaled but not shown.
23571 finish_eval=$lt_finish_eval
23573 # Take the output of nm and produce a listing of raw symbols and C names.
23574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23576 # Transform the output of nm in a proper C declaration
23577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23579 # Transform the output of nm in a C name address pair
23580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23582 # This is the shared library runtime path variable.
23583 runpath_var=$runpath_var
23585 # This is the shared library path variable.
23586 shlibpath_var=$shlibpath_var
23588 # Is shlibpath searched before the hard-coded library search path?
23589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23591 # How to hardcode a shared library path into an executable.
23592 hardcode_action=$hardcode_action_F77
23594 # Whether we should hardcode library paths into libraries.
23595 hardcode_into_libs=$hardcode_into_libs
23597 # Flag to hardcode \$libdir into a binary during linking.
23598 # This must work even if \$libdir does not exist.
23599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23601 # If ld is used when linking, flag to hardcode \$libdir into
23602 # a binary during linking. This must work even if \$libdir does
23604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23606 # Whether we need a single -rpath flag with a separated argument.
23607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23610 # resulting binary.
23611 hardcode_direct=$hardcode_direct_F77
23613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23614 # resulting binary.
23615 hardcode_minus_L=$hardcode_minus_L_F77
23617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23618 # the resulting binary.
23619 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23621 # Set to yes if building a shared library automatically hardcodes DIR into the library
23622 # and all subsequent libraries and executables linked against it.
23623 hardcode_automatic=$hardcode_automatic_F77
23625 # Variables whose values should be saved in libtool wrapper scripts and
23626 # restored at relink time.
23627 variables_saved_for_relink="$variables_saved_for_relink"
23629 # Whether libtool must link a program against all its dependency libraries.
23630 link_all_deplibs=$link_all_deplibs_F77
23632 # Compile-time system search path for libraries
23633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23635 # Run-time system search path for libraries
23636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23638 # Fix the shell variable \$srcfile for the compiler.
23639 fix_srcfile_path="$fix_srcfile_path_F77"
23641 # Set to yes if exported symbols are required.
23642 always_export_symbols=$always_export_symbols_F77
23644 # The commands to list exported symbols.
23645 export_symbols_cmds=$lt_export_symbols_cmds_F77
23647 # The commands to extract the exported symbol list from a shared archive.
23648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23650 # Symbols that should not be listed in the preloaded symbols.
23651 exclude_expsyms=$lt_exclude_expsyms_F77
23653 # Symbols that must always be exported.
23654 include_expsyms=$lt_include_expsyms_F77
23656 # ### END LIBTOOL TAG CONFIG: $tagname
23662 # If there is no Makefile yet, we rely on a make rule to execute
23663 # `config.status --recheck' to rerun these tests and create the
23664 # libtool script then.
23665 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23666 if test -f "$ltmain_in"; then
23667 test -f Makefile && make "$ltmain"
23673 ac_cpp='$CPP $CPPFLAGS'
23674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23686 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23688 ac_cpp='$CPP $CPPFLAGS'
23689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23694 # Source file extension for Java test sources.
23697 # Object file extension for compiled Java test sources.
23701 # Code to be used in simple compile tests
23702 lt_simple_compile_test_code="class foo {}\n"
23704 # Code to be used in simple link tests
23705 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23709 # If no C compiler was specified, use CC.
23712 # If no C compiler flags were specified, use CFLAGS.
23713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23715 # Allow CC to be a program name with arguments.
23719 # save warnings/boilerplate of simple test code
23720 ac_outfile=conftest.$ac_objext
23721 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23723 _lt_compiler_boilerplate=`cat conftest.err`
23726 ac_outfile=conftest.$ac_objext
23727 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23729 _lt_linker_boilerplate=`cat conftest.err`
23733 # Allow CC to be a program name with arguments.
23738 for cc_temp in $compiler""; do
23740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23746 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23749 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23750 archive_cmds_need_lc_GCJ=no
23752 old_archive_cmds_GCJ=$old_archive_cmds
23755 lt_prog_compiler_no_builtin_flag_GCJ=
23757 if test "$GCC" = yes; then
23758 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23761 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23762 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 lt_cv_prog_compiler_rtti_exceptions=no
23767 ac_outfile=conftest.$ac_objext
23768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23769 lt_compiler_flag="-fno-rtti -fno-exceptions"
23770 # Insert the option either (1) after the last *FLAGS variable, or
23771 # (2) before a word containing "conftest.", or (3) at the end.
23772 # Note that $ac_compile itself does not contain backslashes and begins
23773 # with a dollar sign (not a hyphen), so the echo should work correctly.
23774 # The option is referenced via a variable to avoid confusing sed.
23775 lt_compile=`echo "$ac_compile" | $SED \
23776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23778 -e 's:$: $lt_compiler_flag:'`
23779 (eval echo "\"\$as_me:23779: $lt_compile\"" >&5)
23780 (eval "$lt_compile" 2>conftest.err)
23782 cat conftest.err >&5
23783 echo "$as_me:23783: \$? = $ac_status" >&5
23784 if (exit $ac_status) && test -s "$ac_outfile"; then
23785 # The compiler can only warn and ignore the option if not recognized
23786 # So say no if there are warnings other than the usual output.
23787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23790 lt_cv_prog_compiler_rtti_exceptions=yes
23796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23797 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23800 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23807 lt_prog_compiler_wl_GCJ=
23808 lt_prog_compiler_pic_GCJ=
23809 lt_prog_compiler_static_GCJ=
23811 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23812 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23814 if test "$GCC" = yes; then
23815 lt_prog_compiler_wl_GCJ='-Wl,'
23816 lt_prog_compiler_static_GCJ='-static'
23820 # All AIX code is PIC.
23821 if test "$host_cpu" = ia64; then
23822 # AIX 5 now supports IA64 processor
23823 lt_prog_compiler_static_GCJ='-Bstatic'
23828 # FIXME: we need at least 68020 code to build shared libraries, but
23829 # adding the `-m68020' flag to GCC prevents building anything better,
23831 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23834 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23835 # PIC is the default for these OSes.
23838 mingw* | pw32* | os2*)
23839 # This hack is so that the source file can tell whether it is being
23840 # built for inclusion in a dll (and should export symbols for example).
23841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23844 darwin* | rhapsody*)
23845 # PIC is the default on this platform
23846 # Common symbols not allowed in MH_DYLIB files
23847 lt_prog_compiler_pic_GCJ='-fno-common'
23851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23852 # Instead, we relocate shared libraries at runtime.
23856 # Just because we use GCC doesn't mean we suddenly get shared libraries
23857 # on systems that don't support them.
23858 lt_prog_compiler_can_build_shared_GCJ=no
23863 if test -d /usr/nec; then
23864 lt_prog_compiler_pic_GCJ=-Kconform_pic
23869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23870 # not for PA HP-UX.
23876 lt_prog_compiler_pic_GCJ='-fPIC'
23882 lt_prog_compiler_pic_GCJ='-fPIC'
23886 # PORTME Check for flag to pass linker flags through the system compiler.
23889 lt_prog_compiler_wl_GCJ='-Wl,'
23890 if test "$host_cpu" = ia64; then
23891 # AIX 5 now supports IA64 processor
23892 lt_prog_compiler_static_GCJ='-Bstatic'
23894 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23898 # PIC is the default on this platform
23899 # Common symbols not allowed in MH_DYLIB files
23900 case $cc_basename in
23902 lt_prog_compiler_pic_GCJ='-qnocommon'
23903 lt_prog_compiler_wl_GCJ='-Wl,'
23908 mingw* | pw32* | os2*)
23909 # This hack is so that the source file can tell whether it is being
23910 # built for inclusion in a dll (and should export symbols for example).
23911 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23914 hpux9* | hpux10* | hpux11*)
23915 lt_prog_compiler_wl_GCJ='-Wl,'
23916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23917 # not for PA HP-UX.
23923 lt_prog_compiler_pic_GCJ='+Z'
23926 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23927 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23930 irix5* | irix6* | nonstopux*)
23931 lt_prog_compiler_wl_GCJ='-Wl,'
23932 # PIC (with -KPIC) is the default.
23933 lt_prog_compiler_static_GCJ='-non_shared'
23937 lt_prog_compiler_pic_GCJ='-KPIC'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23942 case $cc_basename in
23944 lt_prog_compiler_wl_GCJ='-Wl,'
23945 lt_prog_compiler_pic_GCJ='-KPIC'
23946 lt_prog_compiler_static_GCJ='-static'
23948 pgcc* | pgf77* | pgf90* | pgf95*)
23949 # Portland Group compilers (*not* the Pentium gcc compiler,
23950 # which looks to be a dead project)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 lt_prog_compiler_pic_GCJ='-fpic'
23953 lt_prog_compiler_static_GCJ='-Bstatic'
23956 lt_prog_compiler_wl_GCJ='-Wl,'
23957 # All Alpha code is PIC.
23958 lt_prog_compiler_static_GCJ='-non_shared'
23963 osf3* | osf4* | osf5*)
23964 lt_prog_compiler_wl_GCJ='-Wl,'
23965 # All OSF/1 code is PIC.
23966 lt_prog_compiler_static_GCJ='-non_shared'
23970 lt_prog_compiler_pic_GCJ='-KPIC'
23971 lt_prog_compiler_static_GCJ='-Bstatic'
23972 case $cc_basename in
23973 f77* | f90* | f95*)
23974 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23976 lt_prog_compiler_wl_GCJ='-Wl,';;
23981 lt_prog_compiler_wl_GCJ='-Qoption ld '
23982 lt_prog_compiler_pic_GCJ='-PIC'
23983 lt_prog_compiler_static_GCJ='-Bstatic'
23986 sysv4 | sysv4.2uw2* | sysv4.3*)
23987 lt_prog_compiler_wl_GCJ='-Wl,'
23988 lt_prog_compiler_pic_GCJ='-KPIC'
23989 lt_prog_compiler_static_GCJ='-Bstatic'
23993 if test -d /usr/nec ;then
23994 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23995 lt_prog_compiler_static_GCJ='-Bstatic'
23999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24000 lt_prog_compiler_wl_GCJ='-Wl,'
24001 lt_prog_compiler_pic_GCJ='-KPIC'
24002 lt_prog_compiler_static_GCJ='-Bstatic'
24006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_can_build_shared_GCJ=no
24011 lt_prog_compiler_pic_GCJ='-pic'
24012 lt_prog_compiler_static_GCJ='-Bstatic'
24016 lt_prog_compiler_can_build_shared_GCJ=no
24021 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24022 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24025 # Check to make sure the PIC flag actually works.
24027 if test -n "$lt_prog_compiler_pic_GCJ"; then
24029 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24031 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 lt_prog_compiler_pic_works_GCJ=no
24035 ac_outfile=conftest.$ac_objext
24036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24037 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24038 # Insert the option either (1) after the last *FLAGS variable, or
24039 # (2) before a word containing "conftest.", or (3) at the end.
24040 # Note that $ac_compile itself does not contain backslashes and begins
24041 # with a dollar sign (not a hyphen), so the echo should work correctly.
24042 # The option is referenced via a variable to avoid confusing sed.
24043 lt_compile=`echo "$ac_compile" | $SED \
24044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24046 -e 's:$: $lt_compiler_flag:'`
24047 (eval echo "\"\$as_me:24047: $lt_compile\"" >&5)
24048 (eval "$lt_compile" 2>conftest.err)
24050 cat conftest.err >&5
24051 echo "$as_me:24051: \$? = $ac_status" >&5
24052 if (exit $ac_status) && test -s "$ac_outfile"; then
24053 # The compiler can only warn and ignore the option if not recognized
24054 # So say no if there are warnings other than the usual output.
24055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24058 lt_prog_compiler_pic_works_GCJ=yes
24064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24065 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24067 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24068 case $lt_prog_compiler_pic_GCJ in
24070 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24073 lt_prog_compiler_pic_GCJ=
24074 lt_prog_compiler_can_build_shared_GCJ=no
24079 # For platforms which do not support PIC, -DPIC is meaningless:
24081 lt_prog_compiler_pic_GCJ=
24084 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24089 # Check to make sure the static flag actually works.
24091 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24092 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24093 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24094 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 lt_prog_compiler_static_works_GCJ=no
24098 save_LDFLAGS="$LDFLAGS"
24099 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24100 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24102 # The linker can only warn and ignore the option if not recognized
24103 # So say no if there are warnings
24104 if test -s conftest.err; then
24105 # Append any errors to the config.log.
24106 cat conftest.err 1>&5
24107 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24109 if diff conftest.exp conftest.er2 >/dev/null; then
24110 lt_prog_compiler_static_works_GCJ=yes
24113 lt_prog_compiler_static_works_GCJ=yes
24117 LDFLAGS="$save_LDFLAGS"
24120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24121 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24123 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24126 lt_prog_compiler_static_GCJ=
24130 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24131 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24132 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 lt_cv_prog_compiler_c_o_GCJ=no
24136 $rm -r conftest 2>/dev/null
24140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24142 lt_compiler_flag="-o out/conftest2.$ac_objext"
24143 # Insert the option either (1) after the last *FLAGS variable, or
24144 # (2) before a word containing "conftest.", or (3) at the end.
24145 # Note that $ac_compile itself does not contain backslashes and begins
24146 # with a dollar sign (not a hyphen), so the echo should work correctly.
24147 lt_compile=`echo "$ac_compile" | $SED \
24148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24150 -e 's:$: $lt_compiler_flag:'`
24151 (eval echo "\"\$as_me:24151: $lt_compile\"" >&5)
24152 (eval "$lt_compile" 2>out/conftest.err)
24154 cat out/conftest.err >&5
24155 echo "$as_me:24155: \$? = $ac_status" >&5
24156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24158 # The compiler can only warn and ignore the option if not recognized
24159 # So say no if there are warnings
24160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24163 lt_cv_prog_compiler_c_o_GCJ=yes
24168 # SGI C++ compiler will create directory out/ii_files/ for
24169 # template instantiation
24170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24171 $rm out/* && rmdir out
24177 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24178 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24181 hard_links="nottested"
24182 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24183 # do not overwrite the value of need_locks provided by the user
24184 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24185 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24190 ln conftest.a conftest.b 2>&5 || hard_links=no
24191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24192 { echo "$as_me:$LINENO: result: $hard_links" >&5
24193 echo "${ECHO_T}$hard_links" >&6; }
24194 if test "$hard_links" = no; then
24195 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24196 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24203 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24204 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24207 allow_undefined_flag_GCJ=
24208 enable_shared_with_static_runtimes_GCJ=no
24210 archive_expsym_cmds_GCJ=
24211 old_archive_From_new_cmds_GCJ=
24212 old_archive_from_expsyms_cmds_GCJ=
24213 export_dynamic_flag_spec_GCJ=
24214 whole_archive_flag_spec_GCJ=
24215 thread_safe_flag_spec_GCJ=
24216 hardcode_libdir_flag_spec_GCJ=
24217 hardcode_libdir_flag_spec_ld_GCJ=
24218 hardcode_libdir_separator_GCJ=
24219 hardcode_direct_GCJ=no
24220 hardcode_minus_L_GCJ=no
24221 hardcode_shlibpath_var_GCJ=unsupported
24222 link_all_deplibs_GCJ=unknown
24223 hardcode_automatic_GCJ=no
24225 module_expsym_cmds_GCJ=
24226 always_export_symbols_GCJ=no
24227 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24228 # include_expsyms should be a list of space-separated symbols to be *always*
24229 # included in the symbol list
24230 include_expsyms_GCJ=
24231 # exclude_expsyms can be an extended regexp of symbols to exclude
24232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24234 # as well as any symbol that contains `d'.
24235 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24237 # platforms (ab)use it in PIC code, but their linkers get confused if
24238 # the symbol is explicitly referenced. Since portable code cannot
24239 # rely on this symbol name, it's probably fine to never include it in
24240 # preloaded symbol tables.
24241 extract_expsyms_cmds=
24242 # Just being paranoid about ensuring that cc_basename is set.
24243 for cc_temp in $compiler""; do
24245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24254 cygwin* | mingw* | pw32*)
24255 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24256 # When not using gcc, we currently assume that we are using
24257 # Microsoft Visual C++.
24258 if test "$GCC" != yes; then
24263 # we just hope/assume this is gcc and not c89 (= MSVC++)
24272 if test "$with_gnu_ld" = yes; then
24273 # If archive_cmds runs LD, not CC, wlarc should be empty
24276 # Set some defaults for GNU ld with shared library support. These
24277 # are reset later if shared libraries are not supported. Putting them
24278 # here allows them to be overridden if necessary.
24279 runpath_var=LD_RUN_PATH
24280 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24281 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24282 # ancient GNU ld didn't support --whole-archive et. al.
24283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24284 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24286 whole_archive_flag_spec_GCJ=
24288 supports_anon_versioning=no
24289 case `$LD -v 2>/dev/null` in
24290 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24293 *\ 2.11.*) ;; # other 2.11 versions
24294 *) supports_anon_versioning=yes ;;
24297 # See if GNU ld supports shared libraries.
24299 aix3* | aix4* | aix5*)
24300 # On AIX/PPC, the GNU linker is very broken
24301 if test "$host_cpu" != ia64; then
24305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24306 *** to be unable to reliably create shared libraries on AIX.
24307 *** Therefore, libtool is disabling shared libraries support. If you
24308 *** really care for shared libraries, you may want to modify your PATH
24309 *** so that a non-GNU linker is found, and then restart.
24316 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)'
24317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24318 hardcode_minus_L_GCJ=yes
24320 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24321 # that the semantics of dynamic libraries on AmigaOS, at least up
24322 # to version 4, is to share data among multiple programs linked
24323 # with the same dynamic library. Since this doesn't match the
24324 # behavior of shared libraries on other platforms, we can't use
24330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24331 allow_undefined_flag_GCJ=unsupported
24332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24333 # support --undefined. This deserves some investigation. FIXME
24334 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24340 cygwin* | mingw* | pw32*)
24341 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24342 # as there is no search path for DLLs.
24343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24344 allow_undefined_flag_GCJ=unsupported
24345 always_export_symbols_GCJ=no
24346 enable_shared_with_static_runtimes_GCJ=yes
24347 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24351 # If the export-symbols file already is a .def file (1st line
24352 # is EXPORTS), use it as is; otherwise, prepend...
24353 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24354 cp $export_symbols $output_objdir/$soname.def;
24356 echo EXPORTS > $output_objdir/$soname.def;
24357 cat $export_symbols >> $output_objdir/$soname.def;
24359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24366 hardcode_direct_GCJ=no
24367 hardcode_shlibpath_var_GCJ=no
24368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24369 export_dynamic_flag_spec_GCJ='${wl}-E'
24370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24371 # Instead, shared libraries are loaded at an image base (0x10000000 by
24372 # default) and relocated if they conflict, which is a slow very memory
24373 # consuming and fragmenting process. To avoid this, we pick a random,
24374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24376 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'
24377 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'
24381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24383 case $cc_basename,$host_cpu in
24384 pgcc*) # Portland Group C compiler
24385 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'
24386 tmp_addflag=' $pic_flag'
24388 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24389 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'
24390 tmp_addflag=' $pic_flag -Mnomain' ;;
24391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24392 tmp_addflag=' -i_dynamic' ;;
24393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24394 tmp_addflag=' -i_dynamic -nofor_main' ;;
24395 ifc* | ifort*) # Intel Fortran compiler
24396 tmp_addflag=' -nofor_main' ;;
24398 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24400 if test $supports_anon_versioning = yes; then
24401 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24403 $echo "local: *; };" >> $output_objdir/$libname.ver~
24404 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24413 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24416 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24417 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24422 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24427 *** create shared libraries on Solaris systems. Therefore, libtool
24428 *** is disabling shared libraries support. We urge you to upgrade GNU
24429 *** binutils to release 2.9.1 or newer. Another option is to modify
24430 *** your PATH or compiler configuration so that the native linker is
24431 *** used, and then restart.
24434 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24443 case `$LD -v 2>&1` in
24444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24449 *** reliably create shared libraries on SCO systems. Therefore, libtool
24450 *** is disabling shared libraries support. We urge you to upgrade GNU
24451 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24452 *** your PATH or compiler configuration so that the native linker is
24453 *** used, and then restart.
24458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24470 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24472 hardcode_direct_GCJ=yes
24473 hardcode_shlibpath_var_GCJ=no
24477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24486 if test "$ld_shlibs_GCJ" = no; then
24488 hardcode_libdir_flag_spec_GCJ=
24489 export_dynamic_flag_spec_GCJ=
24490 whole_archive_flag_spec_GCJ=
24493 # PORTME fill in a description of your system's linker (not GNU ld)
24496 allow_undefined_flag_GCJ=unsupported
24497 always_export_symbols_GCJ=yes
24498 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'
24499 # Note: this linker hardcodes the directories in LIBPATH if there
24500 # are no directories specified by -L.
24501 hardcode_minus_L_GCJ=yes
24502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24503 # Neither direct hardcoding nor static linking is supported with a
24505 hardcode_direct_GCJ=unsupported
24510 if test "$host_cpu" = ia64; then
24511 # On IA64, the linker does run time linking by default, so we don't
24512 # have to do anything special.
24513 aix_use_runtimelinking=no
24514 exp_sym_flag='-Bexport'
24517 # If we're using GNU nm, then we don't want the "-C" option.
24518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24519 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24520 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'
24522 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'
24524 aix_use_runtimelinking=no
24526 # Test if we are trying to use run time linking or normal
24527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24528 # need to do runtime linking.
24529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24530 for ld_flag in $LDFLAGS; do
24531 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24532 aix_use_runtimelinking=yes
24539 exp_sym_flag='-bexport'
24540 no_entry_flag='-bnoentry'
24543 # When large executables or shared objects are built, AIX ld can
24544 # have problems creating the table of contents. If linking a library
24545 # or program results in "error TOC overflow" add -mminimal-toc to
24546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24549 archive_cmds_GCJ=''
24550 hardcode_direct_GCJ=yes
24551 hardcode_libdir_separator_GCJ=':'
24552 link_all_deplibs_GCJ=yes
24554 if test "$GCC" = yes; then
24555 case $host_os in aix4.[012]|aix4.[012].*)
24556 # We only want to do this on AIX 4.2 and lower, the check
24557 # below for broken collect2 doesn't work under 4.3+
24558 collect2name=`${CC} -print-prog-name=collect2`
24559 if test -f "$collect2name" && \
24560 strings "$collect2name" | grep resolve_lib_name >/dev/null
24562 # We have reworked collect2
24563 hardcode_direct_GCJ=yes
24565 # We have old collect2
24566 hardcode_direct_GCJ=unsupported
24567 # It fails to find uninstalled libraries when the uninstalled
24568 # path is not listed in the libpath. Setting hardcode_minus_L
24569 # to unsupported forces relinking
24570 hardcode_minus_L_GCJ=yes
24571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24572 hardcode_libdir_separator_GCJ=
24576 shared_flag='-shared'
24577 if test "$aix_use_runtimelinking" = yes; then
24578 shared_flag="$shared_flag "'${wl}-G'
24582 if test "$host_cpu" = ia64; then
24583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24584 # chokes on -Wl,-G. The following line is correct:
24587 if test "$aix_use_runtimelinking" = yes; then
24588 shared_flag='${wl}-G'
24590 shared_flag='${wl}-bM:SRE'
24595 # It seems that -bexpall does not export symbols beginning with
24596 # underscore (_), so it is better to generate a list of symbols to export.
24597 always_export_symbols_GCJ=yes
24598 if test "$aix_use_runtimelinking" = yes; then
24599 # Warning - without using the other runtime loading flags (-brtl),
24600 # -berok will link without error, but may produce a broken library.
24601 allow_undefined_flag_GCJ='-berok'
24602 # Determine the default libpath from the value encoded in an empty executable.
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (ac_try="$ac_link"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_link") 2>conftest.er1
24627 grep -v '^ *+' conftest.er1 >conftest.err
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } &&
24632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24633 { (case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_try") 2>&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; } &&
24642 { ac_try='test -s conftest$ac_exeext'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
24653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24655 # Check for a 64-bit object if we didn't find anything.
24656 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; }
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24665 rm -f core conftest.err conftest.$ac_objext \
24666 conftest$ac_exeext conftest.$ac_ext
24667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24669 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24670 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"
24672 if test "$host_cpu" = ia64; then
24673 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24674 allow_undefined_flag_GCJ="-z nodefs"
24675 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"
24677 # Determine the default libpath from the value encoded in an empty executable.
24678 cat >conftest.$ac_ext <<_ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h. */
24693 rm -f conftest.$ac_objext conftest$ac_exeext
24694 if { (ac_try="$ac_link"
24695 case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700 (eval "$ac_link") 2>conftest.er1
24702 grep -v '^ *+' conftest.er1 >conftest.err
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24708 { (case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_try") 2>&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; } &&
24717 { ac_try='test -s conftest$ac_exeext'
24718 { (case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_try") 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
24728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24730 # Check for a 64-bit object if we didn't find anything.
24731 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; }
24734 echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24740 rm -f core conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
24742 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24744 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24745 # Warning - without using the other run time loading flags,
24746 # -berok will link without error, but may produce a broken library.
24747 no_undefined_flag_GCJ=' ${wl}-bernotok'
24748 allow_undefined_flag_GCJ=' ${wl}-berok'
24749 # Exported symbols can be pulled into shared objects from archives
24750 whole_archive_flag_spec_GCJ='$convenience'
24751 archive_cmds_need_lc_GCJ=yes
24752 # This is similar to how AIX traditionally builds its shared libraries.
24753 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'
24759 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)'
24760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_minus_L_GCJ=yes
24762 # see comment about different semantics on the GNU ld section
24767 export_dynamic_flag_spec_GCJ=-rdynamic
24770 cygwin* | mingw* | pw32*)
24771 # When not using gcc, we currently assume that we are using
24772 # Microsoft Visual C++.
24773 # hardcode_libdir_flag_spec is actually meaningless, as there is
24774 # no search path for DLLs.
24775 hardcode_libdir_flag_spec_GCJ=' '
24776 allow_undefined_flag_GCJ=unsupported
24777 # Tell ltmain to make .lib files, not .a files.
24779 # Tell ltmain to make .dll files, not .so files.
24781 # FIXME: Setting linknames here is a bad hack.
24782 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24783 # The linker will automatically build a .lib file if we build a DLL.
24784 old_archive_From_new_cmds_GCJ='true'
24785 # FIXME: Should let the user specify the lib program.
24786 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24787 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24788 enable_shared_with_static_runtimes_GCJ=yes
24791 darwin* | rhapsody*)
24793 rhapsody* | darwin1.[012])
24794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24800 case ${MACOSX_DEPLOYMENT_TARGET} in
24802 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24811 archive_cmds_need_lc_GCJ=no
24812 hardcode_direct_GCJ=no
24813 hardcode_automatic_GCJ=yes
24814 hardcode_shlibpath_var_GCJ=unsupported
24815 whole_archive_flag_spec_GCJ=''
24816 link_all_deplibs_GCJ=yes
24817 if test "$GCC" = yes ; then
24818 output_verbose_link_cmd='echo'
24819 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24822 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}'
24823 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}'
24825 case $cc_basename in
24827 output_verbose_link_cmd='echo'
24828 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24831 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}'
24832 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}'
24842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24844 hardcode_shlibpath_var_GCJ=no
24851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24852 # support. Future versions do this automatically, but an explicit c++rt0.o
24853 # does not break anything, and helps significantly (at the cost of a little
24856 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24858 hardcode_direct_GCJ=yes
24859 hardcode_shlibpath_var_GCJ=no
24862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24865 hardcode_direct_GCJ=yes
24866 hardcode_minus_L_GCJ=yes
24867 hardcode_shlibpath_var_GCJ=no
24870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24871 freebsd* | kfreebsd*-gnu | dragonfly*)
24872 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24874 hardcode_direct_GCJ=yes
24875 hardcode_shlibpath_var_GCJ=no
24879 if test "$GCC" = yes; then
24880 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'
24882 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'
24884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24885 hardcode_libdir_separator_GCJ=:
24886 hardcode_direct_GCJ=yes
24888 # hardcode_minus_L: Not really in the search PATH,
24889 # but as the default location of the library.
24890 hardcode_minus_L_GCJ=yes
24891 export_dynamic_flag_spec_GCJ='${wl}-E'
24895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24896 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24898 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24900 if test "$with_gnu_ld" = no; then
24901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902 hardcode_libdir_separator_GCJ=:
24904 hardcode_direct_GCJ=yes
24905 export_dynamic_flag_spec_GCJ='${wl}-E'
24907 # hardcode_minus_L: Not really in the search PATH,
24908 # but as the default location of the library.
24909 hardcode_minus_L_GCJ=yes
24914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24917 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24920 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24923 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24929 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24932 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24935 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24939 if test "$with_gnu_ld" = no; then
24940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24941 hardcode_libdir_separator_GCJ=:
24945 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24946 hardcode_direct_GCJ=no
24947 hardcode_shlibpath_var_GCJ=no
24950 hardcode_direct_GCJ=yes
24951 export_dynamic_flag_spec_GCJ='${wl}-E'
24953 # hardcode_minus_L: Not really in the search PATH,
24954 # but as the default location of the library.
24955 hardcode_minus_L_GCJ=yes
24961 irix5* | irix6* | nonstopux*)
24962 if test "$GCC" = yes; then
24963 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'
24965 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'
24966 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24969 hardcode_libdir_separator_GCJ=:
24970 link_all_deplibs_GCJ=yes
24974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24975 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24977 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24980 hardcode_direct_GCJ=yes
24981 hardcode_shlibpath_var_GCJ=no
24985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24986 hardcode_direct_GCJ=yes
24987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988 hardcode_libdir_separator_GCJ=:
24989 hardcode_shlibpath_var_GCJ=no
24993 hardcode_direct_GCJ=yes
24994 hardcode_shlibpath_var_GCJ=no
24995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24997 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24999 export_dynamic_flag_spec_GCJ='${wl}-E'
25002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016 hardcode_minus_L_GCJ=yes
25017 allow_undefined_flag_GCJ=unsupported
25018 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'
25019 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25023 if test "$GCC" = yes; then
25024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25025 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'
25027 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25028 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'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031 hardcode_libdir_separator_GCJ=:
25034 osf4* | osf5*) # as osf3* with the addition of -msym flag
25035 if test "$GCC" = yes; then
25036 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25037 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'
25038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25041 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'
25042 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~
25043 $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'
25045 # Both c and cxx compiler support -rpath directly
25046 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25048 hardcode_libdir_separator_GCJ=:
25052 no_undefined_flag_GCJ=' -z text'
25053 if test "$GCC" = yes; then
25055 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25056 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25060 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25065 hardcode_shlibpath_var_GCJ=no
25067 solaris2.[0-5] | solaris2.[0-5].*) ;;
25069 # The compiler driver will combine linker options so we
25070 # cannot just pass the convience library names through
25071 # without $wl, iff we do not link with $LD.
25072 # Luckily, gcc supports the same syntax we need for Sun Studio.
25073 # Supported since Solaris 2.6 (maybe 2.5.1?)
25076 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25078 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' ;;
25081 link_all_deplibs_GCJ=yes
25085 if test "x$host_vendor" = xsequent; then
25086 # Use $CC to link under sequent, because it throws in some extra .o
25087 # files that make .init and .fini sections work.
25088 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25090 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25093 hardcode_direct_GCJ=yes
25094 hardcode_minus_L_GCJ=yes
25095 hardcode_shlibpath_var_GCJ=no
25099 case $host_vendor in
25101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25102 hardcode_direct_GCJ=yes # is this really true???
25105 ## LD is ld it makes a PLAMLIB
25106 ## CC just makes a GrossModule.
25107 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25108 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25109 hardcode_direct_GCJ=no
25112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25116 runpath_var='LD_RUN_PATH'
25117 hardcode_shlibpath_var_GCJ=no
25121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122 hardcode_shlibpath_var_GCJ=no
25123 export_dynamic_flag_spec_GCJ='-Bexport'
25127 if test -d /usr/nec; then
25128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129 hardcode_shlibpath_var_GCJ=no
25130 runpath_var=LD_RUN_PATH
25131 hardcode_runpath_var=yes
25136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25137 no_undefined_flag_GCJ='${wl}-z,text'
25138 archive_cmds_need_lc_GCJ=no
25139 hardcode_shlibpath_var_GCJ=no
25140 runpath_var='LD_RUN_PATH'
25142 if test "$GCC" = yes; then
25143 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25144 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25146 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25147 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25151 sysv5* | sco3.2v5* | sco5v6*)
25152 # Note: We can NOT use -z defs as we might desire, because we do not
25153 # link with -lc, and that would cause any symbols used from libc to
25154 # always be unresolved, which means just about no library would
25155 # ever link correctly. If we're not using GNU ld we use -z text
25156 # though, which does catch some bad symbols but isn't as heavy-handed
25158 no_undefined_flag_GCJ='${wl}-z,text'
25159 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25160 archive_cmds_need_lc_GCJ=no
25161 hardcode_shlibpath_var_GCJ=no
25162 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25163 hardcode_libdir_separator_GCJ=':'
25164 link_all_deplibs_GCJ=yes
25165 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25166 runpath_var='LD_RUN_PATH'
25168 if test "$GCC" = yes; then
25169 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25172 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25173 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25180 hardcode_shlibpath_var_GCJ=no
25189 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25191 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25194 # Do we need to explicitly link libc?
25196 case "x$archive_cmds_need_lc_GCJ" in
25198 # Assume -lc should be added
25199 archive_cmds_need_lc_GCJ=yes
25201 if test "$enable_shared" = yes && test "$GCC" = yes; then
25202 case $archive_cmds_GCJ in
25204 # FIXME: we may have to deal with multi-command sequences.
25207 # Test whether the compiler implicitly links with -lc since on some
25208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25209 # to ld, don't add -lc before -lgcc.
25210 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25216 (eval $ac_compile) 2>&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } 2>conftest.err; then
25222 libobjs=conftest.$ac_objext
25224 wl=$lt_prog_compiler_wl_GCJ
25225 pic_flag=$lt_prog_compiler_pic_GCJ
25231 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25232 allow_undefined_flag_GCJ=
25233 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25234 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }
25239 archive_cmds_need_lc_GCJ=no
25241 archive_cmds_need_lc_GCJ=yes
25243 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25245 cat conftest.err 1>&5
25248 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25249 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25256 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25258 library_names_spec=
25259 libname_spec='lib$name'
25263 postuninstall_cmds=
25267 shlibpath_overrides_runpath=unknown
25269 dynamic_linker="$host_os ld.so"
25270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25271 if test "$GCC" = yes; then
25272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25273 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25274 # if the path contains ";" then we assume it to be the separator
25275 # otherwise default to the standard path separator (i.e. ":") - it is
25276 # assumed that no part of a normal pathname contains ";" but that should
25277 # okay in the real world where ";" in dirpaths is itself problematic.
25278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25285 need_lib_prefix=unknown
25286 hardcode_into_libs=no
25288 # when you set need_version to no, make sure it does not cause -set_version
25289 # flags to be left without arguments
25290 need_version=unknown
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25296 shlibpath_var=LIBPATH
25298 # AIX 3 has no versioning support, so we append a major version to the name.
25299 soname_spec='${libname}${release}${shared_ext}$major'
25306 hardcode_into_libs=yes
25307 if test "$host_cpu" = ia64; then
25308 # AIX 5 supports IA64
25309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25310 shlibpath_var=LD_LIBRARY_PATH
25312 # With GCC up to 2.95.x, collect2 would create an import file
25313 # for dependence libraries. The import file would start with
25314 # the line `#! .'. This would cause the generated library to
25315 # depend on `.', always an invalid library. This was fixed in
25316 # development snapshots of GCC prior to 3.0.
25318 aix4 | aix4.[01] | aix4.[01].*)
25319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25321 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25324 can_build_shared=no
25328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25329 # soname into executable. Probably we can add versioning support to
25330 # collect2, so additional links can be useful in future.
25331 if test "$aix_use_runtimelinking" = yes; then
25332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25333 # instead of lib<name>.a to let people know that these are not
25334 # typical AIX shared libraries.
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25337 # We preserve .a as extension for shared libraries through AIX4.2
25338 # and later when we are not doing run time linking.
25339 library_names_spec='${libname}${release}.a $libname.a'
25340 soname_spec='${libname}${release}${shared_ext}$major'
25342 shlibpath_var=LIBPATH
25347 library_names_spec='$libname.ixlibrary $libname.a'
25348 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25349 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'
25353 library_names_spec='${libname}${shared_ext}'
25354 dynamic_linker="$host_os ld.so"
25355 shlibpath_var=LIBRARY_PATH
25361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25362 soname_spec='${libname}${release}${shared_ext}$major'
25363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25364 shlibpath_var=LD_LIBRARY_PATH
25365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25367 # the default ld.so.conf also contains /usr/contrib/lib and
25368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25369 # libtool to hard-code these into programs
25372 cygwin* | mingw* | pw32*)
25373 version_type=windows
25378 case $GCC,$host_os in
25379 yes,cygwin* | yes,mingw* | yes,pw32*)
25380 library_names_spec='$libname.dll.a'
25381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25382 postinstall_cmds='base_file=`basename \${file}`~
25383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25384 dldir=$destdir/`dirname \$dlpath`~
25385 test -d \$dldir || mkdir -p \$dldir~
25386 $install_prog $dir/$dlname \$dldir/$dlname~
25387 chmod a+x \$dldir/$dlname'
25388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25389 dlpath=$dir/\$dldll~
25391 shlibpath_overrides_runpath=yes
25395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25397 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25400 # MinGW DLLs use traditional 'lib' prefix
25401 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25403 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25404 # It is most probably a Windows format PATH printed by
25405 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25406 # path with ; separators, and with drive letters. We can handle the
25407 # drive letters (cygwin fileutils understands them), so leave them,
25408 # especially as we might pass files found there to a mingw objdump,
25409 # which wouldn't understand a cygwinified path. Ahh.
25410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25416 # pw32 DLLs use 'pw' prefix rather than 'lib'
25417 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25426 dynamic_linker='Win32 ld.exe'
25427 # FIXME: first we should search . and the directory the executable is in
25431 darwin* | rhapsody*)
25432 dynamic_linker="$host_os dyld"
25433 version_type=darwin
25436 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25437 soname_spec='${libname}${release}${major}$shared_ext'
25438 shlibpath_overrides_runpath=yes
25439 shlibpath_var=DYLD_LIBRARY_PATH
25440 shrext_cmds='.dylib'
25441 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25442 if test "$GCC" = yes; then
25443 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"`
25445 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25455 soname_spec='${libname}${release}${shared_ext}$major'
25456 shlibpath_var=LD_LIBRARY_PATH
25467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25468 soname_spec='${libname}${release}${shared_ext}$major'
25469 shlibpath_var=LD_LIBRARY_PATH
25470 shlibpath_overrides_runpath=no
25471 hardcode_into_libs=yes
25472 dynamic_linker='GNU ld.so'
25475 freebsd* | dragonfly*)
25476 # DragonFly does not have aout. When/if they implement a new
25477 # versioning mechanism, adjust this.
25478 if test -x /usr/bin/objformat; then
25479 objformat=`/usr/bin/objformat`
25482 freebsd[123]*) objformat=aout ;;
25483 *) objformat=elf ;;
25486 version_type=freebsd-$objformat
25487 case $version_type in
25489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25498 shlibpath_var=LD_LIBRARY_PATH
25501 shlibpath_overrides_runpath=yes
25503 freebsd3.[01]* | freebsdelf3.[01]*)
25504 shlibpath_overrides_runpath=yes
25505 hardcode_into_libs=yes
25507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25509 shlibpath_overrides_runpath=no
25510 hardcode_into_libs=yes
25512 freebsd*) # from 4.6 on
25513 shlibpath_overrides_runpath=yes
25514 hardcode_into_libs=yes
25523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25524 soname_spec='${libname}${release}${shared_ext}$major'
25525 shlibpath_var=LD_LIBRARY_PATH
25526 hardcode_into_libs=yes
25529 hpux9* | hpux10* | hpux11*)
25530 # Give a soname corresponding to the major version so that dld.sl refuses to
25531 # link against other versions.
25538 hardcode_into_libs=yes
25539 dynamic_linker="$host_os dld.so"
25540 shlibpath_var=LD_LIBRARY_PATH
25541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 if test "X$HPUX_IA64_MODE" = X32; then
25545 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25553 hardcode_into_libs=yes
25554 dynamic_linker="$host_os dld.sl"
25555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25558 soname_spec='${libname}${release}${shared_ext}$major'
25559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25564 dynamic_linker="$host_os dld.sl"
25565 shlibpath_var=SHLIB_PATH
25566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25568 soname_spec='${libname}${release}${shared_ext}$major'
25571 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25572 postinstall_cmds='chmod 555 $lib'
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=no
25584 hardcode_into_libs=yes
25587 irix5* | irix6* | nonstopux*)
25589 nonstopux*) version_type=nonstopux ;;
25591 if test "$lt_cv_prog_gnu_ld" = yes; then
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25602 irix5* | nonstopux*)
25603 libsuff= shlibsuff=
25606 case $LD in # libtool.m4 will add one of these switches to LD
25607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25608 libsuff= shlibsuff= libmagic=32-bit;;
25609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25610 libsuff=32 shlibsuff=N32 libmagic=N32;;
25611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25613 *) libsuff= shlibsuff= libmagic=never-match;;
25617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25618 shlibpath_overrides_runpath=no
25619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25621 hardcode_into_libs=yes
25624 # No shared lib support for Linux oldld, aout, or coff.
25625 linux*oldld* | linux*aout* | linux*coff*)
25629 # This must be Linux ELF.
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=no
25639 # This implies no fast_install, which is unacceptable.
25640 # Some rework will be needed to allow for fast_install
25641 # before this can be enabled.
25642 hardcode_into_libs=yes
25644 # Append ld.so.conf contents to the search path
25645 if test -f /etc/ld.so.conf; then
25646 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' ' '`
25647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25650 # We used to test for /lib/ld.so.1 and disable shared libraries on
25651 # powerpc, because MkLinux only supported shared libraries with the
25652 # GNU dynamic linker. Since this was broken with cross compilers,
25653 # most powerpc-linux boxes support dynamic linking these days and
25654 # people can always --disable-shared, the test was removed, and we
25655 # assume the GNU/Linux dynamic linker is in use.
25656 dynamic_linker='GNU/Linux ld.so'
25663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25664 soname_spec='${libname}${release}${shared_ext}$major'
25665 shlibpath_var=LD_LIBRARY_PATH
25666 shlibpath_overrides_runpath=no
25667 hardcode_into_libs=yes
25668 dynamic_linker='GNU ld.so'
25675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678 dynamic_linker='NetBSD (a.out) ld.so'
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25681 soname_spec='${libname}${release}${shared_ext}$major'
25682 dynamic_linker='NetBSD ld.elf_so'
25684 shlibpath_var=LD_LIBRARY_PATH
25685 shlibpath_overrides_runpath=yes
25686 hardcode_into_libs=yes
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=yes
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25701 soname_spec='${libname}${release}${shared_ext}$major'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 shlibpath_overrides_runpath=yes
25708 sys_lib_dlsearch_path_spec="/usr/lib"
25710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25712 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25713 *) need_version=no ;;
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25717 shlibpath_var=LD_LIBRARY_PATH
25718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25720 openbsd2.[89] | openbsd2.[89].*)
25721 shlibpath_overrides_runpath=no
25724 shlibpath_overrides_runpath=yes
25728 shlibpath_overrides_runpath=yes
25733 libname_spec='$name'
25736 library_names_spec='$libname${shared_ext} $libname.a'
25737 dynamic_linker='OS/2 ld.exe'
25738 shlibpath_var=LIBPATH
25741 osf3* | osf4* | osf5*)
25745 soname_spec='${libname}${release}${shared_ext}$major'
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 shlibpath_var=LD_LIBRARY_PATH
25748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25757 soname_spec='${libname}${release}${shared_ext}$major'
25758 shlibpath_var=LD_LIBRARY_PATH
25759 shlibpath_overrides_runpath=yes
25760 hardcode_into_libs=yes
25761 # ldd complains unless libraries are executable
25762 postinstall_cmds='chmod +x $lib'
25767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25769 shlibpath_var=LD_LIBRARY_PATH
25770 shlibpath_overrides_runpath=yes
25771 if test "$with_gnu_ld" = yes; then
25779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25780 soname_spec='${libname}${release}${shared_ext}$major'
25781 shlibpath_var=LD_LIBRARY_PATH
25782 case $host_vendor in
25784 shlibpath_overrides_runpath=no
25786 export_dynamic_flag_spec='${wl}-Blargedynsym'
25787 runpath_var=LD_RUN_PATH
25795 shlibpath_overrides_runpath=no
25796 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25802 if test -d /usr/nec ;then
25804 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25805 soname_spec='$libname${shared_ext}.$major'
25806 shlibpath_var=LD_LIBRARY_PATH
25810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25811 version_type=freebsd-elf
25814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25815 soname_spec='${libname}${release}${shared_ext}$major'
25816 shlibpath_var=LD_LIBRARY_PATH
25817 hardcode_into_libs=yes
25818 if test "$with_gnu_ld" = yes; then
25819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25820 shlibpath_overrides_runpath=no
25822 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25823 shlibpath_overrides_runpath=yes
25826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25830 sys_lib_dlsearch_path_spec='/usr/lib'
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25844 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25845 echo "${ECHO_T}$dynamic_linker" >&6; }
25846 test "$dynamic_linker" = no && can_build_shared=no
25848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25849 if test "$GCC" = yes; then
25850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25853 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25854 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25855 hardcode_action_GCJ=
25856 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25857 test -n "$runpath_var_GCJ" || \
25858 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25860 # We can hardcode non-existant directories.
25861 if test "$hardcode_direct_GCJ" != no &&
25862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25863 # have to relink, otherwise we might link with an installed library
25864 # when we should be linking with a yet-to-be-installed one
25865 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25866 test "$hardcode_minus_L_GCJ" != no; then
25867 # Linking always hardcodes the temporary library directory.
25868 hardcode_action_GCJ=relink
25870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25871 hardcode_action_GCJ=immediate
25874 # We cannot hardcode anything, or else we can only hardcode existing
25876 hardcode_action_GCJ=unsupported
25878 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25879 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25881 if test "$hardcode_action_GCJ" = relink; then
25882 # Fast installation is not supported
25883 enable_fast_install=no
25884 elif test "$shlibpath_overrides_runpath" = yes ||
25885 test "$enable_shared" = no; then
25886 # Fast installation is not necessary
25887 enable_fast_install=needless
25891 # The else clause should only fire when bootstrapping the
25892 # libtool distribution, otherwise you forgot to ship ltmain.sh
25893 # with your package, and you will get complaints that there are
25894 # no rules to generate ltmain.sh.
25895 if test -f "$ltmain"; then
25896 # See if we are running on zsh, and set the options which allow our commands through
25897 # without removal of \ escapes.
25898 if test -n "${ZSH_VERSION+set}" ; then
25899 setopt NO_GLOB_SUBST
25901 # Now quote all the things that may contain metacharacters while being
25902 # careful not to overquote the AC_SUBSTed values. We take copies of the
25903 # variables and quote the copies for generation of the libtool script.
25904 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25908 deplibs_check_method reload_flag reload_cmds need_locks \
25909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25910 lt_cv_sys_global_symbol_to_c_name_address \
25911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25912 old_postinstall_cmds old_postuninstall_cmds \
25916 lt_prog_compiler_wl_GCJ \
25917 lt_prog_compiler_pic_GCJ \
25918 lt_prog_compiler_static_GCJ \
25919 lt_prog_compiler_no_builtin_flag_GCJ \
25920 export_dynamic_flag_spec_GCJ \
25921 thread_safe_flag_spec_GCJ \
25922 whole_archive_flag_spec_GCJ \
25923 enable_shared_with_static_runtimes_GCJ \
25924 old_archive_cmds_GCJ \
25925 old_archive_from_new_cmds_GCJ \
25926 predep_objects_GCJ \
25927 postdep_objects_GCJ \
25930 compiler_lib_search_path_GCJ \
25932 archive_expsym_cmds_GCJ \
25933 postinstall_cmds_GCJ \
25934 postuninstall_cmds_GCJ \
25935 old_archive_from_expsyms_cmds_GCJ \
25936 allow_undefined_flag_GCJ \
25937 no_undefined_flag_GCJ \
25938 export_symbols_cmds_GCJ \
25939 hardcode_libdir_flag_spec_GCJ \
25940 hardcode_libdir_flag_spec_ld_GCJ \
25941 hardcode_libdir_separator_GCJ \
25942 hardcode_automatic_GCJ \
25944 module_expsym_cmds_GCJ \
25945 lt_cv_prog_compiler_c_o_GCJ \
25946 exclude_expsyms_GCJ \
25947 include_expsyms_GCJ; do
25950 old_archive_cmds_GCJ | \
25951 old_archive_from_new_cmds_GCJ | \
25952 archive_cmds_GCJ | \
25953 archive_expsym_cmds_GCJ | \
25954 module_cmds_GCJ | \
25955 module_expsym_cmds_GCJ | \
25956 old_archive_from_expsyms_cmds_GCJ | \
25957 export_symbols_cmds_GCJ | \
25958 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25959 postinstall_cmds | postuninstall_cmds | \
25960 old_postinstall_cmds | old_postuninstall_cmds | \
25961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25962 # Double-quote double-evaled strings.
25963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25972 *'\$0 --fallback-echo"')
25973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25979 cat <<__EOF__ >> "$cfgfile"
25980 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25982 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25984 # Shell to use when invoking shell scripts.
25987 # Whether or not to build shared libraries.
25988 build_libtool_libs=$enable_shared
25990 # Whether or not to build static libraries.
25991 build_old_libs=$enable_static
25993 # Whether or not to add -lc for building shared libraries.
25994 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25996 # Whether or not to disallow shared libs when runtime libs are static
25997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25999 # Whether or not to optimize for fast installation.
26000 fast_install=$enable_fast_install
26003 host_alias=$host_alias
26007 # The build system.
26008 build_alias=$build_alias
26012 # An echo program that does not interpret backslashes.
26017 AR_FLAGS=$lt_AR_FLAGS
26022 # LTCC compiler flags.
26023 LTCFLAGS=$lt_LTCFLAGS
26025 # A language-specific compiler.
26026 CC=$lt_compiler_GCJ
26028 # Is the compiler the GNU C compiler?
26034 # The linker used to build libraries.
26037 # Whether we need hard or soft links.
26040 # A BSD-compatible nm program.
26043 # A symbol stripping program
26046 # Used to examine libraries when file_magic_cmd begins "file"
26047 MAGIC_CMD=$MAGIC_CMD
26049 # Used on cygwin: DLL creation program.
26052 # Used on cygwin: object dumper.
26055 # Used on cygwin: assembler.
26058 # The name of the directory that contains temporary libtool files.
26061 # How to create reloadable object files.
26062 reload_flag=$lt_reload_flag
26063 reload_cmds=$lt_reload_cmds
26065 # How to pass a linker flag through the compiler.
26066 wl=$lt_lt_prog_compiler_wl_GCJ
26068 # Object file suffix (normally "o").
26069 objext="$ac_objext"
26071 # Old archive suffix (normally "a").
26074 # Shared library suffix (normally ".so").
26075 shrext_cmds='$shrext_cmds'
26077 # Executable file suffix (normally "").
26080 # Additional compiler flags for building library objects.
26081 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26084 # What is the maximum length of a command?
26085 max_cmd_len=$lt_cv_sys_max_cmd_len
26087 # Does compiler simultaneously support -c and -o options?
26088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26090 # Must we lock files when doing compilation?
26091 need_locks=$lt_need_locks
26093 # Do we need the lib prefix for modules?
26094 need_lib_prefix=$need_lib_prefix
26096 # Do we need a version for libraries?
26097 need_version=$need_version
26099 # Whether dlopen is supported.
26100 dlopen_support=$enable_dlopen
26102 # Whether dlopen of programs is supported.
26103 dlopen_self=$enable_dlopen_self
26105 # Whether dlopen of statically linked programs is supported.
26106 dlopen_self_static=$enable_dlopen_self_static
26108 # Compiler flag to prevent dynamic linking.
26109 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26111 # Compiler flag to turn off builtin functions.
26112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26114 # Compiler flag to allow reflexive dlopens.
26115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26117 # Compiler flag to generate shared objects directly from archives.
26118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26120 # Compiler flag to generate thread-safe objects.
26121 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26123 # Library versioning type.
26124 version_type=$version_type
26126 # Format of library name prefix.
26127 libname_spec=$lt_libname_spec
26129 # List of archive names. First name is the real one, the rest are links.
26130 # The last name is the one that the linker finds with -lNAME.
26131 library_names_spec=$lt_library_names_spec
26133 # The coded name of the library, if different from the real name.
26134 soname_spec=$lt_soname_spec
26136 # Commands used to build and install an old-style archive.
26138 old_archive_cmds=$lt_old_archive_cmds_GCJ
26139 old_postinstall_cmds=$lt_old_postinstall_cmds
26140 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26142 # Create an old-style archive from a shared archive.
26143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26145 # Create a temporary old-style archive to link instead of a shared archive.
26146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26148 # Commands used to build and install a shared archive.
26149 archive_cmds=$lt_archive_cmds_GCJ
26150 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26151 postinstall_cmds=$lt_postinstall_cmds
26152 postuninstall_cmds=$lt_postuninstall_cmds
26154 # Commands used to build a loadable module (assumed same as above if empty)
26155 module_cmds=$lt_module_cmds_GCJ
26156 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26158 # Commands to strip libraries.
26159 old_striplib=$lt_old_striplib
26160 striplib=$lt_striplib
26162 # Dependencies to place before the objects being linked to create a
26164 predep_objects=$lt_predep_objects_GCJ
26166 # Dependencies to place after the objects being linked to create a
26168 postdep_objects=$lt_postdep_objects_GCJ
26170 # Dependencies to place before the objects being linked to create a
26172 predeps=$lt_predeps_GCJ
26174 # Dependencies to place after the objects being linked to create a
26176 postdeps=$lt_postdeps_GCJ
26178 # The library search path used internally by the compiler when linking
26179 # a shared library.
26180 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26182 # Method to check whether dependent libraries are shared objects.
26183 deplibs_check_method=$lt_deplibs_check_method
26185 # Command to use when deplibs_check_method == file_magic.
26186 file_magic_cmd=$lt_file_magic_cmd
26188 # Flag that allows shared libraries with undefined symbols to be built.
26189 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26191 # Flag that forces no undefined symbols.
26192 no_undefined_flag=$lt_no_undefined_flag_GCJ
26194 # Commands used to finish a libtool library installation in a directory.
26195 finish_cmds=$lt_finish_cmds
26197 # Same as above, but a single script fragment to be evaled but not shown.
26198 finish_eval=$lt_finish_eval
26200 # Take the output of nm and produce a listing of raw symbols and C names.
26201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26203 # Transform the output of nm in a proper C declaration
26204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26206 # Transform the output of nm in a C name address pair
26207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26209 # This is the shared library runtime path variable.
26210 runpath_var=$runpath_var
26212 # This is the shared library path variable.
26213 shlibpath_var=$shlibpath_var
26215 # Is shlibpath searched before the hard-coded library search path?
26216 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26218 # How to hardcode a shared library path into an executable.
26219 hardcode_action=$hardcode_action_GCJ
26221 # Whether we should hardcode library paths into libraries.
26222 hardcode_into_libs=$hardcode_into_libs
26224 # Flag to hardcode \$libdir into a binary during linking.
26225 # This must work even if \$libdir does not exist.
26226 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26228 # If ld is used when linking, flag to hardcode \$libdir into
26229 # a binary during linking. This must work even if \$libdir does
26231 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26233 # Whether we need a single -rpath flag with a separated argument.
26234 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26236 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26237 # resulting binary.
26238 hardcode_direct=$hardcode_direct_GCJ
26240 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26241 # resulting binary.
26242 hardcode_minus_L=$hardcode_minus_L_GCJ
26244 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26245 # the resulting binary.
26246 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26248 # Set to yes if building a shared library automatically hardcodes DIR into the library
26249 # and all subsequent libraries and executables linked against it.
26250 hardcode_automatic=$hardcode_automatic_GCJ
26252 # Variables whose values should be saved in libtool wrapper scripts and
26253 # restored at relink time.
26254 variables_saved_for_relink="$variables_saved_for_relink"
26256 # Whether libtool must link a program against all its dependency libraries.
26257 link_all_deplibs=$link_all_deplibs_GCJ
26259 # Compile-time system search path for libraries
26260 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26262 # Run-time system search path for libraries
26263 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26265 # Fix the shell variable \$srcfile for the compiler.
26266 fix_srcfile_path="$fix_srcfile_path_GCJ"
26268 # Set to yes if exported symbols are required.
26269 always_export_symbols=$always_export_symbols_GCJ
26271 # The commands to list exported symbols.
26272 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26274 # The commands to extract the exported symbol list from a shared archive.
26275 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26277 # Symbols that should not be listed in the preloaded symbols.
26278 exclude_expsyms=$lt_exclude_expsyms_GCJ
26280 # Symbols that must always be exported.
26281 include_expsyms=$lt_include_expsyms_GCJ
26283 # ### END LIBTOOL TAG CONFIG: $tagname
26289 # If there is no Makefile yet, we rely on a make rule to execute
26290 # `config.status --recheck' to rerun these tests and create the
26291 # libtool script then.
26292 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26293 if test -f "$ltmain_in"; then
26294 test -f Makefile && make "$ltmain"
26300 ac_cpp='$CPP $CPPFLAGS'
26301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26314 ac_cpp='$CPP $CPPFLAGS'
26315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26320 # Source file extension for RC test sources.
26323 # Object file extension for compiled RC test sources.
26327 # Code to be used in simple compile tests
26328 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26330 # Code to be used in simple link tests
26331 lt_simple_link_test_code="$lt_simple_compile_test_code"
26333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26335 # If no C compiler was specified, use CC.
26338 # If no C compiler flags were specified, use CFLAGS.
26339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26341 # Allow CC to be a program name with arguments.
26345 # save warnings/boilerplate of simple test code
26346 ac_outfile=conftest.$ac_objext
26347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26349 _lt_compiler_boilerplate=`cat conftest.err`
26352 ac_outfile=conftest.$ac_objext
26353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26355 _lt_linker_boilerplate=`cat conftest.err`
26359 # Allow CC to be a program name with arguments.
26364 for cc_temp in $compiler""; do
26366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26374 lt_cv_prog_compiler_c_o_RC=yes
26376 # The else clause should only fire when bootstrapping the
26377 # libtool distribution, otherwise you forgot to ship ltmain.sh
26378 # with your package, and you will get complaints that there are
26379 # no rules to generate ltmain.sh.
26380 if test -f "$ltmain"; then
26381 # See if we are running on zsh, and set the options which allow our commands through
26382 # without removal of \ escapes.
26383 if test -n "${ZSH_VERSION+set}" ; then
26384 setopt NO_GLOB_SUBST
26386 # Now quote all the things that may contain metacharacters while being
26387 # careful not to overquote the AC_SUBSTed values. We take copies of the
26388 # variables and quote the copies for generation of the libtool script.
26389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26393 deplibs_check_method reload_flag reload_cmds need_locks \
26394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26395 lt_cv_sys_global_symbol_to_c_name_address \
26396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26397 old_postinstall_cmds old_postuninstall_cmds \
26401 lt_prog_compiler_wl_RC \
26402 lt_prog_compiler_pic_RC \
26403 lt_prog_compiler_static_RC \
26404 lt_prog_compiler_no_builtin_flag_RC \
26405 export_dynamic_flag_spec_RC \
26406 thread_safe_flag_spec_RC \
26407 whole_archive_flag_spec_RC \
26408 enable_shared_with_static_runtimes_RC \
26409 old_archive_cmds_RC \
26410 old_archive_from_new_cmds_RC \
26411 predep_objects_RC \
26412 postdep_objects_RC \
26415 compiler_lib_search_path_RC \
26417 archive_expsym_cmds_RC \
26418 postinstall_cmds_RC \
26419 postuninstall_cmds_RC \
26420 old_archive_from_expsyms_cmds_RC \
26421 allow_undefined_flag_RC \
26422 no_undefined_flag_RC \
26423 export_symbols_cmds_RC \
26424 hardcode_libdir_flag_spec_RC \
26425 hardcode_libdir_flag_spec_ld_RC \
26426 hardcode_libdir_separator_RC \
26427 hardcode_automatic_RC \
26429 module_expsym_cmds_RC \
26430 lt_cv_prog_compiler_c_o_RC \
26431 exclude_expsyms_RC \
26432 include_expsyms_RC; do
26435 old_archive_cmds_RC | \
26436 old_archive_from_new_cmds_RC | \
26437 archive_cmds_RC | \
26438 archive_expsym_cmds_RC | \
26440 module_expsym_cmds_RC | \
26441 old_archive_from_expsyms_cmds_RC | \
26442 export_symbols_cmds_RC | \
26443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26444 postinstall_cmds | postuninstall_cmds | \
26445 old_postinstall_cmds | old_postuninstall_cmds | \
26446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26447 # Double-quote double-evaled strings.
26448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26457 *'\$0 --fallback-echo"')
26458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26464 cat <<__EOF__ >> "$cfgfile"
26465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26469 # Shell to use when invoking shell scripts.
26472 # Whether or not to build shared libraries.
26473 build_libtool_libs=$enable_shared
26475 # Whether or not to build static libraries.
26476 build_old_libs=$enable_static
26478 # Whether or not to add -lc for building shared libraries.
26479 build_libtool_need_lc=$archive_cmds_need_lc_RC
26481 # Whether or not to disallow shared libs when runtime libs are static
26482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26484 # Whether or not to optimize for fast installation.
26485 fast_install=$enable_fast_install
26488 host_alias=$host_alias
26492 # The build system.
26493 build_alias=$build_alias
26497 # An echo program that does not interpret backslashes.
26502 AR_FLAGS=$lt_AR_FLAGS
26507 # LTCC compiler flags.
26508 LTCFLAGS=$lt_LTCFLAGS
26510 # A language-specific compiler.
26513 # Is the compiler the GNU C compiler?
26519 # The linker used to build libraries.
26522 # Whether we need hard or soft links.
26525 # A BSD-compatible nm program.
26528 # A symbol stripping program
26531 # Used to examine libraries when file_magic_cmd begins "file"
26532 MAGIC_CMD=$MAGIC_CMD
26534 # Used on cygwin: DLL creation program.
26537 # Used on cygwin: object dumper.
26540 # Used on cygwin: assembler.
26543 # The name of the directory that contains temporary libtool files.
26546 # How to create reloadable object files.
26547 reload_flag=$lt_reload_flag
26548 reload_cmds=$lt_reload_cmds
26550 # How to pass a linker flag through the compiler.
26551 wl=$lt_lt_prog_compiler_wl_RC
26553 # Object file suffix (normally "o").
26554 objext="$ac_objext"
26556 # Old archive suffix (normally "a").
26559 # Shared library suffix (normally ".so").
26560 shrext_cmds='$shrext_cmds'
26562 # Executable file suffix (normally "").
26565 # Additional compiler flags for building library objects.
26566 pic_flag=$lt_lt_prog_compiler_pic_RC
26569 # What is the maximum length of a command?
26570 max_cmd_len=$lt_cv_sys_max_cmd_len
26572 # Does compiler simultaneously support -c and -o options?
26573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26575 # Must we lock files when doing compilation?
26576 need_locks=$lt_need_locks
26578 # Do we need the lib prefix for modules?
26579 need_lib_prefix=$need_lib_prefix
26581 # Do we need a version for libraries?
26582 need_version=$need_version
26584 # Whether dlopen is supported.
26585 dlopen_support=$enable_dlopen
26587 # Whether dlopen of programs is supported.
26588 dlopen_self=$enable_dlopen_self
26590 # Whether dlopen of statically linked programs is supported.
26591 dlopen_self_static=$enable_dlopen_self_static
26593 # Compiler flag to prevent dynamic linking.
26594 link_static_flag=$lt_lt_prog_compiler_static_RC
26596 # Compiler flag to turn off builtin functions.
26597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26599 # Compiler flag to allow reflexive dlopens.
26600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26602 # Compiler flag to generate shared objects directly from archives.
26603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26605 # Compiler flag to generate thread-safe objects.
26606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26608 # Library versioning type.
26609 version_type=$version_type
26611 # Format of library name prefix.
26612 libname_spec=$lt_libname_spec
26614 # List of archive names. First name is the real one, the rest are links.
26615 # The last name is the one that the linker finds with -lNAME.
26616 library_names_spec=$lt_library_names_spec
26618 # The coded name of the library, if different from the real name.
26619 soname_spec=$lt_soname_spec
26621 # Commands used to build and install an old-style archive.
26623 old_archive_cmds=$lt_old_archive_cmds_RC
26624 old_postinstall_cmds=$lt_old_postinstall_cmds
26625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26627 # Create an old-style archive from a shared archive.
26628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26630 # Create a temporary old-style archive to link instead of a shared archive.
26631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26633 # Commands used to build and install a shared archive.
26634 archive_cmds=$lt_archive_cmds_RC
26635 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26636 postinstall_cmds=$lt_postinstall_cmds
26637 postuninstall_cmds=$lt_postuninstall_cmds
26639 # Commands used to build a loadable module (assumed same as above if empty)
26640 module_cmds=$lt_module_cmds_RC
26641 module_expsym_cmds=$lt_module_expsym_cmds_RC
26643 # Commands to strip libraries.
26644 old_striplib=$lt_old_striplib
26645 striplib=$lt_striplib
26647 # Dependencies to place before the objects being linked to create a
26649 predep_objects=$lt_predep_objects_RC
26651 # Dependencies to place after the objects being linked to create a
26653 postdep_objects=$lt_postdep_objects_RC
26655 # Dependencies to place before the objects being linked to create a
26657 predeps=$lt_predeps_RC
26659 # Dependencies to place after the objects being linked to create a
26661 postdeps=$lt_postdeps_RC
26663 # The library search path used internally by the compiler when linking
26664 # a shared library.
26665 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26667 # Method to check whether dependent libraries are shared objects.
26668 deplibs_check_method=$lt_deplibs_check_method
26670 # Command to use when deplibs_check_method == file_magic.
26671 file_magic_cmd=$lt_file_magic_cmd
26673 # Flag that allows shared libraries with undefined symbols to be built.
26674 allow_undefined_flag=$lt_allow_undefined_flag_RC
26676 # Flag that forces no undefined symbols.
26677 no_undefined_flag=$lt_no_undefined_flag_RC
26679 # Commands used to finish a libtool library installation in a directory.
26680 finish_cmds=$lt_finish_cmds
26682 # Same as above, but a single script fragment to be evaled but not shown.
26683 finish_eval=$lt_finish_eval
26685 # Take the output of nm and produce a listing of raw symbols and C names.
26686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26688 # Transform the output of nm in a proper C declaration
26689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26691 # Transform the output of nm in a C name address pair
26692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26694 # This is the shared library runtime path variable.
26695 runpath_var=$runpath_var
26697 # This is the shared library path variable.
26698 shlibpath_var=$shlibpath_var
26700 # Is shlibpath searched before the hard-coded library search path?
26701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26703 # How to hardcode a shared library path into an executable.
26704 hardcode_action=$hardcode_action_RC
26706 # Whether we should hardcode library paths into libraries.
26707 hardcode_into_libs=$hardcode_into_libs
26709 # Flag to hardcode \$libdir into a binary during linking.
26710 # This must work even if \$libdir does not exist.
26711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26713 # If ld is used when linking, flag to hardcode \$libdir into
26714 # a binary during linking. This must work even if \$libdir does
26716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26718 # Whether we need a single -rpath flag with a separated argument.
26719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26722 # resulting binary.
26723 hardcode_direct=$hardcode_direct_RC
26725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26726 # resulting binary.
26727 hardcode_minus_L=$hardcode_minus_L_RC
26729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26730 # the resulting binary.
26731 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26733 # Set to yes if building a shared library automatically hardcodes DIR into the library
26734 # and all subsequent libraries and executables linked against it.
26735 hardcode_automatic=$hardcode_automatic_RC
26737 # Variables whose values should be saved in libtool wrapper scripts and
26738 # restored at relink time.
26739 variables_saved_for_relink="$variables_saved_for_relink"
26741 # Whether libtool must link a program against all its dependency libraries.
26742 link_all_deplibs=$link_all_deplibs_RC
26744 # Compile-time system search path for libraries
26745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26747 # Run-time system search path for libraries
26748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26750 # Fix the shell variable \$srcfile for the compiler.
26751 fix_srcfile_path="$fix_srcfile_path_RC"
26753 # Set to yes if exported symbols are required.
26754 always_export_symbols=$always_export_symbols_RC
26756 # The commands to list exported symbols.
26757 export_symbols_cmds=$lt_export_symbols_cmds_RC
26759 # The commands to extract the exported symbol list from a shared archive.
26760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26762 # Symbols that should not be listed in the preloaded symbols.
26763 exclude_expsyms=$lt_exclude_expsyms_RC
26765 # Symbols that must always be exported.
26766 include_expsyms=$lt_include_expsyms_RC
26768 # ### END LIBTOOL TAG CONFIG: $tagname
26774 # If there is no Makefile yet, we rely on a make rule to execute
26775 # `config.status --recheck' to rerun these tests and create the
26776 # libtool script then.
26777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26778 if test -f "$ltmain_in"; then
26779 test -f Makefile && make "$ltmain"
26785 ac_cpp='$CPP $CPPFLAGS'
26786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26796 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26797 { (exit 1); exit 1; }; }
26801 # Append the new tag name to the list of available tags.
26802 if test -n "$tagname" ; then
26803 available_tags="$available_tags $tagname"
26809 # Now substitute the updated list of available tags.
26810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26811 mv "${ofile}T" "$ofile"
26815 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26816 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26817 { (exit 1); exit 1; }; }
26823 # This can be used to rebuild libtool when needed
26824 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26826 # Always use our own libtool.
26827 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26829 # Prevent multiple expansion
26851 if test "$lt_cv_dlopen_self" = "yes" ; then
26853 cat >>confdefs.h <<\_ACEOF
26854 #define CAN_DLOPEN_SELF 1
26860 if test "$WITH_LLVMGCCDIR" = "default" ; then
26861 LLVMGCC="llvm-gcc${EXEEXT}"
26862 LLVMGXX="llvm-g++${EXEEXT}"
26863 LLVMGCCCOMMAND="$LLVMGCC"
26864 LLVMGXXCOMMAND="$LLVMGXX"
26865 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26867 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26869 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26870 set dummy $LLVMGCC; ac_word=$2
26871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26873 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26882 for as_dir in $PATH
26885 test -z "$as_dir" && as_dir=.
26886 for ac_exec_ext in '' $ac_executable_extensions; do
26887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26888 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26899 LLVMGCC=$ac_cv_path_LLVMGCC
26900 if test -n "$LLVMGCC"; then
26901 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26902 echo "${ECHO_T}$LLVMGCC" >&6; }
26904 { echo "$as_me:$LINENO: result: no" >&5
26905 echo "${ECHO_T}no" >&6; }
26909 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26910 set dummy $LLVMGXX; ac_word=$2
26911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26913 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26922 for as_dir in $PATH
26925 test -z "$as_dir" && as_dir=.
26926 for ac_exec_ext in '' $ac_executable_extensions; do
26927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26928 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26939 LLVMGXX=$ac_cv_path_LLVMGXX
26940 if test -n "$LLVMGXX"; then
26941 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26942 echo "${ECHO_T}$LLVMGXX" >&6; }
26944 { echo "$as_me:$LINENO: result: no" >&5
26945 echo "${ECHO_T}no" >&6; }
26950 if test -z "$LLVMGCC"; then
26951 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26952 LLVMGCCCOMMAND="$LLVMGCC"
26954 if test -z "$LLVMGXX"; then
26955 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26956 LLVMGXXCOMMAND="$LLVMGXX"
26963 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26965 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26970 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26971 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26984 if test "$GCC" != "yes" && test "$ICC" != "yes"
26986 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26987 echo "$as_me: error: gcc|icc required but not found" >&2;}
26988 { (exit 1); exit 1; }; }
26991 if test "$GXX" != "yes" && test "$IXX" != "yes"
26993 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26994 echo "$as_me: error: g++|icc required but not found" >&2;}
26995 { (exit 1); exit 1; }; }
26998 if test "$GCC" = "yes"
27000 cat >conftest.$ac_ext <<_ACEOF
27001 #if !defined(__GNUC__) || __GNUC__ < 3
27002 #error Unsupported GCC version
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
27015 grep -v '^ *+' conftest.er1 >conftest.err
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } &&
27020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27021 { (case "(($ac_try" in
27022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023 *) ac_try_echo=$ac_try;;
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026 (eval "$ac_try") 2>&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27045 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27046 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27047 { (exit 1); exit 1; }; }
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27053 if test -z "$llvm_cv_gnu_make_command"
27055 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27056 echo "$as_me: error: GNU Make required but not found" >&2;}
27057 { (exit 1); exit 1; }; }
27060 { echo "$as_me:$LINENO: result: ok" >&5
27061 echo "${ECHO_T}ok" >&6; }
27065 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27066 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27067 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27068 echo $ECHO_N "(cached) $ECHO_C" >&6
27070 ac_check_lib_save_LIBS=$LIBS
27072 cat >conftest.$ac_ext <<_ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27079 /* Override any GCC internal prototype to avoid an error.
27080 Use char because int might match the return type of a GCC
27081 builtin and then its argument prototype would still apply. */
27089 return elf_begin ();
27094 rm -f conftest.$ac_objext conftest$ac_exeext
27095 if { (ac_try="$ac_link"
27096 case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_link") 2>conftest.er1
27103 grep -v '^ *+' conftest.er1 >conftest.err
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } &&
27108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27109 { (case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_try") 2>&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; } &&
27118 { ac_try='test -s conftest$ac_exeext'
27119 { (case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_try") 2>&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; }; then
27128 ac_cv_lib_elf_elf_begin=yes
27130 echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27133 ac_cv_lib_elf_elf_begin=no
27136 rm -f core conftest.err conftest.$ac_objext \
27137 conftest$ac_exeext conftest.$ac_ext
27138 LIBS=$ac_check_lib_save_LIBS
27140 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27141 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27142 if test $ac_cv_lib_elf_elf_begin = yes; then
27143 cat >>confdefs.h <<_ACEOF
27144 #define HAVE_LIBELF 1
27152 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27153 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27154 if test "${ac_cv_lib_m_sin+set}" = set; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 ac_check_lib_save_LIBS=$LIBS
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27166 /* Override any GCC internal prototype to avoid an error.
27167 Use char because int might match the return type of a GCC
27168 builtin and then its argument prototype would still apply. */
27181 rm -f conftest.$ac_objext conftest$ac_exeext
27182 if { (ac_try="$ac_link"
27183 case "(($ac_try" in
27184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185 *) ac_try_echo=$ac_try;;
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188 (eval "$ac_link") 2>conftest.er1
27190 grep -v '^ *+' conftest.er1 >conftest.err
27192 cat conftest.err >&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } &&
27195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
27206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 ac_cv_lib_m_sin=yes
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27223 rm -f core conftest.err conftest.$ac_objext \
27224 conftest$ac_exeext conftest.$ac_ext
27225 LIBS=$ac_check_lib_save_LIBS
27227 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27228 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27229 if test $ac_cv_lib_m_sin = yes; then
27230 cat >>confdefs.h <<_ACEOF
27231 #define HAVE_LIBM 1
27238 if test "$llvm_cv_os_type" = "MingW" ; then
27240 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27241 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27242 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 ac_check_lib_save_LIBS=$LIBS
27246 LIBS="-limagehlp $LIBS"
27247 cat >conftest.$ac_ext <<_ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h. */
27263 rm -f conftest.$ac_objext conftest$ac_exeext
27264 if { (ac_try="$ac_link"
27265 case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_link") 2>conftest.er1
27272 grep -v '^ *+' conftest.er1 >conftest.err
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } &&
27277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest$ac_exeext'
27288 { (case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_try") 2>&5
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }; then
27297 ac_cv_lib_imagehlp_main=yes
27299 echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27302 ac_cv_lib_imagehlp_main=no
27305 rm -f core conftest.err conftest.$ac_objext \
27306 conftest$ac_exeext conftest.$ac_ext
27307 LIBS=$ac_check_lib_save_LIBS
27309 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27310 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27311 if test $ac_cv_lib_imagehlp_main = yes; then
27312 cat >>confdefs.h <<_ACEOF
27313 #define HAVE_LIBIMAGEHLP 1
27316 LIBS="-limagehlp $LIBS"
27321 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27322 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27323 if test "${ac_cv_lib_psapi_main+set}" = set; then
27324 echo $ECHO_N "(cached) $ECHO_C" >&6
27326 ac_check_lib_save_LIBS=$LIBS
27327 LIBS="-lpsapi $LIBS"
27328 cat >conftest.$ac_ext <<_ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h. */
27344 rm -f conftest.$ac_objext conftest$ac_exeext
27345 if { (ac_try="$ac_link"
27346 case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_link") 2>conftest.er1
27353 grep -v '^ *+' conftest.er1 >conftest.err
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } &&
27358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27359 { (case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_try") 2>&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; } &&
27368 { ac_try='test -s conftest$ac_exeext'
27369 { (case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_try") 2>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
27378 ac_cv_lib_psapi_main=yes
27380 echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27383 ac_cv_lib_psapi_main=no
27386 rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
27388 LIBS=$ac_check_lib_save_LIBS
27390 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27391 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27392 if test $ac_cv_lib_psapi_main = yes; then
27393 cat >>confdefs.h <<_ACEOF
27394 #define HAVE_LIBPSAPI 1
27397 LIBS="-lpsapi $LIBS"
27403 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27404 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27405 if test "${ac_cv_search_dlopen+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27408 ac_func_search_save_LIBS=$LIBS
27409 cat >conftest.$ac_ext <<_ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27416 /* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27431 for ac_lib in '' dl; do
27432 if test -z "$ac_lib"; then
27433 ac_res="none required"
27436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_link") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } &&
27452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27453 { (case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_try") 2>&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; } &&
27462 { ac_try='test -s conftest$ac_exeext'
27463 { (case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_try") 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 ac_cv_search_dlopen=$ac_res
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27480 rm -f core conftest.err conftest.$ac_objext \
27482 if test "${ac_cv_search_dlopen+set}" = set; then
27486 if test "${ac_cv_search_dlopen+set}" = set; then
27489 ac_cv_search_dlopen=no
27491 rm conftest.$ac_ext
27492 LIBS=$ac_func_search_save_LIBS
27494 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27495 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27496 ac_res=$ac_cv_search_dlopen
27497 if test "$ac_res" != no; then
27498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27500 cat >>confdefs.h <<\_ACEOF
27501 #define HAVE_DLOPEN 1
27505 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27506 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27510 if test "$llvm_cv_enable_libffi" = "yes" ; then
27511 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27512 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27513 if test "${ac_cv_search_ffi_call+set}" = set; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 ac_func_search_save_LIBS=$LIBS
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27524 /* Override any GCC internal prototype to avoid an error.
27525 Use char because int might match the return type of a GCC
27526 builtin and then its argument prototype would still apply. */
27534 return ffi_call ();
27539 for ac_lib in '' ffi; do
27540 if test -z "$ac_lib"; then
27541 ac_res="none required"
27544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27546 rm -f conftest.$ac_objext conftest$ac_exeext
27547 if { (ac_try="$ac_link"
27548 case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_link") 2>conftest.er1
27555 grep -v '^ *+' conftest.er1 >conftest.err
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561 { (case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_try") 2>&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_search_ffi_call=$ac_res
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27588 rm -f core conftest.err conftest.$ac_objext \
27590 if test "${ac_cv_search_ffi_call+set}" = set; then
27594 if test "${ac_cv_search_ffi_call+set}" = set; then
27597 ac_cv_search_ffi_call=no
27599 rm conftest.$ac_ext
27600 LIBS=$ac_func_search_save_LIBS
27602 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27603 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27604 ac_res=$ac_cv_search_ffi_call
27605 if test "$ac_res" != no; then
27606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27608 cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_FFI_CALL 1
27613 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27614 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27619 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27620 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27621 if test "${ac_cv_search_mallinfo+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27624 ac_func_search_save_LIBS=$LIBS
27625 cat >conftest.$ac_ext <<_ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27632 /* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
27642 return mallinfo ();
27647 for ac_lib in '' malloc; do
27648 if test -z "$ac_lib"; then
27649 ac_res="none required"
27652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27654 rm -f conftest.$ac_objext conftest$ac_exeext
27655 if { (ac_try="$ac_link"
27656 case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_link") 2>conftest.er1
27663 grep -v '^ *+' conftest.er1 >conftest.err
27665 cat conftest.err >&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); } &&
27668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27669 { (case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_try") 2>&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest$ac_exeext'
27679 { (case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_try") 2>&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
27688 ac_cv_search_mallinfo=$ac_res
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27696 rm -f core conftest.err conftest.$ac_objext \
27698 if test "${ac_cv_search_mallinfo+set}" = set; then
27702 if test "${ac_cv_search_mallinfo+set}" = set; then
27705 ac_cv_search_mallinfo=no
27707 rm conftest.$ac_ext
27708 LIBS=$ac_func_search_save_LIBS
27710 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27711 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27712 ac_res=$ac_cv_search_mallinfo
27713 if test "$ac_res" != no; then
27714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27716 cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_MALLINFO 1
27723 if test "$ENABLE_THREADS" -eq 1 ; then
27725 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27726 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27727 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 ac_check_lib_save_LIBS=$LIBS
27731 LIBS="-lpthread $LIBS"
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27739 /* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
27745 char pthread_mutex_init ();
27749 return pthread_mutex_init ();
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_link") 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
27788 ac_cv_lib_pthread_pthread_mutex_init=yes
27790 echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27793 ac_cv_lib_pthread_pthread_mutex_init=no
27796 rm -f core conftest.err conftest.$ac_objext \
27797 conftest$ac_exeext conftest.$ac_ext
27798 LIBS=$ac_check_lib_save_LIBS
27800 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27801 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27802 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27803 cat >>confdefs.h <<_ACEOF
27804 #define HAVE_LIBPTHREAD 1
27807 LIBS="-lpthread $LIBS"
27811 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27812 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27813 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27816 ac_func_search_save_LIBS=$LIBS
27817 cat >conftest.$ac_ext <<_ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h. */
27824 /* Override any GCC internal prototype to avoid an error.
27825 Use char because int might match the return type of a GCC
27826 builtin and then its argument prototype would still apply. */
27830 char pthread_mutex_lock ();
27834 return pthread_mutex_lock ();
27839 for ac_lib in '' pthread; do
27840 if test -z "$ac_lib"; then
27841 ac_res="none required"
27844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27846 rm -f conftest.$ac_objext conftest$ac_exeext
27847 if { (ac_try="$ac_link"
27848 case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853 (eval "$ac_link") 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
27860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest$ac_exeext'
27871 { (case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_try") 2>&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
27880 ac_cv_search_pthread_mutex_lock=$ac_res
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27888 rm -f core conftest.err conftest.$ac_objext \
27890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27894 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27897 ac_cv_search_pthread_mutex_lock=no
27899 rm conftest.$ac_ext
27900 LIBS=$ac_func_search_save_LIBS
27902 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27903 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27904 ac_res=$ac_cv_search_pthread_mutex_lock
27905 if test "$ac_res" != no; then
27906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27908 cat >>confdefs.h <<\_ACEOF
27909 #define HAVE_PTHREAD_MUTEX_LOCK 1
27914 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27915 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27916 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 ac_func_search_save_LIBS=$LIBS
27920 cat >conftest.$ac_ext <<_ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h. */
27927 /* Override any GCC internal prototype to avoid an error.
27928 Use char because int might match the return type of a GCC
27929 builtin and then its argument prototype would still apply. */
27933 char pthread_rwlock_init ();
27937 return pthread_rwlock_init ();
27942 for ac_lib in '' pthread; do
27943 if test -z "$ac_lib"; then
27944 ac_res="none required"
27947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27949 rm -f conftest.$ac_objext conftest$ac_exeext
27950 if { (ac_try="$ac_link"
27951 case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956 (eval "$ac_link") 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
27963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27964 { (case "(($ac_try" in
27965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966 *) ac_try_echo=$ac_try;;
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969 (eval "$ac_try") 2>&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest$ac_exeext'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; }; then
27983 ac_cv_search_pthread_rwlock_init=$ac_res
27985 echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27991 rm -f core conftest.err conftest.$ac_objext \
27993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27997 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28000 ac_cv_search_pthread_rwlock_init=no
28002 rm conftest.$ac_ext
28003 LIBS=$ac_func_search_save_LIBS
28005 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28006 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28007 ac_res=$ac_cv_search_pthread_rwlock_init
28008 if test "$ac_res" != no; then
28009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28011 cat >>confdefs.h <<\_ACEOF
28012 #define HAVE_PTHREAD_RWLOCK_INIT 1
28020 # Check whether --with-udis86 was given.
28021 if test "${with_udis86+set}" = set; then
28022 withval=$with_udis86;
28027 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28030 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28031 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28032 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28033 echo $ECHO_N "(cached) $ECHO_C" >&6
28035 ac_check_lib_save_LIBS=$LIBS
28036 LIBS="-ludis86 $LIBS"
28037 cat >conftest.$ac_ext <<_ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h. */
28044 /* Override any GCC internal prototype to avoid an error.
28045 Use char because int might match the return type of a GCC
28046 builtin and then its argument prototype would still apply. */
28059 rm -f conftest.$ac_objext conftest$ac_exeext
28060 if { (ac_try="$ac_link"
28061 case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_link") 2>conftest.er1
28068 grep -v '^ *+' conftest.er1 >conftest.err
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } &&
28073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28074 { (case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_try") 2>&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; } &&
28083 { ac_try='test -s conftest$ac_exeext'
28084 { (case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_try") 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_lib_udis86_ud_init=yes
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_cv_lib_udis86_ud_init=no
28101 rm -f core conftest.err conftest.$ac_objext \
28102 conftest$ac_exeext conftest.$ac_ext
28103 LIBS=$ac_check_lib_save_LIBS
28105 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28106 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28107 if test $ac_cv_lib_udis86_ud_init = yes; then
28108 cat >>confdefs.h <<_ACEOF
28109 #define HAVE_LIBUDIS86 1
28112 LIBS="-ludis86 $LIBS"
28116 echo "Error! You need to have libudis86 around."
28128 cat >>confdefs.h <<_ACEOF
28129 #define USE_UDIS86 $USE_UDIS86
28139 ac_header_dirent=no
28140 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28141 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28142 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28143 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28147 cat >conftest.$ac_ext <<_ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28153 #include <sys/types.h>
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_compile") 2>conftest.er1
28174 grep -v '^ *+' conftest.er1 >conftest.err
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } &&
28179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28180 { (case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_try") 2>&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; } &&
28189 { ac_try='test -s conftest.$ac_objext'
28190 { (case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_try") 2>&5
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); }; }; then
28199 eval "$as_ac_Header=yes"
28201 echo "$as_me: failed program was:" >&5
28202 sed 's/^/| /' conftest.$ac_ext >&5
28204 eval "$as_ac_Header=no"
28207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28209 ac_res=`eval echo '${'$as_ac_Header'}'`
28210 { echo "$as_me:$LINENO: result: $ac_res" >&5
28211 echo "${ECHO_T}$ac_res" >&6; }
28212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28213 cat >>confdefs.h <<_ACEOF
28214 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28217 ac_header_dirent=$ac_hdr; break
28221 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28222 if test $ac_header_dirent = dirent.h; then
28223 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28224 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28225 if test "${ac_cv_search_opendir+set}" = set; then
28226 echo $ECHO_N "(cached) $ECHO_C" >&6
28228 ac_func_search_save_LIBS=$LIBS
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28236 /* Override any GCC internal prototype to avoid an error.
28237 Use char because int might match the return type of a GCC
28238 builtin and then its argument prototype would still apply. */
28251 for ac_lib in '' dir; do
28252 if test -z "$ac_lib"; then
28253 ac_res="none required"
28256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (ac_try="$ac_link"
28260 case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_link") 2>conftest.er1
28267 grep -v '^ *+' conftest.er1 >conftest.err
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest$ac_exeext'
28283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 ac_cv_search_opendir=$ac_res
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28300 rm -f core conftest.err conftest.$ac_objext \
28302 if test "${ac_cv_search_opendir+set}" = set; then
28306 if test "${ac_cv_search_opendir+set}" = set; then
28309 ac_cv_search_opendir=no
28311 rm conftest.$ac_ext
28312 LIBS=$ac_func_search_save_LIBS
28314 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28315 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28316 ac_res=$ac_cv_search_opendir
28317 if test "$ac_res" != no; then
28318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28323 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28324 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28325 if test "${ac_cv_search_opendir+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 ac_func_search_save_LIBS=$LIBS
28329 cat >conftest.$ac_ext <<_ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28336 /* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
28351 for ac_lib in '' x; do
28352 if test -z "$ac_lib"; then
28353 ac_res="none required"
28356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (ac_try="$ac_link"
28360 case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_link") 2>conftest.er1
28367 grep -v '^ *+' conftest.er1 >conftest.err
28369 cat conftest.err >&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
28372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28373 { (case "(($ac_try" in
28374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375 *) ac_try_echo=$ac_try;;
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_try") 2>&5
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest$ac_exeext'
28383 { (case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_try") 2>&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
28392 ac_cv_search_opendir=$ac_res
28394 echo "$as_me: failed program was:" >&5
28395 sed 's/^/| /' conftest.$ac_ext >&5
28400 rm -f core conftest.err conftest.$ac_objext \
28402 if test "${ac_cv_search_opendir+set}" = set; then
28406 if test "${ac_cv_search_opendir+set}" = set; then
28409 ac_cv_search_opendir=no
28411 rm conftest.$ac_ext
28412 LIBS=$ac_func_search_save_LIBS
28414 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28415 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28416 ac_res=$ac_cv_search_opendir
28417 if test "$ac_res" != no; then
28418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28424 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28425 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28426 if test "${ac_cv_header_mmap_anon+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28430 ac_cpp='$CPP $CPPFLAGS'
28431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 #include <sys/mman.h>
28442 #include <unistd.h>
28447 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28452 rm -f conftest.$ac_objext
28453 if { (ac_try="$ac_compile"
28454 case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_compile") 2>conftest.er1
28461 grep -v '^ *+' conftest.er1 >conftest.err
28463 cat conftest.err >&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); } &&
28466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; } &&
28476 { ac_try='test -s conftest.$ac_objext'
28477 { (case "(($ac_try" in
28478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 *) ac_try_echo=$ac_try;;
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482 (eval "$ac_try") 2>&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
28486 ac_cv_header_mmap_anon=yes
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_cv_header_mmap_anon=no
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496 ac_cpp='$CPP $CPPFLAGS'
28497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28503 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28504 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28505 if test "$ac_cv_header_mmap_anon" = yes; then
28507 cat >>confdefs.h <<\_ACEOF
28508 #define HAVE_MMAP_ANONYMOUS 1
28513 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28514 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28515 if test "${ac_cv_header_stat_broken+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524 #include <sys/types.h>
28525 #include <sys/stat.h>
28527 #if defined S_ISBLK && defined S_IFDIR
28528 # if S_ISBLK (S_IFDIR)
28533 #if defined S_ISBLK && defined S_IFCHR
28534 # if S_ISBLK (S_IFCHR)
28539 #if defined S_ISLNK && defined S_IFREG
28540 # if S_ISLNK (S_IFREG)
28545 #if defined S_ISSOCK && defined S_IFREG
28546 # if S_ISSOCK (S_IFREG)
28552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28553 $EGREP "You lose" >/dev/null 2>&1; then
28554 ac_cv_header_stat_broken=yes
28556 ac_cv_header_stat_broken=no
28561 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28562 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28563 if test $ac_cv_header_stat_broken = yes; then
28565 cat >>confdefs.h <<\_ACEOF
28566 #define STAT_MACROS_BROKEN 1
28571 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28573 if test "${ac_cv_header_stdc+set}" = set; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28576 cat >conftest.$ac_ext <<_ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28582 #include <stdlib.h>
28583 #include <stdarg.h>
28584 #include <string.h>
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest.$ac_objext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_cv_header_stdc=yes
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_cv_header_stdc=no
28637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28639 if test $ac_cv_header_stdc = yes; then
28640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 #include <string.h>
28650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28651 $EGREP "memchr" >/dev/null 2>&1; then
28654 ac_cv_header_stdc=no
28660 if test $ac_cv_header_stdc = yes; then
28661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28662 cat >conftest.$ac_ext <<_ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <stdlib.h>
28671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28672 $EGREP "free" >/dev/null 2>&1; then
28675 ac_cv_header_stdc=no
28681 if test $ac_cv_header_stdc = yes; then
28682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28683 if test "$cross_compiling" = yes; then
28686 cat >conftest.$ac_ext <<_ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h. */
28693 #include <stdlib.h>
28694 #if ((' ' & 0x0FF) == 0x020)
28695 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28696 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28698 # define ISLOWER(c) \
28699 (('a' <= (c) && (c) <= 'i') \
28700 || ('j' <= (c) && (c) <= 'r') \
28701 || ('s' <= (c) && (c) <= 'z'))
28702 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28705 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28710 for (i = 0; i < 256; i++)
28711 if (XOR (islower (i), ISLOWER (i))
28712 || toupper (i) != TOUPPER (i))
28717 rm -f conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_link") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28739 echo "$as_me: program exited with status $ac_status" >&5
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ( exit $ac_status )
28744 ac_cv_header_stdc=no
28746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28752 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28753 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28754 if test $ac_cv_header_stdc = yes; then
28756 cat >>confdefs.h <<\_ACEOF
28757 #define STDC_HEADERS 1
28762 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28763 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28764 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 cat >conftest.$ac_ext <<_ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h. */
28773 #include <sys/types.h>
28774 #include <sys/wait.h>
28775 #ifndef WEXITSTATUS
28776 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28779 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28787 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28792 rm -f conftest.$ac_objext
28793 if { (ac_try="$ac_compile"
28794 case "(($ac_try" in
28795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799 (eval "$ac_compile") 2>conftest.er1
28801 grep -v '^ *+' conftest.er1 >conftest.err
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } &&
28806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28807 { (case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_try") 2>&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; } &&
28816 { ac_try='test -s conftest.$ac_objext'
28817 { (case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_try") 2>&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; }; then
28826 ac_cv_header_sys_wait_h=yes
28828 echo "$as_me: failed program was:" >&5
28829 sed 's/^/| /' conftest.$ac_ext >&5
28831 ac_cv_header_sys_wait_h=no
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28837 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28838 if test $ac_cv_header_sys_wait_h = yes; then
28840 cat >>confdefs.h <<\_ACEOF
28841 #define HAVE_SYS_WAIT_H 1
28846 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28847 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28848 if test "${ac_cv_header_time+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28851 cat >conftest.$ac_ext <<_ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28857 #include <sys/types.h>
28858 #include <sys/time.h>
28864 if ((struct tm *) 0)
28870 rm -f conftest.$ac_objext
28871 if { (ac_try="$ac_compile"
28872 case "(($ac_try" in
28873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874 *) ac_try_echo=$ac_try;;
28876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877 (eval "$ac_compile") 2>conftest.er1
28879 grep -v '^ *+' conftest.er1 >conftest.err
28881 cat conftest.err >&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); } &&
28884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28885 { (case "(($ac_try" in
28886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28887 *) ac_try_echo=$ac_try;;
28889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28890 (eval "$ac_try") 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; } &&
28894 { ac_try='test -s conftest.$ac_objext'
28895 { (case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_try") 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
28904 ac_cv_header_time=yes
28906 echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28909 ac_cv_header_time=no
28912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28914 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28915 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28916 if test $ac_cv_header_time = yes; then
28918 cat >>confdefs.h <<\_ACEOF
28919 #define TIME_WITH_SYS_TIME 1
28931 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28938 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 ac_res=`eval echo '${'$as_ac_Header'}'`
28941 { echo "$as_me:$LINENO: result: $ac_res" >&5
28942 echo "${ECHO_T}$ac_res" >&6; }
28944 # Is the header compilable?
28945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 $ac_includes_default
28954 #include <$ac_header>
28956 rm -f conftest.$ac_objext
28957 if { (ac_try="$ac_compile"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_compile") 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } &&
28970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28971 { (case "(($ac_try" in
28972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973 *) ac_try_echo=$ac_try;;
28975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976 (eval "$ac_try") 2>&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; } &&
28980 { ac_try='test -s conftest.$ac_objext'
28981 { (case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_try") 2>&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; }; then
28990 ac_header_compiler=yes
28992 echo "$as_me: failed program was:" >&5
28993 sed 's/^/| /' conftest.$ac_ext >&5
28995 ac_header_compiler=no
28998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29000 echo "${ECHO_T}$ac_header_compiler" >&6; }
29002 # Is the header present?
29003 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29005 cat >conftest.$ac_ext <<_ACEOF
29008 cat confdefs.h >>conftest.$ac_ext
29009 cat >>conftest.$ac_ext <<_ACEOF
29010 /* end confdefs.h. */
29011 #include <$ac_header>
29013 if { (ac_try="$ac_cpp conftest.$ac_ext"
29014 case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29021 grep -v '^ *+' conftest.er1 >conftest.err
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } >/dev/null; then
29026 if test -s conftest.err; then
29027 ac_cpp_err=$ac_c_preproc_warn_flag
29028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29035 if test -z "$ac_cpp_err"; then
29036 ac_header_preproc=yes
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_header_preproc=no
29044 rm -f conftest.err conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29046 echo "${ECHO_T}$ac_header_preproc" >&6; }
29048 # So? What about this header?
29049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29055 ac_header_preproc=yes
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29071 ## ----------------------------------- ##
29072 ## Report this to llvmbugs@cs.uiuc.edu ##
29073 ## ----------------------------------- ##
29075 ) | sed "s/^/$as_me: WARNING: /" >&2
29078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29083 eval "$as_ac_Header=\$ac_header_preproc"
29085 ac_res=`eval echo '${'$as_ac_Header'}'`
29086 { echo "$as_me:$LINENO: result: $ac_res" >&5
29087 echo "${ECHO_T}$ac_res" >&6; }
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 cat >>confdefs.h <<_ACEOF
29092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29105 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 ac_res=`eval echo '${'$as_ac_Header'}'`
29115 { echo "$as_me:$LINENO: result: $ac_res" >&5
29116 echo "${ECHO_T}$ac_res" >&6; }
29118 # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 $ac_includes_default
29128 #include <$ac_header>
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_compile") 2>conftest.er1
29139 grep -v '^ *+' conftest.er1 >conftest.err
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } &&
29144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145 { (case "(($ac_try" in
29146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147 *) ac_try_echo=$ac_try;;
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150 (eval "$ac_try") 2>&5
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; } &&
29154 { ac_try='test -s conftest.$ac_objext'
29155 { (case "(($ac_try" in
29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157 *) ac_try_echo=$ac_try;;
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160 (eval "$ac_try") 2>&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 ac_header_compiler=yes
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29169 ac_header_compiler=no
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 #include <$ac_header>
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29195 grep -v '^ *+' conftest.er1 >conftest.err
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } >/dev/null; then
29200 if test -s conftest.err; then
29201 ac_cpp_err=$ac_c_preproc_warn_flag
29202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29209 if test -z "$ac_cpp_err"; then
29210 ac_header_preproc=yes
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29215 ac_header_preproc=no
29218 rm -f conftest.err conftest.$ac_ext
29219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 echo "${ECHO_T}$ac_header_preproc" >&6; }
29222 # So? What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229 ac_header_preproc=yes
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29245 ## ----------------------------------- ##
29246 ## Report this to llvmbugs@cs.uiuc.edu ##
29247 ## ----------------------------------- ##
29249 ) | sed "s/^/$as_me: WARNING: /" >&2
29252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 eval "$as_ac_Header=\$ac_header_preproc"
29259 ac_res=`eval echo '${'$as_ac_Header'}'`
29260 { echo "$as_me:$LINENO: result: $ac_res" >&5
29261 echo "${ECHO_T}$ac_res" >&6; }
29264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29275 for ac_header in utime.h windows.h
29277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 ac_res=`eval echo '${'$as_ac_Header'}'`
29285 { echo "$as_me:$LINENO: result: $ac_res" >&5
29286 echo "${ECHO_T}$ac_res" >&6; }
29288 # Is the header compilable?
29289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29291 cat >conftest.$ac_ext <<_ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h. */
29297 $ac_includes_default
29298 #include <$ac_header>
29300 rm -f conftest.$ac_objext
29301 if { (ac_try="$ac_compile"
29302 case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_compile") 2>conftest.er1
29309 grep -v '^ *+' conftest.er1 >conftest.err
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_header_compiler=yes
29336 echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29339 ac_header_compiler=no
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29344 echo "${ECHO_T}$ac_header_compiler" >&6; }
29346 # Is the header present?
29347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29349 cat >conftest.$ac_ext <<_ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29355 #include <$ac_header>
29357 if { (ac_try="$ac_cpp conftest.$ac_ext"
29358 case "(($ac_try" in
29359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360 *) ac_try_echo=$ac_try;;
29362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29365 grep -v '^ *+' conftest.er1 >conftest.err
29367 cat conftest.err >&5
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); } >/dev/null; then
29370 if test -s conftest.err; then
29371 ac_cpp_err=$ac_c_preproc_warn_flag
29372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29379 if test -z "$ac_cpp_err"; then
29380 ac_header_preproc=yes
29382 echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29385 ac_header_preproc=no
29388 rm -f conftest.err conftest.$ac_ext
29389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29390 echo "${ECHO_T}$ac_header_preproc" >&6; }
29392 # So? What about this header?
29393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29399 ac_header_preproc=yes
29402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29415 ## ----------------------------------- ##
29416 ## Report this to llvmbugs@cs.uiuc.edu ##
29417 ## ----------------------------------- ##
29419 ) | sed "s/^/$as_me: WARNING: /" >&2
29422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29427 eval "$as_ac_Header=\$ac_header_preproc"
29429 ac_res=`eval echo '${'$as_ac_Header'}'`
29430 { echo "$as_me:$LINENO: result: $ac_res" >&5
29431 echo "${ECHO_T}$ac_res" >&6; }
29434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29435 cat >>confdefs.h <<_ACEOF
29436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29447 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29454 echo $ECHO_N "(cached) $ECHO_C" >&6
29456 ac_res=`eval echo '${'$as_ac_Header'}'`
29457 { echo "$as_me:$LINENO: result: $ac_res" >&5
29458 echo "${ECHO_T}$ac_res" >&6; }
29460 # Is the header compilable?
29461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 $ac_includes_default
29470 #include <$ac_header>
29472 rm -f conftest.$ac_objext
29473 if { (ac_try="$ac_compile"
29474 case "(($ac_try" in
29475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476 *) ac_try_echo=$ac_try;;
29478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479 (eval "$ac_compile") 2>conftest.er1
29481 grep -v '^ *+' conftest.er1 >conftest.err
29483 cat conftest.err >&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); } &&
29486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest.$ac_objext'
29497 { (case "(($ac_try" in
29498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499 *) ac_try_echo=$ac_try;;
29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502 (eval "$ac_try") 2>&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; }; then
29506 ac_header_compiler=yes
29508 echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29511 ac_header_compiler=no
29514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29516 echo "${ECHO_T}$ac_header_compiler" >&6; }
29518 # Is the header present?
29519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29521 cat >conftest.$ac_ext <<_ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h. */
29527 #include <$ac_header>
29529 if { (ac_try="$ac_cpp conftest.$ac_ext"
29530 case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29537 grep -v '^ *+' conftest.er1 >conftest.err
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } >/dev/null; then
29542 if test -s conftest.err; then
29543 ac_cpp_err=$ac_c_preproc_warn_flag
29544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29551 if test -z "$ac_cpp_err"; then
29552 ac_header_preproc=yes
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29557 ac_header_preproc=no
29560 rm -f conftest.err conftest.$ac_ext
29561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29562 echo "${ECHO_T}$ac_header_preproc" >&6; }
29564 # So? What about this header?
29565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29571 ac_header_preproc=yes
29574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29587 ## ----------------------------------- ##
29588 ## Report this to llvmbugs@cs.uiuc.edu ##
29589 ## ----------------------------------- ##
29591 ) | sed "s/^/$as_me: WARNING: /" >&2
29594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29599 eval "$as_ac_Header=\$ac_header_preproc"
29601 ac_res=`eval echo '${'$as_ac_Header'}'`
29602 { echo "$as_me:$LINENO: result: $ac_res" >&5
29603 echo "${ECHO_T}$ac_res" >&6; }
29606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29607 cat >>confdefs.h <<_ACEOF
29608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29619 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29626 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 ac_res=`eval echo '${'$as_ac_Header'}'`
29629 { echo "$as_me:$LINENO: result: $ac_res" >&5
29630 echo "${ECHO_T}$ac_res" >&6; }
29632 # Is the header compilable?
29633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29635 cat >conftest.$ac_ext <<_ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h. */
29641 $ac_includes_default
29642 #include <$ac_header>
29644 rm -f conftest.$ac_objext
29645 if { (ac_try="$ac_compile"
29646 case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_compile") 2>conftest.er1
29653 grep -v '^ *+' conftest.er1 >conftest.err
29655 cat conftest.err >&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); } &&
29658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29659 { (case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_try") 2>&5
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); }; } &&
29668 { ac_try='test -s conftest.$ac_objext'
29669 { (case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_try") 2>&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); }; }; then
29678 ac_header_compiler=yes
29680 echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29683 ac_header_compiler=no
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688 echo "${ECHO_T}$ac_header_compiler" >&6; }
29690 # Is the header present?
29691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29693 cat >conftest.$ac_ext <<_ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29699 #include <$ac_header>
29701 if { (ac_try="$ac_cpp conftest.$ac_ext"
29702 case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29709 grep -v '^ *+' conftest.er1 >conftest.err
29711 cat conftest.err >&5
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); } >/dev/null; then
29714 if test -s conftest.err; then
29715 ac_cpp_err=$ac_c_preproc_warn_flag
29716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29723 if test -z "$ac_cpp_err"; then
29724 ac_header_preproc=yes
29726 echo "$as_me: failed program was:" >&5
29727 sed 's/^/| /' conftest.$ac_ext >&5
29729 ac_header_preproc=no
29732 rm -f conftest.err conftest.$ac_ext
29733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29734 echo "${ECHO_T}$ac_header_preproc" >&6; }
29736 # So? What about this header?
29737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29743 ac_header_preproc=yes
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29759 ## ----------------------------------- ##
29760 ## Report this to llvmbugs@cs.uiuc.edu ##
29761 ## ----------------------------------- ##
29763 ) | sed "s/^/$as_me: WARNING: /" >&2
29766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29771 eval "$as_ac_Header=\$ac_header_preproc"
29773 ac_res=`eval echo '${'$as_ac_Header'}'`
29774 { echo "$as_me:$LINENO: result: $ac_res" >&5
29775 echo "${ECHO_T}$ac_res" >&6; }
29778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29779 cat >>confdefs.h <<_ACEOF
29780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29787 if test "$ENABLE_THREADS" -eq 1 ; then
29789 for ac_header in pthread.h
29791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29798 ac_res=`eval echo '${'$as_ac_Header'}'`
29799 { echo "$as_me:$LINENO: result: $ac_res" >&5
29800 echo "${ECHO_T}$ac_res" >&6; }
29802 # Is the header compilable?
29803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29805 cat >conftest.$ac_ext <<_ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29811 $ac_includes_default
29812 #include <$ac_header>
29814 rm -f conftest.$ac_objext
29815 if { (ac_try="$ac_compile"
29816 case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_compile") 2>conftest.er1
29823 grep -v '^ *+' conftest.er1 >conftest.err
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest.$ac_objext'
29839 { (case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_try") 2>&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
29848 ac_header_compiler=yes
29850 echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.$ac_ext >&5
29853 ac_header_compiler=no
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858 echo "${ECHO_T}$ac_header_compiler" >&6; }
29860 # Is the header present?
29861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29863 cat >conftest.$ac_ext <<_ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869 #include <$ac_header>
29871 if { (ac_try="$ac_cpp conftest.$ac_ext"
29872 case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29879 grep -v '^ *+' conftest.er1 >conftest.err
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } >/dev/null; then
29884 if test -s conftest.err; then
29885 ac_cpp_err=$ac_c_preproc_warn_flag
29886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29893 if test -z "$ac_cpp_err"; then
29894 ac_header_preproc=yes
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ac_header_preproc=no
29902 rm -f conftest.err conftest.$ac_ext
29903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904 echo "${ECHO_T}$ac_header_preproc" >&6; }
29906 # So? What about this header?
29907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29913 ac_header_preproc=yes
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29929 ## ----------------------------------- ##
29930 ## Report this to llvmbugs@cs.uiuc.edu ##
29931 ## ----------------------------------- ##
29933 ) | sed "s/^/$as_me: WARNING: /" >&2
29936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29941 eval "$as_ac_Header=\$ac_header_preproc"
29943 ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945 echo "${ECHO_T}$ac_res" >&6; }
29948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29966 if test "$llvm_cv_enable_libffi" = "yes" ; then
29969 for ac_header in ffi.h ffi/ffi.h
29971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29978 ac_res=`eval echo '${'$as_ac_Header'}'`
29979 { echo "$as_me:$LINENO: result: $ac_res" >&5
29980 echo "${ECHO_T}$ac_res" >&6; }
29982 # Is the header compilable?
29983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29985 cat >conftest.$ac_ext <<_ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29991 $ac_includes_default
29992 #include <$ac_header>
29994 rm -f conftest.$ac_objext
29995 if { (ac_try="$ac_compile"
29996 case "(($ac_try" in
29997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29998 *) ac_try_echo=$ac_try;;
30000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30001 (eval "$ac_compile") 2>conftest.er1
30003 grep -v '^ *+' conftest.er1 >conftest.err
30005 cat conftest.err >&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } &&
30008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30009 { (case "(($ac_try" in
30010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011 *) ac_try_echo=$ac_try;;
30013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30014 (eval "$ac_try") 2>&5
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; } &&
30018 { ac_try='test -s conftest.$ac_objext'
30019 { (case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_try") 2>&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
30028 ac_header_compiler=yes
30030 echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30033 ac_header_compiler=no
30036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30038 echo "${ECHO_T}$ac_header_compiler" >&6; }
30040 # Is the header present?
30041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30043 cat >conftest.$ac_ext <<_ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h. */
30049 #include <$ac_header>
30051 if { (ac_try="$ac_cpp conftest.$ac_ext"
30052 case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30059 grep -v '^ *+' conftest.er1 >conftest.err
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } >/dev/null; then
30064 if test -s conftest.err; then
30065 ac_cpp_err=$ac_c_preproc_warn_flag
30066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30073 if test -z "$ac_cpp_err"; then
30074 ac_header_preproc=yes
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30079 ac_header_preproc=no
30082 rm -f conftest.err conftest.$ac_ext
30083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30084 echo "${ECHO_T}$ac_header_preproc" >&6; }
30086 # So? What about this header?
30087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30093 ac_header_preproc=yes
30096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30109 ## ----------------------------------- ##
30110 ## Report this to llvmbugs@cs.uiuc.edu ##
30111 ## ----------------------------------- ##
30113 ) | sed "s/^/$as_me: WARNING: /" >&2
30116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30121 eval "$as_ac_Header=\$ac_header_preproc"
30123 ac_res=`eval echo '${'$as_ac_Header'}'`
30124 { echo "$as_me:$LINENO: result: $ac_res" >&5
30125 echo "${ECHO_T}$ac_res" >&6; }
30128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30129 cat >>confdefs.h <<_ACEOF
30130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30141 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30142 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30143 if test "${ac_cv_huge_val_sanity+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30148 ac_cpp='$CXXCPP $CPPFLAGS'
30149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30154 if test "$cross_compiling" = yes; then
30155 ac_cv_huge_val_sanity=yes
30157 cat >conftest.$ac_ext <<_ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h. */
30167 double x = HUGE_VAL; return x != x;
30172 rm -f conftest$ac_exeext
30173 if { (ac_try="$ac_link"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_link") 2>&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30183 { (case "(($ac_try" in
30184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185 *) ac_try_echo=$ac_try;;
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_try") 2>&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); }; }; then
30192 ac_cv_huge_val_sanity=yes
30194 echo "$as_me: program exited with status $ac_status" >&5
30195 echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30198 ( exit $ac_status )
30199 ac_cv_huge_val_sanity=no
30201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30206 ac_cpp='$CPP $CPPFLAGS'
30207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30213 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30214 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30215 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30218 { echo "$as_me:$LINENO: checking for pid_t" >&5
30219 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30220 if test "${ac_cv_type_pid_t+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 $ac_includes_default
30230 typedef pid_t ac__type_new_;
30234 if ((ac__type_new_ *) 0)
30236 if (sizeof (ac__type_new_))
30242 rm -f conftest.$ac_objext
30243 if { (ac_try="$ac_compile"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_compile") 2>conftest.er1
30251 grep -v '^ *+' conftest.er1 >conftest.err
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
30256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257 { (case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_try") 2>&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest.$ac_objext'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 ac_cv_type_pid_t=yes
30278 echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30281 ac_cv_type_pid_t=no
30284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30288 if test $ac_cv_type_pid_t = yes; then
30292 cat >>confdefs.h <<_ACEOF
30298 { echo "$as_me:$LINENO: checking for size_t" >&5
30299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30300 if test "${ac_cv_type_size_t+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 $ac_includes_default
30310 typedef size_t ac__type_new_;
30314 if ((ac__type_new_ *) 0)
30316 if (sizeof (ac__type_new_))
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
30331 grep -v '^ *+' conftest.er1 >conftest.err
30333 cat conftest.err >&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
30356 ac_cv_type_size_t=yes
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30361 ac_cv_type_size_t=no
30364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30367 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30368 if test $ac_cv_type_size_t = yes; then
30372 cat >>confdefs.h <<_ACEOF
30373 #define size_t unsigned int
30378 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30379 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30380 if test "${ac_cv_type_signal+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 cat >conftest.$ac_ext <<_ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h. */
30389 #include <sys/types.h>
30390 #include <signal.h>
30395 return *(signal (0, 0)) (0) == 1;
30400 rm -f conftest.$ac_objext
30401 if { (ac_try="$ac_compile"
30402 case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_compile") 2>conftest.er1
30409 grep -v '^ *+' conftest.er1 >conftest.err
30411 cat conftest.err >&5
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); } &&
30414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest.$ac_objext'
30425 { (case "(($ac_try" in
30426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427 *) ac_try_echo=$ac_try;;
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430 (eval "$ac_try") 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
30434 ac_cv_type_signal=int
30436 echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30439 ac_cv_type_signal=void
30442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30444 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30445 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30447 cat >>confdefs.h <<_ACEOF
30448 #define RETSIGTYPE $ac_cv_type_signal
30452 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30453 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30454 if test "${ac_cv_struct_tm+set}" = set; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30457 cat >conftest.$ac_ext <<_ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 #include <sys/types.h>
30469 struct tm *tp; tp->tm_sec;
30474 rm -f conftest.$ac_objext
30475 if { (ac_try="$ac_compile"
30476 case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_compile") 2>conftest.er1
30483 grep -v '^ *+' conftest.er1 >conftest.err
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } &&
30488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30489 { (case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
30498 { ac_try='test -s conftest.$ac_objext'
30499 { (case "(($ac_try" in
30500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501 *) ac_try_echo=$ac_try;;
30503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504 (eval "$ac_try") 2>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 ac_cv_struct_tm=time.h
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30513 ac_cv_struct_tm=sys/time.h
30516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30518 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30519 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30520 if test $ac_cv_struct_tm = sys/time.h; then
30522 cat >>confdefs.h <<\_ACEOF
30523 #define TM_IN_SYS_TIME 1
30528 { echo "$as_me:$LINENO: checking for int64_t" >&5
30529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30530 if test "${ac_cv_type_int64_t+set}" = set; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30533 cat >conftest.$ac_ext <<_ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30539 $ac_includes_default
30540 typedef int64_t ac__type_new_;
30544 if ((ac__type_new_ *) 0)
30546 if (sizeof (ac__type_new_))
30552 rm -f conftest.$ac_objext
30553 if { (ac_try="$ac_compile"
30554 case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_compile") 2>conftest.er1
30561 grep -v '^ *+' conftest.er1 >conftest.err
30563 cat conftest.err >&5
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); } &&
30566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30567 { (case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_try") 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest.$ac_objext'
30577 { (case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_try") 2>&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); }; }; then
30586 ac_cv_type_int64_t=yes
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 ac_cv_type_int64_t=no
30594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30596 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30598 if test $ac_cv_type_int64_t = yes; then
30600 cat >>confdefs.h <<_ACEOF
30601 #define HAVE_INT64_T 1
30606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30607 echo "$as_me: error: Type int64_t required but not found" >&2;}
30608 { (exit 1); exit 1; }; }
30611 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30613 if test "${ac_cv_type_uint64_t+set}" = set; then
30614 echo $ECHO_N "(cached) $ECHO_C" >&6
30616 cat >conftest.$ac_ext <<_ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30622 $ac_includes_default
30623 typedef uint64_t ac__type_new_;
30627 if ((ac__type_new_ *) 0)
30629 if (sizeof (ac__type_new_))
30635 rm -f conftest.$ac_objext
30636 if { (ac_try="$ac_compile"
30637 case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_compile") 2>conftest.er1
30644 grep -v '^ *+' conftest.er1 >conftest.err
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest.$ac_objext'
30660 { (case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_try") 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ac_cv_type_uint64_t=yes
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_cv_type_uint64_t=no
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30681 if test $ac_cv_type_uint64_t = yes; then
30683 cat >>confdefs.h <<_ACEOF
30684 #define HAVE_UINT64_T 1
30689 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30691 if test "${ac_cv_type_u_int64_t+set}" = set; then
30692 echo $ECHO_N "(cached) $ECHO_C" >&6
30694 cat >conftest.$ac_ext <<_ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h. */
30700 $ac_includes_default
30701 typedef u_int64_t ac__type_new_;
30705 if ((ac__type_new_ *) 0)
30707 if (sizeof (ac__type_new_))
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_compile") 2>conftest.er1
30722 grep -v '^ *+' conftest.er1 >conftest.err
30724 cat conftest.err >&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
30727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728 { (case "(($ac_try" in
30729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730 *) ac_try_echo=$ac_try;;
30732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733 (eval "$ac_try") 2>&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest.$ac_objext'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
30747 ac_cv_type_u_int64_t=yes
30749 echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30752 ac_cv_type_u_int64_t=no
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30757 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30758 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30759 if test $ac_cv_type_u_int64_t = yes; then
30761 cat >>confdefs.h <<_ACEOF
30762 #define HAVE_U_INT64_T 1
30767 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30768 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30769 { (exit 1); exit 1; }; }
30783 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30791 cat >conftest.$ac_ext <<_ACEOF
30794 cat confdefs.h >>conftest.$ac_ext
30795 cat >>conftest.$ac_ext <<_ACEOF
30796 /* end confdefs.h. */
30797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30799 #define $ac_func innocuous_$ac_func
30801 /* System header to define __stub macros and hopefully few prototypes,
30802 which can conflict with char $ac_func (); below.
30803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30804 <limits.h> exists even on freestanding compilers. */
30807 # include <limits.h>
30809 # include <assert.h>
30814 /* Override any GCC internal prototype to avoid an error.
30815 Use char because int might match the return type of a GCC
30816 builtin and then its argument prototype would still apply. */
30821 /* The GNU C library defines this for functions which it implements
30822 to always fail with ENOSYS. Some functions are actually named
30823 something starting with __ and the normal name is an alias. */
30824 #if defined __stub_$ac_func || defined __stub___$ac_func
30831 return $ac_func ();
30836 rm -f conftest.$ac_objext conftest$ac_exeext
30837 if { (ac_try="$ac_link"
30838 case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_link") 2>conftest.er1
30845 grep -v '^ *+' conftest.er1 >conftest.err
30847 cat conftest.err >&5
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
30850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30851 { (case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_try") 2>&5
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest$ac_exeext'
30861 { (case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_try") 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 eval "$as_ac_var=yes"
30872 echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30875 eval "$as_ac_var=no"
30878 rm -f core conftest.err conftest.$ac_objext \
30879 conftest$ac_exeext conftest.$ac_ext
30881 ac_res=`eval echo '${'$as_ac_var'}'`
30882 { echo "$as_me:$LINENO: result: $ac_res" >&5
30883 echo "${ECHO_T}$ac_res" >&6; }
30884 if test `eval echo '${'$as_ac_var'}'` = yes; then
30885 cat >>confdefs.h <<_ACEOF
30886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30896 for ac_func in powf fmodf strtof round
30898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30904 cat >conftest.$ac_ext <<_ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h. */
30910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30912 #define $ac_func innocuous_$ac_func
30914 /* System header to define __stub macros and hopefully few prototypes,
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
30920 # include <limits.h>
30922 # include <assert.h>
30927 /* Override any GCC internal prototype to avoid an error.
30928 Use char because int might match the return type of a GCC
30929 builtin and then its argument prototype would still apply. */
30934 /* The GNU C library defines this for functions which it implements
30935 to always fail with ENOSYS. Some functions are actually named
30936 something starting with __ and the normal name is an alias. */
30937 #if defined __stub_$ac_func || defined __stub___$ac_func
30944 return $ac_func ();
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (ac_try="$ac_link"
30951 case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_link") 2>conftest.er1
30958 grep -v '^ *+' conftest.er1 >conftest.err
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); } &&
30963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30964 { (case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_try") 2>&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; } &&
30973 { ac_try='test -s conftest$ac_exeext'
30974 { (case "(($ac_try" in
30975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976 *) ac_try_echo=$ac_try;;
30978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979 (eval "$ac_try") 2>&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; }; then
30983 eval "$as_ac_var=yes"
30985 echo "$as_me: failed program was:" >&5
30986 sed 's/^/| /' conftest.$ac_ext >&5
30988 eval "$as_ac_var=no"
30991 rm -f core conftest.err conftest.$ac_objext \
30992 conftest$ac_exeext conftest.$ac_ext
30994 ac_res=`eval echo '${'$as_ac_var'}'`
30995 { echo "$as_me:$LINENO: result: $ac_res" >&5
30996 echo "${ECHO_T}$ac_res" >&6; }
30997 if test `eval echo '${'$as_ac_var'}'` = yes; then
30998 cat >>confdefs.h <<_ACEOF
30999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31010 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31016 echo $ECHO_N "(cached) $ECHO_C" >&6
31018 cat >conftest.$ac_ext <<_ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h. */
31024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31026 #define $ac_func innocuous_$ac_func
31028 /* System header to define __stub macros and hopefully few prototypes,
31029 which can conflict with char $ac_func (); below.
31030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31031 <limits.h> exists even on freestanding compilers. */
31034 # include <limits.h>
31036 # include <assert.h>
31041 /* Override any GCC internal prototype to avoid an error.
31042 Use char because int might match the return type of a GCC
31043 builtin and then its argument prototype would still apply. */
31048 /* The GNU C library defines this for functions which it implements
31049 to always fail with ENOSYS. Some functions are actually named
31050 something starting with __ and the normal name is an alias. */
31051 #if defined __stub_$ac_func || defined __stub___$ac_func
31058 return $ac_func ();
31063 rm -f conftest.$ac_objext conftest$ac_exeext
31064 if { (ac_try="$ac_link"
31065 case "(($ac_try" in
31066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067 *) ac_try_echo=$ac_try;;
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_link") 2>conftest.er1
31072 grep -v '^ *+' conftest.er1 >conftest.err
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } &&
31077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31078 { (case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_try") 2>&5
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; } &&
31087 { ac_try='test -s conftest$ac_exeext'
31088 { (case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_try") 2>&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
31097 eval "$as_ac_var=yes"
31099 echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31102 eval "$as_ac_var=no"
31105 rm -f core conftest.err conftest.$ac_objext \
31106 conftest$ac_exeext conftest.$ac_ext
31108 ac_res=`eval echo '${'$as_ac_var'}'`
31109 { echo "$as_me:$LINENO: result: $ac_res" >&5
31110 echo "${ECHO_T}$ac_res" >&6; }
31111 if test `eval echo '${'$as_ac_var'}'` = yes; then
31112 cat >>confdefs.h <<_ACEOF
31113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31122 for ac_func in isatty mkdtemp mkstemp
31124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31128 echo $ECHO_N "(cached) $ECHO_C" >&6
31130 cat >conftest.$ac_ext <<_ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h. */
31136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31138 #define $ac_func innocuous_$ac_func
31140 /* System header to define __stub macros and hopefully few prototypes,
31141 which can conflict with char $ac_func (); below.
31142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31143 <limits.h> exists even on freestanding compilers. */
31146 # include <limits.h>
31148 # include <assert.h>
31153 /* Override any GCC internal prototype to avoid an error.
31154 Use char because int might match the return type of a GCC
31155 builtin and then its argument prototype would still apply. */
31160 /* The GNU C library defines this for functions which it implements
31161 to always fail with ENOSYS. Some functions are actually named
31162 something starting with __ and the normal name is an alias. */
31163 #if defined __stub_$ac_func || defined __stub___$ac_func
31170 return $ac_func ();
31175 rm -f conftest.$ac_objext conftest$ac_exeext
31176 if { (ac_try="$ac_link"
31177 case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_link") 2>conftest.er1
31184 grep -v '^ *+' conftest.er1 >conftest.err
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
31189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31190 { (case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_try") 2>&5
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; } &&
31199 { ac_try='test -s conftest$ac_exeext'
31200 { (case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_try") 2>&5
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31209 eval "$as_ac_var=yes"
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 eval "$as_ac_var=no"
31217 rm -f core conftest.err conftest.$ac_objext \
31218 conftest$ac_exeext conftest.$ac_ext
31220 ac_res=`eval echo '${'$as_ac_var'}'`
31221 { echo "$as_me:$LINENO: result: $ac_res" >&5
31222 echo "${ECHO_T}$ac_res" >&6; }
31223 if test `eval echo '${'$as_ac_var'}'` = yes; then
31224 cat >>confdefs.h <<_ACEOF
31225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31238 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31244 echo $ECHO_N "(cached) $ECHO_C" >&6
31246 cat >conftest.$ac_ext <<_ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31254 #define $ac_func innocuous_$ac_func
31256 /* System header to define __stub macros and hopefully few prototypes,
31257 which can conflict with char $ac_func (); below.
31258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31259 <limits.h> exists even on freestanding compilers. */
31262 # include <limits.h>
31264 # include <assert.h>
31269 /* Override any GCC internal prototype to avoid an error.
31270 Use char because int might match the return type of a GCC
31271 builtin and then its argument prototype would still apply. */
31276 /* The GNU C library defines this for functions which it implements
31277 to always fail with ENOSYS. Some functions are actually named
31278 something starting with __ and the normal name is an alias. */
31279 #if defined __stub_$ac_func || defined __stub___$ac_func
31286 return $ac_func ();
31291 rm -f conftest.$ac_objext conftest$ac_exeext
31292 if { (ac_try="$ac_link"
31293 case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_link") 2>conftest.er1
31300 grep -v '^ *+' conftest.er1 >conftest.err
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } &&
31305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31306 { (case "(($ac_try" in
31307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308 *) ac_try_echo=$ac_try;;
31310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311 (eval "$ac_try") 2>&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; } &&
31315 { ac_try='test -s conftest$ac_exeext'
31316 { (case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_try") 2>&5
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); }; }; then
31325 eval "$as_ac_var=yes"
31327 echo "$as_me: failed program was:" >&5
31328 sed 's/^/| /' conftest.$ac_ext >&5
31330 eval "$as_ac_var=no"
31333 rm -f core conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
31336 ac_res=`eval echo '${'$as_ac_var'}'`
31337 { echo "$as_me:$LINENO: result: $ac_res" >&5
31338 echo "${ECHO_T}$ac_res" >&6; }
31339 if test `eval echo '${'$as_ac_var'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31351 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31357 echo $ECHO_N "(cached) $ECHO_C" >&6
31359 cat >conftest.$ac_ext <<_ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h. */
31365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31367 #define $ac_func innocuous_$ac_func
31369 /* System header to define __stub macros and hopefully few prototypes,
31370 which can conflict with char $ac_func (); below.
31371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31372 <limits.h> exists even on freestanding compilers. */
31375 # include <limits.h>
31377 # include <assert.h>
31382 /* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31389 /* The GNU C library defines this for functions which it implements
31390 to always fail with ENOSYS. Some functions are actually named
31391 something starting with __ and the normal name is an alias. */
31392 #if defined __stub_$ac_func || defined __stub___$ac_func
31399 return $ac_func ();
31404 rm -f conftest.$ac_objext conftest$ac_exeext
31405 if { (ac_try="$ac_link"
31406 case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_link") 2>conftest.er1
31413 grep -v '^ *+' conftest.er1 >conftest.err
31415 cat conftest.err >&5
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); } &&
31418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31419 { (case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_try") 2>&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; } &&
31428 { ac_try='test -s conftest$ac_exeext'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31438 eval "$as_ac_var=yes"
31440 echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31443 eval "$as_ac_var=no"
31446 rm -f core conftest.err conftest.$ac_objext \
31447 conftest$ac_exeext conftest.$ac_ext
31449 ac_res=`eval echo '${'$as_ac_var'}'`
31450 { echo "$as_me:$LINENO: result: $ac_res" >&5
31451 echo "${ECHO_T}$ac_res" >&6; }
31452 if test `eval echo '${'$as_ac_var'}'` = yes; then
31453 cat >>confdefs.h <<_ACEOF
31454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31464 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31470 echo $ECHO_N "(cached) $ECHO_C" >&6
31472 cat >conftest.$ac_ext <<_ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h. */
31478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31480 #define $ac_func innocuous_$ac_func
31482 /* System header to define __stub macros and hopefully few prototypes,
31483 which can conflict with char $ac_func (); below.
31484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485 <limits.h> exists even on freestanding compilers. */
31488 # include <limits.h>
31490 # include <assert.h>
31495 /* Override any GCC internal prototype to avoid an error.
31496 Use char because int might match the return type of a GCC
31497 builtin and then its argument prototype would still apply. */
31502 /* The GNU C library defines this for functions which it implements
31503 to always fail with ENOSYS. Some functions are actually named
31504 something starting with __ and the normal name is an alias. */
31505 #if defined __stub_$ac_func || defined __stub___$ac_func
31512 return $ac_func ();
31517 rm -f conftest.$ac_objext conftest$ac_exeext
31518 if { (ac_try="$ac_link"
31519 case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_link") 2>conftest.er1
31526 grep -v '^ *+' conftest.er1 >conftest.err
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } &&
31531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest$ac_exeext'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 eval "$as_ac_var=yes"
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 eval "$as_ac_var=no"
31559 rm -f core conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
31562 ac_res=`eval echo '${'$as_ac_var'}'`
31563 { echo "$as_me:$LINENO: result: $ac_res" >&5
31564 echo "${ECHO_T}$ac_res" >&6; }
31565 if test `eval echo '${'$as_ac_var'}'` = yes; then
31566 cat >>confdefs.h <<_ACEOF
31567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31573 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31574 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31575 if test "${llvm_cv_c_printf_a+set}" = set; then
31576 echo $ECHO_N "(cached) $ECHO_C" >&6
31579 ac_cpp='$CPP $CPPFLAGS'
31580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31584 if test "$cross_compiling" = yes; then
31585 llvmac_cv_c_printf_a=no
31587 cat >conftest.$ac_ext <<_ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31596 #include <stdlib.h>
31602 volatile double A, B;
31606 sprintf(Buffer, "%a", A);
31610 if (A != 0x1.999999999999ap-4)
31617 rm -f conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621 *) ac_try_echo=$ac_try;;
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624 (eval "$ac_link") 2>&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31628 { (case "(($ac_try" in
31629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630 *) ac_try_echo=$ac_try;;
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633 (eval "$ac_try") 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; }; then
31637 llvm_cv_c_printf_a=yes
31639 echo "$as_me: program exited with status $ac_status" >&5
31640 echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31643 ( exit $ac_status )
31644 llvmac_cv_c_printf_a=no
31646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31651 ac_cpp='$CPP $CPPFLAGS'
31652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31657 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31658 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31659 if test "$llvm_cv_c_printf_a" = "yes"; then
31661 cat >>confdefs.h <<\_ACEOF
31662 #define HAVE_PRINTF_A 1
31667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31668 # for constant arguments. Useless!
31669 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31671 if test "${ac_cv_working_alloca_h+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 cat >conftest.$ac_ext <<_ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h. */
31680 #include <alloca.h>
31684 char *p = (char *) alloca (2 * sizeof (int));
31690 rm -f conftest.$ac_objext conftest$ac_exeext
31691 if { (ac_try="$ac_link"
31692 case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_link") 2>conftest.er1
31699 grep -v '^ *+' conftest.er1 >conftest.err
31701 cat conftest.err >&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); } &&
31704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31705 { (case "(($ac_try" in
31706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31707 *) ac_try_echo=$ac_try;;
31709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31710 (eval "$ac_try") 2>&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); }; } &&
31714 { ac_try='test -s conftest$ac_exeext'
31715 { (case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_try") 2>&5
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; }; then
31724 ac_cv_working_alloca_h=yes
31726 echo "$as_me: failed program was:" >&5
31727 sed 's/^/| /' conftest.$ac_ext >&5
31729 ac_cv_working_alloca_h=no
31732 rm -f core conftest.err conftest.$ac_objext \
31733 conftest$ac_exeext conftest.$ac_ext
31735 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31736 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31737 if test $ac_cv_working_alloca_h = yes; then
31739 cat >>confdefs.h <<\_ACEOF
31740 #define HAVE_ALLOCA_H 1
31745 { echo "$as_me:$LINENO: checking for alloca" >&5
31746 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31747 if test "${ac_cv_func_alloca_works+set}" = set; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31750 cat >conftest.$ac_ext <<_ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h. */
31757 # define alloca __builtin_alloca
31760 # include <malloc.h>
31761 # define alloca _alloca
31764 # include <alloca.h>
31769 # ifndef alloca /* predefined by HP cc +Olibcalls */
31780 char *p = (char *) alloca (1);
31786 rm -f conftest.$ac_objext conftest$ac_exeext
31787 if { (ac_try="$ac_link"
31788 case "(($ac_try" in
31789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_link") 2>conftest.er1
31795 grep -v '^ *+' conftest.er1 >conftest.err
31797 cat conftest.err >&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); } &&
31800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31801 { (case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_try") 2>&5
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; } &&
31810 { ac_try='test -s conftest$ac_exeext'
31811 { (case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_try") 2>&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; }; then
31820 ac_cv_func_alloca_works=yes
31822 echo "$as_me: failed program was:" >&5
31823 sed 's/^/| /' conftest.$ac_ext >&5
31825 ac_cv_func_alloca_works=no
31828 rm -f core conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
31831 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31832 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31834 if test $ac_cv_func_alloca_works = yes; then
31836 cat >>confdefs.h <<\_ACEOF
31837 #define HAVE_ALLOCA 1
31841 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31842 # that cause trouble. Some versions do not even contain alloca or
31843 # contain a buggy version. If you still want to use their alloca,
31844 # use ar to extract alloca.o from them instead of compiling alloca.c.
31846 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31848 cat >>confdefs.h <<\_ACEOF
31853 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31854 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31855 if test "${ac_cv_os_cray+set}" = set; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31858 cat >conftest.$ac_ext <<_ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 #if defined CRAY && ! defined CRAY2
31871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31872 $EGREP "webecray" >/dev/null 2>&1; then
31880 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31881 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31882 if test $ac_cv_os_cray = yes; then
31883 for ac_func in _getb67 GETB67 getb67; do
31884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31890 cat >conftest.$ac_ext <<_ACEOF
31893 cat confdefs.h >>conftest.$ac_ext
31894 cat >>conftest.$ac_ext <<_ACEOF
31895 /* end confdefs.h. */
31896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31898 #define $ac_func innocuous_$ac_func
31900 /* System header to define __stub macros and hopefully few prototypes,
31901 which can conflict with char $ac_func (); below.
31902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31903 <limits.h> exists even on freestanding compilers. */
31906 # include <limits.h>
31908 # include <assert.h>
31913 /* Override any GCC internal prototype to avoid an error.
31914 Use char because int might match the return type of a GCC
31915 builtin and then its argument prototype would still apply. */
31920 /* The GNU C library defines this for functions which it implements
31921 to always fail with ENOSYS. Some functions are actually named
31922 something starting with __ and the normal name is an alias. */
31923 #if defined __stub_$ac_func || defined __stub___$ac_func
31930 return $ac_func ();
31935 rm -f conftest.$ac_objext conftest$ac_exeext
31936 if { (ac_try="$ac_link"
31937 case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_link") 2>conftest.er1
31944 grep -v '^ *+' conftest.er1 >conftest.err
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } &&
31949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31950 { (case "(($ac_try" in
31951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952 *) ac_try_echo=$ac_try;;
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955 (eval "$ac_try") 2>&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
31960 { (case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965 (eval "$ac_try") 2>&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
31969 eval "$as_ac_var=yes"
31971 echo "$as_me: failed program was:" >&5
31972 sed 's/^/| /' conftest.$ac_ext >&5
31974 eval "$as_ac_var=no"
31977 rm -f core conftest.err conftest.$ac_objext \
31978 conftest$ac_exeext conftest.$ac_ext
31980 ac_res=`eval echo '${'$as_ac_var'}'`
31981 { echo "$as_me:$LINENO: result: $ac_res" >&5
31982 echo "${ECHO_T}$ac_res" >&6; }
31983 if test `eval echo '${'$as_ac_var'}'` = yes; then
31985 cat >>confdefs.h <<_ACEOF
31986 #define CRAY_STACKSEG_END $ac_func
31995 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31996 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31997 if test "${ac_cv_c_stack_direction+set}" = set; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
32000 if test "$cross_compiling" = yes; then
32001 ac_cv_c_stack_direction=0
32003 cat >conftest.$ac_ext <<_ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h. */
32009 $ac_includes_default
32011 find_stack_direction ()
32013 static char *addr = 0;
32018 return find_stack_direction ();
32021 return (&dummy > addr) ? 1 : -1;
32027 return find_stack_direction () < 0;
32030 rm -f conftest$ac_exeext
32031 if { (ac_try="$ac_link"
32032 case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_link") 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_c_stack_direction=1
32052 echo "$as_me: program exited with status $ac_status" >&5
32053 echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32056 ( exit $ac_status )
32057 ac_cv_c_stack_direction=-1
32059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32064 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32065 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32067 cat >>confdefs.h <<_ACEOF
32068 #define STACK_DIRECTION $ac_cv_c_stack_direction
32075 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32076 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32077 if test "${ac_cv_func_rand48+set}" = set; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32081 ac_cpp='$CXXCPP $CPPFLAGS'
32082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32086 cat >conftest.$ac_ext <<_ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h. */
32092 #include <stdlib.h>
32096 srand48(0);lrand48();drand48();
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32110 grep -v '^ *+' conftest.er1 >conftest.err
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
32135 ac_cv_func_rand48=yes
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ac_cv_func_rand48=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32151 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32152 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32154 if test "$ac_cv_func_rand48" = "yes" ; then
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_RAND48 1
32163 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32164 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_namespaces+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32169 ac_cpp='$CXXCPP $CPPFLAGS'
32170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174 cat >conftest.$ac_ext <<_ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h. */
32180 namespace Outer { namespace Inner { int i = 0; }}
32184 using namespace Outer::Inner; return i;
32189 rm -f conftest.$ac_objext
32190 if { (ac_try="$ac_compile"
32191 case "(($ac_try" in
32192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193 *) ac_try_echo=$ac_try;;
32195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196 (eval "$ac_compile") 2>conftest.er1
32198 grep -v '^ *+' conftest.er1 >conftest.err
32200 cat conftest.err >&5
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); } &&
32203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32204 { (case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209 (eval "$ac_try") 2>&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest.$ac_objext'
32214 { (case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_try") 2>&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; }; then
32223 ac_cv_cxx_namespaces=yes
32225 echo "$as_me: failed program was:" >&5
32226 sed 's/^/| /' conftest.$ac_ext >&5
32228 ac_cv_cxx_namespaces=no
32231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32233 ac_cpp='$CPP $CPPFLAGS'
32234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32241 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32242 if test "$ac_cv_cxx_namespaces" = yes; then
32244 cat >>confdefs.h <<\_ACEOF
32245 #define HAVE_NAMESPACES
32250 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32251 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32252 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32257 ac_cpp='$CXXCPP $CPPFLAGS'
32258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32262 cat >conftest.$ac_ext <<_ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h. */
32268 #include <iterator>
32269 #ifdef HAVE_NAMESPACES
32270 using namespace std;
32275 iterator<int,int,int> t; return 0;
32280 rm -f conftest.$ac_objext
32281 if { (ac_try="$ac_compile"
32282 case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_compile") 2>conftest.er1
32289 grep -v '^ *+' conftest.er1 >conftest.err
32291 cat conftest.err >&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
32294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295 { (case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_try") 2>&5
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest.$ac_objext'
32305 { (case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_try") 2>&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; }; then
32314 ac_cv_cxx_have_std_iterator=yes
32316 echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32319 ac_cv_cxx_have_std_iterator=no
32322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324 ac_cpp='$CPP $CPPFLAGS'
32325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32331 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32332 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32333 if test "$ac_cv_cxx_have_std_iterator" = yes
32336 cat >>confdefs.h <<\_ACEOF
32337 #define HAVE_STD_ITERATOR 1
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_STD_ITERATOR 0
32348 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32349 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32350 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32355 ac_cpp='$CXXCPP $CPPFLAGS'
32356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32360 cat >conftest.$ac_ext <<_ACEOF
32363 cat confdefs.h >>conftest.$ac_ext
32364 cat >>conftest.$ac_ext <<_ACEOF
32365 /* end confdefs.h. */
32366 #include <iterator>
32367 #ifdef HAVE_NAMESPACES
32368 using namespace std;
32373 bidirectional_iterator<int,int> t; return 0;
32378 rm -f conftest.$ac_objext
32379 if { (ac_try="$ac_compile"
32380 case "(($ac_try" in
32381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382 *) ac_try_echo=$ac_try;;
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_compile") 2>conftest.er1
32387 grep -v '^ *+' conftest.er1 >conftest.err
32389 cat conftest.err >&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
32392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393 { (case "(($ac_try" in
32394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395 *) ac_try_echo=$ac_try;;
32397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398 (eval "$ac_try") 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_try") 2>&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
32412 ac_cv_cxx_have_bi_iterator=yes
32414 echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32417 ac_cv_cxx_have_bi_iterator=no
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32429 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32430 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32431 if test "$ac_cv_cxx_have_bi_iterator" = yes
32434 cat >>confdefs.h <<\_ACEOF
32435 #define HAVE_BI_ITERATOR 1
32440 cat >>confdefs.h <<\_ACEOF
32441 #define HAVE_BI_ITERATOR 0
32446 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32447 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32448 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32453 ac_cpp='$CXXCPP $CPPFLAGS'
32454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32458 cat >conftest.$ac_ext <<_ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h. */
32464 #include <iterator>
32465 #ifdef HAVE_NAMESPACES
32466 using namespace std;
32471 forward_iterator<int,int> t; return 0;
32476 rm -f conftest.$ac_objext
32477 if { (ac_try="$ac_compile"
32478 case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_compile") 2>conftest.er1
32485 grep -v '^ *+' conftest.er1 >conftest.err
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest.$ac_objext'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32510 ac_cv_cxx_have_fwd_iterator=yes
32512 echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32515 ac_cv_cxx_have_fwd_iterator=no
32518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32520 ac_cpp='$CPP $CPPFLAGS'
32521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32527 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32528 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32529 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32532 cat >>confdefs.h <<\_ACEOF
32533 #define HAVE_FWD_ITERATOR 1
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_FWD_ITERATOR 0
32545 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32546 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32547 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32551 ac_cpp='$CXXCPP $CPPFLAGS'
32552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32571 rm -f conftest.$ac_objext
32572 if { (ac_try="$ac_compile"
32573 case "(($ac_try" in
32574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575 *) ac_try_echo=$ac_try;;
32577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578 (eval "$ac_compile") 2>conftest.er1
32580 grep -v '^ *+' conftest.er1 >conftest.err
32582 cat conftest.err >&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); } &&
32585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32586 { (case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_try") 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; } &&
32595 { ac_try='test -s conftest.$ac_objext'
32596 { (case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_try") 2>&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; }; then
32605 ac_cv_func_isnan_in_math_h=yes
32607 echo "$as_me: failed program was:" >&5
32608 sed 's/^/| /' conftest.$ac_ext >&5
32610 ac_cv_func_isnan_in_math_h=no
32613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32615 ac_cpp='$CPP $CPPFLAGS'
32616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32621 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32622 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32625 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32627 cat >>confdefs.h <<\_ACEOF
32628 #define HAVE_ISNAN_IN_MATH_H 1
32633 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32634 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32635 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32636 echo $ECHO_N "(cached) $ECHO_C" >&6
32639 ac_cpp='$CXXCPP $CPPFLAGS'
32640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32644 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32659 rm -f conftest.$ac_objext
32660 if { (ac_try="$ac_compile"
32661 case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_compile") 2>conftest.er1
32668 grep -v '^ *+' conftest.er1 >conftest.err
32670 cat conftest.err >&5
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } &&
32673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32674 { (case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_try") 2>&5
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; } &&
32683 { ac_try='test -s conftest.$ac_objext'
32684 { (case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_try") 2>&5
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
32693 ac_cv_func_isnan_in_cmath=yes
32695 echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32698 ac_cv_func_isnan_in_cmath=no
32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32703 ac_cpp='$CPP $CPPFLAGS'
32704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32709 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32710 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32712 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32714 cat >>confdefs.h <<\_ACEOF
32715 #define HAVE_ISNAN_IN_CMATH 1
32720 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32721 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32722 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32726 ac_cpp='$CXXCPP $CPPFLAGS'
32727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731 cat >conftest.$ac_ext <<_ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32741 float f; std::isnan(f);
32746 rm -f conftest.$ac_objext
32747 if { (ac_try="$ac_compile"
32748 case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_compile") 2>conftest.er1
32755 grep -v '^ *+' conftest.er1 >conftest.err
32757 cat conftest.err >&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); } &&
32760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32761 { (case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_try") 2>&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest.$ac_objext'
32771 { (case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_try") 2>&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
32780 ac_cv_func_std_isnan_in_cmath=yes
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32785 ac_cv_func_std_isnan_in_cmath=no
32788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 ac_cpp='$CPP $CPPFLAGS'
32791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32796 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32797 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32799 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32801 cat >>confdefs.h <<\_ACEOF
32802 #define HAVE_STD_ISNAN_IN_CMATH 1
32808 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32809 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32810 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32811 echo $ECHO_N "(cached) $ECHO_C" >&6
32814 ac_cpp='$CXXCPP $CPPFLAGS'
32815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32819 cat >conftest.$ac_ext <<_ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h. */
32834 rm -f conftest.$ac_objext
32835 if { (ac_try="$ac_compile"
32836 case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_compile") 2>conftest.er1
32843 grep -v '^ *+' conftest.er1 >conftest.err
32845 cat conftest.err >&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } &&
32848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32849 { (case "(($ac_try" in
32850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851 *) ac_try_echo=$ac_try;;
32853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854 (eval "$ac_try") 2>&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest.$ac_objext'
32859 { (case "(($ac_try" in
32860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861 *) ac_try_echo=$ac_try;;
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864 (eval "$ac_try") 2>&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; }; then
32868 ac_cv_func_isinf_in_math_h=yes
32870 echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32873 ac_cv_func_isinf_in_math_h=no
32876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32878 ac_cpp='$CPP $CPPFLAGS'
32879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32884 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32885 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32887 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32889 cat >>confdefs.h <<\_ACEOF
32890 #define HAVE_ISINF_IN_MATH_H 1
32895 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32896 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32897 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32901 ac_cpp='$CXXCPP $CPPFLAGS'
32902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32906 cat >conftest.$ac_ext <<_ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32921 rm -f conftest.$ac_objext
32922 if { (ac_try="$ac_compile"
32923 case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_compile") 2>conftest.er1
32930 grep -v '^ *+' conftest.er1 >conftest.err
32932 cat conftest.err >&5
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } &&
32935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32936 { (case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_try") 2>&5
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest.$ac_objext'
32946 { (case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_try") 2>&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); }; }; then
32955 ac_cv_func_isinf_in_cmath=yes
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32960 ac_cv_func_isinf_in_cmath=no
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32965 ac_cpp='$CPP $CPPFLAGS'
32966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32971 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32972 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32974 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32976 cat >>confdefs.h <<\_ACEOF
32977 #define HAVE_ISINF_IN_CMATH 1
32982 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32983 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32984 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32988 ac_cpp='$CXXCPP $CPPFLAGS'
32989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32993 cat >conftest.$ac_ext <<_ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h. */
33003 float f; std::isinf(f)}
33008 rm -f conftest.$ac_objext
33009 if { (ac_try="$ac_compile"
33010 case "(($ac_try" in
33011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012 *) ac_try_echo=$ac_try;;
33014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015 (eval "$ac_compile") 2>conftest.er1
33017 grep -v '^ *+' conftest.er1 >conftest.err
33019 cat conftest.err >&5
33020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021 (exit $ac_status); } &&
33022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33023 { (case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_try") 2>&5
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); }; } &&
33032 { ac_try='test -s conftest.$ac_objext'
33033 { (case "(($ac_try" in
33034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035 *) ac_try_echo=$ac_try;;
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038 (eval "$ac_try") 2>&5
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
33042 ac_cv_func_std_isinf_in_cmath=yes
33044 echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33047 ac_cv_func_std_isinf_in_cmath=no
33050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33052 ac_cpp='$CPP $CPPFLAGS'
33053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33058 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33059 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33061 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33063 cat >>confdefs.h <<\_ACEOF
33064 #define HAVE_STD_ISINF_IN_CMATH 1
33069 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33070 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33071 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33075 ac_cpp='$CXXCPP $CPPFLAGS'
33076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33080 cat >conftest.$ac_ext <<_ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h. */
33086 #include <ieeefp.h>
33090 float f; finite(f);
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_compile") 2>conftest.er1
33104 grep -v '^ *+' conftest.er1 >conftest.err
33106 cat conftest.err >&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } &&
33109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; } &&
33119 { ac_try='test -s conftest.$ac_objext'
33120 { (case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125 (eval "$ac_try") 2>&5
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; }; then
33129 ac_cv_func_finite_in_ieeefp_h=yes
33131 echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33134 ac_cv_func_finite_in_ieeefp_h=no
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33139 ac_cpp='$CPP $CPPFLAGS'
33140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33145 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33146 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33148 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33150 cat >>confdefs.h <<\_ACEOF
33151 #define HAVE_FINITE_IN_IEEEFP_H 1
33158 if test "$llvm_cv_platform_type" = "Unix" ; then
33161 for ac_header in stdlib.h unistd.h
33163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33168 echo $ECHO_N "(cached) $ECHO_C" >&6
33170 ac_res=`eval echo '${'$as_ac_Header'}'`
33171 { echo "$as_me:$LINENO: result: $ac_res" >&5
33172 echo "${ECHO_T}$ac_res" >&6; }
33174 # Is the header compilable?
33175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33177 cat >conftest.$ac_ext <<_ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h. */
33183 $ac_includes_default
33184 #include <$ac_header>
33186 rm -f conftest.$ac_objext
33187 if { (ac_try="$ac_compile"
33188 case "(($ac_try" in
33189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190 *) ac_try_echo=$ac_try;;
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193 (eval "$ac_compile") 2>conftest.er1
33195 grep -v '^ *+' conftest.er1 >conftest.err
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
33200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; } &&
33210 { ac_try='test -s conftest.$ac_objext'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
33220 ac_header_compiler=yes
33222 echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33225 ac_header_compiler=no
33228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33230 echo "${ECHO_T}$ac_header_compiler" >&6; }
33232 # Is the header present?
33233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33235 cat >conftest.$ac_ext <<_ACEOF
33238 cat confdefs.h >>conftest.$ac_ext
33239 cat >>conftest.$ac_ext <<_ACEOF
33240 /* end confdefs.h. */
33241 #include <$ac_header>
33243 if { (ac_try="$ac_cpp conftest.$ac_ext"
33244 case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33251 grep -v '^ *+' conftest.er1 >conftest.err
33253 cat conftest.err >&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); } >/dev/null; then
33256 if test -s conftest.err; then
33257 ac_cpp_err=$ac_c_preproc_warn_flag
33258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33265 if test -z "$ac_cpp_err"; then
33266 ac_header_preproc=yes
33268 echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 ac_header_preproc=no
33274 rm -f conftest.err conftest.$ac_ext
33275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33276 echo "${ECHO_T}$ac_header_preproc" >&6; }
33278 # So? What about this header?
33279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33285 ac_header_preproc=yes
33288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33301 ## ----------------------------------- ##
33302 ## Report this to llvmbugs@cs.uiuc.edu ##
33303 ## ----------------------------------- ##
33305 ) | sed "s/^/$as_me: WARNING: /" >&2
33308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33311 echo $ECHO_N "(cached) $ECHO_C" >&6
33313 eval "$as_ac_Header=\$ac_header_preproc"
33315 ac_res=`eval echo '${'$as_ac_Header'}'`
33316 { echo "$as_me:$LINENO: result: $ac_res" >&5
33317 echo "${ECHO_T}$ac_res" >&6; }
33320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33321 cat >>confdefs.h <<_ACEOF
33322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33330 for ac_func in getpagesize
33332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
33338 cat >conftest.$ac_ext <<_ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h. */
33344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33346 #define $ac_func innocuous_$ac_func
33348 /* System header to define __stub macros and hopefully few prototypes,
33349 which can conflict with char $ac_func (); below.
33350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33351 <limits.h> exists even on freestanding compilers. */
33354 # include <limits.h>
33356 # include <assert.h>
33361 /* Override any GCC internal prototype to avoid an error.
33362 Use char because int might match the return type of a GCC
33363 builtin and then its argument prototype would still apply. */
33368 /* The GNU C library defines this for functions which it implements
33369 to always fail with ENOSYS. Some functions are actually named
33370 something starting with __ and the normal name is an alias. */
33371 #if defined __stub_$ac_func || defined __stub___$ac_func
33378 return $ac_func ();
33383 rm -f conftest.$ac_objext conftest$ac_exeext
33384 if { (ac_try="$ac_link"
33385 case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_link") 2>conftest.er1
33392 grep -v '^ *+' conftest.er1 >conftest.err
33394 cat conftest.err >&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } &&
33397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33398 { (case "(($ac_try" in
33399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400 *) ac_try_echo=$ac_try;;
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403 (eval "$ac_try") 2>&5
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); }; } &&
33407 { ac_try='test -s conftest$ac_exeext'
33408 { (case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_try") 2>&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); }; }; then
33417 eval "$as_ac_var=yes"
33419 echo "$as_me: failed program was:" >&5
33420 sed 's/^/| /' conftest.$ac_ext >&5
33422 eval "$as_ac_var=no"
33425 rm -f core conftest.err conftest.$ac_objext \
33426 conftest$ac_exeext conftest.$ac_ext
33428 ac_res=`eval echo '${'$as_ac_var'}'`
33429 { echo "$as_me:$LINENO: result: $ac_res" >&5
33430 echo "${ECHO_T}$ac_res" >&6; }
33431 if test `eval echo '${'$as_ac_var'}'` = yes; then
33432 cat >>confdefs.h <<_ACEOF
33433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33439 { echo "$as_me:$LINENO: checking for working mmap" >&5
33440 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33441 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33444 if test "$cross_compiling" = yes; then
33445 ac_cv_func_mmap_fixed_mapped=no
33447 cat >conftest.$ac_ext <<_ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33453 $ac_includes_default
33454 /* malloc might have been renamed as rpl_malloc. */
33457 /* Thanks to Mike Haertel and Jim Avera for this test.
33458 Here is a matrix of mmap possibilities:
33459 mmap private not fixed
33460 mmap private fixed at somewhere currently unmapped
33461 mmap private fixed at somewhere already mapped
33462 mmap shared not fixed
33463 mmap shared fixed at somewhere currently unmapped
33464 mmap shared fixed at somewhere already mapped
33465 For private mappings, we should verify that changes cannot be read()
33466 back from the file, nor mmap's back from the file at a different
33467 address. (There have been systems where private was not correctly
33468 implemented like the infamous i386 svr4.0, and systems where the
33469 VM page cache was not coherent with the file system buffer cache
33470 like early versions of FreeBSD and possibly contemporary NetBSD.)
33471 For shared mappings, we should conversely verify that changes get
33472 propagated back to all the places they're supposed to be.
33474 Grep wants private fixed already mapped.
33475 The main things grep needs to know about mmap are:
33476 * does it exist and is it safe to write into the mmap'd area
33477 * how to use it (BSD variants) */
33480 #include <sys/mman.h>
33482 #if !STDC_HEADERS && !HAVE_STDLIB_H
33486 /* This mess was copied from the GNU getpagesize.h. */
33487 #if !HAVE_GETPAGESIZE
33488 /* Assume that all systems that can run configure have sys/param.h. */
33489 # if !HAVE_SYS_PARAM_H
33490 # define HAVE_SYS_PARAM_H 1
33493 # ifdef _SC_PAGESIZE
33494 # define getpagesize() sysconf(_SC_PAGESIZE)
33495 # else /* no _SC_PAGESIZE */
33496 # if HAVE_SYS_PARAM_H
33497 # include <sys/param.h>
33498 # ifdef EXEC_PAGESIZE
33499 # define getpagesize() EXEC_PAGESIZE
33500 # else /* no EXEC_PAGESIZE */
33502 # define getpagesize() NBPG * CLSIZE
33505 # endif /* no CLSIZE */
33506 # else /* no NBPG */
33508 # define getpagesize() NBPC
33509 # else /* no NBPC */
33511 # define getpagesize() PAGESIZE
33512 # endif /* PAGESIZE */
33513 # endif /* no NBPC */
33514 # endif /* no NBPG */
33515 # endif /* no EXEC_PAGESIZE */
33516 # else /* no HAVE_SYS_PARAM_H */
33517 # define getpagesize() 8192 /* punt totally */
33518 # endif /* no HAVE_SYS_PARAM_H */
33519 # endif /* no _SC_PAGESIZE */
33521 #endif /* no HAVE_GETPAGESIZE */
33526 char *data, *data2, *data3;
33530 pagesize = getpagesize ();
33532 /* First, make a file with some known garbage in it. */
33533 data = (char *) malloc (pagesize);
33536 for (i = 0; i < pagesize; ++i)
33537 *(data + i) = rand ();
33539 fd = creat ("conftest.mmap", 0600);
33542 if (write (fd, data, pagesize) != pagesize)
33546 /* Next, try to mmap the file at a fixed address which already has
33547 something else allocated at it. If we can, also make sure that
33548 we see the same garbage. */
33549 fd = open ("conftest.mmap", O_RDWR);
33552 data2 = (char *) malloc (2 * pagesize);
33555 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33559 for (i = 0; i < pagesize; ++i)
33560 if (*(data + i) != *(data2 + i))
33563 /* Finally, make sure that changes to the mapped area do not
33564 percolate back to the file as seen by read(). (This is a bug on
33565 some variants of i386 svr4.0.) */
33566 for (i = 0; i < pagesize; ++i)
33567 *(data2 + i) = *(data2 + i) + 1;
33568 data3 = (char *) malloc (pagesize);
33571 if (read (fd, data3, pagesize) != pagesize)
33573 for (i = 0; i < pagesize; ++i)
33574 if (*(data + i) != *(data3 + i))
33580 rm -f conftest$ac_exeext
33581 if { (ac_try="$ac_link"
33582 case "(($ac_try" in
33583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33584 *) ac_try_echo=$ac_try;;
33586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587 (eval "$ac_link") 2>&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33591 { (case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_try") 2>&5
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; }; then
33600 ac_cv_func_mmap_fixed_mapped=yes
33602 echo "$as_me: program exited with status $ac_status" >&5
33603 echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33606 ( exit $ac_status )
33607 ac_cv_func_mmap_fixed_mapped=no
33609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33614 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33615 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33616 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33618 cat >>confdefs.h <<\_ACEOF
33619 #define HAVE_MMAP 1
33623 rm -f conftest.mmap
33625 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33626 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33627 if test "${ac_cv_func_mmap_file+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33631 ac_cpp='$CPP $CPPFLAGS'
33632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33636 if test "$cross_compiling" = yes; then
33637 ac_cv_func_mmap_file=no
33639 cat >conftest.$ac_ext <<_ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33647 #include <sys/types.h>
33648 #include <sys/mman.h>
33656 fd = creat ("foo",0777);
33657 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33659 return (fd != (int) MAP_FAILED);
33664 rm -f conftest$ac_exeext
33665 if { (ac_try="$ac_link"
33666 case "(($ac_try" in
33667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33668 *) ac_try_echo=$ac_try;;
33670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33671 (eval "$ac_link") 2>&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33675 { (case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_try") 2>&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 ac_cv_func_mmap_file=yes
33686 echo "$as_me: program exited with status $ac_status" >&5
33687 echo "$as_me: failed program was:" >&5
33688 sed 's/^/| /' conftest.$ac_ext >&5
33690 ( exit $ac_status )
33691 ac_cv_func_mmap_file=no
33693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33698 ac_cpp='$CPP $CPPFLAGS'
33699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33705 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33706 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33707 if test "$ac_cv_func_mmap_file" = yes; then
33709 cat >>confdefs.h <<\_ACEOF
33710 #define HAVE_MMAP_FILE
33717 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33718 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33719 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33722 if test "$llvm_cv_os_type" = "Interix" ; then
33723 ac_cv_need_dev_zero_for_mmap=yes
33725 ac_cv_need_dev_zero_for_mmap=no
33729 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33730 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33731 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33733 cat >>confdefs.h <<\_ACEOF
33734 #define NEED_DEV_ZERO_FOR_MMAP 1
33739 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33741 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33742 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33744 if test "$ac_cv_func_mmap_file" = "no"
33746 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33747 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33751 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33752 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33753 cat >conftest.$ac_ext <<_ACEOF
33756 cat confdefs.h >>conftest.$ac_ext
33757 cat >>conftest.$ac_ext <<_ACEOF
33758 /* end confdefs.h. */
33760 volatile unsigned long val = 1;
33761 __sync_synchronize();
33762 __sync_val_compare_and_swap(&val, 1, 0);
33767 rm -f conftest.$ac_objext conftest$ac_exeext
33768 if { (ac_try="$ac_link"
33769 case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_link") 2>conftest.er1
33776 grep -v '^ *+' conftest.er1 >conftest.err
33778 cat conftest.err >&5
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); } &&
33781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33782 { (case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_try") 2>&5
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest$ac_exeext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 { echo "$as_me:$LINENO: result: yes" >&5
33802 echo "${ECHO_T}yes" >&6; }
33804 cat >>confdefs.h <<\_ACEOF
33805 #define LLVM_MULTITHREADED 1
33809 echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33812 { echo "$as_me:$LINENO: result: no" >&5
33813 echo "${ECHO_T}no" >&6; }
33815 cat >>confdefs.h <<\_ACEOF
33816 #define LLVM_MULTITHREADED 0
33819 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33820 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33823 rm -f core conftest.err conftest.$ac_objext \
33824 conftest$ac_exeext conftest.$ac_ext
33829 for ac_func in __dso_handle
33831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33837 cat >conftest.$ac_ext <<_ACEOF
33840 cat confdefs.h >>conftest.$ac_ext
33841 cat >>conftest.$ac_ext <<_ACEOF
33842 /* end confdefs.h. */
33843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33845 #define $ac_func innocuous_$ac_func
33847 /* System header to define __stub macros and hopefully few prototypes,
33848 which can conflict with char $ac_func (); below.
33849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33850 <limits.h> exists even on freestanding compilers. */
33853 # include <limits.h>
33855 # include <assert.h>
33860 /* Override any GCC internal prototype to avoid an error.
33861 Use char because int might match the return type of a GCC
33862 builtin and then its argument prototype would still apply. */
33867 /* The GNU C library defines this for functions which it implements
33868 to always fail with ENOSYS. Some functions are actually named
33869 something starting with __ and the normal name is an alias. */
33870 #if defined __stub_$ac_func || defined __stub___$ac_func
33877 return $ac_func ();
33882 rm -f conftest.$ac_objext conftest$ac_exeext
33883 if { (ac_try="$ac_link"
33884 case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_link") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } &&
33896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest$ac_exeext'
33907 { (case "(($ac_try" in
33908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909 *) ac_try_echo=$ac_try;;
33911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912 (eval "$ac_try") 2>&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; }; then
33916 eval "$as_ac_var=yes"
33918 echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33921 eval "$as_ac_var=no"
33924 rm -f core conftest.err conftest.$ac_objext \
33925 conftest$ac_exeext conftest.$ac_ext
33927 ac_res=`eval echo '${'$as_ac_var'}'`
33928 { echo "$as_me:$LINENO: result: $ac_res" >&5
33929 echo "${ECHO_T}$ac_res" >&6; }
33930 if test `eval echo '${'$as_ac_var'}'` = yes; then
33931 cat >>confdefs.h <<_ACEOF
33932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33939 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33940 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33941 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 llvm_cv_llvmgcc_sanity="no"
33945 if test -x "$LLVMGCC" ; then
33946 cp /dev/null conftest.c
33947 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33948 grep 'target datalayout =' > /dev/null 2>&1
33949 if test $? -eq 0 ; then
33950 llvm_cv_llvmgcc_sanity="yes"
33955 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33956 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33958 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33959 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33960 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33961 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33962 LLVMCC1=$llvmcc1path
33964 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33965 LLVMCC1PLUS=$llvmcc1pluspath
33967 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33968 LLVMGCCDIR=$llvmgccdir
33970 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33971 LLVMGCCLIBEXEC=$llvmgcclibexec
33973 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33974 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33975 LLVMGCC_VERSION=$llvmgccversion
33977 LLVMGCC_MAJVERS=$llvmgccmajvers
33979 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33980 LLVMGCC_LANGS=$llvmgcclangs
33982 { echo "$as_me:$LINENO: result: ok" >&5
33983 echo "${ECHO_T}ok" >&6; }
33986 SHLIBEXT=$libltdl_cv_shlibext
33989 # Translate the various configuration directories and other basic
33990 # information into substitutions that will end up in Makefile.config.in
33991 # that these configured values can be used by the makefiles
33992 if test "${prefix}" = "NONE" ; then
33993 prefix="/usr/local"
33995 eval LLVM_PREFIX="${prefix}";
33996 eval LLVM_BINDIR="${prefix}/bin";
33997 eval LLVM_LIBDIR="${prefix}/lib";
33998 eval LLVM_DATADIR="${prefix}/share/llvm";
33999 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34000 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34001 eval LLVM_INCLUDEDIR="${prefix}/include";
34002 eval LLVM_INFODIR="${prefix}/info";
34003 eval LLVM_MANDIR="${prefix}/man";
34004 LLVM_CONFIGTIME=`date`
34016 # Place the various directores into the config.h file as #defines so that we
34017 # can know about the installation paths within LLVM.
34019 cat >>confdefs.h <<_ACEOF
34020 #define LLVM_PREFIX "$LLVM_PREFIX"
34024 cat >>confdefs.h <<_ACEOF
34025 #define LLVM_BINDIR "$LLVM_BINDIR"
34029 cat >>confdefs.h <<_ACEOF
34030 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34034 cat >>confdefs.h <<_ACEOF
34035 #define LLVM_DATADIR "$LLVM_DATADIR"
34039 cat >>confdefs.h <<_ACEOF
34040 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34044 cat >>confdefs.h <<_ACEOF
34045 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34049 cat >>confdefs.h <<_ACEOF
34050 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34054 cat >>confdefs.h <<_ACEOF
34055 #define LLVM_INFODIR "$LLVM_INFODIR"
34059 cat >>confdefs.h <<_ACEOF
34060 #define LLVM_MANDIR "$LLVM_MANDIR"
34064 cat >>confdefs.h <<_ACEOF
34065 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34069 cat >>confdefs.h <<_ACEOF
34070 #define LLVM_HOSTTRIPLE "$host"
34074 # Determine which bindings to build.
34075 if test "$BINDINGS_TO_BUILD" = auto ; then
34076 BINDINGS_TO_BUILD=""
34077 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34078 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34081 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34084 # This isn't really configurey, but it avoids having to repeat the list in
34089 # Do any work necessary to ensure that bindings have what they need.
34090 binding_prereqs_failed=0
34091 for a_binding in $BINDINGS_TO_BUILD ; do
34092 case "$a_binding" in
34094 if test "x$OCAMLC" = x ; then
34095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34096 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34097 binding_prereqs_failed=1
34099 if test "x$OCAMLDEP" = x ; then
34100 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34101 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34102 binding_prereqs_failed=1
34104 if test "x$OCAMLOPT" = x ; then
34105 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34106 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34108 if test "x$with_ocaml_libdir" != xauto ; then
34109 OCAML_LIBDIR=$with_ocaml_libdir
34112 ocaml_stdlib="`"$OCAMLC" -where`"
34113 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34115 # ocaml stdlib is beneath our prefix; use stdlib
34116 OCAML_LIBDIR=$ocaml_stdlib
34119 # ocaml stdlib is outside our prefix; use libdir/ocaml
34120 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34127 if test "$binding_prereqs_failed" = 1 ; then
34128 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34129 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34130 { (exit 1); exit 1; }; }
34133 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34134 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34135 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34139 ac_cpp='$CXXCPP $CPPFLAGS'
34140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34144 oldcxxflags="$CXXFLAGS"
34145 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34146 cat >conftest.$ac_ext <<_ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h. */
34161 rm -f conftest.$ac_objext
34162 if { (ac_try="$ac_compile"
34163 case "(($ac_try" in
34164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165 *) ac_try_echo=$ac_try;;
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168 (eval "$ac_compile") 2>conftest.er1
34170 grep -v '^ *+' conftest.er1 >conftest.err
34172 cat conftest.err >&5
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); } &&
34175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34176 { (case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_try") 2>&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; } &&
34185 { ac_try='test -s conftest.$ac_objext'
34186 { (case "(($ac_try" in
34187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34188 *) ac_try_echo=$ac_try;;
34190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34191 (eval "$ac_try") 2>&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
34195 llvm_cv_cxx_visibility_inlines_hidden=yes
34197 echo "$as_me: failed program was:" >&5
34198 sed 's/^/| /' conftest.$ac_ext >&5
34200 llvm_cv_cxx_visibility_inlines_hidden=no
34203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204 CXXFLAGS="$oldcxxflags"
34206 ac_cpp='$CPP $CPPFLAGS'
34207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34213 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34214 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34215 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34216 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34219 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34224 if test "$llvm_cv_link_use_r" = "yes" ; then
34231 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34232 RDYNAMIC="-Wl,-export-dynamic"
34239 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34241 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34243 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34245 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34247 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34250 ac_config_files="$ac_config_files Makefile.config"
34253 ac_config_files="$ac_config_files llvm.spec"
34256 ac_config_files="$ac_config_files docs/doxygen.cfg"
34259 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34262 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34265 ac_config_commands="$ac_config_commands setup"
34267 ac_config_commands="$ac_config_commands Makefile"
34270 ac_config_commands="$ac_config_commands Makefile.common"
34273 ac_config_commands="$ac_config_commands examples/Makefile"
34276 ac_config_commands="$ac_config_commands lib/Makefile"
34279 ac_config_commands="$ac_config_commands runtime/Makefile"
34282 ac_config_commands="$ac_config_commands test/Makefile"
34285 ac_config_commands="$ac_config_commands test/Makefile.tests"
34288 ac_config_commands="$ac_config_commands unittests/Makefile"
34291 ac_config_commands="$ac_config_commands tools/Makefile"
34294 ac_config_commands="$ac_config_commands utils/Makefile"
34297 ac_config_commands="$ac_config_commands projects/Makefile"
34300 ac_config_commands="$ac_config_commands bindings/Makefile"
34303 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34307 cat >confcache <<\_ACEOF
34308 # This file is a shell script that caches the results of configure
34309 # tests run on this system so they can be shared between configure
34310 # scripts and configure runs, see configure's option --config-cache.
34311 # It is not useful on other systems. If it contains results you don't
34312 # want to keep, you may remove or edit it.
34314 # config.status only pays attention to the cache file if you give it
34315 # the --recheck option to rerun configure.
34317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34319 # following values.
34323 # The following way of writing the cache mishandles newlines in values,
34324 # but we know of no workaround that is simple, portable, and efficient.
34325 # So, we kill variables containing newlines.
34326 # Ultrix sh set writes to stderr and can't be redirected directly,
34327 # and sets the high bit in the cache file unless we assign to the vars.
34329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34330 eval ac_val=\$$ac_var
34334 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34335 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34338 _ | IFS | as_nl) ;; #(
34339 *) $as_unset $ac_var ;;
34345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34346 *${as_nl}ac_space=\ *)
34347 # `set' does not quote correctly, so add quotes (double-quote
34348 # substitution turns \\\\ into \\, and sed turns \\ into \).
34351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34354 # `set' quotes correctly as required by POSIX, so do not add quotes.
34355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34369 if test -w "$cache_file"; then
34370 test "x$cache_file" != "x/dev/null" &&
34371 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34372 echo "$as_me: updating cache $cache_file" >&6;}
34373 cat confcache >$cache_file
34375 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34376 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34382 # Let make expand exec_prefix.
34383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34385 DEFS=-DHAVE_CONFIG_H
34389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34390 # 1. Remove the extension, and $U if already installed.
34391 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34392 ac_i=`echo "$ac_i" | sed "$ac_script"`
34393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34394 # will be set to the directory where LIBOBJS objects are built.
34395 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34396 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34398 LIBOBJS=$ac_libobjs
34400 LTLIBOBJS=$ac_ltlibobjs
34403 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34404 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34405 Usually this means the macro was only invoked conditionally." >&5
34406 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34407 Usually this means the macro was only invoked conditionally." >&2;}
34408 { (exit 1); exit 1; }; }
34410 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34411 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34412 Usually this means the macro was only invoked conditionally." >&5
34413 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34414 Usually this means the macro was only invoked conditionally." >&2;}
34415 { (exit 1); exit 1; }; }
34418 : ${CONFIG_STATUS=./config.status}
34419 ac_clean_files_save=$ac_clean_files
34420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34421 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34422 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34423 cat >$CONFIG_STATUS <<_ACEOF
34425 # Generated by $as_me.
34426 # Run this file to recreate the current configuration.
34427 # Compiler output produced by configure, useful for debugging
34428 # configure, is in config.log if it exists.
34431 ac_cs_recheck=false
34433 SHELL=\${CONFIG_SHELL-$SHELL}
34436 cat >>$CONFIG_STATUS <<\_ACEOF
34437 ## --------------------- ##
34438 ## M4sh Initialization. ##
34439 ## --------------------- ##
34441 # Be Bourne compatible
34442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34446 # is contrary to our usage. Disable this feature.
34447 alias -g '${1+"$@"}'='"$@"'
34448 setopt NO_GLOB_SUBST
34450 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34452 BIN_SH=xpg4; export BIN_SH # for Tru64
34453 DUALCASE=1; export DUALCASE # for MKS sh
34457 # Avoid depending upon Character Ranges.
34458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34461 as_cr_digits='0123456789'
34462 as_cr_alnum=$as_cr_Letters$as_cr_digits
34464 # The user is always right.
34465 if test "${PATH_SEPARATOR+set}" != set; then
34466 echo "#! /bin/sh" >conf$$.sh
34467 echo "exit 0" >>conf$$.sh
34469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34477 # Support unset when possible.
34478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34486 # We need space, tab and new line, in precisely that order. Quoting is
34487 # there to prevent editors from complaining about space-tab.
34488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34489 # splitting by setting IFS to empty value.)
34494 # Find who we are. Look in the path if we contain no directory separator.
34496 *[\\/]* ) as_myself=$0 ;;
34497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498 for as_dir in $PATH
34501 test -z "$as_dir" && as_dir=.
34502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34508 # We did not find ourselves, most probably we were run as `sh COMMAND'
34509 # in which case we are not to be found in the path.
34510 if test "x$as_myself" = x; then
34513 if test ! -f "$as_myself"; then
34514 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34515 { (exit 1); exit 1; }
34518 # Work around bugs in pre-3.0 UWIN ksh.
34519 for as_var in ENV MAIL MAILPATH
34520 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34528 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34529 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34530 LC_TELEPHONE LC_TIME
34532 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34533 eval $as_var=C; export $as_var
34535 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34539 # Required to use basename.
34540 if expr a : '\(a\)' >/dev/null 2>&1 &&
34541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34547 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34548 as_basename=basename
34554 # Name of the executable.
34555 as_me=`$as_basename -- "$0" ||
34556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34557 X"$0" : 'X\(//\)$' \| \
34558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34560 sed '/^.*\/\([^/][^/]*\)\/*$/{
34579 as_lineno_1=$LINENO
34580 as_lineno_2=$LINENO
34581 test "x$as_lineno_1" != "x$as_lineno_2" &&
34582 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34585 # uniformly replaced by the line number. The first 'sed' inserts a
34586 # line-number line after each line using $LINENO; the second 'sed'
34587 # does the real work. The second script uses 'N' to pair each
34588 # line-number line with the line containing $LINENO, and appends
34589 # trailing '-' during substitution so that $LINENO is not a special
34590 # case at line end.
34591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34592 # scripts with optimization help from Paolo Bonzini. Blame Lee
34593 # E. McMahon (1931-1989) for sed's syntax. :-)
34605 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34608 ' >$as_me.lineno &&
34609 chmod +x "$as_me.lineno" ||
34610 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34611 { (exit 1); exit 1; }; }
34613 # Don't try to exec as it changes $[0], causing all sort of problems
34614 # (the dirname of $[0] is not the place where we might find the
34615 # original and so on. Autoconf is especially sensitive to this).
34616 . "./$as_me.lineno"
34617 # Exit status is that of the last command.
34622 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34628 ECHO_C= ECHO_N= ECHO_T=
34629 case `echo -n x` in
34631 case `echo 'x\c'` in
34632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34639 if expr a : '\(a\)' >/dev/null 2>&1 &&
34640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34646 rm -f conf$$ conf$$.exe conf$$.file
34647 if test -d conf$$.dir; then
34648 rm -f conf$$.dir/conf$$.file
34654 if ln -s conf$$.file conf$$ 2>/dev/null; then
34656 # ... but there are two gotchas:
34657 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34658 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34659 # In both cases, we have to default to `cp -p'.
34660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34662 elif ln conf$$.file conf$$ 2>/dev/null; then
34667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34668 rmdir conf$$.dir 2>/dev/null
34670 if mkdir -p . 2>/dev/null; then
34673 test -d ./-p && rmdir ./-p
34677 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34678 # systems may use methods other than mode bits to determine executability.
34679 cat >conf$$.file <<_ASEOF
34683 chmod +x conf$$.file
34684 if test -x conf$$.file >/dev/null 2>&1; then
34685 as_executable_p="test -x"
34691 # Sed expression to map a string onto a valid CPP name.
34692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34694 # Sed expression to map a string onto a valid variable name.
34695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34700 # Save the log message, to keep $[0] and so on meaningful, and to
34701 # report actual input values of CONFIG_FILES etc. instead of their
34702 # values after options handling.
34704 This file was extended by llvm $as_me 2.6svn, which was
34705 generated by GNU Autoconf 2.60. Invocation command line was
34707 CONFIG_FILES = $CONFIG_FILES
34708 CONFIG_HEADERS = $CONFIG_HEADERS
34709 CONFIG_LINKS = $CONFIG_LINKS
34710 CONFIG_COMMANDS = $CONFIG_COMMANDS
34713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34718 cat >>$CONFIG_STATUS <<_ACEOF
34719 # Files that config.status was made for.
34720 config_files="$ac_config_files"
34721 config_headers="$ac_config_headers"
34722 config_commands="$ac_config_commands"
34726 cat >>$CONFIG_STATUS <<\_ACEOF
34728 \`$as_me' instantiates files from templates according to the
34729 current configuration.
34731 Usage: $0 [OPTIONS] [FILE]...
34733 -h, --help print this help, then exit
34734 -V, --version print version number, then exit
34735 -q, --quiet do not print progress messages
34736 -d, --debug don't remove temporary files
34737 --recheck update $as_me by reconfiguring in the same conditions
34738 --file=FILE[:TEMPLATE]
34739 instantiate the configuration file FILE
34740 --header=FILE[:TEMPLATE]
34741 instantiate the configuration header FILE
34743 Configuration files:
34746 Configuration headers:
34749 Configuration commands:
34752 Report bugs to <bug-autoconf@gnu.org>."
34755 cat >>$CONFIG_STATUS <<_ACEOF
34757 llvm config.status 2.6svn
34758 configured by $0, generated by GNU Autoconf 2.60,
34759 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34761 Copyright (C) 2006 Free Software Foundation, Inc.
34762 This config.status script is free software; the Free Software Foundation
34763 gives unlimited permission to copy, distribute and modify it."
34770 cat >>$CONFIG_STATUS <<\_ACEOF
34771 # If no file are specified by the user, then we need to provide default
34772 # value. By we need to know if files were specified by the user.
34778 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34779 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34790 # Handling of the options.
34791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34793 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34794 echo "$ac_cs_version"; exit ;;
34795 --debug | --debu | --deb | --de | --d | -d )
34797 --file | --fil | --fi | --f )
34799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34800 ac_need_defaults=false;;
34801 --header | --heade | --head | --hea )
34803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34804 ac_need_defaults=false;;
34806 # Conflict between --help and --header
34807 { echo "$as_me: error: ambiguous option: $1
34808 Try \`$0 --help' for more information." >&2
34809 { (exit 1); exit 1; }; };;
34810 --help | --hel | -h )
34811 echo "$ac_cs_usage"; exit ;;
34812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34816 # This is an error.
34817 -*) { echo "$as_me: error: unrecognized option: $1
34818 Try \`$0 --help' for more information." >&2
34819 { (exit 1); exit 1; }; } ;;
34821 *) ac_config_targets="$ac_config_targets $1"
34822 ac_need_defaults=false ;;
34828 ac_configure_extra_args=
34830 if $ac_cs_silent; then
34832 ac_configure_extra_args="$ac_configure_extra_args --silent"
34836 cat >>$CONFIG_STATUS <<_ACEOF
34837 if \$ac_cs_recheck; then
34838 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34839 CONFIG_SHELL=$SHELL
34840 export CONFIG_SHELL
34841 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34845 cat >>$CONFIG_STATUS <<\_ACEOF
34849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34850 ## Running $as_me. ##
34856 cat >>$CONFIG_STATUS <<_ACEOF
34860 llvm_src="${srcdir}"
34864 cat >>$CONFIG_STATUS <<\_ACEOF
34866 # Handling of arguments.
34867 for ac_config_target in $ac_config_targets
34869 case $ac_config_target in
34870 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34871 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34872 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
34873 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34874 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34875 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34876 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34877 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34878 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34879 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34880 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34881 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34882 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34883 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34884 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34885 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34886 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34887 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34888 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34889 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34890 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34891 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34892 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34893 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34897 { (exit 1); exit 1; }; };;
34902 # If the user did not use the arguments to specify the items to instantiate,
34903 # then the envvar interface is used. Set only those that are not.
34904 # We use the long form for the default assignment because of an extremely
34905 # bizarre bug on SunOS 4.1.3.
34906 if $ac_need_defaults; then
34907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34912 # Have a temporary directory for convenience. Make it in the build tree
34913 # simply because there is no reason against having it here, and in addition,
34914 # creating and moving files from /tmp can sometimes cause problems.
34915 # Hook for its removal unless debugging.
34916 # Note that there is a small window in which the directory will not be cleaned:
34917 # after its creation but before its name has been assigned to `$tmp'.
34921 trap 'exit_status=$?
34922 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34924 trap '{ (exit 1); exit 1; }' 1 2 13 15
34926 # Create a (secure) tmp directory for tmp files.
34929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34930 test -n "$tmp" && test -d "$tmp"
34933 tmp=./conf$$-$RANDOM
34934 (umask 077 && mkdir "$tmp")
34937 echo "$me: cannot create a temporary directory in ." >&2
34938 { (exit 1); exit 1; }
34942 # Set up the sed scripts for CONFIG_FILES section.
34945 # No need to generate the scripts if there are no CONFIG_FILES.
34946 # This happens for instance when ./config.status config.h
34947 if test -n "$CONFIG_FILES"; then
34954 for ac_last_try in false false false false false :; do
34955 cat >conf$$subs.sed <<_ACEOF
34956 SHELL!$SHELL$ac_delim
34957 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34958 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34959 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34960 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34961 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34962 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34963 exec_prefix!$exec_prefix$ac_delim
34964 prefix!$prefix$ac_delim
34965 program_transform_name!$program_transform_name$ac_delim
34966 bindir!$bindir$ac_delim
34967 sbindir!$sbindir$ac_delim
34968 libexecdir!$libexecdir$ac_delim
34969 datarootdir!$datarootdir$ac_delim
34970 datadir!$datadir$ac_delim
34971 sysconfdir!$sysconfdir$ac_delim
34972 sharedstatedir!$sharedstatedir$ac_delim
34973 localstatedir!$localstatedir$ac_delim
34974 includedir!$includedir$ac_delim
34975 oldincludedir!$oldincludedir$ac_delim
34976 docdir!$docdir$ac_delim
34977 infodir!$infodir$ac_delim
34978 htmldir!$htmldir$ac_delim
34979 dvidir!$dvidir$ac_delim
34980 pdfdir!$pdfdir$ac_delim
34981 psdir!$psdir$ac_delim
34982 libdir!$libdir$ac_delim
34983 localedir!$localedir$ac_delim
34984 mandir!$mandir$ac_delim
34985 DEFS!$DEFS$ac_delim
34986 ECHO_C!$ECHO_C$ac_delim
34987 ECHO_N!$ECHO_N$ac_delim
34988 ECHO_T!$ECHO_T$ac_delim
34989 LIBS!$LIBS$ac_delim
34990 build_alias!$build_alias$ac_delim
34991 host_alias!$host_alias$ac_delim
34992 target_alias!$target_alias$ac_delim
34993 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34994 subdirs!$subdirs$ac_delim
34995 build!$build$ac_delim
34996 build_cpu!$build_cpu$ac_delim
34997 build_vendor!$build_vendor$ac_delim
34998 build_os!$build_os$ac_delim
34999 host!$host$ac_delim
35000 host_cpu!$host_cpu$ac_delim
35001 host_vendor!$host_vendor$ac_delim
35002 host_os!$host_os$ac_delim
35003 target!$target$ac_delim
35004 target_cpu!$target_cpu$ac_delim
35005 target_vendor!$target_vendor$ac_delim
35006 target_os!$target_os$ac_delim
35008 LINKALL!$LINKALL$ac_delim
35009 NOLINKALL!$NOLINKALL$ac_delim
35010 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35011 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35012 ARCH!$ARCH$ac_delim
35013 ENDIAN!$ENDIAN$ac_delim
35015 CFLAGS!$CFLAGS$ac_delim
35016 LDFLAGS!$LDFLAGS$ac_delim
35017 CPPFLAGS!$CPPFLAGS$ac_delim
35018 ac_ct_CC!$ac_ct_CC$ac_delim
35019 EXEEXT!$EXEEXT$ac_delim
35020 OBJEXT!$OBJEXT$ac_delim
35022 GREP!$GREP$ac_delim
35023 EGREP!$EGREP$ac_delim
35024 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35025 BUILD_CC!$BUILD_CC$ac_delim
35026 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35027 BUILD_CXX!$BUILD_CXX$ac_delim
35028 CVSBUILD!$CVSBUILD$ac_delim
35029 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35030 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35031 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35032 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35033 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35034 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35036 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35037 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35038 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35039 ENABLE_PIC!$ENABLE_PIC$ac_delim
35040 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35041 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35042 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35043 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35044 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35045 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35047 CXXFLAGS!$CXXFLAGS$ac_delim
35048 ac_ct_CXX!$ac_ct_CXX$ac_delim
35050 ifGNUmake!$ifGNUmake$ac_delim
35051 LN_S!$LN_S$ac_delim
35055 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35057 elif $ac_last_try; then
35058 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35060 { (exit 1); exit 1; }; }
35062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35067 if test -n "$ac_eof"; then
35068 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35069 ac_eof=`expr $ac_eof + 1`
35072 cat >>$CONFIG_STATUS <<_ACEOF
35073 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35078 s/^/s,@/; s/!/@,|#_!!_#|/
35081 s/'"$ac_delim"'$/,g/; t
35083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35084 ' >>$CONFIG_STATUS <conf$$subs.sed
35085 rm -f conf$$subs.sed
35086 cat >>$CONFIG_STATUS <<_ACEOF
35092 for ac_last_try in false false false false false :; do
35093 cat >conf$$subs.sed <<_ACEOF
35095 DATE!$DATE$ac_delim
35096 FIND!$FIND$ac_delim
35097 MKDIR!$MKDIR$ac_delim
35099 RANLIB!$RANLIB$ac_delim
35103 BINPWD!$BINPWD$ac_delim
35104 GRAPHVIZ!$GRAPHVIZ$ac_delim
35107 DOTTY!$DOTTY$ac_delim
35108 PERL!$PERL$ac_delim
35109 HAVE_PERL!$HAVE_PERL$ac_delim
35110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35112 INSTALL_DATA!$INSTALL_DATA$ac_delim
35113 BZIP2!$BZIP2$ac_delim
35114 DOXYGEN!$DOXYGEN$ac_delim
35115 GROFF!$GROFF$ac_delim
35116 GZIP!$GZIP$ac_delim
35117 POD2HTML!$POD2HTML$ac_delim
35118 POD2MAN!$POD2MAN$ac_delim
35119 RUNTEST!$RUNTEST$ac_delim
35120 TCLSH!$TCLSH$ac_delim
35122 OCAMLC!$OCAMLC$ac_delim
35123 OCAMLOPT!$OCAMLOPT$ac_delim
35124 OCAMLDEP!$OCAMLDEP$ac_delim
35125 OCAMLDOC!$OCAMLDOC$ac_delim
35127 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35128 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35129 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35130 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35131 LIBADD_DL!$LIBADD_DL$ac_delim
35132 ECHO!$ECHO$ac_delim
35134 STRIP!$STRIP$ac_delim
35135 CXXCPP!$CXXCPP$ac_delim
35137 FFLAGS!$FFLAGS$ac_delim
35138 ac_ct_F77!$ac_ct_F77$ac_delim
35139 LIBTOOL!$LIBTOOL$ac_delim
35140 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35141 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35142 LLVMGCC!$LLVMGCC$ac_delim
35143 LLVMGXX!$LLVMGXX$ac_delim
35144 USE_UDIS86!$USE_UDIS86$ac_delim
35145 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35146 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35147 ALLOCA!$ALLOCA$ac_delim
35148 MMAP_FILE!$MMAP_FILE$ac_delim
35149 LLVMCC1!$LLVMCC1$ac_delim
35150 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35151 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35152 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35153 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35154 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35155 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35156 SHLIBEXT!$SHLIBEXT$ac_delim
35157 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35158 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35159 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35160 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35161 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35162 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35163 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35164 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35165 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35166 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35167 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35168 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35169 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35170 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35171 RPATH!$RPATH$ac_delim
35172 RDYNAMIC!$RDYNAMIC$ac_delim
35173 LIBOBJS!$LIBOBJS$ac_delim
35174 LTLIBOBJS!$LTLIBOBJS$ac_delim
35177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35179 elif $ac_last_try; then
35180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35182 { (exit 1); exit 1; }; }
35184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35189 if test -n "$ac_eof"; then
35190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35191 ac_eof=`expr $ac_eof + 1`
35194 cat >>$CONFIG_STATUS <<_ACEOF
35195 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35200 s/^/s,@/; s/!/@,|#_!!_#|/
35203 s/'"$ac_delim"'$/,g/; t
35205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35206 ' >>$CONFIG_STATUS <conf$$subs.sed
35207 rm -f conf$$subs.sed
35208 cat >>$CONFIG_STATUS <<_ACEOF
35215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35217 # trailing colons and then remove the whole line if VPATH becomes empty
35218 # (actually we leave an empty line to preserve line numbers).
35219 if test "x$srcdir" = x.; then
35220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35221 s/:*\$(srcdir):*/:/
35222 s/:*\${srcdir}:*/:/
35224 s/^\([^=]*=[ ]*\):*/\1/
35230 cat >>$CONFIG_STATUS <<\_ACEOF
35231 fi # test -n "$CONFIG_FILES"
35234 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35237 :[FHLC]) ac_mode=$ac_tag; continue;;
35239 case $ac_mode$ac_tag in
35241 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35242 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35243 { (exit 1); exit 1; }; };;
35244 :[FH]-) ac_tag=-:-;;
35245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35262 -) ac_f="$tmp/stdin";;
35263 *) # Look for the file first in the build tree, then in the source tree
35264 # (if the path is not absolute). The absolute path cannot be DOS-style,
35265 # because $ac_f cannot contain `:'.
35269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35271 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35272 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35273 { (exit 1); exit 1; }; };;
35275 ac_file_inputs="$ac_file_inputs $ac_f"
35278 # Let's still pretend it is `configure' which instantiates (i.e., don't
35279 # use $as_me), people would be surprised to read:
35280 # /* config.h. Generated by config.status. */
35281 configure_input="Generated from "`IFS=:
35282 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35283 if test x"$ac_file" != x-; then
35284 configure_input="$ac_file. $configure_input"
35285 { echo "$as_me:$LINENO: creating $ac_file" >&5
35286 echo "$as_me: creating $ac_file" >&6;}
35290 *:-:* | *:-) cat >"$tmp/stdin";;
35295 ac_dir=`$as_dirname -- "$ac_file" ||
35296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35297 X"$ac_file" : 'X\(//\)[^/]' \| \
35298 X"$ac_file" : 'X\(//\)$' \| \
35299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35305 /^X\(\/\/\)[^/].*/{
35320 -*) as_dir=./$as_dir;;
35322 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35326 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35327 *) as_qdir=$as_dir;;
35329 as_dirs="'$as_qdir' $as_dirs"
35330 as_dir=`$as_dirname -- "$as_dir" ||
35331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35332 X"$as_dir" : 'X\(//\)[^/]' \| \
35333 X"$as_dir" : 'X\(//\)$' \| \
35334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35340 /^X\(\/\/\)[^/].*/{
35353 test -d "$as_dir" && break
35355 test -z "$as_dirs" || eval "mkdir $as_dirs"
35356 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35358 { (exit 1); exit 1; }; }; }
35362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35365 # A ".." for each directory in $ac_dir_suffix.
35366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35367 case $ac_top_builddir_sub in
35368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35372 ac_abs_top_builddir=$ac_pwd
35373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35374 # for backward compatibility:
35375 ac_top_builddir=$ac_top_build_prefix
35378 .) # We are building in place.
35380 ac_top_srcdir=$ac_top_builddir_sub
35381 ac_abs_top_srcdir=$ac_pwd ;;
35382 [\\/]* | ?:[\\/]* ) # Absolute name.
35383 ac_srcdir=$srcdir$ac_dir_suffix;
35384 ac_top_srcdir=$srcdir
35385 ac_abs_top_srcdir=$srcdir ;;
35386 *) # Relative name.
35387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35388 ac_top_srcdir=$ac_top_build_prefix$srcdir
35389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35406 cat >>$CONFIG_STATUS <<\_ACEOF
35407 # If the template does not know about datarootdir, expand it.
35408 # FIXME: This hack should be removed a few years after 2.60.
35409 ac_datarootdir_hack=; ac_datarootdir_seen=
35411 case `sed -n '/datarootdir/ {
35420 ' $ac_file_inputs` in
35421 *datarootdir*) ac_datarootdir_seen=yes;;
35422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35423 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35426 cat >>$CONFIG_STATUS <<_ACEOF
35427 ac_datarootdir_hack='
35428 s&@datadir@&$datadir&g
35429 s&@docdir@&$docdir&g
35430 s&@infodir@&$infodir&g
35431 s&@localedir@&$localedir&g
35432 s&@mandir@&$mandir&g
35433 s&\\\${datarootdir}&$datarootdir&g' ;;
35437 # Neutralize VPATH when `$srcdir' = `.'.
35438 # Shell code in configure.ac might set extrasub.
35439 # FIXME: do we really want to maintain this feature?
35440 cat >>$CONFIG_STATUS <<_ACEOF
35444 cat >>$CONFIG_STATUS <<\_ACEOF
35446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35447 s&@configure_input@&$configure_input&;t t
35448 s&@top_builddir@&$ac_top_builddir_sub&;t t
35449 s&@srcdir@&$ac_srcdir&;t t
35450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35451 s&@top_srcdir@&$ac_top_srcdir&;t t
35452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35453 s&@builddir@&$ac_builddir&;t t
35454 s&@abs_builddir@&$ac_abs_builddir&;t t
35455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35456 s&@INSTALL@&$ac_INSTALL&;t t
35457 $ac_datarootdir_hack
35458 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35461 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35462 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35463 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35464 which seems to be undefined. Please make sure it is defined." >&5
35465 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35466 which seems to be undefined. Please make sure it is defined." >&2;}
35470 -) cat "$tmp/out"; rm -f "$tmp/out";;
35471 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35480 # Transform confdefs.h into a sed script `conftest.defines', that
35481 # substitutes the proper values into config.h.in to produce config.h.
35482 rm -f conftest.defines conftest.tail
35483 # First, append a space to every undef/define line, to ease matching.
35484 echo 's/$/ /' >conftest.defines
35485 # Then, protect against being on the right side of a sed subst, or in
35486 # an unquoted here document, in config.status. If some macros were
35487 # called several times there might be several #defines for the same
35488 # symbol, which is useless. But do not sort them, since the last
35489 # AC_DEFINE must be honored.
35490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35491 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35492 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35493 # PARAMS is the parameter list in the macro definition--in most cases, it's
35494 # just an empty string.
35495 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35496 ac_dB='\\)[ (].*,\\1define\\2'
35504 s/^[ ]*#[ ]*define[ ][ ]*//
35509 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35510 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35511 ' >>conftest.defines
35513 # Remove the space that was appended to ease matching.
35514 # Then replace #undef with comments. This is necessary, for
35515 # example, in the case of _POSIX_SOURCE, which is predefined and required
35516 # on some systems where configure will not decide to define it.
35517 # (The regexp can be short, since the line contains either #define or #undef.)
35519 s,^[ #]*u.*,/* & */,' >>conftest.defines
35521 # Break up conftest.defines:
35522 ac_max_sed_lines=50
35524 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35525 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35526 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35528 ac_in='$ac_file_inputs'
35529 ac_out='"$tmp/out1"'
35530 ac_nxt='"$tmp/out2"'
35534 # Write a here document:
35535 cat >>$CONFIG_STATUS <<_ACEOF
35536 # First, check the format of the line:
35537 cat >"\$tmp/defines.sed" <<\\CEOF
35538 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35539 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35543 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35545 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35546 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35547 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35548 grep . conftest.tail >/dev/null || break
35549 rm -f conftest.defines
35550 mv conftest.tail conftest.defines
35552 rm -f conftest.defines conftest.tail
35554 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35555 cat >>$CONFIG_STATUS <<\_ACEOF
35556 if test x"$ac_file" != x-; then
35557 echo "/* $configure_input */" >"$tmp/config.h"
35558 cat "$ac_result" >>"$tmp/config.h"
35559 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35560 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35561 echo "$as_me: $ac_file is unchanged" >&6;}
35564 mv "$tmp/config.h" $ac_file
35567 echo "/* $configure_input */"
35573 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35574 echo "$as_me: executing $ac_file commands" >&6;}
35579 case $ac_file$ac_mode in
35580 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35582 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35584 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35586 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35588 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35590 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35592 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35594 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35596 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35598 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35600 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35602 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35604 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35611 { (exit 0); exit 0; }
35613 chmod +x $CONFIG_STATUS
35614 ac_clean_files=$ac_clean_files_save
35617 # configure is writing to config.log, and then calls config.status.
35618 # config.status does its own redirection, appending to config.log.
35619 # Unfortunately, on DOS this fails, as config.log is still kept open
35620 # by configure, so config.status won't be able to write to it; its
35621 # output is simply discarded. So we exec the FD to /dev/null,
35622 # effectively closing config.log, so it can be properly (re)opened and
35623 # appended to by config.status. When coming back to configure, we
35624 # need to make the FD available again.
35625 if test "$no_create" != yes; then
35627 ac_config_status_args=
35628 test "$silent" = yes &&
35629 ac_config_status_args="$ac_config_status_args --quiet"
35631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35634 # would make configure fail if this is the last instruction.
35635 $ac_cs_success || { (exit 1); exit 1; }
35639 # CONFIG_SUBDIRS section.
35641 if test "$no_recursion" != yes; then
35643 # Remove --cache-file and --srcdir arguments so they do not pile up.
35644 ac_sub_configure_args=
35646 eval "set x $ac_configure_args"
35650 if test -n "$ac_prev"; then
35655 -cache-file | --cache-file | --cache-fil | --cache-fi \
35656 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35657 ac_prev=cache_file ;;
35658 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35659 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35662 --config-cache | -C)
35664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35674 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35676 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35680 # Always prepend --prefix to ensure using the same prefix
35681 # in subdir configurations.
35682 ac_arg="--prefix=$prefix"
35684 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35686 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35689 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35691 # Do not complain, so a configure script can configure whichever
35692 # parts of a large source tree are present.
35693 test -d "$srcdir/$ac_dir" || continue
35695 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35696 echo "$as_me:$LINENO: $ac_msg" >&5
35700 -*) as_dir=./$as_dir;;
35702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35707 *) as_qdir=$as_dir;;
35709 as_dirs="'$as_qdir' $as_dirs"
35710 as_dir=`$as_dirname -- "$as_dir" ||
35711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35712 X"$as_dir" : 'X\(//\)[^/]' \| \
35713 X"$as_dir" : 'X\(//\)$' \| \
35714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35720 /^X\(\/\/\)[^/].*/{
35733 test -d "$as_dir" && break
35735 test -z "$as_dirs" || eval "mkdir $as_dirs"
35736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35738 { (exit 1); exit 1; }; }; }
35742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35745 # A ".." for each directory in $ac_dir_suffix.
35746 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35747 case $ac_top_builddir_sub in
35748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35752 ac_abs_top_builddir=$ac_pwd
35753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35754 # for backward compatibility:
35755 ac_top_builddir=$ac_top_build_prefix
35758 .) # We are building in place.
35760 ac_top_srcdir=$ac_top_builddir_sub
35761 ac_abs_top_srcdir=$ac_pwd ;;
35762 [\\/]* | ?:[\\/]* ) # Absolute name.
35763 ac_srcdir=$srcdir$ac_dir_suffix;
35764 ac_top_srcdir=$srcdir
35765 ac_abs_top_srcdir=$srcdir ;;
35766 *) # Relative name.
35767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35768 ac_top_srcdir=$ac_top_build_prefix$srcdir
35769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35776 # Check for guested configure; otherwise get Cygnus style configure.
35777 if test -f "$ac_srcdir/configure.gnu"; then
35778 ac_sub_configure=$ac_srcdir/configure.gnu
35779 elif test -f "$ac_srcdir/configure"; then
35780 ac_sub_configure=$ac_srcdir/configure
35781 elif test -f "$ac_srcdir/configure.in"; then
35782 # This should be Cygnus configure.
35783 ac_sub_configure=$ac_aux_dir/configure
35785 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35786 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35790 # The recursion is here.
35791 if test -n "$ac_sub_configure"; then
35792 # Make the cache file name correct relative to the subdirectory.
35793 case $cache_file in
35794 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35795 *) # Relative name.
35796 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35799 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35800 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35801 # The eval makes quoting arguments work.
35802 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35803 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35804 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35805 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35806 { (exit 1); exit 1; }; }