2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
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.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
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
833 ENABLE_EXPENSIVE_CHECKS
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
934 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
959 projects/llvm-poolalloc
961 projects/llvm-kernel'
963 # Initialize some variables set by options.
965 ac_init_version=false
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089 eval enable_$ac_feature=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package| sed 's/-/_/g'`
1286 eval with_$ac_package=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/-/_/g'`
1295 eval with_$ac_package=no ;;
1298 # Obsolete; use --with-x.
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1346 # Be sure to have absolute directory names.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val=\$$ac_var
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-expensive-checks
1540 --enable-debug-runtime
1541 --enable-jit Enable Just In Time Compiling (default is YES)
1542 --enable-doxygen Build doxygen documentation (default is NO)
1543 --enable-threads Use threads if available (default is YES)
1544 --enable-pic Build LLVM with Position Independent Code (default
1546 --enable-targets Build specific host targets:
1547 all,host-only,{target-name} (default=all)
1548 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 --enable-bindings Build specific language bindings:
1551 all,auto,none,{binding-name} (default=auto)
1552 --enable-ltdl-install install libltdl
1553 --enable-shared[=PKGS] build shared libraries
1555 --enable-static[=PKGS] build static libraries
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 --with-extra-options Specify addtional options to compile LLVM with
1572 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
1596 CXXCPP C++ preprocessor
1597 F77 Fortran 77 compiler command
1598 FFLAGS Fortran 77 compiler flags
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to <llvmbugs@cs.uiuc.edu>.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" || continue
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1631 .) # We are building in place.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1664 llvm configure 2.4svn
1665 generated by GNU Autoconf 2.60
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1672 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1680 It was created by llvm $as_me 2.4svn, which was
1681 generated by GNU Autoconf 2.60. Invocation command line was
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_must_keep_next=false
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
1759 ac_must_keep_next=false # Got value, back to normal.
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 -* ) ac_must_keep_next=true ;;
1773 ac_configure_args="$ac_configure_args '$ac_arg'"
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log. We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1797 # The following way of writing the cache mishandles newlines in values,
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1834 for ac_var in $ac_subst_vars
1836 eval ac_val=\$$ac_var
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 echo "$ac_var='\''$ac_val'\''"
1844 if test -n "$ac_subst_files"; then
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1851 for ac_var in $ac_subst_files
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1862 if test -s confdefs.h; then
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 # Predefined preprocessor variables.
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
1928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1936 if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1976 echo "$as_me: former value: $ac_old_val" >&2;}
1977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1978 echo "$as_me: current value: $ac_new_val" >&2;}
1979 ac_cache_corrupted=:
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 *) ac_arg=$ac_var=$ac_new_val ;;
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2043 for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 elif test -f "$ac_dir/install.sh"; then
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 elif test -f "$ac_dir/shtool"; then
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 if test -z "$ac_aux_dir"; then
2059 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2061 { (exit 1); exit 1; }; }
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2074 if test ${srcdir} != "." ; then
2075 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2077 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078 { (exit 1); exit 1; }; }
2082 for i in `ls ${srcdir}/projects`
2084 if test -d ${srcdir}/projects/${i} ; then
2087 sample) subdirs="$subdirs projects/sample"
2089 privbracket) subdirs="$subdirs projects/privbracket"
2091 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2093 # llvm-test is the old name of the test-suite, kept here for backwards
2095 llvm-test) subdirs="$subdirs projects/llvm-test"
2097 test-suite) subdirs="$subdirs projects/test-suite"
2099 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2101 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2103 llvm-java) subdirs="$subdirs projects/llvm-java"
2105 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2107 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2109 poolalloc) subdirs="$subdirs projects/poolalloc"
2111 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2114 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2115 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS=$IFS; IFS='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2192 ac_save_IFS=$IFS; IFS='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205 { echo "$as_me:$LINENO: checking target system type" >&5
2206 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2207 if test "${ac_cv_target+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test "x$target_alias" = x; then
2211 ac_cv_target=$ac_cv_host
2213 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2216 { (exit 1); exit 1; }; }
2220 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221 echo "${ECHO_T}$ac_cv_target" >&6; }
2222 case $ac_cv_target in
2224 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225 echo "$as_me: error: invalid value of canonical target" >&2;}
2226 { (exit 1); exit 1; }; };;
2228 target=$ac_cv_target
2229 ac_save_IFS=$IFS; IFS='-'
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2242 # The aliases save the names the user supplied, while $host etc.
2243 # will get canonicalized.
2244 test -n "$target_alias" &&
2245 test "$program_prefix$program_suffix$program_transform_name" = \
2247 program_prefix=${target_alias}-
2249 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2250 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2251 if test "${llvm_cv_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="AIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="IRIX"
2264 llvm_cv_platform_type="Unix" ;;
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="Cygwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,-all_load"
2272 llvm_cv_no_link_all_option="-Wl,-noall_load"
2273 llvm_cv_os_type="Darwin"
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="FreeBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="OpenBSD"
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="NetBSD"
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="HP-UX"
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="Interix"
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="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308 llvm_cv_os_type="SunOS"
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="Win32"
2314 llvm_cv_platform_type="Win32" ;;
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="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
2323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
2327 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2330 if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333 { (exit 1); exit 1; }; }
2339 LINKALL=$llvm_cv_link_all_option
2341 NOLINKALL=$llvm_cv_no_link_all_option
2344 case $llvm_cv_platform_type in
2347 cat >>confdefs.h <<\_ACEOF
2348 #define LLVM_ON_UNIX 1
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_WIN32 1
2369 { echo "$as_me:$LINENO: checking target architecture" >&5
2370 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371 if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 i?86-*) llvm_cv_target_arch="x86" ;;
2376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2380 ia64-*) llvm_cv_target_arch="IA64" ;;
2381 arm-*) llvm_cv_target_arch="ARM" ;;
2382 mips-*) llvm_cv_target_arch="Mips" ;;
2383 pic16-*) llvm_cv_target_arch="PIC16" ;;
2384 *) llvm_cv_target_arch="Unknown" ;;
2387 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2390 if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2395 ARCH=$llvm_cv_target_arch
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 { echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6; }
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2442 if test -z "$ac_cv_prog_CC"; then
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2480 if test "x$ac_ct_CC" = x; then
2483 case $cross_compiling:$ac_tool_warned in
2485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet. If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&5
2488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 whose name does not start with the host triplet. If you think this
2490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491 ac_tool_warned=yes ;;
2499 if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}cc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2540 if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542 set dummy cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2596 if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 if test -n "$CC"; then
2629 { echo "$as_me:$LINENO: result: $CC" >&5
2630 echo "${ECHO_T}$CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$CC" && break
2640 if test -z "$CC"; then
2642 for ac_prog in cl.exe
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_CC="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674 echo "${ECHO_T}$ac_ct_CC" >&6; }
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2681 test -n "$ac_ct_CC" && break
2684 if test "x$ac_ct_CC" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet. If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet. If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2710 # Provide some information about the compiler.
2711 echo "$as_me:$LINENO: checking for C compiler version" >&5
2712 ac_compiler=`set X $ac_compile; echo $2`
2713 { (ac_try="$ac_compiler --version >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723 { (ac_try="$ac_compiler -v >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (ac_try="$ac_compiler -V >&5"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2759 ac_clean_files_save=$ac_clean_files
2760 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761 # Try to create an executable without -o first, disregard a.out.
2762 # It will help us diagnose broken compilers, and finding out an intuition
2764 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768 # List of possible output files, starting from the most likely.
2769 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770 # only as a last resort. b.out is created by i960 compilers.
2771 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2773 # The IRIX 6 linker writes into existing files which may not be
2774 # executable, retaining their permissions. Remove them first so a
2775 # subsequent execution test works.
2777 for ac_file in $ac_files
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2786 if { (ac_try="$ac_link_default"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2799 # so that the user can short-circuit this test for compilers unknown to
2801 for ac_file in $ac_files
2803 test -f "$ac_file" || continue
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2808 # We found the default executable, but exeext='' is most
2812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2826 test "$ac_cv_exeext" = no && ac_cv_exeext=
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&2;}
2836 { (exit 77); exit 77; }; }
2839 ac_exeext=$ac_cv_exeext
2840 { echo "$as_me:$LINENO: result: $ac_file" >&5
2841 echo "${ECHO_T}$ac_file" >&6; }
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848 # If not cross compiling, check that we can run a simple program.
2849 if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
2851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 if test "$cross_compiling" = maybe; then
2865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866 If you meant to cross compile, use \`--host'.
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot run C compiled programs.
2869 If you meant to cross compile, use \`--host'.
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2875 { echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6; }
2878 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879 ac_clean_files=$ac_clean_files_save
2880 # Check that the compiler produces executables we can run. If not, either
2881 # the compiler is broken, or we cross compile.
2882 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885 echo "${ECHO_T}$cross_compiling" >&6; }
2887 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889 if { (ac_try="$ac_link"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901 # work properly (i.e., refer to `conftest.exe'), while it won't with
2903 for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2920 rm -f conftest$ac_cv_exeext
2921 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2924 rm -f conftest.$ac_ext
2925 EXEEXT=$ac_cv_exeext
2927 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929 if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2947 rm -f conftest.o conftest.obj
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
2958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2979 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980 echo "${ECHO_T}$ac_cv_objext" >&6; }
2981 OBJEXT=$ac_cv_objext
2983 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054 GCC=`test $ac_compiler_gnu = yes && echo yes`
3055 ac_test_CFLAGS=${CFLAGS+set}
3056 ac_save_CFLAGS=$CFLAGS
3057 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_g+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3254 if test "$GCC" = yes; then
3260 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_c89+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_cv_prog_cc_c89=no
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3291 s = g (p, va_arg (v,int));
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_c89=$ac_arg
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 rm -f conftest.$ac_ext
3378 case "x$ac_cv_prog_cc_c89" in
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6; } ;;
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384 echo "${ECHO_T}unsupported" >&6; } ;;
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3410 if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3418 for ac_c_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 # include <limits.h>
3435 # include <assert.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 if test -z "$ac_cpp_err"; then
3506 # Broken: success on invalid input.
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Passes both tests.
3517 rm -f conftest.err conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3534 { echo "$as_me:$LINENO: result: $CPP" >&5
3535 echo "${ECHO_T}$CPP" >&6; }
3537 for ac_c_preproc_warn_flag in '' yes
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3552 # include <limits.h>
3554 # include <assert.h>
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 if test -z "$ac_cpp_err"; then
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 if test -z "$ac_cpp_err"; then
3625 # Broken: success on invalid input.
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Passes both tests.
3636 rm -f conftest.err conftest.$ac_ext
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 $ac_path_GREP_found && break 3
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3727 ac_cv_path_GREP=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3791 $ac_path_EGREP_found && break 3
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3809 ac_cv_path_EGREP=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3853 grep -v '^ *+' conftest.er1 >conftest.err
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_header_stdc=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_header_stdc=no
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev/null 2>&1; then
3903 ac_cv_header_stdc=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 $EGREP "free" >/dev/null 2>&1; then
3924 ac_cv_header_stdc=no
3930 if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 # define ISLOWER(c) \
3948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3966 rm -f conftest$ac_exeext
3967 if { (ac_try="$ac_link"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3988 echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 $ac_includes_default
4038 #include <$ac_header>
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 eval "$as_ac_Header=yes"
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 eval "$as_ac_Header=no"
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086 echo "${ECHO_T}$ac_res" >&6; }
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099 if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <sys/types.h>
4110 #include <sys/param.h>
4115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4170 #if BYTE_ORDER != BIG_ENDIAN
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_cv_c_bigendian=yes
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_cv_c_bigendian=no
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4244 _ascii (); _ebcdic ();
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 $ac_includes_default
4314 /* Are we little or big endian? From Harbison&Steele. */
4318 char c[sizeof (long int)];
4321 return u.c[sizeof (long int) - 1] == 1;
4327 rm -f conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4349 echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_c_bigendian=yes
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366 case $ac_cv_c_bigendian in
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376 echo "$as_me: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4382 if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4386 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388 if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4394 ac_build_prefix=${build_alias}-
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4542 *.c | *.o | *.obj) ;;
4543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4557 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560 ac_build_exeext=$BUILD_EXEEXT
4563 LLVM_CROSS_COMPILING=0
4567 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4578 # Check whether --enable-optimized was given.
4579 if test "${enable_optimized+set}" = set; then
4580 enableval=$enable_optimized;
4585 if test ${enableval} = "no" ; then
4589 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4593 # Check whether --enable-assertions was given.
4594 if test "${enable_assertions+set}" = set; then
4595 enableval=$enable_assertions;
4600 if test ${enableval} = "yes" ; then
4604 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4608 # Check whether --enable-expensive-checks was given.
4609 if test "${enable_expensive_checks+set}" = set; then
4610 enableval=$enable_expensive_checks;
4615 if test ${enableval} = "yes" ; then
4616 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4618 EXPENSIVE_CHECKS=yes
4621 ENABLE_EXPENSIVE_CHECKS=
4627 # Check whether --enable-debug-runtime was given.
4628 if test "${enable_debug_runtime+set}" = set; then
4629 enableval=$enable_debug_runtime;
4634 if test ${enableval} = "no" ; then
4638 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4642 # Check whether --enable-jit was given.
4643 if test "${enable_jit+set}" = set; then
4644 enableval=$enable_jit;
4649 if test ${enableval} = "no"
4654 case "$llvm_cv_target_arch" in
4655 x86) TARGET_HAS_JIT=1
4657 Sparc) TARGET_HAS_JIT=0
4659 PowerPC) TARGET_HAS_JIT=1
4661 x86_64) TARGET_HAS_JIT=1
4663 Alpha) TARGET_HAS_JIT=1
4665 IA64) TARGET_HAS_JIT=0
4667 ARM) TARGET_HAS_JIT=0
4669 Mips) TARGET_HAS_JIT=0
4671 PIC16) TARGET_HAS_JIT=0
4678 # Check whether --enable-doxygen was given.
4679 if test "${enable_doxygen+set}" = set; then
4680 enableval=$enable_doxygen;
4685 case "$enableval" in
4686 yes) ENABLE_DOXYGEN=1
4688 no) ENABLE_DOXYGEN=0
4690 default) ENABLE_DOXYGEN=0
4692 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4693 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4694 { (exit 1); exit 1; }; } ;;
4697 # Check whether --enable-threads was given.
4698 if test "${enable_threads+set}" = set; then
4699 enableval=$enable_threads;
4704 case "$enableval" in
4705 yes) ENABLE_THREADS=1
4707 no) ENABLE_THREADS=0
4709 default) ENABLE_THREADS=1
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_THREADS $ENABLE_THREADS
4721 # Check whether --enable-pic was given.
4722 if test "${enable_pic+set}" = set; then
4723 enableval=$enable_pic;
4728 case "$enableval" in
4733 default) ENABLE_PIC=0
4735 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4736 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4737 { (exit 1); exit 1; }; } ;;
4740 cat >>confdefs.h <<_ACEOF
4741 #define ENABLE_PIC $ENABLE_PIC
4746 # Check whether --enable-targets was given.
4747 if test "${enable_targets+set}" = set; then
4748 enableval=$enable_targets;
4753 case "$enableval" in
4754 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4756 case "$llvm_cv_target_arch" in
4757 x86) TARGETS_TO_BUILD="X86" ;;
4758 x86_64) TARGETS_TO_BUILD="X86" ;;
4759 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4760 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4761 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4762 IA64) TARGETS_TO_BUILD="IA64" ;;
4763 ARM) TARGETS_TO_BUILD="ARM" ;;
4764 Mips) TARGETS_TO_BUILD="Mips" ;;
4765 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4766 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4767 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4768 echo "$as_me: error: Can not set target to build" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4772 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4774 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4775 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4776 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4777 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4778 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4779 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4780 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4781 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4782 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4783 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4784 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4785 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4786 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4787 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4788 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4794 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4797 # Check whether --enable-cbe-printf-a was given.
4798 if test "${enable_cbe_printf_a+set}" = set; then
4799 enableval=$enable_cbe_printf_a;
4804 case "$enableval" in
4805 yes) ENABLE_CBE_PRINTF_A=1
4807 no) ENABLE_CBE_PRINTF_A=0
4809 default) ENABLE_CBE_PRINTF_A=1
4811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; } ;;
4816 cat >>confdefs.h <<_ACEOF
4817 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4822 # Check whether --with-llvmgccdir was given.
4823 if test "${with_llvmgccdir+set}" = set; then
4824 withval=$with_llvmgccdir;
4830 default) WITH_LLVMGCCDIR=default ;;
4831 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4832 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4833 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4838 # Check whether --with-llvmgcc was given.
4839 if test "${with_llvmgcc+set}" = set; then
4840 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4846 # Check whether --with-llvmgxx was given.
4847 if test "${with_llvmgxx+set}" = set; then
4848 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4853 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4854 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4855 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4856 { (exit 1); exit 1; }; };
4859 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4860 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4861 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4862 { (exit 1); exit 1; }; };
4866 # Check whether --with-extra-options was given.
4867 if test "${with_extra_options+set}" = set; then
4868 withval=$with_extra_options;
4874 default) EXTRA_OPTIONS= ;;
4875 *) EXTRA_OPTIONS=$withval ;;
4877 EXTRA_OPTIONS=$EXTRA_OPTIONS
4880 # Check whether --enable-bindings was given.
4881 if test "${enable_bindings+set}" = set; then
4882 enableval=$enable_bindings;
4887 BINDINGS_TO_BUILD=""
4888 case "$enableval" in
4889 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4890 all ) BINDINGS_TO_BUILD="ocaml" ;;
4891 none | no) BINDINGS_TO_BUILD="" ;;
4892 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4893 case "$a_binding" in
4894 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4895 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4896 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4904 # Check whether --with-ocaml-libdir was given.
4905 if test "${with_ocaml_libdir+set}" = set; then
4906 withval=$with_ocaml_libdir;
4912 auto) with_ocaml_libdir="$withval" ;;
4913 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4914 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4915 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4927 # On Suns, sometimes $CPP names a directory.
4928 if test -n "$CPP" && test -d "$CPP"; then
4931 if test -z "$CPP"; then
4932 if test "${ac_cv_prog_CPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 # Double quotes because CPP needs to be expanded
4936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4939 for ac_c_preproc_warn_flag in '' yes
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 # include <limits.h>
4956 # include <assert.h>
4960 if { (ac_try="$ac_cpp conftest.$ac_ext"
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_c_preproc_warn_flag
4975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4982 if test -z "$ac_cpp_err"; then
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 # Broken: fails on valid input.
4992 rm -f conftest.err conftest.$ac_ext
4994 # OK, works on sane cases. Now check whether nonexistent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null; then
5017 if test -s conftest.err; then
5018 ac_cpp_err=$ac_c_preproc_warn_flag
5019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5026 if test -z "$ac_cpp_err"; then
5027 # Broken: success on invalid input.
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 # Passes both tests.
5038 rm -f conftest.err conftest.$ac_ext
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then
5055 { echo "$as_me:$LINENO: result: $CPP" >&5
5056 echo "${ECHO_T}$CPP" >&6; }
5058 for ac_c_preproc_warn_flag in '' yes
5060 # Use a header file that comes with gcc, so configuring glibc
5061 # with a fresh cross-compiler works.
5062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063 # <limits.h> exists even on freestanding compilers.
5064 # On the NeXT, cc -E runs the code through the compiler's parser,
5065 # not just through cpp. "Syntax error" is here to catch this case.
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5073 # include <limits.h>
5075 # include <assert.h>
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null; then
5092 if test -s conftest.err; then
5093 ac_cpp_err=$ac_c_preproc_warn_flag
5094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101 if test -z "$ac_cpp_err"; then
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 # Broken: fails on valid input.
5111 rm -f conftest.err conftest.$ac_ext
5113 # OK, works on sane cases. Now check whether nonexistent headers
5114 # can be detected and how.
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <ac_nonexistent.h>
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5145 if test -z "$ac_cpp_err"; then
5146 # Broken: success on invalid input.
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 # Passes both tests.
5157 rm -f conftest.err conftest.$ac_ext
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then
5165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details." >&2;}
5169 { (exit 1); exit 1; }; }
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179 ac_cpp='$CPP $CPPFLAGS'
5180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183 if test -n "$ac_tool_prefix"; then
5186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_prog_CC+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 if test -n "$CC"; then
5194 ac_cv_prog_CC="$CC" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 if test -n "$CC"; then
5215 { echo "$as_me:$LINENO: result: $CC" >&5
5216 echo "${ECHO_T}$CC" >&6; }
5218 { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5223 test -n "$CC" && break
5226 if test -z "$CC"; then
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test -n "$ac_ct_CC"; then
5238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_ac_ct_CC="$ac_prog"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5258 if test -n "$ac_ct_CC"; then
5259 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5260 echo "${ECHO_T}$ac_ct_CC" >&6; }
5262 { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5267 test -n "$ac_ct_CC" && break
5270 if test "x$ac_ct_CC" = x; then
5273 case $cross_compiling:$ac_tool_warned in
5275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5276 whose name does not start with the host triplet. If you think this
5277 configuration is useful to you, please write to autoconf@gnu.org." >&5
5278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5279 whose name does not start with the host triplet. If you think this
5280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5281 ac_tool_warned=yes ;;
5288 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5289 See \`config.log' for more details." >&5
5290 echo "$as_me: error: no acceptable C compiler found in \$PATH
5291 See \`config.log' for more details." >&2;}
5292 { (exit 1); exit 1; }; }
5294 # Provide some information about the compiler.
5295 echo "$as_me:$LINENO: checking for C compiler version" >&5
5296 ac_compiler=`set X $ac_compile; echo $2`
5297 { (ac_try="$ac_compiler --version >&5"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compiler --version >&5") 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5307 { (ac_try="$ac_compiler -v >&5"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compiler -v >&5") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5317 { (ac_try="$ac_compiler -V >&5"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler -V >&5") 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5328 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_try") 2>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5397 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5398 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5399 GCC=`test $ac_compiler_gnu = yes && echo yes`
5400 ac_test_CFLAGS=${CFLAGS+set}
5401 ac_save_CFLAGS=$CFLAGS
5402 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_g+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_save_c_werror_flag=$ac_c_werror_flag
5408 ac_c_werror_flag=yes
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5441 { (case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_try") 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_try") 2>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5481 rm -f conftest.$ac_objext
5482 if { (ac_try="$ac_compile"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5490 grep -v '^ *+' conftest.er1 >conftest.err
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5552 { (case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_try") 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 ac_c_werror_flag=$ac_save_c_werror_flag
5588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5590 if test "$ac_test_CFLAGS" = set; then
5591 CFLAGS=$ac_save_CFLAGS
5592 elif test $ac_cv_prog_cc_g = yes; then
5593 if test "$GCC" = yes; then
5599 if test "$GCC" = yes; then
5605 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5606 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5607 if test "${ac_cv_prog_cc_c89+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 ac_cv_prog_cc_c89=no
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 #include <sys/stat.h>
5622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5623 struct buf { int x; };
5624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5625 static char *e (p, i)
5631 static char *f (char * (*g) (char **, int), char **p, ...)
5636 s = g (p, va_arg (v,int));
5641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5642 function prototypes and stuff, but not '\xHH' hex character constants.
5643 These don't provoke an error unfortunately, instead are silently treated
5644 as 'x'. The following induces an error, until -std is added to get
5645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5646 array size at least. It's necessary to write '\x00'==0 to get something
5647 that's true only with -std. */
5648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5651 inside strings and character constants. */
5653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5655 int test (int i, double x);
5656 struct s1 {int (*f) (int a);};
5657 struct s2 {int (*f) (double a);};
5658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5672 CC="$ac_save_CC $ac_arg"
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5688 { (case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_try") 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest.$ac_objext'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_prog_cc_c89=$ac_arg
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5715 rm -f core conftest.err conftest.$ac_objext
5716 test "x$ac_cv_prog_cc_c89" != "xno" && break
5718 rm -f conftest.$ac_ext
5723 case "x$ac_cv_prog_cc_c89" in
5725 { echo "$as_me:$LINENO: result: none needed" >&5
5726 echo "${ECHO_T}none needed" >&6; } ;;
5728 { echo "$as_me:$LINENO: result: unsupported" >&5
5729 echo "${ECHO_T}unsupported" >&6; } ;;
5731 CC="$CC $ac_cv_prog_cc_c89"
5732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5733 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748 if test -z "$CXX"; then
5749 if test -n "$CCC"; then
5752 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_CXX+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 if test -n "$CXX"; then
5763 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 if test -n "$CXX"; then
5784 { echo "$as_me:$LINENO: result: $CXX" >&5
5785 echo "${ECHO_T}$CXX" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 test -n "$CXX" && break
5795 if test -z "$CXX"; then
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 if test -n "$ac_ct_CXX"; then
5807 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_ac_ct_CXX="$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5827 if test -n "$ac_ct_CXX"; then
5828 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5829 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5831 { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
5836 test -n "$ac_ct_CXX" && break
5839 if test "x$ac_ct_CXX" = x; then
5842 case $cross_compiling:$ac_tool_warned in
5844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5845 whose name does not start with the host triplet. If you think this
5846 configuration is useful to you, please write to autoconf@gnu.org." >&5
5847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5848 whose name does not start with the host triplet. If you think this
5849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5850 ac_tool_warned=yes ;;
5858 # Provide some information about the compiler.
5859 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5860 ac_compiler=`set X $ac_compile; echo $2`
5861 { (ac_try="$ac_compiler --version >&5"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler --version >&5") 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5871 { (ac_try="$ac_compiler -v >&5"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compiler -v >&5") 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }
5881 { (ac_try="$ac_compiler -V >&5"
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_compiler -V >&5") 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }
5892 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5961 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5963 GXX=`test $ac_compiler_gnu = yes && echo yes`
5964 ac_test_CXXFLAGS=${CXXFLAGS+set}
5965 ac_save_CXXFLAGS=$CXXFLAGS
5966 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5967 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5968 if test "${ac_cv_prog_cxx_g+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5972 ac_cxx_werror_flag=yes
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6005 { (case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_try") 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_prog_cxx_g=yes
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_try") 2>&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_prog_cxx_g=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6154 if test "$ac_test_CXXFLAGS" = set; then
6155 CXXFLAGS=$ac_save_CXXFLAGS
6156 elif test $ac_cv_prog_cxx_g = yes; then
6157 if test "$GXX" = yes; then
6163 if test "$GXX" = yes; then
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175 { echo "$as_me:$LINENO: checking " >&5
6176 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6177 if test "${ac_cv_has_flex+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 for ac_prog in flex lex
6182 # Extract the first word of "$ac_prog", so it can be a program name with args.
6183 set dummy $ac_prog; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_LEX+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$LEX"; then
6190 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_LEX="$ac_prog"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 if test -n "$LEX"; then
6211 { echo "$as_me:$LINENO: result: $LEX" >&5
6212 echo "${ECHO_T}$LEX" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 test -n "$LEX" && break
6221 test -n "$LEX" || LEX=":"
6223 if test -z "$LEXLIB"
6225 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6226 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6227 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 ac_check_lib_save_LIBS=$LIBS
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6254 rm -f conftest.$ac_objext conftest$ac_exeext
6255 if { (ac_try="$ac_link"
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_link") 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_lib_fl_yywrap=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_cv_lib_fl_yywrap=no
6296 rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6300 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6302 if test $ac_cv_lib_fl_yywrap = yes; then
6305 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_check_lib_save_LIBS=$LIBS
6312 cat >conftest.$ac_ext <<_ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6319 /* Override any GCC internal prototype to avoid an error.
6320 Use char because int might match the return type of a GCC
6321 builtin and then its argument prototype would still apply. */
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_try") 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_l_yywrap=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_lib_l_yywrap=no
6376 rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6380 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6381 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6382 if test $ac_cv_lib_l_yywrap = yes; then
6390 if test "x$LEX" != "x:"; then
6391 { echo "$as_me:$LINENO: checking lex output file root" >&5
6392 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_lex_root+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 # The minimal lex program is just a single line: %%. But some broken lexes
6397 # (Solaris, I think it was) want two %% lines, so accommodate them.
6398 cat >conftest.l <<_ACEOF
6402 { (ac_try="$LEX conftest.l"
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$LEX conftest.l") 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }
6412 if test -f lex.yy.c; then
6413 ac_cv_prog_lex_root=lex.yy
6414 elif test -f lexyy.c; then
6415 ac_cv_prog_lex_root=lexyy
6417 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6418 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6419 { (exit 1); exit 1; }; }
6422 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6423 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6425 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6427 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6428 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 # POSIX says lex can declare yytext either as a pointer or an array; the
6433 # default is implementation-dependent. Figure out which it is, since
6434 # not all implementations provide the %pointer and %array declarations.
6435 ac_cv_prog_lex_yytext_pointer=no
6436 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6438 LIBS="$LIBS $LEXLIB"
6439 cat >conftest.$ac_ext <<_ACEOF
6440 `cat $LEX_OUTPUT_ROOT.c`
6442 rm -f conftest.$ac_objext conftest$ac_exeext
6443 if { (ac_try="$ac_link"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_link") 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6457 { (case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_try") 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_try") 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 ac_cv_prog_lex_yytext_pointer=yes
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6484 rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6487 rm -f "${LEX_OUTPUT_ROOT}.c"
6490 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6491 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6492 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define YYTEXT_POINTER 1
6503 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6504 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6505 if test "$LEX" != "flex"; then
6506 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6507 echo "$as_me: error: flex not found but required" >&2;}
6508 { (exit 1); exit 1; }; }
6514 { echo "$as_me:$LINENO: checking " >&5
6515 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6516 if test "${llvm_cv_has_bison+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 for ac_prog in 'bison -y' byacc
6521 # Extract the first word of "$ac_prog", so it can be a program name with args.
6522 set dummy $ac_prog; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_YACC+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test -n "$YACC"; then
6529 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_YACC="$ac_prog"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 YACC=$ac_cv_prog_YACC
6549 if test -n "$YACC"; then
6550 { echo "$as_me:$LINENO: result: $YACC" >&5
6551 echo "${ECHO_T}$YACC" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 test -n "$YACC" && break
6560 test -n "$YACC" || YACC="yacc"
6563 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6564 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6565 if test "$YACC" != "bison -y"; then
6567 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6568 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6574 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6575 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6576 if test "${lt_cv_path_NM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 if test -n "$NM"; then
6580 # Let the user override the test.
6583 lt_nm_to_check="${ac_tool_prefix}nm"
6584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6585 lt_nm_to_check="$lt_nm_to_check nm"
6587 for lt_tmp_nm in $lt_nm_to_check; do
6588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6591 test -z "$ac_dir" && ac_dir=.
6592 tmp_nm="$ac_dir/$lt_tmp_nm"
6593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6594 # Check to see if the nm accepts a BSD-compat flag.
6595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6596 # nm: unknown option "B" ignored
6597 # Tru64's nm complains that /dev/null is an invalid object file
6598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6599 */dev/null* | *'Invalid file or object type'*)
6600 lt_cv_path_NM="$tmp_nm -B"
6604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6606 lt_cv_path_NM="$tmp_nm -p"
6610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6611 continue # so that we can try to find one that supports BSD flags
6620 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6623 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6624 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6629 { echo "$as_me:$LINENO: checking for GNU make" >&5
6630 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6631 if test "${llvm_cv_gnu_make_command+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 llvm_cv_gnu_make_command=''
6635 for a in "$MAKE" make gmake gnumake ; do
6636 if test -z "$a" ; then continue ; fi ;
6637 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6639 llvm_cv_gnu_make_command=$a ;
6644 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6645 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6646 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6650 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6651 echo "${ECHO_T}\"Not found\"" >&6; };
6655 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6656 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6658 if test "$LN_S" = "ln -s"; then
6659 { echo "$as_me:$LINENO: result: yes" >&5
6660 echo "${ECHO_T}yes" >&6; }
6662 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6663 echo "${ECHO_T}no, using $LN_S" >&6; }
6666 # Extract the first word of "cmp", so it can be a program name with args.
6667 set dummy cmp; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_CMP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6698 if test -n "$CMP"; then
6699 { echo "$as_me:$LINENO: result: $CMP" >&5
6700 echo "${ECHO_T}$CMP" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6707 # Extract the first word of "cp", so it can be a program name with args.
6708 set dummy cp; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_CP+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6739 if test -n "$CP"; then
6740 { echo "$as_me:$LINENO: result: $CP" >&5
6741 echo "${ECHO_T}$CP" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 # Extract the first word of "date", so it can be a program name with args.
6749 set dummy date; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_DATE+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6779 DATE=$ac_cv_path_DATE
6780 if test -n "$DATE"; then
6781 { echo "$as_me:$LINENO: result: $DATE" >&5
6782 echo "${ECHO_T}$DATE" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 # Extract the first word of "find", so it can be a program name with args.
6790 set dummy find; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_FIND+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6820 FIND=$ac_cv_path_FIND
6821 if test -n "$FIND"; then
6822 { echo "$as_me:$LINENO: result: $FIND" >&5
6823 echo "${ECHO_T}$FIND" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6830 # Extract the first word of "grep", so it can be a program name with args.
6831 set dummy grep; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_GREP+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6861 GREP=$ac_cv_path_GREP
6862 if test -n "$GREP"; then
6863 { echo "$as_me:$LINENO: result: $GREP" >&5
6864 echo "${ECHO_T}$GREP" >&6; }
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6871 # Extract the first word of "mkdir", so it can be a program name with args.
6872 set dummy mkdir; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_MKDIR+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6902 MKDIR=$ac_cv_path_MKDIR
6903 if test -n "$MKDIR"; then
6904 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6905 echo "${ECHO_T}$MKDIR" >&6; }
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6912 # Extract the first word of "mv", so it can be a program name with args.
6913 set dummy mv; ac_word=$2
6914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916 if test "${ac_cv_path_MV+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6944 if test -n "$MV"; then
6945 { echo "$as_me:$LINENO: result: $MV" >&5
6946 echo "${ECHO_T}$MV" >&6; }
6948 { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6953 if test -n "$ac_tool_prefix"; then
6954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_prog_RANLIB+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 if test -n "$RANLIB"; then
6962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 RANLIB=$ac_cv_prog_RANLIB
6982 if test -n "$RANLIB"; then
6983 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6984 echo "${ECHO_T}$RANLIB" >&6; }
6986 { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6992 if test -z "$ac_cv_prog_RANLIB"; then
6993 ac_ct_RANLIB=$RANLIB
6994 # Extract the first word of "ranlib", so it can be a program name with args.
6995 set dummy ranlib; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 if test -n "$ac_ct_RANLIB"; then
7002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_ac_ct_RANLIB="ranlib"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7022 if test -n "$ac_ct_RANLIB"; then
7023 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7024 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7026 { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7030 if test "x$ac_ct_RANLIB" = x; then
7033 case $cross_compiling:$ac_tool_warned in
7035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet. If you think this
7037 configuration is useful to you, please write to autoconf@gnu.org." >&5
7038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7039 whose name does not start with the host triplet. If you think this
7040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7041 ac_tool_warned=yes ;;
7043 RANLIB=$ac_ct_RANLIB
7046 RANLIB="$ac_cv_prog_RANLIB"
7049 # Extract the first word of "rm", so it can be a program name with args.
7050 set dummy rm; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_RM+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7081 if test -n "$RM"; then
7082 { echo "$as_me:$LINENO: result: $RM" >&5
7083 echo "${ECHO_T}$RM" >&6; }
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7090 # Extract the first word of "sed", so it can be a program name with args.
7091 set dummy sed; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_SED+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7122 if test -n "$SED"; then
7123 { echo "$as_me:$LINENO: result: $SED" >&5
7124 echo "${ECHO_T}$SED" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 # Extract the first word of "tar", so it can be a program name with args.
7132 set dummy tar; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_TAR+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7163 if test -n "$TAR"; then
7164 { echo "$as_me:$LINENO: result: $TAR" >&5
7165 echo "${ECHO_T}$TAR" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7172 # Extract the first word of "pwd", so it can be a program name with args.
7173 set dummy pwd; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_BINPWD+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7203 BINPWD=$ac_cv_path_BINPWD
7204 if test -n "$BINPWD"; then
7205 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7206 echo "${ECHO_T}$BINPWD" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7214 # Extract the first word of "Graphviz", so it can be a program name with args.
7215 set dummy Graphviz; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7245 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7246 if test -n "$GRAPHVIZ"; then
7247 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7248 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7257 cat >>confdefs.h <<\_ACEOF
7258 #define HAVE_GRAPHVIZ 1
7261 if test "$llvm_cv_os_type" = "MingW" ; then
7262 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7265 cat >>confdefs.h <<_ACEOF
7266 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7270 # Extract the first word of "dot", so it can be a program name with args.
7271 set dummy dot; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_DOT+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7302 if test -n "$DOT"; then
7303 { echo "$as_me:$LINENO: result: $DOT" >&5
7304 echo "${ECHO_T}$DOT" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 if test "$DOT" != "echo dot" ; then
7313 cat >>confdefs.h <<\_ACEOF
7317 if test "$llvm_cv_os_type" = "MingW" ; then
7318 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7321 cat >>confdefs.h <<_ACEOF
7322 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7326 for ac_prog in gv gsview32
7328 # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_path_GV+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 if test -n "$GV"; then
7360 { echo "$as_me:$LINENO: result: $GV" >&5
7361 echo "${ECHO_T}$GV" >&6; }
7363 { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7368 test -n "$GV" && break
7370 test -n "$GV" || GV="echo gv"
7372 if test "$GV" != "echo gv" ; then
7374 cat >>confdefs.h <<\_ACEOF
7378 if test "$llvm_cv_os_type" = "MingW" ; then
7379 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7382 cat >>confdefs.h <<_ACEOF
7383 #define LLVM_PATH_GV "$GV${EXEEXT}"
7387 # Extract the first word of "dotty", so it can be a program name with args.
7388 set dummy dotty; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_DOTTY+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7418 DOTTY=$ac_cv_path_DOTTY
7419 if test -n "$DOTTY"; then
7420 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7421 echo "${ECHO_T}$DOTTY" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 if test "$DOTTY" != "echo dotty" ; then
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_DOTTY 1
7434 if test "$llvm_cv_os_type" = "MingW" ; then
7435 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7438 cat >>confdefs.h <<_ACEOF
7439 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7445 # Extract the first word of "perl", so it can be a program name with args.
7446 set dummy perl; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_PERL+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7476 PERL=$ac_cv_path_PERL
7477 if test -n "$PERL"; then
7478 { echo "$as_me:$LINENO: result: $PERL" >&5
7479 echo "${ECHO_T}$PERL" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 if test "$PERL" != "none"; then
7487 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7488 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7489 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7490 { echo "$as_me:$LINENO: result: yes" >&5
7491 echo "${ECHO_T}yes" >&6; }
7494 { echo "$as_me:$LINENO: result: not found" >&5
7495 echo "${ECHO_T}not found" >&6; }
7500 if test x"$PERL" = xnone; then
7503 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7504 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7505 { (exit 1); exit 1; }; }
7511 # Find a good install program. We prefer a C program (faster),
7512 # so one script is as good as another. But avoid the broken or
7513 # incompatible versions:
7514 # SysV /etc/install, /usr/sbin/install
7515 # SunOS /usr/etc/install
7516 # IRIX /sbin/install
7518 # AmigaOS /C/install, which installs bootblocks on floppy discs
7519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7522 # OS/2's system install, which has a completely different semantic
7523 # ./install, which can be erroneously created by make from ./install.sh.
7524 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7525 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7526 if test -z "$INSTALL"; then
7527 if test "${ac_cv_path_install+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 # Account for people who put trailing slashes in PATH elements.
7537 ./ | .// | /cC/* | \
7538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7539 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7542 # OSF1 and SCO ODT 3.0 have their own names for install.
7543 # Don't use installbsd from OSF since it installs stuff as root
7545 for ac_prog in ginstall scoinst install; do
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7548 if test $ac_prog = install &&
7549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7550 # AIX install. It has an incompatible calling convention.
7552 elif test $ac_prog = install &&
7553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7554 # program-specific install script used by HP pwplus--don't use.
7557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7570 if test "${ac_cv_path_install+set}" = set; then
7571 INSTALL=$ac_cv_path_install
7573 # As a last resort, use the slow shell script. Don't cache a
7574 # value for INSTALL within a source directory, because that will
7575 # break other packages using the cache if that directory is
7576 # removed, or if the value is a relative name.
7577 INSTALL=$ac_install_sh
7580 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7581 echo "${ECHO_T}$INSTALL" >&6; }
7583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7584 # It thinks the first close brace ends the variable substitution.
7585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7592 # Extract the first word of "bzip2", so it can be a program name with args.
7593 set dummy bzip2; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_BZIP2+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 BZIP2=$ac_cv_path_BZIP2
7623 if test -n "$BZIP2"; then
7624 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7625 echo "${ECHO_T}$BZIP2" >&6; }
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 # Extract the first word of "doxygen", so it can be a program name with args.
7633 set dummy doxygen; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 DOXYGEN=$ac_cv_path_DOXYGEN
7663 if test -n "$DOXYGEN"; then
7664 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7665 echo "${ECHO_T}$DOXYGEN" >&6; }
7667 { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7672 # Extract the first word of "groff", so it can be a program name with args.
7673 set dummy groff; ac_word=$2
7674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7676 if test "${ac_cv_path_GROFF+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 GROFF=$ac_cv_path_GROFF
7703 if test -n "$GROFF"; then
7704 { echo "$as_me:$LINENO: result: $GROFF" >&5
7705 echo "${ECHO_T}$GROFF" >&6; }
7707 { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7712 # Extract the first word of "gzip", so it can be a program name with args.
7713 set dummy gzip; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_GZIP+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 GZIP=$ac_cv_path_GZIP
7743 if test -n "$GZIP"; then
7744 { echo "$as_me:$LINENO: result: $GZIP" >&5
7745 echo "${ECHO_T}$GZIP" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 # Extract the first word of "pod2html", so it can be a program name with args.
7753 set dummy pod2html; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_path_POD2HTML+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 POD2HTML=$ac_cv_path_POD2HTML
7783 if test -n "$POD2HTML"; then
7784 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7785 echo "${ECHO_T}$POD2HTML" >&6; }
7787 { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7792 # Extract the first word of "pod2man", so it can be a program name with args.
7793 set dummy pod2man; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_path_POD2MAN+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 POD2MAN=$ac_cv_path_POD2MAN
7823 if test -n "$POD2MAN"; then
7824 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7825 echo "${ECHO_T}$POD2MAN" >&6; }
7827 { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7832 # Extract the first word of "runtest", so it can be a program name with args.
7833 set dummy runtest; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_RUNTEST+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 RUNTEST=$ac_cv_path_RUNTEST
7863 if test -n "$RUNTEST"; then
7864 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7865 echo "${ECHO_T}$RUNTEST" >&6; }
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7874 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7875 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7877 # Check whether --with-tclinclude was given.
7878 if test "${with_tclinclude+set}" = set; then
7879 withval=$with_tclinclude; with_tclinclude=${withval}
7884 if test "${ac_cv_path_tclsh+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 if test x"${with_tclinclude}" != x ; then
7889 if test -f ${with_tclinclude}/tclsh ; then
7890 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7891 elif test -f ${with_tclinclude}/src/tclsh ; then
7892 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7894 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7895 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7896 { (exit 1); exit 1; }; }
7900 if test x"${ac_cv_path_tclsh}" = x ; then
7901 { echo "$as_me:$LINENO: result: none" >&5
7902 echo "${ECHO_T}none" >&6; }
7903 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
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906 set dummy $ac_prog; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_path_TCLSH+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 TCLSH=$ac_cv_path_TCLSH
7936 if test -n "$TCLSH"; then
7937 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7938 echo "${ECHO_T}$TCLSH" >&6; }
7940 { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7945 test -n "$TCLSH" && break
7948 if test x"${TCLSH}" = x ; then
7949 ac_cv_path_tclsh='';
7951 ac_cv_path_tclsh="${TCLSH}";
7954 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7955 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7956 TCLSH="${ac_cv_path_tclsh}"
7962 # Extract the first word of "zip", so it can be a program name with args.
7963 set dummy zip; ac_word=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_ZIP+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 if test -n "$ZIP"; then
7994 { echo "$as_me:$LINENO: result: $ZIP" >&5
7995 echo "${ECHO_T}$ZIP" >&6; }
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8002 for ac_prog in ocamlc.opt ocamlc
8004 # Extract the first word of "$ac_prog", so it can be a program name with args.
8005 set dummy $ac_prog; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_path_OCAMLC+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 OCAMLC=$ac_cv_path_OCAMLC
8035 if test -n "$OCAMLC"; then
8036 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8037 echo "${ECHO_T}$OCAMLC" >&6; }
8039 { echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6; }
8044 test -n "$OCAMLC" && break
8047 for ac_prog in ocamlopt.opt ocamlopt
8049 # Extract the first word of "$ac_prog", so it can be a program name with args.
8050 set dummy $ac_prog; ac_word=$2
8051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8053 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 OCAMLOPT=$ac_cv_path_OCAMLOPT
8080 if test -n "$OCAMLOPT"; then
8081 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8082 echo "${ECHO_T}$OCAMLOPT" >&6; }
8084 { echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6; }
8089 test -n "$OCAMLOPT" && break
8092 for ac_prog in ocamldep.opt ocamldep
8094 # Extract the first word of "$ac_prog", so it can be a program name with args.
8095 set dummy $ac_prog; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 OCAMLDEP=$ac_cv_path_OCAMLDEP
8125 if test -n "$OCAMLDEP"; then
8126 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8127 echo "${ECHO_T}$OCAMLDEP" >&6; }
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 test -n "$OCAMLDEP" && break
8137 for ac_prog in ocamldoc.opt ocamldoc
8139 # Extract the first word of "$ac_prog", so it can be a program name with args.
8140 set dummy $ac_prog; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 OCAMLDOC=$ac_cv_path_OCAMLDOC
8170 if test -n "$OCAMLDOC"; then
8171 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8172 echo "${ECHO_T}$OCAMLDOC" >&6; }
8174 { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8179 test -n "$OCAMLDOC" && break
8183 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8184 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8185 if test "${llvm_cv_link_use_r+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cpp='$CPP $CPPFLAGS'
8190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195 CFLAGS="$CFLAGS -Wl,-R."
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8206 int main() { return 0; }
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (ac_try="$ac_link"
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_link") 2>conftest.er1
8220 grep -v '^ *+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (case "(($ac_try" in
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231 (eval "$ac_try") 2>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_try") 2>&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 llvm_cv_link_use_r=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 llvm_cv_link_use_r=no
8253 rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8257 ac_cpp='$CPP $CPPFLAGS'
8258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8265 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8266 if test "$llvm_cv_link_use_r" = yes ; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_LINK_R 1
8277 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8278 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8279 if test "${ac_cv_c_const+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8292 /* FIXME: Include the comments suggested by Paul. */
8294 /* Ultrix mips cc rejects this. */
8295 typedef int charset[2];
8297 /* SunOS 4.1.1 cc rejects this. */
8298 char const *const *ccp;
8300 /* NEC SVR4.0.2 mips cc rejects this. */
8301 struct point {int x, y;};
8302 static struct point const zero = {0,0};
8303 /* AIX XL C 1.02.0.0 rejects this.
8304 It does not let you subtract one const X* pointer from another in
8305 an arm of an if-expression whose if-part is not a constant
8307 const char *g = "string";
8308 ccp = &g + (g ? g-g : 0);
8309 /* HPUX 7.0 cc rejects these. */
8312 ccp = (char const *const *) p;
8313 { /* SCO 3.2v4 cc rejects this. */
8315 char const *s = 0 ? (char *) 0 : (char const *) 0;
8320 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8322 const int *foo = &x[0];
8325 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8326 typedef const int *iptr;
8330 { /* AIX XL C 1.02.0.0 rejects this saying
8331 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8332 struct s { int j; const int *ap[3]; };
8333 struct s *b; b->j = 5;
8335 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8339 return !x[0] && !zero.x;
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8391 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8392 if test $ac_cv_c_const = no; then
8394 cat >>confdefs.h <<\_ACEOF
8406 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8407 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8408 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8409 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 #include <sys/types.h>
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_Header=yes"
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 eval "$as_ac_Header=no"
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8483 ac_header_dirent=$ac_hdr; break
8487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8488 if test $ac_header_dirent = dirent.h; then
8489 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8517 for ac_lib in '' dir; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_search_opendir=$ac_res
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8566 rm -f core conftest.err conftest.$ac_objext \
8568 if test "${ac_cv_search_opendir+set}" = set; then
8572 if test "${ac_cv_search_opendir+set}" = set; then
8575 ac_cv_search_opendir=no
8578 LIBS=$ac_func_search_save_LIBS
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8589 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8590 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8591 if test "${ac_cv_search_opendir+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 ac_func_search_save_LIBS=$LIBS
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8602 /* Override any GCC internal prototype to avoid an error.
8603 Use char because int might match the return type of a GCC
8604 builtin and then its argument prototype would still apply. */
8617 for ac_lib in '' x; do
8618 if test -z "$ac_lib"; then
8619 ac_res="none required"
8622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_link") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_search_opendir=$ac_res
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8666 rm -f core conftest.err conftest.$ac_objext \
8668 if test "${ac_cv_search_opendir+set}" = set; then
8672 if test "${ac_cv_search_opendir+set}" = set; then
8675 ac_cv_search_opendir=no
8678 LIBS=$ac_func_search_save_LIBS
8680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8682 ac_res=$ac_cv_search_opendir
8683 if test "$ac_res" != no; then
8684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8691 for ac_header in dlfcn.h
8693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 ac_res=`eval echo '${'$as_ac_Header'}'`
8701 { echo "$as_me:$LINENO: result: $ac_res" >&5
8702 echo "${ECHO_T}$ac_res" >&6; }
8704 # Is the header compilable?
8705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 $ac_includes_default
8714 #include <$ac_header>
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest.$ac_objext'
8741 { (case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_try") 2>&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_header_compiler=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_header_compiler=no
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760 echo "${ECHO_T}$ac_header_compiler" >&6; }
8762 # Is the header present?
8763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 #include <$ac_header>
8773 if { (ac_try="$ac_cpp conftest.$ac_ext"
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } >/dev/null; then
8786 if test -s conftest.err; then
8787 ac_cpp_err=$ac_c_preproc_warn_flag
8788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8795 if test -z "$ac_cpp_err"; then
8796 ac_header_preproc=yes
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_header_preproc=no
8804 rm -f conftest.err conftest.$ac_ext
8805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8806 echo "${ECHO_T}$ac_header_preproc" >&6; }
8808 # So? What about this header?
8809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8815 ac_header_preproc=yes
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8831 ## ----------------------------------- ##
8832 ## Report this to llvmbugs@cs.uiuc.edu ##
8833 ## ----------------------------------- ##
8835 ) | sed "s/^/$as_me: WARNING: /" >&2
8838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 eval "$as_ac_Header=\$ac_header_preproc"
8845 ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847 echo "${ECHO_T}$ac_res" >&6; }
8850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8859 # Check whether --enable-ltdl-install was given.
8860 if test "${enable_ltdl_install+set}" = set; then
8861 enableval=$enable_ltdl_install;
8867 if test x"${enable_ltdl_install-no}" != xno; then
8869 INSTALL_LTDL_FALSE='#'
8871 INSTALL_LTDL_TRUE='#'
8877 if test x"${enable_ltdl_convenience-no}" != xno; then
8878 CONVENIENCE_LTDL_TRUE=
8879 CONVENIENCE_LTDL_FALSE='#'
8881 CONVENIENCE_LTDL_TRUE='#'
8882 CONVENIENCE_LTDL_FALSE=
8886 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8887 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8889 libname_spec='lib$name'
8897 shlibpath_overrides_runpath=unknown
8899 dynamic_linker="$host_os ld.so"
8900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8901 if test "$GCC" = yes; then
8902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8904 # if the path contains ";" then we assume it to be the separator
8905 # otherwise default to the standard path separator (i.e. ":") - it is
8906 # assumed that no part of a normal pathname contains ";" but that should
8907 # okay in the real world where ";" in dirpaths is itself problematic.
8908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8915 need_lib_prefix=unknown
8916 hardcode_into_libs=no
8918 # when you set need_version to no, make sure it does not cause -set_version
8919 # flags to be left without arguments
8920 need_version=unknown
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8926 shlibpath_var=LIBPATH
8928 # AIX 3 has no versioning support, so we append a major version to the name.
8929 soname_spec='${libname}${release}${shared_ext}$major'
8936 hardcode_into_libs=yes
8937 if test "$host_cpu" = ia64; then
8938 # AIX 5 supports IA64
8939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8940 shlibpath_var=LD_LIBRARY_PATH
8942 # With GCC up to 2.95.x, collect2 would create an import file
8943 # for dependence libraries. The import file would start with
8944 # the line `#! .'. This would cause the generated library to
8945 # depend on `.', always an invalid library. This was fixed in
8946 # development snapshots of GCC prior to 3.0.
8948 aix4 | aix4.[01] | aix4.[01].*)
8949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8959 # soname into executable. Probably we can add versioning support to
8960 # collect2, so additional links can be useful in future.
8961 if test "$aix_use_runtimelinking" = yes; then
8962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8963 # instead of lib<name>.a to let people know that these are not
8964 # typical AIX shared libraries.
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 # We preserve .a as extension for shared libraries through AIX4.2
8968 # and later when we are not doing run time linking.
8969 library_names_spec='${libname}${release}.a $libname.a'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LIBPATH
8977 library_names_spec='$libname.ixlibrary $libname.a'
8978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8979 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'
8983 library_names_spec='${libname}${shared_ext}'
8984 dynamic_linker="$host_os ld.so"
8985 shlibpath_var=LIBRARY_PATH
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8997 # the default ld.so.conf also contains /usr/contrib/lib and
8998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8999 # libtool to hard-code these into programs
9002 cygwin* | mingw* | pw32*)
9003 version_type=windows
9008 case $GCC,$host_os in
9009 yes,cygwin* | yes,mingw* | yes,pw32*)
9010 library_names_spec='$libname.dll.a'
9011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9012 postinstall_cmds='base_file=`basename \${file}`~
9013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9014 dldir=$destdir/`dirname \$dlpath`~
9015 test -d \$dldir || mkdir -p \$dldir~
9016 $install_prog $dir/$dlname \$dldir/$dlname~
9017 chmod a+x \$dldir/$dlname'
9018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9019 dlpath=$dir/\$dldll~
9021 shlibpath_overrides_runpath=yes
9025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9030 # MinGW DLLs use traditional 'lib' prefix
9031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9034 # It is most probably a Windows format PATH printed by
9035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9036 # path with ; separators, and with drive letters. We can handle the
9037 # drive letters (cygwin fileutils understands them), so leave them,
9038 # especially as we might pass files found there to a mingw objdump,
9039 # which wouldn't understand a cygwinified path. Ahh.
9040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9046 # pw32 DLLs use 'pw' prefix rather than 'lib'
9047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9056 dynamic_linker='Win32 ld.exe'
9057 # FIXME: first we should search . and the directory the executable is in
9061 darwin* | rhapsody*)
9062 dynamic_linker="$host_os dyld"
9066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9067 soname_spec='${libname}${release}${major}$shared_ext'
9068 shlibpath_overrides_runpath=yes
9069 shlibpath_var=DYLD_LIBRARY_PATH
9070 shrext_cmds='.dylib'
9071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9072 if test "$GCC" = yes; then
9073 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"`
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 hardcode_into_libs=yes
9102 dynamic_linker='GNU ld.so'
9105 freebsd* | dragonfly*)
9106 # DragonFly does not have aout. When/if they implement a new
9107 # versioning mechanism, adjust this.
9108 if test -x /usr/bin/objformat; then
9109 objformat=`/usr/bin/objformat`
9112 freebsd[123]*) objformat=aout ;;
9116 version_type=freebsd-$objformat
9117 case $version_type in
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9128 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=yes
9133 freebsd3.[01]* | freebsdelf3.[01]*)
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9139 shlibpath_overrides_runpath=no
9140 hardcode_into_libs=yes
9142 freebsd*) # from 4.6 on
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 hardcode_into_libs=yes
9159 hpux9* | hpux10* | hpux11*)
9160 # Give a soname corresponding to the major version so that dld.sl refuses to
9161 # link against other versions.
9168 hardcode_into_libs=yes
9169 dynamic_linker="$host_os dld.so"
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 if test "X$HPUX_IA64_MODE" = X32; then
9175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183 hardcode_into_libs=yes
9184 dynamic_linker="$host_os dld.sl"
9185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9194 dynamic_linker="$host_os dld.sl"
9195 shlibpath_var=SHLIB_PATH
9196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9202 postinstall_cmds='chmod 555 $lib'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 hardcode_into_libs=yes
9217 irix5* | irix6* | nonstopux*)
9219 nonstopux*) version_type=nonstopux ;;
9221 if test "$lt_cv_prog_gnu_ld" = yes; then
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9232 irix5* | nonstopux*)
9236 case $LD in # libtool.m4 will add one of these switches to LD
9237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9238 libsuff= shlibsuff= libmagic=32-bit;;
9239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9240 libsuff=32 shlibsuff=N32 libmagic=N32;;
9241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9243 *) libsuff= shlibsuff= libmagic=never-match;;
9247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9251 hardcode_into_libs=yes
9254 # No shared lib support for Linux oldld, aout, or coff.
9255 linux*oldld* | linux*aout* | linux*coff*)
9259 # This must be Linux ELF.
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=no
9269 # This implies no fast_install, which is unacceptable.
9270 # Some rework will be needed to allow for fast_install
9271 # before this can be enabled.
9272 hardcode_into_libs=yes
9274 # Append ld.so.conf contents to the search path
9275 if test -f /etc/ld.so.conf; then
9276 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' ' '`
9277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9280 # We used to test for /lib/ld.so.1 and disable shared libraries on
9281 # powerpc, because MkLinux only supported shared libraries with the
9282 # GNU dynamic linker. Since this was broken with cross compilers,
9283 # most powerpc-linux boxes support dynamic linking these days and
9284 # people can always --disable-shared, the test was removed, and we
9285 # assume the GNU/Linux dynamic linker is in use.
9286 dynamic_linker='GNU/Linux ld.so'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=no
9297 hardcode_into_libs=yes
9298 dynamic_linker='GNU ld.so'
9305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9308 dynamic_linker='NetBSD (a.out) ld.so'
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 dynamic_linker='NetBSD ld.elf_so'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9316 hardcode_into_libs=yes
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes
9338 sys_lib_dlsearch_path_spec="/usr/lib"
9340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9343 *) need_version=no ;;
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9350 openbsd2.[89] | openbsd2.[89].*)
9351 shlibpath_overrides_runpath=no
9354 shlibpath_overrides_runpath=yes
9358 shlibpath_overrides_runpath=yes
9363 libname_spec='$name'
9366 library_names_spec='$libname${shared_ext} $libname.a'
9367 dynamic_linker='OS/2 ld.exe'
9368 shlibpath_var=LIBPATH
9371 osf3* | osf4* | osf5*)
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9391 # ldd complains unless libraries are executable
9392 postinstall_cmds='chmod +x $lib'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=yes
9401 if test "$with_gnu_ld" = yes; then
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 case $host_vendor in
9414 shlibpath_overrides_runpath=no
9416 export_dynamic_flag_spec='${wl}-Blargedynsym'
9417 runpath_var=LD_RUN_PATH
9425 shlibpath_overrides_runpath=no
9426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9432 if test -d /usr/nec ;then
9434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9435 soname_spec='$libname${shared_ext}.$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9441 version_type=freebsd-elf
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 hardcode_into_libs=yes
9448 if test "$with_gnu_ld" = yes; then
9449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9450 shlibpath_overrides_runpath=no
9452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9453 shlibpath_overrides_runpath=yes
9456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9460 sys_lib_dlsearch_path_spec='/usr/lib'
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9474 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9475 echo "${ECHO_T}$dynamic_linker" >&6; }
9476 test "$dynamic_linker" = no && can_build_shared=no
9478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9479 if test "$GCC" = yes; then
9480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9484 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9485 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9486 if test "${libltdl_cv_shlibext+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 eval libltdl_cv_shlibext=$shrext_cmds
9494 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9495 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9496 if test -n "$libltdl_cv_shlibext"; then
9498 cat >>confdefs.h <<_ACEOF
9499 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9505 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9506 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9507 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 libltdl_cv_shlibpath_var="$shlibpath_var"
9512 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9513 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9514 if test -n "$libltdl_cv_shlibpath_var"; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9523 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9524 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9525 if test "${libltdl_cv_sys_search_path+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9530 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9531 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9532 if test -n "$libltdl_cv_sys_search_path"; then
9534 for dir in $libltdl_cv_sys_search_path; do
9535 if test -z "$sys_search_path"; then
9536 sys_search_path="$dir"
9538 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9542 cat >>confdefs.h <<_ACEOF
9543 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9548 { echo "$as_me:$LINENO: checking for objdir" >&5
9549 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9550 if test "${libltdl_cv_objdir+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 libltdl_cv_objdir="$objdir"
9554 if test -n "$objdir"; then
9557 rm -f .libs 2>/dev/null
9558 mkdir .libs 2>/dev/null
9559 if test -d .libs; then
9560 libltdl_cv_objdir=.libs
9562 # MS-DOS does not allow filenames that begin with a dot.
9563 libltdl_cv_objdir=_libs
9565 rmdir .libs 2>/dev/null
9569 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9570 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9572 cat >>confdefs.h <<_ACEOF
9573 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9581 # Check for command to grab the raw symbol name followed by C symbol from nm.
9582 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9583 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9584 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 # These are sane defaults that work on at least a few old systems.
9589 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9591 # Character class describing NM global symbol codes.
9592 symcode='[BCDEGRST]'
9594 # Regexp to match symbols that can be accessed directly from C.
9595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9597 # Transform an extracted symbol line into a proper C declaration
9598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9600 # Transform an extracted symbol line into symbol name and symbol address
9601 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'"
9603 # Define system-specific variables.
9608 cygwin* | mingw* | pw32*)
9609 symcode='[ABCDGISTW]'
9611 hpux*) # Its linker distinguishes data from code symbols
9612 if test "$host_cpu" = ia64; then
9613 symcode='[ABCDEGRST]'
9615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9616 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'"
9619 if test "$host_cpu" = ia64; then
9620 symcode='[ABCDGIRSTW]'
9621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9622 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'"
9626 symcode='[BCDEGRST]'
9629 symcode='[BCDEGQRST]'
9640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9648 # Handle CRLF in mingw tool chain
9652 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9656 # If we're using GNU nm, then use its standard symbol codes.
9657 case `$NM -V 2>&1` in
9658 *GNU* | *'with BFD'*)
9659 symcode='[ABCDGIRSTW]' ;;
9662 # Try without a prefix undercore, then with it.
9663 for ac_symprfx in "" "_"; do
9665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9666 symxfrm="\\1 $ac_symprfx\\2 \\2"
9668 # Write the raw and C identifiers.
9669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9671 # Check to see that the pipe works correctly.
9675 cat > conftest.$ac_ext <<EOF
9680 void nm_test_func(){}
9684 int main(){nm_test_var='a';nm_test_func();return(0);}
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; then
9692 # Now try to grab the symbols.
9694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && test -s "$nlist"; then
9699 # Try sorting and uniquifying the output.
9700 if sort "$nlist" | uniq > "$nlist"T; then
9701 mv -f "$nlist"T "$nlist"
9706 # Make sure that we snagged all the symbols we need.
9707 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9708 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9709 cat <<EOF > conftest.$ac_ext
9715 # Now generate the symbol file.
9716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9718 cat <<EOF >> conftest.$ac_ext
9719 #if defined (__STDC__) && __STDC__
9720 # define lt_ptr_t void *
9722 # define lt_ptr_t char *
9726 /* The mapping between symbol names and symbols. */
9731 lt_preloaded_symbols[] =
9734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9735 cat <<\EOF >> conftest.$ac_ext
9743 # Now try linking the two files.
9744 mv conftest.$ac_objext conftstm.$ac_objext
9745 lt_save_LIBS="$LIBS"
9746 lt_save_CFLAGS="$CFLAGS"
9747 LIBS="conftstm.$ac_objext"
9748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9756 LIBS="$lt_save_LIBS"
9757 CFLAGS="$lt_save_CFLAGS"
9759 echo "cannot find nm_test_func in $nlist" >&5
9762 echo "cannot find nm_test_var in $nlist" >&5
9765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9768 echo "$progname: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 rm -f conftest* conftst*
9773 # Do not use the global_symbol_pipe unless it works.
9774 if test "$pipe_works" = yes; then
9777 lt_cv_sys_global_symbol_pipe=
9783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9784 lt_cv_sys_global_symbol_to_cdecl=
9786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9787 { echo "$as_me:$LINENO: result: failed" >&5
9788 echo "${ECHO_T}failed" >&6; }
9790 { echo "$as_me:$LINENO: result: ok" >&5
9791 echo "${ECHO_T}ok" >&6; }
9795 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9796 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9797 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9801 libltdl_cv_preloaded_symbols=yes
9803 libltdl_cv_preloaded_symbols=no
9807 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9808 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9809 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_PRELOADED_SYMBOLS 1
9820 ac_cpp='$CPP $CPPFLAGS'
9821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9826 { echo "$as_me:$LINENO: checking for shl_load" >&5
9827 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_shl_load+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839 #define shl_load innocuous_shl_load
9841 /* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char shl_load (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9847 # include <limits.h>
9849 # include <assert.h>
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9861 /* The GNU C library defines this for functions which it implements
9862 to always fail with ENOSYS. Some functions are actually named
9863 something starting with __ and the normal name is an alias. */
9864 #if defined __stub_shl_load || defined __stub___shl_load
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_func_shl_load=yes
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_cv_func_shl_load=no
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9921 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9923 if test $ac_cv_func_shl_load = yes; then
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_SHL_LOAD 1
9930 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9931 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9932 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 ac_check_lib_save_LIBS=$LIBS
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_lib_dld_shl_load=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_lib_dld_shl_load=no
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10007 if test $ac_cv_lib_dld_shl_load = yes; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_SHL_LOAD 1
10013 LIBADD_DL="$LIBADD_DL -ldld"
10015 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_check_lib_save_LIBS=$LIBS
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_dl_dlopen=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_lib_dl_dlopen=no
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10092 if test $ac_cv_lib_dl_dlopen = yes; then
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_LIBDL 1
10098 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10107 # include <dlfcn.h>
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_LIBDL 1
10156 libltdl_cv_func_dlopen="yes"
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lsvld $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_cv_lib_svld_dlopen=yes
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_lib_svld_dlopen=no
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10236 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10237 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10238 if test $ac_cv_lib_svld_dlopen = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_LIBDL 1
10244 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10246 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 ac_check_lib_save_LIBS=$LIBS
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10260 /* Override any GCC internal prototype to avoid an error.
10261 Use char because int might match the return type of a GCC
10262 builtin and then its argument prototype would still apply. */
10270 return dld_link ();
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_link") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_lib_dld_dld_link=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_dld_dld_link=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10322 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10323 if test $ac_cv_lib_dld_dld_link = yes; then
10325 cat >>confdefs.h <<\_ACEOF
10329 LIBADD_DL="$LIBADD_DL -ldld"
10331 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10332 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10333 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10344 #define _dyld_func_lookup innocuous__dyld_func_lookup
10346 /* System header to define __stub macros and hopefully few prototypes,
10347 which can conflict with char _dyld_func_lookup (); below.
10348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 <limits.h> exists even on freestanding compilers. */
10352 # include <limits.h>
10354 # include <assert.h>
10357 #undef _dyld_func_lookup
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10365 char _dyld_func_lookup ();
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10376 return _dyld_func_lookup ();
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_func__dyld_func_lookup=yes
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_cv_func__dyld_func_lookup=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10426 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10427 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10428 if test $ac_cv_func__dyld_func_lookup = yes; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_DYLD 1
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10457 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10459 lt_save_LIBS="$LIBS"
10460 LIBS="$LIBS $LIBADD_DL"
10462 for ac_func in dlerror
10464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 cat >conftest.$ac_ext <<_ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10478 #define $ac_func innocuous_$ac_func
10480 /* System header to define __stub macros and hopefully few prototypes,
10481 which can conflict with char $ac_func (); below.
10482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483 <limits.h> exists even on freestanding compilers. */
10486 # include <limits.h>
10488 # include <assert.h>
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10500 /* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503 #if defined __stub_$ac_func || defined __stub___$ac_func
10510 return $ac_func ();
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530 { (case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_try") 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 eval "$as_ac_var=yes"
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 eval "$as_ac_var=no"
10557 rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10560 ac_res=`eval echo '${'$as_ac_var'}'`
10561 { echo "$as_me:$LINENO: result: $ac_res" >&5
10562 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_var'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10571 LIBS="$lt_save_LIBS"
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10581 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10582 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10583 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 ac_cv_sys_symbol_underscore=no
10587 cat > conftest.$ac_ext <<EOF
10588 void nm_test_func(){}
10589 int main(){nm_test_func;return 0;}
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; then
10596 # Now try to grab the symbols.
10597 ac_nlist=conftest.nm
10598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && test -s "$ac_nlist"; then
10603 # See whether the symbols have a leading underscore.
10604 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10605 ac_cv_sys_symbol_underscore=yes
10607 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10610 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10614 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10617 echo "configure: failed program was:" >&5
10623 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10624 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10627 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10628 if test x"$libltdl_cv_func_dlopen" = xyes ||
10629 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10630 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10631 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10632 if test "${libltdl_cv_need_uscore+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 libltdl_cv_need_uscore=unknown
10637 LIBS="$LIBS $LIBADD_DL"
10638 if test "$cross_compiling" = yes; then :
10639 libltdl_cv_need_uscore=cross
10641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10642 lt_status=$lt_dlunknown
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10654 # define LT_DLGLOBAL RTLD_GLOBAL
10657 # define LT_DLGLOBAL DL_GLOBAL
10659 # define LT_DLGLOBAL 0
10663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10664 find out it does not work in some platform. */
10665 #ifndef LT_DLLAZY_OR_NOW
10667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10670 # define LT_DLLAZY_OR_NOW DL_LAZY
10673 # define LT_DLLAZY_OR_NOW RTLD_NOW
10676 # define LT_DLLAZY_OR_NOW DL_NOW
10678 # define LT_DLLAZY_OR_NOW 0
10686 extern "C" void exit (int);
10689 void fnord() { int i=42;}
10692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10693 int status = $lt_dlunknown;
10697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10699 /* dlclose (self); */
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10712 (./conftest; exit; ) >&5 2>/dev/null
10714 case x$lt_status in
10715 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10716 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10717 x$lt_dlunknown|x*) ;;
10720 # compilation failed
10729 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10730 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10734 if test x"$libltdl_cv_need_uscore" = xyes; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define NEED_USCORE 1
10743 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10744 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10745 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 # PORTME does your system automatically load deplibs for dlopen?
10749 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10750 # For now, we just catch OSes we know something about -- in the
10751 # future, we'll try test this programmatically.
10752 libltdl_cv_sys_dlopen_deplibs=unknown
10754 aix3*|aix4.1.*|aix4.2.*)
10755 # Unknown whether this is true for these versions of AIX, but
10756 # we want this `case' here to explicitly catch those versions.
10757 libltdl_cv_sys_dlopen_deplibs=unknown
10760 libltdl_cv_sys_dlopen_deplibs=yes
10763 # Assuming the user has installed a libdl from somewhere, this is true
10764 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10765 libltdl_cv_sys_dlopen_deplibs=yes
10767 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10768 # GNU and its variants, using gnu ld.so (Glibc)
10769 libltdl_cv_sys_dlopen_deplibs=yes
10772 libltdl_cv_sys_dlopen_deplibs=yes
10775 libltdl_cv_sys_dlopen_deplibs=yes
10777 irix[12345]*|irix6.[01]*)
10778 # Catch all versions of IRIX before 6.2, and indicate that we don't
10779 # know how it worked for any of those versions.
10780 libltdl_cv_sys_dlopen_deplibs=unknown
10783 # The case above catches anything before 6.2, and it's known that
10784 # at 6.2 and later dlopen does load deplibs.
10785 libltdl_cv_sys_dlopen_deplibs=yes
10788 libltdl_cv_sys_dlopen_deplibs=yes
10791 libltdl_cv_sys_dlopen_deplibs=yes
10794 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10795 # it did *not* use an RPATH in a shared library to find objects the
10796 # library depends on, so we explictly say `no'.
10797 libltdl_cv_sys_dlopen_deplibs=no
10799 osf5.0|osf5.0a|osf5.1)
10800 # dlopen *does* load deplibs and with the right loader patch applied
10801 # it even uses RPATH in a shared library to search for shared objects
10802 # that the library depends on, but there's no easy way to know if that
10803 # patch is installed. Since this is the case, all we can really
10804 # say is unknown -- it depends on the patch being installed. If
10805 # it is, this changes to `yes'. Without it, it would be `no'.
10806 libltdl_cv_sys_dlopen_deplibs=unknown
10809 # the two cases above should catch all versions of osf <= 5.1. Read
10810 # the comments above for what we know about them.
10811 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10812 # is used to find them so we can finally say `yes'.
10813 libltdl_cv_sys_dlopen_deplibs=yes
10816 libltdl_cv_sys_dlopen_deplibs=yes
10818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10819 libltdl_cv_sys_dlopen_deplibs=yes
10824 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10825 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10826 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10828 cat >>confdefs.h <<\_ACEOF
10829 #define LTDL_DLOPEN_DEPLIBS 1
10835 for ac_header in argz.h
10837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 ac_res=`eval echo '${'$as_ac_Header'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846 echo "${ECHO_T}$ac_res" >&6; }
10848 # Is the header compilable?
10849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10851 cat >conftest.$ac_ext <<_ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 $ac_includes_default
10858 #include <$ac_header>
10860 rm -f conftest.$ac_objext
10861 if { (ac_try="$ac_compile"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest.$ac_objext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_header_compiler=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_compiler=no
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10904 echo "${ECHO_T}$ac_header_compiler" >&6; }
10906 # Is the header present?
10907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 #include <$ac_header>
10917 if { (ac_try="$ac_cpp conftest.$ac_ext"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } >/dev/null; then
10930 if test -s conftest.err; then
10931 ac_cpp_err=$ac_c_preproc_warn_flag
10932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10939 if test -z "$ac_cpp_err"; then
10940 ac_header_preproc=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_header_preproc=no
10948 rm -f conftest.err conftest.$ac_ext
10949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10950 echo "${ECHO_T}$ac_header_preproc" >&6; }
10952 # So? What about this header?
10953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10959 ac_header_preproc=yes
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10975 ## ----------------------------------- ##
10976 ## Report this to llvmbugs@cs.uiuc.edu ##
10977 ## ----------------------------------- ##
10979 ) | sed "s/^/$as_me: WARNING: /" >&2
10982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 eval "$as_ac_Header=\$ac_header_preproc"
10989 ac_res=`eval echo '${'$as_ac_Header'}'`
10990 { echo "$as_me:$LINENO: result: $ac_res" >&5
10991 echo "${ECHO_T}$ac_res" >&6; }
10994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10995 cat >>confdefs.h <<_ACEOF
10996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11004 { echo "$as_me:$LINENO: checking for error_t" >&5
11005 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11006 if test "${ac_cv_type_error_t+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11019 typedef error_t ac__type_new_;
11023 if ((ac__type_new_ *) 0)
11025 if (sizeof (ac__type_new_))
11031 rm -f conftest.$ac_objext
11032 if { (ac_try="$ac_compile"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_compile") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_try") 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_type_error_t=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_type_error_t=no
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11076 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11077 if test $ac_cv_type_error_t = yes; then
11079 cat >>confdefs.h <<_ACEOF
11080 #define HAVE_ERROR_T 1
11086 cat >>confdefs.h <<\_ACEOF
11087 #define error_t int
11098 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11114 #define $ac_func innocuous_$ac_func
11116 /* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below.
11118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119 <limits.h> exists even on freestanding compilers. */
11122 # include <limits.h>
11124 # include <assert.h>
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11136 /* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11146 return $ac_func ();
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 eval "$as_ac_var=yes"
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 eval "$as_ac_var=no"
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11196 ac_res=`eval echo '${'$as_ac_var'}'`
11197 { echo "$as_me:$LINENO: result: $ac_res" >&5
11198 echo "${ECHO_T}$ac_res" >&6; }
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11234 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11248 # Is the header compilable?
11249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 $ac_includes_default
11258 #include <$ac_header>
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_header_compiler=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_header_compiler=no
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6; }
11306 # Is the header present?
11307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <$ac_header>
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } >/dev/null; then
11330 if test -s conftest.err; then
11331 ac_cpp_err=$ac_c_preproc_warn_flag
11332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 if test -z "$ac_cpp_err"; then
11340 ac_header_preproc=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_preproc=no
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11352 # So? What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11375 ## ----------------------------------- ##
11376 ## Report this to llvmbugs@cs.uiuc.edu ##
11377 ## ----------------------------------- ##
11379 ) | sed "s/^/$as_me: WARNING: /" >&2
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 eval "$as_ac_Header=\$ac_header_preproc"
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11407 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11420 # Is the header compilable?
11421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 $ac_includes_default
11430 #include <$ac_header>
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_header_compiler=yes
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_header_compiler=no
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
11478 # Is the header present?
11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <$ac_header>
11489 if { (ac_try="$ac_cpp conftest.$ac_ext"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11511 if test -z "$ac_cpp_err"; then
11512 ac_header_preproc=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_preproc=no
11520 rm -f conftest.err conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11547 ## ----------------------------------- ##
11548 ## Report this to llvmbugs@cs.uiuc.edu ##
11549 ## ----------------------------------- ##
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 eval "$as_ac_Header=\$ac_header_preproc"
11561 ac_res=`eval echo '${'$as_ac_Header'}'`
11562 { echo "$as_me:$LINENO: result: $ac_res" >&5
11563 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11577 for ac_header in string.h strings.h
11579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11590 # Is the header compilable?
11591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11593 cat >conftest.$ac_ext <<_ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 $ac_includes_default
11600 #include <$ac_header>
11602 rm -f conftest.$ac_objext
11603 if { (ac_try="$ac_compile"
11604 case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11611 grep -v '^ *+' conftest.er1 >conftest.err
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_try") 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_header_compiler=yes
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_compiler=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 echo "${ECHO_T}$ac_header_compiler" >&6; }
11648 # Is the header present?
11649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <$ac_header>
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev/null; then
11672 if test -s conftest.err; then
11673 ac_cpp_err=$ac_c_preproc_warn_flag
11674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11681 if test -z "$ac_cpp_err"; then
11682 ac_header_preproc=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_header_preproc=no
11690 rm -f conftest.err conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6; }
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11717 ## ----------------------------------- ##
11718 ## Report this to llvmbugs@cs.uiuc.edu ##
11719 ## ----------------------------------- ##
11721 ) | sed "s/^/$as_me: WARNING: /" >&2
11724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 eval "$as_ac_Header=\$ac_header_preproc"
11731 ac_res=`eval echo '${'$as_ac_Header'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11748 for ac_func in strchr index
11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11764 #define $ac_func innocuous_$ac_func
11766 /* System header to define __stub macros and hopefully few prototypes,
11767 which can conflict with char $ac_func (); below.
11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 <limits.h> exists even on freestanding compilers. */
11772 # include <limits.h>
11774 # include <assert.h>
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined __stub_$ac_func || defined __stub___$ac_func
11796 return $ac_func ();
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_link") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 eval "$as_ac_var=yes"
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 eval "$as_ac_var=no"
11843 rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11846 ac_res=`eval echo '${'$as_ac_var'}'`
11847 { echo "$as_me:$LINENO: result: $ac_res" >&5
11848 echo "${ECHO_T}$ac_res" >&6; }
11849 if test `eval echo '${'$as_ac_var'}'` = yes; then
11850 cat >>confdefs.h <<_ACEOF
11851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11859 for ac_func in strrchr rindex
11861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875 #define $ac_func innocuous_$ac_func
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11883 # include <limits.h>
11885 # include <assert.h>
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 return $ac_func ();
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_link") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 eval "$as_ac_var=yes"
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 eval "$as_ac_var=no"
11954 rm -f core conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11957 ac_res=`eval echo '${'$as_ac_var'}'`
11958 { echo "$as_me:$LINENO: result: $ac_res" >&5
11959 echo "${ECHO_T}$ac_res" >&6; }
11960 if test `eval echo '${'$as_ac_var'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 for ac_func in memcpy bcopy
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986 #define $ac_func innocuous_$ac_func
11988 /* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
11994 # include <limits.h>
11996 # include <assert.h>
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12008 /* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
12011 #if defined __stub_$ac_func || defined __stub___$ac_func
12018 return $ac_func ();
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (ac_try="$ac_link"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_link") 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 eval "$as_ac_var=yes"
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 eval "$as_ac_var=no"
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12068 ac_res=`eval echo '${'$as_ac_var'}'`
12069 { echo "$as_me:$LINENO: result: $ac_res" >&5
12070 echo "${ECHO_T}$ac_res" >&6; }
12071 if test `eval echo '${'$as_ac_var'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 for ac_func in memmove strcmp
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12097 #define $ac_func innocuous_$ac_func
12099 /* System header to define __stub macros and hopefully few prototypes,
12100 which can conflict with char $ac_func (); below.
12101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102 <limits.h> exists even on freestanding compilers. */
12105 # include <limits.h>
12107 # include <assert.h>
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12119 /* The GNU C library defines this for functions which it implements
12120 to always fail with ENOSYS. Some functions are actually named
12121 something starting with __ and the normal name is an alias. */
12122 #if defined __stub_$ac_func || defined __stub___$ac_func
12129 return $ac_func ();
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_try") 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 eval "$as_ac_var=yes"
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 eval "$as_ac_var=no"
12176 rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12179 ac_res=`eval echo '${'$as_ac_var'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 if test `eval echo '${'$as_ac_var'}'` = yes; then
12183 cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 for ac_func in closedir opendir readdir
12195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12209 #define $ac_func innocuous_$ac_func
12211 /* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char $ac_func (); below.
12213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 <limits.h> exists even on freestanding compilers. */
12217 # include <limits.h>
12219 # include <assert.h>
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12231 /* The GNU C library defines this for functions which it implements
12232 to always fail with ENOSYS. Some functions are actually named
12233 something starting with __ and the normal name is an alias. */
12234 #if defined __stub_$ac_func || defined __stub___$ac_func
12241 return $ac_func ();
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_link") 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 eval "$as_ac_var=yes"
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 eval "$as_ac_var=no"
12288 rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12291 ac_res=`eval echo '${'$as_ac_var'}'`
12292 { echo "$as_me:$LINENO: result: $ac_res" >&5
12293 echo "${ECHO_T}$ac_res" >&6; }
12294 if test `eval echo '${'$as_ac_var'}'` = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12303 # Check whether --enable-shared was given.
12304 if test "${enable_shared+set}" = set; then
12305 enableval=$enable_shared; p=${PACKAGE-default}
12307 yes) enable_shared=yes ;;
12308 no) enable_shared=no ;;
12311 # Look at the argument we got. We use all the common list separators.
12312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12313 for pkg in $enableval; do
12315 if test "X$pkg" = "X$p"; then
12327 # Check whether --enable-static was given.
12328 if test "${enable_static+set}" = set; then
12329 enableval=$enable_static; p=${PACKAGE-default}
12331 yes) enable_static=yes ;;
12332 no) enable_static=no ;;
12335 # Look at the argument we got. We use all the common list separators.
12336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12337 for pkg in $enableval; do
12339 if test "X$pkg" = "X$p"; then
12351 # Check whether --enable-fast-install was given.
12352 if test "${enable_fast_install+set}" = set; then
12353 enableval=$enable_fast_install; p=${PACKAGE-default}
12355 yes) enable_fast_install=yes ;;
12356 no) enable_fast_install=no ;;
12358 enable_fast_install=no
12359 # Look at the argument we got. We use all the common list separators.
12360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12361 for pkg in $enableval; do
12363 if test "X$pkg" = "X$p"; then
12364 enable_fast_install=yes
12371 enable_fast_install=yes
12375 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12376 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12377 if test "${lt_cv_path_SED+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 # Loop through the user's path and test for sed and gsed.
12381 # Then use that list of sed's as ones to test for truncation.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12386 test -z "$as_dir" && as_dir=.
12387 for lt_ac_prog in sed gsed; do
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12390 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12397 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12398 # along with /bin/sed that truncates output.
12399 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12400 test ! -f $lt_ac_sed && continue
12401 cat /dev/null > conftest.in
12403 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12404 # Check for GNU sed and select it if it is found.
12405 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12406 lt_cv_path_SED=$lt_ac_sed
12410 cat conftest.in conftest.in >conftest.tmp
12411 mv conftest.tmp conftest.in
12412 cp conftest.in conftest.nl
12414 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12415 cmp -s conftest.out conftest.nl || break
12416 # 10000 chars as input seems more than enough
12417 test $lt_ac_count -gt 10 && break
12418 lt_ac_count=`expr $lt_ac_count + 1`
12419 if test $lt_ac_count -gt $lt_ac_max; then
12420 lt_ac_max=$lt_ac_count
12421 lt_cv_path_SED=$lt_ac_sed
12428 SED=$lt_cv_path_SED
12429 { echo "$as_me:$LINENO: result: $SED" >&5
12430 echo "${ECHO_T}$SED" >&6; }
12433 # Check whether --with-gnu-ld was given.
12434 if test "${with_gnu_ld+set}" = set; then
12435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12441 if test "$GCC" = yes; then
12442 # Check if gcc -print-prog-name=ld gives a path.
12443 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12444 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12447 # gcc leaves a trailing carriage return which upsets mingw
12448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12453 # Accept absolute paths.
12455 re_direlt='/[^/][^/]*/\.\./'
12456 # Canonicalize the pathname of ld
12457 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12459 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12461 test -z "$LD" && LD="$ac_prog"
12464 # If it fails, then pretend we aren't using GCC.
12468 # If it is relative, then search for the first ld in PATH.
12469 with_gnu_ld=unknown
12472 elif test "$with_gnu_ld" = yes; then
12473 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12476 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12479 if test "${lt_cv_path_LD+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 if test -z "$LD"; then
12483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12484 for ac_dir in $PATH; do
12486 test -z "$ac_dir" && ac_dir=.
12487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12488 lt_cv_path_LD="$ac_dir/$ac_prog"
12489 # Check to see if the program is GNU ld. I'd rather use --version,
12490 # but apparently some variants of GNU ld only accept -v.
12491 # Break only if it was the GNU/non-GNU ld that we prefer.
12492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12493 *GNU* | *'with BFD'*)
12494 test "$with_gnu_ld" != no && break
12497 test "$with_gnu_ld" != yes && break
12504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12508 LD="$lt_cv_path_LD"
12509 if test -n "$LD"; then
12510 { echo "$as_me:$LINENO: result: $LD" >&5
12511 echo "${ECHO_T}$LD" >&6; }
12513 { echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6; }
12516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12518 { (exit 1); exit 1; }; }
12519 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12525 case `$LD -v 2>&1 </dev/null` in
12526 *GNU* | *'with BFD'*)
12527 lt_cv_prog_gnu_ld=yes
12530 lt_cv_prog_gnu_ld=no
12534 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12535 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12536 with_gnu_ld=$lt_cv_prog_gnu_ld
12539 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12540 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12541 if test "${lt_cv_ld_reload_flag+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 lt_cv_ld_reload_flag='-r'
12546 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12547 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12548 reload_flag=$lt_cv_ld_reload_flag
12549 case $reload_flag in
12551 *) reload_flag=" $reload_flag" ;;
12553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12556 if test "$GCC" = yes; then
12557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12564 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12565 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12566 if test "${lt_cv_deplibs_check_method+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 lt_cv_file_magic_cmd='$MAGIC_CMD'
12570 lt_cv_file_magic_test_file=
12571 lt_cv_deplibs_check_method='unknown'
12572 # Need to set the preceding variable on all platforms that support
12573 # interlibrary dependencies.
12574 # 'none' -- dependencies not supported.
12575 # `unknown' -- same as none, but documents that we really don't know.
12576 # 'pass_all' -- all dependencies passed with no checks.
12577 # 'test_compile' -- check by making test program.
12578 # 'file_magic [[regex]]' -- check by looking for files in library path
12579 # which responds to the $file_magic_cmd with a given extended regex.
12580 # If you have `file' or equivalent on your system and you're not sure
12581 # whether `pass_all' will *always* work, you probably want this one.
12585 lt_cv_deplibs_check_method=pass_all
12589 lt_cv_deplibs_check_method=pass_all
12593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12594 lt_cv_file_magic_cmd='/usr/bin/file -L'
12595 lt_cv_file_magic_test_file=/shlib/libc.so
12599 # func_win32_libid is a shell function defined in ltmain.sh
12600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12601 lt_cv_file_magic_cmd='func_win32_libid'
12605 # Base MSYS/MinGW do not provide the 'file' command needed by
12606 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12608 lt_cv_file_magic_cmd='$OBJDUMP -f'
12611 darwin* | rhapsody*)
12612 lt_cv_deplibs_check_method=pass_all
12615 freebsd* | kfreebsd*-gnu | dragonfly*)
12616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12619 # Not sure whether the presence of OpenBSD here was a mistake.
12620 # Let's accept both of them until this is cleared up.
12621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12622 lt_cv_file_magic_cmd=/usr/bin/file
12623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12627 lt_cv_deplibs_check_method=pass_all
12632 lt_cv_deplibs_check_method=pass_all
12635 hpux10.20* | hpux11*)
12636 lt_cv_file_magic_cmd=/usr/bin/file
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12643 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]'
12644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12658 irix5* | irix6* | nonstopux*)
12660 *-32|*"-32 ") libmagic=32-bit;;
12661 *-n32|*"-n32 ") libmagic=N32;;
12662 *-64|*"-64 ") libmagic=64-bit;;
12663 *) libmagic=never-match;;
12665 lt_cv_deplibs_check_method=pass_all
12668 # This must be Linux ELF.
12670 lt_cv_deplibs_check_method=pass_all
12674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12683 lt_cv_file_magic_cmd=/usr/bin/file
12684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12688 lt_cv_deplibs_check_method=unknown
12692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12699 osf3* | osf4* | osf5*)
12700 lt_cv_deplibs_check_method=pass_all
12704 lt_cv_deplibs_check_method=pass_all
12708 case $host_vendor in
12710 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]'
12711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12714 lt_cv_deplibs_check_method=pass_all
12717 lt_cv_file_magic_cmd='/bin/file'
12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12721 lt_cv_file_magic_cmd='/bin/file'
12722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723 lt_cv_file_magic_test_file=/lib/libc.so
12726 lt_cv_deplibs_check_method=pass_all
12729 lt_cv_deplibs_check_method=pass_all
12734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12735 lt_cv_deplibs_check_method=pass_all
12740 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12741 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12742 file_magic_cmd=$lt_cv_file_magic_cmd
12743 deplibs_check_method=$lt_cv_deplibs_check_method
12744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12748 # If no C compiler was specified, use CC.
12751 # If no C compiler flags were specified, use CFLAGS.
12752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12754 # Allow CC to be a program name with arguments.
12757 # Check whether --enable-libtool-lock was given.
12758 if test "${enable_libtool_lock+set}" = set; then
12759 enableval=$enable_libtool_lock;
12762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12764 # Some flags need to be propagated to the compiler or linker for good
12768 # Find out which ABI we are using.
12769 echo 'int i;' > conftest.$ac_ext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12777 HPUX_IA64_MODE="32"
12780 HPUX_IA64_MODE="64"
12787 # Find out which ABI we are using.
12788 echo '#line 12788 "configure"' > conftest.$ac_ext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790 (eval $ac_compile) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; then
12794 if test "$lt_cv_prog_gnu_ld" = yes; then
12795 case `/usr/bin/file conftest.$ac_objext` in
12797 LD="${LD-ld} -melf32bsmip"
12800 LD="${LD-ld} -melf32bmipn32"
12803 LD="${LD-ld} -melf64bmip"
12807 case `/usr/bin/file conftest.$ac_objext` in
12823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12824 # Find out which ABI we are using.
12825 echo 'int i;' > conftest.$ac_ext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; then
12831 case `/usr/bin/file conftest.o` in
12835 LD="${LD-ld} -m elf_i386"
12837 ppc64-*linux*|powerpc64-*linux*)
12838 LD="${LD-ld} -m elf32ppclinux"
12841 LD="${LD-ld} -m elf_s390"
12844 LD="${LD-ld} -m elf32_sparc"
12851 LD="${LD-ld} -m elf_x86_64"
12853 ppc*-*linux*|powerpc*-*linux*)
12854 LD="${LD-ld} -m elf64ppc"
12857 LD="${LD-ld} -m elf64_s390"
12860 LD="${LD-ld} -m elf64_sparc"
12870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12871 SAVE_CFLAGS="$CFLAGS"
12872 CFLAGS="$CFLAGS -belf"
12873 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12875 if test "${lt_cv_cc_needs_belf+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 ac_cpp='$CPP $CPPFLAGS'
12880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12914 { (case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_try") 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 lt_cv_cc_needs_belf=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 lt_cv_cc_needs_belf=no
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12944 ac_cpp='$CPP $CPPFLAGS'
12945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12950 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12951 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12954 CFLAGS="$SAVE_CFLAGS"
12958 # Find out which ABI we are using.
12959 echo 'int i;' > conftest.$ac_ext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; then
12965 case `/usr/bin/file conftest.o` in
12967 case $lt_cv_prog_gnu_ld in
12968 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12969 *) LD="${LD-ld} -64" ;;
12980 need_locks="$enable_libtool_lock"
12985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12986 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12987 (test "X$CXX" != "Xg++"))) ; then
12989 ac_cpp='$CXXCPP $CPPFLAGS'
12990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12993 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12994 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12995 if test -z "$CXXCPP"; then
12996 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 # Double quotes because CXXCPP needs to be expanded
13000 for CXXCPP in "$CXX -E" "/lib/cpp"
13002 ac_preproc_ok=false
13003 for ac_cxx_preproc_warn_flag in '' yes
13005 # Use a header file that comes with gcc, so configuring glibc
13006 # with a fresh cross-compiler works.
13007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13008 # <limits.h> exists even on freestanding compilers.
13009 # On the NeXT, cc -E runs the code through the compiler's parser,
13010 # not just through cpp. "Syntax error" is here to catch this case.
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 # include <limits.h>
13020 # include <assert.h>
13024 if { (ac_try="$ac_cpp conftest.$ac_ext"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_cxx_preproc_warn_flag
13039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13046 if test -z "$ac_cpp_err"; then
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 # Broken: fails on valid input.
13056 rm -f conftest.err conftest.$ac_ext
13058 # OK, works on sane cases. Now check whether nonexistent headers
13059 # can be detected and how.
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 #include <ac_nonexistent.h>
13068 if { (ac_try="$ac_cpp conftest.$ac_ext"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_cxx_preproc_warn_flag
13083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13090 if test -z "$ac_cpp_err"; then
13091 # Broken: success on invalid input.
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 # Passes both tests.
13102 rm -f conftest.err conftest.$ac_ext
13105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13106 rm -f conftest.err conftest.$ac_ext
13107 if $ac_preproc_ok; then
13112 ac_cv_prog_CXXCPP=$CXXCPP
13115 CXXCPP=$ac_cv_prog_CXXCPP
13117 ac_cv_prog_CXXCPP=$CXXCPP
13119 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13120 echo "${ECHO_T}$CXXCPP" >&6; }
13121 ac_preproc_ok=false
13122 for ac_cxx_preproc_warn_flag in '' yes
13124 # Use a header file that comes with gcc, so configuring glibc
13125 # with a fresh cross-compiler works.
13126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127 # <limits.h> exists even on freestanding compilers.
13128 # On the NeXT, cc -E runs the code through the compiler's parser,
13129 # not just through cpp. "Syntax error" is here to catch this case.
13130 cat >conftest.$ac_ext <<_ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 # include <limits.h>
13139 # include <assert.h>
13143 if { (ac_try="$ac_cpp conftest.$ac_ext"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13151 grep -v '^ *+' conftest.er1 >conftest.err
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } >/dev/null; then
13156 if test -s conftest.err; then
13157 ac_cpp_err=$ac_cxx_preproc_warn_flag
13158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13165 if test -z "$ac_cpp_err"; then
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13171 # Broken: fails on valid input.
13175 rm -f conftest.err conftest.$ac_ext
13177 # OK, works on sane cases. Now check whether nonexistent headers
13178 # can be detected and how.
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 #include <ac_nonexistent.h>
13187 if { (ac_try="$ac_cpp conftest.$ac_ext"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } >/dev/null; then
13200 if test -s conftest.err; then
13201 ac_cpp_err=$ac_cxx_preproc_warn_flag
13202 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13209 if test -z "$ac_cpp_err"; then
13210 # Broken: success on invalid input.
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 # Passes both tests.
13221 rm -f conftest.err conftest.$ac_ext
13224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13225 rm -f conftest.err conftest.$ac_ext
13226 if $ac_preproc_ok; then
13229 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230 See \`config.log' for more details." >&5
13231 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13232 See \`config.log' for more details." >&2;}
13233 { (exit 1); exit 1; }; }
13237 ac_cpp='$CXXCPP $CPPFLAGS'
13238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13249 if test -n "$ac_tool_prefix"; then
13250 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
13252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13256 if test "${ac_cv_prog_F77+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 if test -n "$F77"; then
13260 ac_cv_prog_F77="$F77" # Let the user override the test.
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 F77=$ac_cv_prog_F77
13280 if test -n "$F77"; then
13281 { echo "$as_me:$LINENO: result: $F77" >&5
13282 echo "${ECHO_T}$F77" >&6; }
13284 { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13289 test -n "$F77" && break
13292 if test -z "$F77"; then
13294 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
13296 # Extract the first word of "$ac_prog", so it can be a program name with args.
13297 set dummy $ac_prog; ac_word=$2
13298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13300 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 if test -n "$ac_ct_F77"; then
13304 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
13312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13313 ac_cv_prog_ac_ct_F77="$ac_prog"
13314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13324 if test -n "$ac_ct_F77"; then
13325 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13326 echo "${ECHO_T}$ac_ct_F77" >&6; }
13328 { echo "$as_me:$LINENO: result: no" >&5
13329 echo "${ECHO_T}no" >&6; }
13333 test -n "$ac_ct_F77" && break
13336 if test "x$ac_ct_F77" = x; then
13339 case $cross_compiling:$ac_tool_warned in
13341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13342 whose name does not start with the host triplet. If you think this
13343 configuration is useful to you, please write to autoconf@gnu.org." >&5
13344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13345 whose name does not start with the host triplet. If you think this
13346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13347 ac_tool_warned=yes ;;
13354 # Provide some information about the compiler.
13355 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13356 ac_compiler=`set X $ac_compile; echo $2`
13357 { (ac_try="$ac_compiler --version >&5"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compiler --version >&5") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }
13367 { (ac_try="$ac_compiler -v >&5"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compiler -v >&5") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }
13377 { (ac_try="$ac_compiler -V >&5"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_compiler -V >&5") 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }
13389 # If we don't use `.F' as extension, the preprocessor is not run on the
13390 # input file. (Note that this only needs to work for GNU compilers.)
13391 ac_save_ext=$ac_ext
13393 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13394 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13395 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 cat >conftest.$ac_ext <<_ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_compiler_gnu=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13452 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13453 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13454 ac_ext=$ac_save_ext
13455 ac_test_FFLAGS=${FFLAGS+set}
13456 ac_save_FFLAGS=$FFLAGS
13458 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13459 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13460 if test "${ac_cv_prog_f77_g+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 cat >conftest.$ac_ext <<_ACEOF
13469 rm -f conftest.$ac_objext
13470 if { (ac_try="$ac_compile"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_compile") 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_prog_f77_g=yes
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_prog_f77_g=no
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13515 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13516 if test "$ac_test_FFLAGS" = set; then
13517 FFLAGS=$ac_save_FFLAGS
13518 elif test $ac_cv_prog_f77_g = yes; then
13519 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13525 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13532 G77=`test $ac_compiler_gnu = yes && echo yes`
13534 ac_cpp='$CPP $CPPFLAGS'
13535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13541 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13543 # find the maximum length of command line arguments
13544 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13545 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13546 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 # On DJGPP, this test can blow up pretty badly due to problems in libc
13555 # (any single argument exceeding 2000 bytes causes a buffer overrun
13556 # during glob expansion). Even if it were fixed, the result of this
13557 # check would be larger than it should be.
13558 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13562 # Under GNU Hurd, this test is not required because there is
13563 # no limit to the length of command line arguments.
13564 # Libtool will interpret -1 as no limit whatsoever
13565 lt_cv_sys_max_cmd_len=-1;
13569 # On Win9x/ME, this test blows up -- it succeeds, but takes
13570 # about 5 minutes as the teststring grows exponentially.
13571 # Worse, since 9x/ME are not pre-emptively multitasking,
13572 # you end up with a "frozen" computer, even though with patience
13573 # the test eventually succeeds (with a max line length of 256k).
13574 # Instead, let's just punt: use the minimum linelength reported by
13575 # all of the supported platforms: 8192 (on NT/2K/XP).
13576 lt_cv_sys_max_cmd_len=8192;
13580 # On AmigaOS with pdksh, this test takes hours, literally.
13581 # So we just punt and use a minimum line length of 8192.
13582 lt_cv_sys_max_cmd_len=8192;
13585 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13586 # This has been around since 386BSD, at least. Likely further.
13587 if test -x /sbin/sysctl; then
13588 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13589 elif test -x /usr/sbin/sysctl; then
13590 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13592 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13594 # And add a safety zone
13595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13600 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13601 lt_cv_sys_max_cmd_len=196608
13605 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13606 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13607 # nice to cause kernel panics so lets avoid the loop below.
13608 # First set a reasonable default.
13609 lt_cv_sys_max_cmd_len=16384
13611 if test -x /sbin/sysconfig; then
13612 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13613 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13618 lt_cv_sys_max_cmd_len=102400
13620 sysv5* | sco5v6* | sysv4.2uw2*)
13621 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13622 if test -n "$kargmax"; then
13623 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13625 lt_cv_sys_max_cmd_len=32768
13629 # If test is not a shell built-in, we'll probably end up computing a
13630 # maximum length that is only half of the actual maximum length, but
13632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13633 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13634 = "XX$teststring") >/dev/null 2>&1 &&
13635 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13636 lt_cv_sys_max_cmd_len=$new_result &&
13637 test $i != 17 # 1/2 MB should be enough
13640 teststring=$teststring$teststring
13643 # Add a significant safety factor because C++ compilers can tack on massive
13644 # amounts of additional arguments before passing them to the linker.
13645 # It appears as though 1/2 is a usable value.
13646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13652 if test -n $lt_cv_sys_max_cmd_len ; then
13653 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13654 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13656 { echo "$as_me:$LINENO: result: none" >&5
13657 echo "${ECHO_T}none" >&6; }
13663 # Check for command to grab the raw symbol name followed by C symbol from nm.
13664 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13665 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13666 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 # These are sane defaults that work on at least a few old systems.
13671 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13673 # Character class describing NM global symbol codes.
13674 symcode='[BCDEGRST]'
13676 # Regexp to match symbols that can be accessed directly from C.
13677 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13679 # Transform an extracted symbol line into a proper C declaration
13680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13682 # Transform an extracted symbol line into symbol name and symbol address
13683 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'"
13685 # Define system-specific variables.
13690 cygwin* | mingw* | pw32*)
13691 symcode='[ABCDGISTW]'
13693 hpux*) # Its linker distinguishes data from code symbols
13694 if test "$host_cpu" = ia64; then
13695 symcode='[ABCDEGRST]'
13697 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13698 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'"
13701 if test "$host_cpu" = ia64; then
13702 symcode='[ABCDGIRSTW]'
13703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13704 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'"
13707 irix* | nonstopux*)
13708 symcode='[BCDEGRST]'
13711 symcode='[BCDEGQRST]'
13722 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13730 # Handle CRLF in mingw tool chain
13734 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13738 # If we're using GNU nm, then use its standard symbol codes.
13739 case `$NM -V 2>&1` in
13740 *GNU* | *'with BFD'*)
13741 symcode='[ABCDGIRSTW]' ;;
13744 # Try without a prefix undercore, then with it.
13745 for ac_symprfx in "" "_"; do
13747 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13748 symxfrm="\\1 $ac_symprfx\\2 \\2"
13750 # Write the raw and C identifiers.
13751 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13753 # Check to see that the pipe works correctly.
13757 cat > conftest.$ac_ext <<EOF
13762 void nm_test_func(){}
13766 int main(){nm_test_var='a';nm_test_func();return(0);}
13769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; then
13774 # Now try to grab the symbols.
13776 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13777 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && test -s "$nlist"; then
13781 # Try sorting and uniquifying the output.
13782 if sort "$nlist" | uniq > "$nlist"T; then
13783 mv -f "$nlist"T "$nlist"
13788 # Make sure that we snagged all the symbols we need.
13789 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13790 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13791 cat <<EOF > conftest.$ac_ext
13797 # Now generate the symbol file.
13798 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13800 cat <<EOF >> conftest.$ac_ext
13801 #if defined (__STDC__) && __STDC__
13802 # define lt_ptr_t void *
13804 # define lt_ptr_t char *
13808 /* The mapping between symbol names and symbols. */
13813 lt_preloaded_symbols[] =
13816 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13817 cat <<\EOF >> conftest.$ac_ext
13825 # Now try linking the two files.
13826 mv conftest.$ac_objext conftstm.$ac_objext
13827 lt_save_LIBS="$LIBS"
13828 lt_save_CFLAGS="$CFLAGS"
13829 LIBS="conftstm.$ac_objext"
13830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13838 LIBS="$lt_save_LIBS"
13839 CFLAGS="$lt_save_CFLAGS"
13841 echo "cannot find nm_test_func in $nlist" >&5
13844 echo "cannot find nm_test_var in $nlist" >&5
13847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13850 echo "$progname: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13853 rm -f conftest* conftst*
13855 # Do not use the global_symbol_pipe unless it works.
13856 if test "$pipe_works" = yes; then
13859 lt_cv_sys_global_symbol_pipe=
13865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13866 lt_cv_sys_global_symbol_to_cdecl=
13868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13869 { echo "$as_me:$LINENO: result: failed" >&5
13870 echo "${ECHO_T}failed" >&6; }
13872 { echo "$as_me:$LINENO: result: ok" >&5
13873 echo "${ECHO_T}ok" >&6; }
13876 { echo "$as_me:$LINENO: checking for objdir" >&5
13877 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13878 if test "${lt_cv_objdir+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 rm -f .libs 2>/dev/null
13882 mkdir .libs 2>/dev/null
13883 if test -d .libs; then
13886 # MS-DOS does not allow filenames that begin with a dot.
13889 rmdir .libs 2>/dev/null
13891 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13892 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13893 objdir=$lt_cv_objdir
13901 # AIX sometimes has problems with the GCC collect2 program. For some
13902 # reason, if we set the COLLECT_NAMES environment variable, the problems
13903 # vanish in a puff of smoke.
13904 if test "X${COLLECT_NAMES+set}" != Xset; then
13906 export COLLECT_NAMES
13911 # Sed substitution that helps us do robust quoting. It backslashifies
13912 # metacharacters that are still active within double-quoted strings.
13913 Xsed='sed -e 1s/^X//'
13914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13916 # Same as above, but do not quote variable references.
13917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13919 # Sed substitution to delay expansion of an escaped shell variable in a
13920 # double_quote_subst'ed string.
13921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13923 # Sed substitution to avoid accidental globbing in evaled expressions
13924 no_glob_subst='s/\*/\\\*/g'
13929 # Global variables:
13930 default_ofile=mklib
13931 can_build_shared=yes
13933 # All known linkers require a `.a' archive for static linking (except MSVC,
13934 # which needs '.lib').
13936 ltmain="$ac_aux_dir/ltmain.sh"
13937 ofile="$default_ofile"
13938 with_gnu_ld="$lt_cv_prog_gnu_ld"
13940 if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13942 set dummy ${ac_tool_prefix}ar; ac_word=$2
13943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13945 if test "${ac_cv_prog_AR+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 if test -n "$AR"; then
13949 ac_cv_prog_AR="$AR" # Let the user override the test.
13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13958 ac_cv_prog_AR="${ac_tool_prefix}ar"
13959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969 if test -n "$AR"; then
13970 { echo "$as_me:$LINENO: result: $AR" >&5
13971 echo "${ECHO_T}$AR" >&6; }
13973 { echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6; }
13979 if test -z "$ac_cv_prog_AR"; then
13981 # Extract the first word of "ar", so it can be a program name with args.
13982 set dummy ar; ac_word=$2
13983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 if test -n "$ac_ct_AR"; then
13989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_ac_ct_AR="ar"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14009 if test -n "$ac_ct_AR"; then
14010 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14011 echo "${ECHO_T}$ac_ct_AR" >&6; }
14013 { echo "$as_me:$LINENO: result: no" >&5
14014 echo "${ECHO_T}no" >&6; }
14017 if test "x$ac_ct_AR" = x; then
14020 case $cross_compiling:$ac_tool_warned in
14022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023 whose name does not start with the host triplet. If you think this
14024 configuration is useful to you, please write to autoconf@gnu.org." >&5
14025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026 whose name does not start with the host triplet. If you think this
14027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028 ac_tool_warned=yes ;;
14033 AR="$ac_cv_prog_AR"
14036 if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041 if test "${ac_cv_prog_RANLIB+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 if test -n "$RANLIB"; then
14045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 RANLIB=$ac_cv_prog_RANLIB
14065 if test -n "$RANLIB"; then
14066 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14067 echo "${ECHO_T}$RANLIB" >&6; }
14069 { echo "$as_me:$LINENO: result: no" >&5
14070 echo "${ECHO_T}no" >&6; }
14075 if test -z "$ac_cv_prog_RANLIB"; then
14076 ac_ct_RANLIB=$RANLIB
14077 # Extract the first word of "ranlib", so it can be a program name with args.
14078 set dummy ranlib; ac_word=$2
14079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 if test -n "$ac_ct_RANLIB"; then
14085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094 ac_cv_prog_ac_ct_RANLIB="ranlib"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14105 if test -n "$ac_ct_RANLIB"; then
14106 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14107 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14109 { echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6; }
14113 if test "x$ac_ct_RANLIB" = x; then
14116 case $cross_compiling:$ac_tool_warned in
14118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119 whose name does not start with the host triplet. If you think this
14120 configuration is useful to you, please write to autoconf@gnu.org." >&5
14121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122 whose name does not start with the host triplet. If you think this
14123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124 ac_tool_warned=yes ;;
14126 RANLIB=$ac_ct_RANLIB
14129 RANLIB="$ac_cv_prog_RANLIB"
14132 if test -n "$ac_tool_prefix"; then
14133 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14134 set dummy ${ac_tool_prefix}strip; ac_word=$2
14135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14137 if test "${ac_cv_prog_STRIP+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 if test -n "$STRIP"; then
14141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 STRIP=$ac_cv_prog_STRIP
14161 if test -n "$STRIP"; then
14162 { echo "$as_me:$LINENO: result: $STRIP" >&5
14163 echo "${ECHO_T}$STRIP" >&6; }
14165 { echo "$as_me:$LINENO: result: no" >&5
14166 echo "${ECHO_T}no" >&6; }
14171 if test -z "$ac_cv_prog_STRIP"; then
14173 # Extract the first word of "strip", so it can be a program name with args.
14174 set dummy strip; ac_word=$2
14175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 if test -n "$ac_ct_STRIP"; then
14181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_prog_ac_ct_STRIP="strip"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14201 if test -n "$ac_ct_STRIP"; then
14202 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14203 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14205 { echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6; }
14209 if test "x$ac_ct_STRIP" = x; then
14212 case $cross_compiling:$ac_tool_warned in
14214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14215 whose name does not start with the host triplet. If you think this
14216 configuration is useful to you, please write to autoconf@gnu.org." >&5
14217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14218 whose name does not start with the host triplet. If you think this
14219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14220 ac_tool_warned=yes ;;
14225 STRIP="$ac_cv_prog_STRIP"
14230 old_CFLAGS="$CFLAGS"
14232 # Set sane defaults for various variables
14233 test -z "$AR" && AR=ar
14234 test -z "$AR_FLAGS" && AR_FLAGS=cru
14235 test -z "$AS" && AS=as
14236 test -z "$CC" && CC=cc
14237 test -z "$LTCC" && LTCC=$CC
14238 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14239 test -z "$DLLTOOL" && DLLTOOL=dlltool
14240 test -z "$LD" && LD=ld
14241 test -z "$LN_S" && LN_S="ln -s"
14242 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14243 test -z "$NM" && NM=nm
14244 test -z "$SED" && SED=sed
14245 test -z "$OBJDUMP" && OBJDUMP=objdump
14246 test -z "$RANLIB" && RANLIB=:
14247 test -z "$STRIP" && STRIP=:
14248 test -z "$ac_objext" && ac_objext=o
14250 # Determine commands to create old-style static archives.
14251 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14252 old_postinstall_cmds='chmod 644 $oldlib'
14253 old_postuninstall_cmds=
14255 if test -n "$RANLIB"; then
14258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14264 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14267 for cc_temp in $compiler""; do
14269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14278 # Only perform the check for file, if the check method requires it
14279 case $deplibs_check_method in
14281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14282 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14283 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14292 lt_save_MAGIC_CMD="$MAGIC_CMD"
14293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14295 for ac_dir in $ac_dummy; do
14297 test -z "$ac_dir" && ac_dir=.
14298 if test -f $ac_dir/${ac_tool_prefix}file; then
14299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14300 if test -n "$file_magic_test_file"; then
14301 case $deplibs_check_method in
14303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14306 $EGREP "$file_magic_regex" > /dev/null; then
14311 *** Warning: the command libtool uses to detect shared libraries,
14312 *** $file_magic_cmd, produces output that libtool cannot recognize.
14313 *** The result is that libtool may fail to recognize shared libraries
14314 *** as such. This will affect the creation of libtool libraries that
14315 *** depend on shared libraries, but programs linked with such libtool
14316 *** libraries will work regardless of this problem. Nevertheless, you
14317 *** may want to report the problem to your system manager and/or to
14318 *** bug-libtool@gnu.org
14328 MAGIC_CMD="$lt_save_MAGIC_CMD"
14333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14334 if test -n "$MAGIC_CMD"; then
14335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14338 { echo "$as_me:$LINENO: result: no" >&5
14339 echo "${ECHO_T}no" >&6; }
14342 if test -z "$lt_cv_path_MAGIC_CMD"; then
14343 if test -n "$ac_tool_prefix"; then
14344 { echo "$as_me:$LINENO: checking for file" >&5
14345 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14354 lt_save_MAGIC_CMD="$MAGIC_CMD"
14355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14357 for ac_dir in $ac_dummy; do
14359 test -z "$ac_dir" && ac_dir=.
14360 if test -f $ac_dir/file; then
14361 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14362 if test -n "$file_magic_test_file"; then
14363 case $deplibs_check_method in
14365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14368 $EGREP "$file_magic_regex" > /dev/null; then
14373 *** Warning: the command libtool uses to detect shared libraries,
14374 *** $file_magic_cmd, produces output that libtool cannot recognize.
14375 *** The result is that libtool may fail to recognize shared libraries
14376 *** as such. This will affect the creation of libtool libraries that
14377 *** depend on shared libraries, but programs linked with such libtool
14378 *** libraries will work regardless of this problem. Nevertheless, you
14379 *** may want to report the problem to your system manager and/or to
14380 *** bug-libtool@gnu.org
14390 MAGIC_CMD="$lt_save_MAGIC_CMD"
14395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14396 if test -n "$MAGIC_CMD"; then
14397 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14398 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14400 { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14414 enable_win32_dll=no
14416 # Check whether --enable-libtool-lock was given.
14417 if test "${enable_libtool_lock+set}" = set; then
14418 enableval=$enable_libtool_lock;
14421 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14424 # Check whether --with-pic was given.
14425 if test "${with_pic+set}" = set; then
14426 withval=$with_pic; pic_mode="$withval"
14431 test -z "$pic_mode" && pic_mode=default
14433 # Use C for the default configuration in the libtool script
14437 ac_cpp='$CPP $CPPFLAGS'
14438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14443 # Source file extension for C test sources.
14446 # Object file extension for compiled C test sources.
14450 # Code to be used in simple compile tests
14451 lt_simple_compile_test_code="int some_variable = 0;\n"
14453 # Code to be used in simple link tests
14454 lt_simple_link_test_code='int main(){return(0);}\n'
14457 # If no C compiler was specified, use CC.
14460 # If no C compiler flags were specified, use CFLAGS.
14461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14463 # Allow CC to be a program name with arguments.
14467 # save warnings/boilerplate of simple test code
14468 ac_outfile=conftest.$ac_objext
14469 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14471 _lt_compiler_boilerplate=`cat conftest.err`
14474 ac_outfile=conftest.$ac_objext
14475 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14477 _lt_linker_boilerplate=`cat conftest.err`
14482 lt_prog_compiler_no_builtin_flag=
14484 if test "$GCC" = yes; then
14485 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14488 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14489 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 lt_cv_prog_compiler_rtti_exceptions=no
14494 ac_outfile=conftest.$ac_objext
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 lt_compiler_flag="-fno-rtti -fno-exceptions"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 # The option is referenced via a variable to avoid confusing sed.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507 (eval "$lt_compile" 2>conftest.err)
14509 cat conftest.err >&5
14510 echo "$as_me:14510: \$? = $ac_status" >&5
14511 if (exit $ac_status) && test -s "$ac_outfile"; then
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings other than the usual output.
14514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_rtti_exceptions=yes
14523 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14524 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14534 lt_prog_compiler_wl=
14535 lt_prog_compiler_pic=
14536 lt_prog_compiler_static=
14538 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14539 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14541 if test "$GCC" = yes; then
14542 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_static='-static'
14547 # All AIX code is PIC.
14548 if test "$host_cpu" = ia64; then
14549 # AIX 5 now supports IA64 processor
14550 lt_prog_compiler_static='-Bstatic'
14555 # FIXME: we need at least 68020 code to build shared libraries, but
14556 # adding the `-m68020' flag to GCC prevents building anything better,
14558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14561 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14562 # PIC is the default for these OSes.
14565 mingw* | pw32* | os2*)
14566 # This hack is so that the source file can tell whether it is being
14567 # built for inclusion in a dll (and should export symbols for example).
14568 lt_prog_compiler_pic='-DDLL_EXPORT'
14571 darwin* | rhapsody*)
14572 # PIC is the default on this platform
14573 # Common symbols not allowed in MH_DYLIB files
14574 lt_prog_compiler_pic='-fno-common'
14578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14579 # Instead, we relocate shared libraries at runtime.
14583 # Just because we use GCC doesn't mean we suddenly get shared libraries
14584 # on systems that don't support them.
14585 lt_prog_compiler_can_build_shared=no
14590 if test -d /usr/nec; then
14591 lt_prog_compiler_pic=-Kconform_pic
14596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597 # not for PA HP-UX.
14603 lt_prog_compiler_pic='-fPIC'
14609 lt_prog_compiler_pic='-fPIC'
14613 # PORTME Check for flag to pass linker flags through the system compiler.
14616 lt_prog_compiler_wl='-Wl,'
14617 if test "$host_cpu" = ia64; then
14618 # AIX 5 now supports IA64 processor
14619 lt_prog_compiler_static='-Bstatic'
14621 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14625 # PIC is the default on this platform
14626 # Common symbols not allowed in MH_DYLIB files
14627 case $cc_basename in
14629 lt_prog_compiler_pic='-qnocommon'
14630 lt_prog_compiler_wl='-Wl,'
14635 mingw* | pw32* | os2*)
14636 # This hack is so that the source file can tell whether it is being
14637 # built for inclusion in a dll (and should export symbols for example).
14638 lt_prog_compiler_pic='-DDLL_EXPORT'
14641 hpux9* | hpux10* | hpux11*)
14642 lt_prog_compiler_wl='-Wl,'
14643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14644 # not for PA HP-UX.
14650 lt_prog_compiler_pic='+Z'
14653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14654 lt_prog_compiler_static='${wl}-a ${wl}archive'
14657 irix5* | irix6* | nonstopux*)
14658 lt_prog_compiler_wl='-Wl,'
14659 # PIC (with -KPIC) is the default.
14660 lt_prog_compiler_static='-non_shared'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14669 case $cc_basename in
14671 lt_prog_compiler_wl='-Wl,'
14672 lt_prog_compiler_pic='-KPIC'
14673 lt_prog_compiler_static='-static'
14675 pgcc* | pgf77* | pgf90* | pgf95*)
14676 # Portland Group compilers (*not* the Pentium gcc compiler,
14677 # which looks to be a dead project)
14678 lt_prog_compiler_wl='-Wl,'
14679 lt_prog_compiler_pic='-fpic'
14680 lt_prog_compiler_static='-Bstatic'
14683 lt_prog_compiler_wl='-Wl,'
14684 # All Alpha code is PIC.
14685 lt_prog_compiler_static='-non_shared'
14690 osf3* | osf4* | osf5*)
14691 lt_prog_compiler_wl='-Wl,'
14692 # All OSF/1 code is PIC.
14693 lt_prog_compiler_static='-non_shared'
14697 lt_prog_compiler_pic='-KPIC'
14698 lt_prog_compiler_static='-Bstatic'
14699 case $cc_basename in
14700 f77* | f90* | f95*)
14701 lt_prog_compiler_wl='-Qoption ld ';;
14703 lt_prog_compiler_wl='-Wl,';;
14708 lt_prog_compiler_wl='-Qoption ld '
14709 lt_prog_compiler_pic='-PIC'
14710 lt_prog_compiler_static='-Bstatic'
14713 sysv4 | sysv4.2uw2* | sysv4.3*)
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_pic='-KPIC'
14716 lt_prog_compiler_static='-Bstatic'
14720 if test -d /usr/nec ;then
14721 lt_prog_compiler_pic='-Kconform_pic'
14722 lt_prog_compiler_static='-Bstatic'
14726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14727 lt_prog_compiler_wl='-Wl,'
14728 lt_prog_compiler_pic='-KPIC'
14729 lt_prog_compiler_static='-Bstatic'
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_can_build_shared=no
14738 lt_prog_compiler_pic='-pic'
14739 lt_prog_compiler_static='-Bstatic'
14743 lt_prog_compiler_can_build_shared=no
14748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14752 # Check to make sure the PIC flag actually works.
14754 if test -n "$lt_prog_compiler_pic"; then
14756 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14758 if test "${lt_prog_compiler_pic_works+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 lt_prog_compiler_pic_works=no
14762 ac_outfile=conftest.$ac_objext
14763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14765 # Insert the option either (1) after the last *FLAGS variable, or
14766 # (2) before a word containing "conftest.", or (3) at the end.
14767 # Note that $ac_compile itself does not contain backslashes and begins
14768 # with a dollar sign (not a hyphen), so the echo should work correctly.
14769 # The option is referenced via a variable to avoid confusing sed.
14770 lt_compile=`echo "$ac_compile" | $SED \
14771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773 -e 's:$: $lt_compiler_flag:'`
14774 (eval echo "\"\$as_me:14774: $lt_compile\"" >&5)
14775 (eval "$lt_compile" 2>conftest.err)
14777 cat conftest.err >&5
14778 echo "$as_me:14778: \$? = $ac_status" >&5
14779 if (exit $ac_status) && test -s "$ac_outfile"; then
14780 # The compiler can only warn and ignore the option if not recognized
14781 # So say no if there are warnings other than the usual output.
14782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14785 lt_prog_compiler_pic_works=yes
14791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14792 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14794 if test x"$lt_prog_compiler_pic_works" = xyes; then
14795 case $lt_prog_compiler_pic in
14797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14800 lt_prog_compiler_pic=
14801 lt_prog_compiler_can_build_shared=no
14806 # For platforms which do not support PIC, -DPIC is meaningless:
14808 lt_prog_compiler_pic=
14811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14816 # Check to make sure the static flag actually works.
14818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14821 if test "${lt_prog_compiler_static_works+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 lt_prog_compiler_static_works=no
14825 save_LDFLAGS="$LDFLAGS"
14826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14827 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14829 # The linker can only warn and ignore the option if not recognized
14830 # So say no if there are warnings
14831 if test -s conftest.err; then
14832 # Append any errors to the config.log.
14833 cat conftest.err 1>&5
14834 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836 if diff conftest.exp conftest.er2 >/dev/null; then
14837 lt_prog_compiler_static_works=yes
14840 lt_prog_compiler_static_works=yes
14844 LDFLAGS="$save_LDFLAGS"
14847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14848 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14850 if test x"$lt_prog_compiler_static_works" = xyes; then
14853 lt_prog_compiler_static=
14857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 lt_cv_prog_compiler_c_o=no
14863 $rm -r conftest 2>/dev/null
14867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14869 lt_compiler_flag="-o out/conftest2.$ac_objext"
14870 # Insert the option either (1) after the last *FLAGS variable, or
14871 # (2) before a word containing "conftest.", or (3) at the end.
14872 # Note that $ac_compile itself does not contain backslashes and begins
14873 # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
14878 (eval echo "\"\$as_me:14878: $lt_compile\"" >&5)
14879 (eval "$lt_compile" 2>out/conftest.err)
14881 cat out/conftest.err >&5
14882 echo "$as_me:14882: \$? = $ac_status" >&5
14883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14885 # The compiler can only warn and ignore the option if not recognized
14886 # So say no if there are warnings
14887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890 lt_cv_prog_compiler_c_o=yes
14895 # SGI C++ compiler will create directory out/ii_files/ for
14896 # template instantiation
14897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14898 $rm out/* && rmdir out
14904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14908 hard_links="nottested"
14909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14910 # do not overwrite the value of need_locks provided by the user
14911 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14917 ln conftest.a conftest.b 2>&5 || hard_links=no
14918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919 { echo "$as_me:$LINENO: result: $hard_links" >&5
14920 echo "${ECHO_T}$hard_links" >&6; }
14921 if test "$hard_links" = no; then
14922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14934 allow_undefined_flag=
14935 enable_shared_with_static_runtimes=no
14937 archive_expsym_cmds=
14938 old_archive_From_new_cmds=
14939 old_archive_from_expsyms_cmds=
14940 export_dynamic_flag_spec=
14941 whole_archive_flag_spec=
14942 thread_safe_flag_spec=
14943 hardcode_libdir_flag_spec=
14944 hardcode_libdir_flag_spec_ld=
14945 hardcode_libdir_separator=
14947 hardcode_minus_L=no
14948 hardcode_shlibpath_var=unsupported
14949 link_all_deplibs=unknown
14950 hardcode_automatic=no
14952 module_expsym_cmds=
14953 always_export_symbols=no
14954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14955 # include_expsyms should be a list of space-separated symbols to be *always*
14956 # included in the symbol list
14958 # exclude_expsyms can be an extended regexp of symbols to exclude
14959 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14960 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14961 # as well as any symbol that contains `d'.
14962 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14964 # platforms (ab)use it in PIC code, but their linkers get confused if
14965 # the symbol is explicitly referenced. Since portable code cannot
14966 # rely on this symbol name, it's probably fine to never include it in
14967 # preloaded symbol tables.
14968 extract_expsyms_cmds=
14969 # Just being paranoid about ensuring that cc_basename is set.
14970 for cc_temp in $compiler""; do
14972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14981 cygwin* | mingw* | pw32*)
14982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14983 # When not using gcc, we currently assume that we are using
14984 # Microsoft Visual C++.
14985 if test "$GCC" != yes; then
14990 # we just hope/assume this is gcc and not c89 (= MSVC++)
14999 if test "$with_gnu_ld" = yes; then
15000 # If archive_cmds runs LD, not CC, wlarc should be empty
15003 # Set some defaults for GNU ld with shared library support. These
15004 # are reset later if shared libraries are not supported. Putting them
15005 # here allows them to be overridden if necessary.
15006 runpath_var=LD_RUN_PATH
15007 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15008 export_dynamic_flag_spec='${wl}--export-dynamic'
15009 # ancient GNU ld didn't support --whole-archive et. al.
15010 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15011 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15013 whole_archive_flag_spec=
15015 supports_anon_versioning=no
15016 case `$LD -v 2>/dev/null` in
15017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15020 *\ 2.11.*) ;; # other 2.11 versions
15021 *) supports_anon_versioning=yes ;;
15024 # See if GNU ld supports shared libraries.
15026 aix3* | aix4* | aix5*)
15027 # On AIX/PPC, the GNU linker is very broken
15028 if test "$host_cpu" != ia64; then
15032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15033 *** to be unable to reliably create shared libraries on AIX.
15034 *** Therefore, libtool is disabling shared libraries support. If you
15035 *** really care for shared libraries, you may want to modify your PATH
15036 *** so that a non-GNU linker is found, and then restart.
15043 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)'
15044 hardcode_libdir_flag_spec='-L$libdir'
15045 hardcode_minus_L=yes
15047 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15048 # that the semantics of dynamic libraries on AmigaOS, at least up
15049 # to version 4, is to share data among multiple programs linked
15050 # with the same dynamic library. Since this doesn't match the
15051 # behavior of shared libraries on other platforms, we can't use
15057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15058 allow_undefined_flag=unsupported
15059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15060 # support --undefined. This deserves some investigation. FIXME
15061 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15067 cygwin* | mingw* | pw32*)
15068 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15069 # as there is no search path for DLLs.
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 allow_undefined_flag=unsupported
15072 always_export_symbols=no
15073 enable_shared_with_static_runtimes=yes
15074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15076 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15078 # If the export-symbols file already is a .def file (1st line
15079 # is EXPORTS), use it as is; otherwise, prepend...
15080 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15081 cp $export_symbols $output_objdir/$soname.def;
15083 echo EXPORTS > $output_objdir/$soname.def;
15084 cat $export_symbols >> $output_objdir/$soname.def;
15086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15094 hardcode_shlibpath_var=no
15095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15096 export_dynamic_flag_spec='${wl}-E'
15097 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15098 # Instead, shared libraries are loaded at an image base (0x10000000 by
15099 # default) and relocated if they conflict, which is a slow very memory
15100 # consuming and fragmenting process. To avoid this, we pick a random,
15101 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15102 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15104 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'
15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15110 case $cc_basename,$host_cpu in
15111 pgcc*) # Portland Group C compiler
15112 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'
15113 tmp_addflag=' $pic_flag'
15115 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15116 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'
15117 tmp_addflag=' $pic_flag -Mnomain' ;;
15118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15119 tmp_addflag=' -i_dynamic' ;;
15120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15121 tmp_addflag=' -i_dynamic -nofor_main' ;;
15122 ifc* | ifort*) # Intel Fortran compiler
15123 tmp_addflag=' -nofor_main' ;;
15125 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127 if test $supports_anon_versioning = yes; then
15128 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15130 $echo "local: *; };" >> $output_objdir/$libname.ver~
15131 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15154 *** create shared libraries on Solaris systems. Therefore, libtool
15155 *** is disabling shared libraries support. We urge you to upgrade GNU
15156 *** binutils to release 2.9.1 or newer. Another option is to modify
15157 *** your PATH or compiler configuration so that the native linker is
15158 *** used, and then restart.
15161 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15170 case `$LD -v 2>&1` in
15171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15176 *** reliably create shared libraries on SCO systems. Therefore, libtool
15177 *** is disabling shared libraries support. We urge you to upgrade GNU
15178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15179 *** your PATH or compiler configuration so that the native linker is
15180 *** used, and then restart.
15185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_direct=yes
15200 hardcode_shlibpath_var=no
15204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 if test "$ld_shlibs" = no; then
15215 hardcode_libdir_flag_spec=
15216 export_dynamic_flag_spec=
15217 whole_archive_flag_spec=
15220 # PORTME fill in a description of your system's linker (not GNU ld)
15223 allow_undefined_flag=unsupported
15224 always_export_symbols=yes
15225 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'
15226 # Note: this linker hardcodes the directories in LIBPATH if there
15227 # are no directories specified by -L.
15228 hardcode_minus_L=yes
15229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15230 # Neither direct hardcoding nor static linking is supported with a
15232 hardcode_direct=unsupported
15237 if test "$host_cpu" = ia64; then
15238 # On IA64, the linker does run time linking by default, so we don't
15239 # have to do anything special.
15240 aix_use_runtimelinking=no
15241 exp_sym_flag='-Bexport'
15244 # If we're using GNU nm, then we don't want the "-C" option.
15245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15246 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15247 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'
15249 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'
15251 aix_use_runtimelinking=no
15253 # Test if we are trying to use run time linking or normal
15254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15255 # need to do runtime linking.
15256 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15257 for ld_flag in $LDFLAGS; do
15258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15259 aix_use_runtimelinking=yes
15266 exp_sym_flag='-bexport'
15267 no_entry_flag='-bnoentry'
15270 # When large executables or shared objects are built, AIX ld can
15271 # have problems creating the table of contents. If linking a library
15272 # or program results in "error TOC overflow" add -mminimal-toc to
15273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15277 hardcode_direct=yes
15278 hardcode_libdir_separator=':'
15279 link_all_deplibs=yes
15281 if test "$GCC" = yes; then
15282 case $host_os in aix4.[012]|aix4.[012].*)
15283 # We only want to do this on AIX 4.2 and lower, the check
15284 # below for broken collect2 doesn't work under 4.3+
15285 collect2name=`${CC} -print-prog-name=collect2`
15286 if test -f "$collect2name" && \
15287 strings "$collect2name" | grep resolve_lib_name >/dev/null
15289 # We have reworked collect2
15290 hardcode_direct=yes
15292 # We have old collect2
15293 hardcode_direct=unsupported
15294 # It fails to find uninstalled libraries when the uninstalled
15295 # path is not listed in the libpath. Setting hardcode_minus_L
15296 # to unsupported forces relinking
15297 hardcode_minus_L=yes
15298 hardcode_libdir_flag_spec='-L$libdir'
15299 hardcode_libdir_separator=
15303 shared_flag='-shared'
15304 if test "$aix_use_runtimelinking" = yes; then
15305 shared_flag="$shared_flag "'${wl}-G'
15309 if test "$host_cpu" = ia64; then
15310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15311 # chokes on -Wl,-G. The following line is correct:
15314 if test "$aix_use_runtimelinking" = yes; then
15315 shared_flag='${wl}-G'
15317 shared_flag='${wl}-bM:SRE'
15322 # It seems that -bexpall does not export symbols beginning with
15323 # underscore (_), so it is better to generate a list of symbols to export.
15324 always_export_symbols=yes
15325 if test "$aix_use_runtimelinking" = yes; then
15326 # Warning - without using the other runtime loading flags (-brtl),
15327 # -berok will link without error, but may produce a broken library.
15328 allow_undefined_flag='-berok'
15329 # Determine the default libpath from the value encoded in an empty executable.
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (ac_try="$ac_link"
15347 case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_link") 2>conftest.er1
15354 grep -v '^ *+' conftest.er1 >conftest.err
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15382 # Check for a 64-bit object if we didn't find anything.
15383 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; }
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15392 rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15397 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"
15399 if test "$host_cpu" = ia64; then
15400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15401 allow_undefined_flag="-z nodefs"
15402 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"
15404 # Determine the default libpath from the value encoded in an empty executable.
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_try") 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15457 # Check for a 64-bit object if we didn't find anything.
15458 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; }
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15467 rm -f core conftest.err conftest.$ac_objext \
15468 conftest$ac_exeext conftest.$ac_ext
15469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15472 # Warning - without using the other run time loading flags,
15473 # -berok will link without error, but may produce a broken library.
15474 no_undefined_flag=' ${wl}-bernotok'
15475 allow_undefined_flag=' ${wl}-berok'
15476 # Exported symbols can be pulled into shared objects from archives
15477 whole_archive_flag_spec='$convenience'
15478 archive_cmds_need_lc=yes
15479 # This is similar to how AIX traditionally builds its shared libraries.
15480 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'
15486 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)'
15487 hardcode_libdir_flag_spec='-L$libdir'
15488 hardcode_minus_L=yes
15489 # see comment about different semantics on the GNU ld section
15494 export_dynamic_flag_spec=-rdynamic
15497 cygwin* | mingw* | pw32*)
15498 # When not using gcc, we currently assume that we are using
15499 # Microsoft Visual C++.
15500 # hardcode_libdir_flag_spec is actually meaningless, as there is
15501 # no search path for DLLs.
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15506 # Tell ltmain to make .dll files, not .so files.
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_From_new_cmds='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15514 fix_srcfile_path='`cygpath -w "$srcfile"`'
15515 enable_shared_with_static_runtimes=yes
15518 darwin* | rhapsody*)
15520 rhapsody* | darwin1.[012])
15521 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15524 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15525 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15527 case ${MACOSX_DEPLOYMENT_TARGET} in
15529 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15532 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15538 archive_cmds_need_lc=no
15540 hardcode_automatic=yes
15541 hardcode_shlibpath_var=unsupported
15542 whole_archive_flag_spec=''
15543 link_all_deplibs=yes
15544 if test "$GCC" = yes ; then
15545 output_verbose_link_cmd='echo'
15546 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15547 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15548 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15549 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}'
15550 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}'
15552 case $cc_basename in
15554 output_verbose_link_cmd='echo'
15555 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15556 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558 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}'
15559 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}'
15569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_shlibpath_var=no
15578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579 # support. Future versions do this automatically, but an explicit c++rt0.o
15580 # does not break anything, and helps significantly (at the cost of a little
15583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584 hardcode_libdir_flag_spec='-R$libdir'
15585 hardcode_direct=yes
15586 hardcode_shlibpath_var=no
15589 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_direct=yes
15593 hardcode_minus_L=yes
15594 hardcode_shlibpath_var=no
15597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598 freebsd* | kfreebsd*-gnu | dragonfly*)
15599 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600 hardcode_libdir_flag_spec='-R$libdir'
15601 hardcode_direct=yes
15602 hardcode_shlibpath_var=no
15606 if test "$GCC" = yes; then
15607 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'
15609 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'
15611 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15612 hardcode_libdir_separator=:
15613 hardcode_direct=yes
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L=yes
15618 export_dynamic_flag_spec='${wl}-E'
15622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15627 if test "$with_gnu_ld" = no; then
15628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator=:
15631 hardcode_direct=yes
15632 export_dynamic_flag_spec='${wl}-E'
15634 # hardcode_minus_L: Not really in the search PATH,
15635 # but as the default location of the library.
15636 hardcode_minus_L=yes
15641 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15644 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15662 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15666 if test "$with_gnu_ld" = no; then
15667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15668 hardcode_libdir_separator=:
15672 hardcode_libdir_flag_spec_ld='+b $libdir'
15674 hardcode_shlibpath_var=no
15677 hardcode_direct=yes
15678 export_dynamic_flag_spec='${wl}-E'
15680 # hardcode_minus_L: Not really in the search PATH,
15681 # but as the default location of the library.
15682 hardcode_minus_L=yes
15688 irix5* | irix6* | nonstopux*)
15689 if test "$GCC" = yes; then
15690 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'
15692 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'
15693 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696 hardcode_libdir_separator=:
15697 link_all_deplibs=yes
15701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15704 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15706 hardcode_libdir_flag_spec='-R$libdir'
15707 hardcode_direct=yes
15708 hardcode_shlibpath_var=no
15712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713 hardcode_direct=yes
15714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15715 hardcode_libdir_separator=:
15716 hardcode_shlibpath_var=no
15720 hardcode_direct=yes
15721 hardcode_shlibpath_var=no
15722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15726 export_dynamic_flag_spec='${wl}-E'
15729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_libdir_flag_spec='-R$libdir'
15734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15742 hardcode_libdir_flag_spec='-L$libdir'
15743 hardcode_minus_L=yes
15744 allow_undefined_flag=unsupported
15745 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'
15746 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15750 if test "$GCC" = yes; then
15751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15752 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'
15754 allow_undefined_flag=' -expect_unresolved \*'
15755 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'
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator=:
15761 osf4* | osf5*) # as osf3* with the addition of -msym flag
15762 if test "$GCC" = yes; then
15763 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15764 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'
15765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15767 allow_undefined_flag=' -expect_unresolved \*'
15768 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'
15769 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15770 $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'
15772 # Both c and cxx compiler support -rpath directly
15773 hardcode_libdir_flag_spec='-rpath $libdir'
15775 hardcode_libdir_separator=:
15779 no_undefined_flag=' -z text'
15780 if test "$GCC" = yes; then
15782 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15787 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791 hardcode_libdir_flag_spec='-R$libdir'
15792 hardcode_shlibpath_var=no
15794 solaris2.[0-5] | solaris2.[0-5].*) ;;
15796 # The compiler driver will combine linker options so we
15797 # cannot just pass the convience library names through
15798 # without $wl, iff we do not link with $LD.
15799 # Luckily, gcc supports the same syntax we need for Sun Studio.
15800 # Supported since Solaris 2.6 (maybe 2.5.1?)
15803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15805 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' ;;
15808 link_all_deplibs=yes
15812 if test "x$host_vendor" = xsequent; then
15813 # Use $CC to link under sequent, because it throws in some extra .o
15814 # files that make .init and .fini sections work.
15815 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_libdir_flag_spec='-L$libdir'
15820 hardcode_direct=yes
15821 hardcode_minus_L=yes
15822 hardcode_shlibpath_var=no
15826 case $host_vendor in
15828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_direct=yes # is this really true???
15832 ## LD is ld it makes a PLAMLIB
15833 ## CC just makes a GrossModule.
15834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15835 reload_cmds='$CC -r -o $output$reload_objs'
15839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15843 runpath_var='LD_RUN_PATH'
15844 hardcode_shlibpath_var=no
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_shlibpath_var=no
15850 export_dynamic_flag_spec='-Bexport'
15854 if test -d /usr/nec; then
15855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15856 hardcode_shlibpath_var=no
15857 runpath_var=LD_RUN_PATH
15858 hardcode_runpath_var=yes
15863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15864 no_undefined_flag='${wl}-z,text'
15865 archive_cmds_need_lc=no
15866 hardcode_shlibpath_var=no
15867 runpath_var='LD_RUN_PATH'
15869 if test "$GCC" = yes; then
15870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 sysv5* | sco3.2v5* | sco5v6*)
15879 # Note: We can NOT use -z defs as we might desire, because we do not
15880 # link with -lc, and that would cause any symbols used from libc to
15881 # always be unresolved, which means just about no library would
15882 # ever link correctly. If we're not using GNU ld we use -z text
15883 # though, which does catch some bad symbols but isn't as heavy-handed
15885 no_undefined_flag='${wl}-z,text'
15886 allow_undefined_flag='${wl}-z,nodefs'
15887 archive_cmds_need_lc=no
15888 hardcode_shlibpath_var=no
15889 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15890 hardcode_libdir_separator=':'
15891 link_all_deplibs=yes
15892 export_dynamic_flag_spec='${wl}-Bexport'
15893 runpath_var='LD_RUN_PATH'
15895 if test "$GCC" = yes; then
15896 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_libdir_flag_spec='-L$libdir'
15907 hardcode_shlibpath_var=no
15916 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15917 echo "${ECHO_T}$ld_shlibs" >&6; }
15918 test "$ld_shlibs" = no && can_build_shared=no
15921 # Do we need to explicitly link libc?
15923 case "x$archive_cmds_need_lc" in
15925 # Assume -lc should be added
15926 archive_cmds_need_lc=yes
15928 if test "$enable_shared" = yes && test "$GCC" = yes; then
15929 case $archive_cmds in
15931 # FIXME: we may have to deal with multi-command sequences.
15934 # Test whether the compiler implicitly links with -lc since on some
15935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15936 # to ld, don't add -lc before -lgcc.
15937 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15938 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } 2>conftest.err; then
15949 libobjs=conftest.$ac_objext
15951 wl=$lt_prog_compiler_wl
15952 pic_flag=$lt_prog_compiler_pic
15958 lt_save_allow_undefined_flag=$allow_undefined_flag
15959 allow_undefined_flag=
15960 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15961 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }
15966 archive_cmds_need_lc=no
15968 archive_cmds_need_lc=yes
15970 allow_undefined_flag=$lt_save_allow_undefined_flag
15972 cat conftest.err 1>&5
15975 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15976 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15983 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15984 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15985 library_names_spec=
15986 libname_spec='lib$name'
15990 postuninstall_cmds=
15994 shlibpath_overrides_runpath=unknown
15996 dynamic_linker="$host_os ld.so"
15997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15998 if test "$GCC" = yes; then
15999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16000 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16001 # if the path contains ";" then we assume it to be the separator
16002 # otherwise default to the standard path separator (i.e. ":") - it is
16003 # assumed that no part of a normal pathname contains ";" but that should
16004 # okay in the real world where ";" in dirpaths is itself problematic.
16005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16012 need_lib_prefix=unknown
16013 hardcode_into_libs=no
16015 # when you set need_version to no, make sure it does not cause -set_version
16016 # flags to be left without arguments
16017 need_version=unknown
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16023 shlibpath_var=LIBPATH
16025 # AIX 3 has no versioning support, so we append a major version to the name.
16026 soname_spec='${libname}${release}${shared_ext}$major'
16033 hardcode_into_libs=yes
16034 if test "$host_cpu" = ia64; then
16035 # AIX 5 supports IA64
16036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16037 shlibpath_var=LD_LIBRARY_PATH
16039 # With GCC up to 2.95.x, collect2 would create an import file
16040 # for dependence libraries. The import file would start with
16041 # the line `#! .'. This would cause the generated library to
16042 # depend on `.', always an invalid library. This was fixed in
16043 # development snapshots of GCC prior to 3.0.
16045 aix4 | aix4.[01] | aix4.[01].*)
16046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16048 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16051 can_build_shared=no
16055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16056 # soname into executable. Probably we can add versioning support to
16057 # collect2, so additional links can be useful in future.
16058 if test "$aix_use_runtimelinking" = yes; then
16059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16060 # instead of lib<name>.a to let people know that these are not
16061 # typical AIX shared libraries.
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 # We preserve .a as extension for shared libraries through AIX4.2
16065 # and later when we are not doing run time linking.
16066 library_names_spec='${libname}${release}.a $libname.a'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16069 shlibpath_var=LIBPATH
16074 library_names_spec='$libname.ixlibrary $libname.a'
16075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16076 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'
16080 library_names_spec='${libname}${shared_ext}'
16081 dynamic_linker="$host_os ld.so"
16082 shlibpath_var=LIBRARY_PATH
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16094 # the default ld.so.conf also contains /usr/contrib/lib and
16095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16096 # libtool to hard-code these into programs
16099 cygwin* | mingw* | pw32*)
16100 version_type=windows
16105 case $GCC,$host_os in
16106 yes,cygwin* | yes,mingw* | yes,pw32*)
16107 library_names_spec='$libname.dll.a'
16108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109 postinstall_cmds='base_file=`basename \${file}`~
16110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16111 dldir=$destdir/`dirname \$dlpath`~
16112 test -d \$dldir || mkdir -p \$dldir~
16113 $install_prog $dir/$dlname \$dldir/$dlname~
16114 chmod a+x \$dldir/$dlname'
16115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16116 dlpath=$dir/\$dldll~
16118 shlibpath_overrides_runpath=yes
16122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16127 # MinGW DLLs use traditional 'lib' prefix
16128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16130 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16131 # It is most probably a Windows format PATH printed by
16132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16133 # path with ; separators, and with drive letters. We can handle the
16134 # drive letters (cygwin fileutils understands them), so leave them,
16135 # especially as we might pass files found there to a mingw objdump,
16136 # which wouldn't understand a cygwinified path. Ahh.
16137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16153 dynamic_linker='Win32 ld.exe'
16154 # FIXME: first we should search . and the directory the executable is in
16158 darwin* | rhapsody*)
16159 dynamic_linker="$host_os dyld"
16160 version_type=darwin
16163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16164 soname_spec='${libname}${release}${major}$shared_ext'
16165 shlibpath_overrides_runpath=yes
16166 shlibpath_var=DYLD_LIBRARY_PATH
16167 shrext_cmds='.dylib'
16168 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16169 if test "$GCC" = yes; then
16170 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"`
16172 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=no
16198 hardcode_into_libs=yes
16199 dynamic_linker='GNU ld.so'
16202 freebsd* | dragonfly*)
16203 # DragonFly does not have aout. When/if they implement a new
16204 # versioning mechanism, adjust this.
16205 if test -x /usr/bin/objformat; then
16206 objformat=`/usr/bin/objformat`
16209 freebsd[123]*) objformat=aout ;;
16210 *) objformat=elf ;;
16213 version_type=freebsd-$objformat
16214 case $version_type in
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16225 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16230 freebsd3.[01]* | freebsdelf3.[01]*)
16231 shlibpath_overrides_runpath=yes
16232 hardcode_into_libs=yes
16234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16236 shlibpath_overrides_runpath=no
16237 hardcode_into_libs=yes
16239 freebsd*) # from 4.6 on
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 hardcode_into_libs=yes
16256 hpux9* | hpux10* | hpux11*)
16257 # Give a soname corresponding to the major version so that dld.sl refuses to
16258 # link against other versions.
16265 hardcode_into_libs=yes
16266 dynamic_linker="$host_os dld.so"
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 if test "X$HPUX_IA64_MODE" = X32; then
16272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280 hardcode_into_libs=yes
16281 dynamic_linker="$host_os dld.sl"
16282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16291 dynamic_linker="$host_os dld.sl"
16292 shlibpath_var=SHLIB_PATH
16293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16299 postinstall_cmds='chmod 555 $lib'
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=no
16311 hardcode_into_libs=yes
16314 irix5* | irix6* | nonstopux*)
16316 nonstopux*) version_type=nonstopux ;;
16318 if test "$lt_cv_prog_gnu_ld" = yes; then
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16329 irix5* | nonstopux*)
16330 libsuff= shlibsuff=
16333 case $LD in # libtool.m4 will add one of these switches to LD
16334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16335 libsuff= shlibsuff= libmagic=32-bit;;
16336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16337 libsuff=32 shlibsuff=N32 libmagic=N32;;
16338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16340 *) libsuff= shlibsuff= libmagic=never-match;;
16344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16345 shlibpath_overrides_runpath=no
16346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16348 hardcode_into_libs=yes
16351 # No shared lib support for Linux oldld, aout, or coff.
16352 linux*oldld* | linux*aout* | linux*coff*)
16356 # This must be Linux ELF.
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 # This implies no fast_install, which is unacceptable.
16367 # Some rework will be needed to allow for fast_install
16368 # before this can be enabled.
16369 hardcode_into_libs=yes
16371 # Append ld.so.conf contents to the search path
16372 if test -f /etc/ld.so.conf; then
16373 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' ' '`
16374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16377 # We used to test for /lib/ld.so.1 and disable shared libraries on
16378 # powerpc, because MkLinux only supported shared libraries with the
16379 # GNU dynamic linker. Since this was broken with cross compilers,
16380 # most powerpc-linux boxes support dynamic linking these days and
16381 # people can always --disable-shared, the test was removed, and we
16382 # assume the GNU/Linux dynamic linker is in use.
16383 dynamic_linker='GNU/Linux ld.so'
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=no
16394 hardcode_into_libs=yes
16395 dynamic_linker='GNU ld.so'
16402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405 dynamic_linker='NetBSD (a.out) ld.so'
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 dynamic_linker='NetBSD ld.elf_so'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 hardcode_into_libs=yes
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16435 sys_lib_dlsearch_path_spec="/usr/lib"
16437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16440 *) need_version=no ;;
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16447 openbsd2.[89] | openbsd2.[89].*)
16448 shlibpath_overrides_runpath=no
16451 shlibpath_overrides_runpath=yes
16455 shlibpath_overrides_runpath=yes
16460 libname_spec='$name'
16463 library_names_spec='$libname${shared_ext} $libname.a'
16464 dynamic_linker='OS/2 ld.exe'
16465 shlibpath_var=LIBPATH
16468 osf3* | osf4* | osf5*)
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 # ldd complains unless libraries are executable
16489 postinstall_cmds='chmod +x $lib'
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 if test "$with_gnu_ld" = yes; then
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 case $host_vendor in
16511 shlibpath_overrides_runpath=no
16513 export_dynamic_flag_spec='${wl}-Blargedynsym'
16514 runpath_var=LD_RUN_PATH
16522 shlibpath_overrides_runpath=no
16523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16529 if test -d /usr/nec ;then
16531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16532 soname_spec='$libname${shared_ext}.$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16538 version_type=freebsd-elf
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 hardcode_into_libs=yes
16545 if test "$with_gnu_ld" = yes; then
16546 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16547 shlibpath_overrides_runpath=no
16549 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16550 shlibpath_overrides_runpath=yes
16553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16557 sys_lib_dlsearch_path_spec='/usr/lib'
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LD_LIBRARY_PATH
16571 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16572 echo "${ECHO_T}$dynamic_linker" >&6; }
16573 test "$dynamic_linker" = no && can_build_shared=no
16575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16576 if test "$GCC" = yes; then
16577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16583 if test -n "$hardcode_libdir_flag_spec" || \
16584 test -n "$runpath_var" || \
16585 test "X$hardcode_automatic" = "Xyes" ; then
16587 # We can hardcode non-existant directories.
16588 if test "$hardcode_direct" != no &&
16589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16590 # have to relink, otherwise we might link with an installed library
16591 # when we should be linking with a yet-to-be-installed one
16592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16593 test "$hardcode_minus_L" != no; then
16594 # Linking always hardcodes the temporary library directory.
16595 hardcode_action=relink
16597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16598 hardcode_action=immediate
16601 # We cannot hardcode anything, or else we can only hardcode existing
16603 hardcode_action=unsupported
16605 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16606 echo "${ECHO_T}$hardcode_action" >&6; }
16608 if test "$hardcode_action" = relink; then
16609 # Fast installation is not supported
16610 enable_fast_install=no
16611 elif test "$shlibpath_overrides_runpath" = yes ||
16612 test "$enable_shared" = no; then
16613 # Fast installation is not necessary
16614 enable_fast_install=needless
16619 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16624 { echo "$as_me:$LINENO: result: yes" >&5
16625 echo "${ECHO_T}yes" >&6; }
16627 # FIXME - insert some real tests, host_os isn't really good enough
16630 if test -n "$STRIP" ; then
16631 striplib="$STRIP -x"
16632 { echo "$as_me:$LINENO: result: yes" >&5
16633 echo "${ECHO_T}yes" >&6; }
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16640 { echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6; }
16646 if test "x$enable_dlopen" != xyes; then
16647 enable_dlopen=unknown
16648 enable_dlopen_self=unknown
16649 enable_dlopen_self_static=unknown
16656 lt_cv_dlopen="load_add_on"
16658 lt_cv_dlopen_self=yes
16662 lt_cv_dlopen="LoadLibrary"
16667 lt_cv_dlopen="dlopen"
16672 # if libdl is installed we need to link against it
16673 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 ac_check_lib_save_LIBS=$LIBS
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16687 /* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_dl_dlopen=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_dl_dlopen=no
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16750 if test $ac_cv_lib_dl_dlopen = yes; then
16751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16754 lt_cv_dlopen="dyld"
16756 lt_cv_dlopen_self=yes
16763 { echo "$as_me:$LINENO: checking for shl_load" >&5
16764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16765 if test "${ac_cv_func_shl_load+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16776 #define shl_load innocuous_shl_load
16778 /* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char shl_load (); below.
16780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781 <limits.h> exists even on freestanding compilers. */
16784 # include <limits.h>
16786 # include <assert.h>
16791 /* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16798 /* The GNU C library defines this for functions which it implements
16799 to always fail with ENOSYS. Some functions are actually named
16800 something starting with __ and the normal name is an alias. */
16801 #if defined __stub_shl_load || defined __stub___shl_load
16808 return shl_load ();
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (ac_try="$ac_link"
16815 case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_link") 2>conftest.er1
16822 grep -v '^ *+' conftest.er1 >conftest.err
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_try") 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_cv_func_shl_load=yes
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_cv_func_shl_load=no
16855 rm -f core conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext conftest.$ac_ext
16858 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16859 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16860 if test $ac_cv_func_shl_load = yes; then
16861 lt_cv_dlopen="shl_load"
16863 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16864 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 ac_check_lib_save_LIBS=$LIBS
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16887 return shl_load ();
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_cv_lib_dld_shl_load=yes
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ac_cv_lib_dld_shl_load=no
16934 rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16940 if test $ac_cv_lib_dld_shl_load = yes; then
16941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16943 { echo "$as_me:$LINENO: checking for dlopen" >&5
16944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16945 if test "${ac_cv_func_dlopen+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define dlopen innocuous_dlopen
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char dlopen (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16964 # include <limits.h>
16966 # include <assert.h>
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_dlopen || defined __stub___dlopen
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17002 grep -v '^ *+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_func_dlopen=yes
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ac_cv_func_dlopen=no
17035 rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17038 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17040 if test $ac_cv_func_dlopen = yes; then
17041 lt_cv_dlopen="dlopen"
17043 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 ac_check_lib_save_LIBS=$LIBS
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (ac_try="$ac_link"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_link") 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106 ac_cv_lib_dl_dlopen=yes
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ac_cv_lib_dl_dlopen=no
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17116 LIBS=$ac_check_lib_save_LIBS
17118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17120 if test $ac_cv_lib_dl_dlopen = yes; then
17121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17123 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17124 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17125 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-lsvld $LIBS"
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17137 /* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17161 grep -v '^ *+' conftest.er1 >conftest.err
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_lib_svld_dlopen=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_cv_lib_svld_dlopen=no
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17198 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17199 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17200 if test $ac_cv_lib_svld_dlopen = yes; then
17201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17203 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17204 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 ac_check_lib_save_LIBS=$LIBS
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17227 return dld_link ();
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_lib_dld_dld_link=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_dld_dld_link=no
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17279 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17280 if test $ac_cv_lib_dld_dld_link = yes; then
17281 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17302 if test "x$lt_cv_dlopen" != xno; then
17308 case $lt_cv_dlopen in
17310 save_CPPFLAGS="$CPPFLAGS"
17311 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17313 save_LDFLAGS="$LDFLAGS"
17314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17317 LIBS="$lt_cv_dlopen_libs $LIBS"
17319 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17320 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17321 if test "${lt_cv_dlopen_self+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 if test "$cross_compiling" = yes; then :
17325 lt_cv_dlopen_self=cross
17327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328 lt_status=$lt_dlunknown
17329 cat > conftest.$ac_ext <<EOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17340 # define LT_DLGLOBAL RTLD_GLOBAL
17343 # define LT_DLGLOBAL DL_GLOBAL
17345 # define LT_DLGLOBAL 0
17349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350 find out it does not work in some platform. */
17351 #ifndef LT_DLLAZY_OR_NOW
17353 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17356 # define LT_DLLAZY_OR_NOW DL_LAZY
17359 # define LT_DLLAZY_OR_NOW RTLD_NOW
17362 # define LT_DLLAZY_OR_NOW DL_NOW
17364 # define LT_DLLAZY_OR_NOW 0
17372 extern "C" void exit (int);
17375 void fnord() { int i=42;}
17378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379 int status = $lt_dlunknown;
17383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17385 /* dlclose (self); */
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17398 (./conftest; exit; ) >&5 2>/dev/null
17400 case x$lt_status in
17401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17403 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17406 # compilation failed
17407 lt_cv_dlopen_self=no
17414 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17415 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17417 if test "x$lt_cv_dlopen_self" = xyes; then
17418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17419 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17420 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17421 if test "${lt_cv_dlopen_self_static+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 if test "$cross_compiling" = yes; then :
17425 lt_cv_dlopen_self_static=cross
17427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17428 lt_status=$lt_dlunknown
17429 cat > conftest.$ac_ext <<EOF
17430 #line 17430 "configure"
17431 #include "confdefs.h"
17440 # define LT_DLGLOBAL RTLD_GLOBAL
17443 # define LT_DLGLOBAL DL_GLOBAL
17445 # define LT_DLGLOBAL 0
17449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17450 find out it does not work in some platform. */
17451 #ifndef LT_DLLAZY_OR_NOW
17453 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17456 # define LT_DLLAZY_OR_NOW DL_LAZY
17459 # define LT_DLLAZY_OR_NOW RTLD_NOW
17462 # define LT_DLLAZY_OR_NOW DL_NOW
17464 # define LT_DLLAZY_OR_NOW 0
17472 extern "C" void exit (int);
17475 void fnord() { int i=42;}
17478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17479 int status = $lt_dlunknown;
17483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17484 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17485 /* dlclose (self); */
17493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17494 (eval $ac_link) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17498 (./conftest; exit; ) >&5 2>/dev/null
17500 case x$lt_status in
17501 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17502 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17503 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17506 # compilation failed
17507 lt_cv_dlopen_self_static=no
17514 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17515 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17518 CPPFLAGS="$save_CPPFLAGS"
17519 LDFLAGS="$save_LDFLAGS"
17524 case $lt_cv_dlopen_self in
17525 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17526 *) enable_dlopen_self=unknown ;;
17529 case $lt_cv_dlopen_self_static in
17530 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17531 *) enable_dlopen_self_static=unknown ;;
17536 # Report which library types will actually be built
17537 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17538 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17539 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17540 echo "${ECHO_T}$can_build_shared" >&6; }
17542 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17543 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17544 test "$can_build_shared" = "no" && enable_shared=no
17546 # On AIX, shared libraries and static libraries use the same namespace, and
17547 # are all built from PIC.
17550 test "$enable_shared" = yes && enable_static=no
17551 if test -n "$RANLIB"; then
17552 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17553 postinstall_cmds='$RANLIB $lib'
17558 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17559 test "$enable_shared" = yes && enable_static=no
17563 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17564 echo "${ECHO_T}$enable_shared" >&6; }
17566 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17567 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17568 # Make sure either enable_shared or enable_static is yes.
17569 test "$enable_shared" = yes || enable_static=yes
17570 { echo "$as_me:$LINENO: result: $enable_static" >&5
17571 echo "${ECHO_T}$enable_static" >&6; }
17573 # The else clause should only fire when bootstrapping the
17574 # libtool distribution, otherwise you forgot to ship ltmain.sh
17575 # with your package, and you will get complaints that there are
17576 # no rules to generate ltmain.sh.
17577 if test -f "$ltmain"; then
17578 # See if we are running on zsh, and set the options which allow our commands through
17579 # without removal of \ escapes.
17580 if test -n "${ZSH_VERSION+set}" ; then
17581 setopt NO_GLOB_SUBST
17583 # Now quote all the things that may contain metacharacters while being
17584 # careful not to overquote the AC_SUBSTed values. We take copies of the
17585 # variables and quote the copies for generation of the libtool script.
17586 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17590 deplibs_check_method reload_flag reload_cmds need_locks \
17591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17592 lt_cv_sys_global_symbol_to_c_name_address \
17593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17594 old_postinstall_cmds old_postuninstall_cmds \
17598 lt_prog_compiler_wl \
17599 lt_prog_compiler_pic \
17600 lt_prog_compiler_static \
17601 lt_prog_compiler_no_builtin_flag \
17602 export_dynamic_flag_spec \
17603 thread_safe_flag_spec \
17604 whole_archive_flag_spec \
17605 enable_shared_with_static_runtimes \
17607 old_archive_from_new_cmds \
17612 compiler_lib_search_path \
17614 archive_expsym_cmds \
17616 postuninstall_cmds \
17617 old_archive_from_expsyms_cmds \
17618 allow_undefined_flag \
17619 no_undefined_flag \
17620 export_symbols_cmds \
17621 hardcode_libdir_flag_spec \
17622 hardcode_libdir_flag_spec_ld \
17623 hardcode_libdir_separator \
17624 hardcode_automatic \
17626 module_expsym_cmds \
17627 lt_cv_prog_compiler_c_o \
17629 include_expsyms; do
17632 old_archive_cmds | \
17633 old_archive_from_new_cmds | \
17635 archive_expsym_cmds | \
17637 module_expsym_cmds | \
17638 old_archive_from_expsyms_cmds | \
17639 export_symbols_cmds | \
17640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17641 postinstall_cmds | postuninstall_cmds | \
17642 old_postinstall_cmds | old_postuninstall_cmds | \
17643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17644 # Double-quote double-evaled strings.
17645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17654 *'\$0 --fallback-echo"')
17655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17659 cfgfile="${ofile}T"
17660 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17662 { echo "$as_me:$LINENO: creating $ofile" >&5
17663 echo "$as_me: creating $ofile" >&6;}
17665 cat <<__EOF__ >> "$cfgfile"
17668 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17669 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17670 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17672 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17673 # Free Software Foundation, Inc.
17675 # This file is part of GNU Libtool:
17676 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17678 # This program is free software; you can redistribute it and/or modify
17679 # it under the terms of the GNU General Public License as published by
17680 # the Free Software Foundation; either version 2 of the License, or
17681 # (at your option) any later version.
17683 # This program is distributed in the hope that it will be useful, but
17684 # WITHOUT ANY WARRANTY; without even the implied warranty of
17685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17686 # General Public License for more details.
17688 # You should have received a copy of the GNU General Public License
17689 # along with this program; if not, write to the Free Software
17690 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17692 # As a special exception to the GNU General Public License, if you
17693 # distribute this file as part of a program that contains a
17694 # configuration script generated by Autoconf, you may include it under
17695 # the same distribution terms that you use for the rest of that program.
17697 # A sed program that does not truncate output.
17700 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17701 Xsed="$SED -e 1s/^X//"
17703 # The HP-UX ksh and POSIX shell print the target directory to stdout
17704 # if CDPATH is set.
17705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17707 # The names of the tagged configurations supported by this script.
17710 # ### BEGIN LIBTOOL CONFIG
17712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17714 # Shell to use when invoking shell scripts.
17717 # Whether or not to build shared libraries.
17718 build_libtool_libs=$enable_shared
17720 # Whether or not to build static libraries.
17721 build_old_libs=$enable_static
17723 # Whether or not to add -lc for building shared libraries.
17724 build_libtool_need_lc=$archive_cmds_need_lc
17726 # Whether or not to disallow shared libs when runtime libs are static
17727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17729 # Whether or not to optimize for fast installation.
17730 fast_install=$enable_fast_install
17733 host_alias=$host_alias
17737 # The build system.
17738 build_alias=$build_alias
17742 # An echo program that does not interpret backslashes.
17747 AR_FLAGS=$lt_AR_FLAGS
17752 # LTCC compiler flags.
17753 LTCFLAGS=$lt_LTCFLAGS
17755 # A language-specific compiler.
17758 # Is the compiler the GNU C compiler?
17764 # The linker used to build libraries.
17767 # Whether we need hard or soft links.
17770 # A BSD-compatible nm program.
17773 # A symbol stripping program
17776 # Used to examine libraries when file_magic_cmd begins "file"
17777 MAGIC_CMD=$MAGIC_CMD
17779 # Used on cygwin: DLL creation program.
17782 # Used on cygwin: object dumper.
17785 # Used on cygwin: assembler.
17788 # The name of the directory that contains temporary libtool files.
17791 # How to create reloadable object files.
17792 reload_flag=$lt_reload_flag
17793 reload_cmds=$lt_reload_cmds
17795 # How to pass a linker flag through the compiler.
17796 wl=$lt_lt_prog_compiler_wl
17798 # Object file suffix (normally "o").
17799 objext="$ac_objext"
17801 # Old archive suffix (normally "a").
17804 # Shared library suffix (normally ".so").
17805 shrext_cmds='$shrext_cmds'
17807 # Executable file suffix (normally "").
17810 # Additional compiler flags for building library objects.
17811 pic_flag=$lt_lt_prog_compiler_pic
17814 # What is the maximum length of a command?
17815 max_cmd_len=$lt_cv_sys_max_cmd_len
17817 # Does compiler simultaneously support -c and -o options?
17818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17820 # Must we lock files when doing compilation?
17821 need_locks=$lt_need_locks
17823 # Do we need the lib prefix for modules?
17824 need_lib_prefix=$need_lib_prefix
17826 # Do we need a version for libraries?
17827 need_version=$need_version
17829 # Whether dlopen is supported.
17830 dlopen_support=$enable_dlopen
17832 # Whether dlopen of programs is supported.
17833 dlopen_self=$enable_dlopen_self
17835 # Whether dlopen of statically linked programs is supported.
17836 dlopen_self_static=$enable_dlopen_self_static
17838 # Compiler flag to prevent dynamic linking.
17839 link_static_flag=$lt_lt_prog_compiler_static
17841 # Compiler flag to turn off builtin functions.
17842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17844 # Compiler flag to allow reflexive dlopens.
17845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17847 # Compiler flag to generate shared objects directly from archives.
17848 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17850 # Compiler flag to generate thread-safe objects.
17851 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17853 # Library versioning type.
17854 version_type=$version_type
17856 # Format of library name prefix.
17857 libname_spec=$lt_libname_spec
17859 # List of archive names. First name is the real one, the rest are links.
17860 # The last name is the one that the linker finds with -lNAME.
17861 library_names_spec=$lt_library_names_spec
17863 # The coded name of the library, if different from the real name.
17864 soname_spec=$lt_soname_spec
17866 # Commands used to build and install an old-style archive.
17868 old_archive_cmds=$lt_old_archive_cmds
17869 old_postinstall_cmds=$lt_old_postinstall_cmds
17870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17872 # Create an old-style archive from a shared archive.
17873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17875 # Create a temporary old-style archive to link instead of a shared archive.
17876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17878 # Commands used to build and install a shared archive.
17879 archive_cmds=$lt_archive_cmds
17880 archive_expsym_cmds=$lt_archive_expsym_cmds
17881 postinstall_cmds=$lt_postinstall_cmds
17882 postuninstall_cmds=$lt_postuninstall_cmds
17884 # Commands used to build a loadable module (assumed same as above if empty)
17885 module_cmds=$lt_module_cmds
17886 module_expsym_cmds=$lt_module_expsym_cmds
17888 # Commands to strip libraries.
17889 old_striplib=$lt_old_striplib
17890 striplib=$lt_striplib
17892 # Dependencies to place before the objects being linked to create a
17894 predep_objects=$lt_predep_objects
17896 # Dependencies to place after the objects being linked to create a
17898 postdep_objects=$lt_postdep_objects
17900 # Dependencies to place before the objects being linked to create a
17902 predeps=$lt_predeps
17904 # Dependencies to place after the objects being linked to create a
17906 postdeps=$lt_postdeps
17908 # The library search path used internally by the compiler when linking
17909 # a shared library.
17910 compiler_lib_search_path=$lt_compiler_lib_search_path
17912 # Method to check whether dependent libraries are shared objects.
17913 deplibs_check_method=$lt_deplibs_check_method
17915 # Command to use when deplibs_check_method == file_magic.
17916 file_magic_cmd=$lt_file_magic_cmd
17918 # Flag that allows shared libraries with undefined symbols to be built.
17919 allow_undefined_flag=$lt_allow_undefined_flag
17921 # Flag that forces no undefined symbols.
17922 no_undefined_flag=$lt_no_undefined_flag
17924 # Commands used to finish a libtool library installation in a directory.
17925 finish_cmds=$lt_finish_cmds
17927 # Same as above, but a single script fragment to be evaled but not shown.
17928 finish_eval=$lt_finish_eval
17930 # Take the output of nm and produce a listing of raw symbols and C names.
17931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17933 # Transform the output of nm in a proper C declaration
17934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17936 # Transform the output of nm in a C name address pair
17937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17939 # This is the shared library runtime path variable.
17940 runpath_var=$runpath_var
17942 # This is the shared library path variable.
17943 shlibpath_var=$shlibpath_var
17945 # Is shlibpath searched before the hard-coded library search path?
17946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17948 # How to hardcode a shared library path into an executable.
17949 hardcode_action=$hardcode_action
17951 # Whether we should hardcode library paths into libraries.
17952 hardcode_into_libs=$hardcode_into_libs
17954 # Flag to hardcode \$libdir into a binary during linking.
17955 # This must work even if \$libdir does not exist.
17956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17958 # If ld is used when linking, flag to hardcode \$libdir into
17959 # a binary during linking. This must work even if \$libdir does
17961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17963 # Whether we need a single -rpath flag with a separated argument.
17964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17966 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17967 # resulting binary.
17968 hardcode_direct=$hardcode_direct
17970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17971 # resulting binary.
17972 hardcode_minus_L=$hardcode_minus_L
17974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17975 # the resulting binary.
17976 hardcode_shlibpath_var=$hardcode_shlibpath_var
17978 # Set to yes if building a shared library automatically hardcodes DIR into the library
17979 # and all subsequent libraries and executables linked against it.
17980 hardcode_automatic=$hardcode_automatic
17982 # Variables whose values should be saved in libtool wrapper scripts and
17983 # restored at relink time.
17984 variables_saved_for_relink="$variables_saved_for_relink"
17986 # Whether libtool must link a program against all its dependency libraries.
17987 link_all_deplibs=$link_all_deplibs
17989 # Compile-time system search path for libraries
17990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17992 # Run-time system search path for libraries
17993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17995 # Fix the shell variable \$srcfile for the compiler.
17996 fix_srcfile_path="$fix_srcfile_path"
17998 # Set to yes if exported symbols are required.
17999 always_export_symbols=$always_export_symbols
18001 # The commands to list exported symbols.
18002 export_symbols_cmds=$lt_export_symbols_cmds
18004 # The commands to extract the exported symbol list from a shared archive.
18005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18007 # Symbols that should not be listed in the preloaded symbols.
18008 exclude_expsyms=$lt_exclude_expsyms
18010 # Symbols that must always be exported.
18011 include_expsyms=$lt_include_expsyms
18013 # ### END LIBTOOL CONFIG
18020 cat <<\EOF >> "$cfgfile"
18022 # AIX sometimes has problems with the GCC collect2 program. For some
18023 # reason, if we set the COLLECT_NAMES environment variable, the problems
18024 # vanish in a puff of smoke.
18025 if test "X${COLLECT_NAMES+set}" != Xset; then
18027 export COLLECT_NAMES
18033 # We use sed instead of cat because bash on DJGPP gets confused if
18034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18035 # text mode, it properly converts lines to CR/LF. This bash problem
18036 # is reportedly fixed, but why not run on old versions too?
18037 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18039 mv -f "$cfgfile" "$ofile" || \
18040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18044 # If there is no Makefile yet, we rely on a make rule to execute
18045 # `config.status --recheck' to rerun these tests and create the
18046 # libtool script then.
18047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18048 if test -f "$ltmain_in"; then
18049 test -f Makefile && make "$ltmain"
18055 ac_cpp='$CPP $CPPFLAGS'
18056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18063 # Check whether --with-tags was given.
18064 if test "${with_tags+set}" = set; then
18065 withval=$with_tags; tagnames="$withval"
18069 if test -f "$ltmain" && test -n "$tagnames"; then
18070 if test ! -f "${ofile}"; then
18071 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18072 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18075 if test -z "$LTCC"; then
18076 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18077 if test -z "$LTCC"; then
18078 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18079 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18082 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18085 if test -z "$LTCFLAGS"; then
18086 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18089 # Extract list of available tagged configurations in $ofile.
18090 # Note that this assumes the entire list is on one line.
18091 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18094 for tagname in $tagnames; do
18096 # Check whether tagname contains only valid characters
18097 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18099 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18100 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18101 { (exit 1); exit 1; }; }
18105 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18107 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18108 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18109 { (exit 1); exit 1; }; }
18112 # Update the list of available tags.
18113 if test -n "$tagname"; then
18114 echo appending configuration tag \"$tagname\" to $ofile
18118 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18119 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18120 (test "X$CXX" != "Xg++"))) ; then
18122 ac_cpp='$CXXCPP $CPPFLAGS'
18123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18130 archive_cmds_need_lc_CXX=no
18131 allow_undefined_flag_CXX=
18132 always_export_symbols_CXX=no
18133 archive_expsym_cmds_CXX=
18134 export_dynamic_flag_spec_CXX=
18135 hardcode_direct_CXX=no
18136 hardcode_libdir_flag_spec_CXX=
18137 hardcode_libdir_flag_spec_ld_CXX=
18138 hardcode_libdir_separator_CXX=
18139 hardcode_minus_L_CXX=no
18140 hardcode_shlibpath_var_CXX=unsupported
18141 hardcode_automatic_CXX=no
18143 module_expsym_cmds_CXX=
18144 link_all_deplibs_CXX=unknown
18145 old_archive_cmds_CXX=$old_archive_cmds
18146 no_undefined_flag_CXX=
18147 whole_archive_flag_spec_CXX=
18148 enable_shared_with_static_runtimes_CXX=no
18150 # Dependencies to place before and after the object being linked:
18151 predep_objects_CXX=
18152 postdep_objects_CXX=
18155 compiler_lib_search_path_CXX=
18157 # Source file extension for C++ test sources.
18160 # Object file extension for compiled C++ test sources.
18164 # Code to be used in simple compile tests
18165 lt_simple_compile_test_code="int some_variable = 0;\n"
18167 # Code to be used in simple link tests
18168 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18172 # If no C compiler was specified, use CC.
18175 # If no C compiler flags were specified, use CFLAGS.
18176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18178 # Allow CC to be a program name with arguments.
18182 # save warnings/boilerplate of simple test code
18183 ac_outfile=conftest.$ac_objext
18184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18186 _lt_compiler_boilerplate=`cat conftest.err`
18189 ac_outfile=conftest.$ac_objext
18190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18192 _lt_linker_boilerplate=`cat conftest.err`
18196 # Allow CC to be a program name with arguments.
18201 lt_save_with_gnu_ld=$with_gnu_ld
18202 lt_save_path_LD=$lt_cv_path_LD
18203 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18204 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18206 $as_unset lt_cv_prog_gnu_ld
18208 if test -n "${lt_cv_path_LDCXX+set}"; then
18209 lt_cv_path_LD=$lt_cv_path_LDCXX
18211 $as_unset lt_cv_path_LD
18213 test -z "${LDCXX+set}" || LD=$LDCXX
18217 for cc_temp in $compiler""; do
18219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18228 # We don't want -fno-exception wen compiling C++ code, so set the
18229 # no_builtin_flag separately
18230 if test "$GXX" = yes; then
18231 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18233 lt_prog_compiler_no_builtin_flag_CXX=
18236 if test "$GXX" = yes; then
18237 # Set up default GNU C++ configuration
18240 # Check whether --with-gnu-ld was given.
18241 if test "${with_gnu_ld+set}" = set; then
18242 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18248 if test "$GCC" = yes; then
18249 # Check if gcc -print-prog-name=ld gives a path.
18250 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18251 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18254 # gcc leaves a trailing carriage return which upsets mingw
18255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18260 # Accept absolute paths.
18262 re_direlt='/[^/][^/]*/\.\./'
18263 # Canonicalize the pathname of ld
18264 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18266 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18268 test -z "$LD" && LD="$ac_prog"
18271 # If it fails, then pretend we aren't using GCC.
18275 # If it is relative, then search for the first ld in PATH.
18276 with_gnu_ld=unknown
18279 elif test "$with_gnu_ld" = yes; then
18280 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18281 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18283 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18284 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18286 if test "${lt_cv_path_LD+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 if test -z "$LD"; then
18290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18291 for ac_dir in $PATH; do
18293 test -z "$ac_dir" && ac_dir=.
18294 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18295 lt_cv_path_LD="$ac_dir/$ac_prog"
18296 # Check to see if the program is GNU ld. I'd rather use --version,
18297 # but apparently some variants of GNU ld only accept -v.
18298 # Break only if it was the GNU/non-GNU ld that we prefer.
18299 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18300 *GNU* | *'with BFD'*)
18301 test "$with_gnu_ld" != no && break
18304 test "$with_gnu_ld" != yes && break
18311 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18315 LD="$lt_cv_path_LD"
18316 if test -n "$LD"; then
18317 { echo "$as_me:$LINENO: result: $LD" >&5
18318 echo "${ECHO_T}$LD" >&6; }
18320 { echo "$as_me:$LINENO: result: no" >&5
18321 echo "${ECHO_T}no" >&6; }
18323 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18324 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18325 { (exit 1); exit 1; }; }
18326 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18327 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18328 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18332 case `$LD -v 2>&1 </dev/null` in
18333 *GNU* | *'with BFD'*)
18334 lt_cv_prog_gnu_ld=yes
18337 lt_cv_prog_gnu_ld=no
18341 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18342 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18343 with_gnu_ld=$lt_cv_prog_gnu_ld
18347 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18348 # archiving commands below assume that GNU ld is being used.
18349 if test "$with_gnu_ld" = yes; then
18350 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18351 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'
18353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18356 # If archive_cmds runs LD, not CC, wlarc should be empty
18357 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18358 # investigate it a little bit more. (MM)
18361 # ancient GNU ld didn't support --whole-archive et. al.
18362 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18363 grep 'no-whole-archive' > /dev/null; then
18364 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18366 whole_archive_flag_spec_CXX=
18372 # A generic and very simple default shared library creation
18373 # command for GNU C++ for the case where it uses the native
18374 # linker, instead of GNU ld. If possible, this setting should
18375 # overridden to take advantage of the native linker features on
18376 # the platform it is being used on.
18377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18380 # Commands to make compiler produce verbose output that lists
18381 # what "hidden" libraries, object files and flags are used when
18382 # linking a shared library.
18383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18391 # PORTME: fill in a description of your system's C++ link characteristics
18392 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18393 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18397 # FIXME: insert proper C++ library support
18401 if test "$host_cpu" = ia64; then
18402 # On IA64, the linker does run time linking by default, so we don't
18403 # have to do anything special.
18404 aix_use_runtimelinking=no
18405 exp_sym_flag='-Bexport'
18408 aix_use_runtimelinking=no
18410 # Test if we are trying to use run time linking or normal
18411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18412 # need to do runtime linking.
18413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18414 for ld_flag in $LDFLAGS; do
18417 aix_use_runtimelinking=yes
18425 exp_sym_flag='-bexport'
18426 no_entry_flag='-bnoentry'
18429 # When large executables or shared objects are built, AIX ld can
18430 # have problems creating the table of contents. If linking a library
18431 # or program results in "error TOC overflow" add -mminimal-toc to
18432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18435 archive_cmds_CXX=''
18436 hardcode_direct_CXX=yes
18437 hardcode_libdir_separator_CXX=':'
18438 link_all_deplibs_CXX=yes
18440 if test "$GXX" = yes; then
18441 case $host_os in aix4.[012]|aix4.[012].*)
18442 # We only want to do this on AIX 4.2 and lower, the check
18443 # below for broken collect2 doesn't work under 4.3+
18444 collect2name=`${CC} -print-prog-name=collect2`
18445 if test -f "$collect2name" && \
18446 strings "$collect2name" | grep resolve_lib_name >/dev/null
18448 # We have reworked collect2
18449 hardcode_direct_CXX=yes
18451 # We have old collect2
18452 hardcode_direct_CXX=unsupported
18453 # It fails to find uninstalled libraries when the uninstalled
18454 # path is not listed in the libpath. Setting hardcode_minus_L
18455 # to unsupported forces relinking
18456 hardcode_minus_L_CXX=yes
18457 hardcode_libdir_flag_spec_CXX='-L$libdir'
18458 hardcode_libdir_separator_CXX=
18462 shared_flag='-shared'
18463 if test "$aix_use_runtimelinking" = yes; then
18464 shared_flag="$shared_flag "'${wl}-G'
18468 if test "$host_cpu" = ia64; then
18469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18470 # chokes on -Wl,-G. The following line is correct:
18473 if test "$aix_use_runtimelinking" = yes; then
18474 shared_flag='${wl}-G'
18476 shared_flag='${wl}-bM:SRE'
18481 # It seems that -bexpall does not export symbols beginning with
18482 # underscore (_), so it is better to generate a list of symbols to export.
18483 always_export_symbols_CXX=yes
18484 if test "$aix_use_runtimelinking" = yes; then
18485 # Warning - without using the other runtime loading flags (-brtl),
18486 # -berok will link without error, but may produce a broken library.
18487 allow_undefined_flag_CXX='-berok'
18488 # Determine the default libpath from the value encoded in an empty executable.
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18513 grep -v '^ *+' conftest.er1 >conftest.err
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18541 # Check for a 64-bit object if we didn't find anything.
18542 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; }
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18551 rm -f core conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18555 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18557 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"
18559 if test "$host_cpu" = ia64; then
18560 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18561 allow_undefined_flag_CXX="-z nodefs"
18562 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"
18564 # Determine the default libpath from the value encoded in an empty executable.
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_link") 2>conftest.er1
18589 grep -v '^ *+' conftest.er1 >conftest.err
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest$ac_exeext'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18617 # Check for a 64-bit object if we didn't find anything.
18618 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; }
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18627 rm -f core conftest.err conftest.$ac_objext \
18628 conftest$ac_exeext conftest.$ac_ext
18629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18632 # Warning - without using the other run time loading flags,
18633 # -berok will link without error, but may produce a broken library.
18634 no_undefined_flag_CXX=' ${wl}-bernotok'
18635 allow_undefined_flag_CXX=' ${wl}-berok'
18636 # Exported symbols can be pulled into shared objects from archives
18637 whole_archive_flag_spec_CXX='$convenience'
18638 archive_cmds_need_lc_CXX=yes
18639 # This is similar to how AIX traditionally builds its shared libraries.
18640 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'
18646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647 allow_undefined_flag_CXX=unsupported
18648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18649 # support --undefined. This deserves some investigation. FIXME
18650 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657 case $cc_basename in
18659 # FIXME: insert proper C++ library support
18665 cygwin* | mingw* | pw32*)
18666 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18667 # as there is no search path for DLLs.
18668 hardcode_libdir_flag_spec_CXX='-L$libdir'
18669 allow_undefined_flag_CXX=unsupported
18670 always_export_symbols_CXX=no
18671 enable_shared_with_static_runtimes_CXX=yes
18673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18674 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'
18675 # If the export-symbols file already is a .def file (1st line
18676 # is EXPORTS), use it as is; otherwise, prepend...
18677 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18678 cp $export_symbols $output_objdir/$soname.def;
18680 echo EXPORTS > $output_objdir/$soname.def;
18681 cat $export_symbols >> $output_objdir/$soname.def;
18683 $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'
18688 darwin* | rhapsody*)
18690 rhapsody* | darwin1.[012])
18691 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18694 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18697 case ${MACOSX_DEPLOYMENT_TARGET} in
18699 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18702 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18708 archive_cmds_need_lc_CXX=no
18709 hardcode_direct_CXX=no
18710 hardcode_automatic_CXX=yes
18711 hardcode_shlibpath_var_CXX=unsupported
18712 whole_archive_flag_spec_CXX=''
18713 link_all_deplibs_CXX=yes
18715 if test "$GXX" = yes ; then
18716 lt_int_apple_cc_single_mod=no
18717 output_verbose_link_cmd='echo'
18718 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18719 lt_int_apple_cc_single_mod=yes
18721 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18722 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18724 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'
18726 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18728 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18729 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}'
18731 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}'
18733 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}'
18735 case $cc_basename in
18737 output_verbose_link_cmd='echo'
18738 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'
18739 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18741 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}'
18742 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}'
18752 case $cc_basename in
18754 # FIXME: insert proper C++ library support
18758 # Green Hills C++ Compiler
18759 # FIXME: insert proper C++ library support
18763 # FIXME: insert proper C++ library support
18769 # C++ shared libraries reported to be fairly broken before switch to ELF
18773 archive_cmds_need_lc_CXX=no
18775 freebsd* | kfreebsd*-gnu | dragonfly*)
18776 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18784 hardcode_libdir_separator_CXX=:
18785 export_dynamic_flag_spec_CXX='${wl}-E'
18786 hardcode_direct_CXX=yes
18787 hardcode_minus_L_CXX=yes # Not in the search PATH,
18788 # but as the default
18789 # location of the library.
18791 case $cc_basename in
18793 # FIXME: insert proper C++ library support
18797 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'
18798 # Commands to make compiler produce verbose output that lists
18799 # what "hidden" libraries, object files and flags are used when
18800 # linking a shared library.
18802 # There doesn't appear to be a way to prevent this compiler from
18803 # explicitly linking system object files so we need to strip them
18804 # from the output so that they don't get included in the library
18806 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'
18809 if test "$GXX" = yes; then
18810 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'
18812 # FIXME: insert proper C++ library support
18819 if test $with_gnu_ld = no; then
18820 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18821 hardcode_libdir_separator_CXX=:
18825 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18828 export_dynamic_flag_spec_CXX='${wl}-E'
18834 hardcode_direct_CXX=no
18835 hardcode_shlibpath_var_CXX=no
18838 hardcode_direct_CXX=yes
18839 hardcode_minus_L_CXX=yes # Not in the search PATH,
18840 # but as the default
18841 # location of the library.
18845 case $cc_basename in
18847 # FIXME: insert proper C++ library support
18853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18856 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18866 # There doesn't appear to be a way to prevent this compiler from
18867 # explicitly linking system object files so we need to strip them
18868 # from the output so that they don't get included in the library
18870 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'
18873 if test "$GXX" = yes; then
18874 if test $with_gnu_ld = no; then
18877 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18880 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18883 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'
18888 # FIXME: insert proper C++ library support
18895 hardcode_direct_CXX=no
18896 hardcode_shlibpath_var_CXX=no
18897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18898 export_dynamic_flag_spec_CXX='${wl}-E'
18899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18900 # Instead, shared libraries are loaded at an image base (0x10000000 by
18901 # default) and relocated if they conflict, which is a slow very memory
18902 # consuming and fragmenting process. To avoid this, we pick a random,
18903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18905 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'
18906 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'
18909 case $cc_basename in
18912 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'
18914 # Archives containing C++ object files must be created using
18915 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18916 # necessary to make sure instantiated templates are included
18918 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18921 if test "$GXX" = yes; then
18922 if test "$with_gnu_ld" = no; then
18923 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'
18925 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'
18928 link_all_deplibs_CXX=yes
18931 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18932 hardcode_libdir_separator_CXX=:
18935 case $cc_basename in
18937 # Kuck and Associates, Inc. (KAI) C++ Compiler
18939 # KCC will only create a shared library if the output file
18940 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18941 # to its proper name (with version) after linking.
18942 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'
18943 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'
18944 # Commands to make compiler produce verbose output that lists
18945 # what "hidden" libraries, object files and flags are used when
18946 # linking a shared library.
18948 # There doesn't appear to be a way to prevent this compiler from
18949 # explicitly linking system object files so we need to strip them
18950 # from the output so that they don't get included in the library
18952 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'
18954 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18957 # Archives containing C++ object files must be created using
18958 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18959 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18964 # version 8.0 and above of icpc choke on multiply defined symbols
18965 # if we add $predep_objects and $postdep_objects, however 7.1 and
18966 # earlier do not add the objects themselves.
18967 case `$CC -V 2>&1` in
18969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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'
18972 *) # Version 8.0 or newer
18975 ia64*) tmp_idyn=' -i_dynamic';;
18977 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18978 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'
18981 archive_cmds_need_lc_CXX=no
18982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18984 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18987 # Portland Group C++ compiler
18988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18989 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'
18991 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18992 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18993 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'
18997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 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'
19000 runpath_var=LD_RUN_PATH
19001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19002 hardcode_libdir_separator_CXX=:
19004 # Commands to make compiler produce verbose output that lists
19005 # what "hidden" libraries, object files and flags are used when
19006 # linking a shared library.
19008 # There doesn't appear to be a way to prevent this compiler from
19009 # explicitly linking system object files so we need to strip them
19010 # from the output so that they don't get included in the library
19012 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'
19017 # FIXME: insert proper C++ library support
19021 # FIXME: insert proper C++ library support
19025 case $cc_basename in
19027 # FIXME: insert proper C++ library support
19031 # FIXME: insert proper C++ library support
19037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19038 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19040 hardcode_libdir_flag_spec_CXX='-R$libdir'
19041 hardcode_direct_CXX=yes
19042 hardcode_shlibpath_var_CXX=no
19044 # Workaround some broken pre-1.5 toolchains
19045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19048 # C++ shared libraries are fairly broken
19052 hardcode_direct_CXX=yes
19053 hardcode_shlibpath_var_CXX=no
19054 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19057 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19058 export_dynamic_flag_spec_CXX='${wl}-E'
19059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19061 output_verbose_link_cmd='echo'
19064 case $cc_basename in
19066 # Kuck and Associates, Inc. (KAI) C++ Compiler
19068 # KCC will only create a shared library if the output file
19069 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19070 # to its proper name (with version) after linking.
19071 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'
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19074 hardcode_libdir_separator_CXX=:
19076 # Archives containing C++ object files must be created using
19077 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19078 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19082 # Rational C++ 2.4.1
19083 # FIXME: insert proper C++ library support
19087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19088 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'
19090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091 hardcode_libdir_separator_CXX=:
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19097 # There doesn't appear to be a way to prevent this compiler from
19098 # explicitly linking system object files so we need to strip them
19099 # from the output so that they don't get included in the library
19101 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'
19104 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19105 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19106 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'
19108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19109 hardcode_libdir_separator_CXX=:
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19117 # FIXME: insert proper C++ library support
19124 case $cc_basename in
19126 # Kuck and Associates, Inc. (KAI) C++ Compiler
19128 # KCC will only create a shared library if the output file
19129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19130 # to its proper name (with version) after linking.
19131 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'
19133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19134 hardcode_libdir_separator_CXX=:
19136 # Archives containing C++ object files must be created using
19137 # the KAI C++ compiler.
19138 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19141 # Rational C++ 2.4.1
19142 # FIXME: insert proper C++ library support
19146 allow_undefined_flag_CXX=' -expect_unresolved \*'
19147 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'
19148 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19149 echo "-hidden">> $lib.exp~
19150 $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~
19153 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19154 hardcode_libdir_separator_CXX=:
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19160 # There doesn't appear to be a way to prevent this compiler from
19161 # explicitly linking system object files so we need to strip them
19162 # from the output so that they don't get included in the library
19164 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'
19167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19169 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'
19171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19172 hardcode_libdir_separator_CXX=:
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19180 # FIXME: insert proper C++ library support
19187 # FIXME: insert proper C++ library support
19191 case $cc_basename in
19194 # FIXME: insert proper C++ library support
19199 # FIXME: insert proper C++ library support
19203 # FIXME: insert proper C++ library support
19209 case $cc_basename in
19211 # Sun C++ 4.2, 5.x and Centerline C++
19212 archive_cmds_need_lc_CXX=yes
19213 no_undefined_flag_CXX=' -zdefs'
19214 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19216 $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'
19218 hardcode_libdir_flag_spec_CXX='-R$libdir'
19219 hardcode_shlibpath_var_CXX=no
19221 solaris2.[0-5] | solaris2.[0-5].*) ;;
19223 # The C++ compiler is used as linker so we must use $wl
19224 # flag to pass the commands to the underlying system
19225 # linker. We must also pass each convience library through
19226 # to the system linker between allextract/defaultextract.
19227 # The C++ compiler will combine linker options so we
19228 # cannot just pass the convience library names through
19230 # Supported since Solaris 2.6 (maybe 2.5.1?)
19231 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'
19234 link_all_deplibs_CXX=yes
19236 output_verbose_link_cmd='echo'
19238 # Archives containing C++ object files must be created using
19239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19240 # necessary to make sure instantiated templates are included
19242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19245 # Green Hills C++ Compiler
19246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19248 # The C++ compiler must be used to create the archive.
19249 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19252 # GNU C++ compiler with Solaris linker
19253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19254 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19255 if $CC --version | grep -v '^2\.7' > /dev/null; then
19256 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
19263 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19265 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19267 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19268 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19269 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19274 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19283 no_undefined_flag_CXX='${wl}-z,text'
19284 archive_cmds_need_lc_CXX=no
19285 hardcode_shlibpath_var_CXX=no
19286 runpath_var='LD_RUN_PATH'
19288 case $cc_basename in
19290 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19299 sysv5* | sco3.2v5* | sco5v6*)
19300 # Note: We can NOT use -z defs as we might desire, because we do not
19301 # link with -lc, and that would cause any symbols used from libc to
19302 # always be unresolved, which means just about no library would
19303 # ever link correctly. If we're not using GNU ld we use -z text
19304 # though, which does catch some bad symbols but isn't as heavy-handed
19306 # For security reasons, it is highly recommended that you always
19307 # use absolute paths for naming shared libraries, and exclude the
19308 # DT_RUNPATH tag from executables and libraries. But doing so
19309 # requires that you compile everything twice, which is a pain.
19310 # So that behaviour is only enabled if SCOABSPATH is set to a
19311 # non-empty value in the environment. Most likely only useful for
19312 # creating official distributions of packages.
19313 # This is a hack until libtool officially supports absolute path
19314 # names for shared libraries.
19315 no_undefined_flag_CXX='${wl}-z,text'
19316 allow_undefined_flag_CXX='${wl}-z,nodefs'
19317 archive_cmds_need_lc_CXX=no
19318 hardcode_shlibpath_var_CXX=no
19319 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19320 hardcode_libdir_separator_CXX=':'
19321 link_all_deplibs_CXX=yes
19322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19323 runpath_var='LD_RUN_PATH'
19325 case $cc_basename in
19327 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19331 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19337 case $cc_basename in
19339 # NonStop-UX NCC 3.20
19340 # FIXME: insert proper C++ library support
19344 # FIXME: insert proper C++ library support
19350 # FIXME: insert proper C++ library support
19354 # FIXME: insert proper C++ library support
19358 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19359 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19360 test "$ld_shlibs_CXX" = no && can_build_shared=no
19366 cat > conftest.$ac_ext <<EOF
19370 Foo (void) { a = 0; }
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; then
19381 # Parse the compiler output and extract the necessary
19382 # objects, libraries and library flags.
19384 # Sentinel used to keep track of whether or not we are before
19385 # the conftest object file.
19386 pre_test_object_deps_done=no
19388 # The `*' in the case matches for architectures that use `case' in
19389 # $output_verbose_cmd can trigger glob expansion during the loop
19390 # eval without this substitution.
19391 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19393 for p in `eval $output_verbose_link_cmd`; do
19397 # Some compilers place space between "-{L,R}" and the path.
19398 # Remove the space.
19399 if test $p = "-L" \
19400 || test $p = "-R"; then
19407 if test "$pre_test_object_deps_done" = no; then
19410 # Internal compiler library paths should come after those
19411 # provided the user. The postdeps already come after the
19412 # user supplied libs so there is no need to process them.
19413 if test -z "$compiler_lib_search_path_CXX"; then
19414 compiler_lib_search_path_CXX="${prev}${p}"
19416 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19419 # The "-l" case would never come before the object being
19420 # linked, so don't bother handling this case.
19423 if test -z "$postdeps_CXX"; then
19424 postdeps_CXX="${prev}${p}"
19426 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19432 # This assumes that the test object file only shows up
19433 # once in the compiler output.
19434 if test "$p" = "conftest.$objext"; then
19435 pre_test_object_deps_done=yes
19439 if test "$pre_test_object_deps_done" = no; then
19440 if test -z "$predep_objects_CXX"; then
19441 predep_objects_CXX="$p"
19443 predep_objects_CXX="$predep_objects_CXX $p"
19446 if test -z "$postdep_objects_CXX"; then
19447 postdep_objects_CXX="$p"
19449 postdep_objects_CXX="$postdep_objects_CXX $p"
19454 *) ;; # Ignore the rest.
19462 echo "libtool.m4: error: problem compiling CXX test program"
19465 $rm -f confest.$objext
19467 # PORTME: override above test on systems where it is broken
19470 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19471 # hack all around it, let's just trust "g++" to DTRT.
19472 predep_objects_CXX=
19473 postdep_objects_CXX=
19478 case $cc_basename in
19480 # Adding this requires a known-good setup of shared libraries for
19481 # Sun compiler versions before 5.6, else PIC objects from an old
19482 # archive will be linked into the output, leading to subtle bugs.
19483 postdeps_CXX='-lCstd -lCrun'
19490 case " $postdeps_CXX " in
19491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19494 lt_prog_compiler_wl_CXX=
19495 lt_prog_compiler_pic_CXX=
19496 lt_prog_compiler_static_CXX=
19498 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19501 # C++ specific cases for pic, static, wl, etc.
19502 if test "$GXX" = yes; then
19503 lt_prog_compiler_wl_CXX='-Wl,'
19504 lt_prog_compiler_static_CXX='-static'
19508 # All AIX code is PIC.
19509 if test "$host_cpu" = ia64; then
19510 # AIX 5 now supports IA64 processor
19511 lt_prog_compiler_static_CXX='-Bstatic'
19515 # FIXME: we need at least 68020 code to build shared libraries, but
19516 # adding the `-m68020' flag to GCC prevents building anything better,
19518 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19521 # PIC is the default for these OSes.
19523 mingw* | os2* | pw32*)
19524 # This hack is so that the source file can tell whether it is being
19525 # built for inclusion in a dll (and should export symbols for example).
19526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19528 darwin* | rhapsody*)
19529 # PIC is the default on this platform
19530 # Common symbols not allowed in MH_DYLIB files
19531 lt_prog_compiler_pic_CXX='-fno-common'
19534 # DJGPP does not support shared libraries at all
19535 lt_prog_compiler_pic_CXX=
19538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19539 # Instead, we relocate shared libraries at runtime.
19542 if test -d /usr/nec; then
19543 lt_prog_compiler_pic_CXX=-Kconform_pic
19547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19548 # not for PA HP-UX.
19553 lt_prog_compiler_pic_CXX='-fPIC'
19558 lt_prog_compiler_pic_CXX='-fPIC'
19564 # All AIX code is PIC.
19565 if test "$host_cpu" = ia64; then
19566 # AIX 5 now supports IA64 processor
19567 lt_prog_compiler_static_CXX='-Bstatic'
19569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19573 case $cc_basename in
19575 # Green Hills C++ Compiler
19576 # _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"
19581 # PIC is the default on this platform
19582 # Common symbols not allowed in MH_DYLIB files
19583 case $cc_basename in
19585 lt_prog_compiler_pic_CXX='-qnocommon'
19586 lt_prog_compiler_wl_CXX='-Wl,'
19591 case $cc_basename in
19593 lt_prog_compiler_pic_CXX='-KPIC'
19596 # Green Hills C++ Compiler
19597 lt_prog_compiler_pic_CXX='-pic'
19603 freebsd* | kfreebsd*-gnu | dragonfly*)
19604 # FreeBSD uses GNU C++
19606 hpux9* | hpux10* | hpux11*)
19607 case $cc_basename in
19609 lt_prog_compiler_wl_CXX='-Wl,'
19610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19611 if test "$host_cpu" != ia64; then
19612 lt_prog_compiler_pic_CXX='+Z'
19616 lt_prog_compiler_wl_CXX='-Wl,'
19617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19623 lt_prog_compiler_pic_CXX='+Z'
19632 # This is c89, which is MS Visual C++ (no shared libs)
19633 # Anyone wants to do a port?
19635 irix5* | irix6* | nonstopux*)
19636 case $cc_basename in
19638 lt_prog_compiler_wl_CXX='-Wl,'
19639 lt_prog_compiler_static_CXX='-non_shared'
19640 # CC pic flag -KPIC is the default.
19647 case $cc_basename in
19650 lt_prog_compiler_wl_CXX='--backend -Wl,'
19651 lt_prog_compiler_pic_CXX='-fPIC'
19655 lt_prog_compiler_wl_CXX='-Wl,'
19656 lt_prog_compiler_pic_CXX='-KPIC'
19657 lt_prog_compiler_static_CXX='-static'
19660 # Portland Group C++ compiler.
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-fpic'
19663 lt_prog_compiler_static_CXX='-Bstatic'
19667 # Make sure the PIC flag is empty. It appears that all Alpha
19668 # Linux and Compaq Tru64 Unix objects are PIC.
19669 lt_prog_compiler_pic_CXX=
19670 lt_prog_compiler_static_CXX='-non_shared'
19681 case $cc_basename in
19683 lt_prog_compiler_pic_CXX='-W c,exportall'
19691 osf3* | osf4* | osf5*)
19692 case $cc_basename in
19694 lt_prog_compiler_wl_CXX='--backend -Wl,'
19697 # Rational C++ 2.4.1
19698 lt_prog_compiler_pic_CXX='-pic'
19701 # Digital/Compaq C++
19702 lt_prog_compiler_wl_CXX='-Wl,'
19703 # Make sure the PIC flag is empty. It appears that all Alpha
19704 # Linux and Compaq Tru64 Unix objects are PIC.
19705 lt_prog_compiler_pic_CXX=
19706 lt_prog_compiler_static_CXX='-non_shared'
19715 case $cc_basename in
19717 # Sun C++ 4.2, 5.x and Centerline C++
19718 lt_prog_compiler_pic_CXX='-KPIC'
19719 lt_prog_compiler_static_CXX='-Bstatic'
19720 lt_prog_compiler_wl_CXX='-Qoption ld '
19723 # Green Hills C++ Compiler
19724 lt_prog_compiler_pic_CXX='-PIC'
19731 case $cc_basename in
19734 lt_prog_compiler_pic_CXX='-pic'
19735 lt_prog_compiler_static_CXX='-Bstatic'
19739 lt_prog_compiler_pic_CXX='-pic'
19746 case $cc_basename in
19748 # NonStop-UX NCC 3.20
19749 lt_prog_compiler_pic_CXX='-KPIC'
19755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19756 case $cc_basename in
19758 lt_prog_compiler_wl_CXX='-Wl,'
19759 lt_prog_compiler_pic_CXX='-KPIC'
19760 lt_prog_compiler_static_CXX='-Bstatic'
19767 lt_prog_compiler_can_build_shared_CXX=no
19772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19776 # Check to make sure the PIC flag actually works.
19778 if test -n "$lt_prog_compiler_pic_CXX"; then
19780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 lt_prog_compiler_pic_works_CXX=no
19786 ac_outfile=conftest.$ac_objext
19787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19788 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19789 # Insert the option either (1) after the last *FLAGS variable, or
19790 # (2) before a word containing "conftest.", or (3) at the end.
19791 # Note that $ac_compile itself does not contain backslashes and begins
19792 # with a dollar sign (not a hyphen), so the echo should work correctly.
19793 # The option is referenced via a variable to avoid confusing sed.
19794 lt_compile=`echo "$ac_compile" | $SED \
19795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19797 -e 's:$: $lt_compiler_flag:'`
19798 (eval echo "\"\$as_me:19798: $lt_compile\"" >&5)
19799 (eval "$lt_compile" 2>conftest.err)
19801 cat conftest.err >&5
19802 echo "$as_me:19802: \$? = $ac_status" >&5
19803 if (exit $ac_status) && test -s "$ac_outfile"; then
19804 # The compiler can only warn and ignore the option if not recognized
19805 # So say no if there are warnings other than the usual output.
19806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19809 lt_prog_compiler_pic_works_CXX=yes
19815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19816 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19818 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19819 case $lt_prog_compiler_pic_CXX in
19821 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19824 lt_prog_compiler_pic_CXX=
19825 lt_prog_compiler_can_build_shared_CXX=no
19830 # For platforms which do not support PIC, -DPIC is meaningless:
19832 lt_prog_compiler_pic_CXX=
19835 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19840 # Check to make sure the static flag actually works.
19842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19843 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19845 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 lt_prog_compiler_static_works_CXX=no
19849 save_LDFLAGS="$LDFLAGS"
19850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19853 # The linker can only warn and ignore the option if not recognized
19854 # So say no if there are warnings
19855 if test -s conftest.err; then
19856 # Append any errors to the config.log.
19857 cat conftest.err 1>&5
19858 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19860 if diff conftest.exp conftest.er2 >/dev/null; then
19861 lt_prog_compiler_static_works_CXX=yes
19864 lt_prog_compiler_static_works_CXX=yes
19868 LDFLAGS="$save_LDFLAGS"
19871 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19872 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19874 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19877 lt_prog_compiler_static_CXX=
19881 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 lt_cv_prog_compiler_c_o_CXX=no
19887 $rm -r conftest 2>/dev/null
19891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19893 lt_compiler_flag="-o out/conftest2.$ac_objext"
19894 # Insert the option either (1) after the last *FLAGS variable, or
19895 # (2) before a word containing "conftest.", or (3) at the end.
19896 # Note that $ac_compile itself does not contain backslashes and begins
19897 # with a dollar sign (not a hyphen), so the echo should work correctly.
19898 lt_compile=`echo "$ac_compile" | $SED \
19899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19901 -e 's:$: $lt_compiler_flag:'`
19902 (eval echo "\"\$as_me:19902: $lt_compile\"" >&5)
19903 (eval "$lt_compile" 2>out/conftest.err)
19905 cat out/conftest.err >&5
19906 echo "$as_me:19906: \$? = $ac_status" >&5
19907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19909 # The compiler can only warn and ignore the option if not recognized
19910 # So say no if there are warnings
19911 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19914 lt_cv_prog_compiler_c_o_CXX=yes
19919 # SGI C++ compiler will create directory out/ii_files/ for
19920 # template instantiation
19921 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19922 $rm out/* && rmdir out
19928 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19932 hard_links="nottested"
19933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19934 # do not overwrite the value of need_locks provided by the user
19935 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19941 ln conftest.a conftest.b 2>&5 || hard_links=no
19942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943 { echo "$as_me:$LINENO: result: $hard_links" >&5
19944 echo "${ECHO_T}$hard_links" >&6; }
19945 if test "$hard_links" = no; then
19946 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19954 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19960 # If we're using GNU nm, then we don't want the "-C" option.
19961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19963 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'
19965 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'
19969 export_symbols_cmds_CXX="$ltdll_cmds"
19972 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'
19975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19979 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19980 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19981 test "$ld_shlibs_CXX" = no && can_build_shared=no
19984 # Do we need to explicitly link libc?
19986 case "x$archive_cmds_need_lc_CXX" in
19988 # Assume -lc should be added
19989 archive_cmds_need_lc_CXX=yes
19991 if test "$enable_shared" = yes && test "$GCC" = yes; then
19992 case $archive_cmds_CXX in
19994 # FIXME: we may have to deal with multi-command sequences.
19997 # Test whether the compiler implicitly links with -lc since on some
19998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19999 # to ld, don't add -lc before -lgcc.
20000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } 2>conftest.err; then
20012 libobjs=conftest.$ac_objext
20014 wl=$lt_prog_compiler_wl_CXX
20015 pic_flag=$lt_prog_compiler_pic_CXX
20021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20022 allow_undefined_flag_CXX=
20023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20024 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }
20029 archive_cmds_need_lc_CXX=no
20031 archive_cmds_need_lc_CXX=yes
20033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20035 cat conftest.err 1>&5
20038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20048 library_names_spec=
20049 libname_spec='lib$name'
20053 postuninstall_cmds=
20057 shlibpath_overrides_runpath=unknown
20059 dynamic_linker="$host_os ld.so"
20060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20061 if test "$GCC" = yes; then
20062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20063 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20064 # if the path contains ";" then we assume it to be the separator
20065 # otherwise default to the standard path separator (i.e. ":") - it is
20066 # assumed that no part of a normal pathname contains ";" but that should
20067 # okay in the real world where ";" in dirpaths is itself problematic.
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20075 need_lib_prefix=unknown
20076 hardcode_into_libs=no
20078 # when you set need_version to no, make sure it does not cause -set_version
20079 # flags to be left without arguments
20080 need_version=unknown
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20086 shlibpath_var=LIBPATH
20088 # AIX 3 has no versioning support, so we append a major version to the name.
20089 soname_spec='${libname}${release}${shared_ext}$major'
20096 hardcode_into_libs=yes
20097 if test "$host_cpu" = ia64; then
20098 # AIX 5 supports IA64
20099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20100 shlibpath_var=LD_LIBRARY_PATH
20102 # With GCC up to 2.95.x, collect2 would create an import file
20103 # for dependence libraries. The import file would start with
20104 # the line `#! .'. This would cause the generated library to
20105 # depend on `.', always an invalid library. This was fixed in
20106 # development snapshots of GCC prior to 3.0.
20108 aix4 | aix4.[01] | aix4.[01].*)
20109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20111 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20114 can_build_shared=no
20118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20119 # soname into executable. Probably we can add versioning support to
20120 # collect2, so additional links can be useful in future.
20121 if test "$aix_use_runtimelinking" = yes; then
20122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20123 # instead of lib<name>.a to let people know that these are not
20124 # typical AIX shared libraries.
20125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20127 # We preserve .a as extension for shared libraries through AIX4.2
20128 # and later when we are not doing run time linking.
20129 library_names_spec='${libname}${release}.a $libname.a'
20130 soname_spec='${libname}${release}${shared_ext}$major'
20132 shlibpath_var=LIBPATH
20137 library_names_spec='$libname.ixlibrary $libname.a'
20138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20139 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'
20143 library_names_spec='${libname}${shared_ext}'
20144 dynamic_linker="$host_os ld.so"
20145 shlibpath_var=LIBRARY_PATH
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20157 # the default ld.so.conf also contains /usr/contrib/lib and
20158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20159 # libtool to hard-code these into programs
20162 cygwin* | mingw* | pw32*)
20163 version_type=windows
20168 case $GCC,$host_os in
20169 yes,cygwin* | yes,mingw* | yes,pw32*)
20170 library_names_spec='$libname.dll.a'
20171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20172 postinstall_cmds='base_file=`basename \${file}`~
20173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20174 dldir=$destdir/`dirname \$dlpath`~
20175 test -d \$dldir || mkdir -p \$dldir~
20176 $install_prog $dir/$dlname \$dldir/$dlname~
20177 chmod a+x \$dldir/$dlname'
20178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20179 dlpath=$dir/\$dldll~
20181 shlibpath_overrides_runpath=yes
20185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20190 # MinGW DLLs use traditional 'lib' prefix
20191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20194 # It is most probably a Windows format PATH printed by
20195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20196 # path with ; separators, and with drive letters. We can handle the
20197 # drive letters (cygwin fileutils understands them), so leave them,
20198 # especially as we might pass files found there to a mingw objdump,
20199 # which wouldn't understand a cygwinified path. Ahh.
20200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20206 # pw32 DLLs use 'pw' prefix rather than 'lib'
20207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20216 dynamic_linker='Win32 ld.exe'
20217 # FIXME: first we should search . and the directory the executable is in
20221 darwin* | rhapsody*)
20222 dynamic_linker="$host_os dyld"
20223 version_type=darwin
20226 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20227 soname_spec='${libname}${release}${major}$shared_ext'
20228 shlibpath_overrides_runpath=yes
20229 shlibpath_var=DYLD_LIBRARY_PATH
20230 shrext_cmds='.dylib'
20231 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20232 if test "$GCC" = yes; then
20233 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"`
20235 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 shlibpath_overrides_runpath=no
20261 hardcode_into_libs=yes
20262 dynamic_linker='GNU ld.so'
20265 freebsd* | dragonfly*)
20266 # DragonFly does not have aout. When/if they implement a new
20267 # versioning mechanism, adjust this.
20268 if test -x /usr/bin/objformat; then
20269 objformat=`/usr/bin/objformat`
20272 freebsd[123]*) objformat=aout ;;
20273 *) objformat=elf ;;
20276 version_type=freebsd-$objformat
20277 case $version_type in
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20288 shlibpath_var=LD_LIBRARY_PATH
20291 shlibpath_overrides_runpath=yes
20293 freebsd3.[01]* | freebsdelf3.[01]*)
20294 shlibpath_overrides_runpath=yes
20295 hardcode_into_libs=yes
20297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20299 shlibpath_overrides_runpath=no
20300 hardcode_into_libs=yes
20302 freebsd*) # from 4.6 on
20303 shlibpath_overrides_runpath=yes
20304 hardcode_into_libs=yes
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 hardcode_into_libs=yes
20319 hpux9* | hpux10* | hpux11*)
20320 # Give a soname corresponding to the major version so that dld.sl refuses to
20321 # link against other versions.
20328 hardcode_into_libs=yes
20329 dynamic_linker="$host_os dld.so"
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 if test "X$HPUX_IA64_MODE" = X32; then
20335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20343 hardcode_into_libs=yes
20344 dynamic_linker="$host_os dld.sl"
20345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20354 dynamic_linker="$host_os dld.sl"
20355 shlibpath_var=SHLIB_PATH
20356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20362 postinstall_cmds='chmod 555 $lib'
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 shlibpath_overrides_runpath=no
20374 hardcode_into_libs=yes
20377 irix5* | irix6* | nonstopux*)
20379 nonstopux*) version_type=nonstopux ;;
20381 if test "$lt_cv_prog_gnu_ld" = yes; then
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20392 irix5* | nonstopux*)
20393 libsuff= shlibsuff=
20396 case $LD in # libtool.m4 will add one of these switches to LD
20397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20398 libsuff= shlibsuff= libmagic=32-bit;;
20399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20400 libsuff=32 shlibsuff=N32 libmagic=N32;;
20401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20403 *) libsuff= shlibsuff= libmagic=never-match;;
20407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20408 shlibpath_overrides_runpath=no
20409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20411 hardcode_into_libs=yes
20414 # No shared lib support for Linux oldld, aout, or coff.
20415 linux*oldld* | linux*aout* | linux*coff*)
20419 # This must be Linux ELF.
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 soname_spec='${libname}${release}${shared_ext}$major'
20426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20427 shlibpath_var=LD_LIBRARY_PATH
20428 shlibpath_overrides_runpath=no
20429 # This implies no fast_install, which is unacceptable.
20430 # Some rework will be needed to allow for fast_install
20431 # before this can be enabled.
20432 hardcode_into_libs=yes
20434 # Append ld.so.conf contents to the search path
20435 if test -f /etc/ld.so.conf; then
20436 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' ' '`
20437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20440 # We used to test for /lib/ld.so.1 and disable shared libraries on
20441 # powerpc, because MkLinux only supported shared libraries with the
20442 # GNU dynamic linker. Since this was broken with cross compilers,
20443 # most powerpc-linux boxes support dynamic linking these days and
20444 # people can always --disable-shared, the test was removed, and we
20445 # assume the GNU/Linux dynamic linker is in use.
20446 dynamic_linker='GNU/Linux ld.so'
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 shlibpath_overrides_runpath=no
20457 hardcode_into_libs=yes
20458 dynamic_linker='GNU ld.so'
20465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20468 dynamic_linker='NetBSD (a.out) ld.so'
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 dynamic_linker='NetBSD ld.elf_so'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 hardcode_into_libs=yes
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 shlibpath_overrides_runpath=yes
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 shlibpath_var=LD_LIBRARY_PATH
20493 shlibpath_overrides_runpath=yes
20498 sys_lib_dlsearch_path_spec="/usr/lib"
20500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20502 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20503 *) need_version=no ;;
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20510 openbsd2.[89] | openbsd2.[89].*)
20511 shlibpath_overrides_runpath=no
20514 shlibpath_overrides_runpath=yes
20518 shlibpath_overrides_runpath=yes
20523 libname_spec='$name'
20526 library_names_spec='$libname${shared_ext} $libname.a'
20527 dynamic_linker='OS/2 ld.exe'
20528 shlibpath_var=LIBPATH
20531 osf3* | osf4* | osf5*)
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20550 hardcode_into_libs=yes
20551 # ldd complains unless libraries are executable
20552 postinstall_cmds='chmod +x $lib'
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 shlibpath_overrides_runpath=yes
20561 if test "$with_gnu_ld" = yes; then
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 soname_spec='${libname}${release}${shared_ext}$major'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 case $host_vendor in
20574 shlibpath_overrides_runpath=no
20576 export_dynamic_flag_spec='${wl}-Blargedynsym'
20577 runpath_var=LD_RUN_PATH
20585 shlibpath_overrides_runpath=no
20586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20592 if test -d /usr/nec ;then
20594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20595 soname_spec='$libname${shared_ext}.$major'
20596 shlibpath_var=LD_LIBRARY_PATH
20600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20601 version_type=freebsd-elf
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 hardcode_into_libs=yes
20608 if test "$with_gnu_ld" = yes; then
20609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20610 shlibpath_overrides_runpath=no
20612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20613 shlibpath_overrides_runpath=yes
20616 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20620 sys_lib_dlsearch_path_spec='/usr/lib'
20625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 soname_spec='${libname}${release}${shared_ext}$major'
20627 shlibpath_var=LD_LIBRARY_PATH
20634 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20635 echo "${ECHO_T}$dynamic_linker" >&6; }
20636 test "$dynamic_linker" = no && can_build_shared=no
20638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20639 if test "$GCC" = yes; then
20640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20645 hardcode_action_CXX=
20646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20647 test -n "$runpath_var_CXX" || \
20648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20650 # We can hardcode non-existant directories.
20651 if test "$hardcode_direct_CXX" != no &&
20652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20653 # have to relink, otherwise we might link with an installed library
20654 # when we should be linking with a yet-to-be-installed one
20655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20656 test "$hardcode_minus_L_CXX" != no; then
20657 # Linking always hardcodes the temporary library directory.
20658 hardcode_action_CXX=relink
20660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20661 hardcode_action_CXX=immediate
20664 # We cannot hardcode anything, or else we can only hardcode existing
20666 hardcode_action_CXX=unsupported
20668 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20669 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20671 if test "$hardcode_action_CXX" = relink; then
20672 # Fast installation is not supported
20673 enable_fast_install=no
20674 elif test "$shlibpath_overrides_runpath" = yes ||
20675 test "$enable_shared" = no; then
20676 # Fast installation is not necessary
20677 enable_fast_install=needless
20681 # The else clause should only fire when bootstrapping the
20682 # libtool distribution, otherwise you forgot to ship ltmain.sh
20683 # with your package, and you will get complaints that there are
20684 # no rules to generate ltmain.sh.
20685 if test -f "$ltmain"; then
20686 # See if we are running on zsh, and set the options which allow our commands through
20687 # without removal of \ escapes.
20688 if test -n "${ZSH_VERSION+set}" ; then
20689 setopt NO_GLOB_SUBST
20691 # Now quote all the things that may contain metacharacters while being
20692 # careful not to overquote the AC_SUBSTed values. We take copies of the
20693 # variables and quote the copies for generation of the libtool script.
20694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20698 deplibs_check_method reload_flag reload_cmds need_locks \
20699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20700 lt_cv_sys_global_symbol_to_c_name_address \
20701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20702 old_postinstall_cmds old_postuninstall_cmds \
20706 lt_prog_compiler_wl_CXX \
20707 lt_prog_compiler_pic_CXX \
20708 lt_prog_compiler_static_CXX \
20709 lt_prog_compiler_no_builtin_flag_CXX \
20710 export_dynamic_flag_spec_CXX \
20711 thread_safe_flag_spec_CXX \
20712 whole_archive_flag_spec_CXX \
20713 enable_shared_with_static_runtimes_CXX \
20714 old_archive_cmds_CXX \
20715 old_archive_from_new_cmds_CXX \
20716 predep_objects_CXX \
20717 postdep_objects_CXX \
20720 compiler_lib_search_path_CXX \
20722 archive_expsym_cmds_CXX \
20723 postinstall_cmds_CXX \
20724 postuninstall_cmds_CXX \
20725 old_archive_from_expsyms_cmds_CXX \
20726 allow_undefined_flag_CXX \
20727 no_undefined_flag_CXX \
20728 export_symbols_cmds_CXX \
20729 hardcode_libdir_flag_spec_CXX \
20730 hardcode_libdir_flag_spec_ld_CXX \
20731 hardcode_libdir_separator_CXX \
20732 hardcode_automatic_CXX \
20734 module_expsym_cmds_CXX \
20735 lt_cv_prog_compiler_c_o_CXX \
20736 exclude_expsyms_CXX \
20737 include_expsyms_CXX; do
20740 old_archive_cmds_CXX | \
20741 old_archive_from_new_cmds_CXX | \
20742 archive_cmds_CXX | \
20743 archive_expsym_cmds_CXX | \
20744 module_cmds_CXX | \
20745 module_expsym_cmds_CXX | \
20746 old_archive_from_expsyms_cmds_CXX | \
20747 export_symbols_cmds_CXX | \
20748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20749 postinstall_cmds | postuninstall_cmds | \
20750 old_postinstall_cmds | old_postuninstall_cmds | \
20751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20752 # Double-quote double-evaled strings.
20753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20762 *'\$0 --fallback-echo"')
20763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20769 cat <<__EOF__ >> "$cfgfile"
20770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20774 # Shell to use when invoking shell scripts.
20777 # Whether or not to build shared libraries.
20778 build_libtool_libs=$enable_shared
20780 # Whether or not to build static libraries.
20781 build_old_libs=$enable_static
20783 # Whether or not to add -lc for building shared libraries.
20784 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20786 # Whether or not to disallow shared libs when runtime libs are static
20787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20789 # Whether or not to optimize for fast installation.
20790 fast_install=$enable_fast_install
20793 host_alias=$host_alias
20797 # The build system.
20798 build_alias=$build_alias
20802 # An echo program that does not interpret backslashes.
20807 AR_FLAGS=$lt_AR_FLAGS
20812 # LTCC compiler flags.
20813 LTCFLAGS=$lt_LTCFLAGS
20815 # A language-specific compiler.
20816 CC=$lt_compiler_CXX
20818 # Is the compiler the GNU C compiler?
20824 # The linker used to build libraries.
20827 # Whether we need hard or soft links.
20830 # A BSD-compatible nm program.
20833 # A symbol stripping program
20836 # Used to examine libraries when file_magic_cmd begins "file"
20837 MAGIC_CMD=$MAGIC_CMD
20839 # Used on cygwin: DLL creation program.
20842 # Used on cygwin: object dumper.
20845 # Used on cygwin: assembler.
20848 # The name of the directory that contains temporary libtool files.
20851 # How to create reloadable object files.
20852 reload_flag=$lt_reload_flag
20853 reload_cmds=$lt_reload_cmds
20855 # How to pass a linker flag through the compiler.
20856 wl=$lt_lt_prog_compiler_wl_CXX
20858 # Object file suffix (normally "o").
20859 objext="$ac_objext"
20861 # Old archive suffix (normally "a").
20864 # Shared library suffix (normally ".so").
20865 shrext_cmds='$shrext_cmds'
20867 # Executable file suffix (normally "").
20870 # Additional compiler flags for building library objects.
20871 pic_flag=$lt_lt_prog_compiler_pic_CXX
20874 # What is the maximum length of a command?
20875 max_cmd_len=$lt_cv_sys_max_cmd_len
20877 # Does compiler simultaneously support -c and -o options?
20878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20880 # Must we lock files when doing compilation?
20881 need_locks=$lt_need_locks
20883 # Do we need the lib prefix for modules?
20884 need_lib_prefix=$need_lib_prefix
20886 # Do we need a version for libraries?
20887 need_version=$need_version
20889 # Whether dlopen is supported.
20890 dlopen_support=$enable_dlopen
20892 # Whether dlopen of programs is supported.
20893 dlopen_self=$enable_dlopen_self
20895 # Whether dlopen of statically linked programs is supported.
20896 dlopen_self_static=$enable_dlopen_self_static
20898 # Compiler flag to prevent dynamic linking.
20899 link_static_flag=$lt_lt_prog_compiler_static_CXX
20901 # Compiler flag to turn off builtin functions.
20902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20904 # Compiler flag to allow reflexive dlopens.
20905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20907 # Compiler flag to generate shared objects directly from archives.
20908 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20910 # Compiler flag to generate thread-safe objects.
20911 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20913 # Library versioning type.
20914 version_type=$version_type
20916 # Format of library name prefix.
20917 libname_spec=$lt_libname_spec
20919 # List of archive names. First name is the real one, the rest are links.
20920 # The last name is the one that the linker finds with -lNAME.
20921 library_names_spec=$lt_library_names_spec
20923 # The coded name of the library, if different from the real name.
20924 soname_spec=$lt_soname_spec
20926 # Commands used to build and install an old-style archive.
20928 old_archive_cmds=$lt_old_archive_cmds_CXX
20929 old_postinstall_cmds=$lt_old_postinstall_cmds
20930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20932 # Create an old-style archive from a shared archive.
20933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20935 # Create a temporary old-style archive to link instead of a shared archive.
20936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20938 # Commands used to build and install a shared archive.
20939 archive_cmds=$lt_archive_cmds_CXX
20940 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20941 postinstall_cmds=$lt_postinstall_cmds
20942 postuninstall_cmds=$lt_postuninstall_cmds
20944 # Commands used to build a loadable module (assumed same as above if empty)
20945 module_cmds=$lt_module_cmds_CXX
20946 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20948 # Commands to strip libraries.
20949 old_striplib=$lt_old_striplib
20950 striplib=$lt_striplib
20952 # Dependencies to place before the objects being linked to create a
20954 predep_objects=$lt_predep_objects_CXX
20956 # Dependencies to place after the objects being linked to create a
20958 postdep_objects=$lt_postdep_objects_CXX
20960 # Dependencies to place before the objects being linked to create a
20962 predeps=$lt_predeps_CXX
20964 # Dependencies to place after the objects being linked to create a
20966 postdeps=$lt_postdeps_CXX
20968 # The library search path used internally by the compiler when linking
20969 # a shared library.
20970 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20972 # Method to check whether dependent libraries are shared objects.
20973 deplibs_check_method=$lt_deplibs_check_method
20975 # Command to use when deplibs_check_method == file_magic.
20976 file_magic_cmd=$lt_file_magic_cmd
20978 # Flag that allows shared libraries with undefined symbols to be built.
20979 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20981 # Flag that forces no undefined symbols.
20982 no_undefined_flag=$lt_no_undefined_flag_CXX
20984 # Commands used to finish a libtool library installation in a directory.
20985 finish_cmds=$lt_finish_cmds
20987 # Same as above, but a single script fragment to be evaled but not shown.
20988 finish_eval=$lt_finish_eval
20990 # Take the output of nm and produce a listing of raw symbols and C names.
20991 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20993 # Transform the output of nm in a proper C declaration
20994 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20996 # Transform the output of nm in a C name address pair
20997 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20999 # This is the shared library runtime path variable.
21000 runpath_var=$runpath_var
21002 # This is the shared library path variable.
21003 shlibpath_var=$shlibpath_var
21005 # Is shlibpath searched before the hard-coded library search path?
21006 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21008 # How to hardcode a shared library path into an executable.
21009 hardcode_action=$hardcode_action_CXX
21011 # Whether we should hardcode library paths into libraries.
21012 hardcode_into_libs=$hardcode_into_libs
21014 # Flag to hardcode \$libdir into a binary during linking.
21015 # This must work even if \$libdir does not exist.
21016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21018 # If ld is used when linking, flag to hardcode \$libdir into
21019 # a binary during linking. This must work even if \$libdir does
21021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21023 # Whether we need a single -rpath flag with a separated argument.
21024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21026 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21027 # resulting binary.
21028 hardcode_direct=$hardcode_direct_CXX
21030 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21031 # resulting binary.
21032 hardcode_minus_L=$hardcode_minus_L_CXX
21034 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21035 # the resulting binary.
21036 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21038 # Set to yes if building a shared library automatically hardcodes DIR into the library
21039 # and all subsequent libraries and executables linked against it.
21040 hardcode_automatic=$hardcode_automatic_CXX
21042 # Variables whose values should be saved in libtool wrapper scripts and
21043 # restored at relink time.
21044 variables_saved_for_relink="$variables_saved_for_relink"
21046 # Whether libtool must link a program against all its dependency libraries.
21047 link_all_deplibs=$link_all_deplibs_CXX
21049 # Compile-time system search path for libraries
21050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21052 # Run-time system search path for libraries
21053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21055 # Fix the shell variable \$srcfile for the compiler.
21056 fix_srcfile_path="$fix_srcfile_path_CXX"
21058 # Set to yes if exported symbols are required.
21059 always_export_symbols=$always_export_symbols_CXX
21061 # The commands to list exported symbols.
21062 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21064 # The commands to extract the exported symbol list from a shared archive.
21065 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21067 # Symbols that should not be listed in the preloaded symbols.
21068 exclude_expsyms=$lt_exclude_expsyms_CXX
21070 # Symbols that must always be exported.
21071 include_expsyms=$lt_include_expsyms_CXX
21073 # ### END LIBTOOL TAG CONFIG: $tagname
21079 # If there is no Makefile yet, we rely on a make rule to execute
21080 # `config.status --recheck' to rerun these tests and create the
21081 # libtool script then.
21082 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21083 if test -f "$ltmain_in"; then
21084 test -f Makefile && make "$ltmain"
21090 ac_cpp='$CPP $CPPFLAGS'
21091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099 with_gnu_ldcxx=$with_gnu_ld
21100 with_gnu_ld=$lt_save_with_gnu_ld
21101 lt_cv_path_LDCXX=$lt_cv_path_LD
21102 lt_cv_path_LD=$lt_save_path_LD
21103 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21104 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21112 if test -n "$F77" && test "X$F77" != "Xno"; then
21115 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21116 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21120 archive_cmds_need_lc_F77=no
21121 allow_undefined_flag_F77=
21122 always_export_symbols_F77=no
21123 archive_expsym_cmds_F77=
21124 export_dynamic_flag_spec_F77=
21125 hardcode_direct_F77=no
21126 hardcode_libdir_flag_spec_F77=
21127 hardcode_libdir_flag_spec_ld_F77=
21128 hardcode_libdir_separator_F77=
21129 hardcode_minus_L_F77=no
21130 hardcode_automatic_F77=no
21132 module_expsym_cmds_F77=
21133 link_all_deplibs_F77=unknown
21134 old_archive_cmds_F77=$old_archive_cmds
21135 no_undefined_flag_F77=
21136 whole_archive_flag_spec_F77=
21137 enable_shared_with_static_runtimes_F77=no
21139 # Source file extension for f77 test sources.
21142 # Object file extension for compiled f77 test sources.
21146 # Code to be used in simple compile tests
21147 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21149 # Code to be used in simple link tests
21150 lt_simple_link_test_code=" program t\n end\n"
21152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21154 # If no C compiler was specified, use CC.
21157 # If no C compiler flags were specified, use CFLAGS.
21158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21160 # Allow CC to be a program name with arguments.
21164 # save warnings/boilerplate of simple test code
21165 ac_outfile=conftest.$ac_objext
21166 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21168 _lt_compiler_boilerplate=`cat conftest.err`
21171 ac_outfile=conftest.$ac_objext
21172 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174 _lt_linker_boilerplate=`cat conftest.err`
21178 # Allow CC to be a program name with arguments.
21183 for cc_temp in $compiler""; do
21185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21194 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21195 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21196 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21197 echo "${ECHO_T}$can_build_shared" >&6; }
21199 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21200 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21201 test "$can_build_shared" = "no" && enable_shared=no
21203 # On AIX, shared libraries and static libraries use the same namespace, and
21204 # are all built from PIC.
21207 test "$enable_shared" = yes && enable_static=no
21208 if test -n "$RANLIB"; then
21209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21210 postinstall_cmds='$RANLIB $lib'
21214 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21215 test "$enable_shared" = yes && enable_static=no
21219 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21220 echo "${ECHO_T}$enable_shared" >&6; }
21222 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21223 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21224 # Make sure either enable_shared or enable_static is yes.
21225 test "$enable_shared" = yes || enable_static=yes
21226 { echo "$as_me:$LINENO: result: $enable_static" >&5
21227 echo "${ECHO_T}$enable_static" >&6; }
21232 lt_prog_compiler_wl_F77=
21233 lt_prog_compiler_pic_F77=
21234 lt_prog_compiler_static_F77=
21236 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21237 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21239 if test "$GCC" = yes; then
21240 lt_prog_compiler_wl_F77='-Wl,'
21241 lt_prog_compiler_static_F77='-static'
21245 # All AIX code is PIC.
21246 if test "$host_cpu" = ia64; then
21247 # AIX 5 now supports IA64 processor
21248 lt_prog_compiler_static_F77='-Bstatic'
21253 # FIXME: we need at least 68020 code to build shared libraries, but
21254 # adding the `-m68020' flag to GCC prevents building anything better,
21256 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21260 # PIC is the default for these OSes.
21263 mingw* | pw32* | os2*)
21264 # This hack is so that the source file can tell whether it is being
21265 # built for inclusion in a dll (and should export symbols for example).
21266 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21269 darwin* | rhapsody*)
21270 # PIC is the default on this platform
21271 # Common symbols not allowed in MH_DYLIB files
21272 lt_prog_compiler_pic_F77='-fno-common'
21276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21277 # Instead, we relocate shared libraries at runtime.
21281 # Just because we use GCC doesn't mean we suddenly get shared libraries
21282 # on systems that don't support them.
21283 lt_prog_compiler_can_build_shared_F77=no
21288 if test -d /usr/nec; then
21289 lt_prog_compiler_pic_F77=-Kconform_pic
21294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295 # not for PA HP-UX.
21301 lt_prog_compiler_pic_F77='-fPIC'
21307 lt_prog_compiler_pic_F77='-fPIC'
21311 # PORTME Check for flag to pass linker flags through the system compiler.
21314 lt_prog_compiler_wl_F77='-Wl,'
21315 if test "$host_cpu" = ia64; then
21316 # AIX 5 now supports IA64 processor
21317 lt_prog_compiler_static_F77='-Bstatic'
21319 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21323 # PIC is the default on this platform
21324 # Common symbols not allowed in MH_DYLIB files
21325 case $cc_basename in
21327 lt_prog_compiler_pic_F77='-qnocommon'
21328 lt_prog_compiler_wl_F77='-Wl,'
21333 mingw* | pw32* | os2*)
21334 # This hack is so that the source file can tell whether it is being
21335 # built for inclusion in a dll (and should export symbols for example).
21336 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21339 hpux9* | hpux10* | hpux11*)
21340 lt_prog_compiler_wl_F77='-Wl,'
21341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21342 # not for PA HP-UX.
21348 lt_prog_compiler_pic_F77='+Z'
21351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21352 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21355 irix5* | irix6* | nonstopux*)
21356 lt_prog_compiler_wl_F77='-Wl,'
21357 # PIC (with -KPIC) is the default.
21358 lt_prog_compiler_static_F77='-non_shared'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-Bstatic'
21367 case $cc_basename in
21369 lt_prog_compiler_wl_F77='-Wl,'
21370 lt_prog_compiler_pic_F77='-KPIC'
21371 lt_prog_compiler_static_F77='-static'
21373 pgcc* | pgf77* | pgf90* | pgf95*)
21374 # Portland Group compilers (*not* the Pentium gcc compiler,
21375 # which looks to be a dead project)
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 lt_prog_compiler_pic_F77='-fpic'
21378 lt_prog_compiler_static_F77='-Bstatic'
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 # All Alpha code is PIC.
21383 lt_prog_compiler_static_F77='-non_shared'
21388 osf3* | osf4* | osf5*)
21389 lt_prog_compiler_wl_F77='-Wl,'
21390 # All OSF/1 code is PIC.
21391 lt_prog_compiler_static_F77='-non_shared'
21395 lt_prog_compiler_pic_F77='-KPIC'
21396 lt_prog_compiler_static_F77='-Bstatic'
21397 case $cc_basename in
21398 f77* | f90* | f95*)
21399 lt_prog_compiler_wl_F77='-Qoption ld ';;
21401 lt_prog_compiler_wl_F77='-Wl,';;
21406 lt_prog_compiler_wl_F77='-Qoption ld '
21407 lt_prog_compiler_pic_F77='-PIC'
21408 lt_prog_compiler_static_F77='-Bstatic'
21411 sysv4 | sysv4.2uw2* | sysv4.3*)
21412 lt_prog_compiler_wl_F77='-Wl,'
21413 lt_prog_compiler_pic_F77='-KPIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21418 if test -d /usr/nec ;then
21419 lt_prog_compiler_pic_F77='-Kconform_pic'
21420 lt_prog_compiler_static_F77='-Bstatic'
21424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21425 lt_prog_compiler_wl_F77='-Wl,'
21426 lt_prog_compiler_pic_F77='-KPIC'
21427 lt_prog_compiler_static_F77='-Bstatic'
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_can_build_shared_F77=no
21436 lt_prog_compiler_pic_F77='-pic'
21437 lt_prog_compiler_static_F77='-Bstatic'
21441 lt_prog_compiler_can_build_shared_F77=no
21446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21447 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21450 # Check to make sure the PIC flag actually works.
21452 if test -n "$lt_prog_compiler_pic_F77"; then
21454 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21456 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21457 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 lt_prog_compiler_pic_works_F77=no
21460 ac_outfile=conftest.$ac_objext
21461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21462 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21463 # Insert the option either (1) after the last *FLAGS variable, or
21464 # (2) before a word containing "conftest.", or (3) at the end.
21465 # Note that $ac_compile itself does not contain backslashes and begins
21466 # with a dollar sign (not a hyphen), so the echo should work correctly.
21467 # The option is referenced via a variable to avoid confusing sed.
21468 lt_compile=`echo "$ac_compile" | $SED \
21469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21471 -e 's:$: $lt_compiler_flag:'`
21472 (eval echo "\"\$as_me:21472: $lt_compile\"" >&5)
21473 (eval "$lt_compile" 2>conftest.err)
21475 cat conftest.err >&5
21476 echo "$as_me:21476: \$? = $ac_status" >&5
21477 if (exit $ac_status) && test -s "$ac_outfile"; then
21478 # The compiler can only warn and ignore the option if not recognized
21479 # So say no if there are warnings other than the usual output.
21480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21483 lt_prog_compiler_pic_works_F77=yes
21489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21490 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21492 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21493 case $lt_prog_compiler_pic_F77 in
21495 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21498 lt_prog_compiler_pic_F77=
21499 lt_prog_compiler_can_build_shared_F77=no
21504 # For platforms which do not support PIC, -DPIC is meaningless:
21506 lt_prog_compiler_pic_F77=
21509 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21514 # Check to make sure the static flag actually works.
21516 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21517 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21518 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21519 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 lt_prog_compiler_static_works_F77=no
21523 save_LDFLAGS="$LDFLAGS"
21524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21525 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21527 # The linker can only warn and ignore the option if not recognized
21528 # So say no if there are warnings
21529 if test -s conftest.err; then
21530 # Append any errors to the config.log.
21531 cat conftest.err 1>&5
21532 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21534 if diff conftest.exp conftest.er2 >/dev/null; then
21535 lt_prog_compiler_static_works_F77=yes
21538 lt_prog_compiler_static_works_F77=yes
21542 LDFLAGS="$save_LDFLAGS"
21545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21546 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21548 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21551 lt_prog_compiler_static_F77=
21555 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21557 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 lt_cv_prog_compiler_c_o_F77=no
21561 $rm -r conftest 2>/dev/null
21565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21567 lt_compiler_flag="-o out/conftest2.$ac_objext"
21568 # Insert the option either (1) after the last *FLAGS variable, or
21569 # (2) before a word containing "conftest.", or (3) at the end.
21570 # Note that $ac_compile itself does not contain backslashes and begins
21571 # with a dollar sign (not a hyphen), so the echo should work correctly.
21572 lt_compile=`echo "$ac_compile" | $SED \
21573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21575 -e 's:$: $lt_compiler_flag:'`
21576 (eval echo "\"\$as_me:21576: $lt_compile\"" >&5)
21577 (eval "$lt_compile" 2>out/conftest.err)
21579 cat out/conftest.err >&5
21580 echo "$as_me:21580: \$? = $ac_status" >&5
21581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21583 # The compiler can only warn and ignore the option if not recognized
21584 # So say no if there are warnings
21585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21588 lt_cv_prog_compiler_c_o_F77=yes
21593 # SGI C++ compiler will create directory out/ii_files/ for
21594 # template instantiation
21595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21596 $rm out/* && rmdir out
21602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21606 hard_links="nottested"
21607 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21608 # do not overwrite the value of need_locks provided by the user
21609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21615 ln conftest.a conftest.b 2>&5 || hard_links=no
21616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21617 { echo "$as_me:$LINENO: result: $hard_links" >&5
21618 echo "${ECHO_T}$hard_links" >&6; }
21619 if test "$hard_links" = no; then
21620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21628 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21632 allow_undefined_flag_F77=
21633 enable_shared_with_static_runtimes_F77=no
21635 archive_expsym_cmds_F77=
21636 old_archive_From_new_cmds_F77=
21637 old_archive_from_expsyms_cmds_F77=
21638 export_dynamic_flag_spec_F77=
21639 whole_archive_flag_spec_F77=
21640 thread_safe_flag_spec_F77=
21641 hardcode_libdir_flag_spec_F77=
21642 hardcode_libdir_flag_spec_ld_F77=
21643 hardcode_libdir_separator_F77=
21644 hardcode_direct_F77=no
21645 hardcode_minus_L_F77=no
21646 hardcode_shlibpath_var_F77=unsupported
21647 link_all_deplibs_F77=unknown
21648 hardcode_automatic_F77=no
21650 module_expsym_cmds_F77=
21651 always_export_symbols_F77=no
21652 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21653 # include_expsyms should be a list of space-separated symbols to be *always*
21654 # included in the symbol list
21655 include_expsyms_F77=
21656 # exclude_expsyms can be an extended regexp of symbols to exclude
21657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21659 # as well as any symbol that contains `d'.
21660 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21662 # platforms (ab)use it in PIC code, but their linkers get confused if
21663 # the symbol is explicitly referenced. Since portable code cannot
21664 # rely on this symbol name, it's probably fine to never include it in
21665 # preloaded symbol tables.
21666 extract_expsyms_cmds=
21667 # Just being paranoid about ensuring that cc_basename is set.
21668 for cc_temp in $compiler""; do
21670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21679 cygwin* | mingw* | pw32*)
21680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21681 # When not using gcc, we currently assume that we are using
21682 # Microsoft Visual C++.
21683 if test "$GCC" != yes; then
21688 # we just hope/assume this is gcc and not c89 (= MSVC++)
21697 if test "$with_gnu_ld" = yes; then
21698 # If archive_cmds runs LD, not CC, wlarc should be empty
21701 # Set some defaults for GNU ld with shared library support. These
21702 # are reset later if shared libraries are not supported. Putting them
21703 # here allows them to be overridden if necessary.
21704 runpath_var=LD_RUN_PATH
21705 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21706 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21707 # ancient GNU ld didn't support --whole-archive et. al.
21708 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21709 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21711 whole_archive_flag_spec_F77=
21713 supports_anon_versioning=no
21714 case `$LD -v 2>/dev/null` in
21715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21718 *\ 2.11.*) ;; # other 2.11 versions
21719 *) supports_anon_versioning=yes ;;
21722 # See if GNU ld supports shared libraries.
21724 aix3* | aix4* | aix5*)
21725 # On AIX/PPC, the GNU linker is very broken
21726 if test "$host_cpu" != ia64; then
21730 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21731 *** to be unable to reliably create shared libraries on AIX.
21732 *** Therefore, libtool is disabling shared libraries support. If you
21733 *** really care for shared libraries, you may want to modify your PATH
21734 *** so that a non-GNU linker is found, and then restart.
21741 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)'
21742 hardcode_libdir_flag_spec_F77='-L$libdir'
21743 hardcode_minus_L_F77=yes
21745 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21746 # that the semantics of dynamic libraries on AmigaOS, at least up
21747 # to version 4, is to share data among multiple programs linked
21748 # with the same dynamic library. Since this doesn't match the
21749 # behavior of shared libraries on other platforms, we can't use
21755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21756 allow_undefined_flag_F77=unsupported
21757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21758 # support --undefined. This deserves some investigation. FIXME
21759 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21765 cygwin* | mingw* | pw32*)
21766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21767 # as there is no search path for DLLs.
21768 hardcode_libdir_flag_spec_F77='-L$libdir'
21769 allow_undefined_flag_F77=unsupported
21770 always_export_symbols_F77=no
21771 enable_shared_with_static_runtimes_F77=yes
21772 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21774 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21775 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21776 # If the export-symbols file already is a .def file (1st line
21777 # is EXPORTS), use it as is; otherwise, prepend...
21778 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21779 cp $export_symbols $output_objdir/$soname.def;
21781 echo EXPORTS > $output_objdir/$soname.def;
21782 cat $export_symbols >> $output_objdir/$soname.def;
21784 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21791 hardcode_direct_F77=no
21792 hardcode_shlibpath_var_F77=no
21793 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21794 export_dynamic_flag_spec_F77='${wl}-E'
21795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21796 # Instead, shared libraries are loaded at an image base (0x10000000 by
21797 # default) and relocated if they conflict, which is a slow very memory
21798 # consuming and fragmenting process. To avoid this, we pick a random,
21799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21801 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'
21802 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'
21806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21808 case $cc_basename,$host_cpu in
21809 pgcc*) # Portland Group C compiler
21810 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'
21811 tmp_addflag=' $pic_flag'
21813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21814 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'
21815 tmp_addflag=' $pic_flag -Mnomain' ;;
21816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21817 tmp_addflag=' -i_dynamic' ;;
21818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21819 tmp_addflag=' -i_dynamic -nofor_main' ;;
21820 ifc* | ifort*) # Intel Fortran compiler
21821 tmp_addflag=' -nofor_main' ;;
21823 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21825 if test $supports_anon_versioning = yes; then
21826 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21828 $echo "local: *; };" >> $output_objdir/$libname.ver~
21829 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21838 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21841 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21842 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21852 *** create shared libraries on Solaris systems. Therefore, libtool
21853 *** is disabling shared libraries support. We urge you to upgrade GNU
21854 *** binutils to release 2.9.1 or newer. Another option is to modify
21855 *** your PATH or compiler configuration so that the native linker is
21856 *** used, and then restart.
21859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21868 case `$LD -v 2>&1` in
21869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21874 *** reliably create shared libraries on SCO systems. Therefore, libtool
21875 *** is disabling shared libraries support. We urge you to upgrade GNU
21876 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21877 *** your PATH or compiler configuration so that the native linker is
21878 *** used, and then restart.
21883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21884 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21895 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21897 hardcode_direct_F77=yes
21898 hardcode_shlibpath_var_F77=no
21902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21911 if test "$ld_shlibs_F77" = no; then
21913 hardcode_libdir_flag_spec_F77=
21914 export_dynamic_flag_spec_F77=
21915 whole_archive_flag_spec_F77=
21918 # PORTME fill in a description of your system's linker (not GNU ld)
21921 allow_undefined_flag_F77=unsupported
21922 always_export_symbols_F77=yes
21923 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'
21924 # Note: this linker hardcodes the directories in LIBPATH if there
21925 # are no directories specified by -L.
21926 hardcode_minus_L_F77=yes
21927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21928 # Neither direct hardcoding nor static linking is supported with a
21930 hardcode_direct_F77=unsupported
21935 if test "$host_cpu" = ia64; then
21936 # On IA64, the linker does run time linking by default, so we don't
21937 # have to do anything special.
21938 aix_use_runtimelinking=no
21939 exp_sym_flag='-Bexport'
21942 # If we're using GNU nm, then we don't want the "-C" option.
21943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21945 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'
21947 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'
21949 aix_use_runtimelinking=no
21951 # Test if we are trying to use run time linking or normal
21952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21953 # need to do runtime linking.
21954 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21955 for ld_flag in $LDFLAGS; do
21956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21957 aix_use_runtimelinking=yes
21964 exp_sym_flag='-bexport'
21965 no_entry_flag='-bnoentry'
21968 # When large executables or shared objects are built, AIX ld can
21969 # have problems creating the table of contents. If linking a library
21970 # or program results in "error TOC overflow" add -mminimal-toc to
21971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21974 archive_cmds_F77=''
21975 hardcode_direct_F77=yes
21976 hardcode_libdir_separator_F77=':'
21977 link_all_deplibs_F77=yes
21979 if test "$GCC" = yes; then
21980 case $host_os in aix4.[012]|aix4.[012].*)
21981 # We only want to do this on AIX 4.2 and lower, the check
21982 # below for broken collect2 doesn't work under 4.3+
21983 collect2name=`${CC} -print-prog-name=collect2`
21984 if test -f "$collect2name" && \
21985 strings "$collect2name" | grep resolve_lib_name >/dev/null
21987 # We have reworked collect2
21988 hardcode_direct_F77=yes
21990 # We have old collect2
21991 hardcode_direct_F77=unsupported
21992 # It fails to find uninstalled libraries when the uninstalled
21993 # path is not listed in the libpath. Setting hardcode_minus_L
21994 # to unsupported forces relinking
21995 hardcode_minus_L_F77=yes
21996 hardcode_libdir_flag_spec_F77='-L$libdir'
21997 hardcode_libdir_separator_F77=
22001 shared_flag='-shared'
22002 if test "$aix_use_runtimelinking" = yes; then
22003 shared_flag="$shared_flag "'${wl}-G'
22007 if test "$host_cpu" = ia64; then
22008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22009 # chokes on -Wl,-G. The following line is correct:
22012 if test "$aix_use_runtimelinking" = yes; then
22013 shared_flag='${wl}-G'
22015 shared_flag='${wl}-bM:SRE'
22020 # It seems that -bexpall does not export symbols beginning with
22021 # underscore (_), so it is better to generate a list of symbols to export.
22022 always_export_symbols_F77=yes
22023 if test "$aix_use_runtimelinking" = yes; then
22024 # Warning - without using the other runtime loading flags (-brtl),
22025 # -berok will link without error, but may produce a broken library.
22026 allow_undefined_flag_F77='-berok'
22027 # Determine the default libpath from the value encoded in an empty executable.
22028 cat >conftest.$ac_ext <<_ACEOF
22033 rm -f conftest.$ac_objext conftest$ac_exeext
22034 if { (ac_try="$ac_link"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_link") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22048 { (case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_try") 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest$ac_exeext'
22058 { (case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_try") 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22070 # Check for a 64-bit object if we didn't find anything.
22071 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; }
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22080 rm -f core conftest.err conftest.$ac_objext \
22081 conftest$ac_exeext conftest.$ac_ext
22082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22084 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22085 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"
22087 if test "$host_cpu" = ia64; then
22088 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22089 allow_undefined_flag_F77="-z nodefs"
22090 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"
22092 # Determine the default libpath from the value encoded in an empty executable.
22093 cat >conftest.$ac_ext <<_ACEOF
22098 rm -f conftest.$ac_objext conftest$ac_exeext
22099 if { (ac_try="$ac_link"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_link") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest$ac_exeext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22135 # Check for a 64-bit object if we didn't find anything.
22136 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; }
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22145 rm -f core conftest.err conftest.$ac_objext \
22146 conftest$ac_exeext conftest.$ac_ext
22147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22149 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22150 # Warning - without using the other run time loading flags,
22151 # -berok will link without error, but may produce a broken library.
22152 no_undefined_flag_F77=' ${wl}-bernotok'
22153 allow_undefined_flag_F77=' ${wl}-berok'
22154 # Exported symbols can be pulled into shared objects from archives
22155 whole_archive_flag_spec_F77='$convenience'
22156 archive_cmds_need_lc_F77=yes
22157 # This is similar to how AIX traditionally builds its shared libraries.
22158 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'
22164 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)'
22165 hardcode_libdir_flag_spec_F77='-L$libdir'
22166 hardcode_minus_L_F77=yes
22167 # see comment about different semantics on the GNU ld section
22172 export_dynamic_flag_spec_F77=-rdynamic
22175 cygwin* | mingw* | pw32*)
22176 # When not using gcc, we currently assume that we are using
22177 # Microsoft Visual C++.
22178 # hardcode_libdir_flag_spec is actually meaningless, as there is
22179 # no search path for DLLs.
22180 hardcode_libdir_flag_spec_F77=' '
22181 allow_undefined_flag_F77=unsupported
22182 # Tell ltmain to make .lib files, not .a files.
22184 # Tell ltmain to make .dll files, not .so files.
22186 # FIXME: Setting linknames here is a bad hack.
22187 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22188 # The linker will automatically build a .lib file if we build a DLL.
22189 old_archive_From_new_cmds_F77='true'
22190 # FIXME: Should let the user specify the lib program.
22191 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22192 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22193 enable_shared_with_static_runtimes_F77=yes
22196 darwin* | rhapsody*)
22198 rhapsody* | darwin1.[012])
22199 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22202 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22203 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22205 case ${MACOSX_DEPLOYMENT_TARGET} in
22207 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22210 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22216 archive_cmds_need_lc_F77=no
22217 hardcode_direct_F77=no
22218 hardcode_automatic_F77=yes
22219 hardcode_shlibpath_var_F77=unsupported
22220 whole_archive_flag_spec_F77=''
22221 link_all_deplibs_F77=yes
22222 if test "$GCC" = yes ; then
22223 output_verbose_link_cmd='echo'
22224 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22225 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22226 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22227 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}'
22228 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}'
22230 case $cc_basename in
22232 output_verbose_link_cmd='echo'
22233 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22234 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22236 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}'
22237 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}'
22247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22248 hardcode_libdir_flag_spec_F77='-L$libdir'
22249 hardcode_shlibpath_var_F77=no
22256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22257 # support. Future versions do this automatically, but an explicit c++rt0.o
22258 # does not break anything, and helps significantly (at the cost of a little
22261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22262 hardcode_libdir_flag_spec_F77='-R$libdir'
22263 hardcode_direct_F77=yes
22264 hardcode_shlibpath_var_F77=no
22267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_direct_F77=yes
22271 hardcode_minus_L_F77=yes
22272 hardcode_shlibpath_var_F77=no
22275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22276 freebsd* | kfreebsd*-gnu | dragonfly*)
22277 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22278 hardcode_libdir_flag_spec_F77='-R$libdir'
22279 hardcode_direct_F77=yes
22280 hardcode_shlibpath_var_F77=no
22284 if test "$GCC" = yes; then
22285 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'
22287 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'
22289 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22290 hardcode_libdir_separator_F77=:
22291 hardcode_direct_F77=yes
22293 # hardcode_minus_L: Not really in the search PATH,
22294 # but as the default location of the library.
22295 hardcode_minus_L_F77=yes
22296 export_dynamic_flag_spec_F77='${wl}-E'
22300 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22301 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22303 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22305 if test "$with_gnu_ld" = no; then
22306 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22307 hardcode_libdir_separator_F77=:
22309 hardcode_direct_F77=yes
22310 export_dynamic_flag_spec_F77='${wl}-E'
22312 # hardcode_minus_L: Not really in the search PATH,
22313 # but as the default location of the library.
22314 hardcode_minus_L_F77=yes
22319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22322 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22325 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22328 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22334 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22337 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22340 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22344 if test "$with_gnu_ld" = no; then
22345 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22346 hardcode_libdir_separator_F77=:
22350 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22351 hardcode_direct_F77=no
22352 hardcode_shlibpath_var_F77=no
22355 hardcode_direct_F77=yes
22356 export_dynamic_flag_spec_F77='${wl}-E'
22358 # hardcode_minus_L: Not really in the search PATH,
22359 # but as the default location of the library.
22360 hardcode_minus_L_F77=yes
22366 irix5* | irix6* | nonstopux*)
22367 if test "$GCC" = yes; then
22368 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'
22370 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'
22371 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22373 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22374 hardcode_libdir_separator_F77=:
22375 link_all_deplibs_F77=yes
22379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22380 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22382 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22384 hardcode_libdir_flag_spec_F77='-R$libdir'
22385 hardcode_direct_F77=yes
22386 hardcode_shlibpath_var_F77=no
22390 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22391 hardcode_direct_F77=yes
22392 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22393 hardcode_libdir_separator_F77=:
22394 hardcode_shlibpath_var_F77=no
22398 hardcode_direct_F77=yes
22399 hardcode_shlibpath_var_F77=no
22400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22401 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22404 export_dynamic_flag_spec_F77='${wl}-E'
22407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22408 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22409 hardcode_libdir_flag_spec_F77='-R$libdir'
22412 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22413 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22420 hardcode_libdir_flag_spec_F77='-L$libdir'
22421 hardcode_minus_L_F77=yes
22422 allow_undefined_flag_F77=unsupported
22423 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'
22424 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22428 if test "$GCC" = yes; then
22429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22430 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'
22432 allow_undefined_flag_F77=' -expect_unresolved \*'
22433 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'
22435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436 hardcode_libdir_separator_F77=:
22439 osf4* | osf5*) # as osf3* with the addition of -msym flag
22440 if test "$GCC" = yes; then
22441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22442 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'
22443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22445 allow_undefined_flag_F77=' -expect_unresolved \*'
22446 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'
22447 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~
22448 $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'
22450 # Both c and cxx compiler support -rpath directly
22451 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22453 hardcode_libdir_separator_F77=:
22457 no_undefined_flag_F77=' -z text'
22458 if test "$GCC" = yes; then
22460 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22465 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22467 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22469 hardcode_libdir_flag_spec_F77='-R$libdir'
22470 hardcode_shlibpath_var_F77=no
22472 solaris2.[0-5] | solaris2.[0-5].*) ;;
22474 # The compiler driver will combine linker options so we
22475 # cannot just pass the convience library names through
22476 # without $wl, iff we do not link with $LD.
22477 # Luckily, gcc supports the same syntax we need for Sun Studio.
22478 # Supported since Solaris 2.6 (maybe 2.5.1?)
22481 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22483 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' ;;
22486 link_all_deplibs_F77=yes
22490 if test "x$host_vendor" = xsequent; then
22491 # Use $CC to link under sequent, because it throws in some extra .o
22492 # files that make .init and .fini sections work.
22493 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22495 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22497 hardcode_libdir_flag_spec_F77='-L$libdir'
22498 hardcode_direct_F77=yes
22499 hardcode_minus_L_F77=yes
22500 hardcode_shlibpath_var_F77=no
22504 case $host_vendor in
22506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507 hardcode_direct_F77=yes # is this really true???
22510 ## LD is ld it makes a PLAMLIB
22511 ## CC just makes a GrossModule.
22512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22513 reload_cmds_F77='$CC -r -o $output$reload_objs'
22514 hardcode_direct_F77=no
22517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22518 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22521 runpath_var='LD_RUN_PATH'
22522 hardcode_shlibpath_var_F77=no
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_shlibpath_var_F77=no
22528 export_dynamic_flag_spec_F77='-Bexport'
22532 if test -d /usr/nec; then
22533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22534 hardcode_shlibpath_var_F77=no
22535 runpath_var=LD_RUN_PATH
22536 hardcode_runpath_var=yes
22541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22542 no_undefined_flag_F77='${wl}-z,text'
22543 archive_cmds_need_lc_F77=no
22544 hardcode_shlibpath_var_F77=no
22545 runpath_var='LD_RUN_PATH'
22547 if test "$GCC" = yes; then
22548 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22549 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22551 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22552 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22556 sysv5* | sco3.2v5* | sco5v6*)
22557 # Note: We can NOT use -z defs as we might desire, because we do not
22558 # link with -lc, and that would cause any symbols used from libc to
22559 # always be unresolved, which means just about no library would
22560 # ever link correctly. If we're not using GNU ld we use -z text
22561 # though, which does catch some bad symbols but isn't as heavy-handed
22563 no_undefined_flag_F77='${wl}-z,text'
22564 allow_undefined_flag_F77='${wl}-z,nodefs'
22565 archive_cmds_need_lc_F77=no
22566 hardcode_shlibpath_var_F77=no
22567 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22568 hardcode_libdir_separator_F77=':'
22569 link_all_deplibs_F77=yes
22570 export_dynamic_flag_spec_F77='${wl}-Bexport'
22571 runpath_var='LD_RUN_PATH'
22573 if test "$GCC" = yes; then
22574 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22575 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22577 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22578 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22584 hardcode_libdir_flag_spec_F77='-L$libdir'
22585 hardcode_shlibpath_var_F77=no
22594 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22595 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22596 test "$ld_shlibs_F77" = no && can_build_shared=no
22599 # Do we need to explicitly link libc?
22601 case "x$archive_cmds_need_lc_F77" in
22603 # Assume -lc should be added
22604 archive_cmds_need_lc_F77=yes
22606 if test "$enable_shared" = yes && test "$GCC" = yes; then
22607 case $archive_cmds_F77 in
22609 # FIXME: we may have to deal with multi-command sequences.
22612 # Test whether the compiler implicitly links with -lc since on some
22613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22614 # to ld, don't add -lc before -lgcc.
22615 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22616 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } 2>conftest.err; then
22627 libobjs=conftest.$ac_objext
22629 wl=$lt_prog_compiler_wl_F77
22630 pic_flag=$lt_prog_compiler_pic_F77
22636 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22637 allow_undefined_flag_F77=
22638 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22639 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }
22644 archive_cmds_need_lc_F77=no
22646 archive_cmds_need_lc_F77=yes
22648 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22650 cat conftest.err 1>&5
22653 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22654 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22661 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22662 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22663 library_names_spec=
22664 libname_spec='lib$name'
22668 postuninstall_cmds=
22672 shlibpath_overrides_runpath=unknown
22674 dynamic_linker="$host_os ld.so"
22675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22676 if test "$GCC" = yes; then
22677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22678 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22679 # if the path contains ";" then we assume it to be the separator
22680 # otherwise default to the standard path separator (i.e. ":") - it is
22681 # assumed that no part of a normal pathname contains ";" but that should
22682 # okay in the real world where ";" in dirpaths is itself problematic.
22683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22690 need_lib_prefix=unknown
22691 hardcode_into_libs=no
22693 # when you set need_version to no, make sure it does not cause -set_version
22694 # flags to be left without arguments
22695 need_version=unknown
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22701 shlibpath_var=LIBPATH
22703 # AIX 3 has no versioning support, so we append a major version to the name.
22704 soname_spec='${libname}${release}${shared_ext}$major'
22711 hardcode_into_libs=yes
22712 if test "$host_cpu" = ia64; then
22713 # AIX 5 supports IA64
22714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22715 shlibpath_var=LD_LIBRARY_PATH
22717 # With GCC up to 2.95.x, collect2 would create an import file
22718 # for dependence libraries. The import file would start with
22719 # the line `#! .'. This would cause the generated library to
22720 # depend on `.', always an invalid library. This was fixed in
22721 # development snapshots of GCC prior to 3.0.
22723 aix4 | aix4.[01] | aix4.[01].*)
22724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22726 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22729 can_build_shared=no
22733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22734 # soname into executable. Probably we can add versioning support to
22735 # collect2, so additional links can be useful in future.
22736 if test "$aix_use_runtimelinking" = yes; then
22737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22738 # instead of lib<name>.a to let people know that these are not
22739 # typical AIX shared libraries.
22740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742 # We preserve .a as extension for shared libraries through AIX4.2
22743 # and later when we are not doing run time linking.
22744 library_names_spec='${libname}${release}.a $libname.a'
22745 soname_spec='${libname}${release}${shared_ext}$major'
22747 shlibpath_var=LIBPATH
22752 library_names_spec='$libname.ixlibrary $libname.a'
22753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22754 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'
22758 library_names_spec='${libname}${shared_ext}'
22759 dynamic_linker="$host_os ld.so"
22760 shlibpath_var=LIBRARY_PATH
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22772 # the default ld.so.conf also contains /usr/contrib/lib and
22773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22774 # libtool to hard-code these into programs
22777 cygwin* | mingw* | pw32*)
22778 version_type=windows
22783 case $GCC,$host_os in
22784 yes,cygwin* | yes,mingw* | yes,pw32*)
22785 library_names_spec='$libname.dll.a'
22786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22787 postinstall_cmds='base_file=`basename \${file}`~
22788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22789 dldir=$destdir/`dirname \$dlpath`~
22790 test -d \$dldir || mkdir -p \$dldir~
22791 $install_prog $dir/$dlname \$dldir/$dlname~
22792 chmod a+x \$dldir/$dlname'
22793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22794 dlpath=$dir/\$dldll~
22796 shlibpath_overrides_runpath=yes
22800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22805 # MinGW DLLs use traditional 'lib' prefix
22806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22808 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22809 # It is most probably a Windows format PATH printed by
22810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22811 # path with ; separators, and with drive letters. We can handle the
22812 # drive letters (cygwin fileutils understands them), so leave them,
22813 # especially as we might pass files found there to a mingw objdump,
22814 # which wouldn't understand a cygwinified path. Ahh.
22815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22821 # pw32 DLLs use 'pw' prefix rather than 'lib'
22822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22831 dynamic_linker='Win32 ld.exe'
22832 # FIXME: first we should search . and the directory the executable is in
22836 darwin* | rhapsody*)
22837 dynamic_linker="$host_os dyld"
22838 version_type=darwin
22841 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22842 soname_spec='${libname}${release}${major}$shared_ext'
22843 shlibpath_overrides_runpath=yes
22844 shlibpath_var=DYLD_LIBRARY_PATH
22845 shrext_cmds='.dylib'
22846 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22847 if test "$GCC" = yes; then
22848 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"`
22850 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22873 soname_spec='${libname}${release}${shared_ext}$major'
22874 shlibpath_var=LD_LIBRARY_PATH
22875 shlibpath_overrides_runpath=no
22876 hardcode_into_libs=yes
22877 dynamic_linker='GNU ld.so'
22880 freebsd* | dragonfly*)
22881 # DragonFly does not have aout. When/if they implement a new
22882 # versioning mechanism, adjust this.
22883 if test -x /usr/bin/objformat; then
22884 objformat=`/usr/bin/objformat`
22887 freebsd[123]*) objformat=aout ;;
22888 *) objformat=elf ;;
22891 version_type=freebsd-$objformat
22892 case $version_type in
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22903 shlibpath_var=LD_LIBRARY_PATH
22906 shlibpath_overrides_runpath=yes
22908 freebsd3.[01]* | freebsdelf3.[01]*)
22909 shlibpath_overrides_runpath=yes
22910 hardcode_into_libs=yes
22912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22914 shlibpath_overrides_runpath=no
22915 hardcode_into_libs=yes
22917 freebsd*) # from 4.6 on
22918 shlibpath_overrides_runpath=yes
22919 hardcode_into_libs=yes
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22929 soname_spec='${libname}${release}${shared_ext}$major'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 hardcode_into_libs=yes
22934 hpux9* | hpux10* | hpux11*)
22935 # Give a soname corresponding to the major version so that dld.sl refuses to
22936 # link against other versions.
22943 hardcode_into_libs=yes
22944 dynamic_linker="$host_os dld.so"
22945 shlibpath_var=LD_LIBRARY_PATH
22946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22948 soname_spec='${libname}${release}${shared_ext}$major'
22949 if test "X$HPUX_IA64_MODE" = X32; then
22950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22958 hardcode_into_libs=yes
22959 dynamic_linker="$host_os dld.sl"
22960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963 soname_spec='${libname}${release}${shared_ext}$major'
22964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22969 dynamic_linker="$host_os dld.sl"
22970 shlibpath_var=SHLIB_PATH
22971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22977 postinstall_cmds='chmod 555 $lib'
22984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22985 soname_spec='${libname}${release}${shared_ext}$major'
22986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22987 shlibpath_var=LD_LIBRARY_PATH
22988 shlibpath_overrides_runpath=no
22989 hardcode_into_libs=yes
22992 irix5* | irix6* | nonstopux*)
22994 nonstopux*) version_type=nonstopux ;;
22996 if test "$lt_cv_prog_gnu_ld" = yes; then
23004 soname_spec='${libname}${release}${shared_ext}$major'
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23007 irix5* | nonstopux*)
23008 libsuff= shlibsuff=
23011 case $LD in # libtool.m4 will add one of these switches to LD
23012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23013 libsuff= shlibsuff= libmagic=32-bit;;
23014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23015 libsuff=32 shlibsuff=N32 libmagic=N32;;
23016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23018 *) libsuff= shlibsuff= libmagic=never-match;;
23022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23023 shlibpath_overrides_runpath=no
23024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23026 hardcode_into_libs=yes
23029 # No shared lib support for Linux oldld, aout, or coff.
23030 linux*oldld* | linux*aout* | linux*coff*)
23034 # This must be Linux ELF.
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23042 shlibpath_var=LD_LIBRARY_PATH
23043 shlibpath_overrides_runpath=no
23044 # This implies no fast_install, which is unacceptable.
23045 # Some rework will be needed to allow for fast_install
23046 # before this can be enabled.
23047 hardcode_into_libs=yes
23049 # Append ld.so.conf contents to the search path
23050 if test -f /etc/ld.so.conf; then
23051 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' ' '`
23052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23055 # We used to test for /lib/ld.so.1 and disable shared libraries on
23056 # powerpc, because MkLinux only supported shared libraries with the
23057 # GNU dynamic linker. Since this was broken with cross compilers,
23058 # most powerpc-linux boxes support dynamic linking these days and
23059 # people can always --disable-shared, the test was removed, and we
23060 # assume the GNU/Linux dynamic linker is in use.
23061 dynamic_linker='GNU/Linux ld.so'
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=no
23072 hardcode_into_libs=yes
23073 dynamic_linker='GNU ld.so'
23080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23083 dynamic_linker='NetBSD (a.out) ld.so'
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23086 soname_spec='${libname}${release}${shared_ext}$major'
23087 dynamic_linker='NetBSD ld.elf_so'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 shlibpath_overrides_runpath=yes
23091 hardcode_into_libs=yes
23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 shlibpath_overrides_runpath=yes
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106 soname_spec='${libname}${release}${shared_ext}$major'
23107 shlibpath_var=LD_LIBRARY_PATH
23108 shlibpath_overrides_runpath=yes
23113 sys_lib_dlsearch_path_spec="/usr/lib"
23115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23118 *) need_version=no ;;
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23125 openbsd2.[89] | openbsd2.[89].*)
23126 shlibpath_overrides_runpath=no
23129 shlibpath_overrides_runpath=yes
23133 shlibpath_overrides_runpath=yes
23138 libname_spec='$name'
23141 library_names_spec='$libname${shared_ext} $libname.a'
23142 dynamic_linker='OS/2 ld.exe'
23143 shlibpath_var=LIBPATH
23146 osf3* | osf4* | osf5*)
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162 soname_spec='${libname}${release}${shared_ext}$major'
23163 shlibpath_var=LD_LIBRARY_PATH
23164 shlibpath_overrides_runpath=yes
23165 hardcode_into_libs=yes
23166 # ldd complains unless libraries are executable
23167 postinstall_cmds='chmod +x $lib'
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 shlibpath_overrides_runpath=yes
23176 if test "$with_gnu_ld" = yes; then
23184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23185 soname_spec='${libname}${release}${shared_ext}$major'
23186 shlibpath_var=LD_LIBRARY_PATH
23187 case $host_vendor in
23189 shlibpath_overrides_runpath=no
23191 export_dynamic_flag_spec='${wl}-Blargedynsym'
23192 runpath_var=LD_RUN_PATH
23200 shlibpath_overrides_runpath=no
23201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23207 if test -d /usr/nec ;then
23209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23210 soname_spec='$libname${shared_ext}.$major'
23211 shlibpath_var=LD_LIBRARY_PATH
23215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23216 version_type=freebsd-elf
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 hardcode_into_libs=yes
23223 if test "$with_gnu_ld" = yes; then
23224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23225 shlibpath_overrides_runpath=no
23227 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23228 shlibpath_overrides_runpath=yes
23231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23235 sys_lib_dlsearch_path_spec='/usr/lib'
23240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23241 soname_spec='${libname}${release}${shared_ext}$major'
23242 shlibpath_var=LD_LIBRARY_PATH
23249 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23250 echo "${ECHO_T}$dynamic_linker" >&6; }
23251 test "$dynamic_linker" = no && can_build_shared=no
23253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23254 if test "$GCC" = yes; then
23255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23258 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23260 hardcode_action_F77=
23261 if test -n "$hardcode_libdir_flag_spec_F77" || \
23262 test -n "$runpath_var_F77" || \
23263 test "X$hardcode_automatic_F77" = "Xyes" ; then
23265 # We can hardcode non-existant directories.
23266 if test "$hardcode_direct_F77" != no &&
23267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23268 # have to relink, otherwise we might link with an installed library
23269 # when we should be linking with a yet-to-be-installed one
23270 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23271 test "$hardcode_minus_L_F77" != no; then
23272 # Linking always hardcodes the temporary library directory.
23273 hardcode_action_F77=relink
23275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23276 hardcode_action_F77=immediate
23279 # We cannot hardcode anything, or else we can only hardcode existing
23281 hardcode_action_F77=unsupported
23283 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23284 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23286 if test "$hardcode_action_F77" = relink; then
23287 # Fast installation is not supported
23288 enable_fast_install=no
23289 elif test "$shlibpath_overrides_runpath" = yes ||
23290 test "$enable_shared" = no; then
23291 # Fast installation is not necessary
23292 enable_fast_install=needless
23296 # The else clause should only fire when bootstrapping the
23297 # libtool distribution, otherwise you forgot to ship ltmain.sh
23298 # with your package, and you will get complaints that there are
23299 # no rules to generate ltmain.sh.
23300 if test -f "$ltmain"; then
23301 # See if we are running on zsh, and set the options which allow our commands through
23302 # without removal of \ escapes.
23303 if test -n "${ZSH_VERSION+set}" ; then
23304 setopt NO_GLOB_SUBST
23306 # Now quote all the things that may contain metacharacters while being
23307 # careful not to overquote the AC_SUBSTed values. We take copies of the
23308 # variables and quote the copies for generation of the libtool script.
23309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23313 deplibs_check_method reload_flag reload_cmds need_locks \
23314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23315 lt_cv_sys_global_symbol_to_c_name_address \
23316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23317 old_postinstall_cmds old_postuninstall_cmds \
23321 lt_prog_compiler_wl_F77 \
23322 lt_prog_compiler_pic_F77 \
23323 lt_prog_compiler_static_F77 \
23324 lt_prog_compiler_no_builtin_flag_F77 \
23325 export_dynamic_flag_spec_F77 \
23326 thread_safe_flag_spec_F77 \
23327 whole_archive_flag_spec_F77 \
23328 enable_shared_with_static_runtimes_F77 \
23329 old_archive_cmds_F77 \
23330 old_archive_from_new_cmds_F77 \
23331 predep_objects_F77 \
23332 postdep_objects_F77 \
23335 compiler_lib_search_path_F77 \
23337 archive_expsym_cmds_F77 \
23338 postinstall_cmds_F77 \
23339 postuninstall_cmds_F77 \
23340 old_archive_from_expsyms_cmds_F77 \
23341 allow_undefined_flag_F77 \
23342 no_undefined_flag_F77 \
23343 export_symbols_cmds_F77 \
23344 hardcode_libdir_flag_spec_F77 \
23345 hardcode_libdir_flag_spec_ld_F77 \
23346 hardcode_libdir_separator_F77 \
23347 hardcode_automatic_F77 \
23349 module_expsym_cmds_F77 \
23350 lt_cv_prog_compiler_c_o_F77 \
23351 exclude_expsyms_F77 \
23352 include_expsyms_F77; do
23355 old_archive_cmds_F77 | \
23356 old_archive_from_new_cmds_F77 | \
23357 archive_cmds_F77 | \
23358 archive_expsym_cmds_F77 | \
23359 module_cmds_F77 | \
23360 module_expsym_cmds_F77 | \
23361 old_archive_from_expsyms_cmds_F77 | \
23362 export_symbols_cmds_F77 | \
23363 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23364 postinstall_cmds | postuninstall_cmds | \
23365 old_postinstall_cmds | old_postuninstall_cmds | \
23366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23367 # Double-quote double-evaled strings.
23368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23377 *'\$0 --fallback-echo"')
23378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23384 cat <<__EOF__ >> "$cfgfile"
23385 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23389 # Shell to use when invoking shell scripts.
23392 # Whether or not to build shared libraries.
23393 build_libtool_libs=$enable_shared
23395 # Whether or not to build static libraries.
23396 build_old_libs=$enable_static
23398 # Whether or not to add -lc for building shared libraries.
23399 build_libtool_need_lc=$archive_cmds_need_lc_F77
23401 # Whether or not to disallow shared libs when runtime libs are static
23402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23404 # Whether or not to optimize for fast installation.
23405 fast_install=$enable_fast_install
23408 host_alias=$host_alias
23412 # The build system.
23413 build_alias=$build_alias
23417 # An echo program that does not interpret backslashes.
23422 AR_FLAGS=$lt_AR_FLAGS
23427 # LTCC compiler flags.
23428 LTCFLAGS=$lt_LTCFLAGS
23430 # A language-specific compiler.
23431 CC=$lt_compiler_F77
23433 # Is the compiler the GNU C compiler?
23439 # The linker used to build libraries.
23442 # Whether we need hard or soft links.
23445 # A BSD-compatible nm program.
23448 # A symbol stripping program
23451 # Used to examine libraries when file_magic_cmd begins "file"
23452 MAGIC_CMD=$MAGIC_CMD
23454 # Used on cygwin: DLL creation program.
23457 # Used on cygwin: object dumper.
23460 # Used on cygwin: assembler.
23463 # The name of the directory that contains temporary libtool files.
23466 # How to create reloadable object files.
23467 reload_flag=$lt_reload_flag
23468 reload_cmds=$lt_reload_cmds
23470 # How to pass a linker flag through the compiler.
23471 wl=$lt_lt_prog_compiler_wl_F77
23473 # Object file suffix (normally "o").
23474 objext="$ac_objext"
23476 # Old archive suffix (normally "a").
23479 # Shared library suffix (normally ".so").
23480 shrext_cmds='$shrext_cmds'
23482 # Executable file suffix (normally "").
23485 # Additional compiler flags for building library objects.
23486 pic_flag=$lt_lt_prog_compiler_pic_F77
23489 # What is the maximum length of a command?
23490 max_cmd_len=$lt_cv_sys_max_cmd_len
23492 # Does compiler simultaneously support -c and -o options?
23493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23495 # Must we lock files when doing compilation?
23496 need_locks=$lt_need_locks
23498 # Do we need the lib prefix for modules?
23499 need_lib_prefix=$need_lib_prefix
23501 # Do we need a version for libraries?
23502 need_version=$need_version
23504 # Whether dlopen is supported.
23505 dlopen_support=$enable_dlopen
23507 # Whether dlopen of programs is supported.
23508 dlopen_self=$enable_dlopen_self
23510 # Whether dlopen of statically linked programs is supported.
23511 dlopen_self_static=$enable_dlopen_self_static
23513 # Compiler flag to prevent dynamic linking.
23514 link_static_flag=$lt_lt_prog_compiler_static_F77
23516 # Compiler flag to turn off builtin functions.
23517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23519 # Compiler flag to allow reflexive dlopens.
23520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23522 # Compiler flag to generate shared objects directly from archives.
23523 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23525 # Compiler flag to generate thread-safe objects.
23526 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23528 # Library versioning type.
23529 version_type=$version_type
23531 # Format of library name prefix.
23532 libname_spec=$lt_libname_spec
23534 # List of archive names. First name is the real one, the rest are links.
23535 # The last name is the one that the linker finds with -lNAME.
23536 library_names_spec=$lt_library_names_spec
23538 # The coded name of the library, if different from the real name.
23539 soname_spec=$lt_soname_spec
23541 # Commands used to build and install an old-style archive.
23543 old_archive_cmds=$lt_old_archive_cmds_F77
23544 old_postinstall_cmds=$lt_old_postinstall_cmds
23545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23547 # Create an old-style archive from a shared archive.
23548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23550 # Create a temporary old-style archive to link instead of a shared archive.
23551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23553 # Commands used to build and install a shared archive.
23554 archive_cmds=$lt_archive_cmds_F77
23555 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23556 postinstall_cmds=$lt_postinstall_cmds
23557 postuninstall_cmds=$lt_postuninstall_cmds
23559 # Commands used to build a loadable module (assumed same as above if empty)
23560 module_cmds=$lt_module_cmds_F77
23561 module_expsym_cmds=$lt_module_expsym_cmds_F77
23563 # Commands to strip libraries.
23564 old_striplib=$lt_old_striplib
23565 striplib=$lt_striplib
23567 # Dependencies to place before the objects being linked to create a
23569 predep_objects=$lt_predep_objects_F77
23571 # Dependencies to place after the objects being linked to create a
23573 postdep_objects=$lt_postdep_objects_F77
23575 # Dependencies to place before the objects being linked to create a
23577 predeps=$lt_predeps_F77
23579 # Dependencies to place after the objects being linked to create a
23581 postdeps=$lt_postdeps_F77
23583 # The library search path used internally by the compiler when linking
23584 # a shared library.
23585 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23587 # Method to check whether dependent libraries are shared objects.
23588 deplibs_check_method=$lt_deplibs_check_method
23590 # Command to use when deplibs_check_method == file_magic.
23591 file_magic_cmd=$lt_file_magic_cmd
23593 # Flag that allows shared libraries with undefined symbols to be built.
23594 allow_undefined_flag=$lt_allow_undefined_flag_F77
23596 # Flag that forces no undefined symbols.
23597 no_undefined_flag=$lt_no_undefined_flag_F77
23599 # Commands used to finish a libtool library installation in a directory.
23600 finish_cmds=$lt_finish_cmds
23602 # Same as above, but a single script fragment to be evaled but not shown.
23603 finish_eval=$lt_finish_eval
23605 # Take the output of nm and produce a listing of raw symbols and C names.
23606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23608 # Transform the output of nm in a proper C declaration
23609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23611 # Transform the output of nm in a C name address pair
23612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23614 # This is the shared library runtime path variable.
23615 runpath_var=$runpath_var
23617 # This is the shared library path variable.
23618 shlibpath_var=$shlibpath_var
23620 # Is shlibpath searched before the hard-coded library search path?
23621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23623 # How to hardcode a shared library path into an executable.
23624 hardcode_action=$hardcode_action_F77
23626 # Whether we should hardcode library paths into libraries.
23627 hardcode_into_libs=$hardcode_into_libs
23629 # Flag to hardcode \$libdir into a binary during linking.
23630 # This must work even if \$libdir does not exist.
23631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23633 # If ld is used when linking, flag to hardcode \$libdir into
23634 # a binary during linking. This must work even if \$libdir does
23636 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23638 # Whether we need a single -rpath flag with a separated argument.
23639 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23641 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23642 # resulting binary.
23643 hardcode_direct=$hardcode_direct_F77
23645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23646 # resulting binary.
23647 hardcode_minus_L=$hardcode_minus_L_F77
23649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23650 # the resulting binary.
23651 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23653 # Set to yes if building a shared library automatically hardcodes DIR into the library
23654 # and all subsequent libraries and executables linked against it.
23655 hardcode_automatic=$hardcode_automatic_F77
23657 # Variables whose values should be saved in libtool wrapper scripts and
23658 # restored at relink time.
23659 variables_saved_for_relink="$variables_saved_for_relink"
23661 # Whether libtool must link a program against all its dependency libraries.
23662 link_all_deplibs=$link_all_deplibs_F77
23664 # Compile-time system search path for libraries
23665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23667 # Run-time system search path for libraries
23668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23670 # Fix the shell variable \$srcfile for the compiler.
23671 fix_srcfile_path="$fix_srcfile_path_F77"
23673 # Set to yes if exported symbols are required.
23674 always_export_symbols=$always_export_symbols_F77
23676 # The commands to list exported symbols.
23677 export_symbols_cmds=$lt_export_symbols_cmds_F77
23679 # The commands to extract the exported symbol list from a shared archive.
23680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23682 # Symbols that should not be listed in the preloaded symbols.
23683 exclude_expsyms=$lt_exclude_expsyms_F77
23685 # Symbols that must always be exported.
23686 include_expsyms=$lt_include_expsyms_F77
23688 # ### END LIBTOOL TAG CONFIG: $tagname
23694 # If there is no Makefile yet, we rely on a make rule to execute
23695 # `config.status --recheck' to rerun these tests and create the
23696 # libtool script then.
23697 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23698 if test -f "$ltmain_in"; then
23699 test -f Makefile && make "$ltmain"
23705 ac_cpp='$CPP $CPPFLAGS'
23706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23718 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23720 ac_cpp='$CPP $CPPFLAGS'
23721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23726 # Source file extension for Java test sources.
23729 # Object file extension for compiled Java test sources.
23733 # Code to be used in simple compile tests
23734 lt_simple_compile_test_code="class foo {}\n"
23736 # Code to be used in simple link tests
23737 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23739 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23741 # If no C compiler was specified, use CC.
23744 # If no C compiler flags were specified, use CFLAGS.
23745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23747 # Allow CC to be a program name with arguments.
23751 # save warnings/boilerplate of simple test code
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23754 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23755 _lt_compiler_boilerplate=`cat conftest.err`
23758 ac_outfile=conftest.$ac_objext
23759 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23760 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23761 _lt_linker_boilerplate=`cat conftest.err`
23765 # Allow CC to be a program name with arguments.
23770 for cc_temp in $compiler""; do
23772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23778 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23781 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23782 archive_cmds_need_lc_GCJ=no
23784 old_archive_cmds_GCJ=$old_archive_cmds
23787 lt_prog_compiler_no_builtin_flag_GCJ=
23789 if test "$GCC" = yes; then
23790 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23793 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23794 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23795 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23798 lt_cv_prog_compiler_rtti_exceptions=no
23799 ac_outfile=conftest.$ac_objext
23800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23801 lt_compiler_flag="-fno-rtti -fno-exceptions"
23802 # Insert the option either (1) after the last *FLAGS variable, or
23803 # (2) before a word containing "conftest.", or (3) at the end.
23804 # Note that $ac_compile itself does not contain backslashes and begins
23805 # with a dollar sign (not a hyphen), so the echo should work correctly.
23806 # The option is referenced via a variable to avoid confusing sed.
23807 lt_compile=`echo "$ac_compile" | $SED \
23808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23810 -e 's:$: $lt_compiler_flag:'`
23811 (eval echo "\"\$as_me:23811: $lt_compile\"" >&5)
23812 (eval "$lt_compile" 2>conftest.err)
23814 cat conftest.err >&5
23815 echo "$as_me:23815: \$? = $ac_status" >&5
23816 if (exit $ac_status) && test -s "$ac_outfile"; then
23817 # The compiler can only warn and ignore the option if not recognized
23818 # So say no if there are warnings other than the usual output.
23819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23822 lt_cv_prog_compiler_rtti_exceptions=yes
23828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23829 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23832 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23839 lt_prog_compiler_wl_GCJ=
23840 lt_prog_compiler_pic_GCJ=
23841 lt_prog_compiler_static_GCJ=
23843 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23844 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23846 if test "$GCC" = yes; then
23847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 lt_prog_compiler_static_GCJ='-static'
23852 # All AIX code is PIC.
23853 if test "$host_cpu" = ia64; then
23854 # AIX 5 now supports IA64 processor
23855 lt_prog_compiler_static_GCJ='-Bstatic'
23860 # FIXME: we need at least 68020 code to build shared libraries, but
23861 # adding the `-m68020' flag to GCC prevents building anything better,
23863 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23866 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23867 # PIC is the default for these OSes.
23870 mingw* | pw32* | os2*)
23871 # This hack is so that the source file can tell whether it is being
23872 # built for inclusion in a dll (and should export symbols for example).
23873 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23876 darwin* | rhapsody*)
23877 # PIC is the default on this platform
23878 # Common symbols not allowed in MH_DYLIB files
23879 lt_prog_compiler_pic_GCJ='-fno-common'
23883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23884 # Instead, we relocate shared libraries at runtime.
23888 # Just because we use GCC doesn't mean we suddenly get shared libraries
23889 # on systems that don't support them.
23890 lt_prog_compiler_can_build_shared_GCJ=no
23895 if test -d /usr/nec; then
23896 lt_prog_compiler_pic_GCJ=-Kconform_pic
23901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902 # not for PA HP-UX.
23908 lt_prog_compiler_pic_GCJ='-fPIC'
23914 lt_prog_compiler_pic_GCJ='-fPIC'
23918 # PORTME Check for flag to pass linker flags through the system compiler.
23921 lt_prog_compiler_wl_GCJ='-Wl,'
23922 if test "$host_cpu" = ia64; then
23923 # AIX 5 now supports IA64 processor
23924 lt_prog_compiler_static_GCJ='-Bstatic'
23926 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23930 # PIC is the default on this platform
23931 # Common symbols not allowed in MH_DYLIB files
23932 case $cc_basename in
23934 lt_prog_compiler_pic_GCJ='-qnocommon'
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23940 mingw* | pw32* | os2*)
23941 # This hack is so that the source file can tell whether it is being
23942 # built for inclusion in a dll (and should export symbols for example).
23943 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23946 hpux9* | hpux10* | hpux11*)
23947 lt_prog_compiler_wl_GCJ='-Wl,'
23948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23949 # not for PA HP-UX.
23955 lt_prog_compiler_pic_GCJ='+Z'
23958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23959 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23962 irix5* | irix6* | nonstopux*)
23963 lt_prog_compiler_wl_GCJ='-Wl,'
23964 # PIC (with -KPIC) is the default.
23965 lt_prog_compiler_static_GCJ='-non_shared'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23974 case $cc_basename in
23976 lt_prog_compiler_wl_GCJ='-Wl,'
23977 lt_prog_compiler_pic_GCJ='-KPIC'
23978 lt_prog_compiler_static_GCJ='-static'
23980 pgcc* | pgf77* | pgf90* | pgf95*)
23981 # Portland Group compilers (*not* the Pentium gcc compiler,
23982 # which looks to be a dead project)
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 lt_prog_compiler_pic_GCJ='-fpic'
23985 lt_prog_compiler_static_GCJ='-Bstatic'
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 # All Alpha code is PIC.
23990 lt_prog_compiler_static_GCJ='-non_shared'
23995 osf3* | osf4* | osf5*)
23996 lt_prog_compiler_wl_GCJ='-Wl,'
23997 # All OSF/1 code is PIC.
23998 lt_prog_compiler_static_GCJ='-non_shared'
24002 lt_prog_compiler_pic_GCJ='-KPIC'
24003 lt_prog_compiler_static_GCJ='-Bstatic'
24004 case $cc_basename in
24005 f77* | f90* | f95*)
24006 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24008 lt_prog_compiler_wl_GCJ='-Wl,';;
24013 lt_prog_compiler_wl_GCJ='-Qoption ld '
24014 lt_prog_compiler_pic_GCJ='-PIC'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24018 sysv4 | sysv4.2uw2* | sysv4.3*)
24019 lt_prog_compiler_wl_GCJ='-Wl,'
24020 lt_prog_compiler_pic_GCJ='-KPIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24025 if test -d /usr/nec ;then
24026 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24027 lt_prog_compiler_static_GCJ='-Bstatic'
24031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24032 lt_prog_compiler_wl_GCJ='-Wl,'
24033 lt_prog_compiler_pic_GCJ='-KPIC'
24034 lt_prog_compiler_static_GCJ='-Bstatic'
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_can_build_shared_GCJ=no
24043 lt_prog_compiler_pic_GCJ='-pic'
24044 lt_prog_compiler_static_GCJ='-Bstatic'
24048 lt_prog_compiler_can_build_shared_GCJ=no
24053 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24054 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24057 # Check to make sure the PIC flag actually works.
24059 if test -n "$lt_prog_compiler_pic_GCJ"; then
24061 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24062 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24063 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24064 echo $ECHO_N "(cached) $ECHO_C" >&6
24066 lt_prog_compiler_pic_works_GCJ=no
24067 ac_outfile=conftest.$ac_objext
24068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24069 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24070 # Insert the option either (1) after the last *FLAGS variable, or
24071 # (2) before a word containing "conftest.", or (3) at the end.
24072 # Note that $ac_compile itself does not contain backslashes and begins
24073 # with a dollar sign (not a hyphen), so the echo should work correctly.
24074 # The option is referenced via a variable to avoid confusing sed.
24075 lt_compile=`echo "$ac_compile" | $SED \
24076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24078 -e 's:$: $lt_compiler_flag:'`
24079 (eval echo "\"\$as_me:24079: $lt_compile\"" >&5)
24080 (eval "$lt_compile" 2>conftest.err)
24082 cat conftest.err >&5
24083 echo "$as_me:24083: \$? = $ac_status" >&5
24084 if (exit $ac_status) && test -s "$ac_outfile"; then
24085 # The compiler can only warn and ignore the option if not recognized
24086 # So say no if there are warnings other than the usual output.
24087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24090 lt_prog_compiler_pic_works_GCJ=yes
24096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24097 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24099 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24100 case $lt_prog_compiler_pic_GCJ in
24102 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24105 lt_prog_compiler_pic_GCJ=
24106 lt_prog_compiler_can_build_shared_GCJ=no
24111 # For platforms which do not support PIC, -DPIC is meaningless:
24113 lt_prog_compiler_pic_GCJ=
24116 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24121 # Check to make sure the static flag actually works.
24123 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24124 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24125 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24126 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 lt_prog_compiler_static_works_GCJ=no
24130 save_LDFLAGS="$LDFLAGS"
24131 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24132 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24134 # The linker can only warn and ignore the option if not recognized
24135 # So say no if there are warnings
24136 if test -s conftest.err; then
24137 # Append any errors to the config.log.
24138 cat conftest.err 1>&5
24139 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24141 if diff conftest.exp conftest.er2 >/dev/null; then
24142 lt_prog_compiler_static_works_GCJ=yes
24145 lt_prog_compiler_static_works_GCJ=yes
24149 LDFLAGS="$save_LDFLAGS"
24152 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24153 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24155 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24158 lt_prog_compiler_static_GCJ=
24162 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 lt_cv_prog_compiler_c_o_GCJ=no
24168 $rm -r conftest 2>/dev/null
24172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24174 lt_compiler_flag="-o out/conftest2.$ac_objext"
24175 # Insert the option either (1) after the last *FLAGS variable, or
24176 # (2) before a word containing "conftest.", or (3) at the end.
24177 # Note that $ac_compile itself does not contain backslashes and begins
24178 # with a dollar sign (not a hyphen), so the echo should work correctly.
24179 lt_compile=`echo "$ac_compile" | $SED \
24180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24182 -e 's:$: $lt_compiler_flag:'`
24183 (eval echo "\"\$as_me:24183: $lt_compile\"" >&5)
24184 (eval "$lt_compile" 2>out/conftest.err)
24186 cat out/conftest.err >&5
24187 echo "$as_me:24187: \$? = $ac_status" >&5
24188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24190 # The compiler can only warn and ignore the option if not recognized
24191 # So say no if there are warnings
24192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24195 lt_cv_prog_compiler_c_o_GCJ=yes
24200 # SGI C++ compiler will create directory out/ii_files/ for
24201 # template instantiation
24202 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24203 $rm out/* && rmdir out
24209 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24213 hard_links="nottested"
24214 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24215 # do not overwrite the value of need_locks provided by the user
24216 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24222 ln conftest.a conftest.b 2>&5 || hard_links=no
24223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24224 { echo "$as_me:$LINENO: result: $hard_links" >&5
24225 echo "${ECHO_T}$hard_links" >&6; }
24226 if test "$hard_links" = no; then
24227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24235 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24239 allow_undefined_flag_GCJ=
24240 enable_shared_with_static_runtimes_GCJ=no
24242 archive_expsym_cmds_GCJ=
24243 old_archive_From_new_cmds_GCJ=
24244 old_archive_from_expsyms_cmds_GCJ=
24245 export_dynamic_flag_spec_GCJ=
24246 whole_archive_flag_spec_GCJ=
24247 thread_safe_flag_spec_GCJ=
24248 hardcode_libdir_flag_spec_GCJ=
24249 hardcode_libdir_flag_spec_ld_GCJ=
24250 hardcode_libdir_separator_GCJ=
24251 hardcode_direct_GCJ=no
24252 hardcode_minus_L_GCJ=no
24253 hardcode_shlibpath_var_GCJ=unsupported
24254 link_all_deplibs_GCJ=unknown
24255 hardcode_automatic_GCJ=no
24257 module_expsym_cmds_GCJ=
24258 always_export_symbols_GCJ=no
24259 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24260 # include_expsyms should be a list of space-separated symbols to be *always*
24261 # included in the symbol list
24262 include_expsyms_GCJ=
24263 # exclude_expsyms can be an extended regexp of symbols to exclude
24264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24266 # as well as any symbol that contains `d'.
24267 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24269 # platforms (ab)use it in PIC code, but their linkers get confused if
24270 # the symbol is explicitly referenced. Since portable code cannot
24271 # rely on this symbol name, it's probably fine to never include it in
24272 # preloaded symbol tables.
24273 extract_expsyms_cmds=
24274 # Just being paranoid about ensuring that cc_basename is set.
24275 for cc_temp in $compiler""; do
24277 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24278 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24283 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24286 cygwin* | mingw* | pw32*)
24287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24288 # When not using gcc, we currently assume that we are using
24289 # Microsoft Visual C++.
24290 if test "$GCC" != yes; then
24295 # we just hope/assume this is gcc and not c89 (= MSVC++)
24304 if test "$with_gnu_ld" = yes; then
24305 # If archive_cmds runs LD, not CC, wlarc should be empty
24308 # Set some defaults for GNU ld with shared library support. These
24309 # are reset later if shared libraries are not supported. Putting them
24310 # here allows them to be overridden if necessary.
24311 runpath_var=LD_RUN_PATH
24312 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24313 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24314 # ancient GNU ld didn't support --whole-archive et. al.
24315 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24316 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24318 whole_archive_flag_spec_GCJ=
24320 supports_anon_versioning=no
24321 case `$LD -v 2>/dev/null` in
24322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24325 *\ 2.11.*) ;; # other 2.11 versions
24326 *) supports_anon_versioning=yes ;;
24329 # See if GNU ld supports shared libraries.
24331 aix3* | aix4* | aix5*)
24332 # On AIX/PPC, the GNU linker is very broken
24333 if test "$host_cpu" != ia64; then
24337 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24338 *** to be unable to reliably create shared libraries on AIX.
24339 *** Therefore, libtool is disabling shared libraries support. If you
24340 *** really care for shared libraries, you may want to modify your PATH
24341 *** so that a non-GNU linker is found, and then restart.
24348 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)'
24349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24350 hardcode_minus_L_GCJ=yes
24352 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24353 # that the semantics of dynamic libraries on AmigaOS, at least up
24354 # to version 4, is to share data among multiple programs linked
24355 # with the same dynamic library. Since this doesn't match the
24356 # behavior of shared libraries on other platforms, we can't use
24362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24363 allow_undefined_flag_GCJ=unsupported
24364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24365 # support --undefined. This deserves some investigation. FIXME
24366 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24372 cygwin* | mingw* | pw32*)
24373 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24374 # as there is no search path for DLLs.
24375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24376 allow_undefined_flag_GCJ=unsupported
24377 always_export_symbols_GCJ=no
24378 enable_shared_with_static_runtimes_GCJ=yes
24379 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24381 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24383 # If the export-symbols file already is a .def file (1st line
24384 # is EXPORTS), use it as is; otherwise, prepend...
24385 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24386 cp $export_symbols $output_objdir/$soname.def;
24388 echo EXPORTS > $output_objdir/$soname.def;
24389 cat $export_symbols >> $output_objdir/$soname.def;
24391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24398 hardcode_direct_GCJ=no
24399 hardcode_shlibpath_var_GCJ=no
24400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24401 export_dynamic_flag_spec_GCJ='${wl}-E'
24402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24403 # Instead, shared libraries are loaded at an image base (0x10000000 by
24404 # default) and relocated if they conflict, which is a slow very memory
24405 # consuming and fragmenting process. To avoid this, we pick a random,
24406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24408 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'
24409 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'
24413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24415 case $cc_basename,$host_cpu in
24416 pgcc*) # Portland Group C compiler
24417 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'
24418 tmp_addflag=' $pic_flag'
24420 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24421 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'
24422 tmp_addflag=' $pic_flag -Mnomain' ;;
24423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24424 tmp_addflag=' -i_dynamic' ;;
24425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24426 tmp_addflag=' -i_dynamic -nofor_main' ;;
24427 ifc* | ifort*) # Intel Fortran compiler
24428 tmp_addflag=' -nofor_main' ;;
24430 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24432 if test $supports_anon_versioning = yes; then
24433 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24435 $echo "local: *; };" >> $output_objdir/$libname.ver~
24436 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24445 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24448 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24449 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24454 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24459 *** create shared libraries on Solaris systems. Therefore, libtool
24460 *** is disabling shared libraries support. We urge you to upgrade GNU
24461 *** binutils to release 2.9.1 or newer. Another option is to modify
24462 *** your PATH or compiler configuration so that the native linker is
24463 *** used, and then restart.
24466 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24468 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24475 case `$LD -v 2>&1` in
24476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24481 *** reliably create shared libraries on SCO systems. Therefore, libtool
24482 *** is disabling shared libraries support. We urge you to upgrade GNU
24483 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24484 *** your PATH or compiler configuration so that the native linker is
24485 *** used, and then restart.
24490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24491 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24502 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24504 hardcode_direct_GCJ=yes
24505 hardcode_shlibpath_var_GCJ=no
24509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24510 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24511 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24518 if test "$ld_shlibs_GCJ" = no; then
24520 hardcode_libdir_flag_spec_GCJ=
24521 export_dynamic_flag_spec_GCJ=
24522 whole_archive_flag_spec_GCJ=
24525 # PORTME fill in a description of your system's linker (not GNU ld)
24528 allow_undefined_flag_GCJ=unsupported
24529 always_export_symbols_GCJ=yes
24530 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'
24531 # Note: this linker hardcodes the directories in LIBPATH if there
24532 # are no directories specified by -L.
24533 hardcode_minus_L_GCJ=yes
24534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24535 # Neither direct hardcoding nor static linking is supported with a
24537 hardcode_direct_GCJ=unsupported
24542 if test "$host_cpu" = ia64; then
24543 # On IA64, the linker does run time linking by default, so we don't
24544 # have to do anything special.
24545 aix_use_runtimelinking=no
24546 exp_sym_flag='-Bexport'
24549 # If we're using GNU nm, then we don't want the "-C" option.
24550 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24552 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'
24554 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'
24556 aix_use_runtimelinking=no
24558 # Test if we are trying to use run time linking or normal
24559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24560 # need to do runtime linking.
24561 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24562 for ld_flag in $LDFLAGS; do
24563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24564 aix_use_runtimelinking=yes
24571 exp_sym_flag='-bexport'
24572 no_entry_flag='-bnoentry'
24575 # When large executables or shared objects are built, AIX ld can
24576 # have problems creating the table of contents. If linking a library
24577 # or program results in "error TOC overflow" add -mminimal-toc to
24578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24581 archive_cmds_GCJ=''
24582 hardcode_direct_GCJ=yes
24583 hardcode_libdir_separator_GCJ=':'
24584 link_all_deplibs_GCJ=yes
24586 if test "$GCC" = yes; then
24587 case $host_os in aix4.[012]|aix4.[012].*)
24588 # We only want to do this on AIX 4.2 and lower, the check
24589 # below for broken collect2 doesn't work under 4.3+
24590 collect2name=`${CC} -print-prog-name=collect2`
24591 if test -f "$collect2name" && \
24592 strings "$collect2name" | grep resolve_lib_name >/dev/null
24594 # We have reworked collect2
24595 hardcode_direct_GCJ=yes
24597 # We have old collect2
24598 hardcode_direct_GCJ=unsupported
24599 # It fails to find uninstalled libraries when the uninstalled
24600 # path is not listed in the libpath. Setting hardcode_minus_L
24601 # to unsupported forces relinking
24602 hardcode_minus_L_GCJ=yes
24603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24604 hardcode_libdir_separator_GCJ=
24608 shared_flag='-shared'
24609 if test "$aix_use_runtimelinking" = yes; then
24610 shared_flag="$shared_flag "'${wl}-G'
24614 if test "$host_cpu" = ia64; then
24615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24616 # chokes on -Wl,-G. The following line is correct:
24619 if test "$aix_use_runtimelinking" = yes; then
24620 shared_flag='${wl}-G'
24622 shared_flag='${wl}-bM:SRE'
24627 # It seems that -bexpall does not export symbols beginning with
24628 # underscore (_), so it is better to generate a list of symbols to export.
24629 always_export_symbols_GCJ=yes
24630 if test "$aix_use_runtimelinking" = yes; then
24631 # Warning - without using the other runtime loading flags (-brtl),
24632 # -berok will link without error, but may produce a broken library.
24633 allow_undefined_flag_GCJ='-berok'
24634 # Determine the default libpath from the value encoded in an empty executable.
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24650 rm -f conftest.$ac_objext conftest$ac_exeext
24651 if { (ac_try="$ac_link"
24652 case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_link") 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
24664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24665 { (case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_try") 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; } &&
24674 { ac_try='test -s conftest$ac_exeext'
24675 { (case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24687 # Check for a 64-bit object if we didn't find anything.
24688 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; }
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24697 rm -f core conftest.err conftest.$ac_objext \
24698 conftest$ac_exeext conftest.$ac_ext
24699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24701 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24702 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"
24704 if test "$host_cpu" = ia64; then
24705 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24706 allow_undefined_flag_GCJ="-z nodefs"
24707 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"
24709 # Determine the default libpath from the value encoded in an empty executable.
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (ac_try="$ac_link"
24727 case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_link") 2>conftest.er1
24734 grep -v '^ *+' conftest.er1 >conftest.err
24736 cat conftest.err >&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); } &&
24739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24740 { (case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745 (eval "$ac_try") 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; } &&
24749 { ac_try='test -s conftest$ac_exeext'
24750 { (case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_try") 2>&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
24760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24762 # Check for a 64-bit object if we didn't find anything.
24763 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; }
24766 echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24772 rm -f core conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
24774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24776 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24777 # Warning - without using the other run time loading flags,
24778 # -berok will link without error, but may produce a broken library.
24779 no_undefined_flag_GCJ=' ${wl}-bernotok'
24780 allow_undefined_flag_GCJ=' ${wl}-berok'
24781 # Exported symbols can be pulled into shared objects from archives
24782 whole_archive_flag_spec_GCJ='$convenience'
24783 archive_cmds_need_lc_GCJ=yes
24784 # This is similar to how AIX traditionally builds its shared libraries.
24785 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'
24791 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)'
24792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24793 hardcode_minus_L_GCJ=yes
24794 # see comment about different semantics on the GNU ld section
24799 export_dynamic_flag_spec_GCJ=-rdynamic
24802 cygwin* | mingw* | pw32*)
24803 # When not using gcc, we currently assume that we are using
24804 # Microsoft Visual C++.
24805 # hardcode_libdir_flag_spec is actually meaningless, as there is
24806 # no search path for DLLs.
24807 hardcode_libdir_flag_spec_GCJ=' '
24808 allow_undefined_flag_GCJ=unsupported
24809 # Tell ltmain to make .lib files, not .a files.
24811 # Tell ltmain to make .dll files, not .so files.
24813 # FIXME: Setting linknames here is a bad hack.
24814 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24815 # The linker will automatically build a .lib file if we build a DLL.
24816 old_archive_From_new_cmds_GCJ='true'
24817 # FIXME: Should let the user specify the lib program.
24818 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24819 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24820 enable_shared_with_static_runtimes_GCJ=yes
24823 darwin* | rhapsody*)
24825 rhapsody* | darwin1.[012])
24826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24832 case ${MACOSX_DEPLOYMENT_TARGET} in
24834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24843 archive_cmds_need_lc_GCJ=no
24844 hardcode_direct_GCJ=no
24845 hardcode_automatic_GCJ=yes
24846 hardcode_shlibpath_var_GCJ=unsupported
24847 whole_archive_flag_spec_GCJ=''
24848 link_all_deplibs_GCJ=yes
24849 if test "$GCC" = yes ; then
24850 output_verbose_link_cmd='echo'
24851 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24852 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24854 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}'
24855 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}'
24857 case $cc_basename in
24859 output_verbose_link_cmd='echo'
24860 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24861 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24863 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}'
24864 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}'
24874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876 hardcode_shlibpath_var_GCJ=no
24883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24884 # support. Future versions do this automatically, but an explicit c++rt0.o
24885 # does not break anything, and helps significantly (at the cost of a little
24888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24890 hardcode_direct_GCJ=yes
24891 hardcode_shlibpath_var_GCJ=no
24894 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24897 hardcode_direct_GCJ=yes
24898 hardcode_minus_L_GCJ=yes
24899 hardcode_shlibpath_var_GCJ=no
24902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24903 freebsd* | kfreebsd*-gnu | dragonfly*)
24904 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906 hardcode_direct_GCJ=yes
24907 hardcode_shlibpath_var_GCJ=no
24911 if test "$GCC" = yes; then
24912 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'
24914 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'
24916 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24917 hardcode_libdir_separator_GCJ=:
24918 hardcode_direct_GCJ=yes
24920 # hardcode_minus_L: Not really in the search PATH,
24921 # but as the default location of the library.
24922 hardcode_minus_L_GCJ=yes
24923 export_dynamic_flag_spec_GCJ='${wl}-E'
24927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24928 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24930 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24932 if test "$with_gnu_ld" = no; then
24933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24934 hardcode_libdir_separator_GCJ=:
24936 hardcode_direct_GCJ=yes
24937 export_dynamic_flag_spec_GCJ='${wl}-E'
24939 # hardcode_minus_L: Not really in the search PATH,
24940 # but as the default location of the library.
24941 hardcode_minus_L_GCJ=yes
24946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24949 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24952 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24955 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24961 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24964 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24971 if test "$with_gnu_ld" = no; then
24972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24973 hardcode_libdir_separator_GCJ=:
24977 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24978 hardcode_direct_GCJ=no
24979 hardcode_shlibpath_var_GCJ=no
24982 hardcode_direct_GCJ=yes
24983 export_dynamic_flag_spec_GCJ='${wl}-E'
24985 # hardcode_minus_L: Not really in the search PATH,
24986 # but as the default location of the library.
24987 hardcode_minus_L_GCJ=yes
24993 irix5* | irix6* | nonstopux*)
24994 if test "$GCC" = yes; then
24995 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'
24997 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'
24998 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25001 hardcode_libdir_separator_GCJ=:
25002 link_all_deplibs_GCJ=yes
25006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25007 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25009 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25011 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25012 hardcode_direct_GCJ=yes
25013 hardcode_shlibpath_var_GCJ=no
25017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25018 hardcode_direct_GCJ=yes
25019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25020 hardcode_libdir_separator_GCJ=:
25021 hardcode_shlibpath_var_GCJ=no
25025 hardcode_direct_GCJ=yes
25026 hardcode_shlibpath_var_GCJ=no
25027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25031 export_dynamic_flag_spec_GCJ='${wl}-E'
25034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25035 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25036 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25039 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25048 hardcode_minus_L_GCJ=yes
25049 allow_undefined_flag_GCJ=unsupported
25050 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'
25051 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25055 if test "$GCC" = yes; then
25056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25057 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'
25059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060 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'
25062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063 hardcode_libdir_separator_GCJ=:
25066 osf4* | osf5*) # as osf3* with the addition of -msym flag
25067 if test "$GCC" = yes; then
25068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25069 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'
25070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25072 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25073 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'
25074 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~
25075 $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'
25077 # Both c and cxx compiler support -rpath directly
25078 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25080 hardcode_libdir_separator_GCJ=:
25084 no_undefined_flag_GCJ=' -z text'
25085 if test "$GCC" = yes; then
25087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25096 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25099 solaris2.[0-5] | solaris2.[0-5].*) ;;
25101 # The compiler driver will combine linker options so we
25102 # cannot just pass the convience library names through
25103 # without $wl, iff we do not link with $LD.
25104 # Luckily, gcc supports the same syntax we need for Sun Studio.
25105 # Supported since Solaris 2.6 (maybe 2.5.1?)
25108 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25110 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' ;;
25113 link_all_deplibs_GCJ=yes
25117 if test "x$host_vendor" = xsequent; then
25118 # Use $CC to link under sequent, because it throws in some extra .o
25119 # files that make .init and .fini sections work.
25120 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25122 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25125 hardcode_direct_GCJ=yes
25126 hardcode_minus_L_GCJ=yes
25127 hardcode_shlibpath_var_GCJ=no
25131 case $host_vendor in
25133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134 hardcode_direct_GCJ=yes # is this really true???
25137 ## LD is ld it makes a PLAMLIB
25138 ## CC just makes a GrossModule.
25139 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25140 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25141 hardcode_direct_GCJ=no
25144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25148 runpath_var='LD_RUN_PATH'
25149 hardcode_shlibpath_var_GCJ=no
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_shlibpath_var_GCJ=no
25155 export_dynamic_flag_spec_GCJ='-Bexport'
25159 if test -d /usr/nec; then
25160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25161 hardcode_shlibpath_var_GCJ=no
25162 runpath_var=LD_RUN_PATH
25163 hardcode_runpath_var=yes
25168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25169 no_undefined_flag_GCJ='${wl}-z,text'
25170 archive_cmds_need_lc_GCJ=no
25171 hardcode_shlibpath_var_GCJ=no
25172 runpath_var='LD_RUN_PATH'
25174 if test "$GCC" = yes; then
25175 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25176 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25178 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25179 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25183 sysv5* | sco3.2v5* | sco5v6*)
25184 # Note: We can NOT use -z defs as we might desire, because we do not
25185 # link with -lc, and that would cause any symbols used from libc to
25186 # always be unresolved, which means just about no library would
25187 # ever link correctly. If we're not using GNU ld we use -z text
25188 # though, which does catch some bad symbols but isn't as heavy-handed
25190 no_undefined_flag_GCJ='${wl}-z,text'
25191 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25192 archive_cmds_need_lc_GCJ=no
25193 hardcode_shlibpath_var_GCJ=no
25194 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25195 hardcode_libdir_separator_GCJ=':'
25196 link_all_deplibs_GCJ=yes
25197 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25198 runpath_var='LD_RUN_PATH'
25200 if test "$GCC" = yes; then
25201 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25202 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25204 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25205 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25211 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25212 hardcode_shlibpath_var_GCJ=no
25221 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25222 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25223 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25226 # Do we need to explicitly link libc?
25228 case "x$archive_cmds_need_lc_GCJ" in
25230 # Assume -lc should be added
25231 archive_cmds_need_lc_GCJ=yes
25233 if test "$enable_shared" = yes && test "$GCC" = yes; then
25234 case $archive_cmds_GCJ in
25236 # FIXME: we may have to deal with multi-command sequences.
25239 # Test whether the compiler implicitly links with -lc since on some
25240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25241 # to ld, don't add -lc before -lgcc.
25242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25248 (eval $ac_compile) 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } 2>conftest.err; then
25254 libobjs=conftest.$ac_objext
25256 wl=$lt_prog_compiler_wl_GCJ
25257 pic_flag=$lt_prog_compiler_pic_GCJ
25263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25264 allow_undefined_flag_GCJ=
25265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }
25271 archive_cmds_need_lc_GCJ=no
25273 archive_cmds_need_lc_GCJ=yes
25275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25277 cat conftest.err 1>&5
25280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25281 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25290 library_names_spec=
25291 libname_spec='lib$name'
25295 postuninstall_cmds=
25299 shlibpath_overrides_runpath=unknown
25301 dynamic_linker="$host_os ld.so"
25302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25303 if test "$GCC" = yes; then
25304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25306 # if the path contains ";" then we assume it to be the separator
25307 # otherwise default to the standard path separator (i.e. ":") - it is
25308 # assumed that no part of a normal pathname contains ";" but that should
25309 # okay in the real world where ";" in dirpaths is itself problematic.
25310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25317 need_lib_prefix=unknown
25318 hardcode_into_libs=no
25320 # when you set need_version to no, make sure it does not cause -set_version
25321 # flags to be left without arguments
25322 need_version=unknown
25327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25328 shlibpath_var=LIBPATH
25330 # AIX 3 has no versioning support, so we append a major version to the name.
25331 soname_spec='${libname}${release}${shared_ext}$major'
25338 hardcode_into_libs=yes
25339 if test "$host_cpu" = ia64; then
25340 # AIX 5 supports IA64
25341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25342 shlibpath_var=LD_LIBRARY_PATH
25344 # With GCC up to 2.95.x, collect2 would create an import file
25345 # for dependence libraries. The import file would start with
25346 # the line `#! .'. This would cause the generated library to
25347 # depend on `.', always an invalid library. This was fixed in
25348 # development snapshots of GCC prior to 3.0.
25350 aix4 | aix4.[01] | aix4.[01].*)
25351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25356 can_build_shared=no
25360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25361 # soname into executable. Probably we can add versioning support to
25362 # collect2, so additional links can be useful in future.
25363 if test "$aix_use_runtimelinking" = yes; then
25364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25365 # instead of lib<name>.a to let people know that these are not
25366 # typical AIX shared libraries.
25367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25369 # We preserve .a as extension for shared libraries through AIX4.2
25370 # and later when we are not doing run time linking.
25371 library_names_spec='${libname}${release}.a $libname.a'
25372 soname_spec='${libname}${release}${shared_ext}$major'
25374 shlibpath_var=LIBPATH
25379 library_names_spec='$libname.ixlibrary $libname.a'
25380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25381 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'
25385 library_names_spec='${libname}${shared_ext}'
25386 dynamic_linker="$host_os ld.so"
25387 shlibpath_var=LIBRARY_PATH
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25394 soname_spec='${libname}${release}${shared_ext}$major'
25395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25396 shlibpath_var=LD_LIBRARY_PATH
25397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25399 # the default ld.so.conf also contains /usr/contrib/lib and
25400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25401 # libtool to hard-code these into programs
25404 cygwin* | mingw* | pw32*)
25405 version_type=windows
25410 case $GCC,$host_os in
25411 yes,cygwin* | yes,mingw* | yes,pw32*)
25412 library_names_spec='$libname.dll.a'
25413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25414 postinstall_cmds='base_file=`basename \${file}`~
25415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25416 dldir=$destdir/`dirname \$dlpath`~
25417 test -d \$dldir || mkdir -p \$dldir~
25418 $install_prog $dir/$dlname \$dldir/$dlname~
25419 chmod a+x \$dldir/$dlname'
25420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25421 dlpath=$dir/\$dldll~
25423 shlibpath_overrides_runpath=yes
25427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25432 # MinGW DLLs use traditional 'lib' prefix
25433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25436 # It is most probably a Windows format PATH printed by
25437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25438 # path with ; separators, and with drive letters. We can handle the
25439 # drive letters (cygwin fileutils understands them), so leave them,
25440 # especially as we might pass files found there to a mingw objdump,
25441 # which wouldn't understand a cygwinified path. Ahh.
25442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25448 # pw32 DLLs use 'pw' prefix rather than 'lib'
25449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25458 dynamic_linker='Win32 ld.exe'
25459 # FIXME: first we should search . and the directory the executable is in
25463 darwin* | rhapsody*)
25464 dynamic_linker="$host_os dyld"
25465 version_type=darwin
25468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25469 soname_spec='${libname}${release}${major}$shared_ext'
25470 shlibpath_overrides_runpath=yes
25471 shlibpath_var=DYLD_LIBRARY_PATH
25472 shrext_cmds='.dylib'
25473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25474 if test "$GCC" = yes; then
25475 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"`
25477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25500 soname_spec='${libname}${release}${shared_ext}$major'
25501 shlibpath_var=LD_LIBRARY_PATH
25502 shlibpath_overrides_runpath=no
25503 hardcode_into_libs=yes
25504 dynamic_linker='GNU ld.so'
25507 freebsd* | dragonfly*)
25508 # DragonFly does not have aout. When/if they implement a new
25509 # versioning mechanism, adjust this.
25510 if test -x /usr/bin/objformat; then
25511 objformat=`/usr/bin/objformat`
25514 freebsd[123]*) objformat=aout ;;
25515 *) objformat=elf ;;
25518 version_type=freebsd-$objformat
25519 case $version_type in
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25530 shlibpath_var=LD_LIBRARY_PATH
25533 shlibpath_overrides_runpath=yes
25535 freebsd3.[01]* | freebsdelf3.[01]*)
25536 shlibpath_overrides_runpath=yes
25537 hardcode_into_libs=yes
25539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25541 shlibpath_overrides_runpath=no
25542 hardcode_into_libs=yes
25544 freebsd*) # from 4.6 on
25545 shlibpath_overrides_runpath=yes
25546 hardcode_into_libs=yes
25555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25556 soname_spec='${libname}${release}${shared_ext}$major'
25557 shlibpath_var=LD_LIBRARY_PATH
25558 hardcode_into_libs=yes
25561 hpux9* | hpux10* | hpux11*)
25562 # Give a soname corresponding to the major version so that dld.sl refuses to
25563 # link against other versions.
25570 hardcode_into_libs=yes
25571 dynamic_linker="$host_os dld.so"
25572 shlibpath_var=LD_LIBRARY_PATH
25573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25575 soname_spec='${libname}${release}${shared_ext}$major'
25576 if test "X$HPUX_IA64_MODE" = X32; then
25577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25585 hardcode_into_libs=yes
25586 dynamic_linker="$host_os dld.sl"
25587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590 soname_spec='${libname}${release}${shared_ext}$major'
25591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25596 dynamic_linker="$host_os dld.sl"
25597 shlibpath_var=SHLIB_PATH
25598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25604 postinstall_cmds='chmod 555 $lib'
25611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25612 soname_spec='${libname}${release}${shared_ext}$major'
25613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25614 shlibpath_var=LD_LIBRARY_PATH
25615 shlibpath_overrides_runpath=no
25616 hardcode_into_libs=yes
25619 irix5* | irix6* | nonstopux*)
25621 nonstopux*) version_type=nonstopux ;;
25623 if test "$lt_cv_prog_gnu_ld" = yes; then
25631 soname_spec='${libname}${release}${shared_ext}$major'
25632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25634 irix5* | nonstopux*)
25635 libsuff= shlibsuff=
25638 case $LD in # libtool.m4 will add one of these switches to LD
25639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25640 libsuff= shlibsuff= libmagic=32-bit;;
25641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25642 libsuff=32 shlibsuff=N32 libmagic=N32;;
25643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25645 *) libsuff= shlibsuff= libmagic=never-match;;
25649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25650 shlibpath_overrides_runpath=no
25651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25653 hardcode_into_libs=yes
25656 # No shared lib support for Linux oldld, aout, or coff.
25657 linux*oldld* | linux*aout* | linux*coff*)
25661 # This must be Linux ELF.
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667 soname_spec='${libname}${release}${shared_ext}$major'
25668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25669 shlibpath_var=LD_LIBRARY_PATH
25670 shlibpath_overrides_runpath=no
25671 # This implies no fast_install, which is unacceptable.
25672 # Some rework will be needed to allow for fast_install
25673 # before this can be enabled.
25674 hardcode_into_libs=yes
25676 # Append ld.so.conf contents to the search path
25677 if test -f /etc/ld.so.conf; then
25678 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' ' '`
25679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25682 # We used to test for /lib/ld.so.1 and disable shared libraries on
25683 # powerpc, because MkLinux only supported shared libraries with the
25684 # GNU dynamic linker. Since this was broken with cross compilers,
25685 # most powerpc-linux boxes support dynamic linking these days and
25686 # people can always --disable-shared, the test was removed, and we
25687 # assume the GNU/Linux dynamic linker is in use.
25688 dynamic_linker='GNU/Linux ld.so'
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25698 shlibpath_overrides_runpath=no
25699 hardcode_into_libs=yes
25700 dynamic_linker='GNU ld.so'
25707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25710 dynamic_linker='NetBSD (a.out) ld.so'
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25713 soname_spec='${libname}${release}${shared_ext}$major'
25714 dynamic_linker='NetBSD ld.elf_so'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 shlibpath_overrides_runpath=yes
25718 hardcode_into_libs=yes
25723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25724 shlibpath_var=LD_LIBRARY_PATH
25725 shlibpath_overrides_runpath=yes
25732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25733 soname_spec='${libname}${release}${shared_ext}$major'
25734 shlibpath_var=LD_LIBRARY_PATH
25735 shlibpath_overrides_runpath=yes
25740 sys_lib_dlsearch_path_spec="/usr/lib"
25742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25745 *) need_version=no ;;
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25752 openbsd2.[89] | openbsd2.[89].*)
25753 shlibpath_overrides_runpath=no
25756 shlibpath_overrides_runpath=yes
25760 shlibpath_overrides_runpath=yes
25765 libname_spec='$name'
25768 library_names_spec='$libname${shared_ext} $libname.a'
25769 dynamic_linker='OS/2 ld.exe'
25770 shlibpath_var=LIBPATH
25773 osf3* | osf4* | osf5*)
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789 soname_spec='${libname}${release}${shared_ext}$major'
25790 shlibpath_var=LD_LIBRARY_PATH
25791 shlibpath_overrides_runpath=yes
25792 hardcode_into_libs=yes
25793 # ldd complains unless libraries are executable
25794 postinstall_cmds='chmod +x $lib'
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 shlibpath_overrides_runpath=yes
25803 if test "$with_gnu_ld" = yes; then
25811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25812 soname_spec='${libname}${release}${shared_ext}$major'
25813 shlibpath_var=LD_LIBRARY_PATH
25814 case $host_vendor in
25816 shlibpath_overrides_runpath=no
25818 export_dynamic_flag_spec='${wl}-Blargedynsym'
25819 runpath_var=LD_RUN_PATH
25827 shlibpath_overrides_runpath=no
25828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25834 if test -d /usr/nec ;then
25836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25837 soname_spec='$libname${shared_ext}.$major'
25838 shlibpath_var=LD_LIBRARY_PATH
25842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25843 version_type=freebsd-elf
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 hardcode_into_libs=yes
25850 if test "$with_gnu_ld" = yes; then
25851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25852 shlibpath_overrides_runpath=no
25854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25855 shlibpath_overrides_runpath=yes
25858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25862 sys_lib_dlsearch_path_spec='/usr/lib'
25867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25868 soname_spec='${libname}${release}${shared_ext}$major'
25869 shlibpath_var=LD_LIBRARY_PATH
25876 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25877 echo "${ECHO_T}$dynamic_linker" >&6; }
25878 test "$dynamic_linker" = no && can_build_shared=no
25880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25881 if test "$GCC" = yes; then
25882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25885 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25887 hardcode_action_GCJ=
25888 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25889 test -n "$runpath_var_GCJ" || \
25890 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25892 # We can hardcode non-existant directories.
25893 if test "$hardcode_direct_GCJ" != no &&
25894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25895 # have to relink, otherwise we might link with an installed library
25896 # when we should be linking with a yet-to-be-installed one
25897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25898 test "$hardcode_minus_L_GCJ" != no; then
25899 # Linking always hardcodes the temporary library directory.
25900 hardcode_action_GCJ=relink
25902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25903 hardcode_action_GCJ=immediate
25906 # We cannot hardcode anything, or else we can only hardcode existing
25908 hardcode_action_GCJ=unsupported
25910 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25911 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25913 if test "$hardcode_action_GCJ" = relink; then
25914 # Fast installation is not supported
25915 enable_fast_install=no
25916 elif test "$shlibpath_overrides_runpath" = yes ||
25917 test "$enable_shared" = no; then
25918 # Fast installation is not necessary
25919 enable_fast_install=needless
25923 # The else clause should only fire when bootstrapping the
25924 # libtool distribution, otherwise you forgot to ship ltmain.sh
25925 # with your package, and you will get complaints that there are
25926 # no rules to generate ltmain.sh.
25927 if test -f "$ltmain"; then
25928 # See if we are running on zsh, and set the options which allow our commands through
25929 # without removal of \ escapes.
25930 if test -n "${ZSH_VERSION+set}" ; then
25931 setopt NO_GLOB_SUBST
25933 # Now quote all the things that may contain metacharacters while being
25934 # careful not to overquote the AC_SUBSTed values. We take copies of the
25935 # variables and quote the copies for generation of the libtool script.
25936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25940 deplibs_check_method reload_flag reload_cmds need_locks \
25941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25942 lt_cv_sys_global_symbol_to_c_name_address \
25943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25944 old_postinstall_cmds old_postuninstall_cmds \
25948 lt_prog_compiler_wl_GCJ \
25949 lt_prog_compiler_pic_GCJ \
25950 lt_prog_compiler_static_GCJ \
25951 lt_prog_compiler_no_builtin_flag_GCJ \
25952 export_dynamic_flag_spec_GCJ \
25953 thread_safe_flag_spec_GCJ \
25954 whole_archive_flag_spec_GCJ \
25955 enable_shared_with_static_runtimes_GCJ \
25956 old_archive_cmds_GCJ \
25957 old_archive_from_new_cmds_GCJ \
25958 predep_objects_GCJ \
25959 postdep_objects_GCJ \
25962 compiler_lib_search_path_GCJ \
25964 archive_expsym_cmds_GCJ \
25965 postinstall_cmds_GCJ \
25966 postuninstall_cmds_GCJ \
25967 old_archive_from_expsyms_cmds_GCJ \
25968 allow_undefined_flag_GCJ \
25969 no_undefined_flag_GCJ \
25970 export_symbols_cmds_GCJ \
25971 hardcode_libdir_flag_spec_GCJ \
25972 hardcode_libdir_flag_spec_ld_GCJ \
25973 hardcode_libdir_separator_GCJ \
25974 hardcode_automatic_GCJ \
25976 module_expsym_cmds_GCJ \
25977 lt_cv_prog_compiler_c_o_GCJ \
25978 exclude_expsyms_GCJ \
25979 include_expsyms_GCJ; do
25982 old_archive_cmds_GCJ | \
25983 old_archive_from_new_cmds_GCJ | \
25984 archive_cmds_GCJ | \
25985 archive_expsym_cmds_GCJ | \
25986 module_cmds_GCJ | \
25987 module_expsym_cmds_GCJ | \
25988 old_archive_from_expsyms_cmds_GCJ | \
25989 export_symbols_cmds_GCJ | \
25990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25991 postinstall_cmds | postuninstall_cmds | \
25992 old_postinstall_cmds | old_postuninstall_cmds | \
25993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25994 # Double-quote double-evaled strings.
25995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26004 *'\$0 --fallback-echo"')
26005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26011 cat <<__EOF__ >> "$cfgfile"
26012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26016 # Shell to use when invoking shell scripts.
26019 # Whether or not to build shared libraries.
26020 build_libtool_libs=$enable_shared
26022 # Whether or not to build static libraries.
26023 build_old_libs=$enable_static
26025 # Whether or not to add -lc for building shared libraries.
26026 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26028 # Whether or not to disallow shared libs when runtime libs are static
26029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26031 # Whether or not to optimize for fast installation.
26032 fast_install=$enable_fast_install
26035 host_alias=$host_alias
26039 # The build system.
26040 build_alias=$build_alias
26044 # An echo program that does not interpret backslashes.
26049 AR_FLAGS=$lt_AR_FLAGS
26054 # LTCC compiler flags.
26055 LTCFLAGS=$lt_LTCFLAGS
26057 # A language-specific compiler.
26058 CC=$lt_compiler_GCJ
26060 # Is the compiler the GNU C compiler?
26066 # The linker used to build libraries.
26069 # Whether we need hard or soft links.
26072 # A BSD-compatible nm program.
26075 # A symbol stripping program
26078 # Used to examine libraries when file_magic_cmd begins "file"
26079 MAGIC_CMD=$MAGIC_CMD
26081 # Used on cygwin: DLL creation program.
26084 # Used on cygwin: object dumper.
26087 # Used on cygwin: assembler.
26090 # The name of the directory that contains temporary libtool files.
26093 # How to create reloadable object files.
26094 reload_flag=$lt_reload_flag
26095 reload_cmds=$lt_reload_cmds
26097 # How to pass a linker flag through the compiler.
26098 wl=$lt_lt_prog_compiler_wl_GCJ
26100 # Object file suffix (normally "o").
26101 objext="$ac_objext"
26103 # Old archive suffix (normally "a").
26106 # Shared library suffix (normally ".so").
26107 shrext_cmds='$shrext_cmds'
26109 # Executable file suffix (normally "").
26112 # Additional compiler flags for building library objects.
26113 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26116 # What is the maximum length of a command?
26117 max_cmd_len=$lt_cv_sys_max_cmd_len
26119 # Does compiler simultaneously support -c and -o options?
26120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26122 # Must we lock files when doing compilation?
26123 need_locks=$lt_need_locks
26125 # Do we need the lib prefix for modules?
26126 need_lib_prefix=$need_lib_prefix
26128 # Do we need a version for libraries?
26129 need_version=$need_version
26131 # Whether dlopen is supported.
26132 dlopen_support=$enable_dlopen
26134 # Whether dlopen of programs is supported.
26135 dlopen_self=$enable_dlopen_self
26137 # Whether dlopen of statically linked programs is supported.
26138 dlopen_self_static=$enable_dlopen_self_static
26140 # Compiler flag to prevent dynamic linking.
26141 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26143 # Compiler flag to turn off builtin functions.
26144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26146 # Compiler flag to allow reflexive dlopens.
26147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26149 # Compiler flag to generate shared objects directly from archives.
26150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26152 # Compiler flag to generate thread-safe objects.
26153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26155 # Library versioning type.
26156 version_type=$version_type
26158 # Format of library name prefix.
26159 libname_spec=$lt_libname_spec
26161 # List of archive names. First name is the real one, the rest are links.
26162 # The last name is the one that the linker finds with -lNAME.
26163 library_names_spec=$lt_library_names_spec
26165 # The coded name of the library, if different from the real name.
26166 soname_spec=$lt_soname_spec
26168 # Commands used to build and install an old-style archive.
26170 old_archive_cmds=$lt_old_archive_cmds_GCJ
26171 old_postinstall_cmds=$lt_old_postinstall_cmds
26172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26174 # Create an old-style archive from a shared archive.
26175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26177 # Create a temporary old-style archive to link instead of a shared archive.
26178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26180 # Commands used to build and install a shared archive.
26181 archive_cmds=$lt_archive_cmds_GCJ
26182 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26183 postinstall_cmds=$lt_postinstall_cmds
26184 postuninstall_cmds=$lt_postuninstall_cmds
26186 # Commands used to build a loadable module (assumed same as above if empty)
26187 module_cmds=$lt_module_cmds_GCJ
26188 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26190 # Commands to strip libraries.
26191 old_striplib=$lt_old_striplib
26192 striplib=$lt_striplib
26194 # Dependencies to place before the objects being linked to create a
26196 predep_objects=$lt_predep_objects_GCJ
26198 # Dependencies to place after the objects being linked to create a
26200 postdep_objects=$lt_postdep_objects_GCJ
26202 # Dependencies to place before the objects being linked to create a
26204 predeps=$lt_predeps_GCJ
26206 # Dependencies to place after the objects being linked to create a
26208 postdeps=$lt_postdeps_GCJ
26210 # The library search path used internally by the compiler when linking
26211 # a shared library.
26212 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26214 # Method to check whether dependent libraries are shared objects.
26215 deplibs_check_method=$lt_deplibs_check_method
26217 # Command to use when deplibs_check_method == file_magic.
26218 file_magic_cmd=$lt_file_magic_cmd
26220 # Flag that allows shared libraries with undefined symbols to be built.
26221 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26223 # Flag that forces no undefined symbols.
26224 no_undefined_flag=$lt_no_undefined_flag_GCJ
26226 # Commands used to finish a libtool library installation in a directory.
26227 finish_cmds=$lt_finish_cmds
26229 # Same as above, but a single script fragment to be evaled but not shown.
26230 finish_eval=$lt_finish_eval
26232 # Take the output of nm and produce a listing of raw symbols and C names.
26233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26235 # Transform the output of nm in a proper C declaration
26236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26238 # Transform the output of nm in a C name address pair
26239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26241 # This is the shared library runtime path variable.
26242 runpath_var=$runpath_var
26244 # This is the shared library path variable.
26245 shlibpath_var=$shlibpath_var
26247 # Is shlibpath searched before the hard-coded library search path?
26248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26250 # How to hardcode a shared library path into an executable.
26251 hardcode_action=$hardcode_action_GCJ
26253 # Whether we should hardcode library paths into libraries.
26254 hardcode_into_libs=$hardcode_into_libs
26256 # Flag to hardcode \$libdir into a binary during linking.
26257 # This must work even if \$libdir does not exist.
26258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26260 # If ld is used when linking, flag to hardcode \$libdir into
26261 # a binary during linking. This must work even if \$libdir does
26263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26265 # Whether we need a single -rpath flag with a separated argument.
26266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26269 # resulting binary.
26270 hardcode_direct=$hardcode_direct_GCJ
26272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26273 # resulting binary.
26274 hardcode_minus_L=$hardcode_minus_L_GCJ
26276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26277 # the resulting binary.
26278 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26280 # Set to yes if building a shared library automatically hardcodes DIR into the library
26281 # and all subsequent libraries and executables linked against it.
26282 hardcode_automatic=$hardcode_automatic_GCJ
26284 # Variables whose values should be saved in libtool wrapper scripts and
26285 # restored at relink time.
26286 variables_saved_for_relink="$variables_saved_for_relink"
26288 # Whether libtool must link a program against all its dependency libraries.
26289 link_all_deplibs=$link_all_deplibs_GCJ
26291 # Compile-time system search path for libraries
26292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26294 # Run-time system search path for libraries
26295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26297 # Fix the shell variable \$srcfile for the compiler.
26298 fix_srcfile_path="$fix_srcfile_path_GCJ"
26300 # Set to yes if exported symbols are required.
26301 always_export_symbols=$always_export_symbols_GCJ
26303 # The commands to list exported symbols.
26304 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26306 # The commands to extract the exported symbol list from a shared archive.
26307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26309 # Symbols that should not be listed in the preloaded symbols.
26310 exclude_expsyms=$lt_exclude_expsyms_GCJ
26312 # Symbols that must always be exported.
26313 include_expsyms=$lt_include_expsyms_GCJ
26315 # ### END LIBTOOL TAG CONFIG: $tagname
26321 # If there is no Makefile yet, we rely on a make rule to execute
26322 # `config.status --recheck' to rerun these tests and create the
26323 # libtool script then.
26324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26325 if test -f "$ltmain_in"; then
26326 test -f Makefile && make "$ltmain"
26332 ac_cpp='$CPP $CPPFLAGS'
26333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26346 ac_cpp='$CPP $CPPFLAGS'
26347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26352 # Source file extension for RC test sources.
26355 # Object file extension for compiled RC test sources.
26359 # Code to be used in simple compile tests
26360 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26362 # Code to be used in simple link tests
26363 lt_simple_link_test_code="$lt_simple_compile_test_code"
26365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26367 # If no C compiler was specified, use CC.
26370 # If no C compiler flags were specified, use CFLAGS.
26371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26373 # Allow CC to be a program name with arguments.
26377 # save warnings/boilerplate of simple test code
26378 ac_outfile=conftest.$ac_objext
26379 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26381 _lt_compiler_boilerplate=`cat conftest.err`
26384 ac_outfile=conftest.$ac_objext
26385 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26387 _lt_linker_boilerplate=`cat conftest.err`
26391 # Allow CC to be a program name with arguments.
26396 for cc_temp in $compiler""; do
26398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26406 lt_cv_prog_compiler_c_o_RC=yes
26408 # The else clause should only fire when bootstrapping the
26409 # libtool distribution, otherwise you forgot to ship ltmain.sh
26410 # with your package, and you will get complaints that there are
26411 # no rules to generate ltmain.sh.
26412 if test -f "$ltmain"; then
26413 # See if we are running on zsh, and set the options which allow our commands through
26414 # without removal of \ escapes.
26415 if test -n "${ZSH_VERSION+set}" ; then
26416 setopt NO_GLOB_SUBST
26418 # Now quote all the things that may contain metacharacters while being
26419 # careful not to overquote the AC_SUBSTed values. We take copies of the
26420 # variables and quote the copies for generation of the libtool script.
26421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26425 deplibs_check_method reload_flag reload_cmds need_locks \
26426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26427 lt_cv_sys_global_symbol_to_c_name_address \
26428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26429 old_postinstall_cmds old_postuninstall_cmds \
26433 lt_prog_compiler_wl_RC \
26434 lt_prog_compiler_pic_RC \
26435 lt_prog_compiler_static_RC \
26436 lt_prog_compiler_no_builtin_flag_RC \
26437 export_dynamic_flag_spec_RC \
26438 thread_safe_flag_spec_RC \
26439 whole_archive_flag_spec_RC \
26440 enable_shared_with_static_runtimes_RC \
26441 old_archive_cmds_RC \
26442 old_archive_from_new_cmds_RC \
26443 predep_objects_RC \
26444 postdep_objects_RC \
26447 compiler_lib_search_path_RC \
26449 archive_expsym_cmds_RC \
26450 postinstall_cmds_RC \
26451 postuninstall_cmds_RC \
26452 old_archive_from_expsyms_cmds_RC \
26453 allow_undefined_flag_RC \
26454 no_undefined_flag_RC \
26455 export_symbols_cmds_RC \
26456 hardcode_libdir_flag_spec_RC \
26457 hardcode_libdir_flag_spec_ld_RC \
26458 hardcode_libdir_separator_RC \
26459 hardcode_automatic_RC \
26461 module_expsym_cmds_RC \
26462 lt_cv_prog_compiler_c_o_RC \
26463 exclude_expsyms_RC \
26464 include_expsyms_RC; do
26467 old_archive_cmds_RC | \
26468 old_archive_from_new_cmds_RC | \
26469 archive_cmds_RC | \
26470 archive_expsym_cmds_RC | \
26472 module_expsym_cmds_RC | \
26473 old_archive_from_expsyms_cmds_RC | \
26474 export_symbols_cmds_RC | \
26475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26476 postinstall_cmds | postuninstall_cmds | \
26477 old_postinstall_cmds | old_postuninstall_cmds | \
26478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26479 # Double-quote double-evaled strings.
26480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26489 *'\$0 --fallback-echo"')
26490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26496 cat <<__EOF__ >> "$cfgfile"
26497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26501 # Shell to use when invoking shell scripts.
26504 # Whether or not to build shared libraries.
26505 build_libtool_libs=$enable_shared
26507 # Whether or not to build static libraries.
26508 build_old_libs=$enable_static
26510 # Whether or not to add -lc for building shared libraries.
26511 build_libtool_need_lc=$archive_cmds_need_lc_RC
26513 # Whether or not to disallow shared libs when runtime libs are static
26514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26516 # Whether or not to optimize for fast installation.
26517 fast_install=$enable_fast_install
26520 host_alias=$host_alias
26524 # The build system.
26525 build_alias=$build_alias
26529 # An echo program that does not interpret backslashes.
26534 AR_FLAGS=$lt_AR_FLAGS
26539 # LTCC compiler flags.
26540 LTCFLAGS=$lt_LTCFLAGS
26542 # A language-specific compiler.
26545 # Is the compiler the GNU C compiler?
26551 # The linker used to build libraries.
26554 # Whether we need hard or soft links.
26557 # A BSD-compatible nm program.
26560 # A symbol stripping program
26563 # Used to examine libraries when file_magic_cmd begins "file"
26564 MAGIC_CMD=$MAGIC_CMD
26566 # Used on cygwin: DLL creation program.
26569 # Used on cygwin: object dumper.
26572 # Used on cygwin: assembler.
26575 # The name of the directory that contains temporary libtool files.
26578 # How to create reloadable object files.
26579 reload_flag=$lt_reload_flag
26580 reload_cmds=$lt_reload_cmds
26582 # How to pass a linker flag through the compiler.
26583 wl=$lt_lt_prog_compiler_wl_RC
26585 # Object file suffix (normally "o").
26586 objext="$ac_objext"
26588 # Old archive suffix (normally "a").
26591 # Shared library suffix (normally ".so").
26592 shrext_cmds='$shrext_cmds'
26594 # Executable file suffix (normally "").
26597 # Additional compiler flags for building library objects.
26598 pic_flag=$lt_lt_prog_compiler_pic_RC
26601 # What is the maximum length of a command?
26602 max_cmd_len=$lt_cv_sys_max_cmd_len
26604 # Does compiler simultaneously support -c and -o options?
26605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26607 # Must we lock files when doing compilation?
26608 need_locks=$lt_need_locks
26610 # Do we need the lib prefix for modules?
26611 need_lib_prefix=$need_lib_prefix
26613 # Do we need a version for libraries?
26614 need_version=$need_version
26616 # Whether dlopen is supported.
26617 dlopen_support=$enable_dlopen
26619 # Whether dlopen of programs is supported.
26620 dlopen_self=$enable_dlopen_self
26622 # Whether dlopen of statically linked programs is supported.
26623 dlopen_self_static=$enable_dlopen_self_static
26625 # Compiler flag to prevent dynamic linking.
26626 link_static_flag=$lt_lt_prog_compiler_static_RC
26628 # Compiler flag to turn off builtin functions.
26629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26631 # Compiler flag to allow reflexive dlopens.
26632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26634 # Compiler flag to generate shared objects directly from archives.
26635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26637 # Compiler flag to generate thread-safe objects.
26638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26640 # Library versioning type.
26641 version_type=$version_type
26643 # Format of library name prefix.
26644 libname_spec=$lt_libname_spec
26646 # List of archive names. First name is the real one, the rest are links.
26647 # The last name is the one that the linker finds with -lNAME.
26648 library_names_spec=$lt_library_names_spec
26650 # The coded name of the library, if different from the real name.
26651 soname_spec=$lt_soname_spec
26653 # Commands used to build and install an old-style archive.
26655 old_archive_cmds=$lt_old_archive_cmds_RC
26656 old_postinstall_cmds=$lt_old_postinstall_cmds
26657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26659 # Create an old-style archive from a shared archive.
26660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26662 # Create a temporary old-style archive to link instead of a shared archive.
26663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26665 # Commands used to build and install a shared archive.
26666 archive_cmds=$lt_archive_cmds_RC
26667 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26668 postinstall_cmds=$lt_postinstall_cmds
26669 postuninstall_cmds=$lt_postuninstall_cmds
26671 # Commands used to build a loadable module (assumed same as above if empty)
26672 module_cmds=$lt_module_cmds_RC
26673 module_expsym_cmds=$lt_module_expsym_cmds_RC
26675 # Commands to strip libraries.
26676 old_striplib=$lt_old_striplib
26677 striplib=$lt_striplib
26679 # Dependencies to place before the objects being linked to create a
26681 predep_objects=$lt_predep_objects_RC
26683 # Dependencies to place after the objects being linked to create a
26685 postdep_objects=$lt_postdep_objects_RC
26687 # Dependencies to place before the objects being linked to create a
26689 predeps=$lt_predeps_RC
26691 # Dependencies to place after the objects being linked to create a
26693 postdeps=$lt_postdeps_RC
26695 # The library search path used internally by the compiler when linking
26696 # a shared library.
26697 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26699 # Method to check whether dependent libraries are shared objects.
26700 deplibs_check_method=$lt_deplibs_check_method
26702 # Command to use when deplibs_check_method == file_magic.
26703 file_magic_cmd=$lt_file_magic_cmd
26705 # Flag that allows shared libraries with undefined symbols to be built.
26706 allow_undefined_flag=$lt_allow_undefined_flag_RC
26708 # Flag that forces no undefined symbols.
26709 no_undefined_flag=$lt_no_undefined_flag_RC
26711 # Commands used to finish a libtool library installation in a directory.
26712 finish_cmds=$lt_finish_cmds
26714 # Same as above, but a single script fragment to be evaled but not shown.
26715 finish_eval=$lt_finish_eval
26717 # Take the output of nm and produce a listing of raw symbols and C names.
26718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26720 # Transform the output of nm in a proper C declaration
26721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26723 # Transform the output of nm in a C name address pair
26724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26726 # This is the shared library runtime path variable.
26727 runpath_var=$runpath_var
26729 # This is the shared library path variable.
26730 shlibpath_var=$shlibpath_var
26732 # Is shlibpath searched before the hard-coded library search path?
26733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26735 # How to hardcode a shared library path into an executable.
26736 hardcode_action=$hardcode_action_RC
26738 # Whether we should hardcode library paths into libraries.
26739 hardcode_into_libs=$hardcode_into_libs
26741 # Flag to hardcode \$libdir into a binary during linking.
26742 # This must work even if \$libdir does not exist.
26743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26745 # If ld is used when linking, flag to hardcode \$libdir into
26746 # a binary during linking. This must work even if \$libdir does
26748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26750 # Whether we need a single -rpath flag with a separated argument.
26751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26754 # resulting binary.
26755 hardcode_direct=$hardcode_direct_RC
26757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26758 # resulting binary.
26759 hardcode_minus_L=$hardcode_minus_L_RC
26761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26762 # the resulting binary.
26763 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26765 # Set to yes if building a shared library automatically hardcodes DIR into the library
26766 # and all subsequent libraries and executables linked against it.
26767 hardcode_automatic=$hardcode_automatic_RC
26769 # Variables whose values should be saved in libtool wrapper scripts and
26770 # restored at relink time.
26771 variables_saved_for_relink="$variables_saved_for_relink"
26773 # Whether libtool must link a program against all its dependency libraries.
26774 link_all_deplibs=$link_all_deplibs_RC
26776 # Compile-time system search path for libraries
26777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26779 # Run-time system search path for libraries
26780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26782 # Fix the shell variable \$srcfile for the compiler.
26783 fix_srcfile_path="$fix_srcfile_path_RC"
26785 # Set to yes if exported symbols are required.
26786 always_export_symbols=$always_export_symbols_RC
26788 # The commands to list exported symbols.
26789 export_symbols_cmds=$lt_export_symbols_cmds_RC
26791 # The commands to extract the exported symbol list from a shared archive.
26792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26794 # Symbols that should not be listed in the preloaded symbols.
26795 exclude_expsyms=$lt_exclude_expsyms_RC
26797 # Symbols that must always be exported.
26798 include_expsyms=$lt_include_expsyms_RC
26800 # ### END LIBTOOL TAG CONFIG: $tagname
26806 # If there is no Makefile yet, we rely on a make rule to execute
26807 # `config.status --recheck' to rerun these tests and create the
26808 # libtool script then.
26809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26810 if test -f "$ltmain_in"; then
26811 test -f Makefile && make "$ltmain"
26817 ac_cpp='$CPP $CPPFLAGS'
26818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26827 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26829 { (exit 1); exit 1; }; }
26833 # Append the new tag name to the list of available tags.
26834 if test -n "$tagname" ; then
26835 available_tags="$available_tags $tagname"
26841 # Now substitute the updated list of available tags.
26842 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26843 mv "${ofile}T" "$ofile"
26847 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26848 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26849 { (exit 1); exit 1; }; }
26855 # This can be used to rebuild libtool when needed
26856 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26858 # Always use our own libtool.
26859 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26861 # Prevent multiple expansion
26883 if test "$lt_cv_dlopen_self" = "yes" ; then
26885 cat >>confdefs.h <<\_ACEOF
26886 #define CAN_DLOPEN_SELF 1
26891 if test "$WITH_LLVMGCCDIR" = "default" ; then
26892 LLVMGCC="llvm-gcc${EXEEXT}"
26893 LLVMGXX="llvm-g++${EXEEXT}"
26894 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26895 set dummy $LLVMGCC; ac_word=$2
26896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26898 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26903 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
26912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26913 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26924 LLVMGCC=$ac_cv_path_LLVMGCC
26925 if test -n "$LLVMGCC"; then
26926 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26927 echo "${ECHO_T}$LLVMGCC" >&6; }
26929 { echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6; }
26934 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26935 set dummy $LLVMGXX; ac_word=$2
26936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26938 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26939 echo $ECHO_N "(cached) $ECHO_C" >&6
26943 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26947 for as_dir in $PATH
26950 test -z "$as_dir" && as_dir=.
26951 for ac_exec_ext in '' $ac_executable_extensions; do
26952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26953 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26964 LLVMGXX=$ac_cv_path_LLVMGXX
26965 if test -n "$LLVMGXX"; then
26966 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26967 echo "${ECHO_T}$LLVMGXX" >&6; }
26969 { echo "$as_me:$LINENO: result: no" >&5
26970 echo "${ECHO_T}no" >&6; }
26975 if test -z "$LLVMGCC"; then
26976 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26978 if test -z "$LLVMGXX"; then
26979 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26987 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26988 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27001 if test "$GCC" != "yes" && test "$ICC" != "yes"
27003 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27004 echo "$as_me: error: gcc|icc required but not found" >&2;}
27005 { (exit 1); exit 1; }; }
27008 if test "$GXX" != "yes" && test "$IXX" != "yes"
27010 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27011 echo "$as_me: error: g++|icc required but not found" >&2;}
27012 { (exit 1); exit 1; }; }
27015 if test "$GCC" = "yes"
27017 cat >conftest.$ac_ext <<_ACEOF
27018 #if !defined(__GNUC__) || __GNUC__ < 3
27019 #error Unsupported GCC version
27023 rm -f conftest.$ac_objext
27024 if { (ac_try="$ac_compile"
27025 case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_compile") 2>conftest.er1
27032 grep -v '^ *+' conftest.er1 >conftest.err
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } &&
27037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27038 { (case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_try") 2>&5
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest.$ac_objext'
27048 { (case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_try") 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; }; then
27059 echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27062 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27063 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27064 { (exit 1); exit 1; }; }
27067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070 if test -z "$llvm_cv_gnu_make_command"
27072 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27073 echo "$as_me: error: GNU Make required but not found" >&2;}
27074 { (exit 1); exit 1; }; }
27077 { echo "$as_me:$LINENO: result: ok" >&5
27078 echo "${ECHO_T}ok" >&6; }
27082 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27083 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27084 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 ac_check_lib_save_LIBS=$LIBS
27089 cat >conftest.$ac_ext <<_ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27096 /* Override any GCC internal prototype to avoid an error.
27097 Use char because int might match the return type of a GCC
27098 builtin and then its argument prototype would still apply. */
27106 return elf_begin ();
27111 rm -f conftest.$ac_objext conftest$ac_exeext
27112 if { (ac_try="$ac_link"
27113 case "(($ac_try" in
27114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115 *) ac_try_echo=$ac_try;;
27117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27118 (eval "$ac_link") 2>conftest.er1
27120 grep -v '^ *+' conftest.er1 >conftest.err
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } &&
27125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest$ac_exeext'
27136 { (case "(($ac_try" in
27137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138 *) ac_try_echo=$ac_try;;
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141 (eval "$ac_try") 2>&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; }; then
27145 ac_cv_lib_elf_elf_begin=yes
27147 echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27150 ac_cv_lib_elf_elf_begin=no
27153 rm -f core conftest.err conftest.$ac_objext \
27154 conftest$ac_exeext conftest.$ac_ext
27155 LIBS=$ac_check_lib_save_LIBS
27157 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27158 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27159 if test $ac_cv_lib_elf_elf_begin = yes; then
27160 cat >>confdefs.h <<_ACEOF
27161 #define HAVE_LIBELF 1
27169 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27170 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27171 if test "${ac_cv_lib_m_sin+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 ac_check_lib_save_LIBS=$LIBS
27176 cat >conftest.$ac_ext <<_ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h. */
27183 /* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (ac_try="$ac_link"
27200 case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_link") 2>conftest.er1
27207 grep -v '^ *+' conftest.er1 >conftest.err
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } &&
27212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest$ac_exeext'
27223 { (case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_try") 2>&5
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
27232 ac_cv_lib_m_sin=yes
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27240 rm -f core conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27244 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27245 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27246 if test $ac_cv_lib_m_sin = yes; then
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_LIBM 1
27255 if test "$llvm_cv_os_type" = "MingW" ; then
27257 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27258 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27259 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 ac_check_lib_save_LIBS=$LIBS
27263 LIBS="-limagehlp $LIBS"
27264 cat >conftest.$ac_ext <<_ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest$ac_exeext'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27314 ac_cv_lib_imagehlp_main=yes
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_cv_lib_imagehlp_main=no
27322 rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
27324 LIBS=$ac_check_lib_save_LIBS
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27327 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27328 if test $ac_cv_lib_imagehlp_main = yes; then
27329 cat >>confdefs.h <<_ACEOF
27330 #define HAVE_LIBIMAGEHLP 1
27333 LIBS="-limagehlp $LIBS"
27338 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27339 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27340 if test "${ac_cv_lib_psapi_main+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 ac_check_lib_save_LIBS=$LIBS
27344 LIBS="-lpsapi $LIBS"
27345 cat >conftest.$ac_ext <<_ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27361 rm -f conftest.$ac_objext conftest$ac_exeext
27362 if { (ac_try="$ac_link"
27363 case "(($ac_try" in
27364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365 *) ac_try_echo=$ac_try;;
27367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368 (eval "$ac_link") 2>conftest.er1
27370 grep -v '^ *+' conftest.er1 >conftest.err
27372 cat conftest.err >&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
27375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27376 { (case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_try") 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest$ac_exeext'
27386 { (case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_try") 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; }; then
27395 ac_cv_lib_psapi_main=yes
27397 echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27400 ac_cv_lib_psapi_main=no
27403 rm -f core conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
27405 LIBS=$ac_check_lib_save_LIBS
27407 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27408 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27409 if test $ac_cv_lib_psapi_main = yes; then
27410 cat >>confdefs.h <<_ACEOF
27411 #define HAVE_LIBPSAPI 1
27414 LIBS="-lpsapi $LIBS"
27420 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27421 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
27425 ac_func_search_save_LIBS=$LIBS
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27433 /* Override any GCC internal prototype to avoid an error.
27434 Use char because int might match the return type of a GCC
27435 builtin and then its argument prototype would still apply. */
27448 for ac_lib in '' dl; do
27449 if test -z "$ac_lib"; then
27450 ac_res="none required"
27453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27455 rm -f conftest.$ac_objext conftest$ac_exeext
27456 if { (ac_try="$ac_link"
27457 case "(($ac_try" in
27458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_link") 2>conftest.er1
27464 grep -v '^ *+' conftest.er1 >conftest.err
27466 cat conftest.err >&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); } &&
27469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27470 { (case "(($ac_try" in
27471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472 *) ac_try_echo=$ac_try;;
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475 (eval "$ac_try") 2>&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; } &&
27479 { ac_try='test -s conftest$ac_exeext'
27480 { (case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_try") 2>&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; }; then
27489 ac_cv_search_dlopen=$ac_res
27491 echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27497 rm -f core conftest.err conftest.$ac_objext \
27499 if test "${ac_cv_search_dlopen+set}" = set; then
27503 if test "${ac_cv_search_dlopen+set}" = set; then
27506 ac_cv_search_dlopen=no
27508 rm conftest.$ac_ext
27509 LIBS=$ac_func_search_save_LIBS
27511 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27512 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27513 ac_res=$ac_cv_search_dlopen
27514 if test "$ac_res" != no; then
27515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_DLOPEN 1
27522 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27523 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27527 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27528 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27529 if test "${ac_cv_search_mallinfo+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 ac_func_search_save_LIBS=$LIBS
27533 cat >conftest.$ac_ext <<_ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h. */
27540 /* Override any GCC internal prototype to avoid an error.
27541 Use char because int might match the return type of a GCC
27542 builtin and then its argument prototype would still apply. */
27550 return mallinfo ();
27555 for ac_lib in '' malloc; do
27556 if test -z "$ac_lib"; then
27557 ac_res="none required"
27560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27562 rm -f conftest.$ac_objext conftest$ac_exeext
27563 if { (ac_try="$ac_link"
27564 case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_link") 2>conftest.er1
27571 grep -v '^ *+' conftest.er1 >conftest.err
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
27576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest$ac_exeext'
27587 { (case "(($ac_try" in
27588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589 *) ac_try_echo=$ac_try;;
27591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592 (eval "$ac_try") 2>&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
27596 ac_cv_search_mallinfo=$ac_res
27598 echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27604 rm -f core conftest.err conftest.$ac_objext \
27606 if test "${ac_cv_search_mallinfo+set}" = set; then
27610 if test "${ac_cv_search_mallinfo+set}" = set; then
27613 ac_cv_search_mallinfo=no
27615 rm conftest.$ac_ext
27616 LIBS=$ac_func_search_save_LIBS
27618 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27619 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27620 ac_res=$ac_cv_search_mallinfo
27621 if test "$ac_res" != no; then
27622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27624 cat >>confdefs.h <<\_ACEOF
27625 #define HAVE_MALLINFO 1
27631 if test "$ENABLE_THREADS" -eq 1 ; then
27633 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27634 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27635 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27638 ac_check_lib_save_LIBS=$LIBS
27639 LIBS="-lpthread $LIBS"
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27647 /* Override any GCC internal prototype to avoid an error.
27648 Use char because int might match the return type of a GCC
27649 builtin and then its argument prototype would still apply. */
27653 char pthread_mutex_init ();
27657 return pthread_mutex_init ();
27662 rm -f conftest.$ac_objext conftest$ac_exeext
27663 if { (ac_try="$ac_link"
27664 case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_link") 2>conftest.er1
27671 grep -v '^ *+' conftest.er1 >conftest.err
27673 cat conftest.err >&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } &&
27676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest$ac_exeext'
27687 { (case "(($ac_try" in
27688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689 *) ac_try_echo=$ac_try;;
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692 (eval "$ac_try") 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; }; then
27696 ac_cv_lib_pthread_pthread_mutex_init=yes
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_cv_lib_pthread_pthread_mutex_init=no
27704 rm -f core conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
27706 LIBS=$ac_check_lib_save_LIBS
27708 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27709 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27710 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27711 cat >>confdefs.h <<_ACEOF
27712 #define HAVE_LIBPTHREAD 1
27715 LIBS="-lpthread $LIBS"
27719 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27720 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27721 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27722 echo $ECHO_N "(cached) $ECHO_C" >&6
27724 ac_func_search_save_LIBS=$LIBS
27725 cat >conftest.$ac_ext <<_ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27732 /* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27738 char pthread_mutex_lock ();
27742 return pthread_mutex_lock ();
27747 for ac_lib in '' pthread; do
27748 if test -z "$ac_lib"; then
27749 ac_res="none required"
27752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_link") 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
27788 ac_cv_search_pthread_mutex_lock=$ac_res
27790 echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27796 rm -f core conftest.err conftest.$ac_objext \
27798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27802 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27805 ac_cv_search_pthread_mutex_lock=no
27807 rm conftest.$ac_ext
27808 LIBS=$ac_func_search_save_LIBS
27810 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27811 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27812 ac_res=$ac_cv_search_pthread_mutex_lock
27813 if test "$ac_res" != no; then
27814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27816 cat >>confdefs.h <<\_ACEOF
27817 #define HAVE_PTHREAD_MUTEX_LOCK 1
27825 # Check whether --with-udis86 was given.
27826 if test "${with_udis86+set}" = set; then
27827 withval=$with_udis86;
27832 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27835 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27836 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27837 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 ac_check_lib_save_LIBS=$LIBS
27841 LIBS="-ludis86 $LIBS"
27842 cat >conftest.$ac_ext <<_ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27849 /* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27864 rm -f conftest.$ac_objext conftest$ac_exeext
27865 if { (ac_try="$ac_link"
27866 case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_link") 2>conftest.er1
27873 grep -v '^ *+' conftest.er1 >conftest.err
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } &&
27878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest$ac_exeext'
27889 { (case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_try") 2>&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 ac_cv_lib_udis86_ud_init=yes
27900 echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27903 ac_cv_lib_udis86_ud_init=no
27906 rm -f core conftest.err conftest.$ac_objext \
27907 conftest$ac_exeext conftest.$ac_ext
27908 LIBS=$ac_check_lib_save_LIBS
27910 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27911 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27912 if test $ac_cv_lib_udis86_ud_init = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914 #define HAVE_LIBUDIS86 1
27917 LIBS="-ludis86 $LIBS"
27921 echo "Error! You need to have libudis86 around."
27933 cat >>confdefs.h <<_ACEOF
27934 #define USE_UDIS86 $USE_UDIS86
27944 ac_header_dirent=no
27945 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27946 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27947 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27948 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 cat >conftest.$ac_ext <<_ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27958 #include <sys/types.h>
27970 rm -f conftest.$ac_objext
27971 if { (ac_try="$ac_compile"
27972 case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_compile") 2>conftest.er1
27979 grep -v '^ *+' conftest.er1 >conftest.err
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27985 { (case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_try") 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest.$ac_objext'
27995 { (case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000 (eval "$ac_try") 2>&5
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
28004 eval "$as_ac_Header=yes"
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 eval "$as_ac_Header=no"
28012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28014 ac_res=`eval echo '${'$as_ac_Header'}'`
28015 { echo "$as_me:$LINENO: result: $ac_res" >&5
28016 echo "${ECHO_T}$ac_res" >&6; }
28017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28018 cat >>confdefs.h <<_ACEOF
28019 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28022 ac_header_dirent=$ac_hdr; break
28026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28027 if test $ac_header_dirent = dirent.h; then
28028 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28029 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28030 if test "${ac_cv_search_opendir+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 ac_func_search_save_LIBS=$LIBS
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28041 /* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28056 for ac_lib in '' dir; do
28057 if test -z "$ac_lib"; then
28058 ac_res="none required"
28061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064 if { (ac_try="$ac_link"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_link") 2>conftest.er1
28072 grep -v '^ *+' conftest.er1 >conftest.err
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_try") 2>&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28097 ac_cv_search_opendir=$ac_res
28099 echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28105 rm -f core conftest.err conftest.$ac_objext \
28107 if test "${ac_cv_search_opendir+set}" = set; then
28111 if test "${ac_cv_search_opendir+set}" = set; then
28114 ac_cv_search_opendir=no
28116 rm conftest.$ac_ext
28117 LIBS=$ac_func_search_save_LIBS
28119 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28120 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28121 ac_res=$ac_cv_search_opendir
28122 if test "$ac_res" != no; then
28123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28128 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28129 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28130 if test "${ac_cv_search_opendir+set}" = set; then
28131 echo $ECHO_N "(cached) $ECHO_C" >&6
28133 ac_func_search_save_LIBS=$LIBS
28134 cat >conftest.$ac_ext <<_ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28141 /* Override any GCC internal prototype to avoid an error.
28142 Use char because int might match the return type of a GCC
28143 builtin and then its argument prototype would still apply. */
28156 for ac_lib in '' x; do
28157 if test -z "$ac_lib"; then
28158 ac_res="none required"
28161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28163 rm -f conftest.$ac_objext conftest$ac_exeext
28164 if { (ac_try="$ac_link"
28165 case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_link") 2>conftest.er1
28172 grep -v '^ *+' conftest.er1 >conftest.err
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } &&
28177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; } &&
28187 { ac_try='test -s conftest$ac_exeext'
28188 { (case "(($ac_try" in
28189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190 *) ac_try_echo=$ac_try;;
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193 (eval "$ac_try") 2>&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_cv_search_opendir=$ac_res
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28205 rm -f core conftest.err conftest.$ac_objext \
28207 if test "${ac_cv_search_opendir+set}" = set; then
28211 if test "${ac_cv_search_opendir+set}" = set; then
28214 ac_cv_search_opendir=no
28216 rm conftest.$ac_ext
28217 LIBS=$ac_func_search_save_LIBS
28219 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28220 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28221 ac_res=$ac_cv_search_opendir
28222 if test "$ac_res" != no; then
28223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28229 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28230 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28231 if test "${ac_cv_header_mmap_anon+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 ac_cpp='$CPP $CPPFLAGS'
28236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 #include <sys/mman.h>
28247 #include <unistd.h>
28252 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28257 rm -f conftest.$ac_objext
28258 if { (ac_try="$ac_compile"
28259 case "(($ac_try" in
28260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261 *) ac_try_echo=$ac_try;;
28263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264 (eval "$ac_compile") 2>conftest.er1
28266 grep -v '^ *+' conftest.er1 >conftest.err
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
28271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest.$ac_objext'
28282 { (case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_try") 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_header_mmap_anon=yes
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ac_cv_header_mmap_anon=no
28299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 ac_cpp='$CPP $CPPFLAGS'
28302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28308 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28309 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28310 if test "$ac_cv_header_mmap_anon" = yes; then
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_MMAP_ANONYMOUS 1
28318 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28319 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28320 if test "${ac_cv_header_stat_broken+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28323 cat >conftest.$ac_ext <<_ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28329 #include <sys/types.h>
28330 #include <sys/stat.h>
28332 #if defined S_ISBLK && defined S_IFDIR
28333 # if S_ISBLK (S_IFDIR)
28338 #if defined S_ISBLK && defined S_IFCHR
28339 # if S_ISBLK (S_IFCHR)
28344 #if defined S_ISLNK && defined S_IFREG
28345 # if S_ISLNK (S_IFREG)
28350 #if defined S_ISSOCK && defined S_IFREG
28351 # if S_ISSOCK (S_IFREG)
28357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28358 $EGREP "You lose" >/dev/null 2>&1; then
28359 ac_cv_header_stat_broken=yes
28361 ac_cv_header_stat_broken=no
28366 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28367 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28368 if test $ac_cv_header_stat_broken = yes; then
28370 cat >>confdefs.h <<\_ACEOF
28371 #define STAT_MACROS_BROKEN 1
28376 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28378 if test "${ac_cv_header_stdc+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28381 cat >conftest.$ac_ext <<_ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h. */
28387 #include <stdlib.h>
28388 #include <stdarg.h>
28389 #include <string.h>
28400 rm -f conftest.$ac_objext
28401 if { (ac_try="$ac_compile"
28402 case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_compile") 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415 { (case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_try") 2>&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; } &&
28424 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_header_stdc=yes
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28439 ac_cv_header_stdc=no
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28444 if test $ac_cv_header_stdc = yes; then
28445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28446 cat >conftest.$ac_ext <<_ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28452 #include <string.h>
28455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28456 $EGREP "memchr" >/dev/null 2>&1; then
28459 ac_cv_header_stdc=no
28465 if test $ac_cv_header_stdc = yes; then
28466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28473 #include <stdlib.h>
28476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28477 $EGREP "free" >/dev/null 2>&1; then
28480 ac_cv_header_stdc=no
28486 if test $ac_cv_header_stdc = yes; then
28487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28488 if test "$cross_compiling" = yes; then
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28498 #include <stdlib.h>
28499 #if ((' ' & 0x0FF) == 0x020)
28500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28503 # define ISLOWER(c) \
28504 (('a' <= (c) && (c) <= 'i') \
28505 || ('j' <= (c) && (c) <= 'r') \
28506 || ('s' <= (c) && (c) <= 'z'))
28507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28515 for (i = 0; i < 256; i++)
28516 if (XOR (islower (i), ISLOWER (i))
28517 || toupper (i) != TOUPPER (i))
28522 rm -f conftest$ac_exeext
28523 if { (ac_try="$ac_link"
28524 case "(($ac_try" in
28525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526 *) ac_try_echo=$ac_try;;
28528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529 (eval "$ac_link") 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28533 { (case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_try") 2>&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; }; then
28544 echo "$as_me: program exited with status $ac_status" >&5
28545 echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548 ( exit $ac_status )
28549 ac_cv_header_stdc=no
28551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28557 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28558 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28559 if test $ac_cv_header_stdc = yes; then
28561 cat >>confdefs.h <<\_ACEOF
28562 #define STDC_HEADERS 1
28567 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28568 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28569 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28572 cat >conftest.$ac_ext <<_ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 #include <sys/types.h>
28579 #include <sys/wait.h>
28580 #ifndef WEXITSTATUS
28581 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28584 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28592 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28597 rm -f conftest.$ac_objext
28598 if { (ac_try="$ac_compile"
28599 case "(($ac_try" in
28600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 *) ac_try_echo=$ac_try;;
28603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604 (eval "$ac_compile") 2>conftest.er1
28606 grep -v '^ *+' conftest.er1 >conftest.err
28608 cat conftest.err >&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } &&
28611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28612 { (case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_try") 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; } &&
28621 { ac_try='test -s conftest.$ac_objext'
28622 { (case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_try") 2>&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 ac_cv_header_sys_wait_h=yes
28633 echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28636 ac_cv_header_sys_wait_h=no
28639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28641 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28642 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28643 if test $ac_cv_header_sys_wait_h = yes; then
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_SYS_WAIT_H 1
28651 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28652 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28653 if test "${ac_cv_header_time+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 cat >conftest.$ac_ext <<_ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662 #include <sys/types.h>
28663 #include <sys/time.h>
28669 if ((struct tm *) 0)
28675 rm -f conftest.$ac_objext
28676 if { (ac_try="$ac_compile"
28677 case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_compile") 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
28689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; } &&
28699 { ac_try='test -s conftest.$ac_objext'
28700 { (case "(($ac_try" in
28701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702 *) ac_try_echo=$ac_try;;
28704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705 (eval "$ac_try") 2>&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709 ac_cv_header_time=yes
28711 echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28714 ac_cv_header_time=no
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28720 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28721 if test $ac_cv_header_time = yes; then
28723 cat >>confdefs.h <<\_ACEOF
28724 #define TIME_WITH_SYS_TIME 1
28736 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28743 echo $ECHO_N "(cached) $ECHO_C" >&6
28745 ac_res=`eval echo '${'$as_ac_Header'}'`
28746 { echo "$as_me:$LINENO: result: $ac_res" >&5
28747 echo "${ECHO_T}$ac_res" >&6; }
28749 # Is the header compilable?
28750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 $ac_includes_default
28759 #include <$ac_header>
28761 rm -f conftest.$ac_objext
28762 if { (ac_try="$ac_compile"
28763 case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_compile") 2>conftest.er1
28770 grep -v '^ *+' conftest.er1 >conftest.err
28772 cat conftest.err >&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
28775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest.$ac_objext'
28786 { (case "(($ac_try" in
28787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788 *) ac_try_echo=$ac_try;;
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_try") 2>&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; }; then
28795 ac_header_compiler=yes
28797 echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28800 ac_header_compiler=no
28803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28805 echo "${ECHO_T}$ac_header_compiler" >&6; }
28807 # Is the header present?
28808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28810 cat >conftest.$ac_ext <<_ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h. */
28816 #include <$ac_header>
28818 if { (ac_try="$ac_cpp conftest.$ac_ext"
28819 case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28826 grep -v '^ *+' conftest.er1 >conftest.err
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } >/dev/null; then
28831 if test -s conftest.err; then
28832 ac_cpp_err=$ac_c_preproc_warn_flag
28833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28840 if test -z "$ac_cpp_err"; then
28841 ac_header_preproc=yes
28843 echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28846 ac_header_preproc=no
28849 rm -f conftest.err conftest.$ac_ext
28850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28851 echo "${ECHO_T}$ac_header_preproc" >&6; }
28853 # So? What about this header?
28854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28860 ac_header_preproc=yes
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28876 ## ----------------------------------- ##
28877 ## Report this to llvmbugs@cs.uiuc.edu ##
28878 ## ----------------------------------- ##
28880 ) | sed "s/^/$as_me: WARNING: /" >&2
28883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28888 eval "$as_ac_Header=\$ac_header_preproc"
28890 ac_res=`eval echo '${'$as_ac_Header'}'`
28891 { echo "$as_me:$LINENO: result: $ac_res" >&5
28892 echo "${ECHO_T}$ac_res" >&6; }
28895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28896 cat >>confdefs.h <<_ACEOF
28897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28910 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_res=`eval echo '${'$as_ac_Header'}'`
28920 { echo "$as_me:$LINENO: result: $ac_res" >&5
28921 echo "${ECHO_T}$ac_res" >&6; }
28923 # Is the header compilable?
28924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28926 cat >conftest.$ac_ext <<_ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h. */
28932 $ac_includes_default
28933 #include <$ac_header>
28935 rm -f conftest.$ac_objext
28936 if { (ac_try="$ac_compile"
28937 case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_compile") 2>conftest.er1
28944 grep -v '^ *+' conftest.er1 >conftest.err
28946 cat conftest.err >&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } &&
28949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28950 { (case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_try") 2>&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; } &&
28959 { ac_try='test -s conftest.$ac_objext'
28960 { (case "(($ac_try" in
28961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962 *) ac_try_echo=$ac_try;;
28964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28965 (eval "$ac_try") 2>&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
28969 ac_header_compiler=yes
28971 echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28974 ac_header_compiler=no
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28979 echo "${ECHO_T}$ac_header_compiler" >&6; }
28981 # Is the header present?
28982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28984 cat >conftest.$ac_ext <<_ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h. */
28990 #include <$ac_header>
28992 if { (ac_try="$ac_cpp conftest.$ac_ext"
28993 case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29000 grep -v '^ *+' conftest.er1 >conftest.err
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } >/dev/null; then
29005 if test -s conftest.err; then
29006 ac_cpp_err=$ac_c_preproc_warn_flag
29007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014 if test -z "$ac_cpp_err"; then
29015 ac_header_preproc=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_header_preproc=no
29023 rm -f conftest.err conftest.$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29025 echo "${ECHO_T}$ac_header_preproc" >&6; }
29027 # So? What about this header?
29028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29034 ac_header_preproc=yes
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29050 ## ----------------------------------- ##
29051 ## Report this to llvmbugs@cs.uiuc.edu ##
29052 ## ----------------------------------- ##
29054 ) | sed "s/^/$as_me: WARNING: /" >&2
29057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 eval "$as_ac_Header=\$ac_header_preproc"
29064 ac_res=`eval echo '${'$as_ac_Header'}'`
29065 { echo "$as_me:$LINENO: result: $ac_res" >&5
29066 echo "${ECHO_T}$ac_res" >&6; }
29069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29070 cat >>confdefs.h <<_ACEOF
29071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29079 for ac_header in windows.h
29081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29088 ac_res=`eval echo '${'$as_ac_Header'}'`
29089 { echo "$as_me:$LINENO: result: $ac_res" >&5
29090 echo "${ECHO_T}$ac_res" >&6; }
29092 # Is the header compilable?
29093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29095 cat >conftest.$ac_ext <<_ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h. */
29101 $ac_includes_default
29102 #include <$ac_header>
29104 rm -f conftest.$ac_objext
29105 if { (ac_try="$ac_compile"
29106 case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_compile") 2>conftest.er1
29113 grep -v '^ *+' conftest.er1 >conftest.err
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
29118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29119 { (case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124 (eval "$ac_try") 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest.$ac_objext'
29129 { (case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_try") 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_header_compiler=yes
29140 echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29143 ac_header_compiler=no
29146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29148 echo "${ECHO_T}$ac_header_compiler" >&6; }
29150 # Is the header present?
29151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29153 cat >conftest.$ac_ext <<_ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159 #include <$ac_header>
29161 if { (ac_try="$ac_cpp conftest.$ac_ext"
29162 case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29169 grep -v '^ *+' conftest.er1 >conftest.err
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } >/dev/null; then
29174 if test -s conftest.err; then
29175 ac_cpp_err=$ac_c_preproc_warn_flag
29176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29183 if test -z "$ac_cpp_err"; then
29184 ac_header_preproc=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_header_preproc=no
29192 rm -f conftest.err conftest.$ac_ext
29193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29194 echo "${ECHO_T}$ac_header_preproc" >&6; }
29196 # So? What about this header?
29197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29203 ac_header_preproc=yes
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29219 ## ----------------------------------- ##
29220 ## Report this to llvmbugs@cs.uiuc.edu ##
29221 ## ----------------------------------- ##
29223 ) | sed "s/^/$as_me: WARNING: /" >&2
29226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229 echo $ECHO_N "(cached) $ECHO_C" >&6
29231 eval "$as_ac_Header=\$ac_header_preproc"
29233 ac_res=`eval echo '${'$as_ac_Header'}'`
29234 { echo "$as_me:$LINENO: result: $ac_res" >&5
29235 echo "${ECHO_T}$ac_res" >&6; }
29238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29239 cat >>confdefs.h <<_ACEOF
29240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29251 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29258 echo $ECHO_N "(cached) $ECHO_C" >&6
29260 ac_res=`eval echo '${'$as_ac_Header'}'`
29261 { echo "$as_me:$LINENO: result: $ac_res" >&5
29262 echo "${ECHO_T}$ac_res" >&6; }
29264 # Is the header compilable?
29265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29267 cat >conftest.$ac_ext <<_ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h. */
29273 $ac_includes_default
29274 #include <$ac_header>
29276 rm -f conftest.$ac_objext
29277 if { (ac_try="$ac_compile"
29278 case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_compile") 2>conftest.er1
29285 grep -v '^ *+' conftest.er1 >conftest.err
29287 cat conftest.err >&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); } &&
29290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29291 { (case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_try") 2>&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest.$ac_objext'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
29310 ac_header_compiler=yes
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29315 ac_header_compiler=no
29318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29320 echo "${ECHO_T}$ac_header_compiler" >&6; }
29322 # Is the header present?
29323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29325 cat >conftest.$ac_ext <<_ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h. */
29331 #include <$ac_header>
29333 if { (ac_try="$ac_cpp conftest.$ac_ext"
29334 case "(($ac_try" in
29335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336 *) ac_try_echo=$ac_try;;
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29341 grep -v '^ *+' conftest.er1 >conftest.err
29343 cat conftest.err >&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); } >/dev/null; then
29346 if test -s conftest.err; then
29347 ac_cpp_err=$ac_c_preproc_warn_flag
29348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29355 if test -z "$ac_cpp_err"; then
29356 ac_header_preproc=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 ac_header_preproc=no
29364 rm -f conftest.err conftest.$ac_ext
29365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29366 echo "${ECHO_T}$ac_header_preproc" >&6; }
29368 # So? What about this header?
29369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29375 ac_header_preproc=yes
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29391 ## ----------------------------------- ##
29392 ## Report this to llvmbugs@cs.uiuc.edu ##
29393 ## ----------------------------------- ##
29395 ) | sed "s/^/$as_me: WARNING: /" >&2
29398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29403 eval "$as_ac_Header=\$ac_header_preproc"
29405 ac_res=`eval echo '${'$as_ac_Header'}'`
29406 { echo "$as_me:$LINENO: result: $ac_res" >&5
29407 echo "${ECHO_T}$ac_res" >&6; }
29410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29411 cat >>confdefs.h <<_ACEOF
29412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29422 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29431 ac_res=`eval echo '${'$as_ac_Header'}'`
29432 { echo "$as_me:$LINENO: result: $ac_res" >&5
29433 echo "${ECHO_T}$ac_res" >&6; }
29435 # Is the header compilable?
29436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29444 $ac_includes_default
29445 #include <$ac_header>
29447 rm -f conftest.$ac_objext
29448 if { (ac_try="$ac_compile"
29449 case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454 (eval "$ac_compile") 2>conftest.er1
29456 grep -v '^ *+' conftest.er1 >conftest.err
29458 cat conftest.err >&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
29461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29462 { (case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_try") 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; } &&
29471 { ac_try='test -s conftest.$ac_objext'
29472 { (case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_try") 2>&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; }; then
29481 ac_header_compiler=yes
29483 echo "$as_me: failed program was:" >&5
29484 sed 's/^/| /' conftest.$ac_ext >&5
29486 ac_header_compiler=no
29489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29491 echo "${ECHO_T}$ac_header_compiler" >&6; }
29493 # Is the header present?
29494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 #include <$ac_header>
29504 if { (ac_try="$ac_cpp conftest.$ac_ext"
29505 case "(($ac_try" in
29506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507 *) ac_try_echo=$ac_try;;
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29512 grep -v '^ *+' conftest.er1 >conftest.err
29514 cat conftest.err >&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); } >/dev/null; then
29517 if test -s conftest.err; then
29518 ac_cpp_err=$ac_c_preproc_warn_flag
29519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29526 if test -z "$ac_cpp_err"; then
29527 ac_header_preproc=yes
29529 echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29532 ac_header_preproc=no
29535 rm -f conftest.err conftest.$ac_ext
29536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29537 echo "${ECHO_T}$ac_header_preproc" >&6; }
29539 # So? What about this header?
29540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29546 ac_header_preproc=yes
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29562 ## ----------------------------------- ##
29563 ## Report this to llvmbugs@cs.uiuc.edu ##
29564 ## ----------------------------------- ##
29566 ) | sed "s/^/$as_me: WARNING: /" >&2
29569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29574 eval "$as_ac_Header=\$ac_header_preproc"
29576 ac_res=`eval echo '${'$as_ac_Header'}'`
29577 { echo "$as_me:$LINENO: result: $ac_res" >&5
29578 echo "${ECHO_T}$ac_res" >&6; }
29581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29582 cat >>confdefs.h <<_ACEOF
29583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29590 if test "$ENABLE_THREADS" -eq 1 ; then
29592 for ac_header in pthread.h
29594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 ac_res=`eval echo '${'$as_ac_Header'}'`
29602 { echo "$as_me:$LINENO: result: $ac_res" >&5
29603 echo "${ECHO_T}$ac_res" >&6; }
29605 # Is the header compilable?
29606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29608 cat >conftest.$ac_ext <<_ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h. */
29614 $ac_includes_default
29615 #include <$ac_header>
29617 rm -f conftest.$ac_objext
29618 if { (ac_try="$ac_compile"
29619 case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_compile") 2>conftest.er1
29626 grep -v '^ *+' conftest.er1 >conftest.err
29628 cat conftest.err >&5
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } &&
29631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29632 { (case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_try") 2>&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; } &&
29641 { ac_try='test -s conftest.$ac_objext'
29642 { (case "(($ac_try" in
29643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644 *) ac_try_echo=$ac_try;;
29646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647 (eval "$ac_try") 2>&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
29651 ac_header_compiler=yes
29653 echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29656 ac_header_compiler=no
29659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29661 echo "${ECHO_T}$ac_header_compiler" >&6; }
29663 # Is the header present?
29664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29666 cat >conftest.$ac_ext <<_ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29672 #include <$ac_header>
29674 if { (ac_try="$ac_cpp conftest.$ac_ext"
29675 case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29682 grep -v '^ *+' conftest.er1 >conftest.err
29684 cat conftest.err >&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } >/dev/null; then
29687 if test -s conftest.err; then
29688 ac_cpp_err=$ac_c_preproc_warn_flag
29689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29696 if test -z "$ac_cpp_err"; then
29697 ac_header_preproc=yes
29699 echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29702 ac_header_preproc=no
29705 rm -f conftest.err conftest.$ac_ext
29706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29707 echo "${ECHO_T}$ac_header_preproc" >&6; }
29709 # So? What about this header?
29710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29716 ac_header_preproc=yes
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29732 ## ----------------------------------- ##
29733 ## Report this to llvmbugs@cs.uiuc.edu ##
29734 ## ----------------------------------- ##
29736 ) | sed "s/^/$as_me: WARNING: /" >&2
29739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29742 echo $ECHO_N "(cached) $ECHO_C" >&6
29744 eval "$as_ac_Header=\$ac_header_preproc"
29746 ac_res=`eval echo '${'$as_ac_Header'}'`
29747 { echo "$as_me:$LINENO: result: $ac_res" >&5
29748 echo "${ECHO_T}$ac_res" >&6; }
29751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29752 cat >>confdefs.h <<_ACEOF
29753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29771 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29772 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29773 if test "${ac_cv_huge_val_sanity+set}" = set; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29778 ac_cpp='$CXXCPP $CPPFLAGS'
29779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29784 if test "$cross_compiling" = yes; then
29785 ac_cv_huge_val_sanity=yes
29787 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29797 double x = HUGE_VAL; return x != x;
29802 rm -f conftest$ac_exeext
29803 if { (ac_try="$ac_link"
29804 case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_link") 2>&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29813 { (case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_try") 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_huge_val_sanity=yes
29824 echo "$as_me: program exited with status $ac_status" >&5
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29828 ( exit $ac_status )
29829 ac_cv_huge_val_sanity=no
29831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29836 ac_cpp='$CPP $CPPFLAGS'
29837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29843 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29844 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29845 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29848 { echo "$as_me:$LINENO: checking for pid_t" >&5
29849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29850 if test "${ac_cv_type_pid_t+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29853 cat >conftest.$ac_ext <<_ACEOF
29856 cat confdefs.h >>conftest.$ac_ext
29857 cat >>conftest.$ac_ext <<_ACEOF
29858 /* end confdefs.h. */
29859 $ac_includes_default
29860 typedef pid_t ac__type_new_;
29864 if ((ac__type_new_ *) 0)
29866 if (sizeof (ac__type_new_))
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_compile") 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } &&
29886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29887 { (case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_try") 2>&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; } &&
29896 { ac_try='test -s conftest.$ac_objext'
29897 { (case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_try") 2>&5
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
29906 ac_cv_type_pid_t=yes
29908 echo "$as_me: failed program was:" >&5
29909 sed 's/^/| /' conftest.$ac_ext >&5
29911 ac_cv_type_pid_t=no
29914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29916 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29917 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29918 if test $ac_cv_type_pid_t = yes; then
29922 cat >>confdefs.h <<_ACEOF
29928 { echo "$as_me:$LINENO: checking for size_t" >&5
29929 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29930 if test "${ac_cv_type_size_t+set}" = set; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29933 cat >conftest.$ac_ext <<_ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h. */
29939 $ac_includes_default
29940 typedef size_t ac__type_new_;
29944 if ((ac__type_new_ *) 0)
29946 if (sizeof (ac__type_new_))
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
29961 grep -v '^ *+' conftest.er1 >conftest.err
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967 { (case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_try") 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
29977 { (case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_try") 2>&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; }; then
29986 ac_cv_type_size_t=yes
29988 echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29991 ac_cv_type_size_t=no
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29998 if test $ac_cv_type_size_t = yes; then
30002 cat >>confdefs.h <<_ACEOF
30003 #define size_t unsigned int
30008 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30009 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30010 if test "${ac_cv_type_signal+set}" = set; then
30011 echo $ECHO_N "(cached) $ECHO_C" >&6
30013 cat >conftest.$ac_ext <<_ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h. */
30019 #include <sys/types.h>
30020 #include <signal.h>
30025 return *(signal (0, 0)) (0) == 1;
30030 rm -f conftest.$ac_objext
30031 if { (ac_try="$ac_compile"
30032 case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037 (eval "$ac_compile") 2>conftest.er1
30039 grep -v '^ *+' conftest.er1 >conftest.err
30041 cat conftest.err >&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); } &&
30044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_try") 2>&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest.$ac_objext'
30055 { (case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_try") 2>&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
30064 ac_cv_type_signal=int
30066 echo "$as_me: failed program was:" >&5
30067 sed 's/^/| /' conftest.$ac_ext >&5
30069 ac_cv_type_signal=void
30072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30074 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30075 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30077 cat >>confdefs.h <<_ACEOF
30078 #define RETSIGTYPE $ac_cv_type_signal
30082 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30083 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30084 if test "${ac_cv_struct_tm+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30087 cat >conftest.$ac_ext <<_ACEOF
30090 cat confdefs.h >>conftest.$ac_ext
30091 cat >>conftest.$ac_ext <<_ACEOF
30092 /* end confdefs.h. */
30093 #include <sys/types.h>
30099 struct tm *tp; tp->tm_sec;
30104 rm -f conftest.$ac_objext
30105 if { (ac_try="$ac_compile"
30106 case "(($ac_try" in
30107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30108 *) ac_try_echo=$ac_try;;
30110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30111 (eval "$ac_compile") 2>conftest.er1
30113 grep -v '^ *+' conftest.er1 >conftest.err
30115 cat conftest.err >&5
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); } &&
30118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_try") 2>&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; } &&
30128 { ac_try='test -s conftest.$ac_objext'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134 (eval "$ac_try") 2>&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; }; then
30138 ac_cv_struct_tm=time.h
30140 echo "$as_me: failed program was:" >&5
30141 sed 's/^/| /' conftest.$ac_ext >&5
30143 ac_cv_struct_tm=sys/time.h
30146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30149 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30150 if test $ac_cv_struct_tm = sys/time.h; then
30152 cat >>confdefs.h <<\_ACEOF
30153 #define TM_IN_SYS_TIME 1
30158 { echo "$as_me:$LINENO: checking for int64_t" >&5
30159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30160 if test "${ac_cv_type_int64_t+set}" = set; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30163 cat >conftest.$ac_ext <<_ACEOF
30166 cat confdefs.h >>conftest.$ac_ext
30167 cat >>conftest.$ac_ext <<_ACEOF
30168 /* end confdefs.h. */
30169 $ac_includes_default
30170 typedef int64_t ac__type_new_;
30174 if ((ac__type_new_ *) 0)
30176 if (sizeof (ac__type_new_))
30182 rm -f conftest.$ac_objext
30183 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30191 grep -v '^ *+' conftest.er1 >conftest.err
30193 cat conftest.err >&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); } &&
30196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; } &&
30206 { ac_try='test -s conftest.$ac_objext'
30207 { (case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_try") 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_cv_type_int64_t=yes
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30221 ac_cv_type_int64_t=no
30224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30227 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30228 if test $ac_cv_type_int64_t = yes; then
30230 cat >>confdefs.h <<_ACEOF
30231 #define HAVE_INT64_T 1
30236 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30237 echo "$as_me: error: Type int64_t required but not found" >&2;}
30238 { (exit 1); exit 1; }; }
30241 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30242 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30243 if test "${ac_cv_type_uint64_t+set}" = set; then
30244 echo $ECHO_N "(cached) $ECHO_C" >&6
30246 cat >conftest.$ac_ext <<_ACEOF
30249 cat confdefs.h >>conftest.$ac_ext
30250 cat >>conftest.$ac_ext <<_ACEOF
30251 /* end confdefs.h. */
30252 $ac_includes_default
30253 typedef uint64_t ac__type_new_;
30257 if ((ac__type_new_ *) 0)
30259 if (sizeof (ac__type_new_))
30265 rm -f conftest.$ac_objext
30266 if { (ac_try="$ac_compile"
30267 case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_compile") 2>conftest.er1
30274 grep -v '^ *+' conftest.er1 >conftest.err
30276 cat conftest.err >&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); } &&
30279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30280 { (case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285 (eval "$ac_try") 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; } &&
30289 { ac_try='test -s conftest.$ac_objext'
30290 { (case "(($ac_try" in
30291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30292 *) ac_try_echo=$ac_try;;
30294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30295 (eval "$ac_try") 2>&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; }; then
30299 ac_cv_type_uint64_t=yes
30301 echo "$as_me: failed program was:" >&5
30302 sed 's/^/| /' conftest.$ac_ext >&5
30304 ac_cv_type_uint64_t=no
30307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30309 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30310 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30311 if test $ac_cv_type_uint64_t = yes; then
30313 cat >>confdefs.h <<_ACEOF
30314 #define HAVE_UINT64_T 1
30319 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30320 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30321 if test "${ac_cv_type_u_int64_t+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 cat >conftest.$ac_ext <<_ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h. */
30330 $ac_includes_default
30331 typedef u_int64_t ac__type_new_;
30335 if ((ac__type_new_ *) 0)
30337 if (sizeof (ac__type_new_))
30343 rm -f conftest.$ac_objext
30344 if { (ac_try="$ac_compile"
30345 case "(($ac_try" in
30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347 *) ac_try_echo=$ac_try;;
30349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350 (eval "$ac_compile") 2>conftest.er1
30352 grep -v '^ *+' conftest.er1 >conftest.err
30354 cat conftest.err >&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } &&
30357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; } &&
30367 { ac_try='test -s conftest.$ac_objext'
30368 { (case "(($ac_try" in
30369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370 *) ac_try_echo=$ac_try;;
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373 (eval "$ac_try") 2>&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; }; then
30377 ac_cv_type_u_int64_t=yes
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 ac_cv_type_u_int64_t=no
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30387 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30388 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30389 if test $ac_cv_type_u_int64_t = yes; then
30391 cat >>confdefs.h <<_ACEOF
30392 #define HAVE_U_INT64_T 1
30397 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30398 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30399 { (exit 1); exit 1; }; }
30413 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 cat >conftest.$ac_ext <<_ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30429 #define $ac_func innocuous_$ac_func
30431 /* System header to define __stub macros and hopefully few prototypes,
30432 which can conflict with char $ac_func (); below.
30433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434 <limits.h> exists even on freestanding compilers. */
30437 # include <limits.h>
30439 # include <assert.h>
30444 /* Override any GCC internal prototype to avoid an error.
30445 Use char because int might match the return type of a GCC
30446 builtin and then its argument prototype would still apply. */
30451 /* The GNU C library defines this for functions which it implements
30452 to always fail with ENOSYS. Some functions are actually named
30453 something starting with __ and the normal name is an alias. */
30454 #if defined __stub_$ac_func || defined __stub___$ac_func
30461 return $ac_func ();
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (ac_try="$ac_link"
30468 case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_link") 2>conftest.er1
30475 grep -v '^ *+' conftest.er1 >conftest.err
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
30480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; } &&
30490 { ac_try='test -s conftest$ac_exeext'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 eval "$as_ac_var=yes"
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30505 eval "$as_ac_var=no"
30508 rm -f core conftest.err conftest.$ac_objext \
30509 conftest$ac_exeext conftest.$ac_ext
30511 ac_res=`eval echo '${'$as_ac_var'}'`
30512 { echo "$as_me:$LINENO: result: $ac_res" >&5
30513 echo "${ECHO_T}$ac_res" >&6; }
30514 if test `eval echo '${'$as_ac_var'}'` = yes; then
30515 cat >>confdefs.h <<_ACEOF
30516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30526 for ac_func in powf fmodf strtof round
30528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30534 cat >conftest.$ac_ext <<_ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h. */
30540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30542 #define $ac_func innocuous_$ac_func
30544 /* System header to define __stub macros and hopefully few prototypes,
30545 which can conflict with char $ac_func (); below.
30546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30547 <limits.h> exists even on freestanding compilers. */
30550 # include <limits.h>
30552 # include <assert.h>
30557 /* Override any GCC internal prototype to avoid an error.
30558 Use char because int might match the return type of a GCC
30559 builtin and then its argument prototype would still apply. */
30564 /* The GNU C library defines this for functions which it implements
30565 to always fail with ENOSYS. Some functions are actually named
30566 something starting with __ and the normal name is an alias. */
30567 #if defined __stub_$ac_func || defined __stub___$ac_func
30574 return $ac_func ();
30579 rm -f conftest.$ac_objext conftest$ac_exeext
30580 if { (ac_try="$ac_link"
30581 case "(($ac_try" in
30582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583 *) ac_try_echo=$ac_try;;
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_link") 2>conftest.er1
30588 grep -v '^ *+' conftest.er1 >conftest.err
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } &&
30593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30594 { (case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_try") 2>&5
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try='test -s conftest$ac_exeext'
30604 { (case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_try") 2>&5
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; }; then
30613 eval "$as_ac_var=yes"
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618 eval "$as_ac_var=no"
30621 rm -f core conftest.err conftest.$ac_objext \
30622 conftest$ac_exeext conftest.$ac_ext
30624 ac_res=`eval echo '${'$as_ac_var'}'`
30625 { echo "$as_me:$LINENO: result: $ac_res" >&5
30626 echo "${ECHO_T}$ac_res" >&6; }
30627 if test `eval echo '${'$as_ac_var'}'` = yes; then
30628 cat >>confdefs.h <<_ACEOF
30629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30646 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 cat >conftest.$ac_ext <<_ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30656 #define $ac_func innocuous_$ac_func
30658 /* System header to define __stub macros and hopefully few prototypes,
30659 which can conflict with char $ac_func (); below.
30660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30661 <limits.h> exists even on freestanding compilers. */
30664 # include <limits.h>
30666 # include <assert.h>
30671 /* Override any GCC internal prototype to avoid an error.
30672 Use char because int might match the return type of a GCC
30673 builtin and then its argument prototype would still apply. */
30678 /* The GNU C library defines this for functions which it implements
30679 to always fail with ENOSYS. Some functions are actually named
30680 something starting with __ and the normal name is an alias. */
30681 #if defined __stub_$ac_func || defined __stub___$ac_func
30688 return $ac_func ();
30693 rm -f conftest.$ac_objext conftest$ac_exeext
30694 if { (ac_try="$ac_link"
30695 case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_link") 2>conftest.er1
30702 grep -v '^ *+' conftest.er1 >conftest.err
30704 cat conftest.err >&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } &&
30707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30708 { (case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713 (eval "$ac_try") 2>&5
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; } &&
30717 { ac_try='test -s conftest$ac_exeext'
30718 { (case "(($ac_try" in
30719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720 *) ac_try_echo=$ac_try;;
30722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30723 (eval "$ac_try") 2>&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; }; then
30727 eval "$as_ac_var=yes"
30729 echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30732 eval "$as_ac_var=no"
30735 rm -f core conftest.err conftest.$ac_objext \
30736 conftest$ac_exeext conftest.$ac_ext
30738 ac_res=`eval echo '${'$as_ac_var'}'`
30739 { echo "$as_me:$LINENO: result: $ac_res" >&5
30740 echo "${ECHO_T}$ac_res" >&6; }
30741 if test `eval echo '${'$as_ac_var'}'` = yes; then
30742 cat >>confdefs.h <<_ACEOF
30743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30752 for ac_func in isatty mkdtemp mkstemp
30754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30760 cat >conftest.$ac_ext <<_ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768 #define $ac_func innocuous_$ac_func
30770 /* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
30776 # include <limits.h>
30778 # include <assert.h>
30783 /* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
30790 /* The GNU C library defines this for functions which it implements
30791 to always fail with ENOSYS. Some functions are actually named
30792 something starting with __ and the normal name is an alias. */
30793 #if defined __stub_$ac_func || defined __stub___$ac_func
30800 return $ac_func ();
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
30814 grep -v '^ *+' conftest.er1 >conftest.err
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 eval "$as_ac_var=yes"
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 eval "$as_ac_var=no"
30847 rm -f core conftest.err conftest.$ac_objext \
30848 conftest$ac_exeext conftest.$ac_ext
30850 ac_res=`eval echo '${'$as_ac_var'}'`
30851 { echo "$as_me:$LINENO: result: $ac_res" >&5
30852 echo "${ECHO_T}$ac_res" >&6; }
30853 if test `eval echo '${'$as_ac_var'}'` = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30868 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30876 cat >conftest.$ac_ext <<_ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884 #define $ac_func innocuous_$ac_func
30886 /* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30892 # include <limits.h>
30894 # include <assert.h>
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30906 /* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30916 return $ac_func ();
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
30930 grep -v '^ *+' conftest.er1 >conftest.err
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
30935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
30955 eval "$as_ac_var=yes"
30957 echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30960 eval "$as_ac_var=no"
30963 rm -f core conftest.err conftest.$ac_objext \
30964 conftest$ac_exeext conftest.$ac_ext
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970 cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30981 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987 echo $ECHO_N "(cached) $ECHO_C" >&6
30989 cat >conftest.$ac_ext <<_ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30997 #define $ac_func innocuous_$ac_func
30999 /* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char $ac_func (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31005 # include <limits.h>
31007 # include <assert.h>
31012 /* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31019 /* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
31022 #if defined __stub_$ac_func || defined __stub___$ac_func
31029 return $ac_func ();
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (ac_try="$ac_link"
31036 case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_link") 2>conftest.er1
31043 grep -v '^ *+' conftest.er1 >conftest.err
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } &&
31048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_try") 2>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
31068 eval "$as_ac_var=yes"
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 eval "$as_ac_var=no"
31076 rm -f core conftest.err conftest.$ac_objext \
31077 conftest$ac_exeext conftest.$ac_ext
31079 ac_res=`eval echo '${'$as_ac_var'}'`
31080 { echo "$as_me:$LINENO: result: $ac_res" >&5
31081 echo "${ECHO_T}$ac_res" >&6; }
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31094 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 cat >conftest.$ac_ext <<_ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h. */
31108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31110 #define $ac_func innocuous_$ac_func
31112 /* System header to define __stub macros and hopefully few prototypes,
31113 which can conflict with char $ac_func (); below.
31114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115 <limits.h> exists even on freestanding compilers. */
31118 # include <limits.h>
31120 # include <assert.h>
31125 /* Override any GCC internal prototype to avoid an error.
31126 Use char because int might match the return type of a GCC
31127 builtin and then its argument prototype would still apply. */
31132 /* The GNU C library defines this for functions which it implements
31133 to always fail with ENOSYS. Some functions are actually named
31134 something starting with __ and the normal name is an alias. */
31135 #if defined __stub_$ac_func || defined __stub___$ac_func
31142 return $ac_func ();
31147 rm -f conftest.$ac_objext conftest$ac_exeext
31148 if { (ac_try="$ac_link"
31149 case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_link") 2>conftest.er1
31156 grep -v '^ *+' conftest.er1 >conftest.err
31158 cat conftest.err >&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
31161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
31172 { (case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_try") 2>&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
31181 eval "$as_ac_var=yes"
31183 echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 eval "$as_ac_var=no"
31189 rm -f core conftest.err conftest.$ac_objext \
31190 conftest$ac_exeext conftest.$ac_ext
31192 ac_res=`eval echo '${'$as_ac_var'}'`
31193 { echo "$as_me:$LINENO: result: $ac_res" >&5
31194 echo "${ECHO_T}$ac_res" >&6; }
31195 if test `eval echo '${'$as_ac_var'}'` = yes; then
31196 cat >>confdefs.h <<_ACEOF
31197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31203 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31204 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31205 if test "${llvm_cv_c_printf_a+set}" = set; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
31209 ac_cpp='$CPP $CPPFLAGS'
31210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31214 if test "$cross_compiling" = yes; then
31215 llvmac_cv_c_printf_a=no
31217 cat >conftest.$ac_ext <<_ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31226 #include <stdlib.h>
31232 volatile double A, B;
31236 sprintf(Buffer, "%a", A);
31240 if (A != 0x1.999999999999ap-4)
31247 rm -f conftest$ac_exeext
31248 if { (ac_try="$ac_link"
31249 case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_link") 2>&5
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31258 { (case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_try") 2>&5
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); }; }; then
31267 llvm_cv_c_printf_a=yes
31269 echo "$as_me: program exited with status $ac_status" >&5
31270 echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31273 ( exit $ac_status )
31274 llvmac_cv_c_printf_a=no
31276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31281 ac_cpp='$CPP $CPPFLAGS'
31282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31287 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31288 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31289 if test "$llvm_cv_c_printf_a" = "yes"; then
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE_PRINTF_A 1
31297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31298 # for constant arguments. Useless!
31299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31301 if test "${ac_cv_working_alloca_h+set}" = set; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 cat >conftest.$ac_ext <<_ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h. */
31310 #include <alloca.h>
31314 char *p = (char *) alloca (2 * sizeof (int));
31320 rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_link") 2>conftest.er1
31329 grep -v '^ *+' conftest.er1 >conftest.err
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } &&
31334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31335 { (case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_try") 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
31345 { (case "(($ac_try" in
31346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347 *) ac_try_echo=$ac_try;;
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350 (eval "$ac_try") 2>&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; }; then
31354 ac_cv_working_alloca_h=yes
31356 echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31359 ac_cv_working_alloca_h=no
31362 rm -f core conftest.err conftest.$ac_objext \
31363 conftest$ac_exeext conftest.$ac_ext
31365 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31367 if test $ac_cv_working_alloca_h = yes; then
31369 cat >>confdefs.h <<\_ACEOF
31370 #define HAVE_ALLOCA_H 1
31375 { echo "$as_me:$LINENO: checking for alloca" >&5
31376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31377 if test "${ac_cv_func_alloca_works+set}" = set; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31380 cat >conftest.$ac_ext <<_ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31387 # define alloca __builtin_alloca
31390 # include <malloc.h>
31391 # define alloca _alloca
31394 # include <alloca.h>
31399 # ifndef alloca /* predefined by HP cc +Olibcalls */
31410 char *p = (char *) alloca (1);
31416 rm -f conftest.$ac_objext conftest$ac_exeext
31417 if { (ac_try="$ac_link"
31418 case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_link") 2>conftest.er1
31425 grep -v '^ *+' conftest.er1 >conftest.err
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest$ac_exeext'
31441 { (case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_try") 2>&5
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
31450 ac_cv_func_alloca_works=yes
31452 echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31455 ac_cv_func_alloca_works=no
31458 rm -f core conftest.err conftest.$ac_objext \
31459 conftest$ac_exeext conftest.$ac_ext
31461 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31464 if test $ac_cv_func_alloca_works = yes; then
31466 cat >>confdefs.h <<\_ACEOF
31467 #define HAVE_ALLOCA 1
31471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31472 # that cause trouble. Some versions do not even contain alloca or
31473 # contain a buggy version. If you still want to use their alloca,
31474 # use ar to extract alloca.o from them instead of compiling alloca.c.
31476 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31478 cat >>confdefs.h <<\_ACEOF
31483 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31485 if test "${ac_cv_os_cray+set}" = set; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 cat >conftest.$ac_ext <<_ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h. */
31494 #if defined CRAY && ! defined CRAY2
31501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31502 $EGREP "webecray" >/dev/null 2>&1; then
31510 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31511 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31512 if test $ac_cv_os_cray = yes; then
31513 for ac_func in _getb67 GETB67 getb67; do
31514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31520 cat >conftest.$ac_ext <<_ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31528 #define $ac_func innocuous_$ac_func
31530 /* System header to define __stub macros and hopefully few prototypes,
31531 which can conflict with char $ac_func (); below.
31532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31533 <limits.h> exists even on freestanding compilers. */
31536 # include <limits.h>
31538 # include <assert.h>
31543 /* Override any GCC internal prototype to avoid an error.
31544 Use char because int might match the return type of a GCC
31545 builtin and then its argument prototype would still apply. */
31550 /* The GNU C library defines this for functions which it implements
31551 to always fail with ENOSYS. Some functions are actually named
31552 something starting with __ and the normal name is an alias. */
31553 #if defined __stub_$ac_func || defined __stub___$ac_func
31560 return $ac_func ();
31565 rm -f conftest.$ac_objext conftest$ac_exeext
31566 if { (ac_try="$ac_link"
31567 case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_link") 2>conftest.er1
31574 grep -v '^ *+' conftest.er1 >conftest.err
31576 cat conftest.err >&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } &&
31579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31580 { (case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_try") 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; } &&
31589 { ac_try='test -s conftest$ac_exeext'
31590 { (case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_try") 2>&5
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599 eval "$as_ac_var=yes"
31601 echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31604 eval "$as_ac_var=no"
31607 rm -f core conftest.err conftest.$ac_objext \
31608 conftest$ac_exeext conftest.$ac_ext
31610 ac_res=`eval echo '${'$as_ac_var'}'`
31611 { echo "$as_me:$LINENO: result: $ac_res" >&5
31612 echo "${ECHO_T}$ac_res" >&6; }
31613 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615 cat >>confdefs.h <<_ACEOF
31616 #define CRAY_STACKSEG_END $ac_func
31625 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31626 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31627 if test "${ac_cv_c_stack_direction+set}" = set; then
31628 echo $ECHO_N "(cached) $ECHO_C" >&6
31630 if test "$cross_compiling" = yes; then
31631 ac_cv_c_stack_direction=0
31633 cat >conftest.$ac_ext <<_ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31639 $ac_includes_default
31641 find_stack_direction ()
31643 static char *addr = 0;
31648 return find_stack_direction ();
31651 return (&dummy > addr) ? 1 : -1;
31657 return find_stack_direction () < 0;
31660 rm -f conftest$ac_exeext
31661 if { (ac_try="$ac_link"
31662 case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_link") 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31671 { (case "(($ac_try" in
31672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673 *) ac_try_echo=$ac_try;;
31675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676 (eval "$ac_try") 2>&5
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; }; then
31680 ac_cv_c_stack_direction=1
31682 echo "$as_me: program exited with status $ac_status" >&5
31683 echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31686 ( exit $ac_status )
31687 ac_cv_c_stack_direction=-1
31689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31694 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31695 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31697 cat >>confdefs.h <<_ACEOF
31698 #define STACK_DIRECTION $ac_cv_c_stack_direction
31705 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31706 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31707 if test "${ac_cv_func_rand48+set}" = set; then
31708 echo $ECHO_N "(cached) $ECHO_C" >&6
31711 ac_cpp='$CXXCPP $CPPFLAGS'
31712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31716 cat >conftest.$ac_ext <<_ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h. */
31722 #include <stdlib.h>
31726 srand48(0);lrand48();drand48();
31731 rm -f conftest.$ac_objext
31732 if { (ac_try="$ac_compile"
31733 case "(($ac_try" in
31734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31735 *) ac_try_echo=$ac_try;;
31737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31738 (eval "$ac_compile") 2>conftest.er1
31740 grep -v '^ *+' conftest.er1 >conftest.err
31742 cat conftest.err >&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); } &&
31745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31746 { (case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_try") 2>&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; } &&
31755 { ac_try='test -s conftest.$ac_objext'
31756 { (case "(($ac_try" in
31757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758 *) ac_try_echo=$ac_try;;
31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761 (eval "$ac_try") 2>&5
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); }; }; then
31765 ac_cv_func_rand48=yes
31767 echo "$as_me: failed program was:" >&5
31768 sed 's/^/| /' conftest.$ac_ext >&5
31770 ac_cv_func_rand48=no
31773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775 ac_cpp='$CPP $CPPFLAGS'
31776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31781 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31782 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31784 if test "$ac_cv_func_rand48" = "yes" ; then
31786 cat >>confdefs.h <<\_ACEOF
31787 #define HAVE_RAND48 1
31793 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31794 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31795 if test "${ac_cv_cxx_namespaces+set}" = set; then
31796 echo $ECHO_N "(cached) $ECHO_C" >&6
31799 ac_cpp='$CXXCPP $CPPFLAGS'
31800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31810 namespace Outer { namespace Inner { int i = 0; }}
31814 using namespace Outer::Inner; return i;
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31828 grep -v '^ *+' conftest.er1 >conftest.err
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest.$ac_objext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
31853 ac_cv_cxx_namespaces=yes
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31858 ac_cv_cxx_namespaces=no
31861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31863 ac_cpp='$CPP $CPPFLAGS'
31864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31870 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31871 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31872 if test "$ac_cv_cxx_namespaces" = yes; then
31874 cat >>confdefs.h <<\_ACEOF
31875 #define HAVE_NAMESPACES
31880 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31881 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31882 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31883 echo $ECHO_N "(cached) $ECHO_C" >&6
31887 ac_cpp='$CXXCPP $CPPFLAGS'
31888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31892 cat >conftest.$ac_ext <<_ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h. */
31898 #include <ext/hash_map>
31899 #ifdef HAVE_NAMESPACES
31900 using namespace std;
31905 hash_map<int, int> t;
31910 rm -f conftest.$ac_objext
31911 if { (ac_try="$ac_compile"
31912 case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_compile") 2>conftest.er1
31919 grep -v '^ *+' conftest.er1 >conftest.err
31921 cat conftest.err >&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); } &&
31924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31925 { (case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_try") 2>&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest.$ac_objext'
31935 { (case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_try") 2>&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; }; then
31944 ac_cv_cxx_have_std_ext_hash_map=yes
31946 echo "$as_me: failed program was:" >&5
31947 sed 's/^/| /' conftest.$ac_ext >&5
31949 ac_cv_cxx_have_std_ext_hash_map=no
31952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954 ac_cpp='$CPP $CPPFLAGS'
31955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31960 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31961 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31962 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31965 cat >>confdefs.h <<\_ACEOF
31966 #define HAVE_STD_EXT_HASH_MAP 1
31971 cat >>confdefs.h <<\_ACEOF
31972 #define HAVE_STD_EXT_HASH_MAP 0
31977 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31978 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31979 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31984 ac_cpp='$CXXCPP $CPPFLAGS'
31985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989 cat >conftest.$ac_ext <<_ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h. */
31995 #include <ext/hash_map>
31996 #ifdef HAVE_NAMESPACES
31997 using namespace __gnu_cxx;
32002 hash_map<int,int> t;
32007 rm -f conftest.$ac_objext
32008 if { (ac_try="$ac_compile"
32009 case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014 (eval "$ac_compile") 2>conftest.er1
32016 grep -v '^ *+' conftest.er1 >conftest.err
32018 cat conftest.err >&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } &&
32021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='test -s conftest.$ac_objext'
32032 { (case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_try") 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
32041 ac_cv_cxx_have_gnu_ext_hash_map=yes
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32046 ac_cv_cxx_have_gnu_ext_hash_map=no
32049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32051 ac_cpp='$CPP $CPPFLAGS'
32052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32057 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32058 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32059 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32062 cat >>confdefs.h <<\_ACEOF
32063 #define HAVE_GNU_EXT_HASH_MAP 1
32068 cat >>confdefs.h <<\_ACEOF
32069 #define HAVE_GNU_EXT_HASH_MAP 0
32074 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32075 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32076 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32077 echo $ECHO_N "(cached) $ECHO_C" >&6
32081 ac_cpp='$CXXCPP $CPPFLAGS'
32082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32086 cat >conftest.$ac_ext <<_ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h. */
32092 #include <hash_map>
32096 hash_map<int,int> t;
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32110 grep -v '^ *+' conftest.er1 >conftest.err
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
32135 ac_cv_cxx_have_global_hash_map=yes
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ac_cv_cxx_have_global_hash_map=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32151 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32152 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32153 if test "$ac_cv_cxx_have_global_hash_map" = yes
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_GLOBAL_HASH_MAP 1
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_GLOBAL_HASH_MAP 0
32168 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32169 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32170 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32175 ac_cpp='$CXXCPP $CPPFLAGS'
32176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32180 cat >conftest.$ac_ext <<_ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32186 #include <ext/hash_set>
32187 #ifdef HAVE_NAMESPACES
32188 using namespace std;
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
32207 grep -v '^ *+' conftest.er1 >conftest.err
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; }; then
32232 ac_cv_cxx_have_std_ext_hash_set=yes
32234 echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32237 ac_cv_cxx_have_std_ext_hash_set=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 ac_cpp='$CPP $CPPFLAGS'
32243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32248 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32249 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32250 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_STD_EXT_HASH_SET 1
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_STD_EXT_HASH_SET 0
32265 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32266 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32267 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32272 ac_cpp='$CXXCPP $CPPFLAGS'
32273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277 cat >conftest.$ac_ext <<_ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h. */
32283 #include <ext/hash_set>
32284 #ifdef HAVE_NAMESPACES
32285 using namespace __gnu_cxx;
32295 rm -f conftest.$ac_objext
32296 if { (ac_try="$ac_compile"
32297 case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_compile") 2>conftest.er1
32304 grep -v '^ *+' conftest.er1 >conftest.err
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } &&
32309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32310 { (case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_try") 2>&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; } &&
32319 { ac_try='test -s conftest.$ac_objext'
32320 { (case "(($ac_try" in
32321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32322 *) ac_try_echo=$ac_try;;
32324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32325 (eval "$ac_try") 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
32329 ac_cv_cxx_have_gnu_ext_hash_set=yes
32331 echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32334 ac_cv_cxx_have_gnu_ext_hash_set=no
32337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32339 ac_cpp='$CPP $CPPFLAGS'
32340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32345 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32346 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32347 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32350 cat >>confdefs.h <<\_ACEOF
32351 #define HAVE_GNU_EXT_HASH_SET 1
32356 cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_GNU_EXT_HASH_SET 0
32362 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32363 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32364 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32369 ac_cpp='$CXXCPP $CPPFLAGS'
32370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32374 cat >conftest.$ac_ext <<_ACEOF
32377 cat confdefs.h >>conftest.$ac_ext
32378 cat >>conftest.$ac_ext <<_ACEOF
32379 /* end confdefs.h. */
32380 #include <hash_set>
32384 hash_set<int> t; return 0;
32389 rm -f conftest.$ac_objext
32390 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32398 grep -v '^ *+' conftest.er1 >conftest.err
32400 cat conftest.err >&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 ac_cv_cxx_have_global_hash_set=yes
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 ac_cv_cxx_have_global_hash_set=no
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32433 ac_cpp='$CPP $CPPFLAGS'
32434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32439 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32440 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32441 if test "$ac_cv_cxx_have_global_hash_set" = yes
32444 cat >>confdefs.h <<\_ACEOF
32445 #define HAVE_GLOBAL_HASH_SET 1
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_GLOBAL_HASH_SET 0
32456 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32457 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32458 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32459 echo $ECHO_N "(cached) $ECHO_C" >&6
32463 ac_cpp='$CXXCPP $CPPFLAGS'
32464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468 cat >conftest.$ac_ext <<_ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32474 #include <iterator>
32475 #ifdef HAVE_NAMESPACES
32476 using namespace std;
32481 iterator<int,int,int> t; return 0;
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
32495 grep -v '^ *+' conftest.er1 >conftest.err
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 ac_cv_cxx_have_std_iterator=yes
32522 echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32525 ac_cv_cxx_have_std_iterator=no
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32538 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32539 if test "$ac_cv_cxx_have_std_iterator" = yes
32542 cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_STD_ITERATOR 1
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_STD_ITERATOR 0
32554 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32555 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32556 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32561 ac_cpp='$CXXCPP $CPPFLAGS'
32562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32566 cat >conftest.$ac_ext <<_ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h. */
32572 #include <iterator>
32573 #ifdef HAVE_NAMESPACES
32574 using namespace std;
32579 bidirectional_iterator<int,int> t; return 0;
32584 rm -f conftest.$ac_objext
32585 if { (ac_try="$ac_compile"
32586 case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_compile") 2>conftest.er1
32593 grep -v '^ *+' conftest.er1 >conftest.err
32595 cat conftest.err >&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
32598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32599 { (case "(($ac_try" in
32600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601 *) ac_try_echo=$ac_try;;
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 (eval "$ac_try") 2>&5
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; } &&
32608 { ac_try='test -s conftest.$ac_objext'
32609 { (case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_try") 2>&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); }; }; then
32618 ac_cv_cxx_have_bi_iterator=yes
32620 echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.$ac_ext >&5
32623 ac_cv_cxx_have_bi_iterator=no
32626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32628 ac_cpp='$CPP $CPPFLAGS'
32629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32635 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32636 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32637 if test "$ac_cv_cxx_have_bi_iterator" = yes
32640 cat >>confdefs.h <<\_ACEOF
32641 #define HAVE_BI_ITERATOR 1
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_BI_ITERATOR 0
32652 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32653 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32654 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32655 echo $ECHO_N "(cached) $ECHO_C" >&6
32659 ac_cpp='$CXXCPP $CPPFLAGS'
32660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32664 cat >conftest.$ac_ext <<_ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32670 #include <iterator>
32671 #ifdef HAVE_NAMESPACES
32672 using namespace std;
32677 forward_iterator<int,int> t; return 0;
32682 rm -f conftest.$ac_objext
32683 if { (ac_try="$ac_compile"
32684 case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_compile") 2>conftest.er1
32691 grep -v '^ *+' conftest.er1 >conftest.err
32693 cat conftest.err >&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
32696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; } &&
32706 { ac_try='test -s conftest.$ac_objext'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; }; then
32716 ac_cv_cxx_have_fwd_iterator=yes
32718 echo "$as_me: failed program was:" >&5
32719 sed 's/^/| /' conftest.$ac_ext >&5
32721 ac_cv_cxx_have_fwd_iterator=no
32724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32726 ac_cpp='$CPP $CPPFLAGS'
32727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32733 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32734 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32735 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32738 cat >>confdefs.h <<\_ACEOF
32739 #define HAVE_FWD_ITERATOR 1
32744 cat >>confdefs.h <<\_ACEOF
32745 #define HAVE_FWD_ITERATOR 0
32751 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32757 ac_cpp='$CXXCPP $CPPFLAGS'
32758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32762 cat >conftest.$ac_ext <<_ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h. */
32777 rm -f conftest.$ac_objext
32778 if { (ac_try="$ac_compile"
32779 case "(($ac_try" in
32780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781 *) ac_try_echo=$ac_try;;
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784 (eval "$ac_compile") 2>conftest.er1
32786 grep -v '^ *+' conftest.er1 >conftest.err
32788 cat conftest.err >&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); } &&
32791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; } &&
32801 { ac_try='test -s conftest.$ac_objext'
32802 { (case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_try") 2>&5
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; }; then
32811 ac_cv_func_isnan_in_math_h=yes
32813 echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32816 ac_cv_func_isnan_in_math_h=no
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 ac_cpp='$CPP $CPPFLAGS'
32822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32828 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32831 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32833 cat >>confdefs.h <<\_ACEOF
32834 #define HAVE_ISNAN_IN_MATH_H 1
32839 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32840 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32841 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32842 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 ac_cpp='$CXXCPP $CPPFLAGS'
32846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32850 cat >conftest.$ac_ext <<_ACEOF
32853 cat confdefs.h >>conftest.$ac_ext
32854 cat >>conftest.$ac_ext <<_ACEOF
32855 /* end confdefs.h. */
32865 rm -f conftest.$ac_objext
32866 if { (ac_try="$ac_compile"
32867 case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_compile") 2>conftest.er1
32874 grep -v '^ *+' conftest.er1 >conftest.err
32876 cat conftest.err >&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); } &&
32879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; } &&
32889 { ac_try='test -s conftest.$ac_objext'
32890 { (case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_try") 2>&5
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; }; then
32899 ac_cv_func_isnan_in_cmath=yes
32901 echo "$as_me: failed program was:" >&5
32902 sed 's/^/| /' conftest.$ac_ext >&5
32904 ac_cv_func_isnan_in_cmath=no
32907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32909 ac_cpp='$CPP $CPPFLAGS'
32910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32916 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32918 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32920 cat >>confdefs.h <<\_ACEOF
32921 #define HAVE_ISNAN_IN_CMATH 1
32926 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32927 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32928 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32929 echo $ECHO_N "(cached) $ECHO_C" >&6
32932 ac_cpp='$CXXCPP $CPPFLAGS'
32933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32937 cat >conftest.$ac_ext <<_ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h. */
32947 float f; std::isnan(f);
32952 rm -f conftest.$ac_objext
32953 if { (ac_try="$ac_compile"
32954 case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959 (eval "$ac_compile") 2>conftest.er1
32961 grep -v '^ *+' conftest.er1 >conftest.err
32963 cat conftest.err >&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } &&
32966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32967 { (case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_try") 2>&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
32977 { (case "(($ac_try" in
32978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979 *) ac_try_echo=$ac_try;;
32981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982 (eval "$ac_try") 2>&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; }; then
32986 ac_cv_func_std_isnan_in_cmath=yes
32988 echo "$as_me: failed program was:" >&5
32989 sed 's/^/| /' conftest.$ac_ext >&5
32991 ac_cv_func_std_isnan_in_cmath=no
32994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32996 ac_cpp='$CPP $CPPFLAGS'
32997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33002 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33003 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33005 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33007 cat >>confdefs.h <<\_ACEOF
33008 #define HAVE_STD_ISNAN_IN_CMATH 1
33014 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33015 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33016 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33020 ac_cpp='$CXXCPP $CPPFLAGS'
33021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33025 cat >conftest.$ac_ext <<_ACEOF
33028 cat confdefs.h >>conftest.$ac_ext
33029 cat >>conftest.$ac_ext <<_ACEOF
33030 /* end confdefs.h. */
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33049 grep -v '^ *+' conftest.er1 >conftest.err
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 ac_cv_func_isinf_in_math_h=yes
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 ac_cv_func_isinf_in_math_h=no
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33084 ac_cpp='$CPP $CPPFLAGS'
33085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33090 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33091 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33093 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_ISINF_IN_MATH_H 1
33101 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33102 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33103 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33107 ac_cpp='$CXXCPP $CPPFLAGS'
33108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
33141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33142 { (case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_try") 2>&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest.$ac_objext'
33152 { (case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; }; then
33161 ac_cv_func_isinf_in_cmath=yes
33163 echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33166 ac_cv_func_isinf_in_cmath=no
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171 ac_cpp='$CPP $CPPFLAGS'
33172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33177 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33178 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33180 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33182 cat >>confdefs.h <<\_ACEOF
33183 #define HAVE_ISINF_IN_CMATH 1
33188 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33189 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33190 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33194 ac_cpp='$CXXCPP $CPPFLAGS'
33195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33199 cat >conftest.$ac_ext <<_ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33209 float f; std::isinf(f)}
33214 rm -f conftest.$ac_objext
33215 if { (ac_try="$ac_compile"
33216 case "(($ac_try" in
33217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33218 *) ac_try_echo=$ac_try;;
33220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33221 (eval "$ac_compile") 2>conftest.er1
33223 grep -v '^ *+' conftest.er1 >conftest.err
33225 cat conftest.err >&5
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); } &&
33228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33229 { (case "(($ac_try" in
33230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231 *) ac_try_echo=$ac_try;;
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234 (eval "$ac_try") 2>&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; } &&
33238 { ac_try='test -s conftest.$ac_objext'
33239 { (case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_try") 2>&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248 ac_cv_func_std_isinf_in_cmath=yes
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 ac_cv_func_std_isinf_in_cmath=no
33256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258 ac_cpp='$CPP $CPPFLAGS'
33259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33264 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33265 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33267 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33269 cat >>confdefs.h <<\_ACEOF
33270 #define HAVE_STD_ISINF_IN_CMATH 1
33275 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33276 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33277 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33278 echo $ECHO_N "(cached) $ECHO_C" >&6
33281 ac_cpp='$CXXCPP $CPPFLAGS'
33282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33286 cat >conftest.$ac_ext <<_ACEOF
33289 cat confdefs.h >>conftest.$ac_ext
33290 cat >>conftest.$ac_ext <<_ACEOF
33291 /* end confdefs.h. */
33292 #include <ieeefp.h>
33296 float f; finite(f);
33301 rm -f conftest.$ac_objext
33302 if { (ac_try="$ac_compile"
33303 case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308 (eval "$ac_compile") 2>conftest.er1
33310 grep -v '^ *+' conftest.er1 >conftest.err
33312 cat conftest.err >&5
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); } &&
33315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33316 { (case "(($ac_try" in
33317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318 *) ac_try_echo=$ac_try;;
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321 (eval "$ac_try") 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; } &&
33325 { ac_try='test -s conftest.$ac_objext'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; }; then
33335 ac_cv_func_finite_in_ieeefp_h=yes
33337 echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33340 ac_cv_func_finite_in_ieeefp_h=no
33343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33345 ac_cpp='$CPP $CPPFLAGS'
33346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33351 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33352 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33354 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33356 cat >>confdefs.h <<\_ACEOF
33357 #define HAVE_FINITE_IN_IEEEFP_H 1
33364 if test "$llvm_cv_platform_type" = "Unix" ; then
33367 for ac_header in stdlib.h unistd.h
33369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33376 ac_res=`eval echo '${'$as_ac_Header'}'`
33377 { echo "$as_me:$LINENO: result: $ac_res" >&5
33378 echo "${ECHO_T}$ac_res" >&6; }
33380 # Is the header compilable?
33381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33383 cat >conftest.$ac_ext <<_ACEOF
33386 cat confdefs.h >>conftest.$ac_ext
33387 cat >>conftest.$ac_ext <<_ACEOF
33388 /* end confdefs.h. */
33389 $ac_includes_default
33390 #include <$ac_header>
33392 rm -f conftest.$ac_objext
33393 if { (ac_try="$ac_compile"
33394 case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_compile") 2>conftest.er1
33401 grep -v '^ *+' conftest.er1 >conftest.err
33403 cat conftest.err >&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
33406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407 { (case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_try") 2>&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest.$ac_objext'
33417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
33426 ac_header_compiler=yes
33428 echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33431 ac_header_compiler=no
33434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33436 echo "${ECHO_T}$ac_header_compiler" >&6; }
33438 # Is the header present?
33439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33441 cat >conftest.$ac_ext <<_ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h. */
33447 #include <$ac_header>
33449 if { (ac_try="$ac_cpp conftest.$ac_ext"
33450 case "(($ac_try" in
33451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452 *) ac_try_echo=$ac_try;;
33454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33457 grep -v '^ *+' conftest.er1 >conftest.err
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } >/dev/null; then
33462 if test -s conftest.err; then
33463 ac_cpp_err=$ac_c_preproc_warn_flag
33464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33471 if test -z "$ac_cpp_err"; then
33472 ac_header_preproc=yes
33474 echo "$as_me: failed program was:" >&5
33475 sed 's/^/| /' conftest.$ac_ext >&5
33477 ac_header_preproc=no
33480 rm -f conftest.err conftest.$ac_ext
33481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33482 echo "${ECHO_T}$ac_header_preproc" >&6; }
33484 # So? What about this header?
33485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33491 ac_header_preproc=yes
33494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33507 ## ----------------------------------- ##
33508 ## Report this to llvmbugs@cs.uiuc.edu ##
33509 ## ----------------------------------- ##
33511 ) | sed "s/^/$as_me: WARNING: /" >&2
33514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33519 eval "$as_ac_Header=\$ac_header_preproc"
33521 ac_res=`eval echo '${'$as_ac_Header'}'`
33522 { echo "$as_me:$LINENO: result: $ac_res" >&5
33523 echo "${ECHO_T}$ac_res" >&6; }
33526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33527 cat >>confdefs.h <<_ACEOF
33528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33536 for ac_func in getpagesize
33538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33542 echo $ECHO_N "(cached) $ECHO_C" >&6
33544 cat >conftest.$ac_ext <<_ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33552 #define $ac_func innocuous_$ac_func
33554 /* System header to define __stub macros and hopefully few prototypes,
33555 which can conflict with char $ac_func (); below.
33556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33557 <limits.h> exists even on freestanding compilers. */
33560 # include <limits.h>
33562 # include <assert.h>
33567 /* Override any GCC internal prototype to avoid an error.
33568 Use char because int might match the return type of a GCC
33569 builtin and then its argument prototype would still apply. */
33574 /* The GNU C library defines this for functions which it implements
33575 to always fail with ENOSYS. Some functions are actually named
33576 something starting with __ and the normal name is an alias. */
33577 #if defined __stub_$ac_func || defined __stub___$ac_func
33584 return $ac_func ();
33589 rm -f conftest.$ac_objext conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_link") 2>conftest.er1
33598 grep -v '^ *+' conftest.er1 >conftest.err
33600 cat conftest.err >&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } &&
33603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33604 { (case "(($ac_try" in
33605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606 *) ac_try_echo=$ac_try;;
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609 (eval "$ac_try") 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; } &&
33613 { ac_try='test -s conftest$ac_exeext'
33614 { (case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_try") 2>&5
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; }; then
33623 eval "$as_ac_var=yes"
33625 echo "$as_me: failed program was:" >&5
33626 sed 's/^/| /' conftest.$ac_ext >&5
33628 eval "$as_ac_var=no"
33631 rm -f core conftest.err conftest.$ac_objext \
33632 conftest$ac_exeext conftest.$ac_ext
33634 ac_res=`eval echo '${'$as_ac_var'}'`
33635 { echo "$as_me:$LINENO: result: $ac_res" >&5
33636 echo "${ECHO_T}$ac_res" >&6; }
33637 if test `eval echo '${'$as_ac_var'}'` = yes; then
33638 cat >>confdefs.h <<_ACEOF
33639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33645 { echo "$as_me:$LINENO: checking for working mmap" >&5
33646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
33650 if test "$cross_compiling" = yes; then
33651 ac_cv_func_mmap_fixed_mapped=no
33653 cat >conftest.$ac_ext <<_ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h. */
33659 $ac_includes_default
33660 /* malloc might have been renamed as rpl_malloc. */
33663 /* Thanks to Mike Haertel and Jim Avera for this test.
33664 Here is a matrix of mmap possibilities:
33665 mmap private not fixed
33666 mmap private fixed at somewhere currently unmapped
33667 mmap private fixed at somewhere already mapped
33668 mmap shared not fixed
33669 mmap shared fixed at somewhere currently unmapped
33670 mmap shared fixed at somewhere already mapped
33671 For private mappings, we should verify that changes cannot be read()
33672 back from the file, nor mmap's back from the file at a different
33673 address. (There have been systems where private was not correctly
33674 implemented like the infamous i386 svr4.0, and systems where the
33675 VM page cache was not coherent with the file system buffer cache
33676 like early versions of FreeBSD and possibly contemporary NetBSD.)
33677 For shared mappings, we should conversely verify that changes get
33678 propagated back to all the places they're supposed to be.
33680 Grep wants private fixed already mapped.
33681 The main things grep needs to know about mmap are:
33682 * does it exist and is it safe to write into the mmap'd area
33683 * how to use it (BSD variants) */
33686 #include <sys/mman.h>
33688 #if !STDC_HEADERS && !HAVE_STDLIB_H
33692 /* This mess was copied from the GNU getpagesize.h. */
33693 #if !HAVE_GETPAGESIZE
33694 /* Assume that all systems that can run configure have sys/param.h. */
33695 # if !HAVE_SYS_PARAM_H
33696 # define HAVE_SYS_PARAM_H 1
33699 # ifdef _SC_PAGESIZE
33700 # define getpagesize() sysconf(_SC_PAGESIZE)
33701 # else /* no _SC_PAGESIZE */
33702 # if HAVE_SYS_PARAM_H
33703 # include <sys/param.h>
33704 # ifdef EXEC_PAGESIZE
33705 # define getpagesize() EXEC_PAGESIZE
33706 # else /* no EXEC_PAGESIZE */
33708 # define getpagesize() NBPG * CLSIZE
33711 # endif /* no CLSIZE */
33712 # else /* no NBPG */
33714 # define getpagesize() NBPC
33715 # else /* no NBPC */
33717 # define getpagesize() PAGESIZE
33718 # endif /* PAGESIZE */
33719 # endif /* no NBPC */
33720 # endif /* no NBPG */
33721 # endif /* no EXEC_PAGESIZE */
33722 # else /* no HAVE_SYS_PARAM_H */
33723 # define getpagesize() 8192 /* punt totally */
33724 # endif /* no HAVE_SYS_PARAM_H */
33725 # endif /* no _SC_PAGESIZE */
33727 #endif /* no HAVE_GETPAGESIZE */
33732 char *data, *data2, *data3;
33736 pagesize = getpagesize ();
33738 /* First, make a file with some known garbage in it. */
33739 data = (char *) malloc (pagesize);
33742 for (i = 0; i < pagesize; ++i)
33743 *(data + i) = rand ();
33745 fd = creat ("conftest.mmap", 0600);
33748 if (write (fd, data, pagesize) != pagesize)
33752 /* Next, try to mmap the file at a fixed address which already has
33753 something else allocated at it. If we can, also make sure that
33754 we see the same garbage. */
33755 fd = open ("conftest.mmap", O_RDWR);
33758 data2 = (char *) malloc (2 * pagesize);
33761 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33762 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33765 for (i = 0; i < pagesize; ++i)
33766 if (*(data + i) != *(data2 + i))
33769 /* Finally, make sure that changes to the mapped area do not
33770 percolate back to the file as seen by read(). (This is a bug on
33771 some variants of i386 svr4.0.) */
33772 for (i = 0; i < pagesize; ++i)
33773 *(data2 + i) = *(data2 + i) + 1;
33774 data3 = (char *) malloc (pagesize);
33777 if (read (fd, data3, pagesize) != pagesize)
33779 for (i = 0; i < pagesize; ++i)
33780 if (*(data + i) != *(data3 + i))
33786 rm -f conftest$ac_exeext
33787 if { (ac_try="$ac_link"
33788 case "(($ac_try" in
33789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790 *) ac_try_echo=$ac_try;;
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793 (eval "$ac_link") 2>&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33797 { (case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_try") 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 ac_cv_func_mmap_fixed_mapped=yes
33808 echo "$as_me: program exited with status $ac_status" >&5
33809 echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33812 ( exit $ac_status )
33813 ac_cv_func_mmap_fixed_mapped=no
33815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33821 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33822 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33824 cat >>confdefs.h <<\_ACEOF
33825 #define HAVE_MMAP 1
33829 rm -f conftest.mmap
33831 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33832 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33833 if test "${ac_cv_func_mmap_file+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33837 ac_cpp='$CPP $CPPFLAGS'
33838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33842 if test "$cross_compiling" = yes; then
33843 ac_cv_func_mmap_file=no
33845 cat >conftest.$ac_ext <<_ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h. */
33853 #include <sys/types.h>
33854 #include <sys/mman.h>
33862 fd = creat ("foo",0777);
33863 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33865 return (fd != (int) MAP_FAILED);
33870 rm -f conftest$ac_exeext
33871 if { (ac_try="$ac_link"
33872 case "(($ac_try" in
33873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33874 *) ac_try_echo=$ac_try;;
33876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33877 (eval "$ac_link") 2>&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33881 { (case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_try") 2>&5
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_cv_func_mmap_file=yes
33892 echo "$as_me: program exited with status $ac_status" >&5
33893 echo "$as_me: failed program was:" >&5
33894 sed 's/^/| /' conftest.$ac_ext >&5
33896 ( exit $ac_status )
33897 ac_cv_func_mmap_file=no
33899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33904 ac_cpp='$CPP $CPPFLAGS'
33905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33911 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33912 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33913 if test "$ac_cv_func_mmap_file" = yes; then
33915 cat >>confdefs.h <<\_ACEOF
33916 #define HAVE_MMAP_FILE
33923 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33924 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33925 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33928 if test "$llvm_cv_os_type" = "Interix" ; then
33929 ac_cv_need_dev_zero_for_mmap=yes
33931 ac_cv_need_dev_zero_for_mmap=no
33935 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33936 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33937 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33939 cat >>confdefs.h <<\_ACEOF
33940 #define NEED_DEV_ZERO_FOR_MMAP 1
33945 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33947 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33948 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33950 if test "$ac_cv_func_mmap_file" = "no"
33952 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33953 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33959 for ac_func in __dso_handle
33961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33965 echo $ECHO_N "(cached) $ECHO_C" >&6
33967 cat >conftest.$ac_ext <<_ACEOF
33970 cat confdefs.h >>conftest.$ac_ext
33971 cat >>conftest.$ac_ext <<_ACEOF
33972 /* end confdefs.h. */
33973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33975 #define $ac_func innocuous_$ac_func
33977 /* System header to define __stub macros and hopefully few prototypes,
33978 which can conflict with char $ac_func (); below.
33979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33980 <limits.h> exists even on freestanding compilers. */
33983 # include <limits.h>
33985 # include <assert.h>
33990 /* Override any GCC internal prototype to avoid an error.
33991 Use char because int might match the return type of a GCC
33992 builtin and then its argument prototype would still apply. */
33997 /* The GNU C library defines this for functions which it implements
33998 to always fail with ENOSYS. Some functions are actually named
33999 something starting with __ and the normal name is an alias. */
34000 #if defined __stub_$ac_func || defined __stub___$ac_func
34007 return $ac_func ();
34012 rm -f conftest.$ac_objext conftest$ac_exeext
34013 if { (ac_try="$ac_link"
34014 case "(($ac_try" in
34015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019 (eval "$ac_link") 2>conftest.er1
34021 grep -v '^ *+' conftest.er1 >conftest.err
34023 cat conftest.err >&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
34026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34027 { (case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_try") 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; } &&
34036 { ac_try='test -s conftest$ac_exeext'
34037 { (case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_try") 2>&5
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; }; then
34046 eval "$as_ac_var=yes"
34048 echo "$as_me: failed program was:" >&5
34049 sed 's/^/| /' conftest.$ac_ext >&5
34051 eval "$as_ac_var=no"
34054 rm -f core conftest.err conftest.$ac_objext \
34055 conftest$ac_exeext conftest.$ac_ext
34057 ac_res=`eval echo '${'$as_ac_var'}'`
34058 { echo "$as_me:$LINENO: result: $ac_res" >&5
34059 echo "${ECHO_T}$ac_res" >&6; }
34060 if test `eval echo '${'$as_ac_var'}'` = yes; then
34061 cat >>confdefs.h <<_ACEOF
34062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34069 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34070 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34071 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34074 llvm_cv_llvmgcc_sanity="no"
34075 if test -x "$LLVMGCC" ; then
34076 cp /dev/null conftest.c
34077 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34078 grep 'target datalayout =' > /dev/null 2>&1
34079 if test $? -eq 0 ; then
34080 llvm_cv_llvmgcc_sanity="yes"
34085 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34086 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34088 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34089 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34090 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34091 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34092 LLVMCC1=$llvmcc1path
34094 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34095 LLVMCC1PLUS=$llvmcc1pluspath
34097 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34098 LLVMGCCDIR=$llvmgccdir
34100 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34101 LLVMGCCLIBEXEC=$llvmgcclibexec
34103 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34104 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34105 LLVMGCC_VERSION=$llvmgccversion
34107 LLVMGCC_MAJVERS=$llvmgccmajvers
34109 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34110 LLVMGCC_LANGS=$llvmgcclangs
34112 { echo "$as_me:$LINENO: result: ok" >&5
34113 echo "${ECHO_T}ok" >&6; }
34116 SHLIBEXT=$libltdl_cv_shlibext
34119 # Translate the various configuration directories and other basic
34120 # information into substitutions that will end up in Makefile.config.in
34121 # that these configured values can be used by the makefiles
34122 if test "${prefix}" = "NONE" ; then
34123 prefix="/usr/local"
34125 eval LLVM_PREFIX="${prefix}";
34126 eval LLVM_BINDIR="${prefix}/bin";
34127 eval LLVM_LIBDIR="${prefix}/lib";
34128 eval LLVM_DATADIR="${prefix}/share/llvm";
34129 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34130 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34131 eval LLVM_INCLUDEDIR="${prefix}/include";
34132 eval LLVM_INFODIR="${prefix}/info";
34133 eval LLVM_MANDIR="${prefix}/man";
34134 LLVM_CONFIGTIME=`date`
34146 # Place the various directores into the config.h file as #defines so that we
34147 # can know about the installation paths within LLVM.
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_PREFIX "$LLVM_PREFIX"
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_BINDIR "$LLVM_BINDIR"
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_DATADIR "$LLVM_DATADIR"
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_INFODIR "$LLVM_INFODIR"
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_MANDIR "$LLVM_MANDIR"
34194 cat >>confdefs.h <<_ACEOF
34195 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34199 cat >>confdefs.h <<_ACEOF
34200 #define LLVM_HOSTTRIPLE "$host"
34204 # Determine which bindings to build.
34205 if test "$BINDINGS_TO_BUILD" = auto ; then
34206 BINDINGS_TO_BUILD=""
34207 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34208 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34211 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34214 # This isn't really configurey, but it avoids having to repeat the list in
34219 # Do any work necessary to ensure that bindings have what they need.
34220 binding_prereqs_failed=0
34221 for a_binding in $BINDINGS_TO_BUILD ; do
34222 case "$a_binding" in
34224 if test "x$OCAMLC" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34227 binding_prereqs_failed=1
34229 if test "x$OCAMLDEP" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34232 binding_prereqs_failed=1
34234 if test "x$OCAMLOPT" = x ; then
34235 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34236 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34238 if test "x$with_ocaml_libdir" != xauto ; then
34239 OCAML_LIBDIR=$with_ocaml_libdir
34242 ocaml_stdlib="`"$OCAMLC" -where`"
34243 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34245 # ocaml stdlib is beneath our prefix; use stdlib
34246 OCAML_LIBDIR=$ocaml_stdlib
34249 # ocaml stdlib is outside our prefix; use libdir/ocaml
34250 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34257 if test "$binding_prereqs_failed" = 1 ; then
34258 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34259 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34260 { (exit 1); exit 1; }; }
34265 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34267 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34269 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34271 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34273 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34276 ac_config_files="$ac_config_files Makefile.config"
34279 ac_config_files="$ac_config_files llvm.spec"
34282 ac_config_files="$ac_config_files docs/doxygen.cfg"
34285 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34288 ac_config_commands="$ac_config_commands setup"
34290 ac_config_commands="$ac_config_commands Makefile"
34293 ac_config_commands="$ac_config_commands Makefile.common"
34296 ac_config_commands="$ac_config_commands examples/Makefile"
34299 ac_config_commands="$ac_config_commands lib/Makefile"
34302 ac_config_commands="$ac_config_commands runtime/Makefile"
34305 ac_config_commands="$ac_config_commands test/Makefile"
34308 ac_config_commands="$ac_config_commands test/Makefile.tests"
34311 ac_config_commands="$ac_config_commands tools/Makefile"
34314 ac_config_commands="$ac_config_commands utils/Makefile"
34317 ac_config_commands="$ac_config_commands projects/Makefile"
34320 ac_config_commands="$ac_config_commands bindings/Makefile"
34323 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34327 cat >confcache <<\_ACEOF
34328 # This file is a shell script that caches the results of configure
34329 # tests run on this system so they can be shared between configure
34330 # scripts and configure runs, see configure's option --config-cache.
34331 # It is not useful on other systems. If it contains results you don't
34332 # want to keep, you may remove or edit it.
34334 # config.status only pays attention to the cache file if you give it
34335 # the --recheck option to rerun configure.
34337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34339 # following values.
34343 # The following way of writing the cache mishandles newlines in values,
34344 # but we know of no workaround that is simple, portable, and efficient.
34345 # So, we kill variables containing newlines.
34346 # Ultrix sh set writes to stderr and can't be redirected directly,
34347 # and sets the high bit in the cache file unless we assign to the vars.
34349 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34350 eval ac_val=\$$ac_var
34354 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34355 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34358 _ | IFS | as_nl) ;; #(
34359 *) $as_unset $ac_var ;;
34365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34366 *${as_nl}ac_space=\ *)
34367 # `set' does not quote correctly, so add quotes (double-quote
34368 # substitution turns \\\\ into \\, and sed turns \\ into \).
34371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34374 # `set' quotes correctly as required by POSIX, so do not add quotes.
34375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34389 if test -w "$cache_file"; then
34390 test "x$cache_file" != "x/dev/null" &&
34391 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34392 echo "$as_me: updating cache $cache_file" >&6;}
34393 cat confcache >$cache_file
34395 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34396 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34402 # Let make expand exec_prefix.
34403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34405 DEFS=-DHAVE_CONFIG_H
34409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34410 # 1. Remove the extension, and $U if already installed.
34411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34412 ac_i=`echo "$ac_i" | sed "$ac_script"`
34413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34414 # will be set to the directory where LIBOBJS objects are built.
34415 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34416 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34418 LIBOBJS=$ac_libobjs
34420 LTLIBOBJS=$ac_ltlibobjs
34423 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34424 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34425 Usually this means the macro was only invoked conditionally." >&5
34426 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." >&2;}
34428 { (exit 1); exit 1; }; }
34430 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34431 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432 Usually this means the macro was only invoked conditionally." >&5
34433 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34434 Usually this means the macro was only invoked conditionally." >&2;}
34435 { (exit 1); exit 1; }; }
34438 : ${CONFIG_STATUS=./config.status}
34439 ac_clean_files_save=$ac_clean_files
34440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34443 cat >$CONFIG_STATUS <<_ACEOF
34445 # Generated by $as_me.
34446 # Run this file to recreate the current configuration.
34447 # Compiler output produced by configure, useful for debugging
34448 # configure, is in config.log if it exists.
34451 ac_cs_recheck=false
34453 SHELL=\${CONFIG_SHELL-$SHELL}
34456 cat >>$CONFIG_STATUS <<\_ACEOF
34457 ## --------------------- ##
34458 ## M4sh Initialization. ##
34459 ## --------------------- ##
34461 # Be Bourne compatible
34462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34465 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34466 # is contrary to our usage. Disable this feature.
34467 alias -g '${1+"$@"}'='"$@"'
34468 setopt NO_GLOB_SUBST
34470 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34472 BIN_SH=xpg4; export BIN_SH # for Tru64
34473 DUALCASE=1; export DUALCASE # for MKS sh
34477 # Avoid depending upon Character Ranges.
34478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34481 as_cr_digits='0123456789'
34482 as_cr_alnum=$as_cr_Letters$as_cr_digits
34484 # The user is always right.
34485 if test "${PATH_SEPARATOR+set}" != set; then
34486 echo "#! /bin/sh" >conf$$.sh
34487 echo "exit 0" >>conf$$.sh
34489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34497 # Support unset when possible.
34498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34506 # We need space, tab and new line, in precisely that order. Quoting is
34507 # there to prevent editors from complaining about space-tab.
34508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34509 # splitting by setting IFS to empty value.)
34514 # Find who we are. Look in the path if we contain no directory separator.
34516 *[\\/]* ) as_myself=$0 ;;
34517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34518 for as_dir in $PATH
34521 test -z "$as_dir" && as_dir=.
34522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34528 # We did not find ourselves, most probably we were run as `sh COMMAND'
34529 # in which case we are not to be found in the path.
34530 if test "x$as_myself" = x; then
34533 if test ! -f "$as_myself"; then
34534 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34535 { (exit 1); exit 1; }
34538 # Work around bugs in pre-3.0 UWIN ksh.
34539 for as_var in ENV MAIL MAILPATH
34540 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34550 LC_TELEPHONE LC_TIME
34552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34553 eval $as_var=C; export $as_var
34555 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34559 # Required to use basename.
34560 if expr a : '\(a\)' >/dev/null 2>&1 &&
34561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34568 as_basename=basename
34574 # Name of the executable.
34575 as_me=`$as_basename -- "$0" ||
34576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34577 X"$0" : 'X\(//\)$' \| \
34578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34580 sed '/^.*\/\([^/][^/]*\)\/*$/{
34599 as_lineno_1=$LINENO
34600 as_lineno_2=$LINENO
34601 test "x$as_lineno_1" != "x$as_lineno_2" &&
34602 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34604 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34605 # uniformly replaced by the line number. The first 'sed' inserts a
34606 # line-number line after each line using $LINENO; the second 'sed'
34607 # does the real work. The second script uses 'N' to pair each
34608 # line-number line with the line containing $LINENO, and appends
34609 # trailing '-' during substitution so that $LINENO is not a special
34610 # case at line end.
34611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34612 # scripts with optimization help from Paolo Bonzini. Blame Lee
34613 # E. McMahon (1931-1989) for sed's syntax. :-)
34625 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34628 ' >$as_me.lineno &&
34629 chmod +x "$as_me.lineno" ||
34630 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34631 { (exit 1); exit 1; }; }
34633 # Don't try to exec as it changes $[0], causing all sort of problems
34634 # (the dirname of $[0] is not the place where we might find the
34635 # original and so on. Autoconf is especially sensitive to this).
34636 . "./$as_me.lineno"
34637 # Exit status is that of the last command.
34642 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34648 ECHO_C= ECHO_N= ECHO_T=
34649 case `echo -n x` in
34651 case `echo 'x\c'` in
34652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34659 if expr a : '\(a\)' >/dev/null 2>&1 &&
34660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34666 rm -f conf$$ conf$$.exe conf$$.file
34667 if test -d conf$$.dir; then
34668 rm -f conf$$.dir/conf$$.file
34674 if ln -s conf$$.file conf$$ 2>/dev/null; then
34676 # ... but there are two gotchas:
34677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34679 # In both cases, we have to default to `cp -p'.
34680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34682 elif ln conf$$.file conf$$ 2>/dev/null; then
34687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34688 rmdir conf$$.dir 2>/dev/null
34690 if mkdir -p . 2>/dev/null; then
34693 test -d ./-p && rmdir ./-p
34697 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34698 # systems may use methods other than mode bits to determine executability.
34699 cat >conf$$.file <<_ASEOF
34703 chmod +x conf$$.file
34704 if test -x conf$$.file >/dev/null 2>&1; then
34705 as_executable_p="test -x"
34711 # Sed expression to map a string onto a valid CPP name.
34712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34714 # Sed expression to map a string onto a valid variable name.
34715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34720 # Save the log message, to keep $[0] and so on meaningful, and to
34721 # report actual input values of CONFIG_FILES etc. instead of their
34722 # values after options handling.
34724 This file was extended by llvm $as_me 2.4svn, which was
34725 generated by GNU Autoconf 2.60. Invocation command line was
34727 CONFIG_FILES = $CONFIG_FILES
34728 CONFIG_HEADERS = $CONFIG_HEADERS
34729 CONFIG_LINKS = $CONFIG_LINKS
34730 CONFIG_COMMANDS = $CONFIG_COMMANDS
34733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34738 cat >>$CONFIG_STATUS <<_ACEOF
34739 # Files that config.status was made for.
34740 config_files="$ac_config_files"
34741 config_headers="$ac_config_headers"
34742 config_commands="$ac_config_commands"
34746 cat >>$CONFIG_STATUS <<\_ACEOF
34748 \`$as_me' instantiates files from templates according to the
34749 current configuration.
34751 Usage: $0 [OPTIONS] [FILE]...
34753 -h, --help print this help, then exit
34754 -V, --version print version number, then exit
34755 -q, --quiet do not print progress messages
34756 -d, --debug don't remove temporary files
34757 --recheck update $as_me by reconfiguring in the same conditions
34758 --file=FILE[:TEMPLATE]
34759 instantiate the configuration file FILE
34760 --header=FILE[:TEMPLATE]
34761 instantiate the configuration header FILE
34763 Configuration files:
34766 Configuration headers:
34769 Configuration commands:
34772 Report bugs to <bug-autoconf@gnu.org>."
34775 cat >>$CONFIG_STATUS <<_ACEOF
34777 llvm config.status 2.4svn
34778 configured by $0, generated by GNU Autoconf 2.60,
34779 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34781 Copyright (C) 2006 Free Software Foundation, Inc.
34782 This config.status script is free software; the Free Software Foundation
34783 gives unlimited permission to copy, distribute and modify it."
34790 cat >>$CONFIG_STATUS <<\_ACEOF
34791 # If no file are specified by the user, then we need to provide default
34792 # value. By we need to know if files were specified by the user.
34798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34810 # Handling of the options.
34811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34814 echo "$ac_cs_version"; exit ;;
34815 --debug | --debu | --deb | --de | --d | -d )
34817 --file | --fil | --fi | --f )
34819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34820 ac_need_defaults=false;;
34821 --header | --heade | --head | --hea )
34823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34824 ac_need_defaults=false;;
34826 # Conflict between --help and --header
34827 { echo "$as_me: error: ambiguous option: $1
34828 Try \`$0 --help' for more information." >&2
34829 { (exit 1); exit 1; }; };;
34830 --help | --hel | -h )
34831 echo "$ac_cs_usage"; exit ;;
34832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34836 # This is an error.
34837 -*) { echo "$as_me: error: unrecognized option: $1
34838 Try \`$0 --help' for more information." >&2
34839 { (exit 1); exit 1; }; } ;;
34841 *) ac_config_targets="$ac_config_targets $1"
34842 ac_need_defaults=false ;;
34848 ac_configure_extra_args=
34850 if $ac_cs_silent; then
34852 ac_configure_extra_args="$ac_configure_extra_args --silent"
34856 cat >>$CONFIG_STATUS <<_ACEOF
34857 if \$ac_cs_recheck; then
34858 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34859 CONFIG_SHELL=$SHELL
34860 export CONFIG_SHELL
34861 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34865 cat >>$CONFIG_STATUS <<\_ACEOF
34869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34870 ## Running $as_me. ##
34876 cat >>$CONFIG_STATUS <<_ACEOF
34880 llvm_src="${srcdir}"
34884 cat >>$CONFIG_STATUS <<\_ACEOF
34886 # Handling of arguments.
34887 for ac_config_target in $ac_config_targets
34889 case $ac_config_target in
34890 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34891 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34892 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34893 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34894 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34895 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34896 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34897 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34898 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34899 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34900 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34901 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34902 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34903 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34904 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34905 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34906 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34907 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34908 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34909 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34910 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34911 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34915 { (exit 1); exit 1; }; };;
34920 # If the user did not use the arguments to specify the items to instantiate,
34921 # then the envvar interface is used. Set only those that are not.
34922 # We use the long form for the default assignment because of an extremely
34923 # bizarre bug on SunOS 4.1.3.
34924 if $ac_need_defaults; then
34925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34930 # Have a temporary directory for convenience. Make it in the build tree
34931 # simply because there is no reason against having it here, and in addition,
34932 # creating and moving files from /tmp can sometimes cause problems.
34933 # Hook for its removal unless debugging.
34934 # Note that there is a small window in which the directory will not be cleaned:
34935 # after its creation but before its name has been assigned to `$tmp'.
34939 trap 'exit_status=$?
34940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34942 trap '{ (exit 1); exit 1; }' 1 2 13 15
34944 # Create a (secure) tmp directory for tmp files.
34947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34948 test -n "$tmp" && test -d "$tmp"
34951 tmp=./conf$$-$RANDOM
34952 (umask 077 && mkdir "$tmp")
34955 echo "$me: cannot create a temporary directory in ." >&2
34956 { (exit 1); exit 1; }
34960 # Set up the sed scripts for CONFIG_FILES section.
34963 # No need to generate the scripts if there are no CONFIG_FILES.
34964 # This happens for instance when ./config.status config.h
34965 if test -n "$CONFIG_FILES"; then
34972 for ac_last_try in false false false false false :; do
34973 cat >conf$$subs.sed <<_ACEOF
34974 SHELL!$SHELL$ac_delim
34975 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34976 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34977 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34978 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34979 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34980 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34981 exec_prefix!$exec_prefix$ac_delim
34982 prefix!$prefix$ac_delim
34983 program_transform_name!$program_transform_name$ac_delim
34984 bindir!$bindir$ac_delim
34985 sbindir!$sbindir$ac_delim
34986 libexecdir!$libexecdir$ac_delim
34987 datarootdir!$datarootdir$ac_delim
34988 datadir!$datadir$ac_delim
34989 sysconfdir!$sysconfdir$ac_delim
34990 sharedstatedir!$sharedstatedir$ac_delim
34991 localstatedir!$localstatedir$ac_delim
34992 includedir!$includedir$ac_delim
34993 oldincludedir!$oldincludedir$ac_delim
34994 docdir!$docdir$ac_delim
34995 infodir!$infodir$ac_delim
34996 htmldir!$htmldir$ac_delim
34997 dvidir!$dvidir$ac_delim
34998 pdfdir!$pdfdir$ac_delim
34999 psdir!$psdir$ac_delim
35000 libdir!$libdir$ac_delim
35001 localedir!$localedir$ac_delim
35002 mandir!$mandir$ac_delim
35003 DEFS!$DEFS$ac_delim
35004 ECHO_C!$ECHO_C$ac_delim
35005 ECHO_N!$ECHO_N$ac_delim
35006 ECHO_T!$ECHO_T$ac_delim
35007 LIBS!$LIBS$ac_delim
35008 build_alias!$build_alias$ac_delim
35009 host_alias!$host_alias$ac_delim
35010 target_alias!$target_alias$ac_delim
35011 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35012 subdirs!$subdirs$ac_delim
35013 build!$build$ac_delim
35014 build_cpu!$build_cpu$ac_delim
35015 build_vendor!$build_vendor$ac_delim
35016 build_os!$build_os$ac_delim
35017 host!$host$ac_delim
35018 host_cpu!$host_cpu$ac_delim
35019 host_vendor!$host_vendor$ac_delim
35020 host_os!$host_os$ac_delim
35021 target!$target$ac_delim
35022 target_cpu!$target_cpu$ac_delim
35023 target_vendor!$target_vendor$ac_delim
35024 target_os!$target_os$ac_delim
35026 LINKALL!$LINKALL$ac_delim
35027 NOLINKALL!$NOLINKALL$ac_delim
35028 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35029 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35030 ARCH!$ARCH$ac_delim
35031 ENDIAN!$ENDIAN$ac_delim
35033 CFLAGS!$CFLAGS$ac_delim
35034 LDFLAGS!$LDFLAGS$ac_delim
35035 CPPFLAGS!$CPPFLAGS$ac_delim
35036 ac_ct_CC!$ac_ct_CC$ac_delim
35037 EXEEXT!$EXEEXT$ac_delim
35038 OBJEXT!$OBJEXT$ac_delim
35040 GREP!$GREP$ac_delim
35041 EGREP!$EGREP$ac_delim
35042 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35043 BUILD_CC!$BUILD_CC$ac_delim
35044 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35045 CVSBUILD!$CVSBUILD$ac_delim
35046 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35047 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35048 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35049 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35050 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35052 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35053 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35054 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35055 ENABLE_PIC!$ENABLE_PIC$ac_delim
35056 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35057 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35058 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35060 CXXFLAGS!$CXXFLAGS$ac_delim
35061 ac_ct_CXX!$ac_ct_CXX$ac_delim
35063 LEXLIB!$LEXLIB$ac_delim
35064 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35065 FLEX!$FLEX$ac_delim
35066 YACC!$YACC$ac_delim
35067 YFLAGS!$YFLAGS$ac_delim
35068 BISON!$BISON$ac_delim
35070 ifGNUmake!$ifGNUmake$ac_delim
35073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35075 elif $ac_last_try; then
35076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35078 { (exit 1); exit 1; }; }
35080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35085 if test -n "$ac_eof"; then
35086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35087 ac_eof=`expr $ac_eof + 1`
35090 cat >>$CONFIG_STATUS <<_ACEOF
35091 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35096 s/^/s,@/; s/!/@,|#_!!_#|/
35099 s/'"$ac_delim"'$/,g/; t
35101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35102 ' >>$CONFIG_STATUS <conf$$subs.sed
35103 rm -f conf$$subs.sed
35104 cat >>$CONFIG_STATUS <<_ACEOF
35110 for ac_last_try in false false false false false :; do
35111 cat >conf$$subs.sed <<_ACEOF
35112 LN_S!$LN_S$ac_delim
35115 DATE!$DATE$ac_delim
35116 FIND!$FIND$ac_delim
35117 MKDIR!$MKDIR$ac_delim
35119 RANLIB!$RANLIB$ac_delim
35123 BINPWD!$BINPWD$ac_delim
35124 GRAPHVIZ!$GRAPHVIZ$ac_delim
35127 DOTTY!$DOTTY$ac_delim
35128 PERL!$PERL$ac_delim
35129 HAVE_PERL!$HAVE_PERL$ac_delim
35130 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35131 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35132 INSTALL_DATA!$INSTALL_DATA$ac_delim
35133 BZIP2!$BZIP2$ac_delim
35134 DOXYGEN!$DOXYGEN$ac_delim
35135 GROFF!$GROFF$ac_delim
35136 GZIP!$GZIP$ac_delim
35137 POD2HTML!$POD2HTML$ac_delim
35138 POD2MAN!$POD2MAN$ac_delim
35139 RUNTEST!$RUNTEST$ac_delim
35140 TCLSH!$TCLSH$ac_delim
35142 OCAMLC!$OCAMLC$ac_delim
35143 OCAMLOPT!$OCAMLOPT$ac_delim
35144 OCAMLDEP!$OCAMLDEP$ac_delim
35145 OCAMLDOC!$OCAMLDOC$ac_delim
35146 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150 LIBADD_DL!$LIBADD_DL$ac_delim
35151 ECHO!$ECHO$ac_delim
35153 STRIP!$STRIP$ac_delim
35154 CXXCPP!$CXXCPP$ac_delim
35156 FFLAGS!$FFLAGS$ac_delim
35157 ac_ct_F77!$ac_ct_F77$ac_delim
35158 LIBTOOL!$LIBTOOL$ac_delim
35159 LLVMGCC!$LLVMGCC$ac_delim
35160 LLVMGXX!$LLVMGXX$ac_delim
35161 USE_UDIS86!$USE_UDIS86$ac_delim
35162 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35163 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35164 ALLOCA!$ALLOCA$ac_delim
35165 MMAP_FILE!$MMAP_FILE$ac_delim
35166 LLVMCC1!$LLVMCC1$ac_delim
35167 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35169 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35170 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35172 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35173 SHLIBEXT!$SHLIBEXT$ac_delim
35174 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35184 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35187 LIBOBJS!$LIBOBJS$ac_delim
35188 LTLIBOBJS!$LTLIBOBJS$ac_delim
35191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35193 elif $ac_last_try; then
35194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196 { (exit 1); exit 1; }; }
35198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203 if test -n "$ac_eof"; then
35204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205 ac_eof=`expr $ac_eof + 1`
35208 cat >>$CONFIG_STATUS <<_ACEOF
35209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214 s/^/s,@/; s/!/@,|#_!!_#|/
35217 s/'"$ac_delim"'$/,g/; t
35219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220 ' >>$CONFIG_STATUS <conf$$subs.sed
35221 rm -f conf$$subs.sed
35222 cat >>$CONFIG_STATUS <<_ACEOF
35229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231 # trailing colons and then remove the whole line if VPATH becomes empty
35232 # (actually we leave an empty line to preserve line numbers).
35233 if test "x$srcdir" = x.; then
35234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35235 s/:*\$(srcdir):*/:/
35236 s/:*\${srcdir}:*/:/
35238 s/^\([^=]*=[ ]*\):*/\1/
35244 cat >>$CONFIG_STATUS <<\_ACEOF
35245 fi # test -n "$CONFIG_FILES"
35248 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35251 :[FHLC]) ac_mode=$ac_tag; continue;;
35253 case $ac_mode$ac_tag in
35255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257 { (exit 1); exit 1; }; };;
35258 :[FH]-) ac_tag=-:-;;
35259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35276 -) ac_f="$tmp/stdin";;
35277 *) # Look for the file first in the build tree, then in the source tree
35278 # (if the path is not absolute). The absolute path cannot be DOS-style,
35279 # because $ac_f cannot contain `:'.
35283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287 { (exit 1); exit 1; }; };;
35289 ac_file_inputs="$ac_file_inputs $ac_f"
35292 # Let's still pretend it is `configure' which instantiates (i.e., don't
35293 # use $as_me), people would be surprised to read:
35294 # /* config.h. Generated by config.status. */
35295 configure_input="Generated from "`IFS=:
35296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297 if test x"$ac_file" != x-; then
35298 configure_input="$ac_file. $configure_input"
35299 { echo "$as_me:$LINENO: creating $ac_file" >&5
35300 echo "$as_me: creating $ac_file" >&6;}
35304 *:-:* | *:-) cat >"$tmp/stdin";;
35309 ac_dir=`$as_dirname -- "$ac_file" ||
35310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35311 X"$ac_file" : 'X\(//\)[^/]' \| \
35312 X"$ac_file" : 'X\(//\)$' \| \
35313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35319 /^X\(\/\/\)[^/].*/{
35334 -*) as_dir=./$as_dir;;
35336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341 *) as_qdir=$as_dir;;
35343 as_dirs="'$as_qdir' $as_dirs"
35344 as_dir=`$as_dirname -- "$as_dir" ||
35345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35346 X"$as_dir" : 'X\(//\)[^/]' \| \
35347 X"$as_dir" : 'X\(//\)$' \| \
35348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35354 /^X\(\/\/\)[^/].*/{
35367 test -d "$as_dir" && break
35369 test -z "$as_dirs" || eval "mkdir $as_dirs"
35370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35372 { (exit 1); exit 1; }; }; }
35376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35379 # A ".." for each directory in $ac_dir_suffix.
35380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381 case $ac_top_builddir_sub in
35382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35386 ac_abs_top_builddir=$ac_pwd
35387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388 # for backward compatibility:
35389 ac_top_builddir=$ac_top_build_prefix
35392 .) # We are building in place.
35394 ac_top_srcdir=$ac_top_builddir_sub
35395 ac_abs_top_srcdir=$ac_pwd ;;
35396 [\\/]* | ?:[\\/]* ) # Absolute name.
35397 ac_srcdir=$srcdir$ac_dir_suffix;
35398 ac_top_srcdir=$srcdir
35399 ac_abs_top_srcdir=$srcdir ;;
35400 *) # Relative name.
35401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402 ac_top_srcdir=$ac_top_build_prefix$srcdir
35403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35420 cat >>$CONFIG_STATUS <<\_ACEOF
35421 # If the template does not know about datarootdir, expand it.
35422 # FIXME: This hack should be removed a few years after 2.60.
35423 ac_datarootdir_hack=; ac_datarootdir_seen=
35425 case `sed -n '/datarootdir/ {
35434 ' $ac_file_inputs` in
35435 *datarootdir*) ac_datarootdir_seen=yes;;
35436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441 ac_datarootdir_hack='
35442 s&@datadir@&$datadir&g
35443 s&@docdir@&$docdir&g
35444 s&@infodir@&$infodir&g
35445 s&@localedir@&$localedir&g
35446 s&@mandir@&$mandir&g
35447 s&\\\${datarootdir}&$datarootdir&g' ;;
35451 # Neutralize VPATH when `$srcdir' = `.'.
35452 # Shell code in configure.ac might set extrasub.
35453 # FIXME: do we really want to maintain this feature?
35454 cat >>$CONFIG_STATUS <<_ACEOF
35458 cat >>$CONFIG_STATUS <<\_ACEOF
35460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461 s&@configure_input@&$configure_input&;t t
35462 s&@top_builddir@&$ac_top_builddir_sub&;t t
35463 s&@srcdir@&$ac_srcdir&;t t
35464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465 s&@top_srcdir@&$ac_top_srcdir&;t t
35466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467 s&@builddir@&$ac_builddir&;t t
35468 s&@abs_builddir@&$ac_abs_builddir&;t t
35469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470 s&@INSTALL@&$ac_INSTALL&;t t
35471 $ac_datarootdir_hack
35472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined. Please make sure it is defined." >&5
35479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480 which seems to be undefined. Please make sure it is defined." >&2;}
35484 -) cat "$tmp/out"; rm -f "$tmp/out";;
35485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35494 # Transform confdefs.h into a sed script `conftest.defines', that
35495 # substitutes the proper values into config.h.in to produce config.h.
35496 rm -f conftest.defines conftest.tail
35497 # First, append a space to every undef/define line, to ease matching.
35498 echo 's/$/ /' >conftest.defines
35499 # Then, protect against being on the right side of a sed subst, or in
35500 # an unquoted here document, in config.status. If some macros were
35501 # called several times there might be several #defines for the same
35502 # symbol, which is useless. But do not sort them, since the last
35503 # AC_DEFINE must be honored.
35504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35507 # PARAMS is the parameter list in the macro definition--in most cases, it's
35508 # just an empty string.
35509 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35510 ac_dB='\\)[ (].*,\\1define\\2'
35518 s/^[ ]*#[ ]*define[ ][ ]*//
35523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525 ' >>conftest.defines
35527 # Remove the space that was appended to ease matching.
35528 # Then replace #undef with comments. This is necessary, for
35529 # example, in the case of _POSIX_SOURCE, which is predefined and required
35530 # on some systems where configure will not decide to define it.
35531 # (The regexp can be short, since the line contains either #define or #undef.)
35533 s,^[ #]*u.*,/* & */,' >>conftest.defines
35535 # Break up conftest.defines:
35536 ac_max_sed_lines=50
35538 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35542 ac_in='$ac_file_inputs'
35543 ac_out='"$tmp/out1"'
35544 ac_nxt='"$tmp/out2"'
35548 # Write a here document:
35549 cat >>$CONFIG_STATUS <<_ACEOF
35550 # First, check the format of the line:
35551 cat >"\$tmp/defines.sed" <<\\CEOF
35552 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35553 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562 grep . conftest.tail >/dev/null || break
35563 rm -f conftest.defines
35564 mv conftest.tail conftest.defines
35566 rm -f conftest.defines conftest.tail
35568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35569 cat >>$CONFIG_STATUS <<\_ACEOF
35570 if test x"$ac_file" != x-; then
35571 echo "/* $configure_input */" >"$tmp/config.h"
35572 cat "$ac_result" >>"$tmp/config.h"
35573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575 echo "$as_me: $ac_file is unchanged" >&6;}
35578 mv "$tmp/config.h" $ac_file
35581 echo "/* $configure_input */"
35587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588 echo "$as_me: executing $ac_file commands" >&6;}
35593 case $ac_file$ac_mode in
35594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35614 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35623 { (exit 0); exit 0; }
35625 chmod +x $CONFIG_STATUS
35626 ac_clean_files=$ac_clean_files_save
35629 # configure is writing to config.log, and then calls config.status.
35630 # config.status does its own redirection, appending to config.log.
35631 # Unfortunately, on DOS this fails, as config.log is still kept open
35632 # by configure, so config.status won't be able to write to it; its
35633 # output is simply discarded. So we exec the FD to /dev/null,
35634 # effectively closing config.log, so it can be properly (re)opened and
35635 # appended to by config.status. When coming back to configure, we
35636 # need to make the FD available again.
35637 if test "$no_create" != yes; then
35639 ac_config_status_args=
35640 test "$silent" = yes &&
35641 ac_config_status_args="$ac_config_status_args --quiet"
35643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646 # would make configure fail if this is the last instruction.
35647 $ac_cs_success || { (exit 1); exit 1; }
35651 # CONFIG_SUBDIRS section.
35653 if test "$no_recursion" != yes; then
35655 # Remove --cache-file and --srcdir arguments so they do not pile up.
35656 ac_sub_configure_args=
35658 eval "set x $ac_configure_args"
35662 if test -n "$ac_prev"; then
35667 -cache-file | --cache-file | --cache-fil | --cache-fi \
35668 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669 ac_prev=cache_file ;;
35670 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35674 --config-cache | -C)
35676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35688 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35692 # Always prepend --prefix to ensure using the same prefix
35693 # in subdir configurations.
35694 ac_arg="--prefix=$prefix"
35696 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35698 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35701 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35703 # Do not complain, so a configure script can configure whichever
35704 # parts of a large source tree are present.
35705 test -d "$srcdir/$ac_dir" || continue
35707 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708 echo "$as_me:$LINENO: $ac_msg" >&5
35712 -*) as_dir=./$as_dir;;
35714 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35718 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719 *) as_qdir=$as_dir;;
35721 as_dirs="'$as_qdir' $as_dirs"
35722 as_dir=`$as_dirname -- "$as_dir" ||
35723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35724 X"$as_dir" : 'X\(//\)[^/]' \| \
35725 X"$as_dir" : 'X\(//\)$' \| \
35726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35732 /^X\(\/\/\)[^/].*/{
35745 test -d "$as_dir" && break
35747 test -z "$as_dirs" || eval "mkdir $as_dirs"
35748 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35750 { (exit 1); exit 1; }; }; }
35754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35757 # A ".." for each directory in $ac_dir_suffix.
35758 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759 case $ac_top_builddir_sub in
35760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35764 ac_abs_top_builddir=$ac_pwd
35765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766 # for backward compatibility:
35767 ac_top_builddir=$ac_top_build_prefix
35770 .) # We are building in place.
35772 ac_top_srcdir=$ac_top_builddir_sub
35773 ac_abs_top_srcdir=$ac_pwd ;;
35774 [\\/]* | ?:[\\/]* ) # Absolute name.
35775 ac_srcdir=$srcdir$ac_dir_suffix;
35776 ac_top_srcdir=$srcdir
35777 ac_abs_top_srcdir=$srcdir ;;
35778 *) # Relative name.
35779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780 ac_top_srcdir=$ac_top_build_prefix$srcdir
35781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35788 # Check for guested configure; otherwise get Cygnus style configure.
35789 if test -f "$ac_srcdir/configure.gnu"; then
35790 ac_sub_configure=$ac_srcdir/configure.gnu
35791 elif test -f "$ac_srcdir/configure"; then
35792 ac_sub_configure=$ac_srcdir/configure
35793 elif test -f "$ac_srcdir/configure.in"; then
35794 # This should be Cygnus configure.
35795 ac_sub_configure=$ac_aux_dir/configure
35797 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35802 # The recursion is here.
35803 if test -n "$ac_sub_configure"; then
35804 # Make the cache file name correct relative to the subdirectory.
35805 case $cache_file in
35806 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35807 *) # Relative name.
35808 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35811 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35813 # The eval makes quoting arguments work.
35814 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35816 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35817 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818 { (exit 1); exit 1; }; }