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
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
893 CONVENIENCE_LTDL_TRUE
894 CONVENIENCE_LTDL_FALSE
934 ENABLE_VISIBILITY_INLINES_HIDDEN
940 ac_precious_vars='build_alias
954 ac_subdirs_all='projects/sample
956 projects/llvm-stacker
963 projects/llvm-poolalloc
965 projects/llvm-kernel'
967 # Initialize some variables set by options.
969 ac_init_version=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name=s,x,x,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_$ac_feature=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1093 eval enable_$ac_feature=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1257 -site=* | --site=* | --sit=*)
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1284 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package=`echo $ac_package| sed 's/-/_/g'`
1290 eval with_$ac_package=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package | sed 's/-/_/g'`
1299 eval with_$ac_package=no ;;
1302 # Obsolete; use --with-x.
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1350 # Be sure to have absolute directory names.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362 { (exit 1); exit 1; }; }
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used." >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386 test "$silent" = yes && exec 6>/dev/null
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 { echo "$as_me: error: Working directory cannot be determined" >&2
1393 { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 { echo "$as_me: error: pwd does not report name of working directory" >&2
1396 { (exit 1); exit 1; }; }
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$0" : 'X\(//\)[^/]' \| \
1406 X"$0" : 'X\(//\)$' \| \
1407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1431 ac_srcdir_defaulted=no
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436 { (exit 1); exit 1; }; }
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441 { (exit 1); exit 1; }; }
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 --target=TARGET configure for building compilers for TARGET [HOST]
1531 if test -n "$ac_init_help"; then
1532 case $ac_init_help in
1533 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-optimized Compile with optimizations enabled (default is NO)
1541 --enable-profiling Compile with profiling enabled (default is NO)
1542 --enable-assertions Compile with assertion checks enabled (default is
1544 --enable-expensive-checks
1545 Compile with expensive debug checks enabled (default
1547 --enable-debug-runtime Build runtime libs with debug symbols (default is
1549 --enable-jit Enable Just In Time Compiling (default is YES)
1550 --enable-doxygen Build doxygen documentation (default is NO)
1551 --enable-threads Use threads if available (default is YES)
1552 --enable-pic Build LLVM with Position Independent Code (default
1554 --enable-targets Build specific host targets:
1555 all,host-only,{target-name} (default=all)
1556 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1558 --enable-bindings Build specific language bindings:
1559 all,auto,none,{binding-name} (default=auto)
1560 --enable-libffi Check for the presence of libffi (default is YES)
1561 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1563 --enable-llvmc-dynamic-plugins
1564 Enable dynamic LLVMC plugins (default is YES)
1565 --enable-ltdl-install install libltdl
1566 --enable-shared[=PKGS] build shared libraries
1568 --enable-static[=PKGS] build static libraries
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation
1573 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1580 --with-llvmgcc Specify location of llvm-gcc driver (default
1582 --with-llvmgxx Specify location of llvm-g++ driver (default
1584 --with-extra-options Specify additional options to compile LLVM with
1585 --with-ocaml-libdir Specify install location for ocaml bindings (default
1587 --with-binutils-include Specify path to binutils/include/ containing
1588 plugin-api.h file for gold plugin.
1589 --with-tclinclude directory where tcl headers are
1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1593 --with-tags[=TAGS] include additional configurations [automatic]
1594 --with-udis86=<path> Use udis86 external x86 disassembler library
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1606 CXXCPP C++ preprocessor
1607 F77 Fortran 77 compiler command
1608 FFLAGS Fortran 77 compiler flags
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1613 Report bugs to <llvmbugs@cs.uiuc.edu>.
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" || continue
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1641 .) # We are building in place.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1674 llvm configure 2.6svn
1675 generated by GNU Autoconf 2.60
1677 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1678 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1682 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1686 cat >config.log <<_ACEOF
1687 This file contains any messages produced by compilers while
1688 running configure, to aid debugging if configure makes a mistake.
1690 It was created by llvm $as_me 2.6svn, which was
1691 generated by GNU Autoconf 2.60. Invocation command line was
1703 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1712 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1713 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1714 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1715 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1716 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1717 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1718 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir=.
1727 echo "PATH: $as_dir"
1743 # Keep a trace of the command line.
1744 # Strip out --no-create and --no-recursion so they do not pile up.
1745 # Strip out --silent because we don't want to record it for future runs.
1746 # Also quote any args containing shell meta-characters.
1747 # Make two passes to allow for proper duplicate-argument suppression.
1751 ac_must_keep_next=false
1757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759 | -silent | --silent | --silen | --sile | --sil)
1762 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1767 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1768 if test $ac_must_keep_next = true; then
1769 ac_must_keep_next=false # Got value, back to normal.
1772 *=* | --config-cache | -C | -disable-* | --disable-* \
1773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775 | -with-* | --with-* | -without-* | --without-* | --x)
1776 case "$ac_configure_args0 " in
1777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1780 -* ) ac_must_keep_next=true ;;
1783 ac_configure_args="$ac_configure_args '$ac_arg'"
1788 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1789 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1791 # When interrupted or exit'd, cleanup temporary files, and complete
1792 # config.log. We remove comments because anyway the quotes in there
1793 # would cause problems or look ugly.
1794 # WARNING: Use '\'' to represent an apostrophe within the trap.
1795 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1796 trap 'exit_status=$?
1797 # Save into config.log some information that might help in debugging.
1802 ## ---------------- ##
1803 ## Cache variables. ##
1804 ## ---------------- ##
1807 # The following way of writing the cache mishandles newlines in values,
1809 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810 eval ac_val=\$$ac_var
1814 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1815 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1818 _ | IFS | as_nl) ;; #(
1819 *) $as_unset $ac_var ;;
1824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
1827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1839 ## ----------------- ##
1840 ## Output variables. ##
1841 ## ----------------- ##
1844 for ac_var in $ac_subst_vars
1846 eval ac_val=\$$ac_var
1848 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 echo "$ac_var='\''$ac_val'\''"
1854 if test -n "$ac_subst_files"; then
1856 ## ------------------- ##
1857 ## File substitutions. ##
1858 ## ------------------- ##
1861 for ac_var in $ac_subst_files
1863 eval ac_val=\$$ac_var
1865 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 echo "$ac_var='\''$ac_val'\''"
1872 if test -s confdefs.h; then
1882 test "$ac_signal" != 0 &&
1883 echo "$as_me: caught signal $ac_signal"
1884 echo "$as_me: exit $exit_status"
1886 rm -f core *.core core.conftest.* &&
1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1890 for ac_signal in 1 2 13 15; do
1891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1896 rm -f -r conftest* confdefs.h
1898 # Predefined preprocessor variables.
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_NAME "$PACKAGE_NAME"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_STRING "$PACKAGE_STRING"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1925 # Let the site file select an alternate cache file if it wants to.
1926 # Prefer explicitly selected file to automatically selected ones.
1927 if test -n "$CONFIG_SITE"; then
1928 set x "$CONFIG_SITE"
1929 elif test "x$prefix" != xNONE; then
1930 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1932 set x "$ac_default_prefix/share/config.site" \
1933 "$ac_default_prefix/etc/config.site"
1938 if test -r "$ac_site_file"; then
1939 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1940 echo "$as_me: loading site script $ac_site_file" >&6;}
1941 sed 's/^/| /' "$ac_site_file" >&5
1946 if test -r "$cache_file"; then
1947 # Some versions of bash will fail to source /dev/null (special
1948 # files actually), so we avoid doing that.
1949 if test -f "$cache_file"; then
1950 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1951 echo "$as_me: loading cache $cache_file" >&6;}
1953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1954 *) . "./$cache_file";;
1958 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1959 echo "$as_me: creating cache $cache_file" >&6;}
1963 # Check that the precious variables saved in the cache have kept the same
1965 ac_cache_corrupted=false
1966 for ac_var in $ac_precious_vars; do
1967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968 eval ac_new_set=\$ac_env_${ac_var}_set
1969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970 eval ac_new_val=\$ac_env_${ac_var}_value
1971 case $ac_old_set,$ac_new_set in
1973 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1977 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979 ac_cache_corrupted=: ;;
1982 if test "x$ac_old_val" != "x$ac_new_val"; then
1983 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1984 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1986 echo "$as_me: former value: $ac_old_val" >&2;}
1987 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1988 echo "$as_me: current value: $ac_new_val" >&2;}
1989 ac_cache_corrupted=:
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1995 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2004 if $ac_cache_corrupted; then
2005 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2006 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2007 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2008 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2009 { (exit 1); exit 1; }; }
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2053 for ac_dir in autoconf "$srcdir"/autoconf; do
2054 if test -f "$ac_dir/install-sh"; then
2056 ac_install_sh="$ac_aux_dir/install-sh -c"
2058 elif test -f "$ac_dir/install.sh"; then
2060 ac_install_sh="$ac_aux_dir/install.sh -c"
2062 elif test -f "$ac_dir/shtool"; then
2064 ac_install_sh="$ac_aux_dir/shtool install -c"
2068 if test -z "$ac_aux_dir"; then
2069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2071 { (exit 1); exit 1; }; }
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2084 if test ${srcdir} != "." ; then
2085 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2086 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2087 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2088 { (exit 1); exit 1; }; }
2092 for i in `ls ${srcdir}/projects`
2094 if test -d ${srcdir}/projects/${i} ; then
2097 sample) subdirs="$subdirs projects/sample"
2099 privbracket) subdirs="$subdirs projects/privbracket"
2101 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2103 # llvm-test is the old name of the test-suite, kept here for backwards
2105 llvm-test) subdirs="$subdirs projects/llvm-test"
2107 test-suite) subdirs="$subdirs projects/test-suite"
2109 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2111 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2113 llvm-java) subdirs="$subdirs projects/llvm-java"
2115 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2117 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2119 poolalloc) subdirs="$subdirs projects/poolalloc"
2121 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2124 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2125 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149 { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199 { (exit 1); exit 1; }; };;
2202 ac_save_IFS=$IFS; IFS='-'
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 { echo "$as_me:$LINENO: checking target system type" >&5
2216 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2217 if test "${ac_cv_target+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 if test "x$target_alias" = x; then
2221 ac_cv_target=$ac_cv_host
2223 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2226 { (exit 1); exit 1; }; }
2230 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 echo "${ECHO_T}$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2234 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235 echo "$as_me: error: invalid value of canonical target" >&2;}
2236 { (exit 1); exit 1; }; };;
2238 target=$ac_cv_target
2239 ac_save_IFS=$IFS; IFS='-'
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2249 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2252 # The aliases save the names the user supplied, while $host etc.
2253 # will get canonicalized.
2254 test -n "$target_alias" &&
2255 test "$program_prefix$program_suffix$program_transform_name" = \
2257 program_prefix=${target_alias}-
2259 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2260 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2261 if test "${llvm_cv_os_type+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="AIX"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="IRIX"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Cygwin"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,-all_load"
2282 llvm_cv_no_link_all_option="-Wl,-noall_load"
2283 llvm_cv_os_type="Darwin"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="FreeBSD"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="OpenBSD"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="NetBSD"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="DragonFly"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="HP-UX"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="Interix"
2314 llvm_cv_platform_type="Unix" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="Linux"
2319 llvm_cv_platform_type="Unix" ;;
2321 llvm_cv_link_all_option="-Wl,-z,allextract"
2322 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2323 llvm_cv_os_type="SunOS"
2324 llvm_cv_platform_type="Unix" ;;
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Win32"
2329 llvm_cv_platform_type="Win32" ;;
2331 llvm_cv_link_all_option="-Wl,--whole-archive"
2332 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333 llvm_cv_os_type="MingW"
2334 llvm_cv_platform_type="Win32" ;;
2336 llvm_cv_link_all_option=""
2337 llvm_cv_no_link_all_option=""
2338 llvm_cv_os_type="Unknown"
2339 llvm_cv_platform_type="Unknown" ;;
2342 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2343 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2345 if test "$llvm_cv_os_type" = "Unknown" ; then
2346 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2347 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2348 { (exit 1); exit 1; }; }
2354 LINKALL=$llvm_cv_link_all_option
2356 NOLINKALL=$llvm_cv_no_link_all_option
2359 case $llvm_cv_platform_type in
2362 cat >>confdefs.h <<\_ACEOF
2363 #define LLVM_ON_UNIX 1
2373 cat >>confdefs.h <<\_ACEOF
2374 #define LLVM_ON_WIN32 1
2384 { echo "$as_me:$LINENO: checking target architecture" >&5
2385 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2386 if test "${llvm_cv_target_arch+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 i?86-*) llvm_cv_target_arch="x86" ;;
2391 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2392 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2393 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2394 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2395 ia64-*) llvm_cv_target_arch="IA64" ;;
2396 arm*-*) llvm_cv_target_arch="ARM" ;;
2397 mips-*) llvm_cv_target_arch="Mips" ;;
2398 pic16-*) llvm_cv_target_arch="PIC16" ;;
2399 xcore-*) llvm_cv_target_arch="XCore" ;;
2400 msp430-*) llvm_cv_target_arch="MSP430" ;;
2401 *) llvm_cv_target_arch="Unknown" ;;
2404 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2405 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2407 if test "$llvm_cv_target_arch" = "Unknown" ; then
2408 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2409 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2412 # Determine the LLVM native architecture for the target
2413 case "$llvm_cv_target_arch" in
2414 x86) LLVM_NATIVE_ARCH="X86" ;;
2415 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2416 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2419 ARCH=$llvm_cv_target_arch
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2466 if test -z "$ac_cv_prog_CC"; then
2468 # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_CC="gcc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2504 if test "x$ac_ct_CC" = x; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet. If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet. If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2564 if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2599 if test $# != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 for ac_prog in cl.exe
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$CC"; then
2653 { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2661 test -n "$CC" && break
2664 if test -z "$CC"; then
2666 for ac_prog in cl.exe
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2705 test -n "$ac_ct_CC" && break
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compiler --version >&5") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler -v >&5") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -V >&5") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort. b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions. Remove them first so a
2799 # subsequent execution test works.
2801 for ac_file in $ac_files
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 if { (ac_try="$ac_link_default"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_link_default") 2>&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2825 for ac_file in $ac_files
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2832 # We found the default executable, but exeext='' is most
2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: C compiler cannot create executables
2859 See \`config.log' for more details." >&2;}
2860 { (exit 77); exit 77; }; }
2863 ac_exeext=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2867 # Check that the compiler produces executables we can run. If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2870 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2871 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2872 # If not cross compiling, check that we can run a simple program.
2873 if test "$cross_compiling" != yes; then
2874 if { ac_try='./$ac_file'
2875 { (case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_try") 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2886 if test "$cross_compiling" = maybe; then
2889 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2890 If you meant to cross compile, use \`--host'.
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: cannot run C compiled programs.
2893 If you meant to cross compile, use \`--host'.
2894 See \`config.log' for more details." >&2;}
2895 { (exit 1); exit 1; }; }
2899 { echo "$as_me:$LINENO: result: yes" >&5
2900 echo "${ECHO_T}yes" >&6; }
2902 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2903 ac_clean_files=$ac_clean_files_save
2904 # Check that the compiler produces executables we can run. If not, either
2905 # the compiler is broken, or we cross compile.
2906 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2907 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2908 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2909 echo "${ECHO_T}$cross_compiling" >&6; }
2911 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2912 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2913 if { (ac_try="$ac_link"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_link") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
2923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2925 # work properly (i.e., refer to `conftest.exe'), while it won't with
2927 for ac_file in conftest.exe conftest conftest.*; do
2928 test -f "$ac_file" || continue
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2940 See \`config.log' for more details." >&2;}
2941 { (exit 1); exit 1; }; }
2944 rm -f conftest$ac_cv_exeext
2945 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2946 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2948 rm -f conftest.$ac_ext
2949 EXEEXT=$ac_cv_exeext
2951 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2953 if test "${ac_cv_objext+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2971 rm -f conftest.o conftest.obj
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; then
2982 for ac_file in conftest.o conftest.obj conftest.*; do
2983 test -f "$ac_file" || continue;
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3003 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3004 echo "${ECHO_T}$ac_cv_objext" >&6; }
3005 OBJEXT=$ac_cv_objext
3007 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3078 GCC=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CFLAGS=${CFLAGS+set}
3080 ac_save_CFLAGS=$CFLAGS
3081 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3082 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_cc_g+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3269 if test "$ac_test_CFLAGS" = set; then
3270 CFLAGS=$ac_save_CFLAGS
3271 elif test $ac_cv_prog_cc_g = yes; then
3272 if test "$GCC" = yes; then
3278 if test "$GCC" = yes; then
3284 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3285 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_cc_c89+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 ac_cv_prog_cc_c89=no
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3299 #include <sys/types.h>
3300 #include <sys/stat.h>
3301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302 struct buf { int x; };
3303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304 static char *e (p, i)
3310 static char *f (char * (*g) (char **, int), char **p, ...)
3315 s = g (p, va_arg (v,int));
3320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321 function prototypes and stuff, but not '\xHH' hex character constants.
3322 These don't provoke an error unfortunately, instead are silently treated
3323 as 'x'. The following induces an error, until -std is added to get
3324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325 array size at least. It's necessary to write '\x00'==0 to get something
3326 that's true only with -std. */
3327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330 inside strings and character constants. */
3332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 CC="$ac_save_CC $ac_arg"
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367 { (case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_try") 2>&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; } &&
3376 { ac_try='test -s conftest.$ac_objext'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cc_c89=$ac_arg
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3394 rm -f core conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
3397 rm -f conftest.$ac_ext
3402 case "x$ac_cv_prog_cc_c89" in
3404 { echo "$as_me:$LINENO: result: none needed" >&5
3405 echo "${ECHO_T}none needed" >&6; } ;;
3407 { echo "$as_me:$LINENO: result: unsupported" >&5
3408 echo "${ECHO_T}unsupported" >&6; } ;;
3410 CC="$CC $ac_cv_prog_cc_c89"
3411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3429 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3430 # On Suns, sometimes $CPP names a directory.
3431 if test -n "$CPP" && test -d "$CPP"; then
3434 if test -z "$CPP"; then
3435 if test "${ac_cv_prog_CPP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 # Double quotes because CPP needs to be expanded
3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442 for ac_c_preproc_warn_flag in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485 if test -z "$ac_cpp_err"; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 # Broken: fails on valid input.
3495 rm -f conftest.err conftest.$ac_ext
3497 # OK, works on sane cases. Now check whether nonexistent headers
3498 # can be detected and how.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 #include <ac_nonexistent.h>
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 if test -z "$ac_cpp_err"; then
3530 # Broken: success on invalid input.
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 # Passes both tests.
3541 rm -f conftest.err conftest.$ac_ext
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then
3558 { echo "$as_me:$LINENO: result: $CPP" >&5
3559 echo "${ECHO_T}$CPP" >&6; }
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 # include <limits.h>
3578 # include <assert.h>
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604 if test -z "$ac_cpp_err"; then
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 # Broken: fails on valid input.
3614 rm -f conftest.err conftest.$ac_ext
3616 # OK, works on sane cases. Now check whether nonexistent headers
3617 # can be detected and how.
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 #include <ac_nonexistent.h>
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3648 if test -z "$ac_cpp_err"; then
3649 # Broken: success on invalid input.
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Passes both tests.
3660 rm -f conftest.err conftest.$ac_ext
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&2;}
3672 { (exit 1); exit 1; }; }
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3683 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 # Extract the first word of "grep ggrep" to use in msg output
3688 if test -z "$GREP"; then
3689 set dummy grep ggrep; ac_prog_name=$2
3690 if test "${ac_cv_path_GREP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 ac_path_GREP_found=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 test -z "$as_dir" && as_dir=.
3700 for ac_prog in grep ggrep; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3703 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3704 # Check for GNU ac_path_GREP and select it if it is found.
3705 # Check for GNU $ac_path_GREP
3706 case `"$ac_path_GREP" --version 2>&1` in
3708 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 echo 'GREP' >> "conftest.nl"
3718 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720 ac_count=`expr $ac_count + 1`
3721 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_GREP="$ac_path_GREP"
3724 ac_path_GREP_max=$ac_count
3726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733 $ac_path_GREP_found && break 3
3743 GREP="$ac_cv_path_GREP"
3744 if test -z "$GREP"; then
3745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3751 ac_cv_path_GREP=$GREP
3756 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3757 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3758 GREP="$ac_cv_path_GREP"
3761 { echo "$as_me:$LINENO: checking for egrep" >&5
3762 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3763 if test "${ac_cv_path_EGREP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3767 then ac_cv_path_EGREP="$GREP -E"
3769 # Extract the first word of "egrep" to use in msg output
3770 if test -z "$EGREP"; then
3771 set dummy egrep; ac_prog_name=$2
3772 if test "${ac_cv_path_EGREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 ac_path_EGREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in egrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3785 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3786 # Check for GNU ac_path_EGREP and select it if it is found.
3787 # Check for GNU $ac_path_EGREP
3788 case `"$ac_path_EGREP" --version 2>&1` in
3790 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 echo 'EGREP' >> "conftest.nl"
3800 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 ac_count=`expr $ac_count + 1`
3803 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_EGREP="$ac_path_EGREP"
3806 ac_path_EGREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815 $ac_path_EGREP_found && break 3
3825 EGREP="$ac_cv_path_EGREP"
3826 if test -z "$EGREP"; then
3827 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3829 { (exit 1); exit 1; }; }
3833 ac_cv_path_EGREP=$EGREP
3839 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3840 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3841 EGREP="$ac_cv_path_EGREP"
3844 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3846 if test "${ac_cv_header_stdc+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3868 rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3883 { (case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_try") 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_cv_header_stdc=yes
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 ac_cv_header_stdc=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 # define ISLOWER(c) \
3972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
3985 || toupper (i) != TOUPPER (i))
3990 rm -f conftest$ac_exeext
3991 if { (ac_try="$ac_link"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_link") 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_cv_header_stdc=no
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4029 cat >>confdefs.h <<\_ACEOF
4030 #define STDC_HEADERS 1
4035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046 inttypes.h stdint.h unistd.h
4048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4062 #include <$ac_header>
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 eval "$as_ac_Header=yes"
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 eval "$as_ac_Header=no"
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_res=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4112 cat >>confdefs.h <<_ACEOF
4113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4122 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4123 if test "${ac_cv_c_bigendian+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 # See if sys/param.h defines the BYTE_ORDER macro.
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 #include <sys/types.h>
4134 #include <sys/param.h>
4139 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4156 grep -v '^ *+' conftest.er1 >conftest.err
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 # It does; now see whether it defined to BIG_ENDIAN or not.
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <sys/types.h>
4189 #include <sys/param.h>
4194 #if BYTE_ORDER != BIG_ENDIAN
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_c_bigendian=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_c_bigendian=no
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 # It does not; compile a test program.
4250 if test "$cross_compiling" = yes; then
4251 # try to guess the endianness by grepping values into an object file
4252 ac_cv_c_bigendian=unknown
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4260 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4261 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4262 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4263 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4264 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4268 _ascii (); _ebcdic ();
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4308 ac_cv_c_bigendian=yes
4310 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4311 if test "$ac_cv_c_bigendian" = unknown; then
4312 ac_cv_c_bigendian=no
4314 # finding both strings is unlikely to happen, but who knows?
4315 ac_cv_c_bigendian=unknown
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4338 /* Are we little or big endian? From Harbison&Steele. */
4342 char c[sizeof (long int)];
4345 return u.c[sizeof (long int) - 1] == 1;
4351 rm -f conftest$ac_exeext
4352 if { (ac_try="$ac_link"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_link") 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_cv_c_bigendian=no
4373 echo "$as_me: program exited with status $ac_status" >&5
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4378 ac_cv_c_bigendian=yes
4380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4389 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4390 case $ac_cv_c_bigendian in
4398 { { echo "$as_me:$LINENO: error: unknown endianness
4399 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4400 echo "$as_me: error: unknown endianness
4401 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4402 { (exit 1); exit 1; }; } ;;
4406 if test "$cross_compiling" = yes; then
4407 LLVM_CROSS_COMPILING=1
4410 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4411 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4412 if test "${ac_cv_build_exeext+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4416 ac_cv_build_exeext=.exe
4418 ac_build_prefix=${build_alias}-
4420 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4421 set dummy ${ac_build_prefix}gcc; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -n "$BUILD_CC"; then
4428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 BUILD_CC=$ac_cv_prog_BUILD_CC
4448 if test -n "$BUILD_CC"; then
4449 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450 echo "${ECHO_T}$BUILD_CC" >&6; }
4452 { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4457 if test -z "$BUILD_CC"; then
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$BUILD_CC"; then
4466 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_BUILD_CC="gcc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 BUILD_CC=$ac_cv_prog_BUILD_CC
4486 if test -n "$BUILD_CC"; then
4487 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4488 echo "${ECHO_T}$BUILD_CC" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 if test -z "$BUILD_CC"; then
4496 # Extract the first word of "cc", so it can be a program name with args.
4497 set dummy cc; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$BUILD_CC"; then
4504 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4515 ac_prog_rejected=yes
4518 ac_cv_prog_BUILD_CC="cc"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 if test $ac_prog_rejected = yes; then
4527 # We found a bogon in the path, so make sure we never use it.
4528 set dummy $ac_cv_prog_BUILD_CC
4530 if test $# != 0; then
4531 # We chose a different compiler from the bogus one.
4532 # However, it has the same basename, so the bogon will be chosen
4533 # first if we set BUILD_CC to just the basename; use the full file name.
4535 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4540 BUILD_CC=$ac_cv_prog_BUILD_CC
4541 if test -n "$BUILD_CC"; then
4542 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543 echo "${ECHO_T}$BUILD_CC" >&6; }
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4552 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4553 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4554 { (exit 1); exit 1; }; }
4555 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4557 echo 'int main () { return 0; }' > conftest.$ac_ext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4560 (eval $ac_build_link) 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; then
4564 for file in conftest.*; do
4566 *.c | *.o | *.obj | *.dSYM) ;;
4567 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4571 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4572 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4573 { (exit 1); exit 1; }; }
4576 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4581 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4582 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4583 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4584 ac_build_exeext=$BUILD_EXEEXT
4586 ac_build_prefix=${build_alias}-
4587 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4588 set dummy ${ac_build_prefix}g++; ac_word=$2
4589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 if test -n "$BUILD_CXX"; then
4595 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4615 if test -n "$BUILD_CXX"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4617 echo "${ECHO_T}$BUILD_CXX" >&6; }
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4624 if test -z "$BUILD_CXX"; then
4625 # Extract the first word of "g++", so it can be a program name with args.
4626 set dummy g++; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$BUILD_CXX"; then
4633 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_BUILD_CXX="g++"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4653 if test -n "$BUILD_CXX"; then
4654 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4655 echo "${ECHO_T}$BUILD_CXX" >&6; }
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4662 if test -z "$BUILD_CXX"; then
4663 # Extract the first word of "c++", so it can be a program name with args.
4664 set dummy c++; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test -n "$BUILD_CXX"; then
4671 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4682 ac_prog_rejected=yes
4685 ac_cv_prog_BUILD_CXX="c++"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 if test $ac_prog_rejected = yes; then
4694 # We found a bogon in the path, so make sure we never use it.
4695 set dummy $ac_cv_prog_BUILD_CXX
4697 if test $# != 0; then
4698 # We chose a different compiler from the bogus one.
4699 # However, it has the same basename, so the bogon will be chosen
4700 # first if we set BUILD_CXX to just the basename; use the full file name.
4702 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4707 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708 if test -n "$BUILD_CXX"; then
4709 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710 echo "${ECHO_T}$BUILD_CXX" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4720 LLVM_CROSS_COMPILING=0
4724 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4735 # Check whether --enable-optimized was given.
4736 if test "${enable_optimized+set}" = set; then
4737 enableval=$enable_optimized;
4742 if test ${enableval} = "no" ; then
4746 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4750 # Check whether --enable-profiling was given.
4751 if test "${enable_profiling+set}" = set; then
4752 enableval=$enable_profiling;
4757 if test ${enableval} = "no" ; then
4761 ENABLE_PROFILING=ENABLE_PROFILING=1
4765 # Check whether --enable-assertions was given.
4766 if test "${enable_assertions+set}" = set; then
4767 enableval=$enable_assertions;
4772 if test ${enableval} = "yes" ; then
4776 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4780 # Check whether --enable-expensive-checks was given.
4781 if test "${enable_expensive_checks+set}" = set; then
4782 enableval=$enable_expensive_checks;
4787 if test ${enableval} = "yes" ; then
4788 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4790 EXPENSIVE_CHECKS=yes
4793 ENABLE_EXPENSIVE_CHECKS=
4799 # Check whether --enable-debug-runtime was given.
4800 if test "${enable_debug_runtime+set}" = set; then
4801 enableval=$enable_debug_runtime;
4806 if test ${enableval} = "no" ; then
4810 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4814 # Check whether --enable-jit was given.
4815 if test "${enable_jit+set}" = set; then
4816 enableval=$enable_jit;
4821 if test ${enableval} = "no"
4826 case "$llvm_cv_target_arch" in
4827 x86) TARGET_HAS_JIT=1
4829 Sparc) TARGET_HAS_JIT=0
4831 PowerPC) TARGET_HAS_JIT=1
4833 x86_64) TARGET_HAS_JIT=1
4835 Alpha) TARGET_HAS_JIT=1
4837 IA64) TARGET_HAS_JIT=0
4839 ARM) TARGET_HAS_JIT=0
4841 Mips) TARGET_HAS_JIT=0
4843 PIC16) TARGET_HAS_JIT=0
4845 XCore) TARGET_HAS_JIT=0
4847 MSP430) TARGET_HAS_JIT=0
4854 # Check whether --enable-doxygen was given.
4855 if test "${enable_doxygen+set}" = set; then
4856 enableval=$enable_doxygen;
4861 case "$enableval" in
4862 yes) ENABLE_DOXYGEN=1
4864 no) ENABLE_DOXYGEN=0
4866 default) ENABLE_DOXYGEN=0
4868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4869 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4873 # Check whether --enable-threads was given.
4874 if test "${enable_threads+set}" = set; then
4875 enableval=$enable_threads;
4880 case "$enableval" in
4881 yes) ENABLE_THREADS=1
4883 no) ENABLE_THREADS=0
4885 default) ENABLE_THREADS=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_THREADS $ENABLE_THREADS
4897 # Check whether --enable-pic was given.
4898 if test "${enable_pic+set}" = set; then
4899 enableval=$enable_pic;
4904 case "$enableval" in
4909 default) ENABLE_PIC=1
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4916 cat >>confdefs.h <<_ACEOF
4917 #define ENABLE_PIC $ENABLE_PIC
4922 # Check whether --enable-targets was given.
4923 if test "${enable_targets+set}" = set; then
4924 enableval=$enable_targets;
4929 case "$enableval" in
4930 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4932 case "$llvm_cv_target_arch" in
4933 x86) TARGETS_TO_BUILD="X86" ;;
4934 x86_64) TARGETS_TO_BUILD="X86" ;;
4935 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4936 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4937 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4938 IA64) TARGETS_TO_BUILD="IA64" ;;
4939 ARM) TARGETS_TO_BUILD="ARM" ;;
4940 Mips) TARGETS_TO_BUILD="Mips" ;;
4941 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4942 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4943 XCore) TARGETS_TO_BUILD="XCore" ;;
4944 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4945 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4946 echo "$as_me: error: Can not set target to build" >&2;}
4947 { (exit 1); exit 1; }; } ;;
4950 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4952 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4953 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4954 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4955 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4956 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4957 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4958 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4959 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4960 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4961 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4962 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4963 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4964 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4965 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4966 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4967 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4974 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4977 # Determine whether we are building LLVM support for the native architecture.
4978 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979 for a_target in $TARGETS_TO_BUILD; do
4980 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4981 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4983 cat >>confdefs.h <<_ACEOF
4984 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4990 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4991 # Targets.def and AsmPrinters.def.
4992 LLVM_ENUM_TARGETS=""
4993 LLVM_ENUM_ASM_PRINTERS=""
4994 for target_to_build in $TARGETS_TO_BUILD; do
4995 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4996 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4997 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5003 # Check whether --enable-cbe-printf-a was given.
5004 if test "${enable_cbe_printf_a+set}" = set; then
5005 enableval=$enable_cbe_printf_a;
5010 case "$enableval" in
5011 yes) ENABLE_CBE_PRINTF_A=1
5013 no) ENABLE_CBE_PRINTF_A=0
5015 default) ENABLE_CBE_PRINTF_A=1
5017 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5018 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5019 { (exit 1); exit 1; }; } ;;
5022 cat >>confdefs.h <<_ACEOF
5023 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5028 # Check whether --with-llvmgccdir was given.
5029 if test "${with_llvmgccdir+set}" = set; then
5030 withval=$with_llvmgccdir;
5036 default) WITH_LLVMGCCDIR=default ;;
5037 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5039 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5044 # Check whether --with-llvmgcc was given.
5045 if test "${with_llvmgcc+set}" = set; then
5046 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5052 # Check whether --with-llvmgxx was given.
5053 if test "${with_llvmgxx+set}" = set; then
5054 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5059 if test -n "$LLVMGCC"; then
5060 LLVMGCCCOMMAND="$LLVMGCC"
5063 if test -n "$LLVMGXX"; then
5064 LLVMGXXCOMMAND="$LLVMGXX"
5067 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5068 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5069 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5070 { (exit 1); exit 1; }; };
5073 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5074 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5075 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5076 { (exit 1); exit 1; }; };
5080 # Check whether --with-extra-options was given.
5081 if test "${with_extra_options+set}" = set; then
5082 withval=$with_extra_options;
5088 default) EXTRA_OPTIONS= ;;
5089 *) EXTRA_OPTIONS=$withval ;;
5091 EXTRA_OPTIONS=$EXTRA_OPTIONS
5094 # Check whether --enable-bindings was given.
5095 if test "${enable_bindings+set}" = set; then
5096 enableval=$enable_bindings;
5101 BINDINGS_TO_BUILD=""
5102 case "$enableval" in
5103 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5104 all ) BINDINGS_TO_BUILD="ocaml" ;;
5105 none | no) BINDINGS_TO_BUILD="" ;;
5106 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5107 case "$a_binding" in
5108 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5109 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5110 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5118 # Check whether --with-ocaml-libdir was given.
5119 if test "${with_ocaml_libdir+set}" = set; then
5120 withval=$with_ocaml_libdir;
5126 auto) with_ocaml_libdir="$withval" ;;
5127 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5129 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5134 # Check whether --with-binutils-include was given.
5135 if test "${with_binutils_include+set}" = set; then
5136 withval=$with_binutils_include;
5142 default) WITH_BINUTILS_INCDIR=default ;;
5143 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5144 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5145 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5148 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5149 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5151 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5152 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5153 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5154 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5155 { (exit 1); exit 1; }; };
5159 # Check whether --enable-libffi was given.
5160 if test "${enable_libffi+set}" = set; then
5161 enableval=$enable_libffi;
5166 case "$enableval" in
5167 yes) llvm_cv_enable_libffi="yes" ;;
5168 no) llvm_cv_enable_libffi="no" ;;
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5174 if test "$llvm_cv_os_type" = "Win32" ; then
5180 # Check whether --enable-llvmc-dynamic was given.
5181 if test "${enable_llvmc_dynamic+set}" = set; then
5182 enableval=$enable_llvmc_dynamic;
5184 enableval=$llvmc_dynamic
5187 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5188 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5191 ENABLE_LLVMC_DYNAMIC=
5195 # Check whether --enable-llvmc-dynamic-plugins was given.
5196 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5197 enableval=$enable_llvmc_dynamic_plugins;
5202 if test ${enableval} = "yes" ; then
5203 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5206 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5222 if test -z "$CPP"; then
5223 if test "${ac_cv_prog_CPP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 # Double quotes because CPP needs to be expanded
5227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5230 for ac_c_preproc_warn_flag in '' yes
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5245 # include <limits.h>
5247 # include <assert.h>
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null; then
5264 if test -s conftest.err; then
5265 ac_cpp_err=$ac_c_preproc_warn_flag
5266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273 if test -z "$ac_cpp_err"; then
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 # Broken: fails on valid input.
5283 rm -f conftest.err conftest.$ac_ext
5285 # OK, works on sane cases. Now check whether nonexistent headers
5286 # can be detected and how.
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317 if test -z "$ac_cpp_err"; then
5318 # Broken: success on invalid input.
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 # Passes both tests.
5329 rm -f conftest.err conftest.$ac_ext
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5346 { echo "$as_me:$LINENO: result: $CPP" >&5
5347 echo "${ECHO_T}$CPP" >&6; }
5349 for ac_c_preproc_warn_flag in '' yes
5351 # Use a header file that comes with gcc, so configuring glibc
5352 # with a fresh cross-compiler works.
5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354 # <limits.h> exists even on freestanding compilers.
5355 # On the NeXT, cc -E runs the code through the compiler's parser,
5356 # not just through cpp. "Syntax error" is here to catch this case.
5357 cat >conftest.$ac_ext <<_ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5364 # include <limits.h>
5366 # include <assert.h>
5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 if test -z "$ac_cpp_err"; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 # Broken: fails on valid input.
5402 rm -f conftest.err conftest.$ac_ext
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <ac_nonexistent.h>
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436 if test -z "$ac_cpp_err"; then
5437 # Broken: success on invalid input.
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 # Passes both tests.
5448 rm -f conftest.err conftest.$ac_ext
5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452 rm -f conftest.err conftest.$ac_ext
5453 if $ac_preproc_ok; then
5456 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." >&5
5458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5459 See \`config.log' for more details." >&2;}
5460 { (exit 1); exit 1; }; }
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_CC+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 if test -n "$CC"; then
5506 { echo "$as_me:$LINENO: result: $CC" >&5
5507 echo "${ECHO_T}$CC" >&6; }
5509 { echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6; }
5514 test -n "$CC" && break
5517 if test -z "$CC"; then
5521 # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy $ac_prog; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 if test -n "$ac_ct_CC"; then
5529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_CC="$ac_prog"
5539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549 if test -n "$ac_ct_CC"; then
5550 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5551 echo "${ECHO_T}$ac_ct_CC" >&6; }
5553 { echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6; }
5558 test -n "$ac_ct_CC" && break
5561 if test "x$ac_ct_CC" = x; then
5564 case $cross_compiling:$ac_tool_warned in
5566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5567 whose name does not start with the host triplet. If you think this
5568 configuration is useful to you, please write to autoconf@gnu.org." >&5
5569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5570 whose name does not start with the host triplet. If you think this
5571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5572 ac_tool_warned=yes ;;
5579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5580 See \`config.log' for more details." >&5
5581 echo "$as_me: error: no acceptable C compiler found in \$PATH
5582 See \`config.log' for more details." >&2;}
5583 { (exit 1); exit 1; }; }
5585 # Provide some information about the compiler.
5586 echo "$as_me:$LINENO: checking for C compiler version" >&5
5587 ac_compiler=`set X $ac_compile; echo $2`
5588 { (ac_try="$ac_compiler --version >&5"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compiler --version >&5") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598 { (ac_try="$ac_compiler -v >&5"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compiler -v >&5") 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5608 { (ac_try="$ac_compiler -V >&5"
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compiler -V >&5") 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }
5619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5657 { (case "(($ac_try" in
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_try") 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_try") 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5688 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5690 GCC=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_test_CFLAGS=${CFLAGS+set}
5692 ac_save_CFLAGS=$CFLAGS
5693 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5694 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_cc_g+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 ac_save_c_werror_flag=$ac_c_werror_flag
5699 ac_c_werror_flag=yes
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5787 { (case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_try") 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_try") 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_c_werror_flag=$ac_save_c_werror_flag
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_try") 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_c_werror_flag=$ac_save_c_werror_flag
5879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5880 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5881 if test "$ac_test_CFLAGS" = set; then
5882 CFLAGS=$ac_save_CFLAGS
5883 elif test $ac_cv_prog_cc_g = yes; then
5884 if test "$GCC" = yes; then
5890 if test "$GCC" = yes; then
5896 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5897 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_cc_c89+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 ac_cv_prog_cc_c89=no
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 #include <sys/stat.h>
5913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5914 struct buf { int x; };
5915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5916 static char *e (p, i)
5922 static char *f (char * (*g) (char **, int), char **p, ...)
5927 s = g (p, va_arg (v,int));
5932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5933 function prototypes and stuff, but not '\xHH' hex character constants.
5934 These don't provoke an error unfortunately, instead are silently treated
5935 as 'x'. The following induces an error, until -std is added to get
5936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5937 array size at least. It's necessary to write '\x00'==0 to get something
5938 that's true only with -std. */
5939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5942 inside strings and character constants. */
5944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5946 int test (int i, double x);
5947 struct s1 {int (*f) (int a);};
5948 struct s2 {int (*f) (double a);};
5949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5963 CC="$ac_save_CC $ac_arg"
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_prog_cc_c89=$ac_arg
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6006 rm -f core conftest.err conftest.$ac_objext
6007 test "x$ac_cv_prog_cc_c89" != "xno" && break
6009 rm -f conftest.$ac_ext
6014 case "x$ac_cv_prog_cc_c89" in
6016 { echo "$as_me:$LINENO: result: none needed" >&5
6017 echo "${ECHO_T}none needed" >&6; } ;;
6019 { echo "$as_me:$LINENO: result: unsupported" >&5
6020 echo "${ECHO_T}unsupported" >&6; } ;;
6022 CC="$CC $ac_cv_prog_cc_c89"
6023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 ac_cpp='$CXXCPP $CPPFLAGS'
6036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039 if test -z "$CXX"; then
6040 if test -n "$CCC"; then
6043 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_CXX+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test -n "$CXX"; then
6054 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 if test -n "$CXX"; then
6075 { echo "$as_me:$LINENO: result: $CXX" >&5
6076 echo "${ECHO_T}$CXX" >&6; }
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6083 test -n "$CXX" && break
6086 if test -z "$CXX"; then
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$ac_ct_CXX"; then
6098 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_ac_ct_CXX="$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6118 if test -n "$ac_ct_CXX"; then
6119 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6120 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6127 test -n "$ac_ct_CXX" && break
6130 if test "x$ac_ct_CXX" = x; then
6133 case $cross_compiling:$ac_tool_warned in
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet. If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6149 # Provide some information about the compiler.
6150 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6151 ac_compiler=`set X $ac_compile; echo $2`
6152 { (ac_try="$ac_compiler --version >&5"
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compiler --version >&5") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162 { (ac_try="$ac_compiler -v >&5"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compiler -v >&5") 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }
6172 { (ac_try="$ac_compiler -V >&5"
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compiler -V >&5") 2>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }
6183 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6221 { (case "(($ac_try" in
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_try") 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } &&
6230 { ac_try='test -s conftest.$ac_objext'
6231 { (case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_try") 2>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6252 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6253 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6254 GXX=`test $ac_compiler_gnu = yes && echo yes`
6255 ac_test_CXXFLAGS=${CXXFLAGS+set}
6256 ac_save_CXXFLAGS=$CXXFLAGS
6257 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6258 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_cxx_g+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6263 ac_cxx_werror_flag=yes
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_prog_cxx_g=yes
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6351 { (case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_try") 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_try") 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_try") 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_prog_cxx_g=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6443 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6444 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6445 if test "$ac_test_CXXFLAGS" = set; then
6446 CXXFLAGS=$ac_save_CXXFLAGS
6447 elif test $ac_cv_prog_cxx_g = yes; then
6448 if test "$GXX" = yes; then
6454 if test "$GXX" = yes; then
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6468 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6469 if test "${lt_cv_path_NM+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 if test -n "$NM"; then
6473 # Let the user override the test.
6476 lt_nm_to_check="${ac_tool_prefix}nm"
6477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6478 lt_nm_to_check="$lt_nm_to_check nm"
6480 for lt_tmp_nm in $lt_nm_to_check; do
6481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6484 test -z "$ac_dir" && ac_dir=.
6485 tmp_nm="$ac_dir/$lt_tmp_nm"
6486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6487 # Check to see if the nm accepts a BSD-compat flag.
6488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6489 # nm: unknown option "B" ignored
6490 # Tru64's nm complains that /dev/null is an invalid object file
6491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6492 */dev/null* | *'Invalid file or object type'*)
6493 lt_cv_path_NM="$tmp_nm -B"
6497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6499 lt_cv_path_NM="$tmp_nm -p"
6503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6504 continue # so that we can try to find one that supports BSD flags
6513 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6516 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6517 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522 { echo "$as_me:$LINENO: checking for GNU make" >&5
6523 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6524 if test "${llvm_cv_gnu_make_command+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 llvm_cv_gnu_make_command=''
6528 for a in "$MAKE" make gmake gnumake ; do
6529 if test -z "$a" ; then continue ; fi ;
6530 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6532 llvm_cv_gnu_make_command=$a ;
6537 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6538 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6539 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6543 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6544 echo "${ECHO_T}\"Not found\"" >&6; };
6548 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6551 if test "$LN_S" = "ln -s"; then
6552 { echo "$as_me:$LINENO: result: yes" >&5
6553 echo "${ECHO_T}yes" >&6; }
6555 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6556 echo "${ECHO_T}no, using $LN_S" >&6; }
6559 # Extract the first word of "cmp", so it can be a program name with args.
6560 set dummy cmp; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_CMP+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6591 if test -n "$CMP"; then
6592 { echo "$as_me:$LINENO: result: $CMP" >&5
6593 echo "${ECHO_T}$CMP" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 # Extract the first word of "cp", so it can be a program name with args.
6601 set dummy cp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6632 if test -n "$CP"; then
6633 { echo "$as_me:$LINENO: result: $CP" >&5
6634 echo "${ECHO_T}$CP" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6641 # Extract the first word of "date", so it can be a program name with args.
6642 set dummy date; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_DATE+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6672 DATE=$ac_cv_path_DATE
6673 if test -n "$DATE"; then
6674 { echo "$as_me:$LINENO: result: $DATE" >&5
6675 echo "${ECHO_T}$DATE" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 # Extract the first word of "find", so it can be a program name with args.
6683 set dummy find; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_FIND+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6713 FIND=$ac_cv_path_FIND
6714 if test -n "$FIND"; then
6715 { echo "$as_me:$LINENO: result: $FIND" >&5
6716 echo "${ECHO_T}$FIND" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 # Extract the first word of "grep", so it can be a program name with args.
6724 set dummy grep; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_GREP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6754 GREP=$ac_cv_path_GREP
6755 if test -n "$GREP"; then
6756 { echo "$as_me:$LINENO: result: $GREP" >&5
6757 echo "${ECHO_T}$GREP" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 # Extract the first word of "mkdir", so it can be a program name with args.
6765 set dummy mkdir; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_MKDIR+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6795 MKDIR=$ac_cv_path_MKDIR
6796 if test -n "$MKDIR"; then
6797 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6798 echo "${ECHO_T}$MKDIR" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 # Extract the first word of "mv", so it can be a program name with args.
6806 set dummy mv; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MV+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6837 if test -n "$MV"; then
6838 { echo "$as_me:$LINENO: result: $MV" >&5
6839 echo "${ECHO_T}$MV" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_prog_RANLIB+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 if test -n "$RANLIB"; then
6855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 RANLIB=$ac_cv_prog_RANLIB
6875 if test -n "$RANLIB"; then
6876 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6877 echo "${ECHO_T}$RANLIB" >&6; }
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6885 if test -z "$ac_cv_prog_RANLIB"; then
6886 ac_ct_RANLIB=$RANLIB
6887 # Extract the first word of "ranlib", so it can be a program name with args.
6888 set dummy ranlib; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 if test -n "$ac_ct_RANLIB"; then
6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_ac_ct_RANLIB="ranlib"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6915 if test -n "$ac_ct_RANLIB"; then
6916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6917 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6923 if test "x$ac_ct_RANLIB" = x; then
6926 case $cross_compiling:$ac_tool_warned in
6928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6929 whose name does not start with the host triplet. If you think this
6930 configuration is useful to you, please write to autoconf@gnu.org." >&5
6931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6932 whose name does not start with the host triplet. If you think this
6933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6934 ac_tool_warned=yes ;;
6936 RANLIB=$ac_ct_RANLIB
6939 RANLIB="$ac_cv_prog_RANLIB"
6942 # Extract the first word of "rm", so it can be a program name with args.
6943 set dummy rm; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_RM+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6974 if test -n "$RM"; then
6975 { echo "$as_me:$LINENO: result: $RM" >&5
6976 echo "${ECHO_T}$RM" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 # Extract the first word of "sed", so it can be a program name with args.
6984 set dummy sed; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_SED+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7015 if test -n "$SED"; then
7016 { echo "$as_me:$LINENO: result: $SED" >&5
7017 echo "${ECHO_T}$SED" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 # Extract the first word of "tar", so it can be a program name with args.
7025 set dummy tar; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_TAR+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7056 if test -n "$TAR"; then
7057 { echo "$as_me:$LINENO: result: $TAR" >&5
7058 echo "${ECHO_T}$TAR" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7065 # Extract the first word of "pwd", so it can be a program name with args.
7066 set dummy pwd; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_BINPWD+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7096 BINPWD=$ac_cv_path_BINPWD
7097 if test -n "$BINPWD"; then
7098 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7099 echo "${ECHO_T}$BINPWD" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "Graphviz", so it can be a program name with args.
7108 set dummy Graphviz; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7138 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7139 if test -n "$GRAPHVIZ"; then
7140 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7141 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_GRAPHVIZ 1
7154 if test "$llvm_cv_os_type" = "MingW" ; then
7155 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7158 cat >>confdefs.h <<_ACEOF
7159 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7163 # Extract the first word of "dot", so it can be a program name with args.
7164 set dummy dot; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_DOT+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7195 if test -n "$DOT"; then
7196 { echo "$as_me:$LINENO: result: $DOT" >&5
7197 echo "${ECHO_T}$DOT" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7204 if test "$DOT" != "echo dot" ; then
7206 cat >>confdefs.h <<\_ACEOF
7210 if test "$llvm_cv_os_type" = "MingW" ; then
7211 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7214 cat >>confdefs.h <<_ACEOF
7215 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7219 for ac_prog in gv gsview32
7221 # Extract the first word of "$ac_prog", so it can be a program name with args.
7222 set dummy $ac_prog; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GV+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 if test -n "$GV"; then
7253 { echo "$as_me:$LINENO: result: $GV" >&5
7254 echo "${ECHO_T}$GV" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 test -n "$GV" && break
7263 test -n "$GV" || GV="echo gv"
7265 if test "$GV" != "echo gv" ; then
7267 cat >>confdefs.h <<\_ACEOF
7271 if test "$llvm_cv_os_type" = "MingW" ; then
7272 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7275 cat >>confdefs.h <<_ACEOF
7276 #define LLVM_PATH_GV "$GV${EXEEXT}"
7280 # Extract the first word of "dotty", so it can be a program name with args.
7281 set dummy dotty; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_DOTTY+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7311 DOTTY=$ac_cv_path_DOTTY
7312 if test -n "$DOTTY"; then
7313 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7314 echo "${ECHO_T}$DOTTY" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 if test "$DOTTY" != "echo dotty" ; then
7323 cat >>confdefs.h <<\_ACEOF
7324 #define HAVE_DOTTY 1
7327 if test "$llvm_cv_os_type" = "MingW" ; then
7328 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331 cat >>confdefs.h <<_ACEOF
7332 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7338 # Extract the first word of "perl", so it can be a program name with args.
7339 set dummy perl; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_PERL+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7369 PERL=$ac_cv_path_PERL
7370 if test -n "$PERL"; then
7371 { echo "$as_me:$LINENO: result: $PERL" >&5
7372 echo "${ECHO_T}$PERL" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 if test "$PERL" != "none"; then
7380 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7381 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7382 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7383 { echo "$as_me:$LINENO: result: yes" >&5
7384 echo "${ECHO_T}yes" >&6; }
7387 { echo "$as_me:$LINENO: result: not found" >&5
7388 echo "${ECHO_T}not found" >&6; }
7393 if test x"$PERL" = xnone; then
7396 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7397 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7398 { (exit 1); exit 1; }; }
7404 # Find a good install program. We prefer a C program (faster),
7405 # so one script is as good as another. But avoid the broken or
7406 # incompatible versions:
7407 # SysV /etc/install, /usr/sbin/install
7408 # SunOS /usr/etc/install
7409 # IRIX /sbin/install
7411 # AmigaOS /C/install, which installs bootblocks on floppy discs
7412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7415 # OS/2's system install, which has a completely different semantic
7416 # ./install, which can be erroneously created by make from ./install.sh.
7417 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7418 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7419 if test -z "$INSTALL"; then
7420 if test "${ac_cv_path_install+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 # Account for people who put trailing slashes in PATH elements.
7430 ./ | .// | /cC/* | \
7431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7435 # OSF1 and SCO ODT 3.0 have their own names for install.
7436 # Don't use installbsd from OSF since it installs stuff as root
7438 for ac_prog in ginstall scoinst install; do
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7441 if test $ac_prog = install &&
7442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7443 # AIX install. It has an incompatible calling convention.
7445 elif test $ac_prog = install &&
7446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447 # program-specific install script used by HP pwplus--don't use.
7450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7463 if test "${ac_cv_path_install+set}" = set; then
7464 INSTALL=$ac_cv_path_install
7466 # As a last resort, use the slow shell script. Don't cache a
7467 # value for INSTALL within a source directory, because that will
7468 # break other packages using the cache if that directory is
7469 # removed, or if the value is a relative name.
7470 INSTALL=$ac_install_sh
7473 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7474 echo "${ECHO_T}$INSTALL" >&6; }
7476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7477 # It thinks the first close brace ends the variable substitution.
7478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7485 # Extract the first word of "bzip2", so it can be a program name with args.
7486 set dummy bzip2; ac_word=$2
7487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489 if test "${ac_cv_path_BZIP2+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 BZIP2=$ac_cv_path_BZIP2
7516 if test -n "$BZIP2"; then
7517 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7518 echo "${ECHO_T}$BZIP2" >&6; }
7520 { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7525 # Extract the first word of "doxygen", so it can be a program name with args.
7526 set dummy doxygen; ac_word=$2
7527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 DOXYGEN=$ac_cv_path_DOXYGEN
7556 if test -n "$DOXYGEN"; then
7557 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7558 echo "${ECHO_T}$DOXYGEN" >&6; }
7560 { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7565 # Extract the first word of "groff", so it can be a program name with args.
7566 set dummy groff; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GROFF+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 GROFF=$ac_cv_path_GROFF
7596 if test -n "$GROFF"; then
7597 { echo "$as_me:$LINENO: result: $GROFF" >&5
7598 echo "${ECHO_T}$GROFF" >&6; }
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 # Extract the first word of "gzip", so it can be a program name with args.
7606 set dummy gzip; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_path_GZIP+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 GZIP=$ac_cv_path_GZIP
7636 if test -n "$GZIP"; then
7637 { echo "$as_me:$LINENO: result: $GZIP" >&5
7638 echo "${ECHO_T}$GZIP" >&6; }
7640 { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7645 # Extract the first word of "pod2html", so it can be a program name with args.
7646 set dummy pod2html; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_POD2HTML+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 POD2HTML=$ac_cv_path_POD2HTML
7676 if test -n "$POD2HTML"; then
7677 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7678 echo "${ECHO_T}$POD2HTML" >&6; }
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7685 # Extract the first word of "pod2man", so it can be a program name with args.
7686 set dummy pod2man; ac_word=$2
7687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689 if test "${ac_cv_path_POD2MAN+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 POD2MAN=$ac_cv_path_POD2MAN
7716 if test -n "$POD2MAN"; then
7717 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7718 echo "${ECHO_T}$POD2MAN" >&6; }
7720 { echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6; }
7725 # Extract the first word of "runtest", so it can be a program name with args.
7726 set dummy runtest; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_RUNTEST+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 RUNTEST=$ac_cv_path_RUNTEST
7756 if test -n "$RUNTEST"; then
7757 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7758 echo "${ECHO_T}$RUNTEST" >&6; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7767 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7768 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7770 # Check whether --with-tclinclude was given.
7771 if test "${with_tclinclude+set}" = set; then
7772 withval=$with_tclinclude; with_tclinclude=${withval}
7777 if test "${ac_cv_path_tclsh+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 if test x"${with_tclinclude}" != x ; then
7782 if test -f ${with_tclinclude}/tclsh ; then
7783 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7784 elif test -f ${with_tclinclude}/src/tclsh ; then
7785 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7787 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7788 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7789 { (exit 1); exit 1; }; }
7793 if test x"${ac_cv_path_tclsh}" = x ; then
7794 { echo "$as_me:$LINENO: result: none" >&5
7795 echo "${ECHO_T}none" >&6; }
7796 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
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_TCLSH+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 TCLSH=$ac_cv_path_TCLSH
7829 if test -n "$TCLSH"; then
7830 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7831 echo "${ECHO_T}$TCLSH" >&6; }
7833 { echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6; }
7838 test -n "$TCLSH" && break
7841 if test x"${TCLSH}" = x ; then
7842 ac_cv_path_tclsh='';
7844 ac_cv_path_tclsh="${TCLSH}";
7847 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7848 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7849 TCLSH="${ac_cv_path_tclsh}"
7855 # Extract the first word of "zip", so it can be a program name with args.
7856 set dummy zip; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_path_ZIP+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 if test -n "$ZIP"; then
7887 { echo "$as_me:$LINENO: result: $ZIP" >&5
7888 echo "${ECHO_T}$ZIP" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7895 for ac_prog in ocamlc
7897 # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_OCAMLC+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 OCAMLC=$ac_cv_path_OCAMLC
7928 if test -n "$OCAMLC"; then
7929 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7930 echo "${ECHO_T}$OCAMLC" >&6; }
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 test -n "$OCAMLC" && break
7940 for ac_prog in ocamlopt
7942 # Extract the first word of "$ac_prog", so it can be a program name with args.
7943 set dummy $ac_prog; ac_word=$2
7944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7946 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 OCAMLOPT=$ac_cv_path_OCAMLOPT
7973 if test -n "$OCAMLOPT"; then
7974 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7975 echo "${ECHO_T}$OCAMLOPT" >&6; }
7977 { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7982 test -n "$OCAMLOPT" && break
7985 for ac_prog in ocamldep
7987 # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy $ac_prog; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 OCAMLDEP=$ac_cv_path_OCAMLDEP
8018 if test -n "$OCAMLDEP"; then
8019 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8020 echo "${ECHO_T}$OCAMLDEP" >&6; }
8022 { echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6; }
8027 test -n "$OCAMLDEP" && break
8030 for ac_prog in ocamldoc
8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8036 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 OCAMLDOC=$ac_cv_path_OCAMLDOC
8063 if test -n "$OCAMLDOC"; then
8064 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8065 echo "${ECHO_T}$OCAMLDOC" >&6; }
8067 { echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6; }
8072 test -n "$OCAMLDOC" && break
8075 for ac_prog in gas as
8077 # Extract the first word of "$ac_prog", so it can be a program name with args.
8078 set dummy $ac_prog; ac_word=$2
8079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081 if test "${ac_cv_path_GAS+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 if test -n "$GAS"; then
8109 { echo "$as_me:$LINENO: result: $GAS" >&5
8110 echo "${ECHO_T}$GAS" >&6; }
8112 { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8117 test -n "$GAS" && break
8121 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8122 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8123 if test "${llvm_cv_link_use_r+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_cpp='$CPP $CPPFLAGS'
8128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133 CFLAGS="$CFLAGS -Wl,-R."
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8144 int main() { return 0; }
8149 rm -f conftest.$ac_objext conftest$ac_exeext
8150 if { (ac_try="$ac_link"
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_link") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
8174 { (case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_try") 2>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 llvm_cv_link_use_r=yes
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 llvm_cv_link_use_r=no
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8203 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8204 if test "$llvm_cv_link_use_r" = yes ; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_LINK_R 1
8213 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8214 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8215 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8236 int main() { return 0; }
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_link") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 llvm_cv_link_use_export_dynamic=yes
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 llvm_cv_link_use_export_dynamic=no
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8295 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8296 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_LINK_EXPORT_DYNAMIC 1
8307 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8308 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8309 if test "${ac_cv_c_const+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8322 /* FIXME: Include the comments suggested by Paul. */
8324 /* Ultrix mips cc rejects this. */
8325 typedef int charset[2];
8327 /* SunOS 4.1.1 cc rejects this. */
8328 char const *const *ccp;
8330 /* NEC SVR4.0.2 mips cc rejects this. */
8331 struct point {int x, y;};
8332 static struct point const zero = {0,0};
8333 /* AIX XL C 1.02.0.0 rejects this.
8334 It does not let you subtract one const X* pointer from another in
8335 an arm of an if-expression whose if-part is not a constant
8337 const char *g = "string";
8338 ccp = &g + (g ? g-g : 0);
8339 /* HPUX 7.0 cc rejects these. */
8342 ccp = (char const *const *) p;
8343 { /* SCO 3.2v4 cc rejects this. */
8345 char const *s = 0 ? (char *) 0 : (char const *) 0;
8350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8352 const int *foo = &x[0];
8355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8356 typedef const int *iptr;
8360 { /* AIX XL C 1.02.0.0 rejects this saying
8361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8362 struct s { int j; const int *ap[3]; };
8363 struct s *b; b->j = 5;
8365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8369 return !x[0] && !zero.x;
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (case "(($ac_try" in
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_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8421 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8422 if test $ac_cv_c_const = no; then
8424 cat >>confdefs.h <<\_ACEOF
8436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8438 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8439 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include <sys/types.h>
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compile") 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest.$ac_objext'
8486 { (case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_try") 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 eval "$as_ac_Header=yes"
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 eval "$as_ac_Header=no"
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 ac_res=`eval echo '${'$as_ac_Header'}'`
8506 { echo "$as_me:$LINENO: result: $ac_res" >&5
8507 echo "${ECHO_T}$ac_res" >&6; }
8508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8513 ac_header_dirent=$ac_hdr; break
8517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8518 if test $ac_header_dirent = dirent.h; then
8519 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8521 if test "${ac_cv_search_opendir+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_func_search_save_LIBS=$LIBS
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8532 /* Override any GCC internal prototype to avoid an error.
8533 Use char because int might match the return type of a GCC
8534 builtin and then its argument prototype would still apply. */
8547 for ac_lib in '' dir; do
8548 if test -z "$ac_lib"; then
8549 ac_res="none required"
8552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_link") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_try") 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest$ac_exeext'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_search_opendir=$ac_res
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8596 rm -f core conftest.err conftest.$ac_objext \
8598 if test "${ac_cv_search_opendir+set}" = set; then
8602 if test "${ac_cv_search_opendir+set}" = set; then
8605 ac_cv_search_opendir=no
8608 LIBS=$ac_func_search_save_LIBS
8610 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8611 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8612 ac_res=$ac_cv_search_opendir
8613 if test "$ac_res" != no; then
8614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8619 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8621 if test "${ac_cv_search_opendir+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 ac_func_search_save_LIBS=$LIBS
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any GCC internal prototype to avoid an error.
8633 Use char because int might match the return type of a GCC
8634 builtin and then its argument prototype would still apply. */
8647 for ac_lib in '' x; do
8648 if test -z "$ac_lib"; then
8649 ac_res="none required"
8652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (ac_try="$ac_link"
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_try") 2>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_cv_search_opendir=$ac_res
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8696 rm -f core conftest.err conftest.$ac_objext \
8698 if test "${ac_cv_search_opendir+set}" = set; then
8702 if test "${ac_cv_search_opendir+set}" = set; then
8705 ac_cv_search_opendir=no
8708 LIBS=$ac_func_search_save_LIBS
8710 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8711 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8712 ac_res=$ac_cv_search_opendir
8713 if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8721 for ac_header in dlfcn.h
8723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8734 # Is the header compilable?
8735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8744 #include <$ac_header>
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_header_compiler=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_header_compiler=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790 echo "${ECHO_T}$ac_header_compiler" >&6; }
8792 # Is the header present?
8793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 #include <$ac_header>
8803 if { (ac_try="$ac_cpp conftest.$ac_ext"
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } >/dev/null; then
8816 if test -s conftest.err; then
8817 ac_cpp_err=$ac_c_preproc_warn_flag
8818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8825 if test -z "$ac_cpp_err"; then
8826 ac_header_preproc=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_header_preproc=no
8834 rm -f conftest.err conftest.$ac_ext
8835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6; }
8838 # So? What about this header?
8839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 ac_header_preproc=yes
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8861 ## ----------------------------------- ##
8862 ## Report this to llvmbugs@cs.uiuc.edu ##
8863 ## ----------------------------------- ##
8865 ) | sed "s/^/$as_me: WARNING: /" >&2
8868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 eval "$as_ac_Header=\$ac_header_preproc"
8875 ac_res=`eval echo '${'$as_ac_Header'}'`
8876 { echo "$as_me:$LINENO: result: $ac_res" >&5
8877 echo "${ECHO_T}$ac_res" >&6; }
8880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8881 cat >>confdefs.h <<_ACEOF
8882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8889 # Check whether --enable-ltdl-install was given.
8890 if test "${enable_ltdl_install+set}" = set; then
8891 enableval=$enable_ltdl_install;
8897 if test x"${enable_ltdl_install-no}" != xno; then
8899 INSTALL_LTDL_FALSE='#'
8901 INSTALL_LTDL_TRUE='#'
8907 if test x"${enable_ltdl_convenience-no}" != xno; then
8908 CONVENIENCE_LTDL_TRUE=
8909 CONVENIENCE_LTDL_FALSE='#'
8911 CONVENIENCE_LTDL_TRUE='#'
8912 CONVENIENCE_LTDL_FALSE=
8916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8919 libname_spec='lib$name'
8927 shlibpath_overrides_runpath=unknown
8929 dynamic_linker="$host_os ld.so"
8930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8931 if test "$GCC" = yes; then
8932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8934 # if the path contains ";" then we assume it to be the separator
8935 # otherwise default to the standard path separator (i.e. ":") - it is
8936 # assumed that no part of a normal pathname contains ";" but that should
8937 # okay in the real world where ";" in dirpaths is itself problematic.
8938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8945 need_lib_prefix=unknown
8946 hardcode_into_libs=no
8948 # when you set need_version to no, make sure it does not cause -set_version
8949 # flags to be left without arguments
8950 need_version=unknown
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8956 shlibpath_var=LIBPATH
8958 # AIX 3 has no versioning support, so we append a major version to the name.
8959 soname_spec='${libname}${release}${shared_ext}$major'
8966 hardcode_into_libs=yes
8967 if test "$host_cpu" = ia64; then
8968 # AIX 5 supports IA64
8969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8972 # With GCC up to 2.95.x, collect2 would create an import file
8973 # for dependence libraries. The import file would start with
8974 # the line `#! .'. This would cause the generated library to
8975 # depend on `.', always an invalid library. This was fixed in
8976 # development snapshots of GCC prior to 3.0.
8978 aix4 | aix4.[01] | aix4.[01].*)
8979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8989 # soname into executable. Probably we can add versioning support to
8990 # collect2, so additional links can be useful in future.
8991 if test "$aix_use_runtimelinking" = yes; then
8992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8993 # instead of lib<name>.a to let people know that these are not
8994 # typical AIX shared libraries.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 # We preserve .a as extension for shared libraries through AIX4.2
8998 # and later when we are not doing run time linking.
8999 library_names_spec='${libname}${release}.a $libname.a'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LIBPATH
9007 library_names_spec='$libname.ixlibrary $libname.a'
9008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9009 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'
9013 library_names_spec='${libname}${shared_ext}'
9014 dynamic_linker="$host_os ld.so"
9015 shlibpath_var=LIBRARY_PATH
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9027 # the default ld.so.conf also contains /usr/contrib/lib and
9028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9029 # libtool to hard-code these into programs
9032 cygwin* | mingw* | pw32*)
9033 version_type=windows
9038 case $GCC,$host_os in
9039 yes,cygwin* | yes,mingw* | yes,pw32*)
9040 library_names_spec='$libname.dll.a'
9041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9042 postinstall_cmds='base_file=`basename \${file}`~
9043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9044 dldir=$destdir/`dirname \$dlpath`~
9045 test -d \$dldir || mkdir -p \$dldir~
9046 $install_prog $dir/$dlname \$dldir/$dlname~
9047 chmod a+x \$dldir/$dlname'
9048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9049 dlpath=$dir/\$dldll~
9051 shlibpath_overrides_runpath=yes
9055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9060 # MinGW DLLs use traditional 'lib' prefix
9061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9064 # It is most probably a Windows format PATH printed by
9065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9066 # path with ; separators, and with drive letters. We can handle the
9067 # drive letters (cygwin fileutils understands them), so leave them,
9068 # especially as we might pass files found there to a mingw objdump,
9069 # which wouldn't understand a cygwinified path. Ahh.
9070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9076 # pw32 DLLs use 'pw' prefix rather than 'lib'
9077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9086 dynamic_linker='Win32 ld.exe'
9087 # FIXME: first we should search . and the directory the executable is in
9091 darwin* | rhapsody*)
9092 dynamic_linker="$host_os dyld"
9096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9097 soname_spec='${libname}${release}${major}$shared_ext'
9098 shlibpath_overrides_runpath=yes
9099 shlibpath_var=DYLD_LIBRARY_PATH
9100 shrext_cmds='.dylib'
9101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9102 if test "$GCC" = yes; then
9103 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"`
9105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 shlibpath_overrides_runpath=no
9131 hardcode_into_libs=yes
9132 dynamic_linker='GNU ld.so'
9135 freebsd* | dragonfly*)
9136 # DragonFly does not have aout. When/if they implement a new
9137 # versioning mechanism, adjust this.
9138 if test -x /usr/bin/objformat; then
9139 objformat=`/usr/bin/objformat`
9142 freebsd[123]*) objformat=aout ;;
9146 version_type=freebsd-$objformat
9147 case $version_type in
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9158 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9163 freebsd3.[01]* | freebsdelf3.[01]*)
9164 shlibpath_overrides_runpath=yes
9165 hardcode_into_libs=yes
9167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9169 shlibpath_overrides_runpath=no
9170 hardcode_into_libs=yes
9172 freebsd*) # from 4.6 on
9173 shlibpath_overrides_runpath=yes
9174 hardcode_into_libs=yes
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 hardcode_into_libs=yes
9189 hpux9* | hpux10* | hpux11*)
9190 # Give a soname corresponding to the major version so that dld.sl refuses to
9191 # link against other versions.
9198 hardcode_into_libs=yes
9199 dynamic_linker="$host_os dld.so"
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 if test "X$HPUX_IA64_MODE" = X32; then
9205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9213 hardcode_into_libs=yes
9214 dynamic_linker="$host_os dld.sl"
9215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9224 dynamic_linker="$host_os dld.sl"
9225 shlibpath_var=SHLIB_PATH
9226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9232 postinstall_cmds='chmod 555 $lib'
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=no
9244 hardcode_into_libs=yes
9247 irix5* | irix6* | nonstopux*)
9249 nonstopux*) version_type=nonstopux ;;
9251 if test "$lt_cv_prog_gnu_ld" = yes; then
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9262 irix5* | nonstopux*)
9266 case $LD in # libtool.m4 will add one of these switches to LD
9267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9268 libsuff= shlibsuff= libmagic=32-bit;;
9269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9270 libsuff=32 shlibsuff=N32 libmagic=N32;;
9271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9273 *) libsuff= shlibsuff= libmagic=never-match;;
9277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9278 shlibpath_overrides_runpath=no
9279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9281 hardcode_into_libs=yes
9284 # No shared lib support for Linux oldld, aout, or coff.
9285 linux*oldld* | linux*aout* | linux*coff*)
9289 # This must be Linux ELF.
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=no
9299 # This implies no fast_install, which is unacceptable.
9300 # Some rework will be needed to allow for fast_install
9301 # before this can be enabled.
9302 hardcode_into_libs=yes
9304 # Append ld.so.conf contents to the search path
9305 if test -f /etc/ld.so.conf; then
9306 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' ' '`
9307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9310 # We used to test for /lib/ld.so.1 and disable shared libraries on
9311 # powerpc, because MkLinux only supported shared libraries with the
9312 # GNU dynamic linker. Since this was broken with cross compilers,
9313 # most powerpc-linux boxes support dynamic linking these days and
9314 # people can always --disable-shared, the test was removed, and we
9315 # assume the GNU/Linux dynamic linker is in use.
9316 dynamic_linker='GNU/Linux ld.so'
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 shlibpath_overrides_runpath=no
9327 hardcode_into_libs=yes
9328 dynamic_linker='GNU ld.so'
9335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338 dynamic_linker='NetBSD (a.out) ld.so'
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 dynamic_linker='NetBSD ld.elf_so'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes
9346 hardcode_into_libs=yes
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=yes
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9368 sys_lib_dlsearch_path_spec="/usr/lib"
9370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9373 *) need_version=no ;;
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9380 openbsd2.[89] | openbsd2.[89].*)
9381 shlibpath_overrides_runpath=no
9384 shlibpath_overrides_runpath=yes
9388 shlibpath_overrides_runpath=yes
9393 libname_spec='$name'
9396 library_names_spec='$libname${shared_ext} $libname.a'
9397 dynamic_linker='OS/2 ld.exe'
9398 shlibpath_var=LIBPATH
9401 osf3* | osf4* | osf5*)
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9420 hardcode_into_libs=yes
9421 # ldd complains unless libraries are executable
9422 postinstall_cmds='chmod +x $lib'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=yes
9431 if test "$with_gnu_ld" = yes; then
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 case $host_vendor in
9444 shlibpath_overrides_runpath=no
9446 export_dynamic_flag_spec='${wl}-Blargedynsym'
9447 runpath_var=LD_RUN_PATH
9455 shlibpath_overrides_runpath=no
9456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9462 if test -d /usr/nec ;then
9464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9465 soname_spec='$libname${shared_ext}.$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9471 version_type=freebsd-elf
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 hardcode_into_libs=yes
9478 if test "$with_gnu_ld" = yes; then
9479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9480 shlibpath_overrides_runpath=no
9482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9483 shlibpath_overrides_runpath=yes
9486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9490 sys_lib_dlsearch_path_spec='/usr/lib'
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9504 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505 echo "${ECHO_T}$dynamic_linker" >&6; }
9506 test "$dynamic_linker" = no && can_build_shared=no
9508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509 if test "$GCC" = yes; then
9510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9514 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9515 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9516 if test "${libltdl_cv_shlibext+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 eval libltdl_cv_shlibext=$shrext_cmds
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9525 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9526 if test -n "$libltdl_cv_shlibext"; then
9528 cat >>confdefs.h <<_ACEOF
9529 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9535 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9536 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9537 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 libltdl_cv_shlibpath_var="$shlibpath_var"
9542 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9543 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9544 if test -n "$libltdl_cv_shlibpath_var"; then
9546 cat >>confdefs.h <<_ACEOF
9547 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9553 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9554 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9555 if test "${libltdl_cv_sys_search_path+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9560 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9561 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9562 if test -n "$libltdl_cv_sys_search_path"; then
9564 for dir in $libltdl_cv_sys_search_path; do
9565 if test -z "$sys_search_path"; then
9566 sys_search_path="$dir"
9568 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9572 cat >>confdefs.h <<_ACEOF
9573 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9578 { echo "$as_me:$LINENO: checking for objdir" >&5
9579 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9580 if test "${libltdl_cv_objdir+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 libltdl_cv_objdir="$objdir"
9584 if test -n "$objdir"; then
9587 rm -f .libs 2>/dev/null
9588 mkdir .libs 2>/dev/null
9589 if test -d .libs; then
9590 libltdl_cv_objdir=.libs
9592 # MS-DOS does not allow filenames that begin with a dot.
9593 libltdl_cv_objdir=_libs
9595 rmdir .libs 2>/dev/null
9599 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9600 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9602 cat >>confdefs.h <<_ACEOF
9603 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9611 # Check for command to grab the raw symbol name followed by C symbol from nm.
9612 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9613 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9614 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 # These are sane defaults that work on at least a few old systems.
9619 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9621 # Character class describing NM global symbol codes.
9622 symcode='[BCDEGRST]'
9624 # Regexp to match symbols that can be accessed directly from C.
9625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9627 # Transform an extracted symbol line into a proper C declaration
9628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9630 # Transform an extracted symbol line into symbol name and symbol address
9631 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'"
9633 # Define system-specific variables.
9638 cygwin* | mingw* | pw32*)
9639 symcode='[ABCDGISTW]'
9641 hpux*) # Its linker distinguishes data from code symbols
9642 if test "$host_cpu" = ia64; then
9643 symcode='[ABCDEGRST]'
9645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9646 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'"
9649 if test "$host_cpu" = ia64; then
9650 symcode='[ABCDGIRSTW]'
9651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9652 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'"
9656 symcode='[BCDEGRST]'
9659 symcode='[BCDEGQRST]'
9670 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9678 # Handle CRLF in mingw tool chain
9682 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9686 # If we're using GNU nm, then use its standard symbol codes.
9687 case `$NM -V 2>&1` in
9688 *GNU* | *'with BFD'*)
9689 symcode='[ABCDGIRSTW]' ;;
9692 # Try without a prefix undercore, then with it.
9693 for ac_symprfx in "" "_"; do
9695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9696 symxfrm="\\1 $ac_symprfx\\2 \\2"
9698 # Write the raw and C identifiers.
9699 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9701 # Check to see that the pipe works correctly.
9705 cat > conftest.$ac_ext <<EOF
9710 void nm_test_func(){}
9714 int main(){nm_test_var='a';nm_test_func();return(0);}
9717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; then
9722 # Now try to grab the symbols.
9724 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9725 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && test -s "$nlist"; then
9729 # Try sorting and uniquifying the output.
9730 if sort "$nlist" | uniq > "$nlist"T; then
9731 mv -f "$nlist"T "$nlist"
9736 # Make sure that we snagged all the symbols we need.
9737 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9738 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9739 cat <<EOF > conftest.$ac_ext
9745 # Now generate the symbol file.
9746 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9748 cat <<EOF >> conftest.$ac_ext
9749 #if defined (__STDC__) && __STDC__
9750 # define lt_ptr_t void *
9752 # define lt_ptr_t char *
9756 /* The mapping between symbol names and symbols. */
9761 lt_preloaded_symbols[] =
9764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9765 cat <<\EOF >> conftest.$ac_ext
9773 # Now try linking the two files.
9774 mv conftest.$ac_objext conftstm.$ac_objext
9775 lt_save_LIBS="$LIBS"
9776 lt_save_CFLAGS="$CFLAGS"
9777 LIBS="conftstm.$ac_objext"
9778 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9786 LIBS="$lt_save_LIBS"
9787 CFLAGS="$lt_save_CFLAGS"
9789 echo "cannot find nm_test_func in $nlist" >&5
9792 echo "cannot find nm_test_var in $nlist" >&5
9795 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9798 echo "$progname: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 rm -f conftest* conftst*
9803 # Do not use the global_symbol_pipe unless it works.
9804 if test "$pipe_works" = yes; then
9807 lt_cv_sys_global_symbol_pipe=
9813 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9814 lt_cv_sys_global_symbol_to_cdecl=
9816 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9817 { echo "$as_me:$LINENO: result: failed" >&5
9818 echo "${ECHO_T}failed" >&6; }
9820 { echo "$as_me:$LINENO: result: ok" >&5
9821 echo "${ECHO_T}ok" >&6; }
9825 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9826 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9827 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9831 libltdl_cv_preloaded_symbols=yes
9833 libltdl_cv_preloaded_symbols=no
9837 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9838 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9839 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_PRELOADED_SYMBOLS 1
9850 ac_cpp='$CPP $CPPFLAGS'
9851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9856 { echo "$as_me:$LINENO: checking for shl_load" >&5
9857 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9858 if test "${ac_cv_func_shl_load+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869 #define shl_load innocuous_shl_load
9871 /* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char shl_load (); below.
9873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874 <limits.h> exists even on freestanding compilers. */
9877 # include <limits.h>
9879 # include <assert.h>
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9891 /* The GNU C library defines this for functions which it implements
9892 to always fail with ENOSYS. Some functions are actually named
9893 something starting with __ and the normal name is an alias. */
9894 #if defined __stub_shl_load || defined __stub___shl_load
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_func_shl_load=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_func_shl_load=no
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9953 if test $ac_cv_func_shl_load = yes; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_SHL_LOAD 1
9960 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9961 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_check_lib_save_LIBS=$LIBS
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dld_shl_load=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dld_shl_load=no
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10037 if test $ac_cv_lib_dld_shl_load = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_SHL_LOAD 1
10043 LIBADD_DL="$LIBADD_DL -ldld"
10045 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10046 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 ac_check_lib_save_LIBS=$LIBS
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10059 /* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
10074 rm -f conftest.$ac_objext conftest$ac_exeext
10075 if { (ac_try="$ac_link"
10076 case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_link") 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_lib_dl_dlopen=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_lib_dl_dlopen=no
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10122 if test $ac_cv_lib_dl_dlopen = yes; then
10124 cat >>confdefs.h <<\_ACEOF
10125 #define HAVE_LIBDL 1
10128 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 # include <dlfcn.h>
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBDL 1
10186 libltdl_cv_func_dlopen="yes"
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-lsvld $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_svld_dlopen=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_svld_dlopen=no
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10268 if test $ac_cv_lib_svld_dlopen = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_LIBDL 1
10274 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10276 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10278 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 ac_check_lib_save_LIBS=$LIBS
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10300 return dld_link ();
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_lib_dld_dld_link=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_lib_dld_dld_link=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10353 if test $ac_cv_lib_dld_dld_link = yes; then
10355 cat >>confdefs.h <<\_ACEOF
10359 LIBADD_DL="$LIBADD_DL -ldld"
10361 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10362 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10363 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10374 #define _dyld_func_lookup innocuous__dyld_func_lookup
10376 /* System header to define __stub macros and hopefully few prototypes,
10377 which can conflict with char _dyld_func_lookup (); below.
10378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379 <limits.h> exists even on freestanding compilers. */
10382 # include <limits.h>
10384 # include <assert.h>
10387 #undef _dyld_func_lookup
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10395 char _dyld_func_lookup ();
10396 /* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
10399 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10406 return _dyld_func_lookup ();
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_func__dyld_func_lookup=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_func__dyld_func_lookup=no
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10456 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10457 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10458 if test $ac_cv_func__dyld_func_lookup = yes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_DYLD 1
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10487 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10489 lt_save_LIBS="$LIBS"
10490 LIBS="$LIBS $LIBADD_DL"
10492 for ac_func in dlerror
10494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10508 #define $ac_func innocuous_$ac_func
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below.
10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 <limits.h> exists even on freestanding compilers. */
10516 # include <limits.h>
10518 # include <assert.h>
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined __stub_$ac_func || defined __stub___$ac_func
10540 return $ac_func ();
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 eval "$as_ac_var=yes"
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 eval "$as_ac_var=no"
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10590 ac_res=`eval echo '${'$as_ac_var'}'`
10591 { echo "$as_me:$LINENO: result: $ac_res" >&5
10592 echo "${ECHO_T}$ac_res" >&6; }
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10601 LIBS="$lt_save_LIBS"
10604 ac_cpp='$CPP $CPPFLAGS'
10605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10612 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10613 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 ac_cv_sys_symbol_underscore=no
10617 cat > conftest.$ac_ext <<EOF
10618 void nm_test_func(){}
10619 int main(){nm_test_func;return 0;}
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; then
10626 # Now try to grab the symbols.
10627 ac_nlist=conftest.nm
10628 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && test -s "$ac_nlist"; then
10633 # See whether the symbols have a leading underscore.
10634 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10635 ac_cv_sys_symbol_underscore=yes
10637 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10640 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10644 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10647 echo "configure: failed program was:" >&5
10653 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10654 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10657 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10658 if test x"$libltdl_cv_func_dlopen" = xyes ||
10659 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10660 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10661 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10662 if test "${libltdl_cv_need_uscore+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 libltdl_cv_need_uscore=unknown
10667 LIBS="$LIBS $LIBADD_DL"
10668 if test "$cross_compiling" = yes; then :
10669 libltdl_cv_need_uscore=cross
10671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10672 lt_status=$lt_dlunknown
10673 cat > conftest.$ac_ext <<EOF
10674 #line 10674 "configure"
10675 #include "confdefs.h"
10684 # define LT_DLGLOBAL RTLD_GLOBAL
10687 # define LT_DLGLOBAL DL_GLOBAL
10689 # define LT_DLGLOBAL 0
10693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10694 find out it does not work in some platform. */
10695 #ifndef LT_DLLAZY_OR_NOW
10697 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10700 # define LT_DLLAZY_OR_NOW DL_LAZY
10703 # define LT_DLLAZY_OR_NOW RTLD_NOW
10706 # define LT_DLLAZY_OR_NOW DL_NOW
10708 # define LT_DLLAZY_OR_NOW 0
10716 extern "C" void exit (int);
10719 void fnord() { int i=42;}
10722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10723 int status = $lt_dlunknown;
10727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10728 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10729 /* dlclose (self); */
10737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738 (eval $ac_link) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10742 (./conftest; exit; ) >&5 2>/dev/null
10744 case x$lt_status in
10745 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10746 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10747 x$lt_dlunknown|x*) ;;
10750 # compilation failed
10759 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10760 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10764 if test x"$libltdl_cv_need_uscore" = xyes; then
10766 cat >>confdefs.h <<\_ACEOF
10767 #define NEED_USCORE 1
10773 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10774 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10775 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 # PORTME does your system automatically load deplibs for dlopen?
10779 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10780 # For now, we just catch OSes we know something about -- in the
10781 # future, we'll try test this programmatically.
10782 libltdl_cv_sys_dlopen_deplibs=unknown
10784 aix3*|aix4.1.*|aix4.2.*)
10785 # Unknown whether this is true for these versions of AIX, but
10786 # we want this `case' here to explicitly catch those versions.
10787 libltdl_cv_sys_dlopen_deplibs=unknown
10790 libltdl_cv_sys_dlopen_deplibs=yes
10793 # Assuming the user has installed a libdl from somewhere, this is true
10794 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10795 libltdl_cv_sys_dlopen_deplibs=yes
10797 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10798 # GNU and its variants, using gnu ld.so (Glibc)
10799 libltdl_cv_sys_dlopen_deplibs=yes
10802 libltdl_cv_sys_dlopen_deplibs=yes
10805 libltdl_cv_sys_dlopen_deplibs=yes
10807 irix[12345]*|irix6.[01]*)
10808 # Catch all versions of IRIX before 6.2, and indicate that we don't
10809 # know how it worked for any of those versions.
10810 libltdl_cv_sys_dlopen_deplibs=unknown
10813 # The case above catches anything before 6.2, and it's known that
10814 # at 6.2 and later dlopen does load deplibs.
10815 libltdl_cv_sys_dlopen_deplibs=yes
10818 libltdl_cv_sys_dlopen_deplibs=yes
10821 libltdl_cv_sys_dlopen_deplibs=yes
10824 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10825 # it did *not* use an RPATH in a shared library to find objects the
10826 # library depends on, so we explictly say `no'.
10827 libltdl_cv_sys_dlopen_deplibs=no
10829 osf5.0|osf5.0a|osf5.1)
10830 # dlopen *does* load deplibs and with the right loader patch applied
10831 # it even uses RPATH in a shared library to search for shared objects
10832 # that the library depends on, but there's no easy way to know if that
10833 # patch is installed. Since this is the case, all we can really
10834 # say is unknown -- it depends on the patch being installed. If
10835 # it is, this changes to `yes'. Without it, it would be `no'.
10836 libltdl_cv_sys_dlopen_deplibs=unknown
10839 # the two cases above should catch all versions of osf <= 5.1. Read
10840 # the comments above for what we know about them.
10841 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10842 # is used to find them so we can finally say `yes'.
10843 libltdl_cv_sys_dlopen_deplibs=yes
10846 libltdl_cv_sys_dlopen_deplibs=yes
10848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10849 libltdl_cv_sys_dlopen_deplibs=yes
10854 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10855 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10856 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10858 cat >>confdefs.h <<\_ACEOF
10859 #define LTDL_DLOPEN_DEPLIBS 1
10865 for ac_header in argz.h
10867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10878 # Is the header compilable?
10879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 $ac_includes_default
10888 #include <$ac_header>
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_header_compiler=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_header_compiler=no
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10934 echo "${ECHO_T}$ac_header_compiler" >&6; }
10936 # Is the header present?
10937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <$ac_header>
10947 if { (ac_try="$ac_cpp conftest.$ac_ext"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } >/dev/null; then
10960 if test -s conftest.err; then
10961 ac_cpp_err=$ac_c_preproc_warn_flag
10962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10969 if test -z "$ac_cpp_err"; then
10970 ac_header_preproc=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_header_preproc=no
10978 rm -f conftest.err conftest.$ac_ext
10979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980 echo "${ECHO_T}$ac_header_preproc" >&6; }
10982 # So? What about this header?
10983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10989 ac_header_preproc=yes
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11005 ## ----------------------------------- ##
11006 ## Report this to llvmbugs@cs.uiuc.edu ##
11007 ## ----------------------------------- ##
11009 ) | sed "s/^/$as_me: WARNING: /" >&2
11012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 eval "$as_ac_Header=\$ac_header_preproc"
11019 ac_res=`eval echo '${'$as_ac_Header'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021 echo "${ECHO_T}$ac_res" >&6; }
11024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11025 cat >>confdefs.h <<_ACEOF
11026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 { echo "$as_me:$LINENO: checking for error_t" >&5
11035 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11036 if test "${ac_cv_type_error_t+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11049 typedef error_t ac__type_new_;
11053 if ((ac__type_new_ *) 0)
11055 if (sizeof (ac__type_new_))
11061 rm -f conftest.$ac_objext
11062 if { (ac_try="$ac_compile"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_compile") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_type_error_t=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_type_error_t=no
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11106 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11107 if test $ac_cv_type_error_t = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_ERROR_T 1
11116 cat >>confdefs.h <<\_ACEOF
11117 #define error_t int
11128 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144 #define $ac_func innocuous_$ac_func
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char $ac_func (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11152 # include <limits.h>
11154 # include <assert.h>
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11166 /* The GNU C library defines this for functions which it implements
11167 to always fail with ENOSYS. Some functions are actually named
11168 something starting with __ and the normal name is an alias. */
11169 #if defined __stub_$ac_func || defined __stub___$ac_func
11176 return $ac_func ();
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest$ac_exeext'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 eval "$as_ac_var=yes"
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 eval "$as_ac_var=no"
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11278 # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_header_compiler=no
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336 # Is the header present?
11337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <$ac_header>
11347 if { (ac_try="$ac_cpp conftest.$ac_ext"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355 grep -v '^ *+' conftest.er1 >conftest.err
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11369 if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_preproc=no
11378 rm -f conftest.err conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382 # So? What about this header?
11383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ## ----------------------------------- ##
11406 ## Report this to llvmbugs@cs.uiuc.edu ##
11407 ## ----------------------------------- ##
11409 ) | sed "s/^/$as_me: WARNING: /" >&2
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 eval "$as_ac_Header=\$ac_header_preproc"
11419 ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421 echo "${ECHO_T}$ac_res" >&6; }
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11437 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11450 # Is the header compilable?
11451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11453 cat >conftest.$ac_ext <<_ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 $ac_includes_default
11460 #include <$ac_header>
11462 rm -f conftest.$ac_objext
11463 if { (ac_try="$ac_compile"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_compile") 2>conftest.er1
11471 grep -v '^ *+' conftest.er1 >conftest.err
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_header_compiler=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_compiler=no
11504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11506 echo "${ECHO_T}$ac_header_compiler" >&6; }
11508 # Is the header present?
11509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 #include <$ac_header>
11519 if { (ac_try="$ac_cpp conftest.$ac_ext"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } >/dev/null; then
11532 if test -s conftest.err; then
11533 ac_cpp_err=$ac_c_preproc_warn_flag
11534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11541 if test -z "$ac_cpp_err"; then
11542 ac_header_preproc=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_header_preproc=no
11550 rm -f conftest.err conftest.$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11554 # So? What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561 ac_header_preproc=yes
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577 ## ----------------------------------- ##
11578 ## Report this to llvmbugs@cs.uiuc.edu ##
11579 ## ----------------------------------- ##
11581 ) | sed "s/^/$as_me: WARNING: /" >&2
11584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 eval "$as_ac_Header=\$ac_header_preproc"
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11597 cat >>confdefs.h <<_ACEOF
11598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 for ac_header in string.h strings.h
11609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11620 # Is the header compilable?
11621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 $ac_includes_default
11630 #include <$ac_header>
11632 rm -f conftest.$ac_objext
11633 if { (ac_try="$ac_compile"
11634 case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_compile") 2>conftest.er1
11641 grep -v '^ *+' conftest.er1 >conftest.err
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11647 { (case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_try") 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_header_compiler=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_header_compiler=no
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11676 echo "${ECHO_T}$ac_header_compiler" >&6; }
11678 # Is the header present?
11679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #include <$ac_header>
11689 if { (ac_try="$ac_cpp conftest.$ac_ext"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev/null; then
11702 if test -s conftest.err; then
11703 ac_cpp_err=$ac_c_preproc_warn_flag
11704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11711 if test -z "$ac_cpp_err"; then
11712 ac_header_preproc=yes
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_preproc=no
11720 rm -f conftest.err conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 echo "${ECHO_T}$ac_header_preproc" >&6; }
11724 # So? What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 ac_header_preproc=yes
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11747 ## ----------------------------------- ##
11748 ## Report this to llvmbugs@cs.uiuc.edu ##
11749 ## ----------------------------------- ##
11751 ) | sed "s/^/$as_me: WARNING: /" >&2
11754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 eval "$as_ac_Header=\$ac_header_preproc"
11761 ac_res=`eval echo '${'$as_ac_Header'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763 echo "${ECHO_T}$ac_res" >&6; }
11766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11767 cat >>confdefs.h <<_ACEOF
11768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11778 for ac_func in strchr index
11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11794 #define $ac_func innocuous_$ac_func
11796 /* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func (); below.
11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 <limits.h> exists even on freestanding compilers. */
11802 # include <limits.h>
11804 # include <assert.h>
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11816 /* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
11819 #if defined __stub_$ac_func || defined __stub___$ac_func
11826 return $ac_func ();
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_link") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 eval "$as_ac_var=yes"
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 eval "$as_ac_var=no"
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11876 ac_res=`eval echo '${'$as_ac_var'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 if test `eval echo '${'$as_ac_var'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 for ac_func in strrchr rindex
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905 #define $ac_func innocuous_$ac_func
11907 /* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11913 # include <limits.h>
11915 # include <assert.h>
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11927 /* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 return $ac_func ();
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 eval "$as_ac_var=yes"
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 eval "$as_ac_var=no"
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 for ac_func in memcpy bcopy
12002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 cat >conftest.$ac_ext <<_ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016 #define $ac_func innocuous_$ac_func
12018 /* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char $ac_func (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12024 # include <limits.h>
12026 # include <assert.h>
12031 /* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined __stub_$ac_func || defined __stub___$ac_func
12048 return $ac_func ();
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 eval "$as_ac_var=yes"
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 eval "$as_ac_var=no"
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12098 ac_res=`eval echo '${'$as_ac_var'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12111 for ac_func in memmove strcmp
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127 #define $ac_func innocuous_$ac_func
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12135 # include <limits.h>
12137 # include <assert.h>
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined __stub_$ac_func || defined __stub___$ac_func
12159 return $ac_func ();
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 eval "$as_ac_var=yes"
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 eval "$as_ac_var=no"
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12209 ac_res=`eval echo '${'$as_ac_var'}'`
12210 { echo "$as_me:$LINENO: result: $ac_res" >&5
12211 echo "${ECHO_T}$ac_res" >&6; }
12212 if test `eval echo '${'$as_ac_var'}'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12223 for ac_func in closedir opendir readdir
12225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 cat >conftest.$ac_ext <<_ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12239 #define $ac_func innocuous_$ac_func
12241 /* System header to define __stub macros and hopefully few prototypes,
12242 which can conflict with char $ac_func (); below.
12243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12244 <limits.h> exists even on freestanding compilers. */
12247 # include <limits.h>
12249 # include <assert.h>
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12261 /* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264 #if defined __stub_$ac_func || defined __stub___$ac_func
12271 return $ac_func ();
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 eval "$as_ac_var=yes"
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 eval "$as_ac_var=no"
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12321 ac_res=`eval echo '${'$as_ac_var'}'`
12322 { echo "$as_me:$LINENO: result: $ac_res" >&5
12323 echo "${ECHO_T}$ac_res" >&6; }
12324 if test `eval echo '${'$as_ac_var'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12333 # Check whether --enable-shared was given.
12334 if test "${enable_shared+set}" = set; then
12335 enableval=$enable_shared; p=${PACKAGE-default}
12337 yes) enable_shared=yes ;;
12338 no) enable_shared=no ;;
12341 # Look at the argument we got. We use all the common list separators.
12342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12343 for pkg in $enableval; do
12345 if test "X$pkg" = "X$p"; then
12357 # Check whether --enable-static was given.
12358 if test "${enable_static+set}" = set; then
12359 enableval=$enable_static; p=${PACKAGE-default}
12361 yes) enable_static=yes ;;
12362 no) enable_static=no ;;
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12369 if test "X$pkg" = "X$p"; then
12381 # Check whether --enable-fast-install was given.
12382 if test "${enable_fast_install+set}" = set; then
12383 enableval=$enable_fast_install; p=${PACKAGE-default}
12385 yes) enable_fast_install=yes ;;
12386 no) enable_fast_install=no ;;
12388 enable_fast_install=no
12389 # Look at the argument we got. We use all the common list separators.
12390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12391 for pkg in $enableval; do
12393 if test "X$pkg" = "X$p"; then
12394 enable_fast_install=yes
12401 enable_fast_install=yes
12405 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12406 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12407 if test "${lt_cv_path_SED+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 # Loop through the user's path and test for sed and gsed.
12411 # Then use that list of sed's as ones to test for truncation.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12416 test -z "$as_dir" && as_dir=.
12417 for lt_ac_prog in sed gsed; do
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12420 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12427 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12428 # along with /bin/sed that truncates output.
12429 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12430 test ! -f $lt_ac_sed && continue
12431 cat /dev/null > conftest.in
12433 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12434 # Check for GNU sed and select it if it is found.
12435 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12436 lt_cv_path_SED=$lt_ac_sed
12440 cat conftest.in conftest.in >conftest.tmp
12441 mv conftest.tmp conftest.in
12442 cp conftest.in conftest.nl
12444 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12445 cmp -s conftest.out conftest.nl || break
12446 # 10000 chars as input seems more than enough
12447 test $lt_ac_count -gt 10 && break
12448 lt_ac_count=`expr $lt_ac_count + 1`
12449 if test $lt_ac_count -gt $lt_ac_max; then
12450 lt_ac_max=$lt_ac_count
12451 lt_cv_path_SED=$lt_ac_sed
12458 SED=$lt_cv_path_SED
12459 { echo "$as_me:$LINENO: result: $SED" >&5
12460 echo "${ECHO_T}$SED" >&6; }
12463 # Check whether --with-gnu-ld was given.
12464 if test "${with_gnu_ld+set}" = set; then
12465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12471 if test "$GCC" = yes; then
12472 # Check if gcc -print-prog-name=ld gives a path.
12473 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12477 # gcc leaves a trailing carriage return which upsets mingw
12478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12483 # Accept absolute paths.
12485 re_direlt='/[^/][^/]*/\.\./'
12486 # Canonicalize the pathname of ld
12487 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12488 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12489 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12491 test -z "$LD" && LD="$ac_prog"
12494 # If it fails, then pretend we aren't using GCC.
12498 # If it is relative, then search for the first ld in PATH.
12499 with_gnu_ld=unknown
12502 elif test "$with_gnu_ld" = yes; then
12503 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12506 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12509 if test "${lt_cv_path_LD+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 if test -z "$LD"; then
12513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12514 for ac_dir in $PATH; do
12516 test -z "$ac_dir" && ac_dir=.
12517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12518 lt_cv_path_LD="$ac_dir/$ac_prog"
12519 # Check to see if the program is GNU ld. I'd rather use --version,
12520 # but apparently some variants of GNU ld only accept -v.
12521 # Break only if it was the GNU/non-GNU ld that we prefer.
12522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12523 *GNU* | *'with BFD'*)
12524 test "$with_gnu_ld" != no && break
12527 test "$with_gnu_ld" != yes && break
12534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12538 LD="$lt_cv_path_LD"
12539 if test -n "$LD"; then
12540 { echo "$as_me:$LINENO: result: $LD" >&5
12541 echo "${ECHO_T}$LD" >&6; }
12543 { echo "$as_me:$LINENO: result: no" >&5
12544 echo "${ECHO_T}no" >&6; }
12546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12548 { (exit 1); exit 1; }; }
12549 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12555 case `$LD -v 2>&1 </dev/null` in
12556 *GNU* | *'with BFD'*)
12557 lt_cv_prog_gnu_ld=yes
12560 lt_cv_prog_gnu_ld=no
12564 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12566 with_gnu_ld=$lt_cv_prog_gnu_ld
12569 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12570 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12571 if test "${lt_cv_ld_reload_flag+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 lt_cv_ld_reload_flag='-r'
12576 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12577 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12578 reload_flag=$lt_cv_ld_reload_flag
12579 case $reload_flag in
12581 *) reload_flag=" $reload_flag" ;;
12583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12586 if test "$GCC" = yes; then
12587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12594 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12595 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12596 if test "${lt_cv_deplibs_check_method+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 lt_cv_file_magic_cmd='$MAGIC_CMD'
12600 lt_cv_file_magic_test_file=
12601 lt_cv_deplibs_check_method='unknown'
12602 # Need to set the preceding variable on all platforms that support
12603 # interlibrary dependencies.
12604 # 'none' -- dependencies not supported.
12605 # `unknown' -- same as none, but documents that we really don't know.
12606 # 'pass_all' -- all dependencies passed with no checks.
12607 # 'test_compile' -- check by making test program.
12608 # 'file_magic [[regex]]' -- check by looking for files in library path
12609 # which responds to the $file_magic_cmd with a given extended regex.
12610 # If you have `file' or equivalent on your system and you're not sure
12611 # whether `pass_all' will *always* work, you probably want this one.
12615 lt_cv_deplibs_check_method=pass_all
12619 lt_cv_deplibs_check_method=pass_all
12623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12624 lt_cv_file_magic_cmd='/usr/bin/file -L'
12625 lt_cv_file_magic_test_file=/shlib/libc.so
12629 # func_win32_libid is a shell function defined in ltmain.sh
12630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12631 lt_cv_file_magic_cmd='func_win32_libid'
12635 # Base MSYS/MinGW do not provide the 'file' command needed by
12636 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12637 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12638 lt_cv_file_magic_cmd='$OBJDUMP -f'
12641 darwin* | rhapsody*)
12642 lt_cv_deplibs_check_method=pass_all
12645 freebsd* | kfreebsd*-gnu | dragonfly*)
12646 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12649 # Not sure whether the presence of OpenBSD here was a mistake.
12650 # Let's accept both of them until this is cleared up.
12651 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12652 lt_cv_file_magic_cmd=/usr/bin/file
12653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12657 lt_cv_deplibs_check_method=pass_all
12662 lt_cv_deplibs_check_method=pass_all
12665 hpux10.20* | hpux11*)
12666 lt_cv_file_magic_cmd=/usr/bin/file
12669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12670 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12673 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]'
12674 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12678 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12684 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12688 irix5* | irix6* | nonstopux*)
12690 *-32|*"-32 ") libmagic=32-bit;;
12691 *-n32|*"-n32 ") libmagic=N32;;
12692 *-64|*"-64 ") libmagic=64-bit;;
12693 *) libmagic=never-match;;
12695 lt_cv_deplibs_check_method=pass_all
12698 # This must be Linux ELF.
12700 lt_cv_deplibs_check_method=pass_all
12704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12713 lt_cv_file_magic_cmd=/usr/bin/file
12714 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12718 lt_cv_deplibs_check_method=unknown
12722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12729 osf3* | osf4* | osf5*)
12730 lt_cv_deplibs_check_method=pass_all
12734 lt_cv_deplibs_check_method=pass_all
12738 case $host_vendor in
12740 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]'
12741 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12744 lt_cv_deplibs_check_method=pass_all
12747 lt_cv_file_magic_cmd='/bin/file'
12748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12751 lt_cv_file_magic_cmd='/bin/file'
12752 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12753 lt_cv_file_magic_test_file=/lib/libc.so
12756 lt_cv_deplibs_check_method=pass_all
12759 lt_cv_deplibs_check_method=pass_all
12764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12765 lt_cv_deplibs_check_method=pass_all
12770 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12771 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12772 file_magic_cmd=$lt_cv_file_magic_cmd
12773 deplibs_check_method=$lt_cv_deplibs_check_method
12774 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12778 # If no C compiler was specified, use CC.
12781 # If no C compiler flags were specified, use CFLAGS.
12782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12784 # Allow CC to be a program name with arguments.
12787 # Check whether --enable-libtool-lock was given.
12788 if test "${enable_libtool_lock+set}" = set; then
12789 enableval=$enable_libtool_lock;
12792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12794 # Some flags need to be propagated to the compiler or linker for good
12798 # Find out which ABI we are using.
12799 echo 'int i;' > conftest.$ac_ext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; then
12805 case `/usr/bin/file conftest.$ac_objext` in
12807 HPUX_IA64_MODE="32"
12810 HPUX_IA64_MODE="64"
12817 # Find out which ABI we are using.
12818 echo '#line 12818 "configure"' > conftest.$ac_ext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; then
12824 if test "$lt_cv_prog_gnu_ld" = yes; then
12825 case `/usr/bin/file conftest.$ac_objext` in
12827 LD="${LD-ld} -melf32bsmip"
12830 LD="${LD-ld} -melf32bmipn32"
12833 LD="${LD-ld} -melf64bmip"
12837 case `/usr/bin/file conftest.$ac_objext` in
12853 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12854 # Find out which ABI we are using.
12855 echo 'int i;' > conftest.$ac_ext
12856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857 (eval $ac_compile) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; then
12861 case `/usr/bin/file conftest.o` in
12865 LD="${LD-ld} -m elf_i386"
12867 ppc64-*linux*|powerpc64-*linux*)
12868 LD="${LD-ld} -m elf32ppclinux"
12871 LD="${LD-ld} -m elf_s390"
12874 LD="${LD-ld} -m elf32_sparc"
12881 LD="${LD-ld} -m elf_x86_64"
12883 ppc*-*linux*|powerpc*-*linux*)
12884 LD="${LD-ld} -m elf64ppc"
12887 LD="${LD-ld} -m elf64_s390"
12890 LD="${LD-ld} -m elf64_sparc"
12900 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12901 SAVE_CFLAGS="$CFLAGS"
12902 CFLAGS="$CFLAGS -belf"
12903 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12904 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12905 if test "${lt_cv_cc_needs_belf+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 ac_cpp='$CPP $CPPFLAGS'
12910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_link") 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest$ac_exeext'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 lt_cv_cc_needs_belf=yes
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 lt_cv_cc_needs_belf=no
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12981 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12982 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12984 CFLAGS="$SAVE_CFLAGS"
12988 # Find out which ABI we are using.
12989 echo 'int i;' > conftest.$ac_ext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; then
12995 case `/usr/bin/file conftest.o` in
12997 case $lt_cv_prog_gnu_ld in
12998 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12999 *) LD="${LD-ld} -64" ;;
13010 need_locks="$enable_libtool_lock"
13015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13017 (test "X$CXX" != "Xg++"))) ; then
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13023 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13024 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13025 if test -z "$CXXCPP"; then
13026 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 # Double quotes because CXXCPP needs to be expanded
13030 for CXXCPP in "$CXX -E" "/lib/cpp"
13032 ac_preproc_ok=false
13033 for ac_cxx_preproc_warn_flag in '' yes
13035 # Use a header file that comes with gcc, so configuring glibc
13036 # with a fresh cross-compiler works.
13037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13038 # <limits.h> exists even on freestanding compilers.
13039 # On the NeXT, cc -E runs the code through the compiler's parser,
13040 # not just through cpp. "Syntax error" is here to catch this case.
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13048 # include <limits.h>
13050 # include <assert.h>
13054 if { (ac_try="$ac_cpp conftest.$ac_ext"
13055 case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13062 grep -v '^ *+' conftest.er1 >conftest.err
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } >/dev/null; then
13067 if test -s conftest.err; then
13068 ac_cpp_err=$ac_cxx_preproc_warn_flag
13069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13076 if test -z "$ac_cpp_err"; then
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 # Broken: fails on valid input.
13086 rm -f conftest.err conftest.$ac_ext
13088 # OK, works on sane cases. Now check whether nonexistent headers
13089 # can be detected and how.
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <ac_nonexistent.h>
13098 if { (ac_try="$ac_cpp conftest.$ac_ext"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_cxx_preproc_warn_flag
13113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13120 if test -z "$ac_cpp_err"; then
13121 # Broken: success on invalid input.
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 # Passes both tests.
13132 rm -f conftest.err conftest.$ac_ext
13135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13136 rm -f conftest.err conftest.$ac_ext
13137 if $ac_preproc_ok; then
13142 ac_cv_prog_CXXCPP=$CXXCPP
13145 CXXCPP=$ac_cv_prog_CXXCPP
13147 ac_cv_prog_CXXCPP=$CXXCPP
13149 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13150 echo "${ECHO_T}$CXXCPP" >&6; }
13151 ac_preproc_ok=false
13152 for ac_cxx_preproc_warn_flag in '' yes
13154 # Use a header file that comes with gcc, so configuring glibc
13155 # with a fresh cross-compiler works.
13156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157 # <limits.h> exists even on freestanding compilers.
13158 # On the NeXT, cc -E runs the code through the compiler's parser,
13159 # not just through cpp. "Syntax error" is here to catch this case.
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13167 # include <limits.h>
13169 # include <assert.h>
13173 if { (ac_try="$ac_cpp conftest.$ac_ext"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } >/dev/null; then
13186 if test -s conftest.err; then
13187 ac_cpp_err=$ac_cxx_preproc_warn_flag
13188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13195 if test -z "$ac_cpp_err"; then
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 # Broken: fails on valid input.
13205 rm -f conftest.err conftest.$ac_ext
13207 # OK, works on sane cases. Now check whether nonexistent headers
13208 # can be detected and how.
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 #include <ac_nonexistent.h>
13217 if { (ac_try="$ac_cpp conftest.$ac_ext"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } >/dev/null; then
13230 if test -s conftest.err; then
13231 ac_cpp_err=$ac_cxx_preproc_warn_flag
13232 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13239 if test -z "$ac_cpp_err"; then
13240 # Broken: success on invalid input.
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 # Passes both tests.
13251 rm -f conftest.err conftest.$ac_ext
13254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13255 rm -f conftest.err conftest.$ac_ext
13256 if $ac_preproc_ok; then
13259 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13260 See \`config.log' for more details." >&5
13261 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13262 See \`config.log' for more details." >&2;}
13263 { (exit 1); exit 1; }; }
13267 ac_cpp='$CXXCPP $CPPFLAGS'
13268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13279 if test -n "$ac_tool_prefix"; then
13280 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
13282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13286 if test "${ac_cv_prog_F77+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 if test -n "$F77"; then
13290 ac_cv_prog_F77="$F77" # Let the user override the test.
13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293 for as_dir in $PATH
13296 test -z "$as_dir" && as_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13299 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 F77=$ac_cv_prog_F77
13310 if test -n "$F77"; then
13311 { echo "$as_me:$LINENO: result: $F77" >&5
13312 echo "${ECHO_T}$F77" >&6; }
13314 { echo "$as_me:$LINENO: result: no" >&5
13315 echo "${ECHO_T}no" >&6; }
13319 test -n "$F77" && break
13322 if test -z "$F77"; then
13324 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
13326 # Extract the first word of "$ac_prog", so it can be a program name with args.
13327 set dummy $ac_prog; ac_word=$2
13328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13330 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 if test -n "$ac_ct_F77"; then
13334 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_ac_ct_F77="$ac_prog"
13344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13354 if test -n "$ac_ct_F77"; then
13355 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13356 echo "${ECHO_T}$ac_ct_F77" >&6; }
13358 { echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6; }
13363 test -n "$ac_ct_F77" && break
13366 if test "x$ac_ct_F77" = x; then
13369 case $cross_compiling:$ac_tool_warned in
13371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13372 whose name does not start with the host triplet. If you think this
13373 configuration is useful to you, please write to autoconf@gnu.org." >&5
13374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13375 whose name does not start with the host triplet. If you think this
13376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13377 ac_tool_warned=yes ;;
13384 # Provide some information about the compiler.
13385 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13386 ac_compiler=`set X $ac_compile; echo $2`
13387 { (ac_try="$ac_compiler --version >&5"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_compiler --version >&5") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }
13397 { (ac_try="$ac_compiler -v >&5"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_compiler -v >&5") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }
13407 { (ac_try="$ac_compiler -V >&5"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compiler -V >&5") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }
13419 # If we don't use `.F' as extension, the preprocessor is not run on the
13420 # input file. (Note that this only needs to work for GNU compilers.)
13421 ac_save_ext=$ac_ext
13423 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13424 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13425 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 cat >conftest.$ac_ext <<_ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_try") 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_compiler_gnu=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13482 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13483 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13484 ac_ext=$ac_save_ext
13485 ac_test_FFLAGS=${FFLAGS+set}
13486 ac_save_FFLAGS=$FFLAGS
13488 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13489 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13490 if test "${ac_cv_prog_f77_g+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 cat >conftest.$ac_ext <<_ACEOF
13499 rm -f conftest.$ac_objext
13500 if { (ac_try="$ac_compile"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_compile") 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_prog_f77_g=yes
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_prog_f77_g=no
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13545 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13546 if test "$ac_test_FFLAGS" = set; then
13547 FFLAGS=$ac_save_FFLAGS
13548 elif test $ac_cv_prog_f77_g = yes; then
13549 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13555 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13562 G77=`test $ac_compiler_gnu = yes && echo yes`
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13571 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13573 # find the maximum length of command line arguments
13574 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13575 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13576 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 # On DJGPP, this test can blow up pretty badly due to problems in libc
13585 # (any single argument exceeding 2000 bytes causes a buffer overrun
13586 # during glob expansion). Even if it were fixed, the result of this
13587 # check would be larger than it should be.
13588 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13592 # Under GNU Hurd, this test is not required because there is
13593 # no limit to the length of command line arguments.
13594 # Libtool will interpret -1 as no limit whatsoever
13595 lt_cv_sys_max_cmd_len=-1;
13599 # On Win9x/ME, this test blows up -- it succeeds, but takes
13600 # about 5 minutes as the teststring grows exponentially.
13601 # Worse, since 9x/ME are not pre-emptively multitasking,
13602 # you end up with a "frozen" computer, even though with patience
13603 # the test eventually succeeds (with a max line length of 256k).
13604 # Instead, let's just punt: use the minimum linelength reported by
13605 # all of the supported platforms: 8192 (on NT/2K/XP).
13606 lt_cv_sys_max_cmd_len=8192;
13610 # On AmigaOS with pdksh, this test takes hours, literally.
13611 # So we just punt and use a minimum line length of 8192.
13612 lt_cv_sys_max_cmd_len=8192;
13615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13616 # This has been around since 386BSD, at least. Likely further.
13617 if test -x /sbin/sysctl; then
13618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13619 elif test -x /usr/sbin/sysctl; then
13620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13624 # And add a safety zone
13625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13630 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13631 lt_cv_sys_max_cmd_len=196608
13635 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13636 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13637 # nice to cause kernel panics so lets avoid the loop below.
13638 # First set a reasonable default.
13639 lt_cv_sys_max_cmd_len=16384
13641 if test -x /sbin/sysconfig; then
13642 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13643 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13648 lt_cv_sys_max_cmd_len=102400
13650 sysv5* | sco5v6* | sysv4.2uw2*)
13651 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13652 if test -n "$kargmax"; then
13653 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13655 lt_cv_sys_max_cmd_len=32768
13659 # If test is not a shell built-in, we'll probably end up computing a
13660 # maximum length that is only half of the actual maximum length, but
13662 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13663 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13664 = "XX$teststring") >/dev/null 2>&1 &&
13665 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13666 lt_cv_sys_max_cmd_len=$new_result &&
13667 test $i != 17 # 1/2 MB should be enough
13670 teststring=$teststring$teststring
13673 # Add a significant safety factor because C++ compilers can tack on massive
13674 # amounts of additional arguments before passing them to the linker.
13675 # It appears as though 1/2 is a usable value.
13676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13682 if test -n $lt_cv_sys_max_cmd_len ; then
13683 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13684 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13686 { echo "$as_me:$LINENO: result: none" >&5
13687 echo "${ECHO_T}none" >&6; }
13693 # Check for command to grab the raw symbol name followed by C symbol from nm.
13694 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13695 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13696 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 # These are sane defaults that work on at least a few old systems.
13701 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13703 # Character class describing NM global symbol codes.
13704 symcode='[BCDEGRST]'
13706 # Regexp to match symbols that can be accessed directly from C.
13707 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13709 # Transform an extracted symbol line into a proper C declaration
13710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13712 # Transform an extracted symbol line into symbol name and symbol address
13713 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'"
13715 # Define system-specific variables.
13720 cygwin* | mingw* | pw32*)
13721 symcode='[ABCDGISTW]'
13723 hpux*) # Its linker distinguishes data from code symbols
13724 if test "$host_cpu" = ia64; then
13725 symcode='[ABCDEGRST]'
13727 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13728 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'"
13731 if test "$host_cpu" = ia64; then
13732 symcode='[ABCDGIRSTW]'
13733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13734 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'"
13737 irix* | nonstopux*)
13738 symcode='[BCDEGRST]'
13741 symcode='[BCDEGQRST]'
13752 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13760 # Handle CRLF in mingw tool chain
13764 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13768 # If we're using GNU nm, then use its standard symbol codes.
13769 case `$NM -V 2>&1` in
13770 *GNU* | *'with BFD'*)
13771 symcode='[ABCDGIRSTW]' ;;
13774 # Try without a prefix undercore, then with it.
13775 for ac_symprfx in "" "_"; do
13777 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13778 symxfrm="\\1 $ac_symprfx\\2 \\2"
13780 # Write the raw and C identifiers.
13781 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13783 # Check to see that the pipe works correctly.
13787 cat > conftest.$ac_ext <<EOF
13792 void nm_test_func(){}
13796 int main(){nm_test_var='a';nm_test_func();return(0);}
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; then
13804 # Now try to grab the symbols.
13806 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13807 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && test -s "$nlist"; then
13811 # Try sorting and uniquifying the output.
13812 if sort "$nlist" | uniq > "$nlist"T; then
13813 mv -f "$nlist"T "$nlist"
13818 # Make sure that we snagged all the symbols we need.
13819 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13820 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13821 cat <<EOF > conftest.$ac_ext
13827 # Now generate the symbol file.
13828 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13830 cat <<EOF >> conftest.$ac_ext
13831 #if defined (__STDC__) && __STDC__
13832 # define lt_ptr_t void *
13834 # define lt_ptr_t char *
13838 /* The mapping between symbol names and symbols. */
13843 lt_preloaded_symbols[] =
13846 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13847 cat <<\EOF >> conftest.$ac_ext
13855 # Now try linking the two files.
13856 mv conftest.$ac_objext conftstm.$ac_objext
13857 lt_save_LIBS="$LIBS"
13858 lt_save_CFLAGS="$CFLAGS"
13859 LIBS="conftstm.$ac_objext"
13860 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13868 LIBS="$lt_save_LIBS"
13869 CFLAGS="$lt_save_CFLAGS"
13871 echo "cannot find nm_test_func in $nlist" >&5
13874 echo "cannot find nm_test_var in $nlist" >&5
13877 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13880 echo "$progname: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13883 rm -f conftest* conftst*
13885 # Do not use the global_symbol_pipe unless it works.
13886 if test "$pipe_works" = yes; then
13889 lt_cv_sys_global_symbol_pipe=
13895 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13896 lt_cv_sys_global_symbol_to_cdecl=
13898 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13899 { echo "$as_me:$LINENO: result: failed" >&5
13900 echo "${ECHO_T}failed" >&6; }
13902 { echo "$as_me:$LINENO: result: ok" >&5
13903 echo "${ECHO_T}ok" >&6; }
13906 { echo "$as_me:$LINENO: checking for objdir" >&5
13907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13908 if test "${lt_cv_objdir+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 rm -f .libs 2>/dev/null
13912 mkdir .libs 2>/dev/null
13913 if test -d .libs; then
13916 # MS-DOS does not allow filenames that begin with a dot.
13919 rmdir .libs 2>/dev/null
13921 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13922 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13923 objdir=$lt_cv_objdir
13931 # AIX sometimes has problems with the GCC collect2 program. For some
13932 # reason, if we set the COLLECT_NAMES environment variable, the problems
13933 # vanish in a puff of smoke.
13934 if test "X${COLLECT_NAMES+set}" != Xset; then
13936 export COLLECT_NAMES
13941 # Sed substitution that helps us do robust quoting. It backslashifies
13942 # metacharacters that are still active within double-quoted strings.
13943 Xsed='sed -e 1s/^X//'
13944 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13946 # Same as above, but do not quote variable references.
13947 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13949 # Sed substitution to delay expansion of an escaped shell variable in a
13950 # double_quote_subst'ed string.
13951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13953 # Sed substitution to avoid accidental globbing in evaled expressions
13954 no_glob_subst='s/\*/\\\*/g'
13959 # Global variables:
13960 default_ofile=mklib
13961 can_build_shared=yes
13963 # All known linkers require a `.a' archive for static linking (except MSVC,
13964 # which needs '.lib').
13966 ltmain="$ac_aux_dir/ltmain.sh"
13967 ofile="$default_ofile"
13968 with_gnu_ld="$lt_cv_prog_gnu_ld"
13970 if test -n "$ac_tool_prefix"; then
13971 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13972 set dummy ${ac_tool_prefix}ar; ac_word=$2
13973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975 if test "${ac_cv_prog_AR+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 if test -n "$AR"; then
13979 ac_cv_prog_AR="$AR" # Let the user override the test.
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13988 ac_cv_prog_AR="${ac_tool_prefix}ar"
13989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 if test -n "$AR"; then
14000 { echo "$as_me:$LINENO: result: $AR" >&5
14001 echo "${ECHO_T}$AR" >&6; }
14003 { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14009 if test -z "$ac_cv_prog_AR"; then
14011 # Extract the first word of "ar", so it can be a program name with args.
14012 set dummy ar; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 if test -n "$ac_ct_AR"; then
14019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
14027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14028 ac_cv_prog_ac_ct_AR="ar"
14029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14039 if test -n "$ac_ct_AR"; then
14040 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14041 echo "${ECHO_T}$ac_ct_AR" >&6; }
14043 { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14047 if test "x$ac_ct_AR" = x; then
14050 case $cross_compiling:$ac_tool_warned in
14052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14053 whose name does not start with the host triplet. If you think this
14054 configuration is useful to you, please write to autoconf@gnu.org." >&5
14055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14056 whose name does not start with the host triplet. If you think this
14057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14058 ac_tool_warned=yes ;;
14063 AR="$ac_cv_prog_AR"
14066 if test -n "$ac_tool_prefix"; then
14067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071 if test "${ac_cv_prog_RANLIB+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 if test -n "$RANLIB"; then
14075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 RANLIB=$ac_cv_prog_RANLIB
14095 if test -n "$RANLIB"; then
14096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14097 echo "${ECHO_T}$RANLIB" >&6; }
14099 { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14105 if test -z "$ac_cv_prog_RANLIB"; then
14106 ac_ct_RANLIB=$RANLIB
14107 # Extract the first word of "ranlib", so it can be a program name with args.
14108 set dummy ranlib; ac_word=$2
14109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 if test -n "$ac_ct_RANLIB"; then
14115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
14123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14124 ac_cv_prog_ac_ct_RANLIB="ranlib"
14125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14135 if test -n "$ac_ct_RANLIB"; then
14136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14139 { echo "$as_me:$LINENO: result: no" >&5
14140 echo "${ECHO_T}no" >&6; }
14143 if test "x$ac_ct_RANLIB" = x; then
14146 case $cross_compiling:$ac_tool_warned in
14148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14149 whose name does not start with the host triplet. If you think this
14150 configuration is useful to you, please write to autoconf@gnu.org." >&5
14151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14152 whose name does not start with the host triplet. If you think this
14153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14154 ac_tool_warned=yes ;;
14156 RANLIB=$ac_ct_RANLIB
14159 RANLIB="$ac_cv_prog_RANLIB"
14162 if test -n "$ac_tool_prefix"; then
14163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14164 set dummy ${ac_tool_prefix}strip; ac_word=$2
14165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14167 if test "${ac_cv_prog_STRIP+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 if test -n "$STRIP"; then
14171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14177 test -z "$as_dir" && as_dir=.
14178 for ac_exec_ext in '' $ac_executable_extensions; do
14179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 STRIP=$ac_cv_prog_STRIP
14191 if test -n "$STRIP"; then
14192 { echo "$as_me:$LINENO: result: $STRIP" >&5
14193 echo "${ECHO_T}$STRIP" >&6; }
14195 { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14201 if test -z "$ac_cv_prog_STRIP"; then
14203 # Extract the first word of "strip", so it can be a program name with args.
14204 set dummy strip; ac_word=$2
14205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 if test -n "$ac_ct_STRIP"; then
14211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14217 test -z "$as_dir" && as_dir=.
14218 for ac_exec_ext in '' $ac_executable_extensions; do
14219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14220 ac_cv_prog_ac_ct_STRIP="strip"
14221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14231 if test -n "$ac_ct_STRIP"; then
14232 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14233 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14235 { echo "$as_me:$LINENO: result: no" >&5
14236 echo "${ECHO_T}no" >&6; }
14239 if test "x$ac_ct_STRIP" = x; then
14242 case $cross_compiling:$ac_tool_warned in
14244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14245 whose name does not start with the host triplet. If you think this
14246 configuration is useful to you, please write to autoconf@gnu.org." >&5
14247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14248 whose name does not start with the host triplet. If you think this
14249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14250 ac_tool_warned=yes ;;
14255 STRIP="$ac_cv_prog_STRIP"
14260 old_CFLAGS="$CFLAGS"
14262 # Set sane defaults for various variables
14263 test -z "$AR" && AR=ar
14264 test -z "$AR_FLAGS" && AR_FLAGS=cru
14265 test -z "$AS" && AS=as
14266 test -z "$CC" && CC=cc
14267 test -z "$LTCC" && LTCC=$CC
14268 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14269 test -z "$DLLTOOL" && DLLTOOL=dlltool
14270 test -z "$LD" && LD=ld
14271 test -z "$LN_S" && LN_S="ln -s"
14272 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14273 test -z "$NM" && NM=nm
14274 test -z "$SED" && SED=sed
14275 test -z "$OBJDUMP" && OBJDUMP=objdump
14276 test -z "$RANLIB" && RANLIB=:
14277 test -z "$STRIP" && STRIP=:
14278 test -z "$ac_objext" && ac_objext=o
14280 # Determine commands to create old-style static archives.
14281 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14282 old_postinstall_cmds='chmod 644 $oldlib'
14283 old_postuninstall_cmds=
14285 if test -n "$RANLIB"; then
14288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14294 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14297 for cc_temp in $compiler""; do
14299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14308 # Only perform the check for file, if the check method requires it
14309 case $deplibs_check_method in
14311 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14312 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14313 echo $ECHO_N "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file; then
14329 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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; }
14372 if test -z "$lt_cv_path_MAGIC_CMD"; then
14373 if test -n "$ac_tool_prefix"; then
14374 { echo "$as_me:$LINENO: checking for file" >&5
14375 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14384 lt_save_MAGIC_CMD="$MAGIC_CMD"
14385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14387 for ac_dir in $ac_dummy; do
14389 test -z "$ac_dir" && ac_dir=.
14390 if test -f $ac_dir/file; then
14391 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14392 if test -n "$file_magic_test_file"; then
14393 case $deplibs_check_method in
14395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14398 $EGREP "$file_magic_regex" > /dev/null; then
14403 *** Warning: the command libtool uses to detect shared libraries,
14404 *** $file_magic_cmd, produces output that libtool cannot recognize.
14405 *** The result is that libtool may fail to recognize shared libraries
14406 *** as such. This will affect the creation of libtool libraries that
14407 *** depend on shared libraries, but programs linked with such libtool
14408 *** libraries will work regardless of this problem. Nevertheless, you
14409 *** may want to report the problem to your system manager and/or to
14410 *** bug-libtool@gnu.org
14420 MAGIC_CMD="$lt_save_MAGIC_CMD"
14425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14426 if test -n "$MAGIC_CMD"; then
14427 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14428 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14430 { echo "$as_me:$LINENO: result: no" >&5
14431 echo "${ECHO_T}no" >&6; }
14444 enable_win32_dll=no
14446 # Check whether --enable-libtool-lock was given.
14447 if test "${enable_libtool_lock+set}" = set; then
14448 enableval=$enable_libtool_lock;
14451 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14454 # Check whether --with-pic was given.
14455 if test "${with_pic+set}" = set; then
14456 withval=$with_pic; pic_mode="$withval"
14461 test -z "$pic_mode" && pic_mode=default
14463 # Use C for the default configuration in the libtool script
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14473 # Source file extension for C test sources.
14476 # Object file extension for compiled C test sources.
14480 # Code to be used in simple compile tests
14481 lt_simple_compile_test_code="int some_variable = 0;\n"
14483 # Code to be used in simple link tests
14484 lt_simple_link_test_code='int main(){return(0);}\n'
14487 # If no C compiler was specified, use CC.
14490 # If no C compiler flags were specified, use CFLAGS.
14491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14493 # Allow CC to be a program name with arguments.
14497 # save warnings/boilerplate of simple test code
14498 ac_outfile=conftest.$ac_objext
14499 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14500 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14501 _lt_compiler_boilerplate=`cat conftest.err`
14504 ac_outfile=conftest.$ac_objext
14505 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14506 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14507 _lt_linker_boilerplate=`cat conftest.err`
14512 lt_prog_compiler_no_builtin_flag=
14514 if test "$GCC" = yes; then
14515 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 lt_cv_prog_compiler_rtti_exceptions=no
14524 ac_outfile=conftest.$ac_objext
14525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526 lt_compiler_flag="-fno-rtti -fno-exceptions"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 # The option is referenced via a variable to avoid confusing sed.
14532 lt_compile=`echo "$ac_compile" | $SED \
14533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535 -e 's:$: $lt_compiler_flag:'`
14536 (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
14537 (eval "$lt_compile" 2>conftest.err)
14539 cat conftest.err >&5
14540 echo "$as_me:14540: \$? = $ac_status" >&5
14541 if (exit $ac_status) && test -s "$ac_outfile"; then
14542 # The compiler can only warn and ignore the option if not recognized
14543 # So say no if there are warnings other than the usual output.
14544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14547 lt_cv_prog_compiler_rtti_exceptions=yes
14553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14564 lt_prog_compiler_wl=
14565 lt_prog_compiler_pic=
14566 lt_prog_compiler_static=
14568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14571 if test "$GCC" = yes; then
14572 lt_prog_compiler_wl='-Wl,'
14573 lt_prog_compiler_static='-static'
14577 # All AIX code is PIC.
14578 if test "$host_cpu" = ia64; then
14579 # AIX 5 now supports IA64 processor
14580 lt_prog_compiler_static='-Bstatic'
14585 # FIXME: we need at least 68020 code to build shared libraries, but
14586 # adding the `-m68020' flag to GCC prevents building anything better,
14588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14592 # PIC is the default for these OSes.
14595 mingw* | pw32* | os2*)
14596 # This hack is so that the source file can tell whether it is being
14597 # built for inclusion in a dll (and should export symbols for example).
14598 lt_prog_compiler_pic='-DDLL_EXPORT'
14601 darwin* | rhapsody*)
14602 # PIC is the default on this platform
14603 # Common symbols not allowed in MH_DYLIB files
14604 lt_prog_compiler_pic='-fno-common'
14608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14609 # Instead, we relocate shared libraries at runtime.
14613 # Just because we use GCC doesn't mean we suddenly get shared libraries
14614 # on systems that don't support them.
14615 lt_prog_compiler_can_build_shared=no
14620 if test -d /usr/nec; then
14621 lt_prog_compiler_pic=-Kconform_pic
14626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14627 # not for PA HP-UX.
14633 lt_prog_compiler_pic='-fPIC'
14639 lt_prog_compiler_pic='-fPIC'
14643 # PORTME Check for flag to pass linker flags through the system compiler.
14646 lt_prog_compiler_wl='-Wl,'
14647 if test "$host_cpu" = ia64; then
14648 # AIX 5 now supports IA64 processor
14649 lt_prog_compiler_static='-Bstatic'
14651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14655 # PIC is the default on this platform
14656 # Common symbols not allowed in MH_DYLIB files
14657 case $cc_basename in
14659 lt_prog_compiler_pic='-qnocommon'
14660 lt_prog_compiler_wl='-Wl,'
14665 mingw* | pw32* | os2*)
14666 # This hack is so that the source file can tell whether it is being
14667 # built for inclusion in a dll (and should export symbols for example).
14668 lt_prog_compiler_pic='-DDLL_EXPORT'
14671 hpux9* | hpux10* | hpux11*)
14672 lt_prog_compiler_wl='-Wl,'
14673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14674 # not for PA HP-UX.
14680 lt_prog_compiler_pic='+Z'
14683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14684 lt_prog_compiler_static='${wl}-a ${wl}archive'
14687 irix5* | irix6* | nonstopux*)
14688 lt_prog_compiler_wl='-Wl,'
14689 # PIC (with -KPIC) is the default.
14690 lt_prog_compiler_static='-non_shared'
14694 lt_prog_compiler_pic='-KPIC'
14695 lt_prog_compiler_static='-Bstatic'
14699 case $cc_basename in
14701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-static'
14705 pgcc* | pgf77* | pgf90* | pgf95*)
14706 # Portland Group compilers (*not* the Pentium gcc compiler,
14707 # which looks to be a dead project)
14708 lt_prog_compiler_wl='-Wl,'
14709 lt_prog_compiler_pic='-fpic'
14710 lt_prog_compiler_static='-Bstatic'
14713 lt_prog_compiler_wl='-Wl,'
14714 # All Alpha code is PIC.
14715 lt_prog_compiler_static='-non_shared'
14720 osf3* | osf4* | osf5*)
14721 lt_prog_compiler_wl='-Wl,'
14722 # All OSF/1 code is PIC.
14723 lt_prog_compiler_static='-non_shared'
14727 lt_prog_compiler_pic='-KPIC'
14728 lt_prog_compiler_static='-Bstatic'
14729 case $cc_basename in
14730 f77* | f90* | f95*)
14731 lt_prog_compiler_wl='-Qoption ld ';;
14733 lt_prog_compiler_wl='-Wl,';;
14738 lt_prog_compiler_wl='-Qoption ld '
14739 lt_prog_compiler_pic='-PIC'
14740 lt_prog_compiler_static='-Bstatic'
14743 sysv4 | sysv4.2uw2* | sysv4.3*)
14744 lt_prog_compiler_wl='-Wl,'
14745 lt_prog_compiler_pic='-KPIC'
14746 lt_prog_compiler_static='-Bstatic'
14750 if test -d /usr/nec ;then
14751 lt_prog_compiler_pic='-Kconform_pic'
14752 lt_prog_compiler_static='-Bstatic'
14756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14757 lt_prog_compiler_wl='-Wl,'
14758 lt_prog_compiler_pic='-KPIC'
14759 lt_prog_compiler_static='-Bstatic'
14763 lt_prog_compiler_wl='-Wl,'
14764 lt_prog_compiler_can_build_shared=no
14768 lt_prog_compiler_pic='-pic'
14769 lt_prog_compiler_static='-Bstatic'
14773 lt_prog_compiler_can_build_shared=no
14778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14779 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14782 # Check to make sure the PIC flag actually works.
14784 if test -n "$lt_prog_compiler_pic"; then
14786 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14788 if test "${lt_prog_compiler_pic_works+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 lt_prog_compiler_pic_works=no
14792 ac_outfile=conftest.$ac_objext
14793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14795 # Insert the option either (1) after the last *FLAGS variable, or
14796 # (2) before a word containing "conftest.", or (3) at the end.
14797 # Note that $ac_compile itself does not contain backslashes and begins
14798 # with a dollar sign (not a hyphen), so the echo should work correctly.
14799 # The option is referenced via a variable to avoid confusing sed.
14800 lt_compile=`echo "$ac_compile" | $SED \
14801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14803 -e 's:$: $lt_compiler_flag:'`
14804 (eval echo "\"\$as_me:14804: $lt_compile\"" >&5)
14805 (eval "$lt_compile" 2>conftest.err)
14807 cat conftest.err >&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 if (exit $ac_status) && test -s "$ac_outfile"; then
14810 # The compiler can only warn and ignore the option if not recognized
14811 # So say no if there are warnings other than the usual output.
14812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14815 lt_prog_compiler_pic_works=yes
14821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14822 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14824 if test x"$lt_prog_compiler_pic_works" = xyes; then
14825 case $lt_prog_compiler_pic in
14827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14830 lt_prog_compiler_pic=
14831 lt_prog_compiler_can_build_shared=no
14836 # For platforms which do not support PIC, -DPIC is meaningless:
14838 lt_prog_compiler_pic=
14841 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14846 # Check to make sure the static flag actually works.
14848 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14849 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14850 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14851 if test "${lt_prog_compiler_static_works+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 lt_prog_compiler_static_works=no
14855 save_LDFLAGS="$LDFLAGS"
14856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14859 # The linker can only warn and ignore the option if not recognized
14860 # So say no if there are warnings
14861 if test -s conftest.err; then
14862 # Append any errors to the config.log.
14863 cat conftest.err 1>&5
14864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14866 if diff conftest.exp conftest.er2 >/dev/null; then
14867 lt_prog_compiler_static_works=yes
14870 lt_prog_compiler_static_works=yes
14874 LDFLAGS="$save_LDFLAGS"
14877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14878 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14880 if test x"$lt_prog_compiler_static_works" = xyes; then
14883 lt_prog_compiler_static=
14887 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14888 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 lt_cv_prog_compiler_c_o=no
14893 $rm -r conftest 2>/dev/null
14897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14899 lt_compiler_flag="-o out/conftest2.$ac_objext"
14900 # Insert the option either (1) after the last *FLAGS variable, or
14901 # (2) before a word containing "conftest.", or (3) at the end.
14902 # Note that $ac_compile itself does not contain backslashes and begins
14903 # with a dollar sign (not a hyphen), so the echo should work correctly.
14904 lt_compile=`echo "$ac_compile" | $SED \
14905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907 -e 's:$: $lt_compiler_flag:'`
14908 (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
14909 (eval "$lt_compile" 2>out/conftest.err)
14911 cat out/conftest.err >&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14915 # The compiler can only warn and ignore the option if not recognized
14916 # So say no if there are warnings
14917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14920 lt_cv_prog_compiler_c_o=yes
14925 # SGI C++ compiler will create directory out/ii_files/ for
14926 # template instantiation
14927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14928 $rm out/* && rmdir out
14934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14935 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14938 hard_links="nottested"
14939 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14940 # do not overwrite the value of need_locks provided by the user
14941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14947 ln conftest.a conftest.b 2>&5 || hard_links=no
14948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14949 { echo "$as_me:$LINENO: result: $hard_links" >&5
14950 echo "${ECHO_T}$hard_links" >&6; }
14951 if test "$hard_links" = no; then
14952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14960 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14964 allow_undefined_flag=
14965 enable_shared_with_static_runtimes=no
14967 archive_expsym_cmds=
14968 old_archive_From_new_cmds=
14969 old_archive_from_expsyms_cmds=
14970 export_dynamic_flag_spec=
14971 whole_archive_flag_spec=
14972 thread_safe_flag_spec=
14973 hardcode_libdir_flag_spec=
14974 hardcode_libdir_flag_spec_ld=
14975 hardcode_libdir_separator=
14977 hardcode_minus_L=no
14978 hardcode_shlibpath_var=unsupported
14979 link_all_deplibs=unknown
14980 hardcode_automatic=no
14982 module_expsym_cmds=
14983 always_export_symbols=no
14984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14985 # include_expsyms should be a list of space-separated symbols to be *always*
14986 # included in the symbol list
14988 # exclude_expsyms can be an extended regexp of symbols to exclude
14989 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14990 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14991 # as well as any symbol that contains `d'.
14992 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14994 # platforms (ab)use it in PIC code, but their linkers get confused if
14995 # the symbol is explicitly referenced. Since portable code cannot
14996 # rely on this symbol name, it's probably fine to never include it in
14997 # preloaded symbol tables.
14998 extract_expsyms_cmds=
14999 # Just being paranoid about ensuring that cc_basename is set.
15000 for cc_temp in $compiler""; do
15002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15011 cygwin* | mingw* | pw32*)
15012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15013 # When not using gcc, we currently assume that we are using
15014 # Microsoft Visual C++.
15015 if test "$GCC" != yes; then
15020 # we just hope/assume this is gcc and not c89 (= MSVC++)
15029 if test "$with_gnu_ld" = yes; then
15030 # If archive_cmds runs LD, not CC, wlarc should be empty
15033 # Set some defaults for GNU ld with shared library support. These
15034 # are reset later if shared libraries are not supported. Putting them
15035 # here allows them to be overridden if necessary.
15036 runpath_var=LD_RUN_PATH
15037 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15038 export_dynamic_flag_spec='${wl}--export-dynamic'
15039 # ancient GNU ld didn't support --whole-archive et. al.
15040 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15043 whole_archive_flag_spec=
15045 supports_anon_versioning=no
15046 case `$LD -v 2>/dev/null` in
15047 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15050 *\ 2.11.*) ;; # other 2.11 versions
15051 *) supports_anon_versioning=yes ;;
15054 # See if GNU ld supports shared libraries.
15056 aix3* | aix4* | aix5*)
15057 # On AIX/PPC, the GNU linker is very broken
15058 if test "$host_cpu" != ia64; then
15062 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15063 *** to be unable to reliably create shared libraries on AIX.
15064 *** Therefore, libtool is disabling shared libraries support. If you
15065 *** really care for shared libraries, you may want to modify your PATH
15066 *** so that a non-GNU linker is found, and then restart.
15073 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)'
15074 hardcode_libdir_flag_spec='-L$libdir'
15075 hardcode_minus_L=yes
15077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15078 # that the semantics of dynamic libraries on AmigaOS, at least up
15079 # to version 4, is to share data among multiple programs linked
15080 # with the same dynamic library. Since this doesn't match the
15081 # behavior of shared libraries on other platforms, we can't use
15087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088 allow_undefined_flag=unsupported
15089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15090 # support --undefined. This deserves some investigation. FIXME
15091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097 cygwin* | mingw* | pw32*)
15098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15099 # as there is no search path for DLLs.
15100 hardcode_libdir_flag_spec='-L$libdir'
15101 allow_undefined_flag=unsupported
15102 always_export_symbols=no
15103 enable_shared_with_static_runtimes=yes
15104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15106 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15108 # If the export-symbols file already is a .def file (1st line
15109 # is EXPORTS), use it as is; otherwise, prepend...
15110 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15111 cp $export_symbols $output_objdir/$soname.def;
15113 echo EXPORTS > $output_objdir/$soname.def;
15114 cat $export_symbols >> $output_objdir/$soname.def;
15116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15124 hardcode_shlibpath_var=no
15125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15126 export_dynamic_flag_spec='${wl}-E'
15127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15128 # Instead, shared libraries are loaded at an image base (0x10000000 by
15129 # default) and relocated if they conflict, which is a slow very memory
15130 # consuming and fragmenting process. To avoid this, we pick a random,
15131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15134 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'
15138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15140 case $cc_basename,$host_cpu in
15141 pgcc*) # Portland Group C compiler
15142 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'
15143 tmp_addflag=' $pic_flag'
15145 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15146 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'
15147 tmp_addflag=' $pic_flag -Mnomain' ;;
15148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15149 tmp_addflag=' -i_dynamic' ;;
15150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15151 tmp_addflag=' -i_dynamic -nofor_main' ;;
15152 ifc* | ifort*) # Intel Fortran compiler
15153 tmp_addflag=' -nofor_main' ;;
15155 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15157 if test $supports_anon_versioning = yes; then
15158 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15160 $echo "local: *; };" >> $output_objdir/$libname.ver~
15161 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
15179 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15184 *** create shared libraries on Solaris systems. Therefore, libtool
15185 *** is disabling shared libraries support. We urge you to upgrade GNU
15186 *** binutils to release 2.9.1 or newer. Another option is to modify
15187 *** your PATH or compiler configuration so that the native linker is
15188 *** used, and then restart.
15191 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15200 case `$LD -v 2>&1` in
15201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15205 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15206 *** reliably create shared libraries on SCO systems. Therefore, libtool
15207 *** is disabling shared libraries support. We urge you to upgrade GNU
15208 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15209 *** your PATH or compiler configuration so that the native linker is
15210 *** used, and then restart.
15215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15216 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15229 hardcode_direct=yes
15230 hardcode_shlibpath_var=no
15234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15243 if test "$ld_shlibs" = no; then
15245 hardcode_libdir_flag_spec=
15246 export_dynamic_flag_spec=
15247 whole_archive_flag_spec=
15250 # PORTME fill in a description of your system's linker (not GNU ld)
15253 allow_undefined_flag=unsupported
15254 always_export_symbols=yes
15255 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'
15256 # Note: this linker hardcodes the directories in LIBPATH if there
15257 # are no directories specified by -L.
15258 hardcode_minus_L=yes
15259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15260 # Neither direct hardcoding nor static linking is supported with a
15262 hardcode_direct=unsupported
15267 if test "$host_cpu" = ia64; then
15268 # On IA64, the linker does run time linking by default, so we don't
15269 # have to do anything special.
15270 aix_use_runtimelinking=no
15271 exp_sym_flag='-Bexport'
15274 # If we're using GNU nm, then we don't want the "-C" option.
15275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15276 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15277 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'
15279 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'
15281 aix_use_runtimelinking=no
15283 # Test if we are trying to use run time linking or normal
15284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15285 # need to do runtime linking.
15286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15287 for ld_flag in $LDFLAGS; do
15288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15289 aix_use_runtimelinking=yes
15296 exp_sym_flag='-bexport'
15297 no_entry_flag='-bnoentry'
15300 # When large executables or shared objects are built, AIX ld can
15301 # have problems creating the table of contents. If linking a library
15302 # or program results in "error TOC overflow" add -mminimal-toc to
15303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15307 hardcode_direct=yes
15308 hardcode_libdir_separator=':'
15309 link_all_deplibs=yes
15311 if test "$GCC" = yes; then
15312 case $host_os in aix4.[012]|aix4.[012].*)
15313 # We only want to do this on AIX 4.2 and lower, the check
15314 # below for broken collect2 doesn't work under 4.3+
15315 collect2name=`${CC} -print-prog-name=collect2`
15316 if test -f "$collect2name" && \
15317 strings "$collect2name" | grep resolve_lib_name >/dev/null
15319 # We have reworked collect2
15320 hardcode_direct=yes
15322 # We have old collect2
15323 hardcode_direct=unsupported
15324 # It fails to find uninstalled libraries when the uninstalled
15325 # path is not listed in the libpath. Setting hardcode_minus_L
15326 # to unsupported forces relinking
15327 hardcode_minus_L=yes
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 hardcode_libdir_separator=
15333 shared_flag='-shared'
15334 if test "$aix_use_runtimelinking" = yes; then
15335 shared_flag="$shared_flag "'${wl}-G'
15339 if test "$host_cpu" = ia64; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15344 if test "$aix_use_runtimelinking" = yes; then
15345 shared_flag='${wl}-G'
15347 shared_flag='${wl}-bM:SRE'
15352 # It seems that -bexpall does not export symbols beginning with
15353 # underscore (_), so it is better to generate a list of symbols to export.
15354 always_export_symbols=yes
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # Warning - without using the other runtime loading flags (-brtl),
15357 # -berok will link without error, but may produce a broken library.
15358 allow_undefined_flag='-berok'
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (ac_try="$ac_link"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_link") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest$ac_exeext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15412 # Check for a 64-bit object if we didn't find anything.
15413 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; }
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15427 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"
15429 if test "$host_cpu" = ia64; then
15430 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15431 allow_undefined_flag="-z nodefs"
15432 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"
15434 # Determine the default libpath from the value encoded in an empty executable.
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_link") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest$ac_exeext'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_try") 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15487 # Check for a 64-bit object if we didn't find anything.
15488 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; }
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15502 # Warning - without using the other run time loading flags,
15503 # -berok will link without error, but may produce a broken library.
15504 no_undefined_flag=' ${wl}-bernotok'
15505 allow_undefined_flag=' ${wl}-berok'
15506 # Exported symbols can be pulled into shared objects from archives
15507 whole_archive_flag_spec='$convenience'
15508 archive_cmds_need_lc=yes
15509 # This is similar to how AIX traditionally builds its shared libraries.
15510 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'
15516 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)'
15517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_minus_L=yes
15519 # see comment about different semantics on the GNU ld section
15524 export_dynamic_flag_spec=-rdynamic
15527 cygwin* | mingw* | pw32*)
15528 # When not using gcc, we currently assume that we are using
15529 # Microsoft Visual C++.
15530 # hardcode_libdir_flag_spec is actually meaningless, as there is
15531 # no search path for DLLs.
15532 hardcode_libdir_flag_spec=' '
15533 allow_undefined_flag=unsupported
15534 # Tell ltmain to make .lib files, not .a files.
15536 # Tell ltmain to make .dll files, not .so files.
15538 # FIXME: Setting linknames here is a bad hack.
15539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15540 # The linker will automatically build a .lib file if we build a DLL.
15541 old_archive_From_new_cmds='true'
15542 # FIXME: Should let the user specify the lib program.
15543 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15544 fix_srcfile_path='`cygpath -w "$srcfile"`'
15545 enable_shared_with_static_runtimes=yes
15548 darwin* | rhapsody*)
15550 rhapsody* | darwin1.[012])
15551 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15555 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15557 case ${MACOSX_DEPLOYMENT_TARGET} in
15559 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15562 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15568 archive_cmds_need_lc=no
15570 hardcode_automatic=yes
15571 hardcode_shlibpath_var=unsupported
15572 whole_archive_flag_spec=''
15573 link_all_deplibs=yes
15574 if test "$GCC" = yes ; then
15575 output_verbose_link_cmd='echo'
15576 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15577 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15579 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}'
15580 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}'
15582 case $cc_basename in
15584 output_verbose_link_cmd='echo'
15585 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15586 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15588 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}'
15589 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}'
15599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600 hardcode_libdir_flag_spec='-L$libdir'
15601 hardcode_shlibpath_var=no
15608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15609 # support. Future versions do this automatically, but an explicit c++rt0.o
15610 # does not break anything, and helps significantly (at the cost of a little
15613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15614 hardcode_libdir_flag_spec='-R$libdir'
15615 hardcode_direct=yes
15616 hardcode_shlibpath_var=no
15619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_direct=yes
15623 hardcode_minus_L=yes
15624 hardcode_shlibpath_var=no
15627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15628 freebsd* | kfreebsd*-gnu | dragonfly*)
15629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15630 hardcode_libdir_flag_spec='-R$libdir'
15631 hardcode_direct=yes
15632 hardcode_shlibpath_var=no
15636 if test "$GCC" = yes; then
15637 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'
15639 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'
15641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15642 hardcode_libdir_separator=:
15643 hardcode_direct=yes
15645 # hardcode_minus_L: Not really in the search PATH,
15646 # but as the default location of the library.
15647 hardcode_minus_L=yes
15648 export_dynamic_flag_spec='${wl}-E'
15652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15657 if test "$with_gnu_ld" = no; then
15658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15659 hardcode_libdir_separator=:
15661 hardcode_direct=yes
15662 export_dynamic_flag_spec='${wl}-E'
15664 # hardcode_minus_L: Not really in the search PATH,
15665 # but as the default location of the library.
15666 hardcode_minus_L=yes
15671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15696 if test "$with_gnu_ld" = no; then
15697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15698 hardcode_libdir_separator=:
15702 hardcode_libdir_flag_spec_ld='+b $libdir'
15704 hardcode_shlibpath_var=no
15707 hardcode_direct=yes
15708 export_dynamic_flag_spec='${wl}-E'
15710 # hardcode_minus_L: Not really in the search PATH,
15711 # but as the default location of the library.
15712 hardcode_minus_L=yes
15718 irix5* | irix6* | nonstopux*)
15719 if test "$GCC" = yes; then
15720 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'
15722 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'
15723 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator=:
15727 link_all_deplibs=yes
15731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15736 hardcode_libdir_flag_spec='-R$libdir'
15737 hardcode_direct=yes
15738 hardcode_shlibpath_var=no
15742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct=yes
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15746 hardcode_shlibpath_var=no
15750 hardcode_direct=yes
15751 hardcode_shlibpath_var=no
15752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15754 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15756 export_dynamic_flag_spec='${wl}-E'
15759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_libdir_flag_spec='-R$libdir'
15764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15772 hardcode_libdir_flag_spec='-L$libdir'
15773 hardcode_minus_L=yes
15774 allow_undefined_flag=unsupported
15775 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'
15776 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15780 if test "$GCC" = yes; then
15781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15782 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'
15784 allow_undefined_flag=' -expect_unresolved \*'
15785 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'
15787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15788 hardcode_libdir_separator=:
15791 osf4* | osf5*) # as osf3* with the addition of -msym flag
15792 if test "$GCC" = yes; then
15793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15794 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'
15795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15797 allow_undefined_flag=' -expect_unresolved \*'
15798 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'
15799 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15800 $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'
15802 # Both c and cxx compiler support -rpath directly
15803 hardcode_libdir_flag_spec='-rpath $libdir'
15805 hardcode_libdir_separator=:
15809 no_undefined_flag=' -z text'
15810 if test "$GCC" = yes; then
15812 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15813 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15814 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15821 hardcode_libdir_flag_spec='-R$libdir'
15822 hardcode_shlibpath_var=no
15824 solaris2.[0-5] | solaris2.[0-5].*) ;;
15826 # The compiler driver will combine linker options so we
15827 # cannot just pass the convience library names through
15828 # without $wl, iff we do not link with $LD.
15829 # Luckily, gcc supports the same syntax we need for Sun Studio.
15830 # Supported since Solaris 2.6 (maybe 2.5.1?)
15833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15835 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' ;;
15838 link_all_deplibs=yes
15842 if test "x$host_vendor" = xsequent; then
15843 # Use $CC to link under sequent, because it throws in some extra .o
15844 # files that make .init and .fini sections work.
15845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_libdir_flag_spec='-L$libdir'
15850 hardcode_direct=yes
15851 hardcode_minus_L=yes
15852 hardcode_shlibpath_var=no
15856 case $host_vendor in
15858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct=yes # is this really true???
15862 ## LD is ld it makes a PLAMLIB
15863 ## CC just makes a GrossModule.
15864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15865 reload_cmds='$CC -r -o $output$reload_objs'
15869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15873 runpath_var='LD_RUN_PATH'
15874 hardcode_shlibpath_var=no
15878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879 hardcode_shlibpath_var=no
15880 export_dynamic_flag_spec='-Bexport'
15884 if test -d /usr/nec; then
15885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_shlibpath_var=no
15887 runpath_var=LD_RUN_PATH
15888 hardcode_runpath_var=yes
15893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15894 no_undefined_flag='${wl}-z,text'
15895 archive_cmds_need_lc=no
15896 hardcode_shlibpath_var=no
15897 runpath_var='LD_RUN_PATH'
15899 if test "$GCC" = yes; then
15900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 sysv5* | sco3.2v5* | sco5v6*)
15909 # Note: We can NOT use -z defs as we might desire, because we do not
15910 # link with -lc, and that would cause any symbols used from libc to
15911 # always be unresolved, which means just about no library would
15912 # ever link correctly. If we're not using GNU ld we use -z text
15913 # though, which does catch some bad symbols but isn't as heavy-handed
15915 no_undefined_flag='${wl}-z,text'
15916 allow_undefined_flag='${wl}-z,nodefs'
15917 archive_cmds_need_lc=no
15918 hardcode_shlibpath_var=no
15919 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15920 hardcode_libdir_separator=':'
15921 link_all_deplibs=yes
15922 export_dynamic_flag_spec='${wl}-Bexport'
15923 runpath_var='LD_RUN_PATH'
15925 if test "$GCC" = yes; then
15926 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_libdir_flag_spec='-L$libdir'
15937 hardcode_shlibpath_var=no
15946 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15947 echo "${ECHO_T}$ld_shlibs" >&6; }
15948 test "$ld_shlibs" = no && can_build_shared=no
15951 # Do we need to explicitly link libc?
15953 case "x$archive_cmds_need_lc" in
15955 # Assume -lc should be added
15956 archive_cmds_need_lc=yes
15958 if test "$enable_shared" = yes && test "$GCC" = yes; then
15959 case $archive_cmds in
15961 # FIXME: we may have to deal with multi-command sequences.
15964 # Test whether the compiler implicitly links with -lc since on some
15965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966 # to ld, don't add -lc before -lgcc.
15967 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } 2>conftest.err; then
15979 libobjs=conftest.$ac_objext
15981 wl=$lt_prog_compiler_wl
15982 pic_flag=$lt_prog_compiler_pic
15988 lt_save_allow_undefined_flag=$allow_undefined_flag
15989 allow_undefined_flag=
15990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15991 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }
15996 archive_cmds_need_lc=no
15998 archive_cmds_need_lc=yes
16000 allow_undefined_flag=$lt_save_allow_undefined_flag
16002 cat conftest.err 1>&5
16005 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16006 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16013 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16015 library_names_spec=
16016 libname_spec='lib$name'
16020 postuninstall_cmds=
16024 shlibpath_overrides_runpath=unknown
16026 dynamic_linker="$host_os ld.so"
16027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16028 if test "$GCC" = yes; then
16029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031 # if the path contains ";" then we assume it to be the separator
16032 # otherwise default to the standard path separator (i.e. ":") - it is
16033 # assumed that no part of a normal pathname contains ";" but that should
16034 # okay in the real world where ";" in dirpaths is itself problematic.
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16042 need_lib_prefix=unknown
16043 hardcode_into_libs=no
16045 # when you set need_version to no, make sure it does not cause -set_version
16046 # flags to be left without arguments
16047 need_version=unknown
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16053 shlibpath_var=LIBPATH
16055 # AIX 3 has no versioning support, so we append a major version to the name.
16056 soname_spec='${libname}${release}${shared_ext}$major'
16063 hardcode_into_libs=yes
16064 if test "$host_cpu" = ia64; then
16065 # AIX 5 supports IA64
16066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16069 # With GCC up to 2.95.x, collect2 would create an import file
16070 # for dependence libraries. The import file would start with
16071 # the line `#! .'. This would cause the generated library to
16072 # depend on `.', always an invalid library. This was fixed in
16073 # development snapshots of GCC prior to 3.0.
16075 aix4 | aix4.[01] | aix4.[01].*)
16076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16081 can_build_shared=no
16085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086 # soname into executable. Probably we can add versioning support to
16087 # collect2, so additional links can be useful in future.
16088 if test "$aix_use_runtimelinking" = yes; then
16089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090 # instead of lib<name>.a to let people know that these are not
16091 # typical AIX shared libraries.
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 # We preserve .a as extension for shared libraries through AIX4.2
16095 # and later when we are not doing run time linking.
16096 library_names_spec='${libname}${release}.a $libname.a'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LIBPATH
16104 library_names_spec='$libname.ixlibrary $libname.a'
16105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16106 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'
16110 library_names_spec='${libname}${shared_ext}'
16111 dynamic_linker="$host_os ld.so"
16112 shlibpath_var=LIBRARY_PATH
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124 # the default ld.so.conf also contains /usr/contrib/lib and
16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126 # libtool to hard-code these into programs
16129 cygwin* | mingw* | pw32*)
16130 version_type=windows
16135 case $GCC,$host_os in
16136 yes,cygwin* | yes,mingw* | yes,pw32*)
16137 library_names_spec='$libname.dll.a'
16138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139 postinstall_cmds='base_file=`basename \${file}`~
16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141 dldir=$destdir/`dirname \$dlpath`~
16142 test -d \$dldir || mkdir -p \$dldir~
16143 $install_prog $dir/$dlname \$dldir/$dlname~
16144 chmod a+x \$dldir/$dlname'
16145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16146 dlpath=$dir/\$dldll~
16148 shlibpath_overrides_runpath=yes
16152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16157 # MinGW DLLs use traditional 'lib' prefix
16158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16161 # It is most probably a Windows format PATH printed by
16162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16163 # path with ; separators, and with drive letters. We can handle the
16164 # drive letters (cygwin fileutils understands them), so leave them,
16165 # especially as we might pass files found there to a mingw objdump,
16166 # which wouldn't understand a cygwinified path. Ahh.
16167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16173 # pw32 DLLs use 'pw' prefix rather than 'lib'
16174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16183 dynamic_linker='Win32 ld.exe'
16184 # FIXME: first we should search . and the directory the executable is in
16188 darwin* | rhapsody*)
16189 dynamic_linker="$host_os dyld"
16190 version_type=darwin
16193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16194 soname_spec='${libname}${release}${major}$shared_ext'
16195 shlibpath_overrides_runpath=yes
16196 shlibpath_var=DYLD_LIBRARY_PATH
16197 shrext_cmds='.dylib'
16198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16199 if test "$GCC" = yes; then
16200 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"`
16202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=no
16228 hardcode_into_libs=yes
16229 dynamic_linker='GNU ld.so'
16232 freebsd* | dragonfly*)
16233 # DragonFly does not have aout. When/if they implement a new
16234 # versioning mechanism, adjust this.
16235 if test -x /usr/bin/objformat; then
16236 objformat=`/usr/bin/objformat`
16239 freebsd[123]*) objformat=aout ;;
16240 *) objformat=elf ;;
16243 version_type=freebsd-$objformat
16244 case $version_type in
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16255 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes
16260 freebsd3.[01]* | freebsdelf3.[01]*)
16261 shlibpath_overrides_runpath=yes
16262 hardcode_into_libs=yes
16264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16266 shlibpath_overrides_runpath=no
16267 hardcode_into_libs=yes
16269 freebsd*) # from 4.6 on
16270 shlibpath_overrides_runpath=yes
16271 hardcode_into_libs=yes
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 hardcode_into_libs=yes
16286 hpux9* | hpux10* | hpux11*)
16287 # Give a soname corresponding to the major version so that dld.sl refuses to
16288 # link against other versions.
16295 hardcode_into_libs=yes
16296 dynamic_linker="$host_os dld.so"
16297 shlibpath_var=LD_LIBRARY_PATH
16298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 if test "X$HPUX_IA64_MODE" = X32; then
16302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16310 hardcode_into_libs=yes
16311 dynamic_linker="$host_os dld.sl"
16312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16321 dynamic_linker="$host_os dld.sl"
16322 shlibpath_var=SHLIB_PATH
16323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16328 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16329 postinstall_cmds='chmod 555 $lib'
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=no
16341 hardcode_into_libs=yes
16344 irix5* | irix6* | nonstopux*)
16346 nonstopux*) version_type=nonstopux ;;
16348 if test "$lt_cv_prog_gnu_ld" = yes; then
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16359 irix5* | nonstopux*)
16360 libsuff= shlibsuff=
16363 case $LD in # libtool.m4 will add one of these switches to LD
16364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16365 libsuff= shlibsuff= libmagic=32-bit;;
16366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16367 libsuff=32 shlibsuff=N32 libmagic=N32;;
16368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16370 *) libsuff= shlibsuff= libmagic=never-match;;
16374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16375 shlibpath_overrides_runpath=no
16376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16378 hardcode_into_libs=yes
16381 # No shared lib support for Linux oldld, aout, or coff.
16382 linux*oldld* | linux*aout* | linux*coff*)
16386 # This must be Linux ELF.
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=no
16396 # This implies no fast_install, which is unacceptable.
16397 # Some rework will be needed to allow for fast_install
16398 # before this can be enabled.
16399 hardcode_into_libs=yes
16401 # Append ld.so.conf contents to the search path
16402 if test -f /etc/ld.so.conf; then
16403 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' ' '`
16404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16407 # We used to test for /lib/ld.so.1 and disable shared libraries on
16408 # powerpc, because MkLinux only supported shared libraries with the
16409 # GNU dynamic linker. Since this was broken with cross compilers,
16410 # most powerpc-linux boxes support dynamic linking these days and
16411 # people can always --disable-shared, the test was removed, and we
16412 # assume the GNU/Linux dynamic linker is in use.
16413 dynamic_linker='GNU/Linux ld.so'
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=no
16424 hardcode_into_libs=yes
16425 dynamic_linker='GNU ld.so'
16432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435 dynamic_linker='NetBSD (a.out) ld.so'
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 dynamic_linker='NetBSD ld.elf_so'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes
16443 hardcode_into_libs=yes
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 shlibpath_overrides_runpath=yes
16465 sys_lib_dlsearch_path_spec="/usr/lib"
16467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16470 *) need_version=no ;;
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16477 openbsd2.[89] | openbsd2.[89].*)
16478 shlibpath_overrides_runpath=no
16481 shlibpath_overrides_runpath=yes
16485 shlibpath_overrides_runpath=yes
16490 libname_spec='$name'
16493 library_names_spec='$libname${shared_ext} $libname.a'
16494 dynamic_linker='OS/2 ld.exe'
16495 shlibpath_var=LIBPATH
16498 osf3* | osf4* | osf5*)
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 shlibpath_overrides_runpath=yes
16517 hardcode_into_libs=yes
16518 # ldd complains unless libraries are executable
16519 postinstall_cmds='chmod +x $lib'
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes
16528 if test "$with_gnu_ld" = yes; then
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 case $host_vendor in
16541 shlibpath_overrides_runpath=no
16543 export_dynamic_flag_spec='${wl}-Blargedynsym'
16544 runpath_var=LD_RUN_PATH
16552 shlibpath_overrides_runpath=no
16553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16559 if test -d /usr/nec ;then
16561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16562 soname_spec='$libname${shared_ext}.$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16568 version_type=freebsd-elf
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 hardcode_into_libs=yes
16575 if test "$with_gnu_ld" = yes; then
16576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16577 shlibpath_overrides_runpath=no
16579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16580 shlibpath_overrides_runpath=yes
16583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16587 sys_lib_dlsearch_path_spec='/usr/lib'
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 shlibpath_var=LD_LIBRARY_PATH
16601 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16602 echo "${ECHO_T}$dynamic_linker" >&6; }
16603 test "$dynamic_linker" = no && can_build_shared=no
16605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16606 if test "$GCC" = yes; then
16607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16610 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16613 if test -n "$hardcode_libdir_flag_spec" || \
16614 test -n "$runpath_var" || \
16615 test "X$hardcode_automatic" = "Xyes" ; then
16617 # We can hardcode non-existant directories.
16618 if test "$hardcode_direct" != no &&
16619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16620 # have to relink, otherwise we might link with an installed library
16621 # when we should be linking with a yet-to-be-installed one
16622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16623 test "$hardcode_minus_L" != no; then
16624 # Linking always hardcodes the temporary library directory.
16625 hardcode_action=relink
16627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16628 hardcode_action=immediate
16631 # We cannot hardcode anything, or else we can only hardcode existing
16633 hardcode_action=unsupported
16635 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16636 echo "${ECHO_T}$hardcode_action" >&6; }
16638 if test "$hardcode_action" = relink; then
16639 # Fast installation is not supported
16640 enable_fast_install=no
16641 elif test "$shlibpath_overrides_runpath" = yes ||
16642 test "$enable_shared" = no; then
16643 # Fast installation is not necessary
16644 enable_fast_install=needless
16649 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16650 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16651 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16654 { echo "$as_me:$LINENO: result: yes" >&5
16655 echo "${ECHO_T}yes" >&6; }
16657 # FIXME - insert some real tests, host_os isn't really good enough
16660 if test -n "$STRIP" ; then
16661 striplib="$STRIP -x"
16662 { echo "$as_me:$LINENO: result: yes" >&5
16663 echo "${ECHO_T}yes" >&6; }
16665 { echo "$as_me:$LINENO: result: no" >&5
16666 echo "${ECHO_T}no" >&6; }
16670 { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16676 if test "x$enable_dlopen" != xyes; then
16677 enable_dlopen=unknown
16678 enable_dlopen_self=unknown
16679 enable_dlopen_self_static=unknown
16686 lt_cv_dlopen="load_add_on"
16688 lt_cv_dlopen_self=yes
16692 lt_cv_dlopen="LoadLibrary"
16697 lt_cv_dlopen="dlopen"
16702 # if libdl is installed we need to link against it
16703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 ac_check_lib_save_LIBS=$LIBS
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 /* Override any GCC internal prototype to avoid an error.
16718 Use char because int might match the return type of a GCC
16719 builtin and then its argument prototype would still apply. */
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_cv_lib_dl_dlopen=yes
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 ac_cv_lib_dl_dlopen=no
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 LIBS=$ac_check_lib_save_LIBS
16778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16780 if test $ac_cv_lib_dl_dlopen = yes; then
16781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16784 lt_cv_dlopen="dyld"
16786 lt_cv_dlopen_self=yes
16793 { echo "$as_me:$LINENO: checking for shl_load" >&5
16794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16795 if test "${ac_cv_func_shl_load+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define shl_load innocuous_shl_load
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char shl_load (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16814 # include <limits.h>
16816 # include <assert.h>
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined __stub_shl_load || defined __stub___shl_load
16838 return shl_load ();
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>conftest.er1
16852 grep -v '^ *+' conftest.er1 >conftest.err
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_try") 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest$ac_exeext'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_func_shl_load=yes
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_cv_func_shl_load=no
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16888 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16889 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16890 if test $ac_cv_func_shl_load = yes; then
16891 lt_cv_dlopen="shl_load"
16893 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16894 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 ac_check_lib_save_LIBS=$LIBS
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16917 return shl_load ();
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_lib_dld_shl_load=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ac_cv_lib_dld_shl_load=no
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_lib_save_LIBS
16968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16969 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16970 if test $ac_cv_lib_dld_shl_load = yes; then
16971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16973 { echo "$as_me:$LINENO: checking for dlopen" >&5
16974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16975 if test "${ac_cv_func_dlopen+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16978 cat >conftest.$ac_ext <<_ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16986 #define dlopen innocuous_dlopen
16988 /* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char dlopen (); below.
16990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 <limits.h> exists even on freestanding compilers. */
16994 # include <limits.h>
16996 # include <assert.h>
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17008 /* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011 #if defined __stub_dlopen || defined __stub___dlopen
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (ac_try="$ac_link"
17025 case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_func_dlopen=yes
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 ac_cv_func_dlopen=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17068 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17069 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17070 if test $ac_cv_func_dlopen = yes; then
17071 lt_cv_dlopen="dlopen"
17073 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17074 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 ac_check_lib_save_LIBS=$LIBS
17080 cat >conftest.$ac_ext <<_ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17087 /* Override any GCC internal prototype to avoid an error.
17088 Use char because int might match the return type of a GCC
17089 builtin and then its argument prototype would still apply. */
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_link") 2>conftest.er1
17111 grep -v '^ *+' conftest.er1 >conftest.err
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_try") 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_lib_dl_dlopen=yes
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_lib_dl_dlopen=no
17144 rm -f core conftest.err conftest.$ac_objext \
17145 conftest$ac_exeext conftest.$ac_ext
17146 LIBS=$ac_check_lib_save_LIBS
17148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17150 if test $ac_cv_lib_dl_dlopen = yes; then
17151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17153 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17154 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lsvld $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_cv_lib_svld_dlopen=yes
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_svld_dlopen=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17229 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17230 if test $ac_cv_lib_svld_dlopen = yes; then
17231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17233 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17234 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 ac_check_lib_save_LIBS=$LIBS
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17257 return dld_link ();
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_try") 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 ac_cv_lib_dld_dld_link=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_cv_lib_dld_dld_link=no
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17310 if test $ac_cv_lib_dld_dld_link = yes; then
17311 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17332 if test "x$lt_cv_dlopen" != xno; then
17338 case $lt_cv_dlopen in
17340 save_CPPFLAGS="$CPPFLAGS"
17341 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17343 save_LDFLAGS="$LDFLAGS"
17344 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17347 LIBS="$lt_cv_dlopen_libs $LIBS"
17349 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17350 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17351 if test "${lt_cv_dlopen_self+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 if test "$cross_compiling" = yes; then :
17355 lt_cv_dlopen_self=cross
17357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17358 lt_status=$lt_dlunknown
17359 cat > conftest.$ac_ext <<EOF
17360 #line 17360 "configure"
17361 #include "confdefs.h"
17370 # define LT_DLGLOBAL RTLD_GLOBAL
17373 # define LT_DLGLOBAL DL_GLOBAL
17375 # define LT_DLGLOBAL 0
17379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17380 find out it does not work in some platform. */
17381 #ifndef LT_DLLAZY_OR_NOW
17383 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17386 # define LT_DLLAZY_OR_NOW DL_LAZY
17389 # define LT_DLLAZY_OR_NOW RTLD_NOW
17392 # define LT_DLLAZY_OR_NOW DL_NOW
17394 # define LT_DLLAZY_OR_NOW 0
17402 extern "C" void exit (int);
17405 void fnord() { int i=42;}
17408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17409 int status = $lt_dlunknown;
17413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17415 /* dlclose (self); */
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17428 (./conftest; exit; ) >&5 2>/dev/null
17430 case x$lt_status in
17431 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17432 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17433 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17436 # compilation failed
17437 lt_cv_dlopen_self=no
17444 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17445 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17447 if test "x$lt_cv_dlopen_self" = xyes; then
17448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17449 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17450 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17451 if test "${lt_cv_dlopen_self_static+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 if test "$cross_compiling" = yes; then :
17455 lt_cv_dlopen_self_static=cross
17457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17458 lt_status=$lt_dlunknown
17459 cat > conftest.$ac_ext <<EOF
17460 #line 17460 "configure"
17461 #include "confdefs.h"
17470 # define LT_DLGLOBAL RTLD_GLOBAL
17473 # define LT_DLGLOBAL DL_GLOBAL
17475 # define LT_DLGLOBAL 0
17479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17480 find out it does not work in some platform. */
17481 #ifndef LT_DLLAZY_OR_NOW
17483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17486 # define LT_DLLAZY_OR_NOW DL_LAZY
17489 # define LT_DLLAZY_OR_NOW RTLD_NOW
17492 # define LT_DLLAZY_OR_NOW DL_NOW
17494 # define LT_DLLAZY_OR_NOW 0
17502 extern "C" void exit (int);
17505 void fnord() { int i=42;}
17508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17509 int status = $lt_dlunknown;
17513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17515 /* dlclose (self); */
17523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524 (eval $ac_link) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17528 (./conftest; exit; ) >&5 2>/dev/null
17530 case x$lt_status in
17531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17536 # compilation failed
17537 lt_cv_dlopen_self_static=no
17544 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17548 CPPFLAGS="$save_CPPFLAGS"
17549 LDFLAGS="$save_LDFLAGS"
17554 case $lt_cv_dlopen_self in
17555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17556 *) enable_dlopen_self=unknown ;;
17559 case $lt_cv_dlopen_self_static in
17560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17561 *) enable_dlopen_self_static=unknown ;;
17566 # Report which library types will actually be built
17567 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17568 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17569 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17570 echo "${ECHO_T}$can_build_shared" >&6; }
17572 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17573 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17574 test "$can_build_shared" = "no" && enable_shared=no
17576 # On AIX, shared libraries and static libraries use the same namespace, and
17577 # are all built from PIC.
17580 test "$enable_shared" = yes && enable_static=no
17581 if test -n "$RANLIB"; then
17582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17583 postinstall_cmds='$RANLIB $lib'
17588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17589 test "$enable_shared" = yes && enable_static=no
17593 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17594 echo "${ECHO_T}$enable_shared" >&6; }
17596 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17597 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17598 # Make sure either enable_shared or enable_static is yes.
17599 test "$enable_shared" = yes || enable_static=yes
17600 { echo "$as_me:$LINENO: result: $enable_static" >&5
17601 echo "${ECHO_T}$enable_static" >&6; }
17603 # The else clause should only fire when bootstrapping the
17604 # libtool distribution, otherwise you forgot to ship ltmain.sh
17605 # with your package, and you will get complaints that there are
17606 # no rules to generate ltmain.sh.
17607 if test -f "$ltmain"; then
17608 # See if we are running on zsh, and set the options which allow our commands through
17609 # without removal of \ escapes.
17610 if test -n "${ZSH_VERSION+set}" ; then
17611 setopt NO_GLOB_SUBST
17613 # Now quote all the things that may contain metacharacters while being
17614 # careful not to overquote the AC_SUBSTed values. We take copies of the
17615 # variables and quote the copies for generation of the libtool script.
17616 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17620 deplibs_check_method reload_flag reload_cmds need_locks \
17621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17622 lt_cv_sys_global_symbol_to_c_name_address \
17623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17624 old_postinstall_cmds old_postuninstall_cmds \
17628 lt_prog_compiler_wl \
17629 lt_prog_compiler_pic \
17630 lt_prog_compiler_static \
17631 lt_prog_compiler_no_builtin_flag \
17632 export_dynamic_flag_spec \
17633 thread_safe_flag_spec \
17634 whole_archive_flag_spec \
17635 enable_shared_with_static_runtimes \
17637 old_archive_from_new_cmds \
17642 compiler_lib_search_path \
17644 archive_expsym_cmds \
17646 postuninstall_cmds \
17647 old_archive_from_expsyms_cmds \
17648 allow_undefined_flag \
17649 no_undefined_flag \
17650 export_symbols_cmds \
17651 hardcode_libdir_flag_spec \
17652 hardcode_libdir_flag_spec_ld \
17653 hardcode_libdir_separator \
17654 hardcode_automatic \
17656 module_expsym_cmds \
17657 lt_cv_prog_compiler_c_o \
17659 include_expsyms; do
17662 old_archive_cmds | \
17663 old_archive_from_new_cmds | \
17665 archive_expsym_cmds | \
17667 module_expsym_cmds | \
17668 old_archive_from_expsyms_cmds | \
17669 export_symbols_cmds | \
17670 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17671 postinstall_cmds | postuninstall_cmds | \
17672 old_postinstall_cmds | old_postuninstall_cmds | \
17673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17674 # Double-quote double-evaled strings.
17675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17684 *'\$0 --fallback-echo"')
17685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17689 cfgfile="${ofile}T"
17690 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17692 { echo "$as_me:$LINENO: creating $ofile" >&5
17693 echo "$as_me: creating $ofile" >&6;}
17695 cat <<__EOF__ >> "$cfgfile"
17698 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17703 # Free Software Foundation, Inc.
17705 # This file is part of GNU Libtool:
17706 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17708 # This program is free software; you can redistribute it and/or modify
17709 # it under the terms of the GNU General Public License as published by
17710 # the Free Software Foundation; either version 2 of the License, or
17711 # (at your option) any later version.
17713 # This program is distributed in the hope that it will be useful, but
17714 # WITHOUT ANY WARRANTY; without even the implied warranty of
17715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17716 # General Public License for more details.
17718 # You should have received a copy of the GNU General Public License
17719 # along with this program; if not, write to the Free Software
17720 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17722 # As a special exception to the GNU General Public License, if you
17723 # distribute this file as part of a program that contains a
17724 # configuration script generated by Autoconf, you may include it under
17725 # the same distribution terms that you use for the rest of that program.
17727 # A sed program that does not truncate output.
17730 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17731 Xsed="$SED -e 1s/^X//"
17733 # The HP-UX ksh and POSIX shell print the target directory to stdout
17734 # if CDPATH is set.
17735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17737 # The names of the tagged configurations supported by this script.
17740 # ### BEGIN LIBTOOL CONFIG
17742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17744 # Shell to use when invoking shell scripts.
17747 # Whether or not to build shared libraries.
17748 build_libtool_libs=$enable_shared
17750 # Whether or not to build static libraries.
17751 build_old_libs=$enable_static
17753 # Whether or not to add -lc for building shared libraries.
17754 build_libtool_need_lc=$archive_cmds_need_lc
17756 # Whether or not to disallow shared libs when runtime libs are static
17757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17759 # Whether or not to optimize for fast installation.
17760 fast_install=$enable_fast_install
17763 host_alias=$host_alias
17767 # The build system.
17768 build_alias=$build_alias
17772 # An echo program that does not interpret backslashes.
17777 AR_FLAGS=$lt_AR_FLAGS
17782 # LTCC compiler flags.
17783 LTCFLAGS=$lt_LTCFLAGS
17785 # A language-specific compiler.
17788 # Is the compiler the GNU C compiler?
17794 # The linker used to build libraries.
17797 # Whether we need hard or soft links.
17800 # A BSD-compatible nm program.
17803 # A symbol stripping program
17806 # Used to examine libraries when file_magic_cmd begins "file"
17807 MAGIC_CMD=$MAGIC_CMD
17809 # Used on cygwin: DLL creation program.
17812 # Used on cygwin: object dumper.
17815 # Used on cygwin: assembler.
17818 # The name of the directory that contains temporary libtool files.
17821 # How to create reloadable object files.
17822 reload_flag=$lt_reload_flag
17823 reload_cmds=$lt_reload_cmds
17825 # How to pass a linker flag through the compiler.
17826 wl=$lt_lt_prog_compiler_wl
17828 # Object file suffix (normally "o").
17829 objext="$ac_objext"
17831 # Old archive suffix (normally "a").
17834 # Shared library suffix (normally ".so").
17835 shrext_cmds='$shrext_cmds'
17837 # Executable file suffix (normally "").
17840 # Additional compiler flags for building library objects.
17841 pic_flag=$lt_lt_prog_compiler_pic
17844 # What is the maximum length of a command?
17845 max_cmd_len=$lt_cv_sys_max_cmd_len
17847 # Does compiler simultaneously support -c and -o options?
17848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17850 # Must we lock files when doing compilation?
17851 need_locks=$lt_need_locks
17853 # Do we need the lib prefix for modules?
17854 need_lib_prefix=$need_lib_prefix
17856 # Do we need a version for libraries?
17857 need_version=$need_version
17859 # Whether dlopen is supported.
17860 dlopen_support=$enable_dlopen
17862 # Whether dlopen of programs is supported.
17863 dlopen_self=$enable_dlopen_self
17865 # Whether dlopen of statically linked programs is supported.
17866 dlopen_self_static=$enable_dlopen_self_static
17868 # Compiler flag to prevent dynamic linking.
17869 link_static_flag=$lt_lt_prog_compiler_static
17871 # Compiler flag to turn off builtin functions.
17872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17874 # Compiler flag to allow reflexive dlopens.
17875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17877 # Compiler flag to generate shared objects directly from archives.
17878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17880 # Compiler flag to generate thread-safe objects.
17881 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17883 # Library versioning type.
17884 version_type=$version_type
17886 # Format of library name prefix.
17887 libname_spec=$lt_libname_spec
17889 # List of archive names. First name is the real one, the rest are links.
17890 # The last name is the one that the linker finds with -lNAME.
17891 library_names_spec=$lt_library_names_spec
17893 # The coded name of the library, if different from the real name.
17894 soname_spec=$lt_soname_spec
17896 # Commands used to build and install an old-style archive.
17898 old_archive_cmds=$lt_old_archive_cmds
17899 old_postinstall_cmds=$lt_old_postinstall_cmds
17900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17902 # Create an old-style archive from a shared archive.
17903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17905 # Create a temporary old-style archive to link instead of a shared archive.
17906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17908 # Commands used to build and install a shared archive.
17909 archive_cmds=$lt_archive_cmds
17910 archive_expsym_cmds=$lt_archive_expsym_cmds
17911 postinstall_cmds=$lt_postinstall_cmds
17912 postuninstall_cmds=$lt_postuninstall_cmds
17914 # Commands used to build a loadable module (assumed same as above if empty)
17915 module_cmds=$lt_module_cmds
17916 module_expsym_cmds=$lt_module_expsym_cmds
17918 # Commands to strip libraries.
17919 old_striplib=$lt_old_striplib
17920 striplib=$lt_striplib
17922 # Dependencies to place before the objects being linked to create a
17924 predep_objects=$lt_predep_objects
17926 # Dependencies to place after the objects being linked to create a
17928 postdep_objects=$lt_postdep_objects
17930 # Dependencies to place before the objects being linked to create a
17932 predeps=$lt_predeps
17934 # Dependencies to place after the objects being linked to create a
17936 postdeps=$lt_postdeps
17938 # The library search path used internally by the compiler when linking
17939 # a shared library.
17940 compiler_lib_search_path=$lt_compiler_lib_search_path
17942 # Method to check whether dependent libraries are shared objects.
17943 deplibs_check_method=$lt_deplibs_check_method
17945 # Command to use when deplibs_check_method == file_magic.
17946 file_magic_cmd=$lt_file_magic_cmd
17948 # Flag that allows shared libraries with undefined symbols to be built.
17949 allow_undefined_flag=$lt_allow_undefined_flag
17951 # Flag that forces no undefined symbols.
17952 no_undefined_flag=$lt_no_undefined_flag
17954 # Commands used to finish a libtool library installation in a directory.
17955 finish_cmds=$lt_finish_cmds
17957 # Same as above, but a single script fragment to be evaled but not shown.
17958 finish_eval=$lt_finish_eval
17960 # Take the output of nm and produce a listing of raw symbols and C names.
17961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17963 # Transform the output of nm in a proper C declaration
17964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17966 # Transform the output of nm in a C name address pair
17967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17969 # This is the shared library runtime path variable.
17970 runpath_var=$runpath_var
17972 # This is the shared library path variable.
17973 shlibpath_var=$shlibpath_var
17975 # Is shlibpath searched before the hard-coded library search path?
17976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17978 # How to hardcode a shared library path into an executable.
17979 hardcode_action=$hardcode_action
17981 # Whether we should hardcode library paths into libraries.
17982 hardcode_into_libs=$hardcode_into_libs
17984 # Flag to hardcode \$libdir into a binary during linking.
17985 # This must work even if \$libdir does not exist.
17986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17988 # If ld is used when linking, flag to hardcode \$libdir into
17989 # a binary during linking. This must work even if \$libdir does
17991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17993 # Whether we need a single -rpath flag with a separated argument.
17994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17997 # resulting binary.
17998 hardcode_direct=$hardcode_direct
18000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18001 # resulting binary.
18002 hardcode_minus_L=$hardcode_minus_L
18004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18005 # the resulting binary.
18006 hardcode_shlibpath_var=$hardcode_shlibpath_var
18008 # Set to yes if building a shared library automatically hardcodes DIR into the library
18009 # and all subsequent libraries and executables linked against it.
18010 hardcode_automatic=$hardcode_automatic
18012 # Variables whose values should be saved in libtool wrapper scripts and
18013 # restored at relink time.
18014 variables_saved_for_relink="$variables_saved_for_relink"
18016 # Whether libtool must link a program against all its dependency libraries.
18017 link_all_deplibs=$link_all_deplibs
18019 # Compile-time system search path for libraries
18020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18022 # Run-time system search path for libraries
18023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18025 # Fix the shell variable \$srcfile for the compiler.
18026 fix_srcfile_path="$fix_srcfile_path"
18028 # Set to yes if exported symbols are required.
18029 always_export_symbols=$always_export_symbols
18031 # The commands to list exported symbols.
18032 export_symbols_cmds=$lt_export_symbols_cmds
18034 # The commands to extract the exported symbol list from a shared archive.
18035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18037 # Symbols that should not be listed in the preloaded symbols.
18038 exclude_expsyms=$lt_exclude_expsyms
18040 # Symbols that must always be exported.
18041 include_expsyms=$lt_include_expsyms
18043 # ### END LIBTOOL CONFIG
18050 cat <<\EOF >> "$cfgfile"
18052 # AIX sometimes has problems with the GCC collect2 program. For some
18053 # reason, if we set the COLLECT_NAMES environment variable, the problems
18054 # vanish in a puff of smoke.
18055 if test "X${COLLECT_NAMES+set}" != Xset; then
18057 export COLLECT_NAMES
18063 # We use sed instead of cat because bash on DJGPP gets confused if
18064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18065 # text mode, it properly converts lines to CR/LF. This bash problem
18066 # is reportedly fixed, but why not run on old versions too?
18067 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18069 mv -f "$cfgfile" "$ofile" || \
18070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18074 # If there is no Makefile yet, we rely on a make rule to execute
18075 # `config.status --recheck' to rerun these tests and create the
18076 # libtool script then.
18077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18078 if test -f "$ltmain_in"; then
18079 test -f Makefile && make "$ltmain"
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18093 # Check whether --with-tags was given.
18094 if test "${with_tags+set}" = set; then
18095 withval=$with_tags; tagnames="$withval"
18099 if test -f "$ltmain" && test -n "$tagnames"; then
18100 if test ! -f "${ofile}"; then
18101 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18102 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18105 if test -z "$LTCC"; then
18106 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18107 if test -z "$LTCC"; then
18108 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18109 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18111 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18112 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18115 if test -z "$LTCFLAGS"; then
18116 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18119 # Extract list of available tagged configurations in $ofile.
18120 # Note that this assumes the entire list is on one line.
18121 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18124 for tagname in $tagnames; do
18126 # Check whether tagname contains only valid characters
18127 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18129 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18130 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18131 { (exit 1); exit 1; }; }
18135 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18137 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18138 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18139 { (exit 1); exit 1; }; }
18142 # Update the list of available tags.
18143 if test -n "$tagname"; then
18144 echo appending configuration tag \"$tagname\" to $ofile
18148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18150 (test "X$CXX" != "Xg++"))) ; then
18152 ac_cpp='$CXXCPP $CPPFLAGS'
18153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18160 archive_cmds_need_lc_CXX=no
18161 allow_undefined_flag_CXX=
18162 always_export_symbols_CXX=no
18163 archive_expsym_cmds_CXX=
18164 export_dynamic_flag_spec_CXX=
18165 hardcode_direct_CXX=no
18166 hardcode_libdir_flag_spec_CXX=
18167 hardcode_libdir_flag_spec_ld_CXX=
18168 hardcode_libdir_separator_CXX=
18169 hardcode_minus_L_CXX=no
18170 hardcode_shlibpath_var_CXX=unsupported
18171 hardcode_automatic_CXX=no
18173 module_expsym_cmds_CXX=
18174 link_all_deplibs_CXX=unknown
18175 old_archive_cmds_CXX=$old_archive_cmds
18176 no_undefined_flag_CXX=
18177 whole_archive_flag_spec_CXX=
18178 enable_shared_with_static_runtimes_CXX=no
18180 # Dependencies to place before and after the object being linked:
18181 predep_objects_CXX=
18182 postdep_objects_CXX=
18185 compiler_lib_search_path_CXX=
18187 # Source file extension for C++ test sources.
18190 # Object file extension for compiled C++ test sources.
18194 # Code to be used in simple compile tests
18195 lt_simple_compile_test_code="int some_variable = 0;\n"
18197 # Code to be used in simple link tests
18198 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18202 # If no C compiler was specified, use CC.
18205 # If no C compiler flags were specified, use CFLAGS.
18206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18208 # Allow CC to be a program name with arguments.
18212 # save warnings/boilerplate of simple test code
18213 ac_outfile=conftest.$ac_objext
18214 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216 _lt_compiler_boilerplate=`cat conftest.err`
18219 ac_outfile=conftest.$ac_objext
18220 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18222 _lt_linker_boilerplate=`cat conftest.err`
18226 # Allow CC to be a program name with arguments.
18231 lt_save_with_gnu_ld=$with_gnu_ld
18232 lt_save_path_LD=$lt_cv_path_LD
18233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18234 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18236 $as_unset lt_cv_prog_gnu_ld
18238 if test -n "${lt_cv_path_LDCXX+set}"; then
18239 lt_cv_path_LD=$lt_cv_path_LDCXX
18241 $as_unset lt_cv_path_LD
18243 test -z "${LDCXX+set}" || LD=$LDCXX
18247 for cc_temp in $compiler""; do
18249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18258 # We don't want -fno-exception wen compiling C++ code, so set the
18259 # no_builtin_flag separately
18260 if test "$GXX" = yes; then
18261 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18263 lt_prog_compiler_no_builtin_flag_CXX=
18266 if test "$GXX" = yes; then
18267 # Set up default GNU C++ configuration
18270 # Check whether --with-gnu-ld was given.
18271 if test "${with_gnu_ld+set}" = set; then
18272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18278 if test "$GCC" = yes; then
18279 # Check if gcc -print-prog-name=ld gives a path.
18280 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18284 # gcc leaves a trailing carriage return which upsets mingw
18285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18290 # Accept absolute paths.
18292 re_direlt='/[^/][^/]*/\.\./'
18293 # Canonicalize the pathname of ld
18294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18298 test -z "$LD" && LD="$ac_prog"
18301 # If it fails, then pretend we aren't using GCC.
18305 # If it is relative, then search for the first ld in PATH.
18306 with_gnu_ld=unknown
18309 elif test "$with_gnu_ld" = yes; then
18310 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18313 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18316 if test "${lt_cv_path_LD+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 if test -z "$LD"; then
18320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18321 for ac_dir in $PATH; do
18323 test -z "$ac_dir" && ac_dir=.
18324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18325 lt_cv_path_LD="$ac_dir/$ac_prog"
18326 # Check to see if the program is GNU ld. I'd rather use --version,
18327 # but apparently some variants of GNU ld only accept -v.
18328 # Break only if it was the GNU/non-GNU ld that we prefer.
18329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18330 *GNU* | *'with BFD'*)
18331 test "$with_gnu_ld" != no && break
18334 test "$with_gnu_ld" != yes && break
18341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18345 LD="$lt_cv_path_LD"
18346 if test -n "$LD"; then
18347 { echo "$as_me:$LINENO: result: $LD" >&5
18348 echo "${ECHO_T}$LD" >&6; }
18350 { echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6; }
18353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18355 { (exit 1); exit 1; }; }
18356 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18362 case `$LD -v 2>&1 </dev/null` in
18363 *GNU* | *'with BFD'*)
18364 lt_cv_prog_gnu_ld=yes
18367 lt_cv_prog_gnu_ld=no
18371 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18373 with_gnu_ld=$lt_cv_prog_gnu_ld
18377 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18378 # archiving commands below assume that GNU ld is being used.
18379 if test "$with_gnu_ld" = yes; then
18380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381 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'
18383 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18386 # If archive_cmds runs LD, not CC, wlarc should be empty
18387 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18388 # investigate it a little bit more. (MM)
18391 # ancient GNU ld didn't support --whole-archive et. al.
18392 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18393 grep 'no-whole-archive' > /dev/null; then
18394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18396 whole_archive_flag_spec_CXX=
18402 # A generic and very simple default shared library creation
18403 # command for GNU C++ for the case where it uses the native
18404 # linker, instead of GNU ld. If possible, this setting should
18405 # overridden to take advantage of the native linker features on
18406 # the platform it is being used on.
18407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18410 # Commands to make compiler produce verbose output that lists
18411 # what "hidden" libraries, object files and flags are used when
18412 # linking a shared library.
18413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18421 # PORTME: fill in a description of your system's C++ link characteristics
18422 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18423 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18427 # FIXME: insert proper C++ library support
18431 if test "$host_cpu" = ia64; then
18432 # On IA64, the linker does run time linking by default, so we don't
18433 # have to do anything special.
18434 aix_use_runtimelinking=no
18435 exp_sym_flag='-Bexport'
18438 aix_use_runtimelinking=no
18440 # Test if we are trying to use run time linking or normal
18441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18442 # need to do runtime linking.
18443 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18444 for ld_flag in $LDFLAGS; do
18447 aix_use_runtimelinking=yes
18455 exp_sym_flag='-bexport'
18456 no_entry_flag='-bnoentry'
18459 # When large executables or shared objects are built, AIX ld can
18460 # have problems creating the table of contents. If linking a library
18461 # or program results in "error TOC overflow" add -mminimal-toc to
18462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18465 archive_cmds_CXX=''
18466 hardcode_direct_CXX=yes
18467 hardcode_libdir_separator_CXX=':'
18468 link_all_deplibs_CXX=yes
18470 if test "$GXX" = yes; then
18471 case $host_os in aix4.[012]|aix4.[012].*)
18472 # We only want to do this on AIX 4.2 and lower, the check
18473 # below for broken collect2 doesn't work under 4.3+
18474 collect2name=`${CC} -print-prog-name=collect2`
18475 if test -f "$collect2name" && \
18476 strings "$collect2name" | grep resolve_lib_name >/dev/null
18478 # We have reworked collect2
18479 hardcode_direct_CXX=yes
18481 # We have old collect2
18482 hardcode_direct_CXX=unsupported
18483 # It fails to find uninstalled libraries when the uninstalled
18484 # path is not listed in the libpath. Setting hardcode_minus_L
18485 # to unsupported forces relinking
18486 hardcode_minus_L_CXX=yes
18487 hardcode_libdir_flag_spec_CXX='-L$libdir'
18488 hardcode_libdir_separator_CXX=
18492 shared_flag='-shared'
18493 if test "$aix_use_runtimelinking" = yes; then
18494 shared_flag="$shared_flag "'${wl}-G'
18498 if test "$host_cpu" = ia64; then
18499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18500 # chokes on -Wl,-G. The following line is correct:
18503 if test "$aix_use_runtimelinking" = yes; then
18504 shared_flag='${wl}-G'
18506 shared_flag='${wl}-bM:SRE'
18511 # It seems that -bexpall does not export symbols beginning with
18512 # underscore (_), so it is better to generate a list of symbols to export.
18513 always_export_symbols_CXX=yes
18514 if test "$aix_use_runtimelinking" = yes; then
18515 # Warning - without using the other runtime loading flags (-brtl),
18516 # -berok will link without error, but may produce a broken library.
18517 allow_undefined_flag_CXX='-berok'
18518 # Determine the default libpath from the value encoded in an empty executable.
18519 cat >conftest.$ac_ext <<_ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18571 # Check for a 64-bit object if we didn't find anything.
18572 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; }
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18581 rm -f core conftest.err conftest.$ac_objext \
18582 conftest$ac_exeext conftest.$ac_ext
18583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18585 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18587 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"
18589 if test "$host_cpu" = ia64; then
18590 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18591 allow_undefined_flag_CXX="-z nodefs"
18592 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"
18594 # Determine the default libpath from the value encoded in an empty executable.
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18647 # Check for a 64-bit object if we didn't find anything.
18648 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; }
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18657 rm -f core conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18661 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18662 # Warning - without using the other run time loading flags,
18663 # -berok will link without error, but may produce a broken library.
18664 no_undefined_flag_CXX=' ${wl}-bernotok'
18665 allow_undefined_flag_CXX=' ${wl}-berok'
18666 # Exported symbols can be pulled into shared objects from archives
18667 whole_archive_flag_spec_CXX='$convenience'
18668 archive_cmds_need_lc_CXX=yes
18669 # This is similar to how AIX traditionally builds its shared libraries.
18670 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'
18676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18677 allow_undefined_flag_CXX=unsupported
18678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18679 # support --undefined. This deserves some investigation. FIXME
18680 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18687 case $cc_basename in
18689 # FIXME: insert proper C++ library support
18695 cygwin* | mingw* | pw32*)
18696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18697 # as there is no search path for DLLs.
18698 hardcode_libdir_flag_spec_CXX='-L$libdir'
18699 allow_undefined_flag_CXX=unsupported
18700 always_export_symbols_CXX=no
18701 enable_shared_with_static_runtimes_CXX=yes
18703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18704 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'
18705 # If the export-symbols file already is a .def file (1st line
18706 # is EXPORTS), use it as is; otherwise, prepend...
18707 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18708 cp $export_symbols $output_objdir/$soname.def;
18710 echo EXPORTS > $output_objdir/$soname.def;
18711 cat $export_symbols >> $output_objdir/$soname.def;
18713 $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'
18718 darwin* | rhapsody*)
18720 rhapsody* | darwin1.[012])
18721 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18724 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18725 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18727 case ${MACOSX_DEPLOYMENT_TARGET} in
18729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18732 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18738 archive_cmds_need_lc_CXX=no
18739 hardcode_direct_CXX=no
18740 hardcode_automatic_CXX=yes
18741 hardcode_shlibpath_var_CXX=unsupported
18742 whole_archive_flag_spec_CXX=''
18743 link_all_deplibs_CXX=yes
18745 if test "$GXX" = yes ; then
18746 lt_int_apple_cc_single_mod=no
18747 output_verbose_link_cmd='echo'
18748 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18749 lt_int_apple_cc_single_mod=yes
18751 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18752 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18754 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'
18756 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18758 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18759 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}'
18761 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}'
18763 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}'
18765 case $cc_basename in
18767 output_verbose_link_cmd='echo'
18768 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'
18769 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18771 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}'
18772 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}'
18782 case $cc_basename in
18784 # FIXME: insert proper C++ library support
18788 # Green Hills C++ Compiler
18789 # FIXME: insert proper C++ library support
18793 # FIXME: insert proper C++ library support
18799 # C++ shared libraries reported to be fairly broken before switch to ELF
18803 archive_cmds_need_lc_CXX=no
18805 freebsd* | kfreebsd*-gnu | dragonfly*)
18806 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18814 hardcode_libdir_separator_CXX=:
18815 export_dynamic_flag_spec_CXX='${wl}-E'
18816 hardcode_direct_CXX=yes
18817 hardcode_minus_L_CXX=yes # Not in the search PATH,
18818 # but as the default
18819 # location of the library.
18821 case $cc_basename in
18823 # FIXME: insert proper C++ library support
18827 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'
18828 # Commands to make compiler produce verbose output that lists
18829 # what "hidden" libraries, object files and flags are used when
18830 # linking a shared library.
18832 # There doesn't appear to be a way to prevent this compiler from
18833 # explicitly linking system object files so we need to strip them
18834 # from the output so that they don't get included in the library
18836 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'
18839 if test "$GXX" = yes; then
18840 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'
18842 # FIXME: insert proper C++ library support
18849 if test $with_gnu_ld = no; then
18850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18851 hardcode_libdir_separator_CXX=:
18855 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18858 export_dynamic_flag_spec_CXX='${wl}-E'
18864 hardcode_direct_CXX=no
18865 hardcode_shlibpath_var_CXX=no
18868 hardcode_direct_CXX=yes
18869 hardcode_minus_L_CXX=yes # Not in the search PATH,
18870 # but as the default
18871 # location of the library.
18875 case $cc_basename in
18877 # FIXME: insert proper C++ library support
18883 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18886 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18892 # Commands to make compiler produce verbose output that lists
18893 # what "hidden" libraries, object files and flags are used when
18894 # linking a shared library.
18896 # There doesn't appear to be a way to prevent this compiler from
18897 # explicitly linking system object files so we need to strip them
18898 # from the output so that they don't get included in the library
18900 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'
18903 if test "$GXX" = yes; then
18904 if test $with_gnu_ld = no; then
18907 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18910 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18913 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'
18918 # FIXME: insert proper C++ library support
18925 hardcode_direct_CXX=no
18926 hardcode_shlibpath_var_CXX=no
18927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18928 export_dynamic_flag_spec_CXX='${wl}-E'
18929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18930 # Instead, shared libraries are loaded at an image base (0x10000000 by
18931 # default) and relocated if they conflict, which is a slow very memory
18932 # consuming and fragmenting process. To avoid this, we pick a random,
18933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18935 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'
18936 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'
18939 case $cc_basename in
18942 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'
18944 # Archives containing C++ object files must be created using
18945 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18946 # necessary to make sure instantiated templates are included
18948 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18951 if test "$GXX" = yes; then
18952 if test "$with_gnu_ld" = no; then
18953 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'
18955 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'
18958 link_all_deplibs_CXX=yes
18961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18962 hardcode_libdir_separator_CXX=:
18965 case $cc_basename in
18967 # Kuck and Associates, Inc. (KAI) C++ Compiler
18969 # KCC will only create a shared library if the output file
18970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18971 # to its proper name (with version) after linking.
18972 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'
18973 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'
18974 # Commands to make compiler produce verbose output that lists
18975 # what "hidden" libraries, object files and flags are used when
18976 # linking a shared library.
18978 # There doesn't appear to be a way to prevent this compiler from
18979 # explicitly linking system object files so we need to strip them
18980 # from the output so that they don't get included in the library
18982 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'
18984 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18987 # Archives containing C++ object files must be created using
18988 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18989 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18994 # version 8.0 and above of icpc choke on multiply defined symbols
18995 # if we add $predep_objects and $postdep_objects, however 7.1 and
18996 # earlier do not add the objects themselves.
18997 case `$CC -V 2>&1` in
18999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19000 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'
19002 *) # Version 8.0 or newer
19005 ia64*) tmp_idyn=' -i_dynamic';;
19007 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19008 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'
19011 archive_cmds_need_lc_CXX=no
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19014 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19017 # Portland Group C++ compiler
19018 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19019 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'
19021 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19023 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'
19027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028 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'
19030 runpath_var=LD_RUN_PATH
19031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19032 hardcode_libdir_separator_CXX=:
19034 # Commands to make compiler produce verbose output that lists
19035 # what "hidden" libraries, object files and flags are used when
19036 # linking a shared library.
19038 # There doesn't appear to be a way to prevent this compiler from
19039 # explicitly linking system object files so we need to strip them
19040 # from the output so that they don't get included in the library
19042 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'
19047 # FIXME: insert proper C++ library support
19051 # FIXME: insert proper C++ library support
19055 case $cc_basename in
19057 # FIXME: insert proper C++ library support
19061 # FIXME: insert proper C++ library support
19067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19070 hardcode_libdir_flag_spec_CXX='-R$libdir'
19071 hardcode_direct_CXX=yes
19072 hardcode_shlibpath_var_CXX=no
19074 # Workaround some broken pre-1.5 toolchains
19075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19078 # C++ shared libraries are fairly broken
19082 hardcode_direct_CXX=yes
19083 hardcode_shlibpath_var_CXX=no
19084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19087 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19088 export_dynamic_flag_spec_CXX='${wl}-E'
19089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19091 output_verbose_link_cmd='echo'
19094 case $cc_basename in
19096 # Kuck and Associates, Inc. (KAI) C++ Compiler
19098 # KCC will only create a shared library if the output file
19099 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19100 # to its proper name (with version) after linking.
19101 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'
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19104 hardcode_libdir_separator_CXX=:
19106 # Archives containing C++ object files must be created using
19107 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19108 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19112 # Rational C++ 2.4.1
19113 # FIXME: insert proper C++ library support
19117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19118 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'
19120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19121 hardcode_libdir_separator_CXX=:
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19131 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'
19134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19136 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'
19138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19139 hardcode_libdir_separator_CXX=:
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19147 # FIXME: insert proper C++ library support
19154 case $cc_basename in
19156 # Kuck and Associates, Inc. (KAI) C++ Compiler
19158 # KCC will only create a shared library if the output file
19159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19160 # to its proper name (with version) after linking.
19161 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'
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164 hardcode_libdir_separator_CXX=:
19166 # Archives containing C++ object files must be created using
19167 # the KAI C++ compiler.
19168 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19171 # Rational C++ 2.4.1
19172 # FIXME: insert proper C++ library support
19176 allow_undefined_flag_CXX=' -expect_unresolved \*'
19177 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'
19178 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19179 echo "-hidden">> $lib.exp~
19180 $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~
19183 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19184 hardcode_libdir_separator_CXX=:
19186 # Commands to make compiler produce verbose output that lists
19187 # what "hidden" libraries, object files and flags are used when
19188 # linking a shared library.
19190 # There doesn't appear to be a way to prevent this compiler from
19191 # explicitly linking system object files so we need to strip them
19192 # from the output so that they don't get included in the library
19194 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'
19197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19198 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19199 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'
19201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19202 hardcode_libdir_separator_CXX=:
19204 # Commands to make compiler produce verbose output that lists
19205 # what "hidden" libraries, object files and flags are used when
19206 # linking a shared library.
19207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19210 # FIXME: insert proper C++ library support
19217 # FIXME: insert proper C++ library support
19221 case $cc_basename in
19224 # FIXME: insert proper C++ library support
19229 # FIXME: insert proper C++ library support
19233 # FIXME: insert proper C++ library support
19239 case $cc_basename in
19241 # Sun C++ 4.2, 5.x and Centerline C++
19242 archive_cmds_need_lc_CXX=yes
19243 no_undefined_flag_CXX=' -zdefs'
19244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246 $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'
19248 hardcode_libdir_flag_spec_CXX='-R$libdir'
19249 hardcode_shlibpath_var_CXX=no
19251 solaris2.[0-5] | solaris2.[0-5].*) ;;
19253 # The C++ compiler is used as linker so we must use $wl
19254 # flag to pass the commands to the underlying system
19255 # linker. We must also pass each convience library through
19256 # to the system linker between allextract/defaultextract.
19257 # The C++ compiler will combine linker options so we
19258 # cannot just pass the convience library names through
19260 # Supported since Solaris 2.6 (maybe 2.5.1?)
19261 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'
19264 link_all_deplibs_CXX=yes
19266 output_verbose_link_cmd='echo'
19268 # Archives containing C++ object files must be created using
19269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19270 # necessary to make sure instantiated templates are included
19272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19275 # Green Hills C++ Compiler
19276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19278 # The C++ compiler must be used to create the archive.
19279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19282 # GNU C++ compiler with Solaris linker
19283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19285 if $CC --version | grep -v '^2\.7' > /dev/null; then
19286 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19287 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19290 # Commands to make compiler produce verbose output that lists
19291 # what "hidden" libraries, object files and flags are used when
19292 # linking a shared library.
19293 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19298 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19301 # Commands to make compiler produce verbose output that lists
19302 # what "hidden" libraries, object files and flags are used when
19303 # linking a shared library.
19304 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19313 no_undefined_flag_CXX='${wl}-z,text'
19314 archive_cmds_need_lc_CXX=no
19315 hardcode_shlibpath_var_CXX=no
19316 runpath_var='LD_RUN_PATH'
19318 case $cc_basename in
19320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 sysv5* | sco3.2v5* | sco5v6*)
19330 # Note: We can NOT use -z defs as we might desire, because we do not
19331 # link with -lc, and that would cause any symbols used from libc to
19332 # always be unresolved, which means just about no library would
19333 # ever link correctly. If we're not using GNU ld we use -z text
19334 # though, which does catch some bad symbols but isn't as heavy-handed
19336 # For security reasons, it is highly recommended that you always
19337 # use absolute paths for naming shared libraries, and exclude the
19338 # DT_RUNPATH tag from executables and libraries. But doing so
19339 # requires that you compile everything twice, which is a pain.
19340 # So that behaviour is only enabled if SCOABSPATH is set to a
19341 # non-empty value in the environment. Most likely only useful for
19342 # creating official distributions of packages.
19343 # This is a hack until libtool officially supports absolute path
19344 # names for shared libraries.
19345 no_undefined_flag_CXX='${wl}-z,text'
19346 allow_undefined_flag_CXX='${wl}-z,nodefs'
19347 archive_cmds_need_lc_CXX=no
19348 hardcode_shlibpath_var_CXX=no
19349 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19350 hardcode_libdir_separator_CXX=':'
19351 link_all_deplibs_CXX=yes
19352 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19353 runpath_var='LD_RUN_PATH'
19355 case $cc_basename in
19357 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19358 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19361 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19367 case $cc_basename in
19369 # NonStop-UX NCC 3.20
19370 # FIXME: insert proper C++ library support
19374 # FIXME: insert proper C++ library support
19380 # FIXME: insert proper C++ library support
19384 # FIXME: insert proper C++ library support
19388 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19389 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19390 test "$ld_shlibs_CXX" = no && can_build_shared=no
19396 cat > conftest.$ac_ext <<EOF
19400 Foo (void) { a = 0; }
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407 (eval $ac_compile) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; then
19411 # Parse the compiler output and extract the necessary
19412 # objects, libraries and library flags.
19414 # Sentinel used to keep track of whether or not we are before
19415 # the conftest object file.
19416 pre_test_object_deps_done=no
19418 # The `*' in the case matches for architectures that use `case' in
19419 # $output_verbose_cmd can trigger glob expansion during the loop
19420 # eval without this substitution.
19421 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19423 for p in `eval $output_verbose_link_cmd`; do
19427 # Some compilers place space between "-{L,R}" and the path.
19428 # Remove the space.
19429 if test $p = "-L" \
19430 || test $p = "-R"; then
19437 if test "$pre_test_object_deps_done" = no; then
19440 # Internal compiler library paths should come after those
19441 # provided the user. The postdeps already come after the
19442 # user supplied libs so there is no need to process them.
19443 if test -z "$compiler_lib_search_path_CXX"; then
19444 compiler_lib_search_path_CXX="${prev}${p}"
19446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19449 # The "-l" case would never come before the object being
19450 # linked, so don't bother handling this case.
19453 if test -z "$postdeps_CXX"; then
19454 postdeps_CXX="${prev}${p}"
19456 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19462 # This assumes that the test object file only shows up
19463 # once in the compiler output.
19464 if test "$p" = "conftest.$objext"; then
19465 pre_test_object_deps_done=yes
19469 if test "$pre_test_object_deps_done" = no; then
19470 if test -z "$predep_objects_CXX"; then
19471 predep_objects_CXX="$p"
19473 predep_objects_CXX="$predep_objects_CXX $p"
19476 if test -z "$postdep_objects_CXX"; then
19477 postdep_objects_CXX="$p"
19479 postdep_objects_CXX="$postdep_objects_CXX $p"
19484 *) ;; # Ignore the rest.
19492 echo "libtool.m4: error: problem compiling CXX test program"
19495 $rm -f confest.$objext
19497 # PORTME: override above test on systems where it is broken
19500 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19501 # hack all around it, let's just trust "g++" to DTRT.
19502 predep_objects_CXX=
19503 postdep_objects_CXX=
19508 case $cc_basename in
19510 # Adding this requires a known-good setup of shared libraries for
19511 # Sun compiler versions before 5.6, else PIC objects from an old
19512 # archive will be linked into the output, leading to subtle bugs.
19513 postdeps_CXX='-lCstd -lCrun'
19520 case " $postdeps_CXX " in
19521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19524 lt_prog_compiler_wl_CXX=
19525 lt_prog_compiler_pic_CXX=
19526 lt_prog_compiler_static_CXX=
19528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19531 # C++ specific cases for pic, static, wl, etc.
19532 if test "$GXX" = yes; then
19533 lt_prog_compiler_wl_CXX='-Wl,'
19534 lt_prog_compiler_static_CXX='-static'
19538 # All AIX code is PIC.
19539 if test "$host_cpu" = ia64; then
19540 # AIX 5 now supports IA64 processor
19541 lt_prog_compiler_static_CXX='-Bstatic'
19545 # FIXME: we need at least 68020 code to build shared libraries, but
19546 # adding the `-m68020' flag to GCC prevents building anything better,
19548 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19551 # PIC is the default for these OSes.
19553 mingw* | os2* | pw32*)
19554 # This hack is so that the source file can tell whether it is being
19555 # built for inclusion in a dll (and should export symbols for example).
19556 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19558 darwin* | rhapsody*)
19559 # PIC is the default on this platform
19560 # Common symbols not allowed in MH_DYLIB files
19561 lt_prog_compiler_pic_CXX='-fno-common'
19564 # DJGPP does not support shared libraries at all
19565 lt_prog_compiler_pic_CXX=
19568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19569 # Instead, we relocate shared libraries at runtime.
19572 if test -d /usr/nec; then
19573 lt_prog_compiler_pic_CXX=-Kconform_pic
19577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19578 # not for PA HP-UX.
19583 lt_prog_compiler_pic_CXX='-fPIC'
19588 lt_prog_compiler_pic_CXX='-fPIC'
19594 # All AIX code is PIC.
19595 if test "$host_cpu" = ia64; then
19596 # AIX 5 now supports IA64 processor
19597 lt_prog_compiler_static_CXX='-Bstatic'
19599 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19603 case $cc_basename in
19605 # Green Hills C++ Compiler
19606 # _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"
19611 # PIC is the default on this platform
19612 # Common symbols not allowed in MH_DYLIB files
19613 case $cc_basename in
19615 lt_prog_compiler_pic_CXX='-qnocommon'
19616 lt_prog_compiler_wl_CXX='-Wl,'
19621 case $cc_basename in
19623 lt_prog_compiler_pic_CXX='-KPIC'
19626 # Green Hills C++ Compiler
19627 lt_prog_compiler_pic_CXX='-pic'
19633 freebsd* | kfreebsd*-gnu | dragonfly*)
19634 # FreeBSD uses GNU C++
19636 hpux9* | hpux10* | hpux11*)
19637 case $cc_basename in
19639 lt_prog_compiler_wl_CXX='-Wl,'
19640 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19641 if test "$host_cpu" != ia64; then
19642 lt_prog_compiler_pic_CXX='+Z'
19646 lt_prog_compiler_wl_CXX='-Wl,'
19647 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19653 lt_prog_compiler_pic_CXX='+Z'
19662 # This is c89, which is MS Visual C++ (no shared libs)
19663 # Anyone wants to do a port?
19665 irix5* | irix6* | nonstopux*)
19666 case $cc_basename in
19668 lt_prog_compiler_wl_CXX='-Wl,'
19669 lt_prog_compiler_static_CXX='-non_shared'
19670 # CC pic flag -KPIC is the default.
19677 case $cc_basename in
19680 lt_prog_compiler_wl_CXX='--backend -Wl,'
19681 lt_prog_compiler_pic_CXX='-fPIC'
19685 lt_prog_compiler_wl_CXX='-Wl,'
19686 lt_prog_compiler_pic_CXX='-KPIC'
19687 lt_prog_compiler_static_CXX='-static'
19690 # Portland Group C++ compiler.
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 lt_prog_compiler_pic_CXX='-fpic'
19693 lt_prog_compiler_static_CXX='-Bstatic'
19697 # Make sure the PIC flag is empty. It appears that all Alpha
19698 # Linux and Compaq Tru64 Unix objects are PIC.
19699 lt_prog_compiler_pic_CXX=
19700 lt_prog_compiler_static_CXX='-non_shared'
19711 case $cc_basename in
19713 lt_prog_compiler_pic_CXX='-W c,exportall'
19721 osf3* | osf4* | osf5*)
19722 case $cc_basename in
19724 lt_prog_compiler_wl_CXX='--backend -Wl,'
19727 # Rational C++ 2.4.1
19728 lt_prog_compiler_pic_CXX='-pic'
19731 # Digital/Compaq C++
19732 lt_prog_compiler_wl_CXX='-Wl,'
19733 # Make sure the PIC flag is empty. It appears that all Alpha
19734 # Linux and Compaq Tru64 Unix objects are PIC.
19735 lt_prog_compiler_pic_CXX=
19736 lt_prog_compiler_static_CXX='-non_shared'
19745 case $cc_basename in
19747 # Sun C++ 4.2, 5.x and Centerline C++
19748 lt_prog_compiler_pic_CXX='-KPIC'
19749 lt_prog_compiler_static_CXX='-Bstatic'
19750 lt_prog_compiler_wl_CXX='-Qoption ld '
19753 # Green Hills C++ Compiler
19754 lt_prog_compiler_pic_CXX='-PIC'
19761 case $cc_basename in
19764 lt_prog_compiler_pic_CXX='-pic'
19765 lt_prog_compiler_static_CXX='-Bstatic'
19769 lt_prog_compiler_pic_CXX='-pic'
19776 case $cc_basename in
19778 # NonStop-UX NCC 3.20
19779 lt_prog_compiler_pic_CXX='-KPIC'
19785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19786 case $cc_basename in
19788 lt_prog_compiler_wl_CXX='-Wl,'
19789 lt_prog_compiler_pic_CXX='-KPIC'
19790 lt_prog_compiler_static_CXX='-Bstatic'
19797 lt_prog_compiler_can_build_shared_CXX=no
19802 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19803 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19806 # Check to make sure the PIC flag actually works.
19808 if test -n "$lt_prog_compiler_pic_CXX"; then
19810 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19812 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 lt_prog_compiler_pic_works_CXX=no
19816 ac_outfile=conftest.$ac_objext
19817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19818 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19819 # Insert the option either (1) after the last *FLAGS variable, or
19820 # (2) before a word containing "conftest.", or (3) at the end.
19821 # Note that $ac_compile itself does not contain backslashes and begins
19822 # with a dollar sign (not a hyphen), so the echo should work correctly.
19823 # The option is referenced via a variable to avoid confusing sed.
19824 lt_compile=`echo "$ac_compile" | $SED \
19825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19827 -e 's:$: $lt_compiler_flag:'`
19828 (eval echo "\"\$as_me:19828: $lt_compile\"" >&5)
19829 (eval "$lt_compile" 2>conftest.err)
19831 cat conftest.err >&5
19832 echo "$as_me:19832: \$? = $ac_status" >&5
19833 if (exit $ac_status) && test -s "$ac_outfile"; then
19834 # The compiler can only warn and ignore the option if not recognized
19835 # So say no if there are warnings other than the usual output.
19836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19839 lt_prog_compiler_pic_works_CXX=yes
19845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19846 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19849 case $lt_prog_compiler_pic_CXX in
19851 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19854 lt_prog_compiler_pic_CXX=
19855 lt_prog_compiler_can_build_shared_CXX=no
19860 # For platforms which do not support PIC, -DPIC is meaningless:
19862 lt_prog_compiler_pic_CXX=
19865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19870 # Check to make sure the static flag actually works.
19872 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19873 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19874 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19875 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 lt_prog_compiler_static_works_CXX=no
19879 save_LDFLAGS="$LDFLAGS"
19880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19881 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19883 # The linker can only warn and ignore the option if not recognized
19884 # So say no if there are warnings
19885 if test -s conftest.err; then
19886 # Append any errors to the config.log.
19887 cat conftest.err 1>&5
19888 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19890 if diff conftest.exp conftest.er2 >/dev/null; then
19891 lt_prog_compiler_static_works_CXX=yes
19894 lt_prog_compiler_static_works_CXX=yes
19898 LDFLAGS="$save_LDFLAGS"
19901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19902 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19904 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19907 lt_prog_compiler_static_CXX=
19911 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19913 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 lt_cv_prog_compiler_c_o_CXX=no
19917 $rm -r conftest 2>/dev/null
19921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923 lt_compiler_flag="-o out/conftest2.$ac_objext"
19924 # Insert the option either (1) after the last *FLAGS variable, or
19925 # (2) before a word containing "conftest.", or (3) at the end.
19926 # Note that $ac_compile itself does not contain backslashes and begins
19927 # with a dollar sign (not a hyphen), so the echo should work correctly.
19928 lt_compile=`echo "$ac_compile" | $SED \
19929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19931 -e 's:$: $lt_compiler_flag:'`
19932 (eval echo "\"\$as_me:19932: $lt_compile\"" >&5)
19933 (eval "$lt_compile" 2>out/conftest.err)
19935 cat out/conftest.err >&5
19936 echo "$as_me:19936: \$? = $ac_status" >&5
19937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19939 # The compiler can only warn and ignore the option if not recognized
19940 # So say no if there are warnings
19941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19944 lt_cv_prog_compiler_c_o_CXX=yes
19949 # SGI C++ compiler will create directory out/ii_files/ for
19950 # template instantiation
19951 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19952 $rm out/* && rmdir out
19958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19962 hard_links="nottested"
19963 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19964 # do not overwrite the value of need_locks provided by the user
19965 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19971 ln conftest.a conftest.b 2>&5 || hard_links=no
19972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19973 { echo "$as_me:$LINENO: result: $hard_links" >&5
19974 echo "${ECHO_T}$hard_links" >&6; }
19975 if test "$hard_links" = no; then
19976 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19984 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19985 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19990 # If we're using GNU nm, then we don't want the "-C" option.
19991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19992 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19993 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'
19995 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'
19999 export_symbols_cmds_CXX="$ltdll_cmds"
20002 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'
20005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20009 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20010 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20011 test "$ld_shlibs_CXX" = no && can_build_shared=no
20014 # Do we need to explicitly link libc?
20016 case "x$archive_cmds_need_lc_CXX" in
20018 # Assume -lc should be added
20019 archive_cmds_need_lc_CXX=yes
20021 if test "$enable_shared" = yes && test "$GCC" = yes; then
20022 case $archive_cmds_CXX in
20024 # FIXME: we may have to deal with multi-command sequences.
20027 # Test whether the compiler implicitly links with -lc since on some
20028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20029 # to ld, don't add -lc before -lgcc.
20030 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20031 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } 2>conftest.err; then
20042 libobjs=conftest.$ac_objext
20044 wl=$lt_prog_compiler_wl_CXX
20045 pic_flag=$lt_prog_compiler_pic_CXX
20051 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20052 allow_undefined_flag_CXX=
20053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20054 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }
20059 archive_cmds_need_lc_CXX=no
20061 archive_cmds_need_lc_CXX=yes
20063 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20065 cat conftest.err 1>&5
20068 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20069 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20076 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20077 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20078 library_names_spec=
20079 libname_spec='lib$name'
20083 postuninstall_cmds=
20087 shlibpath_overrides_runpath=unknown
20089 dynamic_linker="$host_os ld.so"
20090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20091 if test "$GCC" = yes; then
20092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20094 # if the path contains ";" then we assume it to be the separator
20095 # otherwise default to the standard path separator (i.e. ":") - it is
20096 # assumed that no part of a normal pathname contains ";" but that should
20097 # okay in the real world where ";" in dirpaths is itself problematic.
20098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20105 need_lib_prefix=unknown
20106 hardcode_into_libs=no
20108 # when you set need_version to no, make sure it does not cause -set_version
20109 # flags to be left without arguments
20110 need_version=unknown
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20116 shlibpath_var=LIBPATH
20118 # AIX 3 has no versioning support, so we append a major version to the name.
20119 soname_spec='${libname}${release}${shared_ext}$major'
20126 hardcode_into_libs=yes
20127 if test "$host_cpu" = ia64; then
20128 # AIX 5 supports IA64
20129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20130 shlibpath_var=LD_LIBRARY_PATH
20132 # With GCC up to 2.95.x, collect2 would create an import file
20133 # for dependence libraries. The import file would start with
20134 # the line `#! .'. This would cause the generated library to
20135 # depend on `.', always an invalid library. This was fixed in
20136 # development snapshots of GCC prior to 3.0.
20138 aix4 | aix4.[01] | aix4.[01].*)
20139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20144 can_build_shared=no
20148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20149 # soname into executable. Probably we can add versioning support to
20150 # collect2, so additional links can be useful in future.
20151 if test "$aix_use_runtimelinking" = yes; then
20152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20153 # instead of lib<name>.a to let people know that these are not
20154 # typical AIX shared libraries.
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 # We preserve .a as extension for shared libraries through AIX4.2
20158 # and later when we are not doing run time linking.
20159 library_names_spec='${libname}${release}.a $libname.a'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LIBPATH
20167 library_names_spec='$libname.ixlibrary $libname.a'
20168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20169 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'
20173 library_names_spec='${libname}${shared_ext}'
20174 dynamic_linker="$host_os ld.so"
20175 shlibpath_var=LIBRARY_PATH
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20187 # the default ld.so.conf also contains /usr/contrib/lib and
20188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20189 # libtool to hard-code these into programs
20192 cygwin* | mingw* | pw32*)
20193 version_type=windows
20198 case $GCC,$host_os in
20199 yes,cygwin* | yes,mingw* | yes,pw32*)
20200 library_names_spec='$libname.dll.a'
20201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20202 postinstall_cmds='base_file=`basename \${file}`~
20203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20204 dldir=$destdir/`dirname \$dlpath`~
20205 test -d \$dldir || mkdir -p \$dldir~
20206 $install_prog $dir/$dlname \$dldir/$dlname~
20207 chmod a+x \$dldir/$dlname'
20208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20209 dlpath=$dir/\$dldll~
20211 shlibpath_overrides_runpath=yes
20215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20217 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20220 # MinGW DLLs use traditional 'lib' prefix
20221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20224 # It is most probably a Windows format PATH printed by
20225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20226 # path with ; separators, and with drive letters. We can handle the
20227 # drive letters (cygwin fileutils understands them), so leave them,
20228 # especially as we might pass files found there to a mingw objdump,
20229 # which wouldn't understand a cygwinified path. Ahh.
20230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20236 # pw32 DLLs use 'pw' prefix rather than 'lib'
20237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20246 dynamic_linker='Win32 ld.exe'
20247 # FIXME: first we should search . and the directory the executable is in
20251 darwin* | rhapsody*)
20252 dynamic_linker="$host_os dyld"
20253 version_type=darwin
20256 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20257 soname_spec='${libname}${release}${major}$shared_ext'
20258 shlibpath_overrides_runpath=yes
20259 shlibpath_var=DYLD_LIBRARY_PATH
20260 shrext_cmds='.dylib'
20261 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20262 if test "$GCC" = yes; then
20263 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"`
20265 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 shlibpath_var=LD_LIBRARY_PATH
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 shlibpath_overrides_runpath=no
20291 hardcode_into_libs=yes
20292 dynamic_linker='GNU ld.so'
20295 freebsd* | dragonfly*)
20296 # DragonFly does not have aout. When/if they implement a new
20297 # versioning mechanism, adjust this.
20298 if test -x /usr/bin/objformat; then
20299 objformat=`/usr/bin/objformat`
20302 freebsd[123]*) objformat=aout ;;
20303 *) objformat=elf ;;
20306 version_type=freebsd-$objformat
20307 case $version_type in
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20318 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=yes
20323 freebsd3.[01]* | freebsdelf3.[01]*)
20324 shlibpath_overrides_runpath=yes
20325 hardcode_into_libs=yes
20327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20329 shlibpath_overrides_runpath=no
20330 hardcode_into_libs=yes
20332 freebsd*) # from 4.6 on
20333 shlibpath_overrides_runpath=yes
20334 hardcode_into_libs=yes
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 hardcode_into_libs=yes
20349 hpux9* | hpux10* | hpux11*)
20350 # Give a soname corresponding to the major version so that dld.sl refuses to
20351 # link against other versions.
20358 hardcode_into_libs=yes
20359 dynamic_linker="$host_os dld.so"
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 if test "X$HPUX_IA64_MODE" = X32; then
20365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20373 hardcode_into_libs=yes
20374 dynamic_linker="$host_os dld.sl"
20375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20384 dynamic_linker="$host_os dld.sl"
20385 shlibpath_var=SHLIB_PATH
20386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388 soname_spec='${libname}${release}${shared_ext}$major'
20391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20392 postinstall_cmds='chmod 555 $lib'
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 shlibpath_overrides_runpath=no
20404 hardcode_into_libs=yes
20407 irix5* | irix6* | nonstopux*)
20409 nonstopux*) version_type=nonstopux ;;
20411 if test "$lt_cv_prog_gnu_ld" = yes; then
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20422 irix5* | nonstopux*)
20423 libsuff= shlibsuff=
20426 case $LD in # libtool.m4 will add one of these switches to LD
20427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20428 libsuff= shlibsuff= libmagic=32-bit;;
20429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20430 libsuff=32 shlibsuff=N32 libmagic=N32;;
20431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20433 *) libsuff= shlibsuff= libmagic=never-match;;
20437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20438 shlibpath_overrides_runpath=no
20439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20441 hardcode_into_libs=yes
20444 # No shared lib support for Linux oldld, aout, or coff.
20445 linux*oldld* | linux*aout* | linux*coff*)
20449 # This must be Linux ELF.
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 shlibpath_overrides_runpath=no
20459 # This implies no fast_install, which is unacceptable.
20460 # Some rework will be needed to allow for fast_install
20461 # before this can be enabled.
20462 hardcode_into_libs=yes
20464 # Append ld.so.conf contents to the search path
20465 if test -f /etc/ld.so.conf; then
20466 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' ' '`
20467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20470 # We used to test for /lib/ld.so.1 and disable shared libraries on
20471 # powerpc, because MkLinux only supported shared libraries with the
20472 # GNU dynamic linker. Since this was broken with cross compilers,
20473 # most powerpc-linux boxes support dynamic linking these days and
20474 # people can always --disable-shared, the test was removed, and we
20475 # assume the GNU/Linux dynamic linker is in use.
20476 dynamic_linker='GNU/Linux ld.so'
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 shlibpath_overrides_runpath=no
20487 hardcode_into_libs=yes
20488 dynamic_linker='GNU ld.so'
20495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20498 dynamic_linker='NetBSD (a.out) ld.so'
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 dynamic_linker='NetBSD ld.elf_so'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 shlibpath_overrides_runpath=yes
20506 hardcode_into_libs=yes
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=yes
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 soname_spec='${libname}${release}${shared_ext}$major'
20522 shlibpath_var=LD_LIBRARY_PATH
20523 shlibpath_overrides_runpath=yes
20528 sys_lib_dlsearch_path_spec="/usr/lib"
20530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20533 *) need_version=no ;;
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20540 openbsd2.[89] | openbsd2.[89].*)
20541 shlibpath_overrides_runpath=no
20544 shlibpath_overrides_runpath=yes
20548 shlibpath_overrides_runpath=yes
20553 libname_spec='$name'
20556 library_names_spec='$libname${shared_ext} $libname.a'
20557 dynamic_linker='OS/2 ld.exe'
20558 shlibpath_var=LIBPATH
20561 osf3* | osf4* | osf5*)
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577 soname_spec='${libname}${release}${shared_ext}$major'
20578 shlibpath_var=LD_LIBRARY_PATH
20579 shlibpath_overrides_runpath=yes
20580 hardcode_into_libs=yes
20581 # ldd complains unless libraries are executable
20582 postinstall_cmds='chmod +x $lib'
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=yes
20591 if test "$with_gnu_ld" = yes; then
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20602 case $host_vendor in
20604 shlibpath_overrides_runpath=no
20606 export_dynamic_flag_spec='${wl}-Blargedynsym'
20607 runpath_var=LD_RUN_PATH
20615 shlibpath_overrides_runpath=no
20616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20622 if test -d /usr/nec ;then
20624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20625 soname_spec='$libname${shared_ext}.$major'
20626 shlibpath_var=LD_LIBRARY_PATH
20630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20631 version_type=freebsd-elf
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20635 soname_spec='${libname}${release}${shared_ext}$major'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 hardcode_into_libs=yes
20638 if test "$with_gnu_ld" = yes; then
20639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20640 shlibpath_overrides_runpath=no
20642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20643 shlibpath_overrides_runpath=yes
20646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20650 sys_lib_dlsearch_path_spec='/usr/lib'
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 shlibpath_var=LD_LIBRARY_PATH
20664 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20665 echo "${ECHO_T}$dynamic_linker" >&6; }
20666 test "$dynamic_linker" = no && can_build_shared=no
20668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20669 if test "$GCC" = yes; then
20670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20673 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20675 hardcode_action_CXX=
20676 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20677 test -n "$runpath_var_CXX" || \
20678 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20680 # We can hardcode non-existant directories.
20681 if test "$hardcode_direct_CXX" != no &&
20682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20683 # have to relink, otherwise we might link with an installed library
20684 # when we should be linking with a yet-to-be-installed one
20685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20686 test "$hardcode_minus_L_CXX" != no; then
20687 # Linking always hardcodes the temporary library directory.
20688 hardcode_action_CXX=relink
20690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20691 hardcode_action_CXX=immediate
20694 # We cannot hardcode anything, or else we can only hardcode existing
20696 hardcode_action_CXX=unsupported
20698 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20699 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20701 if test "$hardcode_action_CXX" = relink; then
20702 # Fast installation is not supported
20703 enable_fast_install=no
20704 elif test "$shlibpath_overrides_runpath" = yes ||
20705 test "$enable_shared" = no; then
20706 # Fast installation is not necessary
20707 enable_fast_install=needless
20711 # The else clause should only fire when bootstrapping the
20712 # libtool distribution, otherwise you forgot to ship ltmain.sh
20713 # with your package, and you will get complaints that there are
20714 # no rules to generate ltmain.sh.
20715 if test -f "$ltmain"; then
20716 # See if we are running on zsh, and set the options which allow our commands through
20717 # without removal of \ escapes.
20718 if test -n "${ZSH_VERSION+set}" ; then
20719 setopt NO_GLOB_SUBST
20721 # Now quote all the things that may contain metacharacters while being
20722 # careful not to overquote the AC_SUBSTed values. We take copies of the
20723 # variables and quote the copies for generation of the libtool script.
20724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20728 deplibs_check_method reload_flag reload_cmds need_locks \
20729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20730 lt_cv_sys_global_symbol_to_c_name_address \
20731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20732 old_postinstall_cmds old_postuninstall_cmds \
20736 lt_prog_compiler_wl_CXX \
20737 lt_prog_compiler_pic_CXX \
20738 lt_prog_compiler_static_CXX \
20739 lt_prog_compiler_no_builtin_flag_CXX \
20740 export_dynamic_flag_spec_CXX \
20741 thread_safe_flag_spec_CXX \
20742 whole_archive_flag_spec_CXX \
20743 enable_shared_with_static_runtimes_CXX \
20744 old_archive_cmds_CXX \
20745 old_archive_from_new_cmds_CXX \
20746 predep_objects_CXX \
20747 postdep_objects_CXX \
20750 compiler_lib_search_path_CXX \
20752 archive_expsym_cmds_CXX \
20753 postinstall_cmds_CXX \
20754 postuninstall_cmds_CXX \
20755 old_archive_from_expsyms_cmds_CXX \
20756 allow_undefined_flag_CXX \
20757 no_undefined_flag_CXX \
20758 export_symbols_cmds_CXX \
20759 hardcode_libdir_flag_spec_CXX \
20760 hardcode_libdir_flag_spec_ld_CXX \
20761 hardcode_libdir_separator_CXX \
20762 hardcode_automatic_CXX \
20764 module_expsym_cmds_CXX \
20765 lt_cv_prog_compiler_c_o_CXX \
20766 exclude_expsyms_CXX \
20767 include_expsyms_CXX; do
20770 old_archive_cmds_CXX | \
20771 old_archive_from_new_cmds_CXX | \
20772 archive_cmds_CXX | \
20773 archive_expsym_cmds_CXX | \
20774 module_cmds_CXX | \
20775 module_expsym_cmds_CXX | \
20776 old_archive_from_expsyms_cmds_CXX | \
20777 export_symbols_cmds_CXX | \
20778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20779 postinstall_cmds | postuninstall_cmds | \
20780 old_postinstall_cmds | old_postuninstall_cmds | \
20781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20782 # Double-quote double-evaled strings.
20783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20792 *'\$0 --fallback-echo"')
20793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20799 cat <<__EOF__ >> "$cfgfile"
20800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20804 # Shell to use when invoking shell scripts.
20807 # Whether or not to build shared libraries.
20808 build_libtool_libs=$enable_shared
20810 # Whether or not to build static libraries.
20811 build_old_libs=$enable_static
20813 # Whether or not to add -lc for building shared libraries.
20814 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20816 # Whether or not to disallow shared libs when runtime libs are static
20817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20819 # Whether or not to optimize for fast installation.
20820 fast_install=$enable_fast_install
20823 host_alias=$host_alias
20827 # The build system.
20828 build_alias=$build_alias
20832 # An echo program that does not interpret backslashes.
20837 AR_FLAGS=$lt_AR_FLAGS
20842 # LTCC compiler flags.
20843 LTCFLAGS=$lt_LTCFLAGS
20845 # A language-specific compiler.
20846 CC=$lt_compiler_CXX
20848 # Is the compiler the GNU C compiler?
20854 # The linker used to build libraries.
20857 # Whether we need hard or soft links.
20860 # A BSD-compatible nm program.
20863 # A symbol stripping program
20866 # Used to examine libraries when file_magic_cmd begins "file"
20867 MAGIC_CMD=$MAGIC_CMD
20869 # Used on cygwin: DLL creation program.
20872 # Used on cygwin: object dumper.
20875 # Used on cygwin: assembler.
20878 # The name of the directory that contains temporary libtool files.
20881 # How to create reloadable object files.
20882 reload_flag=$lt_reload_flag
20883 reload_cmds=$lt_reload_cmds
20885 # How to pass a linker flag through the compiler.
20886 wl=$lt_lt_prog_compiler_wl_CXX
20888 # Object file suffix (normally "o").
20889 objext="$ac_objext"
20891 # Old archive suffix (normally "a").
20894 # Shared library suffix (normally ".so").
20895 shrext_cmds='$shrext_cmds'
20897 # Executable file suffix (normally "").
20900 # Additional compiler flags for building library objects.
20901 pic_flag=$lt_lt_prog_compiler_pic_CXX
20904 # What is the maximum length of a command?
20905 max_cmd_len=$lt_cv_sys_max_cmd_len
20907 # Does compiler simultaneously support -c and -o options?
20908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20910 # Must we lock files when doing compilation?
20911 need_locks=$lt_need_locks
20913 # Do we need the lib prefix for modules?
20914 need_lib_prefix=$need_lib_prefix
20916 # Do we need a version for libraries?
20917 need_version=$need_version
20919 # Whether dlopen is supported.
20920 dlopen_support=$enable_dlopen
20922 # Whether dlopen of programs is supported.
20923 dlopen_self=$enable_dlopen_self
20925 # Whether dlopen of statically linked programs is supported.
20926 dlopen_self_static=$enable_dlopen_self_static
20928 # Compiler flag to prevent dynamic linking.
20929 link_static_flag=$lt_lt_prog_compiler_static_CXX
20931 # Compiler flag to turn off builtin functions.
20932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20934 # Compiler flag to allow reflexive dlopens.
20935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20937 # Compiler flag to generate shared objects directly from archives.
20938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20940 # Compiler flag to generate thread-safe objects.
20941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20943 # Library versioning type.
20944 version_type=$version_type
20946 # Format of library name prefix.
20947 libname_spec=$lt_libname_spec
20949 # List of archive names. First name is the real one, the rest are links.
20950 # The last name is the one that the linker finds with -lNAME.
20951 library_names_spec=$lt_library_names_spec
20953 # The coded name of the library, if different from the real name.
20954 soname_spec=$lt_soname_spec
20956 # Commands used to build and install an old-style archive.
20958 old_archive_cmds=$lt_old_archive_cmds_CXX
20959 old_postinstall_cmds=$lt_old_postinstall_cmds
20960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20962 # Create an old-style archive from a shared archive.
20963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20965 # Create a temporary old-style archive to link instead of a shared archive.
20966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20968 # Commands used to build and install a shared archive.
20969 archive_cmds=$lt_archive_cmds_CXX
20970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20971 postinstall_cmds=$lt_postinstall_cmds
20972 postuninstall_cmds=$lt_postuninstall_cmds
20974 # Commands used to build a loadable module (assumed same as above if empty)
20975 module_cmds=$lt_module_cmds_CXX
20976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20978 # Commands to strip libraries.
20979 old_striplib=$lt_old_striplib
20980 striplib=$lt_striplib
20982 # Dependencies to place before the objects being linked to create a
20984 predep_objects=$lt_predep_objects_CXX
20986 # Dependencies to place after the objects being linked to create a
20988 postdep_objects=$lt_postdep_objects_CXX
20990 # Dependencies to place before the objects being linked to create a
20992 predeps=$lt_predeps_CXX
20994 # Dependencies to place after the objects being linked to create a
20996 postdeps=$lt_postdeps_CXX
20998 # The library search path used internally by the compiler when linking
20999 # a shared library.
21000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21002 # Method to check whether dependent libraries are shared objects.
21003 deplibs_check_method=$lt_deplibs_check_method
21005 # Command to use when deplibs_check_method == file_magic.
21006 file_magic_cmd=$lt_file_magic_cmd
21008 # Flag that allows shared libraries with undefined symbols to be built.
21009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21011 # Flag that forces no undefined symbols.
21012 no_undefined_flag=$lt_no_undefined_flag_CXX
21014 # Commands used to finish a libtool library installation in a directory.
21015 finish_cmds=$lt_finish_cmds
21017 # Same as above, but a single script fragment to be evaled but not shown.
21018 finish_eval=$lt_finish_eval
21020 # Take the output of nm and produce a listing of raw symbols and C names.
21021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21023 # Transform the output of nm in a proper C declaration
21024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21026 # Transform the output of nm in a C name address pair
21027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21029 # This is the shared library runtime path variable.
21030 runpath_var=$runpath_var
21032 # This is the shared library path variable.
21033 shlibpath_var=$shlibpath_var
21035 # Is shlibpath searched before the hard-coded library search path?
21036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21038 # How to hardcode a shared library path into an executable.
21039 hardcode_action=$hardcode_action_CXX
21041 # Whether we should hardcode library paths into libraries.
21042 hardcode_into_libs=$hardcode_into_libs
21044 # Flag to hardcode \$libdir into a binary during linking.
21045 # This must work even if \$libdir does not exist.
21046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21048 # If ld is used when linking, flag to hardcode \$libdir into
21049 # a binary during linking. This must work even if \$libdir does
21051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21053 # Whether we need a single -rpath flag with a separated argument.
21054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21057 # resulting binary.
21058 hardcode_direct=$hardcode_direct_CXX
21060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21061 # resulting binary.
21062 hardcode_minus_L=$hardcode_minus_L_CXX
21064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21065 # the resulting binary.
21066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21068 # Set to yes if building a shared library automatically hardcodes DIR into the library
21069 # and all subsequent libraries and executables linked against it.
21070 hardcode_automatic=$hardcode_automatic_CXX
21072 # Variables whose values should be saved in libtool wrapper scripts and
21073 # restored at relink time.
21074 variables_saved_for_relink="$variables_saved_for_relink"
21076 # Whether libtool must link a program against all its dependency libraries.
21077 link_all_deplibs=$link_all_deplibs_CXX
21079 # Compile-time system search path for libraries
21080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21082 # Run-time system search path for libraries
21083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21085 # Fix the shell variable \$srcfile for the compiler.
21086 fix_srcfile_path="$fix_srcfile_path_CXX"
21088 # Set to yes if exported symbols are required.
21089 always_export_symbols=$always_export_symbols_CXX
21091 # The commands to list exported symbols.
21092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21094 # The commands to extract the exported symbol list from a shared archive.
21095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21097 # Symbols that should not be listed in the preloaded symbols.
21098 exclude_expsyms=$lt_exclude_expsyms_CXX
21100 # Symbols that must always be exported.
21101 include_expsyms=$lt_include_expsyms_CXX
21103 # ### END LIBTOOL TAG CONFIG: $tagname
21109 # If there is no Makefile yet, we rely on a make rule to execute
21110 # `config.status --recheck' to rerun these tests and create the
21111 # libtool script then.
21112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21113 if test -f "$ltmain_in"; then
21114 test -f Makefile && make "$ltmain"
21120 ac_cpp='$CPP $CPPFLAGS'
21121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129 with_gnu_ldcxx=$with_gnu_ld
21130 with_gnu_ld=$lt_save_with_gnu_ld
21131 lt_cv_path_LDCXX=$lt_cv_path_LD
21132 lt_cv_path_LD=$lt_save_path_LD
21133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21142 if test -n "$F77" && test "X$F77" != "Xno"; then
21145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21150 archive_cmds_need_lc_F77=no
21151 allow_undefined_flag_F77=
21152 always_export_symbols_F77=no
21153 archive_expsym_cmds_F77=
21154 export_dynamic_flag_spec_F77=
21155 hardcode_direct_F77=no
21156 hardcode_libdir_flag_spec_F77=
21157 hardcode_libdir_flag_spec_ld_F77=
21158 hardcode_libdir_separator_F77=
21159 hardcode_minus_L_F77=no
21160 hardcode_automatic_F77=no
21162 module_expsym_cmds_F77=
21163 link_all_deplibs_F77=unknown
21164 old_archive_cmds_F77=$old_archive_cmds
21165 no_undefined_flag_F77=
21166 whole_archive_flag_spec_F77=
21167 enable_shared_with_static_runtimes_F77=no
21169 # Source file extension for f77 test sources.
21172 # Object file extension for compiled f77 test sources.
21176 # Code to be used in simple compile tests
21177 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21179 # Code to be used in simple link tests
21180 lt_simple_link_test_code=" program t\n end\n"
21182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21184 # If no C compiler was specified, use CC.
21187 # If no C compiler flags were specified, use CFLAGS.
21188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21190 # Allow CC to be a program name with arguments.
21194 # save warnings/boilerplate of simple test code
21195 ac_outfile=conftest.$ac_objext
21196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21198 _lt_compiler_boilerplate=`cat conftest.err`
21201 ac_outfile=conftest.$ac_objext
21202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21204 _lt_linker_boilerplate=`cat conftest.err`
21208 # Allow CC to be a program name with arguments.
21213 for cc_temp in $compiler""; do
21215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21224 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21225 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21226 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21227 echo "${ECHO_T}$can_build_shared" >&6; }
21229 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21230 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21231 test "$can_build_shared" = "no" && enable_shared=no
21233 # On AIX, shared libraries and static libraries use the same namespace, and
21234 # are all built from PIC.
21237 test "$enable_shared" = yes && enable_static=no
21238 if test -n "$RANLIB"; then
21239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21240 postinstall_cmds='$RANLIB $lib'
21244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21245 test "$enable_shared" = yes && enable_static=no
21249 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21250 echo "${ECHO_T}$enable_shared" >&6; }
21252 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21254 # Make sure either enable_shared or enable_static is yes.
21255 test "$enable_shared" = yes || enable_static=yes
21256 { echo "$as_me:$LINENO: result: $enable_static" >&5
21257 echo "${ECHO_T}$enable_static" >&6; }
21262 lt_prog_compiler_wl_F77=
21263 lt_prog_compiler_pic_F77=
21264 lt_prog_compiler_static_F77=
21266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21269 if test "$GCC" = yes; then
21270 lt_prog_compiler_wl_F77='-Wl,'
21271 lt_prog_compiler_static_F77='-static'
21275 # All AIX code is PIC.
21276 if test "$host_cpu" = ia64; then
21277 # AIX 5 now supports IA64 processor
21278 lt_prog_compiler_static_F77='-Bstatic'
21283 # FIXME: we need at least 68020 code to build shared libraries, but
21284 # adding the `-m68020' flag to GCC prevents building anything better,
21286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21290 # PIC is the default for these OSes.
21293 mingw* | pw32* | os2*)
21294 # This hack is so that the source file can tell whether it is being
21295 # built for inclusion in a dll (and should export symbols for example).
21296 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21299 darwin* | rhapsody*)
21300 # PIC is the default on this platform
21301 # Common symbols not allowed in MH_DYLIB files
21302 lt_prog_compiler_pic_F77='-fno-common'
21306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21307 # Instead, we relocate shared libraries at runtime.
21311 # Just because we use GCC doesn't mean we suddenly get shared libraries
21312 # on systems that don't support them.
21313 lt_prog_compiler_can_build_shared_F77=no
21318 if test -d /usr/nec; then
21319 lt_prog_compiler_pic_F77=-Kconform_pic
21324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21325 # not for PA HP-UX.
21331 lt_prog_compiler_pic_F77='-fPIC'
21337 lt_prog_compiler_pic_F77='-fPIC'
21341 # PORTME Check for flag to pass linker flags through the system compiler.
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 if test "$host_cpu" = ia64; then
21346 # AIX 5 now supports IA64 processor
21347 lt_prog_compiler_static_F77='-Bstatic'
21349 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21353 # PIC is the default on this platform
21354 # Common symbols not allowed in MH_DYLIB files
21355 case $cc_basename in
21357 lt_prog_compiler_pic_F77='-qnocommon'
21358 lt_prog_compiler_wl_F77='-Wl,'
21363 mingw* | pw32* | os2*)
21364 # This hack is so that the source file can tell whether it is being
21365 # built for inclusion in a dll (and should export symbols for example).
21366 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21369 hpux9* | hpux10* | hpux11*)
21370 lt_prog_compiler_wl_F77='-Wl,'
21371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21372 # not for PA HP-UX.
21378 lt_prog_compiler_pic_F77='+Z'
21381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21382 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21385 irix5* | irix6* | nonstopux*)
21386 lt_prog_compiler_wl_F77='-Wl,'
21387 # PIC (with -KPIC) is the default.
21388 lt_prog_compiler_static_F77='-non_shared'
21392 lt_prog_compiler_pic_F77='-KPIC'
21393 lt_prog_compiler_static_F77='-Bstatic'
21397 case $cc_basename in
21399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-static'
21403 pgcc* | pgf77* | pgf90* | pgf95*)
21404 # Portland Group compilers (*not* the Pentium gcc compiler,
21405 # which looks to be a dead project)
21406 lt_prog_compiler_wl_F77='-Wl,'
21407 lt_prog_compiler_pic_F77='-fpic'
21408 lt_prog_compiler_static_F77='-Bstatic'
21411 lt_prog_compiler_wl_F77='-Wl,'
21412 # All Alpha code is PIC.
21413 lt_prog_compiler_static_F77='-non_shared'
21418 osf3* | osf4* | osf5*)
21419 lt_prog_compiler_wl_F77='-Wl,'
21420 # All OSF/1 code is PIC.
21421 lt_prog_compiler_static_F77='-non_shared'
21425 lt_prog_compiler_pic_F77='-KPIC'
21426 lt_prog_compiler_static_F77='-Bstatic'
21427 case $cc_basename in
21428 f77* | f90* | f95*)
21429 lt_prog_compiler_wl_F77='-Qoption ld ';;
21431 lt_prog_compiler_wl_F77='-Wl,';;
21436 lt_prog_compiler_wl_F77='-Qoption ld '
21437 lt_prog_compiler_pic_F77='-PIC'
21438 lt_prog_compiler_static_F77='-Bstatic'
21441 sysv4 | sysv4.2uw2* | sysv4.3*)
21442 lt_prog_compiler_wl_F77='-Wl,'
21443 lt_prog_compiler_pic_F77='-KPIC'
21444 lt_prog_compiler_static_F77='-Bstatic'
21448 if test -d /usr/nec ;then
21449 lt_prog_compiler_pic_F77='-Kconform_pic'
21450 lt_prog_compiler_static_F77='-Bstatic'
21454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21455 lt_prog_compiler_wl_F77='-Wl,'
21456 lt_prog_compiler_pic_F77='-KPIC'
21457 lt_prog_compiler_static_F77='-Bstatic'
21461 lt_prog_compiler_wl_F77='-Wl,'
21462 lt_prog_compiler_can_build_shared_F77=no
21466 lt_prog_compiler_pic_F77='-pic'
21467 lt_prog_compiler_static_F77='-Bstatic'
21471 lt_prog_compiler_can_build_shared_F77=no
21476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21477 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21480 # Check to make sure the PIC flag actually works.
21482 if test -n "$lt_prog_compiler_pic_F77"; then
21484 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21486 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 lt_prog_compiler_pic_works_F77=no
21490 ac_outfile=conftest.$ac_objext
21491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21492 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21493 # Insert the option either (1) after the last *FLAGS variable, or
21494 # (2) before a word containing "conftest.", or (3) at the end.
21495 # Note that $ac_compile itself does not contain backslashes and begins
21496 # with a dollar sign (not a hyphen), so the echo should work correctly.
21497 # The option is referenced via a variable to avoid confusing sed.
21498 lt_compile=`echo "$ac_compile" | $SED \
21499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21501 -e 's:$: $lt_compiler_flag:'`
21502 (eval echo "\"\$as_me:21502: $lt_compile\"" >&5)
21503 (eval "$lt_compile" 2>conftest.err)
21505 cat conftest.err >&5
21506 echo "$as_me:21506: \$? = $ac_status" >&5
21507 if (exit $ac_status) && test -s "$ac_outfile"; then
21508 # The compiler can only warn and ignore the option if not recognized
21509 # So say no if there are warnings other than the usual output.
21510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21513 lt_prog_compiler_pic_works_F77=yes
21519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21520 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21522 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21523 case $lt_prog_compiler_pic_F77 in
21525 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21528 lt_prog_compiler_pic_F77=
21529 lt_prog_compiler_can_build_shared_F77=no
21534 # For platforms which do not support PIC, -DPIC is meaningless:
21536 lt_prog_compiler_pic_F77=
21539 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21544 # Check to make sure the static flag actually works.
21546 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21547 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21548 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21549 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 lt_prog_compiler_static_works_F77=no
21553 save_LDFLAGS="$LDFLAGS"
21554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21557 # The linker can only warn and ignore the option if not recognized
21558 # So say no if there are warnings
21559 if test -s conftest.err; then
21560 # Append any errors to the config.log.
21561 cat conftest.err 1>&5
21562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21564 if diff conftest.exp conftest.er2 >/dev/null; then
21565 lt_prog_compiler_static_works_F77=yes
21568 lt_prog_compiler_static_works_F77=yes
21572 LDFLAGS="$save_LDFLAGS"
21575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21576 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21578 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21581 lt_prog_compiler_static_F77=
21585 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21587 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 lt_cv_prog_compiler_c_o_F77=no
21591 $rm -r conftest 2>/dev/null
21595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21597 lt_compiler_flag="-o out/conftest2.$ac_objext"
21598 # Insert the option either (1) after the last *FLAGS variable, or
21599 # (2) before a word containing "conftest.", or (3) at the end.
21600 # Note that $ac_compile itself does not contain backslashes and begins
21601 # with a dollar sign (not a hyphen), so the echo should work correctly.
21602 lt_compile=`echo "$ac_compile" | $SED \
21603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21605 -e 's:$: $lt_compiler_flag:'`
21606 (eval echo "\"\$as_me:21606: $lt_compile\"" >&5)
21607 (eval "$lt_compile" 2>out/conftest.err)
21609 cat out/conftest.err >&5
21610 echo "$as_me:21610: \$? = $ac_status" >&5
21611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21613 # The compiler can only warn and ignore the option if not recognized
21614 # So say no if there are warnings
21615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21618 lt_cv_prog_compiler_c_o_F77=yes
21623 # SGI C++ compiler will create directory out/ii_files/ for
21624 # template instantiation
21625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21626 $rm out/* && rmdir out
21632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21636 hard_links="nottested"
21637 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21638 # do not overwrite the value of need_locks provided by the user
21639 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21645 ln conftest.a conftest.b 2>&5 || hard_links=no
21646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21647 { echo "$as_me:$LINENO: result: $hard_links" >&5
21648 echo "${ECHO_T}$hard_links" >&6; }
21649 if test "$hard_links" = no; then
21650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21662 allow_undefined_flag_F77=
21663 enable_shared_with_static_runtimes_F77=no
21665 archive_expsym_cmds_F77=
21666 old_archive_From_new_cmds_F77=
21667 old_archive_from_expsyms_cmds_F77=
21668 export_dynamic_flag_spec_F77=
21669 whole_archive_flag_spec_F77=
21670 thread_safe_flag_spec_F77=
21671 hardcode_libdir_flag_spec_F77=
21672 hardcode_libdir_flag_spec_ld_F77=
21673 hardcode_libdir_separator_F77=
21674 hardcode_direct_F77=no
21675 hardcode_minus_L_F77=no
21676 hardcode_shlibpath_var_F77=unsupported
21677 link_all_deplibs_F77=unknown
21678 hardcode_automatic_F77=no
21680 module_expsym_cmds_F77=
21681 always_export_symbols_F77=no
21682 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21683 # include_expsyms should be a list of space-separated symbols to be *always*
21684 # included in the symbol list
21685 include_expsyms_F77=
21686 # exclude_expsyms can be an extended regexp of symbols to exclude
21687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21689 # as well as any symbol that contains `d'.
21690 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21692 # platforms (ab)use it in PIC code, but their linkers get confused if
21693 # the symbol is explicitly referenced. Since portable code cannot
21694 # rely on this symbol name, it's probably fine to never include it in
21695 # preloaded symbol tables.
21696 extract_expsyms_cmds=
21697 # Just being paranoid about ensuring that cc_basename is set.
21698 for cc_temp in $compiler""; do
21700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21709 cygwin* | mingw* | pw32*)
21710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21711 # When not using gcc, we currently assume that we are using
21712 # Microsoft Visual C++.
21713 if test "$GCC" != yes; then
21718 # we just hope/assume this is gcc and not c89 (= MSVC++)
21727 if test "$with_gnu_ld" = yes; then
21728 # If archive_cmds runs LD, not CC, wlarc should be empty
21731 # Set some defaults for GNU ld with shared library support. These
21732 # are reset later if shared libraries are not supported. Putting them
21733 # here allows them to be overridden if necessary.
21734 runpath_var=LD_RUN_PATH
21735 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21736 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21737 # ancient GNU ld didn't support --whole-archive et. al.
21738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21739 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21741 whole_archive_flag_spec_F77=
21743 supports_anon_versioning=no
21744 case `$LD -v 2>/dev/null` in
21745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21748 *\ 2.11.*) ;; # other 2.11 versions
21749 *) supports_anon_versioning=yes ;;
21752 # See if GNU ld supports shared libraries.
21754 aix3* | aix4* | aix5*)
21755 # On AIX/PPC, the GNU linker is very broken
21756 if test "$host_cpu" != ia64; then
21760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21761 *** to be unable to reliably create shared libraries on AIX.
21762 *** Therefore, libtool is disabling shared libraries support. If you
21763 *** really care for shared libraries, you may want to modify your PATH
21764 *** so that a non-GNU linker is found, and then restart.
21771 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)'
21772 hardcode_libdir_flag_spec_F77='-L$libdir'
21773 hardcode_minus_L_F77=yes
21775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21776 # that the semantics of dynamic libraries on AmigaOS, at least up
21777 # to version 4, is to share data among multiple programs linked
21778 # with the same dynamic library. Since this doesn't match the
21779 # behavior of shared libraries on other platforms, we can't use
21785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786 allow_undefined_flag_F77=unsupported
21787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21788 # support --undefined. This deserves some investigation. FIXME
21789 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795 cygwin* | mingw* | pw32*)
21796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21797 # as there is no search path for DLLs.
21798 hardcode_libdir_flag_spec_F77='-L$libdir'
21799 allow_undefined_flag_F77=unsupported
21800 always_export_symbols_F77=no
21801 enable_shared_with_static_runtimes_F77=yes
21802 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21806 # If the export-symbols file already is a .def file (1st line
21807 # is EXPORTS), use it as is; otherwise, prepend...
21808 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21809 cp $export_symbols $output_objdir/$soname.def;
21811 echo EXPORTS > $output_objdir/$soname.def;
21812 cat $export_symbols >> $output_objdir/$soname.def;
21814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21821 hardcode_direct_F77=no
21822 hardcode_shlibpath_var_F77=no
21823 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21824 export_dynamic_flag_spec_F77='${wl}-E'
21825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21826 # Instead, shared libraries are loaded at an image base (0x10000000 by
21827 # default) and relocated if they conflict, which is a slow very memory
21828 # consuming and fragmenting process. To avoid this, we pick a random,
21829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21831 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'
21832 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'
21836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21838 case $cc_basename,$host_cpu in
21839 pgcc*) # Portland Group C compiler
21840 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'
21841 tmp_addflag=' $pic_flag'
21843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21844 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'
21845 tmp_addflag=' $pic_flag -Mnomain' ;;
21846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21847 tmp_addflag=' -i_dynamic' ;;
21848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21849 tmp_addflag=' -i_dynamic -nofor_main' ;;
21850 ifc* | ifort*) # Intel Fortran compiler
21851 tmp_addflag=' -nofor_main' ;;
21853 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21855 if test $supports_anon_versioning = yes; then
21856 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858 $echo "local: *; };" >> $output_objdir/$libname.ver~
21859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21868 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
21877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21882 *** create shared libraries on Solaris systems. Therefore, libtool
21883 *** is disabling shared libraries support. We urge you to upgrade GNU
21884 *** binutils to release 2.9.1 or newer. Another option is to modify
21885 *** your PATH or compiler configuration so that the native linker is
21886 *** used, and then restart.
21889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21898 case `$LD -v 2>&1` in
21899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21904 *** reliably create shared libraries on SCO systems. Therefore, libtool
21905 *** is disabling shared libraries support. We urge you to upgrade GNU
21906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21907 *** your PATH or compiler configuration so that the native linker is
21908 *** used, and then restart.
21913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21925 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21927 hardcode_direct_F77=yes
21928 hardcode_shlibpath_var_F77=no
21932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21933 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21934 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21941 if test "$ld_shlibs_F77" = no; then
21943 hardcode_libdir_flag_spec_F77=
21944 export_dynamic_flag_spec_F77=
21945 whole_archive_flag_spec_F77=
21948 # PORTME fill in a description of your system's linker (not GNU ld)
21951 allow_undefined_flag_F77=unsupported
21952 always_export_symbols_F77=yes
21953 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'
21954 # Note: this linker hardcodes the directories in LIBPATH if there
21955 # are no directories specified by -L.
21956 hardcode_minus_L_F77=yes
21957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21958 # Neither direct hardcoding nor static linking is supported with a
21960 hardcode_direct_F77=unsupported
21965 if test "$host_cpu" = ia64; then
21966 # On IA64, the linker does run time linking by default, so we don't
21967 # have to do anything special.
21968 aix_use_runtimelinking=no
21969 exp_sym_flag='-Bexport'
21972 # If we're using GNU nm, then we don't want the "-C" option.
21973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21975 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'
21977 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'
21979 aix_use_runtimelinking=no
21981 # Test if we are trying to use run time linking or normal
21982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21983 # need to do runtime linking.
21984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21985 for ld_flag in $LDFLAGS; do
21986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21987 aix_use_runtimelinking=yes
21994 exp_sym_flag='-bexport'
21995 no_entry_flag='-bnoentry'
21998 # When large executables or shared objects are built, AIX ld can
21999 # have problems creating the table of contents. If linking a library
22000 # or program results in "error TOC overflow" add -mminimal-toc to
22001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22004 archive_cmds_F77=''
22005 hardcode_direct_F77=yes
22006 hardcode_libdir_separator_F77=':'
22007 link_all_deplibs_F77=yes
22009 if test "$GCC" = yes; then
22010 case $host_os in aix4.[012]|aix4.[012].*)
22011 # We only want to do this on AIX 4.2 and lower, the check
22012 # below for broken collect2 doesn't work under 4.3+
22013 collect2name=`${CC} -print-prog-name=collect2`
22014 if test -f "$collect2name" && \
22015 strings "$collect2name" | grep resolve_lib_name >/dev/null
22017 # We have reworked collect2
22018 hardcode_direct_F77=yes
22020 # We have old collect2
22021 hardcode_direct_F77=unsupported
22022 # It fails to find uninstalled libraries when the uninstalled
22023 # path is not listed in the libpath. Setting hardcode_minus_L
22024 # to unsupported forces relinking
22025 hardcode_minus_L_F77=yes
22026 hardcode_libdir_flag_spec_F77='-L$libdir'
22027 hardcode_libdir_separator_F77=
22031 shared_flag='-shared'
22032 if test "$aix_use_runtimelinking" = yes; then
22033 shared_flag="$shared_flag "'${wl}-G'
22037 if test "$host_cpu" = ia64; then
22038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22039 # chokes on -Wl,-G. The following line is correct:
22042 if test "$aix_use_runtimelinking" = yes; then
22043 shared_flag='${wl}-G'
22045 shared_flag='${wl}-bM:SRE'
22050 # It seems that -bexpall does not export symbols beginning with
22051 # underscore (_), so it is better to generate a list of symbols to export.
22052 always_export_symbols_F77=yes
22053 if test "$aix_use_runtimelinking" = yes; then
22054 # Warning - without using the other runtime loading flags (-brtl),
22055 # -berok will link without error, but may produce a broken library.
22056 allow_undefined_flag_F77='-berok'
22057 # Determine the default libpath from the value encoded in an empty executable.
22058 cat >conftest.$ac_ext <<_ACEOF
22063 rm -f conftest.$ac_objext conftest$ac_exeext
22064 if { (ac_try="$ac_link"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_link") 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } &&
22077 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22078 { (case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_try") 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
22088 { (case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_try") 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22100 # Check for a 64-bit object if we didn't find anything.
22101 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; }
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22110 rm -f core conftest.err conftest.$ac_objext \
22111 conftest$ac_exeext conftest.$ac_ext
22112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22115 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"
22117 if test "$host_cpu" = ia64; then
22118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22119 allow_undefined_flag_F77="-z nodefs"
22120 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"
22122 # Determine the default libpath from the value encoded in an empty executable.
22123 cat >conftest.$ac_ext <<_ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22165 # Check for a 64-bit object if we didn't find anything.
22166 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; }
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22175 rm -f core conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22180 # Warning - without using the other run time loading flags,
22181 # -berok will link without error, but may produce a broken library.
22182 no_undefined_flag_F77=' ${wl}-bernotok'
22183 allow_undefined_flag_F77=' ${wl}-berok'
22184 # Exported symbols can be pulled into shared objects from archives
22185 whole_archive_flag_spec_F77='$convenience'
22186 archive_cmds_need_lc_F77=yes
22187 # This is similar to how AIX traditionally builds its shared libraries.
22188 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'
22194 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)'
22195 hardcode_libdir_flag_spec_F77='-L$libdir'
22196 hardcode_minus_L_F77=yes
22197 # see comment about different semantics on the GNU ld section
22202 export_dynamic_flag_spec_F77=-rdynamic
22205 cygwin* | mingw* | pw32*)
22206 # When not using gcc, we currently assume that we are using
22207 # Microsoft Visual C++.
22208 # hardcode_libdir_flag_spec is actually meaningless, as there is
22209 # no search path for DLLs.
22210 hardcode_libdir_flag_spec_F77=' '
22211 allow_undefined_flag_F77=unsupported
22212 # Tell ltmain to make .lib files, not .a files.
22214 # Tell ltmain to make .dll files, not .so files.
22216 # FIXME: Setting linknames here is a bad hack.
22217 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22218 # The linker will automatically build a .lib file if we build a DLL.
22219 old_archive_From_new_cmds_F77='true'
22220 # FIXME: Should let the user specify the lib program.
22221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22222 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22223 enable_shared_with_static_runtimes_F77=yes
22226 darwin* | rhapsody*)
22228 rhapsody* | darwin1.[012])
22229 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22233 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22235 case ${MACOSX_DEPLOYMENT_TARGET} in
22237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22240 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22246 archive_cmds_need_lc_F77=no
22247 hardcode_direct_F77=no
22248 hardcode_automatic_F77=yes
22249 hardcode_shlibpath_var_F77=unsupported
22250 whole_archive_flag_spec_F77=''
22251 link_all_deplibs_F77=yes
22252 if test "$GCC" = yes ; then
22253 output_verbose_link_cmd='echo'
22254 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22255 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22257 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}'
22258 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}'
22260 case $cc_basename in
22262 output_verbose_link_cmd='echo'
22263 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22266 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}'
22267 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}'
22277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22278 hardcode_libdir_flag_spec_F77='-L$libdir'
22279 hardcode_shlibpath_var_F77=no
22286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22287 # support. Future versions do this automatically, but an explicit c++rt0.o
22288 # does not break anything, and helps significantly (at the cost of a little
22291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22292 hardcode_libdir_flag_spec_F77='-R$libdir'
22293 hardcode_direct_F77=yes
22294 hardcode_shlibpath_var_F77=no
22297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22300 hardcode_direct_F77=yes
22301 hardcode_minus_L_F77=yes
22302 hardcode_shlibpath_var_F77=no
22305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22306 freebsd* | kfreebsd*-gnu | dragonfly*)
22307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22308 hardcode_libdir_flag_spec_F77='-R$libdir'
22309 hardcode_direct_F77=yes
22310 hardcode_shlibpath_var_F77=no
22314 if test "$GCC" = yes; then
22315 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'
22317 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'
22319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22320 hardcode_libdir_separator_F77=:
22321 hardcode_direct_F77=yes
22323 # hardcode_minus_L: Not really in the search PATH,
22324 # but as the default location of the library.
22325 hardcode_minus_L_F77=yes
22326 export_dynamic_flag_spec_F77='${wl}-E'
22330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22333 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22335 if test "$with_gnu_ld" = no; then
22336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22337 hardcode_libdir_separator_F77=:
22339 hardcode_direct_F77=yes
22340 export_dynamic_flag_spec_F77='${wl}-E'
22342 # hardcode_minus_L: Not really in the search PATH,
22343 # but as the default location of the library.
22344 hardcode_minus_L_F77=yes
22349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22370 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22374 if test "$with_gnu_ld" = no; then
22375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22376 hardcode_libdir_separator_F77=:
22380 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22381 hardcode_direct_F77=no
22382 hardcode_shlibpath_var_F77=no
22385 hardcode_direct_F77=yes
22386 export_dynamic_flag_spec_F77='${wl}-E'
22388 # hardcode_minus_L: Not really in the search PATH,
22389 # but as the default location of the library.
22390 hardcode_minus_L_F77=yes
22396 irix5* | irix6* | nonstopux*)
22397 if test "$GCC" = yes; then
22398 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'
22400 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'
22401 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404 hardcode_libdir_separator_F77=:
22405 link_all_deplibs_F77=yes
22409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22412 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22415 hardcode_direct_F77=yes
22416 hardcode_shlibpath_var_F77=no
22420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421 hardcode_direct_F77=yes
22422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423 hardcode_libdir_separator_F77=:
22424 hardcode_shlibpath_var_F77=no
22428 hardcode_direct_F77=yes
22429 hardcode_shlibpath_var_F77=no
22430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22431 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22432 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22434 export_dynamic_flag_spec_F77='${wl}-E'
22437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_F77='-R$libdir'
22442 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22450 hardcode_libdir_flag_spec_F77='-L$libdir'
22451 hardcode_minus_L_F77=yes
22452 allow_undefined_flag_F77=unsupported
22453 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'
22454 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22458 if test "$GCC" = yes; then
22459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22460 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'
22462 allow_undefined_flag_F77=' -expect_unresolved \*'
22463 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'
22465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22466 hardcode_libdir_separator_F77=:
22469 osf4* | osf5*) # as osf3* with the addition of -msym flag
22470 if test "$GCC" = yes; then
22471 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22472 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'
22473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22475 allow_undefined_flag_F77=' -expect_unresolved \*'
22476 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'
22477 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~
22478 $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'
22480 # Both c and cxx compiler support -rpath directly
22481 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22483 hardcode_libdir_separator_F77=:
22487 no_undefined_flag_F77=' -z text'
22488 if test "$GCC" = yes; then
22490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22499 hardcode_libdir_flag_spec_F77='-R$libdir'
22500 hardcode_shlibpath_var_F77=no
22502 solaris2.[0-5] | solaris2.[0-5].*) ;;
22504 # The compiler driver will combine linker options so we
22505 # cannot just pass the convience library names through
22506 # without $wl, iff we do not link with $LD.
22507 # Luckily, gcc supports the same syntax we need for Sun Studio.
22508 # Supported since Solaris 2.6 (maybe 2.5.1?)
22511 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22513 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' ;;
22516 link_all_deplibs_F77=yes
22520 if test "x$host_vendor" = xsequent; then
22521 # Use $CC to link under sequent, because it throws in some extra .o
22522 # files that make .init and .fini sections work.
22523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_libdir_flag_spec_F77='-L$libdir'
22528 hardcode_direct_F77=yes
22529 hardcode_minus_L_F77=yes
22530 hardcode_shlibpath_var_F77=no
22534 case $host_vendor in
22536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_direct_F77=yes # is this really true???
22540 ## LD is ld it makes a PLAMLIB
22541 ## CC just makes a GrossModule.
22542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22543 reload_cmds_F77='$CC -r -o $output$reload_objs'
22544 hardcode_direct_F77=no
22547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22551 runpath_var='LD_RUN_PATH'
22552 hardcode_shlibpath_var_F77=no
22556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22557 hardcode_shlibpath_var_F77=no
22558 export_dynamic_flag_spec_F77='-Bexport'
22562 if test -d /usr/nec; then
22563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22564 hardcode_shlibpath_var_F77=no
22565 runpath_var=LD_RUN_PATH
22566 hardcode_runpath_var=yes
22571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22572 no_undefined_flag_F77='${wl}-z,text'
22573 archive_cmds_need_lc_F77=no
22574 hardcode_shlibpath_var_F77=no
22575 runpath_var='LD_RUN_PATH'
22577 if test "$GCC" = yes; then
22578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22586 sysv5* | sco3.2v5* | sco5v6*)
22587 # Note: We can NOT use -z defs as we might desire, because we do not
22588 # link with -lc, and that would cause any symbols used from libc to
22589 # always be unresolved, which means just about no library would
22590 # ever link correctly. If we're not using GNU ld we use -z text
22591 # though, which does catch some bad symbols but isn't as heavy-handed
22593 no_undefined_flag_F77='${wl}-z,text'
22594 allow_undefined_flag_F77='${wl}-z,nodefs'
22595 archive_cmds_need_lc_F77=no
22596 hardcode_shlibpath_var_F77=no
22597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22598 hardcode_libdir_separator_F77=':'
22599 link_all_deplibs_F77=yes
22600 export_dynamic_flag_spec_F77='${wl}-Bexport'
22601 runpath_var='LD_RUN_PATH'
22603 if test "$GCC" = yes; then
22604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22614 hardcode_libdir_flag_spec_F77='-L$libdir'
22615 hardcode_shlibpath_var_F77=no
22624 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22625 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22626 test "$ld_shlibs_F77" = no && can_build_shared=no
22629 # Do we need to explicitly link libc?
22631 case "x$archive_cmds_need_lc_F77" in
22633 # Assume -lc should be added
22634 archive_cmds_need_lc_F77=yes
22636 if test "$enable_shared" = yes && test "$GCC" = yes; then
22637 case $archive_cmds_F77 in
22639 # FIXME: we may have to deal with multi-command sequences.
22642 # Test whether the compiler implicitly links with -lc since on some
22643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22644 # to ld, don't add -lc before -lgcc.
22645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22651 (eval $ac_compile) 2>&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } 2>conftest.err; then
22657 libobjs=conftest.$ac_objext
22659 wl=$lt_prog_compiler_wl_F77
22660 pic_flag=$lt_prog_compiler_pic_F77
22666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22667 allow_undefined_flag_F77=
22668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }
22674 archive_cmds_need_lc_F77=no
22676 archive_cmds_need_lc_F77=yes
22678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22680 cat conftest.err 1>&5
22683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22693 library_names_spec=
22694 libname_spec='lib$name'
22698 postuninstall_cmds=
22702 shlibpath_overrides_runpath=unknown
22704 dynamic_linker="$host_os ld.so"
22705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22706 if test "$GCC" = yes; then
22707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22709 # if the path contains ";" then we assume it to be the separator
22710 # otherwise default to the standard path separator (i.e. ":") - it is
22711 # assumed that no part of a normal pathname contains ";" but that should
22712 # okay in the real world where ";" in dirpaths is itself problematic.
22713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22720 need_lib_prefix=unknown
22721 hardcode_into_libs=no
22723 # when you set need_version to no, make sure it does not cause -set_version
22724 # flags to be left without arguments
22725 need_version=unknown
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22731 shlibpath_var=LIBPATH
22733 # AIX 3 has no versioning support, so we append a major version to the name.
22734 soname_spec='${libname}${release}${shared_ext}$major'
22741 hardcode_into_libs=yes
22742 if test "$host_cpu" = ia64; then
22743 # AIX 5 supports IA64
22744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22745 shlibpath_var=LD_LIBRARY_PATH
22747 # With GCC up to 2.95.x, collect2 would create an import file
22748 # for dependence libraries. The import file would start with
22749 # the line `#! .'. This would cause the generated library to
22750 # depend on `.', always an invalid library. This was fixed in
22751 # development snapshots of GCC prior to 3.0.
22753 aix4 | aix4.[01] | aix4.[01].*)
22754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22759 can_build_shared=no
22763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22764 # soname into executable. Probably we can add versioning support to
22765 # collect2, so additional links can be useful in future.
22766 if test "$aix_use_runtimelinking" = yes; then
22767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22768 # instead of lib<name>.a to let people know that these are not
22769 # typical AIX shared libraries.
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 # We preserve .a as extension for shared libraries through AIX4.2
22773 # and later when we are not doing run time linking.
22774 library_names_spec='${libname}${release}.a $libname.a'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22777 shlibpath_var=LIBPATH
22782 library_names_spec='$libname.ixlibrary $libname.a'
22783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22784 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'
22788 library_names_spec='${libname}${shared_ext}'
22789 dynamic_linker="$host_os ld.so"
22790 shlibpath_var=LIBRARY_PATH
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22799 shlibpath_var=LD_LIBRARY_PATH
22800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22802 # the default ld.so.conf also contains /usr/contrib/lib and
22803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22804 # libtool to hard-code these into programs
22807 cygwin* | mingw* | pw32*)
22808 version_type=windows
22813 case $GCC,$host_os in
22814 yes,cygwin* | yes,mingw* | yes,pw32*)
22815 library_names_spec='$libname.dll.a'
22816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22817 postinstall_cmds='base_file=`basename \${file}`~
22818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22819 dldir=$destdir/`dirname \$dlpath`~
22820 test -d \$dldir || mkdir -p \$dldir~
22821 $install_prog $dir/$dlname \$dldir/$dlname~
22822 chmod a+x \$dldir/$dlname'
22823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22824 dlpath=$dir/\$dldll~
22826 shlibpath_overrides_runpath=yes
22830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22835 # MinGW DLLs use traditional 'lib' prefix
22836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22839 # It is most probably a Windows format PATH printed by
22840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22841 # path with ; separators, and with drive letters. We can handle the
22842 # drive letters (cygwin fileutils understands them), so leave them,
22843 # especially as we might pass files found there to a mingw objdump,
22844 # which wouldn't understand a cygwinified path. Ahh.
22845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22851 # pw32 DLLs use 'pw' prefix rather than 'lib'
22852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22861 dynamic_linker='Win32 ld.exe'
22862 # FIXME: first we should search . and the directory the executable is in
22866 darwin* | rhapsody*)
22867 dynamic_linker="$host_os dyld"
22868 version_type=darwin
22871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22872 soname_spec='${libname}${release}${major}$shared_ext'
22873 shlibpath_overrides_runpath=yes
22874 shlibpath_var=DYLD_LIBRARY_PATH
22875 shrext_cmds='.dylib'
22876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22877 if test "$GCC" = yes; then
22878 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"`
22880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22890 soname_spec='${libname}${release}${shared_ext}$major'
22891 shlibpath_var=LD_LIBRARY_PATH
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 shlibpath_var=LD_LIBRARY_PATH
22905 shlibpath_overrides_runpath=no
22906 hardcode_into_libs=yes
22907 dynamic_linker='GNU ld.so'
22910 freebsd* | dragonfly*)
22911 # DragonFly does not have aout. When/if they implement a new
22912 # versioning mechanism, adjust this.
22913 if test -x /usr/bin/objformat; then
22914 objformat=`/usr/bin/objformat`
22917 freebsd[123]*) objformat=aout ;;
22918 *) objformat=elf ;;
22921 version_type=freebsd-$objformat
22922 case $version_type in
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22933 shlibpath_var=LD_LIBRARY_PATH
22936 shlibpath_overrides_runpath=yes
22938 freebsd3.[01]* | freebsdelf3.[01]*)
22939 shlibpath_overrides_runpath=yes
22940 hardcode_into_libs=yes
22942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22944 shlibpath_overrides_runpath=no
22945 hardcode_into_libs=yes
22947 freebsd*) # from 4.6 on
22948 shlibpath_overrides_runpath=yes
22949 hardcode_into_libs=yes
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 shlibpath_var=LD_LIBRARY_PATH
22961 hardcode_into_libs=yes
22964 hpux9* | hpux10* | hpux11*)
22965 # Give a soname corresponding to the major version so that dld.sl refuses to
22966 # link against other versions.
22973 hardcode_into_libs=yes
22974 dynamic_linker="$host_os dld.so"
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 soname_spec='${libname}${release}${shared_ext}$major'
22979 if test "X$HPUX_IA64_MODE" = X32; then
22980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22988 hardcode_into_libs=yes
22989 dynamic_linker="$host_os dld.sl"
22990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22999 dynamic_linker="$host_os dld.sl"
23000 shlibpath_var=SHLIB_PATH
23001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23007 postinstall_cmds='chmod 555 $lib'
23014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015 soname_spec='${libname}${release}${shared_ext}$major'
23016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23017 shlibpath_var=LD_LIBRARY_PATH
23018 shlibpath_overrides_runpath=no
23019 hardcode_into_libs=yes
23022 irix5* | irix6* | nonstopux*)
23024 nonstopux*) version_type=nonstopux ;;
23026 if test "$lt_cv_prog_gnu_ld" = yes; then
23034 soname_spec='${libname}${release}${shared_ext}$major'
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23037 irix5* | nonstopux*)
23038 libsuff= shlibsuff=
23041 case $LD in # libtool.m4 will add one of these switches to LD
23042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23043 libsuff= shlibsuff= libmagic=32-bit;;
23044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23045 libsuff=32 shlibsuff=N32 libmagic=N32;;
23046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23048 *) libsuff= shlibsuff= libmagic=never-match;;
23052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23053 shlibpath_overrides_runpath=no
23054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23056 hardcode_into_libs=yes
23059 # No shared lib support for Linux oldld, aout, or coff.
23060 linux*oldld* | linux*aout* | linux*coff*)
23064 # This must be Linux ELF.
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070 soname_spec='${libname}${release}${shared_ext}$major'
23071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23072 shlibpath_var=LD_LIBRARY_PATH
23073 shlibpath_overrides_runpath=no
23074 # This implies no fast_install, which is unacceptable.
23075 # Some rework will be needed to allow for fast_install
23076 # before this can be enabled.
23077 hardcode_into_libs=yes
23079 # Append ld.so.conf contents to the search path
23080 if test -f /etc/ld.so.conf; then
23081 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' ' '`
23082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23085 # We used to test for /lib/ld.so.1 and disable shared libraries on
23086 # powerpc, because MkLinux only supported shared libraries with the
23087 # GNU dynamic linker. Since this was broken with cross compilers,
23088 # most powerpc-linux boxes support dynamic linking these days and
23089 # people can always --disable-shared, the test was removed, and we
23090 # assume the GNU/Linux dynamic linker is in use.
23091 dynamic_linker='GNU/Linux ld.so'
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 shlibpath_overrides_runpath=no
23102 hardcode_into_libs=yes
23103 dynamic_linker='GNU ld.so'
23110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23113 dynamic_linker='NetBSD (a.out) ld.so'
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23116 soname_spec='${libname}${release}${shared_ext}$major'
23117 dynamic_linker='NetBSD ld.elf_so'
23119 shlibpath_var=LD_LIBRARY_PATH
23120 shlibpath_overrides_runpath=yes
23121 hardcode_into_libs=yes
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=yes
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 soname_spec='${libname}${release}${shared_ext}$major'
23137 shlibpath_var=LD_LIBRARY_PATH
23138 shlibpath_overrides_runpath=yes
23143 sys_lib_dlsearch_path_spec="/usr/lib"
23145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23148 *) need_version=no ;;
23150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23155 openbsd2.[89] | openbsd2.[89].*)
23156 shlibpath_overrides_runpath=no
23159 shlibpath_overrides_runpath=yes
23163 shlibpath_overrides_runpath=yes
23168 libname_spec='$name'
23171 library_names_spec='$libname${shared_ext} $libname.a'
23172 dynamic_linker='OS/2 ld.exe'
23173 shlibpath_var=LIBPATH
23176 osf3* | osf4* | osf5*)
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23182 shlibpath_var=LD_LIBRARY_PATH
23183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23192 soname_spec='${libname}${release}${shared_ext}$major'
23193 shlibpath_var=LD_LIBRARY_PATH
23194 shlibpath_overrides_runpath=yes
23195 hardcode_into_libs=yes
23196 # ldd complains unless libraries are executable
23197 postinstall_cmds='chmod +x $lib'
23202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23204 shlibpath_var=LD_LIBRARY_PATH
23205 shlibpath_overrides_runpath=yes
23206 if test "$with_gnu_ld" = yes; then
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 case $host_vendor in
23219 shlibpath_overrides_runpath=no
23221 export_dynamic_flag_spec='${wl}-Blargedynsym'
23222 runpath_var=LD_RUN_PATH
23230 shlibpath_overrides_runpath=no
23231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23237 if test -d /usr/nec ;then
23239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23240 soname_spec='$libname${shared_ext}.$major'
23241 shlibpath_var=LD_LIBRARY_PATH
23245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23246 version_type=freebsd-elf
23249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23250 soname_spec='${libname}${release}${shared_ext}$major'
23251 shlibpath_var=LD_LIBRARY_PATH
23252 hardcode_into_libs=yes
23253 if test "$with_gnu_ld" = yes; then
23254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23255 shlibpath_overrides_runpath=no
23257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23258 shlibpath_overrides_runpath=yes
23261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23265 sys_lib_dlsearch_path_spec='/usr/lib'
23270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 shlibpath_var=LD_LIBRARY_PATH
23279 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23280 echo "${ECHO_T}$dynamic_linker" >&6; }
23281 test "$dynamic_linker" = no && can_build_shared=no
23283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23284 if test "$GCC" = yes; then
23285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23288 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23290 hardcode_action_F77=
23291 if test -n "$hardcode_libdir_flag_spec_F77" || \
23292 test -n "$runpath_var_F77" || \
23293 test "X$hardcode_automatic_F77" = "Xyes" ; then
23295 # We can hardcode non-existant directories.
23296 if test "$hardcode_direct_F77" != no &&
23297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23298 # have to relink, otherwise we might link with an installed library
23299 # when we should be linking with a yet-to-be-installed one
23300 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23301 test "$hardcode_minus_L_F77" != no; then
23302 # Linking always hardcodes the temporary library directory.
23303 hardcode_action_F77=relink
23305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23306 hardcode_action_F77=immediate
23309 # We cannot hardcode anything, or else we can only hardcode existing
23311 hardcode_action_F77=unsupported
23313 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23314 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23316 if test "$hardcode_action_F77" = relink; then
23317 # Fast installation is not supported
23318 enable_fast_install=no
23319 elif test "$shlibpath_overrides_runpath" = yes ||
23320 test "$enable_shared" = no; then
23321 # Fast installation is not necessary
23322 enable_fast_install=needless
23326 # The else clause should only fire when bootstrapping the
23327 # libtool distribution, otherwise you forgot to ship ltmain.sh
23328 # with your package, and you will get complaints that there are
23329 # no rules to generate ltmain.sh.
23330 if test -f "$ltmain"; then
23331 # See if we are running on zsh, and set the options which allow our commands through
23332 # without removal of \ escapes.
23333 if test -n "${ZSH_VERSION+set}" ; then
23334 setopt NO_GLOB_SUBST
23336 # Now quote all the things that may contain metacharacters while being
23337 # careful not to overquote the AC_SUBSTed values. We take copies of the
23338 # variables and quote the copies for generation of the libtool script.
23339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23343 deplibs_check_method reload_flag reload_cmds need_locks \
23344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23345 lt_cv_sys_global_symbol_to_c_name_address \
23346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23347 old_postinstall_cmds old_postuninstall_cmds \
23351 lt_prog_compiler_wl_F77 \
23352 lt_prog_compiler_pic_F77 \
23353 lt_prog_compiler_static_F77 \
23354 lt_prog_compiler_no_builtin_flag_F77 \
23355 export_dynamic_flag_spec_F77 \
23356 thread_safe_flag_spec_F77 \
23357 whole_archive_flag_spec_F77 \
23358 enable_shared_with_static_runtimes_F77 \
23359 old_archive_cmds_F77 \
23360 old_archive_from_new_cmds_F77 \
23361 predep_objects_F77 \
23362 postdep_objects_F77 \
23365 compiler_lib_search_path_F77 \
23367 archive_expsym_cmds_F77 \
23368 postinstall_cmds_F77 \
23369 postuninstall_cmds_F77 \
23370 old_archive_from_expsyms_cmds_F77 \
23371 allow_undefined_flag_F77 \
23372 no_undefined_flag_F77 \
23373 export_symbols_cmds_F77 \
23374 hardcode_libdir_flag_spec_F77 \
23375 hardcode_libdir_flag_spec_ld_F77 \
23376 hardcode_libdir_separator_F77 \
23377 hardcode_automatic_F77 \
23379 module_expsym_cmds_F77 \
23380 lt_cv_prog_compiler_c_o_F77 \
23381 exclude_expsyms_F77 \
23382 include_expsyms_F77; do
23385 old_archive_cmds_F77 | \
23386 old_archive_from_new_cmds_F77 | \
23387 archive_cmds_F77 | \
23388 archive_expsym_cmds_F77 | \
23389 module_cmds_F77 | \
23390 module_expsym_cmds_F77 | \
23391 old_archive_from_expsyms_cmds_F77 | \
23392 export_symbols_cmds_F77 | \
23393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23394 postinstall_cmds | postuninstall_cmds | \
23395 old_postinstall_cmds | old_postuninstall_cmds | \
23396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23397 # Double-quote double-evaled strings.
23398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23407 *'\$0 --fallback-echo"')
23408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23414 cat <<__EOF__ >> "$cfgfile"
23415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23419 # Shell to use when invoking shell scripts.
23422 # Whether or not to build shared libraries.
23423 build_libtool_libs=$enable_shared
23425 # Whether or not to build static libraries.
23426 build_old_libs=$enable_static
23428 # Whether or not to add -lc for building shared libraries.
23429 build_libtool_need_lc=$archive_cmds_need_lc_F77
23431 # Whether or not to disallow shared libs when runtime libs are static
23432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23434 # Whether or not to optimize for fast installation.
23435 fast_install=$enable_fast_install
23438 host_alias=$host_alias
23442 # The build system.
23443 build_alias=$build_alias
23447 # An echo program that does not interpret backslashes.
23452 AR_FLAGS=$lt_AR_FLAGS
23457 # LTCC compiler flags.
23458 LTCFLAGS=$lt_LTCFLAGS
23460 # A language-specific compiler.
23461 CC=$lt_compiler_F77
23463 # Is the compiler the GNU C compiler?
23469 # The linker used to build libraries.
23472 # Whether we need hard or soft links.
23475 # A BSD-compatible nm program.
23478 # A symbol stripping program
23481 # Used to examine libraries when file_magic_cmd begins "file"
23482 MAGIC_CMD=$MAGIC_CMD
23484 # Used on cygwin: DLL creation program.
23487 # Used on cygwin: object dumper.
23490 # Used on cygwin: assembler.
23493 # The name of the directory that contains temporary libtool files.
23496 # How to create reloadable object files.
23497 reload_flag=$lt_reload_flag
23498 reload_cmds=$lt_reload_cmds
23500 # How to pass a linker flag through the compiler.
23501 wl=$lt_lt_prog_compiler_wl_F77
23503 # Object file suffix (normally "o").
23504 objext="$ac_objext"
23506 # Old archive suffix (normally "a").
23509 # Shared library suffix (normally ".so").
23510 shrext_cmds='$shrext_cmds'
23512 # Executable file suffix (normally "").
23515 # Additional compiler flags for building library objects.
23516 pic_flag=$lt_lt_prog_compiler_pic_F77
23519 # What is the maximum length of a command?
23520 max_cmd_len=$lt_cv_sys_max_cmd_len
23522 # Does compiler simultaneously support -c and -o options?
23523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23525 # Must we lock files when doing compilation?
23526 need_locks=$lt_need_locks
23528 # Do we need the lib prefix for modules?
23529 need_lib_prefix=$need_lib_prefix
23531 # Do we need a version for libraries?
23532 need_version=$need_version
23534 # Whether dlopen is supported.
23535 dlopen_support=$enable_dlopen
23537 # Whether dlopen of programs is supported.
23538 dlopen_self=$enable_dlopen_self
23540 # Whether dlopen of statically linked programs is supported.
23541 dlopen_self_static=$enable_dlopen_self_static
23543 # Compiler flag to prevent dynamic linking.
23544 link_static_flag=$lt_lt_prog_compiler_static_F77
23546 # Compiler flag to turn off builtin functions.
23547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23549 # Compiler flag to allow reflexive dlopens.
23550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23552 # Compiler flag to generate shared objects directly from archives.
23553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23555 # Compiler flag to generate thread-safe objects.
23556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23558 # Library versioning type.
23559 version_type=$version_type
23561 # Format of library name prefix.
23562 libname_spec=$lt_libname_spec
23564 # List of archive names. First name is the real one, the rest are links.
23565 # The last name is the one that the linker finds with -lNAME.
23566 library_names_spec=$lt_library_names_spec
23568 # The coded name of the library, if different from the real name.
23569 soname_spec=$lt_soname_spec
23571 # Commands used to build and install an old-style archive.
23573 old_archive_cmds=$lt_old_archive_cmds_F77
23574 old_postinstall_cmds=$lt_old_postinstall_cmds
23575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23577 # Create an old-style archive from a shared archive.
23578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23580 # Create a temporary old-style archive to link instead of a shared archive.
23581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23583 # Commands used to build and install a shared archive.
23584 archive_cmds=$lt_archive_cmds_F77
23585 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23586 postinstall_cmds=$lt_postinstall_cmds
23587 postuninstall_cmds=$lt_postuninstall_cmds
23589 # Commands used to build a loadable module (assumed same as above if empty)
23590 module_cmds=$lt_module_cmds_F77
23591 module_expsym_cmds=$lt_module_expsym_cmds_F77
23593 # Commands to strip libraries.
23594 old_striplib=$lt_old_striplib
23595 striplib=$lt_striplib
23597 # Dependencies to place before the objects being linked to create a
23599 predep_objects=$lt_predep_objects_F77
23601 # Dependencies to place after the objects being linked to create a
23603 postdep_objects=$lt_postdep_objects_F77
23605 # Dependencies to place before the objects being linked to create a
23607 predeps=$lt_predeps_F77
23609 # Dependencies to place after the objects being linked to create a
23611 postdeps=$lt_postdeps_F77
23613 # The library search path used internally by the compiler when linking
23614 # a shared library.
23615 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23617 # Method to check whether dependent libraries are shared objects.
23618 deplibs_check_method=$lt_deplibs_check_method
23620 # Command to use when deplibs_check_method == file_magic.
23621 file_magic_cmd=$lt_file_magic_cmd
23623 # Flag that allows shared libraries with undefined symbols to be built.
23624 allow_undefined_flag=$lt_allow_undefined_flag_F77
23626 # Flag that forces no undefined symbols.
23627 no_undefined_flag=$lt_no_undefined_flag_F77
23629 # Commands used to finish a libtool library installation in a directory.
23630 finish_cmds=$lt_finish_cmds
23632 # Same as above, but a single script fragment to be evaled but not shown.
23633 finish_eval=$lt_finish_eval
23635 # Take the output of nm and produce a listing of raw symbols and C names.
23636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23638 # Transform the output of nm in a proper C declaration
23639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23641 # Transform the output of nm in a C name address pair
23642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23644 # This is the shared library runtime path variable.
23645 runpath_var=$runpath_var
23647 # This is the shared library path variable.
23648 shlibpath_var=$shlibpath_var
23650 # Is shlibpath searched before the hard-coded library search path?
23651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23653 # How to hardcode a shared library path into an executable.
23654 hardcode_action=$hardcode_action_F77
23656 # Whether we should hardcode library paths into libraries.
23657 hardcode_into_libs=$hardcode_into_libs
23659 # Flag to hardcode \$libdir into a binary during linking.
23660 # This must work even if \$libdir does not exist.
23661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23663 # If ld is used when linking, flag to hardcode \$libdir into
23664 # a binary during linking. This must work even if \$libdir does
23666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23668 # Whether we need a single -rpath flag with a separated argument.
23669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23672 # resulting binary.
23673 hardcode_direct=$hardcode_direct_F77
23675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23676 # resulting binary.
23677 hardcode_minus_L=$hardcode_minus_L_F77
23679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23680 # the resulting binary.
23681 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23683 # Set to yes if building a shared library automatically hardcodes DIR into the library
23684 # and all subsequent libraries and executables linked against it.
23685 hardcode_automatic=$hardcode_automatic_F77
23687 # Variables whose values should be saved in libtool wrapper scripts and
23688 # restored at relink time.
23689 variables_saved_for_relink="$variables_saved_for_relink"
23691 # Whether libtool must link a program against all its dependency libraries.
23692 link_all_deplibs=$link_all_deplibs_F77
23694 # Compile-time system search path for libraries
23695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23697 # Run-time system search path for libraries
23698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23700 # Fix the shell variable \$srcfile for the compiler.
23701 fix_srcfile_path="$fix_srcfile_path_F77"
23703 # Set to yes if exported symbols are required.
23704 always_export_symbols=$always_export_symbols_F77
23706 # The commands to list exported symbols.
23707 export_symbols_cmds=$lt_export_symbols_cmds_F77
23709 # The commands to extract the exported symbol list from a shared archive.
23710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23712 # Symbols that should not be listed in the preloaded symbols.
23713 exclude_expsyms=$lt_exclude_expsyms_F77
23715 # Symbols that must always be exported.
23716 include_expsyms=$lt_include_expsyms_F77
23718 # ### END LIBTOOL TAG CONFIG: $tagname
23724 # If there is no Makefile yet, we rely on a make rule to execute
23725 # `config.status --recheck' to rerun these tests and create the
23726 # libtool script then.
23727 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23728 if test -f "$ltmain_in"; then
23729 test -f Makefile && make "$ltmain"
23735 ac_cpp='$CPP $CPPFLAGS'
23736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23748 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23750 ac_cpp='$CPP $CPPFLAGS'
23751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23756 # Source file extension for Java test sources.
23759 # Object file extension for compiled Java test sources.
23763 # Code to be used in simple compile tests
23764 lt_simple_compile_test_code="class foo {}\n"
23766 # Code to be used in simple link tests
23767 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23769 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23771 # If no C compiler was specified, use CC.
23774 # If no C compiler flags were specified, use CFLAGS.
23775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23777 # Allow CC to be a program name with arguments.
23781 # save warnings/boilerplate of simple test code
23782 ac_outfile=conftest.$ac_objext
23783 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23785 _lt_compiler_boilerplate=`cat conftest.err`
23788 ac_outfile=conftest.$ac_objext
23789 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23791 _lt_linker_boilerplate=`cat conftest.err`
23795 # Allow CC to be a program name with arguments.
23800 for cc_temp in $compiler""; do
23802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23811 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23812 archive_cmds_need_lc_GCJ=no
23814 old_archive_cmds_GCJ=$old_archive_cmds
23817 lt_prog_compiler_no_builtin_flag_GCJ=
23819 if test "$GCC" = yes; then
23820 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23823 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23824 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 lt_cv_prog_compiler_rtti_exceptions=no
23829 ac_outfile=conftest.$ac_objext
23830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831 lt_compiler_flag="-fno-rtti -fno-exceptions"
23832 # Insert the option either (1) after the last *FLAGS variable, or
23833 # (2) before a word containing "conftest.", or (3) at the end.
23834 # Note that $ac_compile itself does not contain backslashes and begins
23835 # with a dollar sign (not a hyphen), so the echo should work correctly.
23836 # The option is referenced via a variable to avoid confusing sed.
23837 lt_compile=`echo "$ac_compile" | $SED \
23838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840 -e 's:$: $lt_compiler_flag:'`
23841 (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
23842 (eval "$lt_compile" 2>conftest.err)
23844 cat conftest.err >&5
23845 echo "$as_me:23845: \$? = $ac_status" >&5
23846 if (exit $ac_status) && test -s "$ac_outfile"; then
23847 # The compiler can only warn and ignore the option if not recognized
23848 # So say no if there are warnings other than the usual output.
23849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23852 lt_cv_prog_compiler_rtti_exceptions=yes
23858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23859 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23862 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23869 lt_prog_compiler_wl_GCJ=
23870 lt_prog_compiler_pic_GCJ=
23871 lt_prog_compiler_static_GCJ=
23873 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23874 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23876 if test "$GCC" = yes; then
23877 lt_prog_compiler_wl_GCJ='-Wl,'
23878 lt_prog_compiler_static_GCJ='-static'
23882 # All AIX code is PIC.
23883 if test "$host_cpu" = ia64; then
23884 # AIX 5 now supports IA64 processor
23885 lt_prog_compiler_static_GCJ='-Bstatic'
23890 # FIXME: we need at least 68020 code to build shared libraries, but
23891 # adding the `-m68020' flag to GCC prevents building anything better,
23893 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23896 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23897 # PIC is the default for these OSes.
23900 mingw* | pw32* | os2*)
23901 # This hack is so that the source file can tell whether it is being
23902 # built for inclusion in a dll (and should export symbols for example).
23903 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23906 darwin* | rhapsody*)
23907 # PIC is the default on this platform
23908 # Common symbols not allowed in MH_DYLIB files
23909 lt_prog_compiler_pic_GCJ='-fno-common'
23913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23914 # Instead, we relocate shared libraries at runtime.
23918 # Just because we use GCC doesn't mean we suddenly get shared libraries
23919 # on systems that don't support them.
23920 lt_prog_compiler_can_build_shared_GCJ=no
23925 if test -d /usr/nec; then
23926 lt_prog_compiler_pic_GCJ=-Kconform_pic
23931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23932 # not for PA HP-UX.
23938 lt_prog_compiler_pic_GCJ='-fPIC'
23944 lt_prog_compiler_pic_GCJ='-fPIC'
23948 # PORTME Check for flag to pass linker flags through the system compiler.
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 if test "$host_cpu" = ia64; then
23953 # AIX 5 now supports IA64 processor
23954 lt_prog_compiler_static_GCJ='-Bstatic'
23956 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23960 # PIC is the default on this platform
23961 # Common symbols not allowed in MH_DYLIB files
23962 case $cc_basename in
23964 lt_prog_compiler_pic_GCJ='-qnocommon'
23965 lt_prog_compiler_wl_GCJ='-Wl,'
23970 mingw* | pw32* | os2*)
23971 # This hack is so that the source file can tell whether it is being
23972 # built for inclusion in a dll (and should export symbols for example).
23973 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23976 hpux9* | hpux10* | hpux11*)
23977 lt_prog_compiler_wl_GCJ='-Wl,'
23978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23979 # not for PA HP-UX.
23985 lt_prog_compiler_pic_GCJ='+Z'
23988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23989 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23992 irix5* | irix6* | nonstopux*)
23993 lt_prog_compiler_wl_GCJ='-Wl,'
23994 # PIC (with -KPIC) is the default.
23995 lt_prog_compiler_static_GCJ='-non_shared'
23999 lt_prog_compiler_pic_GCJ='-KPIC'
24000 lt_prog_compiler_static_GCJ='-Bstatic'
24004 case $cc_basename in
24006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-static'
24010 pgcc* | pgf77* | pgf90* | pgf95*)
24011 # Portland Group compilers (*not* the Pentium gcc compiler,
24012 # which looks to be a dead project)
24013 lt_prog_compiler_wl_GCJ='-Wl,'
24014 lt_prog_compiler_pic_GCJ='-fpic'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24018 lt_prog_compiler_wl_GCJ='-Wl,'
24019 # All Alpha code is PIC.
24020 lt_prog_compiler_static_GCJ='-non_shared'
24025 osf3* | osf4* | osf5*)
24026 lt_prog_compiler_wl_GCJ='-Wl,'
24027 # All OSF/1 code is PIC.
24028 lt_prog_compiler_static_GCJ='-non_shared'
24032 lt_prog_compiler_pic_GCJ='-KPIC'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
24034 case $cc_basename in
24035 f77* | f90* | f95*)
24036 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24038 lt_prog_compiler_wl_GCJ='-Wl,';;
24043 lt_prog_compiler_wl_GCJ='-Qoption ld '
24044 lt_prog_compiler_pic_GCJ='-PIC'
24045 lt_prog_compiler_static_GCJ='-Bstatic'
24048 sysv4 | sysv4.2uw2* | sysv4.3*)
24049 lt_prog_compiler_wl_GCJ='-Wl,'
24050 lt_prog_compiler_pic_GCJ='-KPIC'
24051 lt_prog_compiler_static_GCJ='-Bstatic'
24055 if test -d /usr/nec ;then
24056 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24057 lt_prog_compiler_static_GCJ='-Bstatic'
24061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24062 lt_prog_compiler_wl_GCJ='-Wl,'
24063 lt_prog_compiler_pic_GCJ='-KPIC'
24064 lt_prog_compiler_static_GCJ='-Bstatic'
24068 lt_prog_compiler_wl_GCJ='-Wl,'
24069 lt_prog_compiler_can_build_shared_GCJ=no
24073 lt_prog_compiler_pic_GCJ='-pic'
24074 lt_prog_compiler_static_GCJ='-Bstatic'
24078 lt_prog_compiler_can_build_shared_GCJ=no
24083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24084 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24087 # Check to make sure the PIC flag actually works.
24089 if test -n "$lt_prog_compiler_pic_GCJ"; then
24091 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24093 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 lt_prog_compiler_pic_works_GCJ=no
24097 ac_outfile=conftest.$ac_objext
24098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24099 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24100 # Insert the option either (1) after the last *FLAGS variable, or
24101 # (2) before a word containing "conftest.", or (3) at the end.
24102 # Note that $ac_compile itself does not contain backslashes and begins
24103 # with a dollar sign (not a hyphen), so the echo should work correctly.
24104 # The option is referenced via a variable to avoid confusing sed.
24105 lt_compile=`echo "$ac_compile" | $SED \
24106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24108 -e 's:$: $lt_compiler_flag:'`
24109 (eval echo "\"\$as_me:24109: $lt_compile\"" >&5)
24110 (eval "$lt_compile" 2>conftest.err)
24112 cat conftest.err >&5
24113 echo "$as_me:24113: \$? = $ac_status" >&5
24114 if (exit $ac_status) && test -s "$ac_outfile"; then
24115 # The compiler can only warn and ignore the option if not recognized
24116 # So say no if there are warnings other than the usual output.
24117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24120 lt_prog_compiler_pic_works_GCJ=yes
24126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24127 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24129 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24130 case $lt_prog_compiler_pic_GCJ in
24132 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24135 lt_prog_compiler_pic_GCJ=
24136 lt_prog_compiler_can_build_shared_GCJ=no
24141 # For platforms which do not support PIC, -DPIC is meaningless:
24143 lt_prog_compiler_pic_GCJ=
24146 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24151 # Check to make sure the static flag actually works.
24153 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24154 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24155 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24156 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24159 lt_prog_compiler_static_works_GCJ=no
24160 save_LDFLAGS="$LDFLAGS"
24161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24162 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24164 # The linker can only warn and ignore the option if not recognized
24165 # So say no if there are warnings
24166 if test -s conftest.err; then
24167 # Append any errors to the config.log.
24168 cat conftest.err 1>&5
24169 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24171 if diff conftest.exp conftest.er2 >/dev/null; then
24172 lt_prog_compiler_static_works_GCJ=yes
24175 lt_prog_compiler_static_works_GCJ=yes
24179 LDFLAGS="$save_LDFLAGS"
24182 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24183 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24185 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24188 lt_prog_compiler_static_GCJ=
24192 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24193 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24194 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24197 lt_cv_prog_compiler_c_o_GCJ=no
24198 $rm -r conftest 2>/dev/null
24202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24204 lt_compiler_flag="-o out/conftest2.$ac_objext"
24205 # Insert the option either (1) after the last *FLAGS variable, or
24206 # (2) before a word containing "conftest.", or (3) at the end.
24207 # Note that $ac_compile itself does not contain backslashes and begins
24208 # with a dollar sign (not a hyphen), so the echo should work correctly.
24209 lt_compile=`echo "$ac_compile" | $SED \
24210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24212 -e 's:$: $lt_compiler_flag:'`
24213 (eval echo "\"\$as_me:24213: $lt_compile\"" >&5)
24214 (eval "$lt_compile" 2>out/conftest.err)
24216 cat out/conftest.err >&5
24217 echo "$as_me:24217: \$? = $ac_status" >&5
24218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24220 # The compiler can only warn and ignore the option if not recognized
24221 # So say no if there are warnings
24222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24225 lt_cv_prog_compiler_c_o_GCJ=yes
24230 # SGI C++ compiler will create directory out/ii_files/ for
24231 # template instantiation
24232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24233 $rm out/* && rmdir out
24239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24243 hard_links="nottested"
24244 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24245 # do not overwrite the value of need_locks provided by the user
24246 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24252 ln conftest.a conftest.b 2>&5 || hard_links=no
24253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24254 { echo "$as_me:$LINENO: result: $hard_links" >&5
24255 echo "${ECHO_T}$hard_links" >&6; }
24256 if test "$hard_links" = no; then
24257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24265 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24269 allow_undefined_flag_GCJ=
24270 enable_shared_with_static_runtimes_GCJ=no
24272 archive_expsym_cmds_GCJ=
24273 old_archive_From_new_cmds_GCJ=
24274 old_archive_from_expsyms_cmds_GCJ=
24275 export_dynamic_flag_spec_GCJ=
24276 whole_archive_flag_spec_GCJ=
24277 thread_safe_flag_spec_GCJ=
24278 hardcode_libdir_flag_spec_GCJ=
24279 hardcode_libdir_flag_spec_ld_GCJ=
24280 hardcode_libdir_separator_GCJ=
24281 hardcode_direct_GCJ=no
24282 hardcode_minus_L_GCJ=no
24283 hardcode_shlibpath_var_GCJ=unsupported
24284 link_all_deplibs_GCJ=unknown
24285 hardcode_automatic_GCJ=no
24287 module_expsym_cmds_GCJ=
24288 always_export_symbols_GCJ=no
24289 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24290 # include_expsyms should be a list of space-separated symbols to be *always*
24291 # included in the symbol list
24292 include_expsyms_GCJ=
24293 # exclude_expsyms can be an extended regexp of symbols to exclude
24294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24296 # as well as any symbol that contains `d'.
24297 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24299 # platforms (ab)use it in PIC code, but their linkers get confused if
24300 # the symbol is explicitly referenced. Since portable code cannot
24301 # rely on this symbol name, it's probably fine to never include it in
24302 # preloaded symbol tables.
24303 extract_expsyms_cmds=
24304 # Just being paranoid about ensuring that cc_basename is set.
24305 for cc_temp in $compiler""; do
24307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24316 cygwin* | mingw* | pw32*)
24317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24318 # When not using gcc, we currently assume that we are using
24319 # Microsoft Visual C++.
24320 if test "$GCC" != yes; then
24325 # we just hope/assume this is gcc and not c89 (= MSVC++)
24334 if test "$with_gnu_ld" = yes; then
24335 # If archive_cmds runs LD, not CC, wlarc should be empty
24338 # Set some defaults for GNU ld with shared library support. These
24339 # are reset later if shared libraries are not supported. Putting them
24340 # here allows them to be overridden if necessary.
24341 runpath_var=LD_RUN_PATH
24342 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24343 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24344 # ancient GNU ld didn't support --whole-archive et. al.
24345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24346 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24348 whole_archive_flag_spec_GCJ=
24350 supports_anon_versioning=no
24351 case `$LD -v 2>/dev/null` in
24352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24355 *\ 2.11.*) ;; # other 2.11 versions
24356 *) supports_anon_versioning=yes ;;
24359 # See if GNU ld supports shared libraries.
24361 aix3* | aix4* | aix5*)
24362 # On AIX/PPC, the GNU linker is very broken
24363 if test "$host_cpu" != ia64; then
24367 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24368 *** to be unable to reliably create shared libraries on AIX.
24369 *** Therefore, libtool is disabling shared libraries support. If you
24370 *** really care for shared libraries, you may want to modify your PATH
24371 *** so that a non-GNU linker is found, and then restart.
24378 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)'
24379 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24380 hardcode_minus_L_GCJ=yes
24382 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24383 # that the semantics of dynamic libraries on AmigaOS, at least up
24384 # to version 4, is to share data among multiple programs linked
24385 # with the same dynamic library. Since this doesn't match the
24386 # behavior of shared libraries on other platforms, we can't use
24392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393 allow_undefined_flag_GCJ=unsupported
24394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24395 # support --undefined. This deserves some investigation. FIXME
24396 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402 cygwin* | mingw* | pw32*)
24403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24404 # as there is no search path for DLLs.
24405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24406 allow_undefined_flag_GCJ=unsupported
24407 always_export_symbols_GCJ=no
24408 enable_shared_with_static_runtimes_GCJ=yes
24409 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24413 # If the export-symbols file already is a .def file (1st line
24414 # is EXPORTS), use it as is; otherwise, prepend...
24415 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24416 cp $export_symbols $output_objdir/$soname.def;
24418 echo EXPORTS > $output_objdir/$soname.def;
24419 cat $export_symbols >> $output_objdir/$soname.def;
24421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24428 hardcode_direct_GCJ=no
24429 hardcode_shlibpath_var_GCJ=no
24430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24431 export_dynamic_flag_spec_GCJ='${wl}-E'
24432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24433 # Instead, shared libraries are loaded at an image base (0x10000000 by
24434 # default) and relocated if they conflict, which is a slow very memory
24435 # consuming and fragmenting process. To avoid this, we pick a random,
24436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24438 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'
24439 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'
24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24445 case $cc_basename,$host_cpu in
24446 pgcc*) # Portland Group C compiler
24447 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'
24448 tmp_addflag=' $pic_flag'
24450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24451 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'
24452 tmp_addflag=' $pic_flag -Mnomain' ;;
24453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24454 tmp_addflag=' -i_dynamic' ;;
24455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24456 tmp_addflag=' -i_dynamic -nofor_main' ;;
24457 ifc* | ifort*) # Intel Fortran compiler
24458 tmp_addflag=' -nofor_main' ;;
24460 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24462 if test $supports_anon_versioning = yes; then
24463 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24465 $echo "local: *; };" >> $output_objdir/$libname.ver~
24466 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24475 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
24484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24489 *** create shared libraries on Solaris systems. Therefore, libtool
24490 *** is disabling shared libraries support. We urge you to upgrade GNU
24491 *** binutils to release 2.9.1 or newer. Another option is to modify
24492 *** your PATH or compiler configuration so that the native linker is
24493 *** used, and then restart.
24496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24505 case `$LD -v 2>&1` in
24506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24511 *** reliably create shared libraries on SCO systems. Therefore, libtool
24512 *** is disabling shared libraries support. We urge you to upgrade GNU
24513 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24514 *** your PATH or compiler configuration so that the native linker is
24515 *** used, and then restart.
24520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24521 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24532 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24534 hardcode_direct_GCJ=yes
24535 hardcode_shlibpath_var_GCJ=no
24539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24548 if test "$ld_shlibs_GCJ" = no; then
24550 hardcode_libdir_flag_spec_GCJ=
24551 export_dynamic_flag_spec_GCJ=
24552 whole_archive_flag_spec_GCJ=
24555 # PORTME fill in a description of your system's linker (not GNU ld)
24558 allow_undefined_flag_GCJ=unsupported
24559 always_export_symbols_GCJ=yes
24560 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'
24561 # Note: this linker hardcodes the directories in LIBPATH if there
24562 # are no directories specified by -L.
24563 hardcode_minus_L_GCJ=yes
24564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24565 # Neither direct hardcoding nor static linking is supported with a
24567 hardcode_direct_GCJ=unsupported
24572 if test "$host_cpu" = ia64; then
24573 # On IA64, the linker does run time linking by default, so we don't
24574 # have to do anything special.
24575 aix_use_runtimelinking=no
24576 exp_sym_flag='-Bexport'
24579 # If we're using GNU nm, then we don't want the "-C" option.
24580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24582 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'
24584 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'
24586 aix_use_runtimelinking=no
24588 # Test if we are trying to use run time linking or normal
24589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24590 # need to do runtime linking.
24591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24592 for ld_flag in $LDFLAGS; do
24593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24594 aix_use_runtimelinking=yes
24601 exp_sym_flag='-bexport'
24602 no_entry_flag='-bnoentry'
24605 # When large executables or shared objects are built, AIX ld can
24606 # have problems creating the table of contents. If linking a library
24607 # or program results in "error TOC overflow" add -mminimal-toc to
24608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24611 archive_cmds_GCJ=''
24612 hardcode_direct_GCJ=yes
24613 hardcode_libdir_separator_GCJ=':'
24614 link_all_deplibs_GCJ=yes
24616 if test "$GCC" = yes; then
24617 case $host_os in aix4.[012]|aix4.[012].*)
24618 # We only want to do this on AIX 4.2 and lower, the check
24619 # below for broken collect2 doesn't work under 4.3+
24620 collect2name=`${CC} -print-prog-name=collect2`
24621 if test -f "$collect2name" && \
24622 strings "$collect2name" | grep resolve_lib_name >/dev/null
24624 # We have reworked collect2
24625 hardcode_direct_GCJ=yes
24627 # We have old collect2
24628 hardcode_direct_GCJ=unsupported
24629 # It fails to find uninstalled libraries when the uninstalled
24630 # path is not listed in the libpath. Setting hardcode_minus_L
24631 # to unsupported forces relinking
24632 hardcode_minus_L_GCJ=yes
24633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634 hardcode_libdir_separator_GCJ=
24638 shared_flag='-shared'
24639 if test "$aix_use_runtimelinking" = yes; then
24640 shared_flag="$shared_flag "'${wl}-G'
24644 if test "$host_cpu" = ia64; then
24645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24646 # chokes on -Wl,-G. The following line is correct:
24649 if test "$aix_use_runtimelinking" = yes; then
24650 shared_flag='${wl}-G'
24652 shared_flag='${wl}-bM:SRE'
24657 # It seems that -bexpall does not export symbols beginning with
24658 # underscore (_), so it is better to generate a list of symbols to export.
24659 always_export_symbols_GCJ=yes
24660 if test "$aix_use_runtimelinking" = yes; then
24661 # Warning - without using the other runtime loading flags (-brtl),
24662 # -berok will link without error, but may produce a broken library.
24663 allow_undefined_flag_GCJ='-berok'
24664 # Determine the default libpath from the value encoded in an empty executable.
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24680 rm -f conftest.$ac_objext conftest$ac_exeext
24681 if { (ac_try="$ac_link"
24682 case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_link") 2>conftest.er1
24689 grep -v '^ *+' conftest.er1 >conftest.err
24691 cat conftest.err >&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } &&
24694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); }; } &&
24704 { ac_try='test -s conftest$ac_exeext'
24705 { (case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_try") 2>&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
24715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24717 # Check for a 64-bit object if we didn't find anything.
24718 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; }
24721 echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24731 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24732 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"
24734 if test "$host_cpu" = ia64; then
24735 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24736 allow_undefined_flag_GCJ="-z nodefs"
24737 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"
24739 # Determine the default libpath from the value encoded in an empty executable.
24740 cat >conftest.$ac_ext <<_ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h. */
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (ac_try="$ac_link"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_link") 2>conftest.er1
24764 grep -v '^ *+' conftest.er1 >conftest.err
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
24769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24770 { (case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775 (eval "$ac_try") 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; } &&
24779 { ac_try='test -s conftest$ac_exeext'
24780 { (case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_try") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24792 # Check for a 64-bit object if we didn't find anything.
24793 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; }
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24802 rm -f core conftest.err conftest.$ac_objext \
24803 conftest$ac_exeext conftest.$ac_ext
24804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24806 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24807 # Warning - without using the other run time loading flags,
24808 # -berok will link without error, but may produce a broken library.
24809 no_undefined_flag_GCJ=' ${wl}-bernotok'
24810 allow_undefined_flag_GCJ=' ${wl}-berok'
24811 # Exported symbols can be pulled into shared objects from archives
24812 whole_archive_flag_spec_GCJ='$convenience'
24813 archive_cmds_need_lc_GCJ=yes
24814 # This is similar to how AIX traditionally builds its shared libraries.
24815 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'
24821 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)'
24822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823 hardcode_minus_L_GCJ=yes
24824 # see comment about different semantics on the GNU ld section
24829 export_dynamic_flag_spec_GCJ=-rdynamic
24832 cygwin* | mingw* | pw32*)
24833 # When not using gcc, we currently assume that we are using
24834 # Microsoft Visual C++.
24835 # hardcode_libdir_flag_spec is actually meaningless, as there is
24836 # no search path for DLLs.
24837 hardcode_libdir_flag_spec_GCJ=' '
24838 allow_undefined_flag_GCJ=unsupported
24839 # Tell ltmain to make .lib files, not .a files.
24841 # Tell ltmain to make .dll files, not .so files.
24843 # FIXME: Setting linknames here is a bad hack.
24844 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24845 # The linker will automatically build a .lib file if we build a DLL.
24846 old_archive_From_new_cmds_GCJ='true'
24847 # FIXME: Should let the user specify the lib program.
24848 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24849 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24850 enable_shared_with_static_runtimes_GCJ=yes
24853 darwin* | rhapsody*)
24855 rhapsody* | darwin1.[012])
24856 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24860 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24862 case ${MACOSX_DEPLOYMENT_TARGET} in
24864 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24867 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24873 archive_cmds_need_lc_GCJ=no
24874 hardcode_direct_GCJ=no
24875 hardcode_automatic_GCJ=yes
24876 hardcode_shlibpath_var_GCJ=unsupported
24877 whole_archive_flag_spec_GCJ=''
24878 link_all_deplibs_GCJ=yes
24879 if test "$GCC" = yes ; then
24880 output_verbose_link_cmd='echo'
24881 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24882 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24884 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}'
24885 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}'
24887 case $cc_basename in
24889 output_verbose_link_cmd='echo'
24890 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24891 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24893 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}'
24894 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}'
24904 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906 hardcode_shlibpath_var_GCJ=no
24913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24914 # support. Future versions do this automatically, but an explicit c++rt0.o
24915 # does not break anything, and helps significantly (at the cost of a little
24918 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24920 hardcode_direct_GCJ=yes
24921 hardcode_shlibpath_var_GCJ=no
24924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24926 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24927 hardcode_direct_GCJ=yes
24928 hardcode_minus_L_GCJ=yes
24929 hardcode_shlibpath_var_GCJ=no
24932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24933 freebsd* | kfreebsd*-gnu | dragonfly*)
24934 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24936 hardcode_direct_GCJ=yes
24937 hardcode_shlibpath_var_GCJ=no
24941 if test "$GCC" = yes; then
24942 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'
24944 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'
24946 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24947 hardcode_libdir_separator_GCJ=:
24948 hardcode_direct_GCJ=yes
24950 # hardcode_minus_L: Not really in the search PATH,
24951 # but as the default location of the library.
24952 hardcode_minus_L_GCJ=yes
24953 export_dynamic_flag_spec_GCJ='${wl}-E'
24957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24958 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24960 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24962 if test "$with_gnu_ld" = no; then
24963 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24964 hardcode_libdir_separator_GCJ=:
24966 hardcode_direct_GCJ=yes
24967 export_dynamic_flag_spec_GCJ='${wl}-E'
24969 # hardcode_minus_L: Not really in the search PATH,
24970 # but as the default location of the library.
24971 hardcode_minus_L_GCJ=yes
24976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24979 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24982 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24985 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24991 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24994 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24997 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25001 if test "$with_gnu_ld" = no; then
25002 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25003 hardcode_libdir_separator_GCJ=:
25007 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25008 hardcode_direct_GCJ=no
25009 hardcode_shlibpath_var_GCJ=no
25012 hardcode_direct_GCJ=yes
25013 export_dynamic_flag_spec_GCJ='${wl}-E'
25015 # hardcode_minus_L: Not really in the search PATH,
25016 # but as the default location of the library.
25017 hardcode_minus_L_GCJ=yes
25023 irix5* | irix6* | nonstopux*)
25024 if test "$GCC" = yes; then
25025 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'
25027 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'
25028 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031 hardcode_libdir_separator_GCJ=:
25032 link_all_deplibs_GCJ=yes
25036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25037 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25039 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042 hardcode_direct_GCJ=yes
25043 hardcode_shlibpath_var_GCJ=no
25047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048 hardcode_direct_GCJ=yes
25049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050 hardcode_libdir_separator_GCJ=:
25051 hardcode_shlibpath_var_GCJ=no
25055 hardcode_direct_GCJ=yes
25056 hardcode_shlibpath_var_GCJ=no
25057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25058 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25059 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25061 export_dynamic_flag_spec_GCJ='${wl}-E'
25064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25069 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078 hardcode_minus_L_GCJ=yes
25079 allow_undefined_flag_GCJ=unsupported
25080 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'
25081 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25085 if test "$GCC" = yes; then
25086 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25087 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'
25089 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25090 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'
25092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25093 hardcode_libdir_separator_GCJ=:
25096 osf4* | osf5*) # as osf3* with the addition of -msym flag
25097 if test "$GCC" = yes; then
25098 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25099 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'
25100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25102 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25103 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'
25104 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~
25105 $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'
25107 # Both c and cxx compiler support -rpath directly
25108 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25110 hardcode_libdir_separator_GCJ=:
25114 no_undefined_flag_GCJ=' -z text'
25115 if test "$GCC" = yes; then
25117 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25118 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25122 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25123 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127 hardcode_shlibpath_var_GCJ=no
25129 solaris2.[0-5] | solaris2.[0-5].*) ;;
25131 # The compiler driver will combine linker options so we
25132 # cannot just pass the convience library names through
25133 # without $wl, iff we do not link with $LD.
25134 # Luckily, gcc supports the same syntax we need for Sun Studio.
25135 # Supported since Solaris 2.6 (maybe 2.5.1?)
25138 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25140 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' ;;
25143 link_all_deplibs_GCJ=yes
25147 if test "x$host_vendor" = xsequent; then
25148 # Use $CC to link under sequent, because it throws in some extra .o
25149 # files that make .init and .fini sections work.
25150 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25152 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155 hardcode_direct_GCJ=yes
25156 hardcode_minus_L_GCJ=yes
25157 hardcode_shlibpath_var_GCJ=no
25161 case $host_vendor in
25163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_direct_GCJ=yes # is this really true???
25167 ## LD is ld it makes a PLAMLIB
25168 ## CC just makes a GrossModule.
25169 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25170 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25171 hardcode_direct_GCJ=no
25174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25175 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25178 runpath_var='LD_RUN_PATH'
25179 hardcode_shlibpath_var_GCJ=no
25183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25184 hardcode_shlibpath_var_GCJ=no
25185 export_dynamic_flag_spec_GCJ='-Bexport'
25189 if test -d /usr/nec; then
25190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25191 hardcode_shlibpath_var_GCJ=no
25192 runpath_var=LD_RUN_PATH
25193 hardcode_runpath_var=yes
25198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25199 no_undefined_flag_GCJ='${wl}-z,text'
25200 archive_cmds_need_lc_GCJ=no
25201 hardcode_shlibpath_var_GCJ=no
25202 runpath_var='LD_RUN_PATH'
25204 if test "$GCC" = yes; then
25205 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25206 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25208 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25209 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25213 sysv5* | sco3.2v5* | sco5v6*)
25214 # Note: We can NOT use -z defs as we might desire, because we do not
25215 # link with -lc, and that would cause any symbols used from libc to
25216 # always be unresolved, which means just about no library would
25217 # ever link correctly. If we're not using GNU ld we use -z text
25218 # though, which does catch some bad symbols but isn't as heavy-handed
25220 no_undefined_flag_GCJ='${wl}-z,text'
25221 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25222 archive_cmds_need_lc_GCJ=no
25223 hardcode_shlibpath_var_GCJ=no
25224 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25225 hardcode_libdir_separator_GCJ=':'
25226 link_all_deplibs_GCJ=yes
25227 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25228 runpath_var='LD_RUN_PATH'
25230 if test "$GCC" = yes; then
25231 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25232 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25234 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25235 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25241 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25242 hardcode_shlibpath_var_GCJ=no
25251 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25252 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25253 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25256 # Do we need to explicitly link libc?
25258 case "x$archive_cmds_need_lc_GCJ" in
25260 # Assume -lc should be added
25261 archive_cmds_need_lc_GCJ=yes
25263 if test "$enable_shared" = yes && test "$GCC" = yes; then
25264 case $archive_cmds_GCJ in
25266 # FIXME: we may have to deal with multi-command sequences.
25269 # Test whether the compiler implicitly links with -lc since on some
25270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25271 # to ld, don't add -lc before -lgcc.
25272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278 (eval $ac_compile) 2>&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } 2>conftest.err; then
25284 libobjs=conftest.$ac_objext
25286 wl=$lt_prog_compiler_wl_GCJ
25287 pic_flag=$lt_prog_compiler_pic_GCJ
25293 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25294 allow_undefined_flag_GCJ=
25295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25296 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }
25301 archive_cmds_need_lc_GCJ=no
25303 archive_cmds_need_lc_GCJ=yes
25305 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25307 cat conftest.err 1>&5
25310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25311 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25320 library_names_spec=
25321 libname_spec='lib$name'
25325 postuninstall_cmds=
25329 shlibpath_overrides_runpath=unknown
25331 dynamic_linker="$host_os ld.so"
25332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25333 if test "$GCC" = yes; then
25334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25336 # if the path contains ";" then we assume it to be the separator
25337 # otherwise default to the standard path separator (i.e. ":") - it is
25338 # assumed that no part of a normal pathname contains ";" but that should
25339 # okay in the real world where ";" in dirpaths is itself problematic.
25340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25347 need_lib_prefix=unknown
25348 hardcode_into_libs=no
25350 # when you set need_version to no, make sure it does not cause -set_version
25351 # flags to be left without arguments
25352 need_version=unknown
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25358 shlibpath_var=LIBPATH
25360 # AIX 3 has no versioning support, so we append a major version to the name.
25361 soname_spec='${libname}${release}${shared_ext}$major'
25368 hardcode_into_libs=yes
25369 if test "$host_cpu" = ia64; then
25370 # AIX 5 supports IA64
25371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25372 shlibpath_var=LD_LIBRARY_PATH
25374 # With GCC up to 2.95.x, collect2 would create an import file
25375 # for dependence libraries. The import file would start with
25376 # the line `#! .'. This would cause the generated library to
25377 # depend on `.', always an invalid library. This was fixed in
25378 # development snapshots of GCC prior to 3.0.
25380 aix4 | aix4.[01] | aix4.[01].*)
25381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25386 can_build_shared=no
25390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25391 # soname into executable. Probably we can add versioning support to
25392 # collect2, so additional links can be useful in future.
25393 if test "$aix_use_runtimelinking" = yes; then
25394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25395 # instead of lib<name>.a to let people know that these are not
25396 # typical AIX shared libraries.
25397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399 # We preserve .a as extension for shared libraries through AIX4.2
25400 # and later when we are not doing run time linking.
25401 library_names_spec='${libname}${release}.a $libname.a'
25402 soname_spec='${libname}${release}${shared_ext}$major'
25404 shlibpath_var=LIBPATH
25409 library_names_spec='$libname.ixlibrary $libname.a'
25410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25411 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'
25415 library_names_spec='${libname}${shared_ext}'
25416 dynamic_linker="$host_os ld.so"
25417 shlibpath_var=LIBRARY_PATH
25423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25424 soname_spec='${libname}${release}${shared_ext}$major'
25425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25426 shlibpath_var=LD_LIBRARY_PATH
25427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25429 # the default ld.so.conf also contains /usr/contrib/lib and
25430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25431 # libtool to hard-code these into programs
25434 cygwin* | mingw* | pw32*)
25435 version_type=windows
25440 case $GCC,$host_os in
25441 yes,cygwin* | yes,mingw* | yes,pw32*)
25442 library_names_spec='$libname.dll.a'
25443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25444 postinstall_cmds='base_file=`basename \${file}`~
25445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25446 dldir=$destdir/`dirname \$dlpath`~
25447 test -d \$dldir || mkdir -p \$dldir~
25448 $install_prog $dir/$dlname \$dldir/$dlname~
25449 chmod a+x \$dldir/$dlname'
25450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25451 dlpath=$dir/\$dldll~
25453 shlibpath_overrides_runpath=yes
25457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25462 # MinGW DLLs use traditional 'lib' prefix
25463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25466 # It is most probably a Windows format PATH printed by
25467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25468 # path with ; separators, and with drive letters. We can handle the
25469 # drive letters (cygwin fileutils understands them), so leave them,
25470 # especially as we might pass files found there to a mingw objdump,
25471 # which wouldn't understand a cygwinified path. Ahh.
25472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25478 # pw32 DLLs use 'pw' prefix rather than 'lib'
25479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25488 dynamic_linker='Win32 ld.exe'
25489 # FIXME: first we should search . and the directory the executable is in
25493 darwin* | rhapsody*)
25494 dynamic_linker="$host_os dyld"
25495 version_type=darwin
25498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25499 soname_spec='${libname}${release}${major}$shared_ext'
25500 shlibpath_overrides_runpath=yes
25501 shlibpath_var=DYLD_LIBRARY_PATH
25502 shrext_cmds='.dylib'
25503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25504 if test "$GCC" = yes; then
25505 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"`
25507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25517 soname_spec='${libname}${release}${shared_ext}$major'
25518 shlibpath_var=LD_LIBRARY_PATH
25529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530 soname_spec='${libname}${release}${shared_ext}$major'
25531 shlibpath_var=LD_LIBRARY_PATH
25532 shlibpath_overrides_runpath=no
25533 hardcode_into_libs=yes
25534 dynamic_linker='GNU ld.so'
25537 freebsd* | dragonfly*)
25538 # DragonFly does not have aout. When/if they implement a new
25539 # versioning mechanism, adjust this.
25540 if test -x /usr/bin/objformat; then
25541 objformat=`/usr/bin/objformat`
25544 freebsd[123]*) objformat=aout ;;
25545 *) objformat=elf ;;
25548 version_type=freebsd-$objformat
25549 case $version_type in
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25560 shlibpath_var=LD_LIBRARY_PATH
25563 shlibpath_overrides_runpath=yes
25565 freebsd3.[01]* | freebsdelf3.[01]*)
25566 shlibpath_overrides_runpath=yes
25567 hardcode_into_libs=yes
25569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25571 shlibpath_overrides_runpath=no
25572 hardcode_into_libs=yes
25574 freebsd*) # from 4.6 on
25575 shlibpath_overrides_runpath=yes
25576 hardcode_into_libs=yes
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 shlibpath_var=LD_LIBRARY_PATH
25588 hardcode_into_libs=yes
25591 hpux9* | hpux10* | hpux11*)
25592 # Give a soname corresponding to the major version so that dld.sl refuses to
25593 # link against other versions.
25600 hardcode_into_libs=yes
25601 dynamic_linker="$host_os dld.so"
25602 shlibpath_var=LD_LIBRARY_PATH
25603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25605 soname_spec='${libname}${release}${shared_ext}$major'
25606 if test "X$HPUX_IA64_MODE" = X32; then
25607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25615 hardcode_into_libs=yes
25616 dynamic_linker="$host_os dld.sl"
25617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25626 dynamic_linker="$host_os dld.sl"
25627 shlibpath_var=SHLIB_PATH
25628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25630 soname_spec='${libname}${release}${shared_ext}$major'
25633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25634 postinstall_cmds='chmod 555 $lib'
25641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642 soname_spec='${libname}${release}${shared_ext}$major'
25643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25644 shlibpath_var=LD_LIBRARY_PATH
25645 shlibpath_overrides_runpath=no
25646 hardcode_into_libs=yes
25649 irix5* | irix6* | nonstopux*)
25651 nonstopux*) version_type=nonstopux ;;
25653 if test "$lt_cv_prog_gnu_ld" = yes; then
25661 soname_spec='${libname}${release}${shared_ext}$major'
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25664 irix5* | nonstopux*)
25665 libsuff= shlibsuff=
25668 case $LD in # libtool.m4 will add one of these switches to LD
25669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25670 libsuff= shlibsuff= libmagic=32-bit;;
25671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25672 libsuff=32 shlibsuff=N32 libmagic=N32;;
25673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25675 *) libsuff= shlibsuff= libmagic=never-match;;
25679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25680 shlibpath_overrides_runpath=no
25681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25683 hardcode_into_libs=yes
25686 # No shared lib support for Linux oldld, aout, or coff.
25687 linux*oldld* | linux*aout* | linux*coff*)
25691 # This must be Linux ELF.
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697 soname_spec='${libname}${release}${shared_ext}$major'
25698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25699 shlibpath_var=LD_LIBRARY_PATH
25700 shlibpath_overrides_runpath=no
25701 # This implies no fast_install, which is unacceptable.
25702 # Some rework will be needed to allow for fast_install
25703 # before this can be enabled.
25704 hardcode_into_libs=yes
25706 # Append ld.so.conf contents to the search path
25707 if test -f /etc/ld.so.conf; then
25708 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' ' '`
25709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25712 # We used to test for /lib/ld.so.1 and disable shared libraries on
25713 # powerpc, because MkLinux only supported shared libraries with the
25714 # GNU dynamic linker. Since this was broken with cross compilers,
25715 # most powerpc-linux boxes support dynamic linking these days and
25716 # people can always --disable-shared, the test was removed, and we
25717 # assume the GNU/Linux dynamic linker is in use.
25718 dynamic_linker='GNU/Linux ld.so'
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 shlibpath_overrides_runpath=no
25729 hardcode_into_libs=yes
25730 dynamic_linker='GNU ld.so'
25737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25740 dynamic_linker='NetBSD (a.out) ld.so'
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25743 soname_spec='${libname}${release}${shared_ext}$major'
25744 dynamic_linker='NetBSD ld.elf_so'
25746 shlibpath_var=LD_LIBRARY_PATH
25747 shlibpath_overrides_runpath=yes
25748 hardcode_into_libs=yes
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=yes
25762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763 soname_spec='${libname}${release}${shared_ext}$major'
25764 shlibpath_var=LD_LIBRARY_PATH
25765 shlibpath_overrides_runpath=yes
25770 sys_lib_dlsearch_path_spec="/usr/lib"
25772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25775 *) need_version=no ;;
25777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25782 openbsd2.[89] | openbsd2.[89].*)
25783 shlibpath_overrides_runpath=no
25786 shlibpath_overrides_runpath=yes
25790 shlibpath_overrides_runpath=yes
25795 libname_spec='$name'
25798 library_names_spec='$libname${shared_ext} $libname.a'
25799 dynamic_linker='OS/2 ld.exe'
25800 shlibpath_var=LIBPATH
25803 osf3* | osf4* | osf5*)
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25809 shlibpath_var=LD_LIBRARY_PATH
25810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25819 soname_spec='${libname}${release}${shared_ext}$major'
25820 shlibpath_var=LD_LIBRARY_PATH
25821 shlibpath_overrides_runpath=yes
25822 hardcode_into_libs=yes
25823 # ldd complains unless libraries are executable
25824 postinstall_cmds='chmod +x $lib'
25829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25831 shlibpath_var=LD_LIBRARY_PATH
25832 shlibpath_overrides_runpath=yes
25833 if test "$with_gnu_ld" = yes; then
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25844 case $host_vendor in
25846 shlibpath_overrides_runpath=no
25848 export_dynamic_flag_spec='${wl}-Blargedynsym'
25849 runpath_var=LD_RUN_PATH
25857 shlibpath_overrides_runpath=no
25858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25864 if test -d /usr/nec ;then
25866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25867 soname_spec='$libname${shared_ext}.$major'
25868 shlibpath_var=LD_LIBRARY_PATH
25872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25873 version_type=freebsd-elf
25876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25877 soname_spec='${libname}${release}${shared_ext}$major'
25878 shlibpath_var=LD_LIBRARY_PATH
25879 hardcode_into_libs=yes
25880 if test "$with_gnu_ld" = yes; then
25881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25882 shlibpath_overrides_runpath=no
25884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25885 shlibpath_overrides_runpath=yes
25888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25892 sys_lib_dlsearch_path_spec='/usr/lib'
25897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 shlibpath_var=LD_LIBRARY_PATH
25906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25907 echo "${ECHO_T}$dynamic_linker" >&6; }
25908 test "$dynamic_linker" = no && can_build_shared=no
25910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25911 if test "$GCC" = yes; then
25912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25917 hardcode_action_GCJ=
25918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25919 test -n "$runpath_var_GCJ" || \
25920 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25922 # We can hardcode non-existant directories.
25923 if test "$hardcode_direct_GCJ" != no &&
25924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25925 # have to relink, otherwise we might link with an installed library
25926 # when we should be linking with a yet-to-be-installed one
25927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25928 test "$hardcode_minus_L_GCJ" != no; then
25929 # Linking always hardcodes the temporary library directory.
25930 hardcode_action_GCJ=relink
25932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25933 hardcode_action_GCJ=immediate
25936 # We cannot hardcode anything, or else we can only hardcode existing
25938 hardcode_action_GCJ=unsupported
25940 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25941 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25943 if test "$hardcode_action_GCJ" = relink; then
25944 # Fast installation is not supported
25945 enable_fast_install=no
25946 elif test "$shlibpath_overrides_runpath" = yes ||
25947 test "$enable_shared" = no; then
25948 # Fast installation is not necessary
25949 enable_fast_install=needless
25953 # The else clause should only fire when bootstrapping the
25954 # libtool distribution, otherwise you forgot to ship ltmain.sh
25955 # with your package, and you will get complaints that there are
25956 # no rules to generate ltmain.sh.
25957 if test -f "$ltmain"; then
25958 # See if we are running on zsh, and set the options which allow our commands through
25959 # without removal of \ escapes.
25960 if test -n "${ZSH_VERSION+set}" ; then
25961 setopt NO_GLOB_SUBST
25963 # Now quote all the things that may contain metacharacters while being
25964 # careful not to overquote the AC_SUBSTed values. We take copies of the
25965 # variables and quote the copies for generation of the libtool script.
25966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25970 deplibs_check_method reload_flag reload_cmds need_locks \
25971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25972 lt_cv_sys_global_symbol_to_c_name_address \
25973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25974 old_postinstall_cmds old_postuninstall_cmds \
25978 lt_prog_compiler_wl_GCJ \
25979 lt_prog_compiler_pic_GCJ \
25980 lt_prog_compiler_static_GCJ \
25981 lt_prog_compiler_no_builtin_flag_GCJ \
25982 export_dynamic_flag_spec_GCJ \
25983 thread_safe_flag_spec_GCJ \
25984 whole_archive_flag_spec_GCJ \
25985 enable_shared_with_static_runtimes_GCJ \
25986 old_archive_cmds_GCJ \
25987 old_archive_from_new_cmds_GCJ \
25988 predep_objects_GCJ \
25989 postdep_objects_GCJ \
25992 compiler_lib_search_path_GCJ \
25994 archive_expsym_cmds_GCJ \
25995 postinstall_cmds_GCJ \
25996 postuninstall_cmds_GCJ \
25997 old_archive_from_expsyms_cmds_GCJ \
25998 allow_undefined_flag_GCJ \
25999 no_undefined_flag_GCJ \
26000 export_symbols_cmds_GCJ \
26001 hardcode_libdir_flag_spec_GCJ \
26002 hardcode_libdir_flag_spec_ld_GCJ \
26003 hardcode_libdir_separator_GCJ \
26004 hardcode_automatic_GCJ \
26006 module_expsym_cmds_GCJ \
26007 lt_cv_prog_compiler_c_o_GCJ \
26008 exclude_expsyms_GCJ \
26009 include_expsyms_GCJ; do
26012 old_archive_cmds_GCJ | \
26013 old_archive_from_new_cmds_GCJ | \
26014 archive_cmds_GCJ | \
26015 archive_expsym_cmds_GCJ | \
26016 module_cmds_GCJ | \
26017 module_expsym_cmds_GCJ | \
26018 old_archive_from_expsyms_cmds_GCJ | \
26019 export_symbols_cmds_GCJ | \
26020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26021 postinstall_cmds | postuninstall_cmds | \
26022 old_postinstall_cmds | old_postuninstall_cmds | \
26023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26024 # Double-quote double-evaled strings.
26025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26034 *'\$0 --fallback-echo"')
26035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26041 cat <<__EOF__ >> "$cfgfile"
26042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26046 # Shell to use when invoking shell scripts.
26049 # Whether or not to build shared libraries.
26050 build_libtool_libs=$enable_shared
26052 # Whether or not to build static libraries.
26053 build_old_libs=$enable_static
26055 # Whether or not to add -lc for building shared libraries.
26056 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26058 # Whether or not to disallow shared libs when runtime libs are static
26059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26061 # Whether or not to optimize for fast installation.
26062 fast_install=$enable_fast_install
26065 host_alias=$host_alias
26069 # The build system.
26070 build_alias=$build_alias
26074 # An echo program that does not interpret backslashes.
26079 AR_FLAGS=$lt_AR_FLAGS
26084 # LTCC compiler flags.
26085 LTCFLAGS=$lt_LTCFLAGS
26087 # A language-specific compiler.
26088 CC=$lt_compiler_GCJ
26090 # Is the compiler the GNU C compiler?
26096 # The linker used to build libraries.
26099 # Whether we need hard or soft links.
26102 # A BSD-compatible nm program.
26105 # A symbol stripping program
26108 # Used to examine libraries when file_magic_cmd begins "file"
26109 MAGIC_CMD=$MAGIC_CMD
26111 # Used on cygwin: DLL creation program.
26114 # Used on cygwin: object dumper.
26117 # Used on cygwin: assembler.
26120 # The name of the directory that contains temporary libtool files.
26123 # How to create reloadable object files.
26124 reload_flag=$lt_reload_flag
26125 reload_cmds=$lt_reload_cmds
26127 # How to pass a linker flag through the compiler.
26128 wl=$lt_lt_prog_compiler_wl_GCJ
26130 # Object file suffix (normally "o").
26131 objext="$ac_objext"
26133 # Old archive suffix (normally "a").
26136 # Shared library suffix (normally ".so").
26137 shrext_cmds='$shrext_cmds'
26139 # Executable file suffix (normally "").
26142 # Additional compiler flags for building library objects.
26143 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26146 # What is the maximum length of a command?
26147 max_cmd_len=$lt_cv_sys_max_cmd_len
26149 # Does compiler simultaneously support -c and -o options?
26150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26152 # Must we lock files when doing compilation?
26153 need_locks=$lt_need_locks
26155 # Do we need the lib prefix for modules?
26156 need_lib_prefix=$need_lib_prefix
26158 # Do we need a version for libraries?
26159 need_version=$need_version
26161 # Whether dlopen is supported.
26162 dlopen_support=$enable_dlopen
26164 # Whether dlopen of programs is supported.
26165 dlopen_self=$enable_dlopen_self
26167 # Whether dlopen of statically linked programs is supported.
26168 dlopen_self_static=$enable_dlopen_self_static
26170 # Compiler flag to prevent dynamic linking.
26171 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26173 # Compiler flag to turn off builtin functions.
26174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26176 # Compiler flag to allow reflexive dlopens.
26177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26179 # Compiler flag to generate shared objects directly from archives.
26180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26182 # Compiler flag to generate thread-safe objects.
26183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26185 # Library versioning type.
26186 version_type=$version_type
26188 # Format of library name prefix.
26189 libname_spec=$lt_libname_spec
26191 # List of archive names. First name is the real one, the rest are links.
26192 # The last name is the one that the linker finds with -lNAME.
26193 library_names_spec=$lt_library_names_spec
26195 # The coded name of the library, if different from the real name.
26196 soname_spec=$lt_soname_spec
26198 # Commands used to build and install an old-style archive.
26200 old_archive_cmds=$lt_old_archive_cmds_GCJ
26201 old_postinstall_cmds=$lt_old_postinstall_cmds
26202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26204 # Create an old-style archive from a shared archive.
26205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26207 # Create a temporary old-style archive to link instead of a shared archive.
26208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26210 # Commands used to build and install a shared archive.
26211 archive_cmds=$lt_archive_cmds_GCJ
26212 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26213 postinstall_cmds=$lt_postinstall_cmds
26214 postuninstall_cmds=$lt_postuninstall_cmds
26216 # Commands used to build a loadable module (assumed same as above if empty)
26217 module_cmds=$lt_module_cmds_GCJ
26218 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26220 # Commands to strip libraries.
26221 old_striplib=$lt_old_striplib
26222 striplib=$lt_striplib
26224 # Dependencies to place before the objects being linked to create a
26226 predep_objects=$lt_predep_objects_GCJ
26228 # Dependencies to place after the objects being linked to create a
26230 postdep_objects=$lt_postdep_objects_GCJ
26232 # Dependencies to place before the objects being linked to create a
26234 predeps=$lt_predeps_GCJ
26236 # Dependencies to place after the objects being linked to create a
26238 postdeps=$lt_postdeps_GCJ
26240 # The library search path used internally by the compiler when linking
26241 # a shared library.
26242 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26244 # Method to check whether dependent libraries are shared objects.
26245 deplibs_check_method=$lt_deplibs_check_method
26247 # Command to use when deplibs_check_method == file_magic.
26248 file_magic_cmd=$lt_file_magic_cmd
26250 # Flag that allows shared libraries with undefined symbols to be built.
26251 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26253 # Flag that forces no undefined symbols.
26254 no_undefined_flag=$lt_no_undefined_flag_GCJ
26256 # Commands used to finish a libtool library installation in a directory.
26257 finish_cmds=$lt_finish_cmds
26259 # Same as above, but a single script fragment to be evaled but not shown.
26260 finish_eval=$lt_finish_eval
26262 # Take the output of nm and produce a listing of raw symbols and C names.
26263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26265 # Transform the output of nm in a proper C declaration
26266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26268 # Transform the output of nm in a C name address pair
26269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26271 # This is the shared library runtime path variable.
26272 runpath_var=$runpath_var
26274 # This is the shared library path variable.
26275 shlibpath_var=$shlibpath_var
26277 # Is shlibpath searched before the hard-coded library search path?
26278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26280 # How to hardcode a shared library path into an executable.
26281 hardcode_action=$hardcode_action_GCJ
26283 # Whether we should hardcode library paths into libraries.
26284 hardcode_into_libs=$hardcode_into_libs
26286 # Flag to hardcode \$libdir into a binary during linking.
26287 # This must work even if \$libdir does not exist.
26288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26290 # If ld is used when linking, flag to hardcode \$libdir into
26291 # a binary during linking. This must work even if \$libdir does
26293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26295 # Whether we need a single -rpath flag with a separated argument.
26296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26299 # resulting binary.
26300 hardcode_direct=$hardcode_direct_GCJ
26302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26303 # resulting binary.
26304 hardcode_minus_L=$hardcode_minus_L_GCJ
26306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26307 # the resulting binary.
26308 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26310 # Set to yes if building a shared library automatically hardcodes DIR into the library
26311 # and all subsequent libraries and executables linked against it.
26312 hardcode_automatic=$hardcode_automatic_GCJ
26314 # Variables whose values should be saved in libtool wrapper scripts and
26315 # restored at relink time.
26316 variables_saved_for_relink="$variables_saved_for_relink"
26318 # Whether libtool must link a program against all its dependency libraries.
26319 link_all_deplibs=$link_all_deplibs_GCJ
26321 # Compile-time system search path for libraries
26322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26324 # Run-time system search path for libraries
26325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26327 # Fix the shell variable \$srcfile for the compiler.
26328 fix_srcfile_path="$fix_srcfile_path_GCJ"
26330 # Set to yes if exported symbols are required.
26331 always_export_symbols=$always_export_symbols_GCJ
26333 # The commands to list exported symbols.
26334 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26336 # The commands to extract the exported symbol list from a shared archive.
26337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26339 # Symbols that should not be listed in the preloaded symbols.
26340 exclude_expsyms=$lt_exclude_expsyms_GCJ
26342 # Symbols that must always be exported.
26343 include_expsyms=$lt_include_expsyms_GCJ
26345 # ### END LIBTOOL TAG CONFIG: $tagname
26351 # If there is no Makefile yet, we rely on a make rule to execute
26352 # `config.status --recheck' to rerun these tests and create the
26353 # libtool script then.
26354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26355 if test -f "$ltmain_in"; then
26356 test -f Makefile && make "$ltmain"
26362 ac_cpp='$CPP $CPPFLAGS'
26363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26382 # Source file extension for RC test sources.
26385 # Object file extension for compiled RC test sources.
26389 # Code to be used in simple compile tests
26390 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26392 # Code to be used in simple link tests
26393 lt_simple_link_test_code="$lt_simple_compile_test_code"
26395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26397 # If no C compiler was specified, use CC.
26400 # If no C compiler flags were specified, use CFLAGS.
26401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26403 # Allow CC to be a program name with arguments.
26407 # save warnings/boilerplate of simple test code
26408 ac_outfile=conftest.$ac_objext
26409 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26411 _lt_compiler_boilerplate=`cat conftest.err`
26414 ac_outfile=conftest.$ac_objext
26415 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26417 _lt_linker_boilerplate=`cat conftest.err`
26421 # Allow CC to be a program name with arguments.
26426 for cc_temp in $compiler""; do
26428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26436 lt_cv_prog_compiler_c_o_RC=yes
26438 # The else clause should only fire when bootstrapping the
26439 # libtool distribution, otherwise you forgot to ship ltmain.sh
26440 # with your package, and you will get complaints that there are
26441 # no rules to generate ltmain.sh.
26442 if test -f "$ltmain"; then
26443 # See if we are running on zsh, and set the options which allow our commands through
26444 # without removal of \ escapes.
26445 if test -n "${ZSH_VERSION+set}" ; then
26446 setopt NO_GLOB_SUBST
26448 # Now quote all the things that may contain metacharacters while being
26449 # careful not to overquote the AC_SUBSTed values. We take copies of the
26450 # variables and quote the copies for generation of the libtool script.
26451 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26455 deplibs_check_method reload_flag reload_cmds need_locks \
26456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26457 lt_cv_sys_global_symbol_to_c_name_address \
26458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26459 old_postinstall_cmds old_postuninstall_cmds \
26463 lt_prog_compiler_wl_RC \
26464 lt_prog_compiler_pic_RC \
26465 lt_prog_compiler_static_RC \
26466 lt_prog_compiler_no_builtin_flag_RC \
26467 export_dynamic_flag_spec_RC \
26468 thread_safe_flag_spec_RC \
26469 whole_archive_flag_spec_RC \
26470 enable_shared_with_static_runtimes_RC \
26471 old_archive_cmds_RC \
26472 old_archive_from_new_cmds_RC \
26473 predep_objects_RC \
26474 postdep_objects_RC \
26477 compiler_lib_search_path_RC \
26479 archive_expsym_cmds_RC \
26480 postinstall_cmds_RC \
26481 postuninstall_cmds_RC \
26482 old_archive_from_expsyms_cmds_RC \
26483 allow_undefined_flag_RC \
26484 no_undefined_flag_RC \
26485 export_symbols_cmds_RC \
26486 hardcode_libdir_flag_spec_RC \
26487 hardcode_libdir_flag_spec_ld_RC \
26488 hardcode_libdir_separator_RC \
26489 hardcode_automatic_RC \
26491 module_expsym_cmds_RC \
26492 lt_cv_prog_compiler_c_o_RC \
26493 exclude_expsyms_RC \
26494 include_expsyms_RC; do
26497 old_archive_cmds_RC | \
26498 old_archive_from_new_cmds_RC | \
26499 archive_cmds_RC | \
26500 archive_expsym_cmds_RC | \
26502 module_expsym_cmds_RC | \
26503 old_archive_from_expsyms_cmds_RC | \
26504 export_symbols_cmds_RC | \
26505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26506 postinstall_cmds | postuninstall_cmds | \
26507 old_postinstall_cmds | old_postuninstall_cmds | \
26508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26509 # Double-quote double-evaled strings.
26510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26519 *'\$0 --fallback-echo"')
26520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26526 cat <<__EOF__ >> "$cfgfile"
26527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26531 # Shell to use when invoking shell scripts.
26534 # Whether or not to build shared libraries.
26535 build_libtool_libs=$enable_shared
26537 # Whether or not to build static libraries.
26538 build_old_libs=$enable_static
26540 # Whether or not to add -lc for building shared libraries.
26541 build_libtool_need_lc=$archive_cmds_need_lc_RC
26543 # Whether or not to disallow shared libs when runtime libs are static
26544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26546 # Whether or not to optimize for fast installation.
26547 fast_install=$enable_fast_install
26550 host_alias=$host_alias
26554 # The build system.
26555 build_alias=$build_alias
26559 # An echo program that does not interpret backslashes.
26564 AR_FLAGS=$lt_AR_FLAGS
26569 # LTCC compiler flags.
26570 LTCFLAGS=$lt_LTCFLAGS
26572 # A language-specific compiler.
26575 # Is the compiler the GNU C compiler?
26581 # The linker used to build libraries.
26584 # Whether we need hard or soft links.
26587 # A BSD-compatible nm program.
26590 # A symbol stripping program
26593 # Used to examine libraries when file_magic_cmd begins "file"
26594 MAGIC_CMD=$MAGIC_CMD
26596 # Used on cygwin: DLL creation program.
26599 # Used on cygwin: object dumper.
26602 # Used on cygwin: assembler.
26605 # The name of the directory that contains temporary libtool files.
26608 # How to create reloadable object files.
26609 reload_flag=$lt_reload_flag
26610 reload_cmds=$lt_reload_cmds
26612 # How to pass a linker flag through the compiler.
26613 wl=$lt_lt_prog_compiler_wl_RC
26615 # Object file suffix (normally "o").
26616 objext="$ac_objext"
26618 # Old archive suffix (normally "a").
26621 # Shared library suffix (normally ".so").
26622 shrext_cmds='$shrext_cmds'
26624 # Executable file suffix (normally "").
26627 # Additional compiler flags for building library objects.
26628 pic_flag=$lt_lt_prog_compiler_pic_RC
26631 # What is the maximum length of a command?
26632 max_cmd_len=$lt_cv_sys_max_cmd_len
26634 # Does compiler simultaneously support -c and -o options?
26635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26637 # Must we lock files when doing compilation?
26638 need_locks=$lt_need_locks
26640 # Do we need the lib prefix for modules?
26641 need_lib_prefix=$need_lib_prefix
26643 # Do we need a version for libraries?
26644 need_version=$need_version
26646 # Whether dlopen is supported.
26647 dlopen_support=$enable_dlopen
26649 # Whether dlopen of programs is supported.
26650 dlopen_self=$enable_dlopen_self
26652 # Whether dlopen of statically linked programs is supported.
26653 dlopen_self_static=$enable_dlopen_self_static
26655 # Compiler flag to prevent dynamic linking.
26656 link_static_flag=$lt_lt_prog_compiler_static_RC
26658 # Compiler flag to turn off builtin functions.
26659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26661 # Compiler flag to allow reflexive dlopens.
26662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26664 # Compiler flag to generate shared objects directly from archives.
26665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26667 # Compiler flag to generate thread-safe objects.
26668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26670 # Library versioning type.
26671 version_type=$version_type
26673 # Format of library name prefix.
26674 libname_spec=$lt_libname_spec
26676 # List of archive names. First name is the real one, the rest are links.
26677 # The last name is the one that the linker finds with -lNAME.
26678 library_names_spec=$lt_library_names_spec
26680 # The coded name of the library, if different from the real name.
26681 soname_spec=$lt_soname_spec
26683 # Commands used to build and install an old-style archive.
26685 old_archive_cmds=$lt_old_archive_cmds_RC
26686 old_postinstall_cmds=$lt_old_postinstall_cmds
26687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26689 # Create an old-style archive from a shared archive.
26690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26692 # Create a temporary old-style archive to link instead of a shared archive.
26693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26695 # Commands used to build and install a shared archive.
26696 archive_cmds=$lt_archive_cmds_RC
26697 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26698 postinstall_cmds=$lt_postinstall_cmds
26699 postuninstall_cmds=$lt_postuninstall_cmds
26701 # Commands used to build a loadable module (assumed same as above if empty)
26702 module_cmds=$lt_module_cmds_RC
26703 module_expsym_cmds=$lt_module_expsym_cmds_RC
26705 # Commands to strip libraries.
26706 old_striplib=$lt_old_striplib
26707 striplib=$lt_striplib
26709 # Dependencies to place before the objects being linked to create a
26711 predep_objects=$lt_predep_objects_RC
26713 # Dependencies to place after the objects being linked to create a
26715 postdep_objects=$lt_postdep_objects_RC
26717 # Dependencies to place before the objects being linked to create a
26719 predeps=$lt_predeps_RC
26721 # Dependencies to place after the objects being linked to create a
26723 postdeps=$lt_postdeps_RC
26725 # The library search path used internally by the compiler when linking
26726 # a shared library.
26727 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26729 # Method to check whether dependent libraries are shared objects.
26730 deplibs_check_method=$lt_deplibs_check_method
26732 # Command to use when deplibs_check_method == file_magic.
26733 file_magic_cmd=$lt_file_magic_cmd
26735 # Flag that allows shared libraries with undefined symbols to be built.
26736 allow_undefined_flag=$lt_allow_undefined_flag_RC
26738 # Flag that forces no undefined symbols.
26739 no_undefined_flag=$lt_no_undefined_flag_RC
26741 # Commands used to finish a libtool library installation in a directory.
26742 finish_cmds=$lt_finish_cmds
26744 # Same as above, but a single script fragment to be evaled but not shown.
26745 finish_eval=$lt_finish_eval
26747 # Take the output of nm and produce a listing of raw symbols and C names.
26748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26750 # Transform the output of nm in a proper C declaration
26751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26753 # Transform the output of nm in a C name address pair
26754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26756 # This is the shared library runtime path variable.
26757 runpath_var=$runpath_var
26759 # This is the shared library path variable.
26760 shlibpath_var=$shlibpath_var
26762 # Is shlibpath searched before the hard-coded library search path?
26763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26765 # How to hardcode a shared library path into an executable.
26766 hardcode_action=$hardcode_action_RC
26768 # Whether we should hardcode library paths into libraries.
26769 hardcode_into_libs=$hardcode_into_libs
26771 # Flag to hardcode \$libdir into a binary during linking.
26772 # This must work even if \$libdir does not exist.
26773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26775 # If ld is used when linking, flag to hardcode \$libdir into
26776 # a binary during linking. This must work even if \$libdir does
26778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26780 # Whether we need a single -rpath flag with a separated argument.
26781 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26784 # resulting binary.
26785 hardcode_direct=$hardcode_direct_RC
26787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26788 # resulting binary.
26789 hardcode_minus_L=$hardcode_minus_L_RC
26791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26792 # the resulting binary.
26793 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26795 # Set to yes if building a shared library automatically hardcodes DIR into the library
26796 # and all subsequent libraries and executables linked against it.
26797 hardcode_automatic=$hardcode_automatic_RC
26799 # Variables whose values should be saved in libtool wrapper scripts and
26800 # restored at relink time.
26801 variables_saved_for_relink="$variables_saved_for_relink"
26803 # Whether libtool must link a program against all its dependency libraries.
26804 link_all_deplibs=$link_all_deplibs_RC
26806 # Compile-time system search path for libraries
26807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26809 # Run-time system search path for libraries
26810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26812 # Fix the shell variable \$srcfile for the compiler.
26813 fix_srcfile_path="$fix_srcfile_path_RC"
26815 # Set to yes if exported symbols are required.
26816 always_export_symbols=$always_export_symbols_RC
26818 # The commands to list exported symbols.
26819 export_symbols_cmds=$lt_export_symbols_cmds_RC
26821 # The commands to extract the exported symbol list from a shared archive.
26822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26824 # Symbols that should not be listed in the preloaded symbols.
26825 exclude_expsyms=$lt_exclude_expsyms_RC
26827 # Symbols that must always be exported.
26828 include_expsyms=$lt_include_expsyms_RC
26830 # ### END LIBTOOL TAG CONFIG: $tagname
26836 # If there is no Makefile yet, we rely on a make rule to execute
26837 # `config.status --recheck' to rerun these tests and create the
26838 # libtool script then.
26839 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26840 if test -f "$ltmain_in"; then
26841 test -f Makefile && make "$ltmain"
26847 ac_cpp='$CPP $CPPFLAGS'
26848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26857 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26858 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26859 { (exit 1); exit 1; }; }
26863 # Append the new tag name to the list of available tags.
26864 if test -n "$tagname" ; then
26865 available_tags="$available_tags $tagname"
26871 # Now substitute the updated list of available tags.
26872 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26873 mv "${ofile}T" "$ofile"
26877 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26878 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26879 { (exit 1); exit 1; }; }
26885 # This can be used to rebuild libtool when needed
26886 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26888 # Always use our own libtool.
26889 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26891 # Prevent multiple expansion
26913 if test "$lt_cv_dlopen_self" = "yes" ; then
26915 cat >>confdefs.h <<\_ACEOF
26916 #define CAN_DLOPEN_SELF 1
26922 if test "$WITH_LLVMGCCDIR" = "default" ; then
26923 LLVMGCC="llvm-gcc${EXEEXT}"
26924 LLVMGXX="llvm-g++${EXEEXT}"
26925 LLVMGCCCOMMAND="$LLVMGCC"
26926 LLVMGXXCOMMAND="$LLVMGXX"
26927 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26929 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26931 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26932 set dummy $LLVMGCC; ac_word=$2
26933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26935 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26936 echo $ECHO_N "(cached) $ECHO_C" >&6
26940 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26944 for as_dir in $PATH
26947 test -z "$as_dir" && as_dir=.
26948 for ac_exec_ext in '' $ac_executable_extensions; do
26949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26950 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26961 LLVMGCC=$ac_cv_path_LLVMGCC
26962 if test -n "$LLVMGCC"; then
26963 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26964 echo "${ECHO_T}$LLVMGCC" >&6; }
26966 { echo "$as_me:$LINENO: result: no" >&5
26967 echo "${ECHO_T}no" >&6; }
26971 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26972 set dummy $LLVMGXX; ac_word=$2
26973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26975 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26980 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26984 for as_dir in $PATH
26987 test -z "$as_dir" && as_dir=.
26988 for ac_exec_ext in '' $ac_executable_extensions; do
26989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26990 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27001 LLVMGXX=$ac_cv_path_LLVMGXX
27002 if test -n "$LLVMGXX"; then
27003 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27004 echo "${ECHO_T}$LLVMGXX" >&6; }
27006 { echo "$as_me:$LINENO: result: no" >&5
27007 echo "${ECHO_T}no" >&6; }
27012 if test -z "$LLVMGCC"; then
27013 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27014 LLVMGCCCOMMAND="$LLVMGCC"
27016 if test -z "$LLVMGXX"; then
27017 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27018 LLVMGXXCOMMAND="$LLVMGXX"
27025 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27027 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27032 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27033 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27046 if test "$GCC" != "yes" && test "$ICC" != "yes"
27048 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27049 echo "$as_me: error: gcc|icc required but not found" >&2;}
27050 { (exit 1); exit 1; }; }
27053 if test "$GXX" != "yes" && test "$IXX" != "yes"
27055 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27056 echo "$as_me: error: g++|icc required but not found" >&2;}
27057 { (exit 1); exit 1; }; }
27060 if test "$GCC" = "yes"
27062 cat >conftest.$ac_ext <<_ACEOF
27063 #if !defined(__GNUC__) || __GNUC__ < 3
27064 #error Unsupported GCC version
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_compile") 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27083 { (case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_try") 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_try") 2>&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27108 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27109 { (exit 1); exit 1; }; }
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 if test -z "$llvm_cv_gnu_make_command"
27117 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27118 echo "$as_me: error: GNU Make required but not found" >&2;}
27119 { (exit 1); exit 1; }; }
27122 { echo "$as_me:$LINENO: result: ok" >&5
27123 echo "${ECHO_T}ok" >&6; }
27127 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27128 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27129 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27132 ac_check_lib_save_LIBS=$LIBS
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27141 /* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
27151 return elf_begin ();
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (ac_try="$ac_link"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_link") 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest$ac_exeext'
27181 { (case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_try") 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
27190 ac_cv_lib_elf_elf_begin=yes
27192 echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27195 ac_cv_lib_elf_elf_begin=no
27198 rm -f core conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
27200 LIBS=$ac_check_lib_save_LIBS
27202 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27203 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27204 if test $ac_cv_lib_elf_elf_begin = yes; then
27205 cat >>confdefs.h <<_ACEOF
27206 #define HAVE_LIBELF 1
27214 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27215 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27216 if test "${ac_cv_lib_m_sin+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27219 ac_check_lib_save_LIBS=$LIBS
27221 cat >conftest.$ac_ext <<_ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27228 /* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27243 rm -f conftest.$ac_objext conftest$ac_exeext
27244 if { (ac_try="$ac_link"
27245 case "(($ac_try" in
27246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250 (eval "$ac_link") 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
27277 ac_cv_lib_m_sin=yes
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27285 rm -f core conftest.err conftest.$ac_objext \
27286 conftest$ac_exeext conftest.$ac_ext
27287 LIBS=$ac_check_lib_save_LIBS
27289 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27290 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27291 if test $ac_cv_lib_m_sin = yes; then
27292 cat >>confdefs.h <<_ACEOF
27293 #define HAVE_LIBM 1
27300 if test "$llvm_cv_os_type" = "MingW" ; then
27302 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27303 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27304 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
27307 ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-limagehlp $LIBS"
27309 cat >conftest.$ac_ext <<_ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326 if { (ac_try="$ac_link"
27327 case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_link") 2>conftest.er1
27334 grep -v '^ *+' conftest.er1 >conftest.err
27336 cat conftest.err >&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } &&
27339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27340 { (case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_try") 2>&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; } &&
27349 { ac_try='test -s conftest$ac_exeext'
27350 { (case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_try") 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 ac_cv_lib_imagehlp_main=yes
27361 echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27364 ac_cv_lib_imagehlp_main=no
27367 rm -f core conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext conftest.$ac_ext
27369 LIBS=$ac_check_lib_save_LIBS
27371 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27372 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27373 if test $ac_cv_lib_imagehlp_main = yes; then
27374 cat >>confdefs.h <<_ACEOF
27375 #define HAVE_LIBIMAGEHLP 1
27378 LIBS="-limagehlp $LIBS"
27383 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27384 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27385 if test "${ac_cv_lib_psapi_main+set}" = set; then
27386 echo $ECHO_N "(cached) $ECHO_C" >&6
27388 ac_check_lib_save_LIBS=$LIBS
27389 LIBS="-lpsapi $LIBS"
27390 cat >conftest.$ac_ext <<_ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27406 rm -f conftest.$ac_objext conftest$ac_exeext
27407 if { (ac_try="$ac_link"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_link") 2>conftest.er1
27415 grep -v '^ *+' conftest.er1 >conftest.err
27417 cat conftest.err >&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } &&
27420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27421 { (case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_try") 2>&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; } &&
27430 { ac_try='test -s conftest$ac_exeext'
27431 { (case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_try") 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
27440 ac_cv_lib_psapi_main=yes
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ac_cv_lib_psapi_main=no
27448 rm -f core conftest.err conftest.$ac_objext \
27449 conftest$ac_exeext conftest.$ac_ext
27450 LIBS=$ac_check_lib_save_LIBS
27452 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27453 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27454 if test $ac_cv_lib_psapi_main = yes; then
27455 cat >>confdefs.h <<_ACEOF
27456 #define HAVE_LIBPSAPI 1
27459 LIBS="-lpsapi $LIBS"
27465 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27466 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27467 if test "${ac_cv_search_dlopen+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27470 ac_func_search_save_LIBS=$LIBS
27471 cat >conftest.$ac_ext <<_ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27478 /* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
27493 for ac_lib in '' dl; do
27494 if test -z "$ac_lib"; then
27495 ac_res="none required"
27498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_link") 2>conftest.er1
27509 grep -v '^ *+' conftest.er1 >conftest.err
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
27514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515 { (case "(($ac_try" in
27516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520 (eval "$ac_try") 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; } &&
27524 { ac_try='test -s conftest$ac_exeext'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 ac_cv_search_dlopen=$ac_res
27536 echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27542 rm -f core conftest.err conftest.$ac_objext \
27544 if test "${ac_cv_search_dlopen+set}" = set; then
27548 if test "${ac_cv_search_dlopen+set}" = set; then
27551 ac_cv_search_dlopen=no
27553 rm conftest.$ac_ext
27554 LIBS=$ac_func_search_save_LIBS
27556 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27557 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27558 ac_res=$ac_cv_search_dlopen
27559 if test "$ac_res" != no; then
27560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27562 cat >>confdefs.h <<\_ACEOF
27563 #define HAVE_DLOPEN 1
27567 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27568 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27572 if test "$llvm_cv_enable_libffi" = "yes" ; then
27573 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27574 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27575 if test "${ac_cv_search_ffi_call+set}" = set; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27578 ac_func_search_save_LIBS=$LIBS
27579 cat >conftest.$ac_ext <<_ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h. */
27586 /* Override any GCC internal prototype to avoid an error.
27587 Use char because int might match the return type of a GCC
27588 builtin and then its argument prototype would still apply. */
27596 return ffi_call ();
27601 for ac_lib in '' ffi; do
27602 if test -z "$ac_lib"; then
27603 ac_res="none required"
27606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_link") 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
27622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623 { (case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628 (eval "$ac_try") 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_search_ffi_call=$ac_res
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27650 rm -f core conftest.err conftest.$ac_objext \
27652 if test "${ac_cv_search_ffi_call+set}" = set; then
27656 if test "${ac_cv_search_ffi_call+set}" = set; then
27659 ac_cv_search_ffi_call=no
27661 rm conftest.$ac_ext
27662 LIBS=$ac_func_search_save_LIBS
27664 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27665 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27666 ac_res=$ac_cv_search_ffi_call
27667 if test "$ac_res" != no; then
27668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27670 cat >>confdefs.h <<\_ACEOF
27671 #define HAVE_FFI_CALL 1
27675 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27676 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27681 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27682 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27686 ac_func_search_save_LIBS=$LIBS
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27694 /* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
27704 return mallinfo ();
27709 for ac_lib in '' malloc; do
27710 if test -z "$ac_lib"; then
27711 ac_res="none required"
27714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27716 rm -f conftest.$ac_objext conftest$ac_exeext
27717 if { (ac_try="$ac_link"
27718 case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_link") 2>conftest.er1
27725 grep -v '^ *+' conftest.er1 >conftest.err
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } &&
27730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27731 { (case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_try") 2>&5
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_try") 2>&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; }; then
27750 ac_cv_search_mallinfo=$ac_res
27752 echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27758 rm -f core conftest.err conftest.$ac_objext \
27760 if test "${ac_cv_search_mallinfo+set}" = set; then
27764 if test "${ac_cv_search_mallinfo+set}" = set; then
27767 ac_cv_search_mallinfo=no
27769 rm conftest.$ac_ext
27770 LIBS=$ac_func_search_save_LIBS
27772 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27773 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27774 ac_res=$ac_cv_search_mallinfo
27775 if test "$ac_res" != no; then
27776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27778 cat >>confdefs.h <<\_ACEOF
27779 #define HAVE_MALLINFO 1
27785 if test "$ENABLE_THREADS" -eq 1 ; then
27787 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27788 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27789 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 ac_check_lib_save_LIBS=$LIBS
27793 LIBS="-lpthread $LIBS"
27794 cat >conftest.$ac_ext <<_ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h. */
27801 /* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27807 char pthread_mutex_init ();
27811 return pthread_mutex_init ();
27816 rm -f conftest.$ac_objext conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_link") 2>conftest.er1
27825 grep -v '^ *+' conftest.er1 >conftest.err
27827 cat conftest.err >&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); } &&
27830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27831 { (case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_try") 2>&5
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); }; } &&
27840 { ac_try='test -s conftest$ac_exeext'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_lib_pthread_pthread_mutex_init=yes
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 ac_cv_lib_pthread_pthread_mutex_init=no
27858 rm -f core conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext conftest.$ac_ext
27860 LIBS=$ac_check_lib_save_LIBS
27862 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27863 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27864 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27865 cat >>confdefs.h <<_ACEOF
27866 #define HAVE_LIBPTHREAD 1
27869 LIBS="-lpthread $LIBS"
27873 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27874 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27878 ac_func_search_save_LIBS=$LIBS
27879 cat >conftest.$ac_ext <<_ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27886 /* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
27892 char pthread_mutex_lock ();
27896 return pthread_mutex_lock ();
27901 for ac_lib in '' pthread; do
27902 if test -z "$ac_lib"; then
27903 ac_res="none required"
27906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_link") 2>conftest.er1
27917 grep -v '^ *+' conftest.er1 >conftest.err
27919 cat conftest.err >&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } &&
27922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27923 { (case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_try") 2>&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; } &&
27932 { ac_try='test -s conftest$ac_exeext'
27933 { (case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_try") 2>&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); }; }; then
27942 ac_cv_search_pthread_mutex_lock=$ac_res
27944 echo "$as_me: failed program was:" >&5
27945 sed 's/^/| /' conftest.$ac_ext >&5
27950 rm -f core conftest.err conftest.$ac_objext \
27952 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27956 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27959 ac_cv_search_pthread_mutex_lock=no
27961 rm conftest.$ac_ext
27962 LIBS=$ac_func_search_save_LIBS
27964 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27965 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27966 ac_res=$ac_cv_search_pthread_mutex_lock
27967 if test "$ac_res" != no; then
27968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27970 cat >>confdefs.h <<\_ACEOF
27971 #define HAVE_PTHREAD_MUTEX_LOCK 1
27976 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27977 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27981 ac_func_search_save_LIBS=$LIBS
27982 cat >conftest.$ac_ext <<_ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h. */
27989 /* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
27995 char pthread_rwlock_init ();
27999 return pthread_rwlock_init ();
28004 for ac_lib in '' pthread; do
28005 if test -z "$ac_lib"; then
28006 ac_res="none required"
28009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28011 rm -f conftest.$ac_objext conftest$ac_exeext
28012 if { (ac_try="$ac_link"
28013 case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_link") 2>conftest.er1
28020 grep -v '^ *+' conftest.er1 >conftest.err
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } &&
28025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28026 { (case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_try") 2>&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest$ac_exeext'
28036 { (case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_try") 2>&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_search_pthread_rwlock_init=$ac_res
28047 echo "$as_me: failed program was:" >&5
28048 sed 's/^/| /' conftest.$ac_ext >&5
28053 rm -f core conftest.err conftest.$ac_objext \
28055 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28059 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28062 ac_cv_search_pthread_rwlock_init=no
28064 rm conftest.$ac_ext
28065 LIBS=$ac_func_search_save_LIBS
28067 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28068 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28069 ac_res=$ac_cv_search_pthread_rwlock_init
28070 if test "$ac_res" != no; then
28071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28073 cat >>confdefs.h <<\_ACEOF
28074 #define HAVE_PTHREAD_RWLOCK_INIT 1
28079 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28080 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28081 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28084 ac_func_search_save_LIBS=$LIBS
28085 cat >conftest.$ac_ext <<_ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h. */
28092 /* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
28098 char pthread_getspecific ();
28102 return pthread_getspecific ();
28107 for ac_lib in '' pthread; do
28108 if test -z "$ac_lib"; then
28109 ac_res="none required"
28112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (ac_try="$ac_link"
28116 case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_link") 2>conftest.er1
28123 grep -v '^ *+' conftest.er1 >conftest.err
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest$ac_exeext'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_search_pthread_getspecific=$ac_res
28150 echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28156 rm -f core conftest.err conftest.$ac_objext \
28158 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28162 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28165 ac_cv_search_pthread_getspecific=no
28167 rm conftest.$ac_ext
28168 LIBS=$ac_func_search_save_LIBS
28170 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28171 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28172 ac_res=$ac_cv_search_pthread_getspecific
28173 if test "$ac_res" != no; then
28174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_PTHREAD_GETSPECIFIC 1
28185 # Check whether --with-udis86 was given.
28186 if test "${with_udis86+set}" = set; then
28187 withval=$with_udis86;
28192 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28195 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28196 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28197 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28200 ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-ludis86 $LIBS"
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28209 /* Override any GCC internal prototype to avoid an error.
28210 Use char because int might match the return type of a GCC
28211 builtin and then its argument prototype would still apply. */
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (ac_try="$ac_link"
28226 case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_link") 2>conftest.er1
28233 grep -v '^ *+' conftest.er1 >conftest.err
28235 cat conftest.err >&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } &&
28238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; } &&
28248 { ac_try='test -s conftest$ac_exeext'
28249 { (case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_try") 2>&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 ac_cv_lib_udis86_ud_init=yes
28260 echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28263 ac_cv_lib_udis86_ud_init=no
28266 rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
28268 LIBS=$ac_check_lib_save_LIBS
28270 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28271 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28272 if test $ac_cv_lib_udis86_ud_init = yes; then
28273 cat >>confdefs.h <<_ACEOF
28274 #define HAVE_LIBUDIS86 1
28277 LIBS="-ludis86 $LIBS"
28281 echo "Error! You need to have libudis86 around."
28293 cat >>confdefs.h <<_ACEOF
28294 #define USE_UDIS86 $USE_UDIS86
28304 ac_header_dirent=no
28305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28306 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28307 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28308 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28310 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 cat >conftest.$ac_ext <<_ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h. */
28318 #include <sys/types.h>
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_compile") 2>conftest.er1
28339 grep -v '^ *+' conftest.er1 >conftest.err
28341 cat conftest.err >&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
28344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28345 { (case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_try") 2>&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; } &&
28354 { ac_try='test -s conftest.$ac_objext'
28355 { (case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_try") 2>&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; }; then
28364 eval "$as_ac_Header=yes"
28366 echo "$as_me: failed program was:" >&5
28367 sed 's/^/| /' conftest.$ac_ext >&5
28369 eval "$as_ac_Header=no"
28372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28374 ac_res=`eval echo '${'$as_ac_Header'}'`
28375 { echo "$as_me:$LINENO: result: $ac_res" >&5
28376 echo "${ECHO_T}$ac_res" >&6; }
28377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28378 cat >>confdefs.h <<_ACEOF
28379 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28382 ac_header_dirent=$ac_hdr; break
28386 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28387 if test $ac_header_dirent = dirent.h; then
28388 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28390 if test "${ac_cv_search_opendir+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28393 ac_func_search_save_LIBS=$LIBS
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28401 /* Override any GCC internal prototype to avoid an error.
28402 Use char because int might match the return type of a GCC
28403 builtin and then its argument prototype would still apply. */
28416 for ac_lib in '' dir; do
28417 if test -z "$ac_lib"; then
28418 ac_res="none required"
28421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_link") 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28438 { (case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443 (eval "$ac_try") 2>&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest$ac_exeext'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
28457 ac_cv_search_opendir=$ac_res
28459 echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28465 rm -f core conftest.err conftest.$ac_objext \
28467 if test "${ac_cv_search_opendir+set}" = set; then
28471 if test "${ac_cv_search_opendir+set}" = set; then
28474 ac_cv_search_opendir=no
28476 rm conftest.$ac_ext
28477 LIBS=$ac_func_search_save_LIBS
28479 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28480 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28481 ac_res=$ac_cv_search_opendir
28482 if test "$ac_res" != no; then
28483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28488 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28489 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28490 if test "${ac_cv_search_opendir+set}" = set; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28493 ac_func_search_save_LIBS=$LIBS
28494 cat >conftest.$ac_ext <<_ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h. */
28501 /* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
28516 for ac_lib in '' x; do
28517 if test -z "$ac_lib"; then
28518 ac_res="none required"
28521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_link") 2>conftest.er1
28532 grep -v '^ *+' conftest.er1 >conftest.err
28534 cat conftest.err >&5
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); } &&
28537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28538 { (case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_try") 2>&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; } &&
28547 { ac_try='test -s conftest$ac_exeext'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553 (eval "$ac_try") 2>&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
28557 ac_cv_search_opendir=$ac_res
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28565 rm -f core conftest.err conftest.$ac_objext \
28567 if test "${ac_cv_search_opendir+set}" = set; then
28571 if test "${ac_cv_search_opendir+set}" = set; then
28574 ac_cv_search_opendir=no
28576 rm conftest.$ac_ext
28577 LIBS=$ac_func_search_save_LIBS
28579 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28580 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28581 ac_res=$ac_cv_search_opendir
28582 if test "$ac_res" != no; then
28583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28589 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28590 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28591 if test "${ac_cv_header_mmap_anon+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28595 ac_cpp='$CPP $CPPFLAGS'
28596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28600 cat >conftest.$ac_ext <<_ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h. */
28606 #include <sys/mman.h>
28607 #include <unistd.h>
28612 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_compile") 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28632 { (case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637 (eval "$ac_try") 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
28642 { (case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_try") 2>&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_header_mmap_anon=yes
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ac_cv_header_mmap_anon=no
28659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28661 ac_cpp='$CPP $CPPFLAGS'
28662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28668 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28669 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28670 if test "$ac_cv_header_mmap_anon" = yes; then
28672 cat >>confdefs.h <<\_ACEOF
28673 #define HAVE_MMAP_ANONYMOUS 1
28678 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28679 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28680 if test "${ac_cv_header_stat_broken+set}" = set; then
28681 echo $ECHO_N "(cached) $ECHO_C" >&6
28683 cat >conftest.$ac_ext <<_ACEOF
28686 cat confdefs.h >>conftest.$ac_ext
28687 cat >>conftest.$ac_ext <<_ACEOF
28688 /* end confdefs.h. */
28689 #include <sys/types.h>
28690 #include <sys/stat.h>
28692 #if defined S_ISBLK && defined S_IFDIR
28693 # if S_ISBLK (S_IFDIR)
28698 #if defined S_ISBLK && defined S_IFCHR
28699 # if S_ISBLK (S_IFCHR)
28704 #if defined S_ISLNK && defined S_IFREG
28705 # if S_ISLNK (S_IFREG)
28710 #if defined S_ISSOCK && defined S_IFREG
28711 # if S_ISSOCK (S_IFREG)
28717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28718 $EGREP "You lose" >/dev/null 2>&1; then
28719 ac_cv_header_stat_broken=yes
28721 ac_cv_header_stat_broken=no
28726 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28727 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28728 if test $ac_cv_header_stat_broken = yes; then
28730 cat >>confdefs.h <<\_ACEOF
28731 #define STAT_MACROS_BROKEN 1
28736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28738 if test "${ac_cv_header_stdc+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 #include <stdlib.h>
28748 #include <stdarg.h>
28749 #include <string.h>
28760 rm -f conftest.$ac_objext
28761 if { (ac_try="$ac_compile"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_compile") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest.$ac_objext'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ac_cv_header_stdc=yes
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 ac_cv_header_stdc=no
28802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 if test $ac_cv_header_stdc = yes; then
28805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28806 cat >conftest.$ac_ext <<_ACEOF
28809 cat confdefs.h >>conftest.$ac_ext
28810 cat >>conftest.$ac_ext <<_ACEOF
28811 /* end confdefs.h. */
28812 #include <string.h>
28815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28816 $EGREP "memchr" >/dev/null 2>&1; then
28819 ac_cv_header_stdc=no
28825 if test $ac_cv_header_stdc = yes; then
28826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28833 #include <stdlib.h>
28836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28837 $EGREP "free" >/dev/null 2>&1; then
28840 ac_cv_header_stdc=no
28846 if test $ac_cv_header_stdc = yes; then
28847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28848 if test "$cross_compiling" = yes; then
28851 cat >conftest.$ac_ext <<_ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28858 #include <stdlib.h>
28859 #if ((' ' & 0x0FF) == 0x020)
28860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28863 # define ISLOWER(c) \
28864 (('a' <= (c) && (c) <= 'i') \
28865 || ('j' <= (c) && (c) <= 'r') \
28866 || ('s' <= (c) && (c) <= 'z'))
28867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28875 for (i = 0; i < 256; i++)
28876 if (XOR (islower (i), ISLOWER (i))
28877 || toupper (i) != TOUPPER (i))
28882 rm -f conftest$ac_exeext
28883 if { (ac_try="$ac_link"
28884 case "(($ac_try" in
28885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886 *) ac_try_echo=$ac_try;;
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889 (eval "$ac_link") 2>&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28893 { (case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_try") 2>&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; }; then
28904 echo "$as_me: program exited with status $ac_status" >&5
28905 echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28908 ( exit $ac_status )
28909 ac_cv_header_stdc=no
28911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28919 if test $ac_cv_header_stdc = yes; then
28921 cat >>confdefs.h <<\_ACEOF
28922 #define STDC_HEADERS 1
28927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28932 cat >conftest.$ac_ext <<_ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 #include <sys/types.h>
28939 #include <sys/wait.h>
28940 #ifndef WEXITSTATUS
28941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28957 rm -f conftest.$ac_objext
28958 if { (ac_try="$ac_compile"
28959 case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_compile") 2>conftest.er1
28966 grep -v '^ *+' conftest.er1 >conftest.err
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } &&
28971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_try") 2>&5
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; } &&
28981 { ac_try='test -s conftest.$ac_objext'
28982 { (case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_try") 2>&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; }; then
28991 ac_cv_header_sys_wait_h=yes
28993 echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28996 ac_cv_header_sys_wait_h=no
28999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29003 if test $ac_cv_header_sys_wait_h = yes; then
29005 cat >>confdefs.h <<\_ACEOF
29006 #define HAVE_SYS_WAIT_H 1
29011 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29012 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29013 if test "${ac_cv_header_time+set}" = set; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29016 cat >conftest.$ac_ext <<_ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h. */
29022 #include <sys/types.h>
29023 #include <sys/time.h>
29029 if ((struct tm *) 0)
29035 rm -f conftest.$ac_objext
29036 if { (ac_try="$ac_compile"
29037 case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_compile") 2>conftest.er1
29044 grep -v '^ *+' conftest.er1 >conftest.err
29046 cat conftest.err >&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } &&
29049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050 { (case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_try") 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try='test -s conftest.$ac_objext'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 ac_cv_header_time=yes
29071 echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29074 ac_cv_header_time=no
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29080 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29081 if test $ac_cv_header_time = yes; then
29083 cat >>confdefs.h <<\_ACEOF
29084 #define TIME_WITH_SYS_TIME 1
29096 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29109 # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <$ac_header>
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1 >conftest.err
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <$ac_header>
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29200 if test -z "$ac_cpp_err"; then
29201 ac_header_preproc=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_header_preproc=no
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29213 # So? What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29236 ## ----------------------------------- ##
29237 ## Report this to llvmbugs@cs.uiuc.edu ##
29238 ## ----------------------------------- ##
29240 ) | sed "s/^/$as_me: WARNING: /" >&2
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246 echo $ECHO_N "(cached) $ECHO_C" >&6
29248 eval "$as_ac_Header=\$ac_header_preproc"
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251 { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256 cat >>confdefs.h <<_ACEOF
29257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29270 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29283 # Is the header compilable?
29284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29292 $ac_includes_default
29293 #include <$ac_header>
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
29304 grep -v '^ *+' conftest.er1 >conftest.err
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
29309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest.$ac_objext'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
29329 ac_header_compiler=yes
29331 echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29334 ac_header_compiler=no
29337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339 echo "${ECHO_T}$ac_header_compiler" >&6; }
29341 # Is the header present?
29342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29350 #include <$ac_header>
29352 if { (ac_try="$ac_cpp conftest.$ac_ext"
29353 case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29360 grep -v '^ *+' conftest.er1 >conftest.err
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } >/dev/null; then
29365 if test -s conftest.err; then
29366 ac_cpp_err=$ac_c_preproc_warn_flag
29367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29374 if test -z "$ac_cpp_err"; then
29375 ac_header_preproc=yes
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_header_preproc=no
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29387 # So? What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29410 ## ----------------------------------- ##
29411 ## Report this to llvmbugs@cs.uiuc.edu ##
29412 ## ----------------------------------- ##
29414 ) | sed "s/^/$as_me: WARNING: /" >&2
29417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 eval "$as_ac_Header=\$ac_header_preproc"
29424 ac_res=`eval echo '${'$as_ac_Header'}'`
29425 { echo "$as_me:$LINENO: result: $ac_res" >&5
29426 echo "${ECHO_T}$ac_res" >&6; }
29429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29440 for ac_header in utime.h windows.h
29442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 ac_res=`eval echo '${'$as_ac_Header'}'`
29450 { echo "$as_me:$LINENO: result: $ac_res" >&5
29451 echo "${ECHO_T}$ac_res" >&6; }
29453 # Is the header compilable?
29454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29456 cat >conftest.$ac_ext <<_ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29462 $ac_includes_default
29463 #include <$ac_header>
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_compile") 2>conftest.er1
29474 grep -v '^ *+' conftest.er1 >conftest.err
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_try") 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try='test -s conftest.$ac_objext'
29490 { (case "(($ac_try" in
29491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492 *) ac_try_echo=$ac_try;;
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495 (eval "$ac_try") 2>&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 ac_header_compiler=yes
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 ac_header_compiler=no
29507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29509 echo "${ECHO_T}$ac_header_compiler" >&6; }
29511 # Is the header present?
29512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29514 cat >conftest.$ac_ext <<_ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29520 #include <$ac_header>
29522 if { (ac_try="$ac_cpp conftest.$ac_ext"
29523 case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } >/dev/null; then
29535 if test -s conftest.err; then
29536 ac_cpp_err=$ac_c_preproc_warn_flag
29537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29544 if test -z "$ac_cpp_err"; then
29545 ac_header_preproc=yes
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29550 ac_header_preproc=no
29553 rm -f conftest.err conftest.$ac_ext
29554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29555 echo "${ECHO_T}$ac_header_preproc" >&6; }
29557 # So? What about this header?
29558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29564 ac_header_preproc=yes
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29580 ## ----------------------------------- ##
29581 ## Report this to llvmbugs@cs.uiuc.edu ##
29582 ## ----------------------------------- ##
29584 ) | sed "s/^/$as_me: WARNING: /" >&2
29587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 eval "$as_ac_Header=\$ac_header_preproc"
29594 ac_res=`eval echo '${'$as_ac_Header'}'`
29595 { echo "$as_me:$LINENO: result: $ac_res" >&5
29596 echo "${ECHO_T}$ac_res" >&6; }
29599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29600 cat >>confdefs.h <<_ACEOF
29601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29612 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29619 echo $ECHO_N "(cached) $ECHO_C" >&6
29621 ac_res=`eval echo '${'$as_ac_Header'}'`
29622 { echo "$as_me:$LINENO: result: $ac_res" >&5
29623 echo "${ECHO_T}$ac_res" >&6; }
29625 # Is the header compilable?
29626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29628 cat >conftest.$ac_ext <<_ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h. */
29634 $ac_includes_default
29635 #include <$ac_header>
29637 rm -f conftest.$ac_objext
29638 if { (ac_try="$ac_compile"
29639 case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_compile") 2>conftest.er1
29646 grep -v '^ *+' conftest.er1 >conftest.err
29648 cat conftest.err >&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
29651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29652 { (case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_try") 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest.$ac_objext'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 ac_header_compiler=yes
29673 echo "$as_me: failed program was:" >&5
29674 sed 's/^/| /' conftest.$ac_ext >&5
29676 ac_header_compiler=no
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29681 echo "${ECHO_T}$ac_header_compiler" >&6; }
29683 # Is the header present?
29684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29686 cat >conftest.$ac_ext <<_ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h. */
29692 #include <$ac_header>
29694 if { (ac_try="$ac_cpp conftest.$ac_ext"
29695 case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29702 grep -v '^ *+' conftest.er1 >conftest.err
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } >/dev/null; then
29707 if test -s conftest.err; then
29708 ac_cpp_err=$ac_c_preproc_warn_flag
29709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29716 if test -z "$ac_cpp_err"; then
29717 ac_header_preproc=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_header_preproc=no
29725 rm -f conftest.err conftest.$ac_ext
29726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29727 echo "${ECHO_T}$ac_header_preproc" >&6; }
29729 # So? What about this header?
29730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29736 ac_header_preproc=yes
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29752 ## ----------------------------------- ##
29753 ## Report this to llvmbugs@cs.uiuc.edu ##
29754 ## ----------------------------------- ##
29756 ) | sed "s/^/$as_me: WARNING: /" >&2
29759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29762 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 eval "$as_ac_Header=\$ac_header_preproc"
29766 ac_res=`eval echo '${'$as_ac_Header'}'`
29767 { echo "$as_me:$LINENO: result: $ac_res" >&5
29768 echo "${ECHO_T}$ac_res" >&6; }
29771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29772 cat >>confdefs.h <<_ACEOF
29773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29784 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29791 echo $ECHO_N "(cached) $ECHO_C" >&6
29793 ac_res=`eval echo '${'$as_ac_Header'}'`
29794 { echo "$as_me:$LINENO: result: $ac_res" >&5
29795 echo "${ECHO_T}$ac_res" >&6; }
29797 # Is the header compilable?
29798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29806 $ac_includes_default
29807 #include <$ac_header>
29809 rm -f conftest.$ac_objext
29810 if { (ac_try="$ac_compile"
29811 case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_compile") 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; } &&
29833 { ac_try='test -s conftest.$ac_objext'
29834 { (case "(($ac_try" in
29835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836 *) ac_try_echo=$ac_try;;
29838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839 (eval "$ac_try") 2>&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29843 ac_header_compiler=yes
29845 echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29848 ac_header_compiler=no
29851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29853 echo "${ECHO_T}$ac_header_compiler" >&6; }
29855 # Is the header present?
29856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 #include <$ac_header>
29866 if { (ac_try="$ac_cpp conftest.$ac_ext"
29867 case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29874 grep -v '^ *+' conftest.er1 >conftest.err
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } >/dev/null; then
29879 if test -s conftest.err; then
29880 ac_cpp_err=$ac_c_preproc_warn_flag
29881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29888 if test -z "$ac_cpp_err"; then
29889 ac_header_preproc=yes
29891 echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29894 ac_header_preproc=no
29897 rm -f conftest.err conftest.$ac_ext
29898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29899 echo "${ECHO_T}$ac_header_preproc" >&6; }
29901 # So? What about this header?
29902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29908 ac_header_preproc=yes
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29924 ## ----------------------------------- ##
29925 ## Report this to llvmbugs@cs.uiuc.edu ##
29926 ## ----------------------------------- ##
29928 ) | sed "s/^/$as_me: WARNING: /" >&2
29931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29934 echo $ECHO_N "(cached) $ECHO_C" >&6
29936 eval "$as_ac_Header=\$ac_header_preproc"
29938 ac_res=`eval echo '${'$as_ac_Header'}'`
29939 { echo "$as_me:$LINENO: result: $ac_res" >&5
29940 echo "${ECHO_T}$ac_res" >&6; }
29943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29944 cat >>confdefs.h <<_ACEOF
29945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29952 if test "$ENABLE_THREADS" -eq 1 ; then
29954 for ac_header in pthread.h
29956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29967 # Is the header compilable?
29968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29970 cat >conftest.$ac_ext <<_ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h. */
29976 $ac_includes_default
29977 #include <$ac_header>
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_compile") 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994 { (case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_try") 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
30013 ac_header_compiler=yes
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ac_header_compiler=no
30021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023 echo "${ECHO_T}$ac_header_compiler" >&6; }
30025 # Is the header present?
30026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 #include <$ac_header>
30036 if { (ac_try="$ac_cpp conftest.$ac_ext"
30037 case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30044 grep -v '^ *+' conftest.er1 >conftest.err
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } >/dev/null; then
30049 if test -s conftest.err; then
30050 ac_cpp_err=$ac_c_preproc_warn_flag
30051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30058 if test -z "$ac_cpp_err"; then
30059 ac_header_preproc=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_header_preproc=no
30067 rm -f conftest.err conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069 echo "${ECHO_T}$ac_header_preproc" >&6; }
30071 # So? What about this header?
30072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30078 ac_header_preproc=yes
30081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30094 ## ----------------------------------- ##
30095 ## Report this to llvmbugs@cs.uiuc.edu ##
30096 ## ----------------------------------- ##
30098 ) | sed "s/^/$as_me: WARNING: /" >&2
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 eval "$as_ac_Header=\$ac_header_preproc"
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114 cat >>confdefs.h <<_ACEOF
30115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30131 if test "$llvm_cv_enable_libffi" = "yes" ; then
30134 for ac_header in ffi.h ffi/ffi.h
30136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
30143 ac_res=`eval echo '${'$as_ac_Header'}'`
30144 { echo "$as_me:$LINENO: result: $ac_res" >&5
30145 echo "${ECHO_T}$ac_res" >&6; }
30147 # Is the header compilable?
30148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30156 $ac_includes_default
30157 #include <$ac_header>
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_compile") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } &&
30173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
30184 { (case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_try") 2>&5
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; }; then
30193 ac_header_compiler=yes
30195 echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30198 ac_header_compiler=no
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30203 echo "${ECHO_T}$ac_header_compiler" >&6; }
30205 # Is the header present?
30206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30208 cat >conftest.$ac_ext <<_ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h. */
30214 #include <$ac_header>
30216 if { (ac_try="$ac_cpp conftest.$ac_ext"
30217 case "(($ac_try" in
30218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219 *) ac_try_echo=$ac_try;;
30221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30224 grep -v '^ *+' conftest.er1 >conftest.err
30226 cat conftest.err >&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); } >/dev/null; then
30229 if test -s conftest.err; then
30230 ac_cpp_err=$ac_c_preproc_warn_flag
30231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30238 if test -z "$ac_cpp_err"; then
30239 ac_header_preproc=yes
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30244 ac_header_preproc=no
30247 rm -f conftest.err conftest.$ac_ext
30248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30249 echo "${ECHO_T}$ac_header_preproc" >&6; }
30251 # So? What about this header?
30252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30258 ac_header_preproc=yes
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30274 ## ----------------------------------- ##
30275 ## Report this to llvmbugs@cs.uiuc.edu ##
30276 ## ----------------------------------- ##
30278 ) | sed "s/^/$as_me: WARNING: /" >&2
30281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30286 eval "$as_ac_Header=\$ac_header_preproc"
30288 ac_res=`eval echo '${'$as_ac_Header'}'`
30289 { echo "$as_me:$LINENO: result: $ac_res" >&5
30290 echo "${ECHO_T}$ac_res" >&6; }
30293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30294 cat >>confdefs.h <<_ACEOF
30295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30306 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30307 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30308 if test "${ac_cv_huge_val_sanity+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30313 ac_cpp='$CXXCPP $CPPFLAGS'
30314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30319 if test "$cross_compiling" = yes; then
30320 ac_cv_huge_val_sanity=yes
30322 cat >conftest.$ac_ext <<_ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30332 double x = HUGE_VAL; return x != x;
30337 rm -f conftest$ac_exeext
30338 if { (ac_try="$ac_link"
30339 case "(($ac_try" in
30340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30341 *) ac_try_echo=$ac_try;;
30343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344 (eval "$ac_link") 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; }; then
30357 ac_cv_huge_val_sanity=yes
30359 echo "$as_me: program exited with status $ac_status" >&5
30360 echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30363 ( exit $ac_status )
30364 ac_cv_huge_val_sanity=no
30366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30371 ac_cpp='$CPP $CPPFLAGS'
30372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30378 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30379 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30380 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30383 { echo "$as_me:$LINENO: checking for pid_t" >&5
30384 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30385 if test "${ac_cv_type_pid_t+set}" = set; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30388 cat >conftest.$ac_ext <<_ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h. */
30394 $ac_includes_default
30395 typedef pid_t ac__type_new_;
30399 if ((ac__type_new_ *) 0)
30401 if (sizeof (ac__type_new_))
30407 rm -f conftest.$ac_objext
30408 if { (ac_try="$ac_compile"
30409 case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_compile") 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } &&
30421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422 { (case "(($ac_try" in
30423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424 *) ac_try_echo=$ac_try;;
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427 (eval "$ac_try") 2>&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
30432 { (case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_try") 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; }; then
30441 ac_cv_type_pid_t=yes
30443 echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30446 ac_cv_type_pid_t=no
30449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30451 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30452 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30453 if test $ac_cv_type_pid_t = yes; then
30457 cat >>confdefs.h <<_ACEOF
30463 { echo "$as_me:$LINENO: checking for size_t" >&5
30464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30465 if test "${ac_cv_type_size_t+set}" = set; then
30466 echo $ECHO_N "(cached) $ECHO_C" >&6
30468 cat >conftest.$ac_ext <<_ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h. */
30474 $ac_includes_default
30475 typedef size_t ac__type_new_;
30479 if ((ac__type_new_ *) 0)
30481 if (sizeof (ac__type_new_))
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30496 grep -v '^ *+' conftest.er1 >conftest.err
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); } &&
30501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30502 { (case "(($ac_try" in
30503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30504 *) ac_try_echo=$ac_try;;
30506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30507 (eval "$ac_try") 2>&5
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; } &&
30511 { ac_try='test -s conftest.$ac_objext'
30512 { (case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_try") 2>&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; }; then
30521 ac_cv_type_size_t=yes
30523 echo "$as_me: failed program was:" >&5
30524 sed 's/^/| /' conftest.$ac_ext >&5
30526 ac_cv_type_size_t=no
30529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30531 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30532 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30533 if test $ac_cv_type_size_t = yes; then
30537 cat >>confdefs.h <<_ACEOF
30538 #define size_t unsigned int
30543 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30544 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30545 if test "${ac_cv_type_signal+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30554 #include <sys/types.h>
30555 #include <signal.h>
30560 return *(signal (0, 0)) (0) == 1;
30565 rm -f conftest.$ac_objext
30566 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30574 grep -v '^ *+' conftest.er1 >conftest.err
30576 cat conftest.err >&5
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578 (exit $ac_status); } &&
30579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30580 { (case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_try") 2>&5
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; } &&
30589 { ac_try='test -s conftest.$ac_objext'
30590 { (case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595 (eval "$ac_try") 2>&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; }; then
30599 ac_cv_type_signal=int
30601 echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30604 ac_cv_type_signal=void
30607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30609 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30610 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30612 cat >>confdefs.h <<_ACEOF
30613 #define RETSIGTYPE $ac_cv_type_signal
30617 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30618 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30619 if test "${ac_cv_struct_tm+set}" = set; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30622 cat >conftest.$ac_ext <<_ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30628 #include <sys/types.h>
30634 struct tm *tp; tp->tm_sec;
30639 rm -f conftest.$ac_objext
30640 if { (ac_try="$ac_compile"
30641 case "(($ac_try" in
30642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_compile") 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654 { (case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_try") 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest.$ac_objext'
30664 { (case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_try") 2>&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
30673 ac_cv_struct_tm=time.h
30675 echo "$as_me: failed program was:" >&5
30676 sed 's/^/| /' conftest.$ac_ext >&5
30678 ac_cv_struct_tm=sys/time.h
30681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30685 if test $ac_cv_struct_tm = sys/time.h; then
30687 cat >>confdefs.h <<\_ACEOF
30688 #define TM_IN_SYS_TIME 1
30693 { echo "$as_me:$LINENO: checking for int64_t" >&5
30694 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30695 if test "${ac_cv_type_int64_t+set}" = set; then
30696 echo $ECHO_N "(cached) $ECHO_C" >&6
30698 cat >conftest.$ac_ext <<_ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h. */
30704 $ac_includes_default
30705 typedef int64_t ac__type_new_;
30709 if ((ac__type_new_ *) 0)
30711 if (sizeof (ac__type_new_))
30717 rm -f conftest.$ac_objext
30718 if { (ac_try="$ac_compile"
30719 case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_compile") 2>conftest.er1
30726 grep -v '^ *+' conftest.er1 >conftest.err
30728 cat conftest.err >&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732 { (case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_try") 2>&5
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; } &&
30741 { ac_try='test -s conftest.$ac_objext'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
30751 ac_cv_type_int64_t=yes
30753 echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30756 ac_cv_type_int64_t=no
30759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30761 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30762 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30763 if test $ac_cv_type_int64_t = yes; then
30765 cat >>confdefs.h <<_ACEOF
30766 #define HAVE_INT64_T 1
30771 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30772 echo "$as_me: error: Type int64_t required but not found" >&2;}
30773 { (exit 1); exit 1; }; }
30776 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30777 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30778 if test "${ac_cv_type_uint64_t+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 $ac_includes_default
30788 typedef uint64_t ac__type_new_;
30792 if ((ac__type_new_ *) 0)
30794 if (sizeof (ac__type_new_))
30800 rm -f conftest.$ac_objext
30801 if { (ac_try="$ac_compile"
30802 case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_compile") 2>conftest.er1
30809 grep -v '^ *+' conftest.er1 >conftest.err
30811 cat conftest.err >&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest.$ac_objext'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; }; then
30834 ac_cv_type_uint64_t=yes
30836 echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30839 ac_cv_type_uint64_t=no
30842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30844 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30845 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30846 if test $ac_cv_type_uint64_t = yes; then
30848 cat >>confdefs.h <<_ACEOF
30849 #define HAVE_UINT64_T 1
30854 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30855 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30856 if test "${ac_cv_type_u_int64_t+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 $ac_includes_default
30866 typedef u_int64_t ac__type_new_;
30870 if ((ac__type_new_ *) 0)
30872 if (sizeof (ac__type_new_))
30878 rm -f conftest.$ac_objext
30879 if { (ac_try="$ac_compile"
30880 case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_compile") 2>conftest.er1
30887 grep -v '^ *+' conftest.er1 >conftest.err
30889 cat conftest.err >&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } &&
30892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30893 { (case "(($ac_try" in
30894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_try") 2>&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; } &&
30902 { ac_try='test -s conftest.$ac_objext'
30903 { (case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_try") 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30912 ac_cv_type_u_int64_t=yes
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30917 ac_cv_type_u_int64_t=no
30920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30922 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30923 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30924 if test $ac_cv_type_u_int64_t = yes; then
30926 cat >>confdefs.h <<_ACEOF
30927 #define HAVE_U_INT64_T 1
30932 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30933 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30934 { (exit 1); exit 1; }; }
30948 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30964 #define $ac_func innocuous_$ac_func
30966 /* System header to define __stub macros and hopefully few prototypes,
30967 which can conflict with char $ac_func (); below.
30968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969 <limits.h> exists even on freestanding compilers. */
30972 # include <limits.h>
30974 # include <assert.h>
30979 /* Override any GCC internal prototype to avoid an error.
30980 Use char because int might match the return type of a GCC
30981 builtin and then its argument prototype would still apply. */
30986 /* The GNU C library defines this for functions which it implements
30987 to always fail with ENOSYS. Some functions are actually named
30988 something starting with __ and the normal name is an alias. */
30989 #if defined __stub_$ac_func || defined __stub___$ac_func
30996 return $ac_func ();
31001 rm -f conftest.$ac_objext conftest$ac_exeext
31002 if { (ac_try="$ac_link"
31003 case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_link") 2>conftest.er1
31010 grep -v '^ *+' conftest.er1 >conftest.err
31012 cat conftest.err >&5
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); } &&
31015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31016 { (case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_try") 2>&5
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; } &&
31025 { ac_try='test -s conftest$ac_exeext'
31026 { (case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031 (eval "$ac_try") 2>&5
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); }; }; then
31035 eval "$as_ac_var=yes"
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 eval "$as_ac_var=no"
31043 rm -f core conftest.err conftest.$ac_objext \
31044 conftest$ac_exeext conftest.$ac_ext
31046 ac_res=`eval echo '${'$as_ac_var'}'`
31047 { echo "$as_me:$LINENO: result: $ac_res" >&5
31048 echo "${ECHO_T}$ac_res" >&6; }
31049 if test `eval echo '${'$as_ac_var'}'` = yes; then
31050 cat >>confdefs.h <<_ACEOF
31051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31061 for ac_func in powf fmodf strtof round
31063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31067 echo $ECHO_N "(cached) $ECHO_C" >&6
31069 cat >conftest.$ac_ext <<_ACEOF
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h. */
31075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31077 #define $ac_func innocuous_$ac_func
31079 /* System header to define __stub macros and hopefully few prototypes,
31080 which can conflict with char $ac_func (); below.
31081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31082 <limits.h> exists even on freestanding compilers. */
31085 # include <limits.h>
31087 # include <assert.h>
31092 /* Override any GCC internal prototype to avoid an error.
31093 Use char because int might match the return type of a GCC
31094 builtin and then its argument prototype would still apply. */
31099 /* The GNU C library defines this for functions which it implements
31100 to always fail with ENOSYS. Some functions are actually named
31101 something starting with __ and the normal name is an alias. */
31102 #if defined __stub_$ac_func || defined __stub___$ac_func
31109 return $ac_func ();
31114 rm -f conftest.$ac_objext conftest$ac_exeext
31115 if { (ac_try="$ac_link"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>conftest.er1
31123 grep -v '^ *+' conftest.er1 >conftest.err
31125 cat conftest.err >&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } &&
31128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest$ac_exeext'
31139 { (case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_try") 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31148 eval "$as_ac_var=yes"
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 eval "$as_ac_var=no"
31156 rm -f core conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
31159 ac_res=`eval echo '${'$as_ac_var'}'`
31160 { echo "$as_me:$LINENO: result: $ac_res" >&5
31161 echo "${ECHO_T}$ac_res" >&6; }
31162 if test `eval echo '${'$as_ac_var'}'` = yes; then
31163 cat >>confdefs.h <<_ACEOF
31164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31175 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
31183 cat >conftest.$ac_ext <<_ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31191 #define $ac_func innocuous_$ac_func
31193 /* System header to define __stub macros and hopefully few prototypes,
31194 which can conflict with char $ac_func (); below.
31195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31196 <limits.h> exists even on freestanding compilers. */
31199 # include <limits.h>
31201 # include <assert.h>
31206 /* Override any GCC internal prototype to avoid an error.
31207 Use char because int might match the return type of a GCC
31208 builtin and then its argument prototype would still apply. */
31213 /* The GNU C library defines this for functions which it implements
31214 to always fail with ENOSYS. Some functions are actually named
31215 something starting with __ and the normal name is an alias. */
31216 #if defined __stub_$ac_func || defined __stub___$ac_func
31223 return $ac_func ();
31228 rm -f conftest.$ac_objext conftest$ac_exeext
31229 if { (ac_try="$ac_link"
31230 case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_link") 2>conftest.er1
31237 grep -v '^ *+' conftest.er1 >conftest.err
31239 cat conftest.err >&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); } &&
31242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31243 { (case "(($ac_try" in
31244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245 *) ac_try_echo=$ac_try;;
31247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248 (eval "$ac_try") 2>&5
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); }; } &&
31252 { ac_try='test -s conftest$ac_exeext'
31253 { (case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_try") 2>&5
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); }; }; then
31262 eval "$as_ac_var=yes"
31264 echo "$as_me: failed program was:" >&5
31265 sed 's/^/| /' conftest.$ac_ext >&5
31267 eval "$as_ac_var=no"
31270 rm -f core conftest.err conftest.$ac_objext \
31271 conftest$ac_exeext conftest.$ac_ext
31273 ac_res=`eval echo '${'$as_ac_var'}'`
31274 { echo "$as_me:$LINENO: result: $ac_res" >&5
31275 echo "${ECHO_T}$ac_res" >&6; }
31276 if test `eval echo '${'$as_ac_var'}'` = yes; then
31277 cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31287 for ac_func in isatty mkdtemp mkstemp
31289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 cat >conftest.$ac_ext <<_ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h. */
31301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31303 #define $ac_func innocuous_$ac_func
31305 /* System header to define __stub macros and hopefully few prototypes,
31306 which can conflict with char $ac_func (); below.
31307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31308 <limits.h> exists even on freestanding compilers. */
31311 # include <limits.h>
31313 # include <assert.h>
31318 /* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
31325 /* The GNU C library defines this for functions which it implements
31326 to always fail with ENOSYS. Some functions are actually named
31327 something starting with __ and the normal name is an alias. */
31328 #if defined __stub_$ac_func || defined __stub___$ac_func
31335 return $ac_func ();
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (ac_try="$ac_link"
31342 case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_link") 2>conftest.er1
31349 grep -v '^ *+' conftest.er1 >conftest.err
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest$ac_exeext'
31365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 eval "$as_ac_var=yes"
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31379 eval "$as_ac_var=no"
31382 rm -f core conftest.err conftest.$ac_objext \
31383 conftest$ac_exeext conftest.$ac_ext
31385 ac_res=`eval echo '${'$as_ac_var'}'`
31386 { echo "$as_me:$LINENO: result: $ac_res" >&5
31387 echo "${ECHO_T}$ac_res" >&6; }
31388 if test `eval echo '${'$as_ac_var'}'` = yes; then
31389 cat >>confdefs.h <<_ACEOF
31390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31401 for ac_func in mktemp realpath sbrk setrlimit strdup
31403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31407 echo $ECHO_N "(cached) $ECHO_C" >&6
31409 cat >conftest.$ac_ext <<_ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31417 #define $ac_func innocuous_$ac_func
31419 /* System header to define __stub macros and hopefully few prototypes,
31420 which can conflict with char $ac_func (); below.
31421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31422 <limits.h> exists even on freestanding compilers. */
31425 # include <limits.h>
31427 # include <assert.h>
31432 /* Override any GCC internal prototype to avoid an error.
31433 Use char because int might match the return type of a GCC
31434 builtin and then its argument prototype would still apply. */
31439 /* The GNU C library defines this for functions which it implements
31440 to always fail with ENOSYS. Some functions are actually named
31441 something starting with __ and the normal name is an alias. */
31442 #if defined __stub_$ac_func || defined __stub___$ac_func
31449 return $ac_func ();
31454 rm -f conftest.$ac_objext conftest$ac_exeext
31455 if { (ac_try="$ac_link"
31456 case "(($ac_try" in
31457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458 *) ac_try_echo=$ac_try;;
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461 (eval "$ac_link") 2>conftest.er1
31463 grep -v '^ *+' conftest.er1 >conftest.err
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } &&
31468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31469 { (case "(($ac_try" in
31470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471 *) ac_try_echo=$ac_try;;
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_try") 2>&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; } &&
31478 { ac_try='test -s conftest$ac_exeext'
31479 { (case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484 (eval "$ac_try") 2>&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 eval "$as_ac_var=yes"
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31493 eval "$as_ac_var=no"
31496 rm -f core conftest.err conftest.$ac_objext \
31497 conftest$ac_exeext conftest.$ac_ext
31499 ac_res=`eval echo '${'$as_ac_var'}'`
31500 { echo "$as_me:$LINENO: result: $ac_res" >&5
31501 echo "${ECHO_T}$ac_res" >&6; }
31502 if test `eval echo '${'$as_ac_var'}'` = yes; then
31503 cat >>confdefs.h <<_ACEOF
31504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31513 for ac_func in strerror strerror_r strerror_s
31515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 cat >conftest.$ac_ext <<_ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h. */
31527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31529 #define $ac_func innocuous_$ac_func
31531 /* System header to define __stub macros and hopefully few prototypes,
31532 which can conflict with char $ac_func (); below.
31533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534 <limits.h> exists even on freestanding compilers. */
31537 # include <limits.h>
31539 # include <assert.h>
31544 /* Override any GCC internal prototype to avoid an error.
31545 Use char because int might match the return type of a GCC
31546 builtin and then its argument prototype would still apply. */
31551 /* The GNU C library defines this for functions which it implements
31552 to always fail with ENOSYS. Some functions are actually named
31553 something starting with __ and the normal name is an alias. */
31554 #if defined __stub_$ac_func || defined __stub___$ac_func
31561 return $ac_func ();
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (ac_try="$ac_link"
31568 case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573 (eval "$ac_link") 2>conftest.er1
31575 grep -v '^ *+' conftest.er1 >conftest.err
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
31580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest$ac_exeext'
31591 { (case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_try") 2>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
31600 eval "$as_ac_var=yes"
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 eval "$as_ac_var=no"
31608 rm -f core conftest.err conftest.$ac_objext \
31609 conftest$ac_exeext conftest.$ac_ext
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612 { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615 cat >>confdefs.h <<_ACEOF
31616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31626 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31632 echo $ECHO_N "(cached) $ECHO_C" >&6
31634 cat >conftest.$ac_ext <<_ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h. */
31640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31642 #define $ac_func innocuous_$ac_func
31644 /* System header to define __stub macros and hopefully few prototypes,
31645 which can conflict with char $ac_func (); below.
31646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31647 <limits.h> exists even on freestanding compilers. */
31650 # include <limits.h>
31652 # include <assert.h>
31657 /* Override any GCC internal prototype to avoid an error.
31658 Use char because int might match the return type of a GCC
31659 builtin and then its argument prototype would still apply. */
31664 /* The GNU C library defines this for functions which it implements
31665 to always fail with ENOSYS. Some functions are actually named
31666 something starting with __ and the normal name is an alias. */
31667 #if defined __stub_$ac_func || defined __stub___$ac_func
31674 return $ac_func ();
31679 rm -f conftest.$ac_objext conftest$ac_exeext
31680 if { (ac_try="$ac_link"
31681 case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_link") 2>conftest.er1
31688 grep -v '^ *+' conftest.er1 >conftest.err
31690 cat conftest.err >&5
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
31693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31694 { (case "(($ac_try" in
31695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696 *) ac_try_echo=$ac_try;;
31698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699 (eval "$ac_try") 2>&5
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; } &&
31703 { ac_try='test -s conftest$ac_exeext'
31704 { (case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_try") 2>&5
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; }; then
31713 eval "$as_ac_var=yes"
31715 echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31718 eval "$as_ac_var=no"
31721 rm -f core conftest.err conftest.$ac_objext \
31722 conftest$ac_exeext conftest.$ac_ext
31724 ac_res=`eval echo '${'$as_ac_var'}'`
31725 { echo "$as_me:$LINENO: result: $ac_res" >&5
31726 echo "${ECHO_T}$ac_res" >&6; }
31727 if test `eval echo '${'$as_ac_var'}'` = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31739 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31755 #define $ac_func innocuous_$ac_func
31757 /* System header to define __stub macros and hopefully few prototypes,
31758 which can conflict with char $ac_func (); below.
31759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31760 <limits.h> exists even on freestanding compilers. */
31763 # include <limits.h>
31765 # include <assert.h>
31770 /* Override any GCC internal prototype to avoid an error.
31771 Use char because int might match the return type of a GCC
31772 builtin and then its argument prototype would still apply. */
31777 /* The GNU C library defines this for functions which it implements
31778 to always fail with ENOSYS. Some functions are actually named
31779 something starting with __ and the normal name is an alias. */
31780 #if defined __stub_$ac_func || defined __stub___$ac_func
31787 return $ac_func ();
31792 rm -f conftest.$ac_objext conftest$ac_exeext
31793 if { (ac_try="$ac_link"
31794 case "(($ac_try" in
31795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31796 *) ac_try_echo=$ac_try;;
31798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31799 (eval "$ac_link") 2>conftest.er1
31801 grep -v '^ *+' conftest.er1 >conftest.err
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } &&
31806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; } &&
31816 { ac_try='test -s conftest$ac_exeext'
31817 { (case "(($ac_try" in
31818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819 *) ac_try_echo=$ac_try;;
31821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822 (eval "$ac_try") 2>&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
31826 eval "$as_ac_var=yes"
31828 echo "$as_me: failed program was:" >&5
31829 sed 's/^/| /' conftest.$ac_ext >&5
31831 eval "$as_ac_var=no"
31834 rm -f core conftest.err conftest.$ac_objext \
31835 conftest$ac_exeext conftest.$ac_ext
31837 ac_res=`eval echo '${'$as_ac_var'}'`
31838 { echo "$as_me:$LINENO: result: $ac_res" >&5
31839 echo "${ECHO_T}$ac_res" >&6; }
31840 if test `eval echo '${'$as_ac_var'}'` = yes; then
31841 cat >>confdefs.h <<_ACEOF
31842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31848 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31849 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31850 if test "${llvm_cv_c_printf_a+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31854 ac_cpp='$CPP $CPPFLAGS'
31855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31859 if test "$cross_compiling" = yes; then
31860 llvmac_cv_c_printf_a=no
31862 cat >conftest.$ac_ext <<_ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31871 #include <stdlib.h>
31877 volatile double A, B;
31881 sprintf(Buffer, "%a", A);
31885 if (A != 0x1.999999999999ap-4)
31892 rm -f conftest$ac_exeext
31893 if { (ac_try="$ac_link"
31894 case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_link") 2>&5
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31903 { (case "(($ac_try" in
31904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905 *) ac_try_echo=$ac_try;;
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908 (eval "$ac_try") 2>&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; }; then
31912 llvm_cv_c_printf_a=yes
31914 echo "$as_me: program exited with status $ac_status" >&5
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 ( exit $ac_status )
31919 llvmac_cv_c_printf_a=no
31921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31926 ac_cpp='$CPP $CPPFLAGS'
31927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31932 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31933 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31934 if test "$llvm_cv_c_printf_a" = "yes"; then
31936 cat >>confdefs.h <<\_ACEOF
31937 #define HAVE_PRINTF_A 1
31942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31943 # for constant arguments. Useless!
31944 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31945 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31946 if test "${ac_cv_working_alloca_h+set}" = set; then
31947 echo $ECHO_N "(cached) $ECHO_C" >&6
31949 cat >conftest.$ac_ext <<_ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h. */
31955 #include <alloca.h>
31959 char *p = (char *) alloca (2 * sizeof (int));
31965 rm -f conftest.$ac_objext conftest$ac_exeext
31966 if { (ac_try="$ac_link"
31967 case "(($ac_try" in
31968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969 *) ac_try_echo=$ac_try;;
31971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972 (eval "$ac_link") 2>conftest.er1
31974 grep -v '^ *+' conftest.er1 >conftest.err
31976 cat conftest.err >&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); } &&
31979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; } &&
31989 { ac_try='test -s conftest$ac_exeext'
31990 { (case "(($ac_try" in
31991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992 *) ac_try_echo=$ac_try;;
31994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995 (eval "$ac_try") 2>&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
31999 ac_cv_working_alloca_h=yes
32001 echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32004 ac_cv_working_alloca_h=no
32007 rm -f core conftest.err conftest.$ac_objext \
32008 conftest$ac_exeext conftest.$ac_ext
32010 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32012 if test $ac_cv_working_alloca_h = yes; then
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_ALLOCA_H 1
32020 { echo "$as_me:$LINENO: checking for alloca" >&5
32021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32022 if test "${ac_cv_func_alloca_works+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32025 cat >conftest.$ac_ext <<_ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h. */
32032 # define alloca __builtin_alloca
32035 # include <malloc.h>
32036 # define alloca _alloca
32039 # include <alloca.h>
32044 # ifndef alloca /* predefined by HP cc +Olibcalls */
32055 char *p = (char *) alloca (1);
32061 rm -f conftest.$ac_objext conftest$ac_exeext
32062 if { (ac_try="$ac_link"
32063 case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_link") 2>conftest.er1
32070 grep -v '^ *+' conftest.er1 >conftest.err
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
32075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32076 { (case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_try") 2>&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest$ac_exeext'
32086 { (case "(($ac_try" in
32087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088 *) ac_try_echo=$ac_try;;
32090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091 (eval "$ac_try") 2>&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; }; then
32095 ac_cv_func_alloca_works=yes
32097 echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32100 ac_cv_func_alloca_works=no
32103 rm -f core conftest.err conftest.$ac_objext \
32104 conftest$ac_exeext conftest.$ac_ext
32106 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32109 if test $ac_cv_func_alloca_works = yes; then
32111 cat >>confdefs.h <<\_ACEOF
32112 #define HAVE_ALLOCA 1
32116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32117 # that cause trouble. Some versions do not even contain alloca or
32118 # contain a buggy version. If you still want to use their alloca,
32119 # use ar to extract alloca.o from them instead of compiling alloca.c.
32121 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32123 cat >>confdefs.h <<\_ACEOF
32128 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32130 if test "${ac_cv_os_cray+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32139 #if defined CRAY && ! defined CRAY2
32146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32147 $EGREP "webecray" >/dev/null 2>&1; then
32155 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32156 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32157 if test $ac_cv_os_cray = yes; then
32158 for ac_func in _getb67 GETB67 getb67; do
32159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32163 echo $ECHO_N "(cached) $ECHO_C" >&6
32165 cat >conftest.$ac_ext <<_ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h. */
32171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32173 #define $ac_func innocuous_$ac_func
32175 /* System header to define __stub macros and hopefully few prototypes,
32176 which can conflict with char $ac_func (); below.
32177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32178 <limits.h> exists even on freestanding compilers. */
32181 # include <limits.h>
32183 # include <assert.h>
32188 /* Override any GCC internal prototype to avoid an error.
32189 Use char because int might match the return type of a GCC
32190 builtin and then its argument prototype would still apply. */
32195 /* The GNU C library defines this for functions which it implements
32196 to always fail with ENOSYS. Some functions are actually named
32197 something starting with __ and the normal name is an alias. */
32198 #if defined __stub_$ac_func || defined __stub___$ac_func
32205 return $ac_func ();
32210 rm -f conftest.$ac_objext conftest$ac_exeext
32211 if { (ac_try="$ac_link"
32212 case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_link") 2>conftest.er1
32219 grep -v '^ *+' conftest.er1 >conftest.err
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } &&
32224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32225 { (case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_try") 2>&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); }; } &&
32234 { ac_try='test -s conftest$ac_exeext'
32235 { (case "(($ac_try" in
32236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237 *) ac_try_echo=$ac_try;;
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240 (eval "$ac_try") 2>&5
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; }; then
32244 eval "$as_ac_var=yes"
32246 echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32249 eval "$as_ac_var=no"
32252 rm -f core conftest.err conftest.$ac_objext \
32253 conftest$ac_exeext conftest.$ac_ext
32255 ac_res=`eval echo '${'$as_ac_var'}'`
32256 { echo "$as_me:$LINENO: result: $ac_res" >&5
32257 echo "${ECHO_T}$ac_res" >&6; }
32258 if test `eval echo '${'$as_ac_var'}'` = yes; then
32260 cat >>confdefs.h <<_ACEOF
32261 #define CRAY_STACKSEG_END $ac_func
32270 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32271 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32272 if test "${ac_cv_c_stack_direction+set}" = set; then
32273 echo $ECHO_N "(cached) $ECHO_C" >&6
32275 if test "$cross_compiling" = yes; then
32276 ac_cv_c_stack_direction=0
32278 cat >conftest.$ac_ext <<_ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32284 $ac_includes_default
32286 find_stack_direction ()
32288 static char *addr = 0;
32293 return find_stack_direction ();
32296 return (&dummy > addr) ? 1 : -1;
32302 return find_stack_direction () < 0;
32305 rm -f conftest$ac_exeext
32306 if { (ac_try="$ac_link"
32307 case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_link") 2>&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; }; then
32325 ac_cv_c_stack_direction=1
32327 echo "$as_me: program exited with status $ac_status" >&5
32328 echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32331 ( exit $ac_status )
32332 ac_cv_c_stack_direction=-1
32334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32339 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32340 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32342 cat >>confdefs.h <<_ACEOF
32343 #define STACK_DIRECTION $ac_cv_c_stack_direction
32350 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32351 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32352 if test "${ac_cv_func_rand48+set}" = set; then
32353 echo $ECHO_N "(cached) $ECHO_C" >&6
32356 ac_cpp='$CXXCPP $CPPFLAGS'
32357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32361 cat >conftest.$ac_ext <<_ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h. */
32367 #include <stdlib.h>
32371 srand48(0);lrand48();drand48();
32376 rm -f conftest.$ac_objext
32377 if { (ac_try="$ac_compile"
32378 case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_compile") 2>conftest.er1
32385 grep -v '^ *+' conftest.er1 >conftest.err
32387 cat conftest.err >&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } &&
32390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; } &&
32400 { ac_try='test -s conftest.$ac_objext'
32401 { (case "(($ac_try" in
32402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403 *) ac_try_echo=$ac_try;;
32405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32406 (eval "$ac_try") 2>&5
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; }; then
32410 ac_cv_func_rand48=yes
32412 echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32415 ac_cv_func_rand48=no
32418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32420 ac_cpp='$CPP $CPPFLAGS'
32421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32427 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32429 if test "$ac_cv_func_rand48" = "yes" ; then
32431 cat >>confdefs.h <<\_ACEOF
32432 #define HAVE_RAND48 1
32438 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32439 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32440 if test "${ac_cv_cxx_namespaces+set}" = set; then
32441 echo $ECHO_N "(cached) $ECHO_C" >&6
32444 ac_cpp='$CXXCPP $CPPFLAGS'
32445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32449 cat >conftest.$ac_ext <<_ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32455 namespace Outer { namespace Inner { int i = 0; }}
32459 using namespace Outer::Inner; return i;
32464 rm -f conftest.$ac_objext
32465 if { (ac_try="$ac_compile"
32466 case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_compile") 2>conftest.er1
32473 grep -v '^ *+' conftest.er1 >conftest.err
32475 cat conftest.err >&5
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); } &&
32478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32479 { (case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_try") 2>&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; } &&
32488 { ac_try='test -s conftest.$ac_objext'
32489 { (case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_try") 2>&5
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); }; }; then
32498 ac_cv_cxx_namespaces=yes
32500 echo "$as_me: failed program was:" >&5
32501 sed 's/^/| /' conftest.$ac_ext >&5
32503 ac_cv_cxx_namespaces=no
32506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32508 ac_cpp='$CPP $CPPFLAGS'
32509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32515 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32516 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32517 if test "$ac_cv_cxx_namespaces" = yes; then
32519 cat >>confdefs.h <<\_ACEOF
32520 #define HAVE_NAMESPACES
32525 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32527 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528 echo $ECHO_N "(cached) $ECHO_C" >&6
32532 ac_cpp='$CXXCPP $CPPFLAGS'
32533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32537 cat >conftest.$ac_ext <<_ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h. */
32543 #include <iterator>
32544 #ifdef HAVE_NAMESPACES
32545 using namespace std;
32550 iterator<int,int,int> t; return 0;
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_compile") 2>conftest.er1
32564 grep -v '^ *+' conftest.er1 >conftest.err
32566 cat conftest.err >&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } &&
32569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570 { (case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_try") 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_try") 2>&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
32589 ac_cv_cxx_have_std_iterator=yes
32591 echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32594 ac_cv_cxx_have_std_iterator=no
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 ac_cpp='$CPP $CPPFLAGS'
32600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32606 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32608 if test "$ac_cv_cxx_have_std_iterator" = yes
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_STD_ITERATOR 1
32617 cat >>confdefs.h <<\_ACEOF
32618 #define HAVE_STD_ITERATOR 0
32623 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32625 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32630 ac_cpp='$CXXCPP $CPPFLAGS'
32631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32635 cat >conftest.$ac_ext <<_ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32641 #include <iterator>
32642 #ifdef HAVE_NAMESPACES
32643 using namespace std;
32648 bidirectional_iterator<int,int> t; return 0;
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
32662 grep -v '^ *+' conftest.er1 >conftest.err
32664 cat conftest.err >&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
32667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668 { (case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_try") 2>&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest.$ac_objext'
32678 { (case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_try") 2>&5
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
32687 ac_cv_cxx_have_bi_iterator=yes
32689 echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32692 ac_cv_cxx_have_bi_iterator=no
32695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32697 ac_cpp='$CPP $CPPFLAGS'
32698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32706 if test "$ac_cv_cxx_have_bi_iterator" = yes
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_BI_ITERATOR 1
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_BI_ITERATOR 0
32721 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32723 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32733 cat >conftest.$ac_ext <<_ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32739 #include <iterator>
32740 #ifdef HAVE_NAMESPACES
32741 using namespace std;
32746 forward_iterator<int,int> t; return 0;
32751 rm -f conftest.$ac_objext
32752 if { (ac_try="$ac_compile"
32753 case "(($ac_try" in
32754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755 *) ac_try_echo=$ac_try;;
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758 (eval "$ac_compile") 2>conftest.er1
32760 grep -v '^ *+' conftest.er1 >conftest.err
32762 cat conftest.err >&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } &&
32765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766 { (case "(($ac_try" in
32767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768 *) ac_try_echo=$ac_try;;
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771 (eval "$ac_try") 2>&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_try") 2>&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32785 ac_cv_cxx_have_fwd_iterator=yes
32787 echo "$as_me: failed program was:" >&5
32788 sed 's/^/| /' conftest.$ac_ext >&5
32790 ac_cv_cxx_have_fwd_iterator=no
32793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 ac_cpp='$CPP $CPPFLAGS'
32796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32802 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32804 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_FWD_ITERATOR 1
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_FWD_ITERATOR 0
32820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32826 ac_cpp='$CXXCPP $CPPFLAGS'
32827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32831 cat >conftest.$ac_ext <<_ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h. */
32846 rm -f conftest.$ac_objext
32847 if { (ac_try="$ac_compile"
32848 case "(($ac_try" in
32849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850 *) ac_try_echo=$ac_try;;
32852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853 (eval "$ac_compile") 2>conftest.er1
32855 grep -v '^ *+' conftest.er1 >conftest.err
32857 cat conftest.err >&5
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
32860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861 { (case "(($ac_try" in
32862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863 *) ac_try_echo=$ac_try;;
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866 (eval "$ac_try") 2>&5
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_try") 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
32880 ac_cv_func_isnan_in_math_h=yes
32882 echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32885 ac_cv_func_isnan_in_math_h=no
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32890 ac_cpp='$CPP $CPPFLAGS'
32891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32896 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32900 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_ISNAN_IN_MATH_H 1
32908 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32910 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 ac_cpp='$CXXCPP $CPPFLAGS'
32915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32919 cat >conftest.$ac_ext <<_ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32943 grep -v '^ *+' conftest.er1 >conftest.err
32945 cat conftest.err >&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } &&
32948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949 { (case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_try") 2>&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; }; then
32968 ac_cv_func_isnan_in_cmath=yes
32970 echo "$as_me: failed program was:" >&5
32971 sed 's/^/| /' conftest.$ac_ext >&5
32973 ac_cv_func_isnan_in_cmath=no
32976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32984 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32987 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32989 cat >>confdefs.h <<\_ACEOF
32990 #define HAVE_ISNAN_IN_CMATH 1
32995 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32997 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
33001 ac_cpp='$CXXCPP $CPPFLAGS'
33002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33016 float f; std::isnan(f);
33021 rm -f conftest.$ac_objext
33022 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33030 grep -v '^ *+' conftest.er1 >conftest.err
33032 cat conftest.err >&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } &&
33035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; } &&
33045 { ac_try='test -s conftest.$ac_objext'
33046 { (case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_try") 2>&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
33055 ac_cv_func_std_isnan_in_cmath=yes
33057 echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33060 ac_cv_func_std_isnan_in_cmath=no
33063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33065 ac_cpp='$CPP $CPPFLAGS'
33066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33071 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33074 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33076 cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_STD_ISNAN_IN_CMATH 1
33083 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33085 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 ac_cpp='$CXXCPP $CPPFLAGS'
33090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33094 cat >conftest.$ac_ext <<_ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h. */
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_compile") 2>conftest.er1
33118 grep -v '^ *+' conftest.er1 >conftest.err
33120 cat conftest.err >&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } &&
33123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest.$ac_objext'
33134 { (case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_try") 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143 ac_cv_func_isinf_in_math_h=yes
33145 echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33148 ac_cv_func_isinf_in_math_h=no
33151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153 ac_cpp='$CPP $CPPFLAGS'
33154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33159 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33162 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33164 cat >>confdefs.h <<\_ACEOF
33165 #define HAVE_ISINF_IN_MATH_H 1
33170 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33176 ac_cpp='$CXXCPP $CPPFLAGS'
33177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33181 cat >conftest.$ac_ext <<_ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h. */
33196 rm -f conftest.$ac_objext
33197 if { (ac_try="$ac_compile"
33198 case "(($ac_try" in
33199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200 *) ac_try_echo=$ac_try;;
33202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203 (eval "$ac_compile") 2>conftest.er1
33205 grep -v '^ *+' conftest.er1 >conftest.err
33207 cat conftest.err >&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); } &&
33210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33220 { ac_try='test -s conftest.$ac_objext'
33221 { (case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_try") 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 ac_cv_func_isinf_in_cmath=yes
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 ac_cv_func_isinf_in_cmath=no
33238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33240 ac_cpp='$CPP $CPPFLAGS'
33241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33246 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33249 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ISINF_IN_CMATH 1
33257 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33259 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33263 ac_cpp='$CXXCPP $CPPFLAGS'
33264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33268 cat >conftest.$ac_ext <<_ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h. */
33278 float f; std::isinf(f)}
33283 rm -f conftest.$ac_objext
33284 if { (ac_try="$ac_compile"
33285 case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_compile") 2>conftest.er1
33292 grep -v '^ *+' conftest.er1 >conftest.err
33294 cat conftest.err >&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); } &&
33297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest.$ac_objext'
33308 { (case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_try") 2>&5
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
33317 ac_cv_func_std_isinf_in_cmath=yes
33319 echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33322 ac_cv_func_std_isinf_in_cmath=no
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 ac_cpp='$CPP $CPPFLAGS'
33328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33333 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33336 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33338 cat >>confdefs.h <<\_ACEOF
33339 #define HAVE_STD_ISINF_IN_CMATH 1
33344 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33346 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33350 ac_cpp='$CXXCPP $CPPFLAGS'
33351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33355 cat >conftest.$ac_ext <<_ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h. */
33361 #include <ieeefp.h>
33365 float f; finite(f);
33370 rm -f conftest.$ac_objext
33371 if { (ac_try="$ac_compile"
33372 case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_compile") 2>conftest.er1
33379 grep -v '^ *+' conftest.er1 >conftest.err
33381 cat conftest.err >&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); } &&
33384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_try") 2>&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 ac_cv_func_finite_in_ieeefp_h=yes
33406 echo "$as_me: failed program was:" >&5
33407 sed 's/^/| /' conftest.$ac_ext >&5
33409 ac_cv_func_finite_in_ieeefp_h=no
33412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33414 ac_cpp='$CPP $CPPFLAGS'
33415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33423 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_FINITE_IN_IEEEFP_H 1
33433 if test "$llvm_cv_platform_type" = "Unix" ; then
33436 for ac_header in stdlib.h unistd.h
33438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33445 ac_res=`eval echo '${'$as_ac_Header'}'`
33446 { echo "$as_me:$LINENO: result: $ac_res" >&5
33447 echo "${ECHO_T}$ac_res" >&6; }
33449 # Is the header compilable?
33450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33452 cat >conftest.$ac_ext <<_ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h. */
33458 $ac_includes_default
33459 #include <$ac_header>
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
33470 grep -v '^ *+' conftest.er1 >conftest.err
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 ac_header_compiler=yes
33497 echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33500 ac_header_compiler=no
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505 echo "${ECHO_T}$ac_header_compiler" >&6; }
33507 # Is the header present?
33508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33510 cat >conftest.$ac_ext <<_ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33516 #include <$ac_header>
33518 if { (ac_try="$ac_cpp conftest.$ac_ext"
33519 case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33526 grep -v '^ *+' conftest.er1 >conftest.err
33528 cat conftest.err >&5
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); } >/dev/null; then
33531 if test -s conftest.err; then
33532 ac_cpp_err=$ac_c_preproc_warn_flag
33533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33540 if test -z "$ac_cpp_err"; then
33541 ac_header_preproc=yes
33543 echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 ac_header_preproc=no
33549 rm -f conftest.err conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551 echo "${ECHO_T}$ac_header_preproc" >&6; }
33553 # So? What about this header?
33554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560 ac_header_preproc=yes
33563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33576 ## ----------------------------------- ##
33577 ## Report this to llvmbugs@cs.uiuc.edu ##
33578 ## ----------------------------------- ##
33580 ) | sed "s/^/$as_me: WARNING: /" >&2
33583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33588 eval "$as_ac_Header=\$ac_header_preproc"
33590 ac_res=`eval echo '${'$as_ac_Header'}'`
33591 { echo "$as_me:$LINENO: result: $ac_res" >&5
33592 echo "${ECHO_T}$ac_res" >&6; }
33595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596 cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33605 for ac_func in getpagesize
33607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33613 cat >conftest.$ac_ext <<_ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33621 #define $ac_func innocuous_$ac_func
33623 /* System header to define __stub macros and hopefully few prototypes,
33624 which can conflict with char $ac_func (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
33629 # include <limits.h>
33631 # include <assert.h>
33636 /* Override any GCC internal prototype to avoid an error.
33637 Use char because int might match the return type of a GCC
33638 builtin and then its argument prototype would still apply. */
33643 /* The GNU C library defines this for functions which it implements
33644 to always fail with ENOSYS. Some functions are actually named
33645 something starting with __ and the normal name is an alias. */
33646 #if defined __stub_$ac_func || defined __stub___$ac_func
33653 return $ac_func ();
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_link") 2>conftest.er1
33667 grep -v '^ *+' conftest.er1 >conftest.err
33669 cat conftest.err >&5
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } &&
33672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673 { (case "(($ac_try" in
33674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675 *) ac_try_echo=$ac_try;;
33677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678 (eval "$ac_try") 2>&5
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
33683 { (case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_try") 2>&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
33692 eval "$as_ac_var=yes"
33694 echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33697 eval "$as_ac_var=no"
33700 rm -f core conftest.err conftest.$ac_objext \
33701 conftest$ac_exeext conftest.$ac_ext
33703 ac_res=`eval echo '${'$as_ac_var'}'`
33704 { echo "$as_me:$LINENO: result: $ac_res" >&5
33705 echo "${ECHO_T}$ac_res" >&6; }
33706 if test `eval echo '${'$as_ac_var'}'` = yes; then
33707 cat >>confdefs.h <<_ACEOF
33708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33714 { echo "$as_me:$LINENO: checking for working mmap" >&5
33715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33719 if test "$cross_compiling" = yes; then
33720 ac_cv_func_mmap_fixed_mapped=no
33722 cat >conftest.$ac_ext <<_ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h. */
33728 $ac_includes_default
33729 /* malloc might have been renamed as rpl_malloc. */
33732 /* Thanks to Mike Haertel and Jim Avera for this test.
33733 Here is a matrix of mmap possibilities:
33734 mmap private not fixed
33735 mmap private fixed at somewhere currently unmapped
33736 mmap private fixed at somewhere already mapped
33737 mmap shared not fixed
33738 mmap shared fixed at somewhere currently unmapped
33739 mmap shared fixed at somewhere already mapped
33740 For private mappings, we should verify that changes cannot be read()
33741 back from the file, nor mmap's back from the file at a different
33742 address. (There have been systems where private was not correctly
33743 implemented like the infamous i386 svr4.0, and systems where the
33744 VM page cache was not coherent with the file system buffer cache
33745 like early versions of FreeBSD and possibly contemporary NetBSD.)
33746 For shared mappings, we should conversely verify that changes get
33747 propagated back to all the places they're supposed to be.
33749 Grep wants private fixed already mapped.
33750 The main things grep needs to know about mmap are:
33751 * does it exist and is it safe to write into the mmap'd area
33752 * how to use it (BSD variants) */
33755 #include <sys/mman.h>
33757 #if !STDC_HEADERS && !HAVE_STDLIB_H
33761 /* This mess was copied from the GNU getpagesize.h. */
33762 #if !HAVE_GETPAGESIZE
33763 /* Assume that all systems that can run configure have sys/param.h. */
33764 # if !HAVE_SYS_PARAM_H
33765 # define HAVE_SYS_PARAM_H 1
33768 # ifdef _SC_PAGESIZE
33769 # define getpagesize() sysconf(_SC_PAGESIZE)
33770 # else /* no _SC_PAGESIZE */
33771 # if HAVE_SYS_PARAM_H
33772 # include <sys/param.h>
33773 # ifdef EXEC_PAGESIZE
33774 # define getpagesize() EXEC_PAGESIZE
33775 # else /* no EXEC_PAGESIZE */
33777 # define getpagesize() NBPG * CLSIZE
33780 # endif /* no CLSIZE */
33781 # else /* no NBPG */
33783 # define getpagesize() NBPC
33784 # else /* no NBPC */
33786 # define getpagesize() PAGESIZE
33787 # endif /* PAGESIZE */
33788 # endif /* no NBPC */
33789 # endif /* no NBPG */
33790 # endif /* no EXEC_PAGESIZE */
33791 # else /* no HAVE_SYS_PARAM_H */
33792 # define getpagesize() 8192 /* punt totally */
33793 # endif /* no HAVE_SYS_PARAM_H */
33794 # endif /* no _SC_PAGESIZE */
33796 #endif /* no HAVE_GETPAGESIZE */
33801 char *data, *data2, *data3;
33805 pagesize = getpagesize ();
33807 /* First, make a file with some known garbage in it. */
33808 data = (char *) malloc (pagesize);
33811 for (i = 0; i < pagesize; ++i)
33812 *(data + i) = rand ();
33814 fd = creat ("conftest.mmap", 0600);
33817 if (write (fd, data, pagesize) != pagesize)
33821 /* Next, try to mmap the file at a fixed address which already has
33822 something else allocated at it. If we can, also make sure that
33823 we see the same garbage. */
33824 fd = open ("conftest.mmap", O_RDWR);
33827 data2 = (char *) malloc (2 * pagesize);
33830 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33834 for (i = 0; i < pagesize; ++i)
33835 if (*(data + i) != *(data2 + i))
33838 /* Finally, make sure that changes to the mapped area do not
33839 percolate back to the file as seen by read(). (This is a bug on
33840 some variants of i386 svr4.0.) */
33841 for (i = 0; i < pagesize; ++i)
33842 *(data2 + i) = *(data2 + i) + 1;
33843 data3 = (char *) malloc (pagesize);
33846 if (read (fd, data3, pagesize) != pagesize)
33848 for (i = 0; i < pagesize; ++i)
33849 if (*(data + i) != *(data3 + i))
33855 rm -f conftest$ac_exeext
33856 if { (ac_try="$ac_link"
33857 case "(($ac_try" in
33858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859 *) ac_try_echo=$ac_try;;
33861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862 (eval "$ac_link") 2>&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33866 { (case "(($ac_try" in
33867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868 *) ac_try_echo=$ac_try;;
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871 (eval "$ac_try") 2>&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 ac_cv_func_mmap_fixed_mapped=yes
33877 echo "$as_me: program exited with status $ac_status" >&5
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33881 ( exit $ac_status )
33882 ac_cv_func_mmap_fixed_mapped=no
33884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33889 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33891 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33893 cat >>confdefs.h <<\_ACEOF
33894 #define HAVE_MMAP 1
33898 rm -f conftest.mmap
33900 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33901 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33902 if test "${ac_cv_func_mmap_file+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33906 ac_cpp='$CPP $CPPFLAGS'
33907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33911 if test "$cross_compiling" = yes; then
33912 ac_cv_func_mmap_file=no
33914 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33922 #include <sys/types.h>
33923 #include <sys/mman.h>
33931 fd = creat ("foo",0777);
33932 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33934 return (fd != (int) MAP_FAILED);
33939 rm -f conftest$ac_exeext
33940 if { (ac_try="$ac_link"
33941 case "(($ac_try" in
33942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943 *) ac_try_echo=$ac_try;;
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946 (eval "$ac_link") 2>&5
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33950 { (case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_try") 2>&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ac_cv_func_mmap_file=yes
33961 echo "$as_me: program exited with status $ac_status" >&5
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33965 ( exit $ac_status )
33966 ac_cv_func_mmap_file=no
33968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33982 if test "$ac_cv_func_mmap_file" = yes; then
33984 cat >>confdefs.h <<\_ACEOF
33985 #define HAVE_MMAP_FILE
33992 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33993 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33994 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33997 if test "$llvm_cv_os_type" = "Interix" ; then
33998 ac_cv_need_dev_zero_for_mmap=yes
34000 ac_cv_need_dev_zero_for_mmap=no
34004 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34006 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34008 cat >>confdefs.h <<\_ACEOF
34009 #define NEED_DEV_ZERO_FOR_MMAP 1
34014 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34016 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34017 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34019 if test "$ac_cv_func_mmap_file" = "no"
34021 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34022 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34026 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34027 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34028 cat >conftest.$ac_ext <<_ACEOF
34031 cat confdefs.h >>conftest.$ac_ext
34032 cat >>conftest.$ac_ext <<_ACEOF
34033 /* end confdefs.h. */
34035 volatile unsigned long val = 1;
34036 __sync_synchronize();
34037 __sync_val_compare_and_swap(&val, 1, 0);
34038 __sync_add_and_fetch(&val, 1);
34039 __sync_sub_and_fetch(&val, 1);
34044 rm -f conftest.$ac_objext conftest$ac_exeext
34045 if { (ac_try="$ac_link"
34046 case "(($ac_try" in
34047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048 *) ac_try_echo=$ac_try;;
34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051 (eval "$ac_link") 2>conftest.er1
34053 grep -v '^ *+' conftest.er1 >conftest.err
34055 cat conftest.err >&5
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } &&
34058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34059 { (case "(($ac_try" in
34060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34061 *) ac_try_echo=$ac_try;;
34063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34064 (eval "$ac_try") 2>&5
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; } &&
34068 { ac_try='test -s conftest$ac_exeext'
34069 { (case "(($ac_try" in
34070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071 *) ac_try_echo=$ac_try;;
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074 (eval "$ac_try") 2>&5
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; }; then
34078 { echo "$as_me:$LINENO: result: yes" >&5
34079 echo "${ECHO_T}yes" >&6; }
34081 cat >>confdefs.h <<\_ACEOF
34082 #define LLVM_MULTITHREADED 1
34086 echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34089 { echo "$as_me:$LINENO: result: no" >&5
34090 echo "${ECHO_T}no" >&6; }
34092 cat >>confdefs.h <<\_ACEOF
34093 #define LLVM_MULTITHREADED 0
34096 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34097 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34100 rm -f core conftest.err conftest.$ac_objext \
34101 conftest$ac_exeext conftest.$ac_ext
34106 for ac_func in __dso_handle
34108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34114 cat >conftest.$ac_ext <<_ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h. */
34120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34122 #define $ac_func innocuous_$ac_func
34124 /* System header to define __stub macros and hopefully few prototypes,
34125 which can conflict with char $ac_func (); below.
34126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34127 <limits.h> exists even on freestanding compilers. */
34130 # include <limits.h>
34132 # include <assert.h>
34137 /* Override any GCC internal prototype to avoid an error.
34138 Use char because int might match the return type of a GCC
34139 builtin and then its argument prototype would still apply. */
34144 /* The GNU C library defines this for functions which it implements
34145 to always fail with ENOSYS. Some functions are actually named
34146 something starting with __ and the normal name is an alias. */
34147 #if defined __stub_$ac_func || defined __stub___$ac_func
34154 return $ac_func ();
34159 rm -f conftest.$ac_objext conftest$ac_exeext
34160 if { (ac_try="$ac_link"
34161 case "(($ac_try" in
34162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163 *) ac_try_echo=$ac_try;;
34165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166 (eval "$ac_link") 2>conftest.er1
34168 grep -v '^ *+' conftest.er1 >conftest.err
34170 cat conftest.err >&5
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); } &&
34173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34174 { (case "(($ac_try" in
34175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176 *) ac_try_echo=$ac_try;;
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179 (eval "$ac_try") 2>&5
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; } &&
34183 { ac_try='test -s conftest$ac_exeext'
34184 { (case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_try") 2>&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; }; then
34193 eval "$as_ac_var=yes"
34195 echo "$as_me: failed program was:" >&5
34196 sed 's/^/| /' conftest.$ac_ext >&5
34198 eval "$as_ac_var=no"
34201 rm -f core conftest.err conftest.$ac_objext \
34202 conftest$ac_exeext conftest.$ac_ext
34204 ac_res=`eval echo '${'$as_ac_var'}'`
34205 { echo "$as_me:$LINENO: result: $ac_res" >&5
34206 echo "${ECHO_T}$ac_res" >&6; }
34207 if test `eval echo '${'$as_ac_var'}'` = yes; then
34208 cat >>confdefs.h <<_ACEOF
34209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34216 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34217 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34218 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34221 llvm_cv_llvmgcc_sanity="no"
34222 if test -x "$LLVMGCC" ; then
34223 cp /dev/null conftest.c
34224 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34225 grep 'target datalayout =' > /dev/null 2>&1
34226 if test $? -eq 0 ; then
34227 llvm_cv_llvmgcc_sanity="yes"
34232 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34233 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34235 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34236 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34237 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34238 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34239 LLVMCC1=$llvmcc1path
34241 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34242 LLVMCC1PLUS=$llvmcc1pluspath
34244 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34245 LLVMGCCDIR=$llvmgccdir
34247 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34248 LLVMGCCLIBEXEC=$llvmgcclibexec
34250 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34251 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34252 LLVMGCC_VERSION=$llvmgccversion
34254 LLVMGCC_MAJVERS=$llvmgccmajvers
34256 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34257 LLVMGCC_LANGS=$llvmgcclangs
34259 { echo "$as_me:$LINENO: result: ok" >&5
34260 echo "${ECHO_T}ok" >&6; }
34263 SHLIBEXT=$libltdl_cv_shlibext
34266 # Translate the various configuration directories and other basic
34267 # information into substitutions that will end up in Makefile.config.in
34268 # that these configured values can be used by the makefiles
34269 if test "${prefix}" = "NONE" ; then
34270 prefix="/usr/local"
34272 eval LLVM_PREFIX="${prefix}";
34273 eval LLVM_BINDIR="${prefix}/bin";
34274 eval LLVM_LIBDIR="${prefix}/lib";
34275 eval LLVM_DATADIR="${prefix}/share/llvm";
34276 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34278 eval LLVM_INCLUDEDIR="${prefix}/include";
34279 eval LLVM_INFODIR="${prefix}/info";
34280 eval LLVM_MANDIR="${prefix}/man";
34281 LLVM_CONFIGTIME=`date`
34293 # Place the various directores into the config.h file as #defines so that we
34294 # can know about the installation paths within LLVM.
34296 cat >>confdefs.h <<_ACEOF
34297 #define LLVM_PREFIX "$LLVM_PREFIX"
34301 cat >>confdefs.h <<_ACEOF
34302 #define LLVM_BINDIR "$LLVM_BINDIR"
34306 cat >>confdefs.h <<_ACEOF
34307 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34311 cat >>confdefs.h <<_ACEOF
34312 #define LLVM_DATADIR "$LLVM_DATADIR"
34316 cat >>confdefs.h <<_ACEOF
34317 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34321 cat >>confdefs.h <<_ACEOF
34322 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34326 cat >>confdefs.h <<_ACEOF
34327 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34331 cat >>confdefs.h <<_ACEOF
34332 #define LLVM_INFODIR "$LLVM_INFODIR"
34336 cat >>confdefs.h <<_ACEOF
34337 #define LLVM_MANDIR "$LLVM_MANDIR"
34341 cat >>confdefs.h <<_ACEOF
34342 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34346 cat >>confdefs.h <<_ACEOF
34347 #define LLVM_HOSTTRIPLE "$host"
34351 # Determine which bindings to build.
34352 if test "$BINDINGS_TO_BUILD" = auto ; then
34353 BINDINGS_TO_BUILD=""
34354 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34355 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34358 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34361 # This isn't really configurey, but it avoids having to repeat the list in
34366 # Do any work necessary to ensure that bindings have what they need.
34367 binding_prereqs_failed=0
34368 for a_binding in $BINDINGS_TO_BUILD ; do
34369 case "$a_binding" in
34371 if test "x$OCAMLC" = x ; then
34372 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34373 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34374 binding_prereqs_failed=1
34376 if test "x$OCAMLDEP" = x ; then
34377 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34378 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34379 binding_prereqs_failed=1
34381 if test "x$OCAMLOPT" = x ; then
34382 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34383 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34385 if test "x$with_ocaml_libdir" != xauto ; then
34386 OCAML_LIBDIR=$with_ocaml_libdir
34389 ocaml_stdlib="`"$OCAMLC" -where`"
34390 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34392 # ocaml stdlib is beneath our prefix; use stdlib
34393 OCAML_LIBDIR=$ocaml_stdlib
34396 # ocaml stdlib is outside our prefix; use libdir/ocaml
34397 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34404 if test "$binding_prereqs_failed" = 1 ; then
34405 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34406 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34407 { (exit 1); exit 1; }; }
34410 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34411 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34412 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34413 echo $ECHO_N "(cached) $ECHO_C" >&6
34416 ac_cpp='$CXXCPP $CPPFLAGS'
34417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34421 oldcxxflags="$CXXFLAGS"
34422 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34423 cat >conftest.$ac_ext <<_ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h. */
34438 rm -f conftest.$ac_objext
34439 if { (ac_try="$ac_compile"
34440 case "(($ac_try" in
34441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442 *) ac_try_echo=$ac_try;;
34444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34445 (eval "$ac_compile") 2>conftest.er1
34447 grep -v '^ *+' conftest.er1 >conftest.err
34449 cat conftest.err >&5
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); } &&
34452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34453 { (case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_try") 2>&5
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; } &&
34462 { ac_try='test -s conftest.$ac_objext'
34463 { (case "(($ac_try" in
34464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465 *) ac_try_echo=$ac_try;;
34467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468 (eval "$ac_try") 2>&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; }; then
34472 llvm_cv_cxx_visibility_inlines_hidden=yes
34474 echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34477 llvm_cv_cxx_visibility_inlines_hidden=no
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481 CXXFLAGS="$oldcxxflags"
34483 ac_cpp='$CPP $CPPFLAGS'
34484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34490 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34491 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34492 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34493 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34496 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34501 if test "$llvm_cv_link_use_r" = "yes" ; then
34508 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34509 RDYNAMIC="-Wl,-export-dynamic"
34516 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34518 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34520 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34522 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34524 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34527 ac_config_files="$ac_config_files Makefile.config"
34530 ac_config_files="$ac_config_files llvm.spec"
34533 ac_config_files="$ac_config_files docs/doxygen.cfg"
34536 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34539 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34542 ac_config_commands="$ac_config_commands setup"
34544 ac_config_commands="$ac_config_commands Makefile"
34547 ac_config_commands="$ac_config_commands Makefile.common"
34550 ac_config_commands="$ac_config_commands examples/Makefile"
34553 ac_config_commands="$ac_config_commands lib/Makefile"
34556 ac_config_commands="$ac_config_commands runtime/Makefile"
34559 ac_config_commands="$ac_config_commands test/Makefile"
34562 ac_config_commands="$ac_config_commands test/Makefile.tests"
34565 ac_config_commands="$ac_config_commands unittests/Makefile"
34568 ac_config_commands="$ac_config_commands tools/Makefile"
34571 ac_config_commands="$ac_config_commands utils/Makefile"
34574 ac_config_commands="$ac_config_commands projects/Makefile"
34577 ac_config_commands="$ac_config_commands bindings/Makefile"
34580 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34584 cat >confcache <<\_ACEOF
34585 # This file is a shell script that caches the results of configure
34586 # tests run on this system so they can be shared between configure
34587 # scripts and configure runs, see configure's option --config-cache.
34588 # It is not useful on other systems. If it contains results you don't
34589 # want to keep, you may remove or edit it.
34591 # config.status only pays attention to the cache file if you give it
34592 # the --recheck option to rerun configure.
34594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34596 # following values.
34600 # The following way of writing the cache mishandles newlines in values,
34601 # but we know of no workaround that is simple, portable, and efficient.
34602 # So, we kill variables containing newlines.
34603 # Ultrix sh set writes to stderr and can't be redirected directly,
34604 # and sets the high bit in the cache file unless we assign to the vars.
34606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34607 eval ac_val=\$$ac_var
34611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34615 _ | IFS | as_nl) ;; #(
34616 *) $as_unset $ac_var ;;
34622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34623 *${as_nl}ac_space=\ *)
34624 # `set' does not quote correctly, so add quotes (double-quote
34625 # substitution turns \\\\ into \\, and sed turns \\ into \).
34628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34631 # `set' quotes correctly as required by POSIX, so do not add quotes.
34632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34646 if test -w "$cache_file"; then
34647 test "x$cache_file" != "x/dev/null" &&
34648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34649 echo "$as_me: updating cache $cache_file" >&6;}
34650 cat confcache >$cache_file
34652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34659 # Let make expand exec_prefix.
34660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34662 DEFS=-DHAVE_CONFIG_H
34666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34667 # 1. Remove the extension, and $U if already installed.
34668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34669 ac_i=`echo "$ac_i" | sed "$ac_script"`
34670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34671 # will be set to the directory where LIBOBJS objects are built.
34672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34675 LIBOBJS=$ac_libobjs
34677 LTLIBOBJS=$ac_ltlibobjs
34680 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34681 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34682 Usually this means the macro was only invoked conditionally." >&5
34683 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34684 Usually this means the macro was only invoked conditionally." >&2;}
34685 { (exit 1); exit 1; }; }
34687 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34688 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34689 Usually this means the macro was only invoked conditionally." >&5
34690 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34691 Usually this means the macro was only invoked conditionally." >&2;}
34692 { (exit 1); exit 1; }; }
34695 : ${CONFIG_STATUS=./config.status}
34696 ac_clean_files_save=$ac_clean_files
34697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34700 cat >$CONFIG_STATUS <<_ACEOF
34702 # Generated by $as_me.
34703 # Run this file to recreate the current configuration.
34704 # Compiler output produced by configure, useful for debugging
34705 # configure, is in config.log if it exists.
34708 ac_cs_recheck=false
34710 SHELL=\${CONFIG_SHELL-$SHELL}
34713 cat >>$CONFIG_STATUS <<\_ACEOF
34714 ## --------------------- ##
34715 ## M4sh Initialization. ##
34716 ## --------------------- ##
34718 # Be Bourne compatible
34719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34722 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34723 # is contrary to our usage. Disable this feature.
34724 alias -g '${1+"$@"}'='"$@"'
34725 setopt NO_GLOB_SUBST
34727 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34729 BIN_SH=xpg4; export BIN_SH # for Tru64
34730 DUALCASE=1; export DUALCASE # for MKS sh
34734 # Avoid depending upon Character Ranges.
34735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34738 as_cr_digits='0123456789'
34739 as_cr_alnum=$as_cr_Letters$as_cr_digits
34741 # The user is always right.
34742 if test "${PATH_SEPARATOR+set}" != set; then
34743 echo "#! /bin/sh" >conf$$.sh
34744 echo "exit 0" >>conf$$.sh
34746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34754 # Support unset when possible.
34755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34763 # We need space, tab and new line, in precisely that order. Quoting is
34764 # there to prevent editors from complaining about space-tab.
34765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34766 # splitting by setting IFS to empty value.)
34771 # Find who we are. Look in the path if we contain no directory separator.
34773 *[\\/]* ) as_myself=$0 ;;
34774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34775 for as_dir in $PATH
34778 test -z "$as_dir" && as_dir=.
34779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34785 # We did not find ourselves, most probably we were run as `sh COMMAND'
34786 # in which case we are not to be found in the path.
34787 if test "x$as_myself" = x; then
34790 if test ! -f "$as_myself"; then
34791 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34792 { (exit 1); exit 1; }
34795 # Work around bugs in pre-3.0 UWIN ksh.
34796 for as_var in ENV MAIL MAILPATH
34797 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34807 LC_TELEPHONE LC_TIME
34809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34810 eval $as_var=C; export $as_var
34812 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34816 # Required to use basename.
34817 if expr a : '\(a\)' >/dev/null 2>&1 &&
34818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34825 as_basename=basename
34831 # Name of the executable.
34832 as_me=`$as_basename -- "$0" ||
34833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34834 X"$0" : 'X\(//\)$' \| \
34835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34837 sed '/^.*\/\([^/][^/]*\)\/*$/{
34856 as_lineno_1=$LINENO
34857 as_lineno_2=$LINENO
34858 test "x$as_lineno_1" != "x$as_lineno_2" &&
34859 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34862 # uniformly replaced by the line number. The first 'sed' inserts a
34863 # line-number line after each line using $LINENO; the second 'sed'
34864 # does the real work. The second script uses 'N' to pair each
34865 # line-number line with the line containing $LINENO, and appends
34866 # trailing '-' during substitution so that $LINENO is not a special
34867 # case at line end.
34868 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34869 # scripts with optimization help from Paolo Bonzini. Blame Lee
34870 # E. McMahon (1931-1989) for sed's syntax. :-)
34882 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34885 ' >$as_me.lineno &&
34886 chmod +x "$as_me.lineno" ||
34887 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34888 { (exit 1); exit 1; }; }
34890 # Don't try to exec as it changes $[0], causing all sort of problems
34891 # (the dirname of $[0] is not the place where we might find the
34892 # original and so on. Autoconf is especially sensitive to this).
34893 . "./$as_me.lineno"
34894 # Exit status is that of the last command.
34899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34905 ECHO_C= ECHO_N= ECHO_T=
34906 case `echo -n x` in
34908 case `echo 'x\c'` in
34909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34916 if expr a : '\(a\)' >/dev/null 2>&1 &&
34917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34923 rm -f conf$$ conf$$.exe conf$$.file
34924 if test -d conf$$.dir; then
34925 rm -f conf$$.dir/conf$$.file
34931 if ln -s conf$$.file conf$$ 2>/dev/null; then
34933 # ... but there are two gotchas:
34934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34936 # In both cases, we have to default to `cp -p'.
34937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34939 elif ln conf$$.file conf$$ 2>/dev/null; then
34944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34945 rmdir conf$$.dir 2>/dev/null
34947 if mkdir -p . 2>/dev/null; then
34950 test -d ./-p && rmdir ./-p
34954 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34955 # systems may use methods other than mode bits to determine executability.
34956 cat >conf$$.file <<_ASEOF
34960 chmod +x conf$$.file
34961 if test -x conf$$.file >/dev/null 2>&1; then
34962 as_executable_p="test -x"
34968 # Sed expression to map a string onto a valid CPP name.
34969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34971 # Sed expression to map a string onto a valid variable name.
34972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34977 # Save the log message, to keep $[0] and so on meaningful, and to
34978 # report actual input values of CONFIG_FILES etc. instead of their
34979 # values after options handling.
34981 This file was extended by llvm $as_me 2.6svn, which was
34982 generated by GNU Autoconf 2.60. Invocation command line was
34984 CONFIG_FILES = $CONFIG_FILES
34985 CONFIG_HEADERS = $CONFIG_HEADERS
34986 CONFIG_LINKS = $CONFIG_LINKS
34987 CONFIG_COMMANDS = $CONFIG_COMMANDS
34990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34995 cat >>$CONFIG_STATUS <<_ACEOF
34996 # Files that config.status was made for.
34997 config_files="$ac_config_files"
34998 config_headers="$ac_config_headers"
34999 config_commands="$ac_config_commands"
35003 cat >>$CONFIG_STATUS <<\_ACEOF
35005 \`$as_me' instantiates files from templates according to the
35006 current configuration.
35008 Usage: $0 [OPTIONS] [FILE]...
35010 -h, --help print this help, then exit
35011 -V, --version print version number, then exit
35012 -q, --quiet do not print progress messages
35013 -d, --debug don't remove temporary files
35014 --recheck update $as_me by reconfiguring in the same conditions
35015 --file=FILE[:TEMPLATE]
35016 instantiate the configuration file FILE
35017 --header=FILE[:TEMPLATE]
35018 instantiate the configuration header FILE
35020 Configuration files:
35023 Configuration headers:
35026 Configuration commands:
35029 Report bugs to <bug-autoconf@gnu.org>."
35032 cat >>$CONFIG_STATUS <<_ACEOF
35034 llvm config.status 2.6svn
35035 configured by $0, generated by GNU Autoconf 2.60,
35036 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35038 Copyright (C) 2006 Free Software Foundation, Inc.
35039 This config.status script is free software; the Free Software Foundation
35040 gives unlimited permission to copy, distribute and modify it."
35047 cat >>$CONFIG_STATUS <<\_ACEOF
35048 # If no file are specified by the user, then we need to provide default
35049 # value. By we need to know if files were specified by the user.
35055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35067 # Handling of the options.
35068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35070 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35071 echo "$ac_cs_version"; exit ;;
35072 --debug | --debu | --deb | --de | --d | -d )
35074 --file | --fil | --fi | --f )
35076 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35077 ac_need_defaults=false;;
35078 --header | --heade | --head | --hea )
35080 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35081 ac_need_defaults=false;;
35083 # Conflict between --help and --header
35084 { echo "$as_me: error: ambiguous option: $1
35085 Try \`$0 --help' for more information." >&2
35086 { (exit 1); exit 1; }; };;
35087 --help | --hel | -h )
35088 echo "$ac_cs_usage"; exit ;;
35089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35093 # This is an error.
35094 -*) { echo "$as_me: error: unrecognized option: $1
35095 Try \`$0 --help' for more information." >&2
35096 { (exit 1); exit 1; }; } ;;
35098 *) ac_config_targets="$ac_config_targets $1"
35099 ac_need_defaults=false ;;
35105 ac_configure_extra_args=
35107 if $ac_cs_silent; then
35109 ac_configure_extra_args="$ac_configure_extra_args --silent"
35113 cat >>$CONFIG_STATUS <<_ACEOF
35114 if \$ac_cs_recheck; then
35115 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35116 CONFIG_SHELL=$SHELL
35117 export CONFIG_SHELL
35118 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35122 cat >>$CONFIG_STATUS <<\_ACEOF
35126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35127 ## Running $as_me. ##
35133 cat >>$CONFIG_STATUS <<_ACEOF
35137 llvm_src="${srcdir}"
35141 cat >>$CONFIG_STATUS <<\_ACEOF
35143 # Handling of arguments.
35144 for ac_config_target in $ac_config_targets
35146 case $ac_config_target in
35147 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35148 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35149 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35150 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35151 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35152 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35153 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35154 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35155 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35156 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35157 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35158 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35159 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35160 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35161 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35162 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35163 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35164 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35165 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35166 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35167 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35168 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35169 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35170 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35174 { (exit 1); exit 1; }; };;
35179 # If the user did not use the arguments to specify the items to instantiate,
35180 # then the envvar interface is used. Set only those that are not.
35181 # We use the long form for the default assignment because of an extremely
35182 # bizarre bug on SunOS 4.1.3.
35183 if $ac_need_defaults; then
35184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35189 # Have a temporary directory for convenience. Make it in the build tree
35190 # simply because there is no reason against having it here, and in addition,
35191 # creating and moving files from /tmp can sometimes cause problems.
35192 # Hook for its removal unless debugging.
35193 # Note that there is a small window in which the directory will not be cleaned:
35194 # after its creation but before its name has been assigned to `$tmp'.
35198 trap 'exit_status=$?
35199 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35201 trap '{ (exit 1); exit 1; }' 1 2 13 15
35203 # Create a (secure) tmp directory for tmp files.
35206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35207 test -n "$tmp" && test -d "$tmp"
35210 tmp=./conf$$-$RANDOM
35211 (umask 077 && mkdir "$tmp")
35214 echo "$me: cannot create a temporary directory in ." >&2
35215 { (exit 1); exit 1; }
35219 # Set up the sed scripts for CONFIG_FILES section.
35222 # No need to generate the scripts if there are no CONFIG_FILES.
35223 # This happens for instance when ./config.status config.h
35224 if test -n "$CONFIG_FILES"; then
35231 for ac_last_try in false false false false false :; do
35232 cat >conf$$subs.sed <<_ACEOF
35233 SHELL!$SHELL$ac_delim
35234 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35235 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35236 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35237 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35238 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35239 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35240 exec_prefix!$exec_prefix$ac_delim
35241 prefix!$prefix$ac_delim
35242 program_transform_name!$program_transform_name$ac_delim
35243 bindir!$bindir$ac_delim
35244 sbindir!$sbindir$ac_delim
35245 libexecdir!$libexecdir$ac_delim
35246 datarootdir!$datarootdir$ac_delim
35247 datadir!$datadir$ac_delim
35248 sysconfdir!$sysconfdir$ac_delim
35249 sharedstatedir!$sharedstatedir$ac_delim
35250 localstatedir!$localstatedir$ac_delim
35251 includedir!$includedir$ac_delim
35252 oldincludedir!$oldincludedir$ac_delim
35253 docdir!$docdir$ac_delim
35254 infodir!$infodir$ac_delim
35255 htmldir!$htmldir$ac_delim
35256 dvidir!$dvidir$ac_delim
35257 pdfdir!$pdfdir$ac_delim
35258 psdir!$psdir$ac_delim
35259 libdir!$libdir$ac_delim
35260 localedir!$localedir$ac_delim
35261 mandir!$mandir$ac_delim
35262 DEFS!$DEFS$ac_delim
35263 ECHO_C!$ECHO_C$ac_delim
35264 ECHO_N!$ECHO_N$ac_delim
35265 ECHO_T!$ECHO_T$ac_delim
35266 LIBS!$LIBS$ac_delim
35267 build_alias!$build_alias$ac_delim
35268 host_alias!$host_alias$ac_delim
35269 target_alias!$target_alias$ac_delim
35270 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35271 subdirs!$subdirs$ac_delim
35272 build!$build$ac_delim
35273 build_cpu!$build_cpu$ac_delim
35274 build_vendor!$build_vendor$ac_delim
35275 build_os!$build_os$ac_delim
35276 host!$host$ac_delim
35277 host_cpu!$host_cpu$ac_delim
35278 host_vendor!$host_vendor$ac_delim
35279 host_os!$host_os$ac_delim
35280 target!$target$ac_delim
35281 target_cpu!$target_cpu$ac_delim
35282 target_vendor!$target_vendor$ac_delim
35283 target_os!$target_os$ac_delim
35285 LINKALL!$LINKALL$ac_delim
35286 NOLINKALL!$NOLINKALL$ac_delim
35287 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35288 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35289 ARCH!$ARCH$ac_delim
35290 ENDIAN!$ENDIAN$ac_delim
35292 CFLAGS!$CFLAGS$ac_delim
35293 LDFLAGS!$LDFLAGS$ac_delim
35294 CPPFLAGS!$CPPFLAGS$ac_delim
35295 ac_ct_CC!$ac_ct_CC$ac_delim
35296 EXEEXT!$EXEEXT$ac_delim
35297 OBJEXT!$OBJEXT$ac_delim
35299 GREP!$GREP$ac_delim
35300 EGREP!$EGREP$ac_delim
35301 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35302 BUILD_CC!$BUILD_CC$ac_delim
35303 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35304 BUILD_CXX!$BUILD_CXX$ac_delim
35305 CVSBUILD!$CVSBUILD$ac_delim
35306 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35307 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35308 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35309 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35310 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35311 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35313 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35314 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35315 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35316 ENABLE_PIC!$ENABLE_PIC$ac_delim
35317 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35318 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35319 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35320 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35321 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35322 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35323 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35324 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
35326 CXXFLAGS!$CXXFLAGS$ac_delim
35327 ac_ct_CXX!$ac_ct_CXX$ac_delim
35329 ifGNUmake!$ifGNUmake$ac_delim
35332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35334 elif $ac_last_try; then
35335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35337 { (exit 1); exit 1; }; }
35339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35344 if test -n "$ac_eof"; then
35345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35346 ac_eof=`expr $ac_eof + 1`
35349 cat >>$CONFIG_STATUS <<_ACEOF
35350 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35355 s/^/s,@/; s/!/@,|#_!!_#|/
35358 s/'"$ac_delim"'$/,g/; t
35360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35361 ' >>$CONFIG_STATUS <conf$$subs.sed
35362 rm -f conf$$subs.sed
35363 cat >>$CONFIG_STATUS <<_ACEOF
35369 for ac_last_try in false false false false false :; do
35370 cat >conf$$subs.sed <<_ACEOF
35371 LN_S!$LN_S$ac_delim
35374 DATE!$DATE$ac_delim
35375 FIND!$FIND$ac_delim
35376 MKDIR!$MKDIR$ac_delim
35378 RANLIB!$RANLIB$ac_delim
35382 BINPWD!$BINPWD$ac_delim
35383 GRAPHVIZ!$GRAPHVIZ$ac_delim
35386 DOTTY!$DOTTY$ac_delim
35387 PERL!$PERL$ac_delim
35388 HAVE_PERL!$HAVE_PERL$ac_delim
35389 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35390 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35391 INSTALL_DATA!$INSTALL_DATA$ac_delim
35392 BZIP2!$BZIP2$ac_delim
35393 DOXYGEN!$DOXYGEN$ac_delim
35394 GROFF!$GROFF$ac_delim
35395 GZIP!$GZIP$ac_delim
35396 POD2HTML!$POD2HTML$ac_delim
35397 POD2MAN!$POD2MAN$ac_delim
35398 RUNTEST!$RUNTEST$ac_delim
35399 TCLSH!$TCLSH$ac_delim
35401 OCAMLC!$OCAMLC$ac_delim
35402 OCAMLOPT!$OCAMLOPT$ac_delim
35403 OCAMLDEP!$OCAMLDEP$ac_delim
35404 OCAMLDOC!$OCAMLDOC$ac_delim
35406 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35407 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35408 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35409 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35410 LIBADD_DL!$LIBADD_DL$ac_delim
35411 ECHO!$ECHO$ac_delim
35413 STRIP!$STRIP$ac_delim
35414 CXXCPP!$CXXCPP$ac_delim
35416 FFLAGS!$FFLAGS$ac_delim
35417 ac_ct_F77!$ac_ct_F77$ac_delim
35418 LIBTOOL!$LIBTOOL$ac_delim
35419 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35420 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35421 LLVMGCC!$LLVMGCC$ac_delim
35422 LLVMGXX!$LLVMGXX$ac_delim
35423 USE_UDIS86!$USE_UDIS86$ac_delim
35424 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35425 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35426 ALLOCA!$ALLOCA$ac_delim
35427 MMAP_FILE!$MMAP_FILE$ac_delim
35428 LLVMCC1!$LLVMCC1$ac_delim
35429 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35430 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35431 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35432 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35433 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35434 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35435 SHLIBEXT!$SHLIBEXT$ac_delim
35436 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35437 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35438 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35439 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35440 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35441 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35442 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35443 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35444 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35445 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35446 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35447 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35448 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35449 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35450 RPATH!$RPATH$ac_delim
35451 RDYNAMIC!$RDYNAMIC$ac_delim
35452 LIBOBJS!$LIBOBJS$ac_delim
35453 LTLIBOBJS!$LTLIBOBJS$ac_delim
35456 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
35458 elif $ac_last_try; then
35459 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35461 { (exit 1); exit 1; }; }
35463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35468 if test -n "$ac_eof"; then
35469 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35470 ac_eof=`expr $ac_eof + 1`
35473 cat >>$CONFIG_STATUS <<_ACEOF
35474 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35479 s/^/s,@/; s/!/@,|#_!!_#|/
35482 s/'"$ac_delim"'$/,g/; t
35484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35485 ' >>$CONFIG_STATUS <conf$$subs.sed
35486 rm -f conf$$subs.sed
35487 cat >>$CONFIG_STATUS <<_ACEOF
35494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35496 # trailing colons and then remove the whole line if VPATH becomes empty
35497 # (actually we leave an empty line to preserve line numbers).
35498 if test "x$srcdir" = x.; then
35499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35500 s/:*\$(srcdir):*/:/
35501 s/:*\${srcdir}:*/:/
35503 s/^\([^=]*=[ ]*\):*/\1/
35509 cat >>$CONFIG_STATUS <<\_ACEOF
35510 fi # test -n "$CONFIG_FILES"
35513 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35516 :[FHLC]) ac_mode=$ac_tag; continue;;
35518 case $ac_mode$ac_tag in
35520 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35522 { (exit 1); exit 1; }; };;
35523 :[FH]-) ac_tag=-:-;;
35524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35541 -) ac_f="$tmp/stdin";;
35542 *) # Look for the file first in the build tree, then in the source tree
35543 # (if the path is not absolute). The absolute path cannot be DOS-style,
35544 # because $ac_f cannot contain `:'.
35548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35550 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35552 { (exit 1); exit 1; }; };;
35554 ac_file_inputs="$ac_file_inputs $ac_f"
35557 # Let's still pretend it is `configure' which instantiates (i.e., don't
35558 # use $as_me), people would be surprised to read:
35559 # /* config.h. Generated by config.status. */
35560 configure_input="Generated from "`IFS=:
35561 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35562 if test x"$ac_file" != x-; then
35563 configure_input="$ac_file. $configure_input"
35564 { echo "$as_me:$LINENO: creating $ac_file" >&5
35565 echo "$as_me: creating $ac_file" >&6;}
35569 *:-:* | *:-) cat >"$tmp/stdin";;
35574 ac_dir=`$as_dirname -- "$ac_file" ||
35575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35576 X"$ac_file" : 'X\(//\)[^/]' \| \
35577 X"$ac_file" : 'X\(//\)$' \| \
35578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35584 /^X\(\/\/\)[^/].*/{
35599 -*) as_dir=./$as_dir;;
35601 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35605 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35606 *) as_qdir=$as_dir;;
35608 as_dirs="'$as_qdir' $as_dirs"
35609 as_dir=`$as_dirname -- "$as_dir" ||
35610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35611 X"$as_dir" : 'X\(//\)[^/]' \| \
35612 X"$as_dir" : 'X\(//\)$' \| \
35613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35619 /^X\(\/\/\)[^/].*/{
35632 test -d "$as_dir" && break
35634 test -z "$as_dirs" || eval "mkdir $as_dirs"
35635 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35637 { (exit 1); exit 1; }; }; }
35641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35644 # A ".." for each directory in $ac_dir_suffix.
35645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35646 case $ac_top_builddir_sub in
35647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35651 ac_abs_top_builddir=$ac_pwd
35652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35653 # for backward compatibility:
35654 ac_top_builddir=$ac_top_build_prefix
35657 .) # We are building in place.
35659 ac_top_srcdir=$ac_top_builddir_sub
35660 ac_abs_top_srcdir=$ac_pwd ;;
35661 [\\/]* | ?:[\\/]* ) # Absolute name.
35662 ac_srcdir=$srcdir$ac_dir_suffix;
35663 ac_top_srcdir=$srcdir
35664 ac_abs_top_srcdir=$srcdir ;;
35665 *) # Relative name.
35666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35667 ac_top_srcdir=$ac_top_build_prefix$srcdir
35668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35685 cat >>$CONFIG_STATUS <<\_ACEOF
35686 # If the template does not know about datarootdir, expand it.
35687 # FIXME: This hack should be removed a few years after 2.60.
35688 ac_datarootdir_hack=; ac_datarootdir_seen=
35690 case `sed -n '/datarootdir/ {
35699 ' $ac_file_inputs` in
35700 *datarootdir*) ac_datarootdir_seen=yes;;
35701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706 ac_datarootdir_hack='
35707 s&@datadir@&$datadir&g
35708 s&@docdir@&$docdir&g
35709 s&@infodir@&$infodir&g
35710 s&@localedir@&$localedir&g
35711 s&@mandir@&$mandir&g
35712 s&\\\${datarootdir}&$datarootdir&g' ;;
35716 # Neutralize VPATH when `$srcdir' = `.'.
35717 # Shell code in configure.ac might set extrasub.
35718 # FIXME: do we really want to maintain this feature?
35719 cat >>$CONFIG_STATUS <<_ACEOF
35723 cat >>$CONFIG_STATUS <<\_ACEOF
35725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35726 s&@configure_input@&$configure_input&;t t
35727 s&@top_builddir@&$ac_top_builddir_sub&;t t
35728 s&@srcdir@&$ac_srcdir&;t t
35729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35730 s&@top_srcdir@&$ac_top_srcdir&;t t
35731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35732 s&@builddir@&$ac_builddir&;t t
35733 s&@abs_builddir@&$ac_abs_builddir&;t t
35734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35735 s&@INSTALL@&$ac_INSTALL&;t t
35736 $ac_datarootdir_hack
35737 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35742 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35743 which seems to be undefined. Please make sure it is defined." >&5
35744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35745 which seems to be undefined. Please make sure it is defined." >&2;}
35749 -) cat "$tmp/out"; rm -f "$tmp/out";;
35750 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35759 # Transform confdefs.h into a sed script `conftest.defines', that
35760 # substitutes the proper values into config.h.in to produce config.h.
35761 rm -f conftest.defines conftest.tail
35762 # First, append a space to every undef/define line, to ease matching.
35763 echo 's/$/ /' >conftest.defines
35764 # Then, protect against being on the right side of a sed subst, or in
35765 # an unquoted here document, in config.status. If some macros were
35766 # called several times there might be several #defines for the same
35767 # symbol, which is useless. But do not sort them, since the last
35768 # AC_DEFINE must be honored.
35769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35772 # PARAMS is the parameter list in the macro definition--in most cases, it's
35773 # just an empty string.
35774 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35775 ac_dB='\\)[ (].*,\\1define\\2'
35783 s/^[ ]*#[ ]*define[ ][ ]*//
35788 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35789 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35790 ' >>conftest.defines
35792 # Remove the space that was appended to ease matching.
35793 # Then replace #undef with comments. This is necessary, for
35794 # example, in the case of _POSIX_SOURCE, which is predefined and required
35795 # on some systems where configure will not decide to define it.
35796 # (The regexp can be short, since the line contains either #define or #undef.)
35798 s,^[ #]*u.*,/* & */,' >>conftest.defines
35800 # Break up conftest.defines:
35801 ac_max_sed_lines=50
35803 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35804 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35805 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35807 ac_in='$ac_file_inputs'
35808 ac_out='"$tmp/out1"'
35809 ac_nxt='"$tmp/out2"'
35813 # Write a here document:
35814 cat >>$CONFIG_STATUS <<_ACEOF
35815 # First, check the format of the line:
35816 cat >"\$tmp/defines.sed" <<\\CEOF
35817 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35818 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35822 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35824 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35825 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35826 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35827 grep . conftest.tail >/dev/null || break
35828 rm -f conftest.defines
35829 mv conftest.tail conftest.defines
35831 rm -f conftest.defines conftest.tail
35833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35834 cat >>$CONFIG_STATUS <<\_ACEOF
35835 if test x"$ac_file" != x-; then
35836 echo "/* $configure_input */" >"$tmp/config.h"
35837 cat "$ac_result" >>"$tmp/config.h"
35838 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35840 echo "$as_me: $ac_file is unchanged" >&6;}
35843 mv "$tmp/config.h" $ac_file
35846 echo "/* $configure_input */"
35852 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35853 echo "$as_me: executing $ac_file commands" >&6;}
35858 case $ac_file$ac_mode in
35859 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35860 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35861 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35862 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35863 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35864 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35865 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35866 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35867 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35868 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35869 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35870 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35871 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35872 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35873 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35874 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35875 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35876 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35877 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35878 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35879 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35880 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35881 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35882 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35883 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35890 { (exit 0); exit 0; }
35892 chmod +x $CONFIG_STATUS
35893 ac_clean_files=$ac_clean_files_save
35896 # configure is writing to config.log, and then calls config.status.
35897 # config.status does its own redirection, appending to config.log.
35898 # Unfortunately, on DOS this fails, as config.log is still kept open
35899 # by configure, so config.status won't be able to write to it; its
35900 # output is simply discarded. So we exec the FD to /dev/null,
35901 # effectively closing config.log, so it can be properly (re)opened and
35902 # appended to by config.status. When coming back to configure, we
35903 # need to make the FD available again.
35904 if test "$no_create" != yes; then
35906 ac_config_status_args=
35907 test "$silent" = yes &&
35908 ac_config_status_args="$ac_config_status_args --quiet"
35910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35913 # would make configure fail if this is the last instruction.
35914 $ac_cs_success || { (exit 1); exit 1; }
35918 # CONFIG_SUBDIRS section.
35920 if test "$no_recursion" != yes; then
35922 # Remove --cache-file and --srcdir arguments so they do not pile up.
35923 ac_sub_configure_args=
35925 eval "set x $ac_configure_args"
35929 if test -n "$ac_prev"; then
35934 -cache-file | --cache-file | --cache-fil | --cache-fi \
35935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35936 ac_prev=cache_file ;;
35937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35941 --config-cache | -C)
35943 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35945 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35953 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35955 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35959 # Always prepend --prefix to ensure using the same prefix
35960 # in subdir configurations.
35961 ac_arg="--prefix=$prefix"
35963 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35965 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35968 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35970 # Do not complain, so a configure script can configure whichever
35971 # parts of a large source tree are present.
35972 test -d "$srcdir/$ac_dir" || continue
35974 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35975 echo "$as_me:$LINENO: $ac_msg" >&5
35979 -*) as_dir=./$as_dir;;
35981 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35985 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35986 *) as_qdir=$as_dir;;
35988 as_dirs="'$as_qdir' $as_dirs"
35989 as_dir=`$as_dirname -- "$as_dir" ||
35990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35991 X"$as_dir" : 'X\(//\)[^/]' \| \
35992 X"$as_dir" : 'X\(//\)$' \| \
35993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35999 /^X\(\/\/\)[^/].*/{
36012 test -d "$as_dir" && break
36014 test -z "$as_dirs" || eval "mkdir $as_dirs"
36015 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36016 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36017 { (exit 1); exit 1; }; }; }
36021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36024 # A ".." for each directory in $ac_dir_suffix.
36025 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36026 case $ac_top_builddir_sub in
36027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36031 ac_abs_top_builddir=$ac_pwd
36032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36033 # for backward compatibility:
36034 ac_top_builddir=$ac_top_build_prefix
36037 .) # We are building in place.
36039 ac_top_srcdir=$ac_top_builddir_sub
36040 ac_abs_top_srcdir=$ac_pwd ;;
36041 [\\/]* | ?:[\\/]* ) # Absolute name.
36042 ac_srcdir=$srcdir$ac_dir_suffix;
36043 ac_top_srcdir=$srcdir
36044 ac_abs_top_srcdir=$srcdir ;;
36045 *) # Relative name.
36046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36047 ac_top_srcdir=$ac_top_build_prefix$srcdir
36048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36055 # Check for guested configure; otherwise get Cygnus style configure.
36056 if test -f "$ac_srcdir/configure.gnu"; then
36057 ac_sub_configure=$ac_srcdir/configure.gnu
36058 elif test -f "$ac_srcdir/configure"; then
36059 ac_sub_configure=$ac_srcdir/configure
36060 elif test -f "$ac_srcdir/configure.in"; then
36061 # This should be Cygnus configure.
36062 ac_sub_configure=$ac_aux_dir/configure
36064 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36065 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36069 # The recursion is here.
36070 if test -n "$ac_sub_configure"; then
36071 # Make the cache file name correct relative to the subdirectory.
36072 case $cache_file in
36073 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36074 *) # Relative name.
36075 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36078 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36079 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36080 # The eval makes quoting arguments work.
36081 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36082 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36083 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36084 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36085 { (exit 1); exit 1; }; }