2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.3svn.
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.3svn'
719 PACKAGE_STRING='llvm 2.3svn'
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
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
933 ac_precious_vars='build_alias
949 ac_subdirs_all='projects/sample
951 projects/llvm-stacker
957 projects/llvm-poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.3svn:";;
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-expensive-checks
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
1550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
1553 --enable-static[=PKGS] build static libraries
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 --with-extra-options Specify addtional options to compile LLVM with
1570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 --with-tclinclude directory where tcl headers are
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1576 --with-tags[=TAGS] include additional configurations [automatic]
1577 --with-udis86=<path> Use udis86 external x86 disassembler library
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1629 .) # We are building in place.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1662 llvm configure 2.3svn
1663 generated by GNU Autoconf 2.60
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by llvm $as_me 2.3svn, which was
1679 generated by GNU Autoconf 2.60. Invocation command line was
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1842 if test -n "$ac_subst_files"; then
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1860 if test -s confdefs.h; then
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1934 if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1951 # Check that the precious variables saved in the cache have kept the same
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974 echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976 echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 elif test -f "$ac_dir/install.sh"; then
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 elif test -f "$ac_dir/shtool"; then
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2080 for i in `ls ${srcdir}/projects`
2082 if test -d ${srcdir}/projects/${i} ; then
2085 sample) subdirs="$subdirs projects/sample"
2087 privbracket) subdirs="$subdirs projects/privbracket"
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 llvm-test) subdirs="$subdirs projects/llvm-test"
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 poolalloc) subdirs="$subdirs projects/poolalloc"
2105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2149 ac_save_IFS=$IFS; IFS='-'
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2241 program_prefix=${target_alias}-
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,-all_load"
2266 llvm_cv_no_link_all_option="-Wl,-noall_load"
2267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
2317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
2321 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324 if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2327 { (exit 1); exit 1; }; }
2333 LINKALL=$llvm_cv_link_all_option
2335 NOLINKALL=$llvm_cv_no_link_all_option
2338 case $llvm_cv_platform_type in
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_UNIX 1
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_WIN32 1
2363 { echo "$as_me:$LINENO: checking target architecture" >&5
2364 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2365 if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 i?86-*) llvm_cv_target_arch="x86" ;;
2370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2374 ia64-*) llvm_cv_target_arch="IA64" ;;
2375 arm-*) llvm_cv_target_arch="ARM" ;;
2376 mips-*) llvm_cv_target_arch="Mips" ;;
2377 *) llvm_cv_target_arch="Unknown" ;;
2380 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383 if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2388 ARCH=$llvm_cv_target_arch
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2435 if test -z "$ac_cv_prog_CC"; then
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2473 if test "x$ac_ct_CC" = x; then
2476 case $cross_compiling:$ac_tool_warned in
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2492 if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 if test -n "$CC"; then
2580 { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$CC" && break
2633 if test -z "$CC"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 test -n "$ac_ct_CC" && break
2677 if test "x$ac_ct_CC" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort. b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions. Remove them first so a
2768 # subsequent execution test works.
2770 for ac_file in $ac_files
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2779 if { (ac_try="$ac_link_default"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2794 for ac_file in $ac_files
2796 test -f "$ac_file" || continue
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 # We found the default executable, but exeext='' is most
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 if test "$cross_compiling" = maybe; then
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3247 if test "$GCC" = yes; then
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 ac_cv_prog_cc_c89=no
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3284 s = g (p, va_arg (v,int));
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_prog_cc_c89=$ac_arg
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 rm -f conftest.$ac_ext
3371 case "x$ac_cv_prog_cc_c89" in
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3403 if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 for ac_c_preproc_warn_flag in '' yes
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3426 # include <limits.h>
3428 # include <assert.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <ac_nonexistent.h>
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 if test -z "$ac_cpp_err"; then
3499 # Broken: success on invalid input.
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Passes both tests.
3510 rm -f conftest.err conftest.$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3545 # include <limits.h>
3547 # include <assert.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 $ac_path_GREP_found && break 3
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3720 ac_cv_path_GREP=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 $ac_path_EGREP_found && break 3
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3802 ac_cv_path_EGREP=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_header_stdc=yes
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 ac_cv_header_stdc=no
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev/null 2>&1; then
3917 ac_cv_header_stdc=no
3923 if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 # define ISLOWER(c) \
3941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
3954 || toupper (i) != TOUPPER (i))
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_stdc=no
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 eval "$as_ac_Header=no"
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4163 #if BYTE_ORDER != BIG_ENDIAN
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_bigendian=yes
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_c_bigendian=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4237 _ascii (); _ebcdic ();
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4307 /* Are we little or big endian? From Harbison&Steele. */
4311 char c[sizeof (long int)];
4314 return u.c[sizeof (long int) - 1] == 1;
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4342 echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_cv_c_bigendian=yes
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4375 if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4387 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4556 LLVM_CROSS_COMPILING=0
4560 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4571 # Check whether --enable-optimized was given.
4572 if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4578 if test ${enableval} = "no" ; then
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4586 # Check whether --enable-assertions was given.
4587 if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4593 if test ${enableval} = "yes" ; then
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4601 # Check whether --enable-expensive-checks was given.
4602 if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4608 if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611 EXPENSIVE_CHECKS=yes
4614 ENABLE_EXPENSIVE_CHECKS=
4620 # Check whether --enable-debug-runtime was given.
4621 if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4627 if test ${enableval} = "no" ; then
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4635 # Check whether --enable-jit was given.
4636 if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4642 if test ${enableval} = "no"
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4650 Sparc) TARGET_HAS_JIT=0
4652 PowerPC) TARGET_HAS_JIT=1
4654 x86_64) TARGET_HAS_JIT=1
4656 Alpha) TARGET_HAS_JIT=1
4658 IA64) TARGET_HAS_JIT=0
4660 ARM) TARGET_HAS_JIT=0
4662 Mips) TARGET_HAS_JIT=0
4669 # Check whether --enable-doxygen was given.
4670 if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4676 case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4679 no) ENABLE_DOXYGEN=0
4681 default) ENABLE_DOXYGEN=0
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4688 # Check whether --enable-threads was given.
4689 if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4695 case "$enableval" in
4696 yes) ENABLE_THREADS=1
4698 no) ENABLE_THREADS=0
4700 default) ENABLE_THREADS=1
4702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4707 cat >>confdefs.h <<_ACEOF
4708 #define ENABLE_THREADS $ENABLE_THREADS
4712 # Check whether --enable-pic was given.
4713 if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4719 case "$enableval" in
4724 default) ENABLE_PIC=0
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4731 cat >>confdefs.h <<_ACEOF
4732 #define ENABLE_PIC $ENABLE_PIC
4737 # Check whether --enable-targets was given.
4738 if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4744 case "$enableval" in
4745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
4754 ARM) TARGETS_TO_BUILD="ARM" ;;
4755 Mips) TARGETS_TO_BUILD="Mips" ;;
4756 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4757 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4758 echo "$as_me: error: Can not set target to build" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4762 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4767 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4768 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4769 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4770 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4771 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4772 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4773 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4774 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4775 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4776 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4782 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4785 # Check whether --enable-cbe-printf-a was given.
4786 if test "${enable_cbe_printf_a+set}" = set; then
4787 enableval=$enable_cbe_printf_a;
4792 case "$enableval" in
4793 yes) ENABLE_CBE_PRINTF_A=1
4795 no) ENABLE_CBE_PRINTF_A=0
4797 default) ENABLE_CBE_PRINTF_A=1
4799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4800 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4804 cat >>confdefs.h <<_ACEOF
4805 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4810 # Check whether --with-llvmgccdir was given.
4811 if test "${with_llvmgccdir+set}" = set; then
4812 withval=$with_llvmgccdir;
4818 default) WITH_LLVMGCCDIR=default ;;
4819 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4820 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4821 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4822 { (exit 1); exit 1; }; } ;;
4826 # Check whether --with-llvmgcc was given.
4827 if test "${with_llvmgcc+set}" = set; then
4828 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4834 # Check whether --with-llvmgxx was given.
4835 if test "${with_llvmgxx+set}" = set; then
4836 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4841 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4842 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4843 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4844 { (exit 1); exit 1; }; };
4847 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4848 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4849 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4850 { (exit 1); exit 1; }; };
4854 # Check whether --with-extra-options was given.
4855 if test "${with_extra_options+set}" = set; then
4856 withval=$with_extra_options;
4862 default) EXTRA_OPTIONS= ;;
4863 *) EXTRA_OPTIONS=$withval ;;
4865 EXTRA_OPTIONS=$EXTRA_OPTIONS
4868 # Check whether --enable-bindings was given.
4869 if test "${enable_bindings+set}" = set; then
4870 enableval=$enable_bindings;
4875 BINDINGS_TO_BUILD=""
4876 case "$enableval" in
4877 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4878 all ) BINDINGS_TO_BUILD="ocaml" ;;
4879 none | no) BINDINGS_TO_BUILD="" ;;
4880 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881 case "$a_binding" in
4882 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4883 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4884 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4892 # Check whether --with-ocaml-libdir was given.
4893 if test "${with_ocaml_libdir+set}" = set; then
4894 withval=$with_ocaml_libdir;
4900 auto) with_ocaml_libdir="$withval" ;;
4901 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4902 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4903 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4919 if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 # include <limits.h>
4944 # include <assert.h>
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4970 if test -z "$ac_cpp_err"; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Broken: fails on valid input.
4980 rm -f conftest.err conftest.$ac_ext
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_c_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5014 if test -z "$ac_cpp_err"; then
5015 # Broken: success on invalid input.
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 # Passes both tests.
5026 rm -f conftest.err conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5043 { echo "$as_me:$LINENO: result: $CPP" >&5
5044 echo "${ECHO_T}$CPP" >&6; }
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5089 if test -z "$ac_cpp_err"; then
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.$ac_ext
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5111 if { (ac_try="$ac_cpp conftest.$ac_ext"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 if test -z "$ac_cpp_err"; then
5134 # Broken: success on invalid input.
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 # Passes both tests.
5145 rm -f conftest.err conftest.$ac_ext
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 if test -n "$ac_tool_prefix"; then
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_prog_CC+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 if test -n "$CC"; then
5203 { echo "$as_me:$LINENO: result: $CC" >&5
5204 echo "${ECHO_T}$CC" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5211 test -n "$CC" && break
5214 if test -z "$CC"; then
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248 echo "${ECHO_T}$ac_ct_CC" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5255 test -n "$ac_ct_CC" && break
5258 if test "x$ac_ct_CC" = x; then
5261 case $cross_compiling:$ac_tool_warned in
5263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet. If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&5
5266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267 whose name does not start with the host triplet. If you think this
5268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269 ac_tool_warned=yes ;;
5276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5277 See \`config.log' for more details." >&5
5278 echo "$as_me: error: no acceptable C compiler found in \$PATH
5279 See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5282 # Provide some information about the compiler.
5283 echo "$as_me:$LINENO: checking for C compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (ac_try="$ac_compiler --version >&5"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -v >&5"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (ac_try="$ac_compiler -V >&5"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5385 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5386 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5387 GCC=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_test_CFLAGS=${CFLAGS+set}
5389 ac_save_CFLAGS=$CFLAGS
5390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5392 if test "${ac_cv_prog_cc_g+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_save_c_werror_flag=$ac_c_werror_flag
5396 ac_c_werror_flag=yes
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_c_werror_flag=$ac_save_c_werror_flag
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5587 if test "$GCC" = yes; then
5593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5595 if test "${ac_cv_prog_cc_c89+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_cv_prog_cc_c89=no
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5608 #include <sys/types.h>
5609 #include <sys/stat.h>
5610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5611 struct buf { int x; };
5612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5613 static char *e (p, i)
5619 static char *f (char * (*g) (char **, int), char **p, ...)
5624 s = g (p, va_arg (v,int));
5629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5630 function prototypes and stuff, but not '\xHH' hex character constants.
5631 These don't provoke an error unfortunately, instead are silently treated
5632 as 'x'. The following induces an error, until -std is added to get
5633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5634 array size at least. It's necessary to write '\x00'==0 to get something
5635 that's true only with -std. */
5636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5639 inside strings and character constants. */
5641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5643 int test (int i, double x);
5644 struct s1 {int (*f) (int a);};
5645 struct s2 {int (*f) (double a);};
5646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5660 CC="$ac_save_CC $ac_arg"
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_prog_cc_c89=$ac_arg
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5706 rm -f conftest.$ac_ext
5711 case "x$ac_cv_prog_cc_c89" in
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 if test -z "$CXX"; then
5737 if test -n "$CCC"; then
5740 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_CXX+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$CXX"; then
5751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 if test -n "$CXX"; then
5772 { echo "$as_me:$LINENO: result: $CXX" >&5
5773 echo "${ECHO_T}$CXX" >&6; }
5775 { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5780 test -n "$CXX" && break
5783 if test -z "$CXX"; then
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$ac_ct_CXX"; then
5795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5815 if test -n "$ac_ct_CXX"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5817 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5824 test -n "$ac_ct_CXX" && break
5827 if test "x$ac_ct_CXX" = x; then
5830 case $cross_compiling:$ac_tool_warned in
5832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet. If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&5
5835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838 ac_tool_warned=yes ;;
5846 # Provide some information about the compiler.
5847 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5848 ac_compiler=`set X $ac_compile; echo $2`
5849 { (ac_try="$ac_compiler --version >&5"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compiler --version >&5") 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }
5859 { (ac_try="$ac_compiler -v >&5"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler -v >&5") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869 { (ac_try="$ac_compiler -V >&5"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -V >&5") 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5880 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5881 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5950 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5951 GXX=`test $ac_compiler_gnu = yes && echo yes`
5952 ac_test_CXXFLAGS=${CXXFLAGS+set}
5953 ac_save_CXXFLAGS=$CXXFLAGS
5954 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5955 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5956 if test "${ac_cv_prog_cxx_g+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5960 ac_cxx_werror_flag=yes
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_prog_cxx_g=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6048 { (case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_try") 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6074 cat >conftest.$ac_ext <<_ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_prog_cxx_g=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6140 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6141 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6142 if test "$ac_test_CXXFLAGS" = set; then
6143 CXXFLAGS=$ac_save_CXXFLAGS
6144 elif test $ac_cv_prog_cxx_g = yes; then
6145 if test "$GXX" = yes; then
6151 if test "$GXX" = yes; then
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163 { echo "$as_me:$LINENO: checking " >&5
6164 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6165 if test "${ac_cv_has_flex+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 for ac_prog in flex lex
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_LEX+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$LEX"; then
6178 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_LEX="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 if test -n "$LEX"; then
6199 { echo "$as_me:$LINENO: result: $LEX" >&5
6200 echo "${ECHO_T}$LEX" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6207 test -n "$LEX" && break
6209 test -n "$LEX" || LEX=":"
6211 if test -z "$LEXLIB"
6213 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6214 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_check_lib_save_LIBS=$LIBS
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_fl_yywrap=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_cv_lib_fl_yywrap=no
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6290 if test $ac_cv_lib_fl_yywrap = yes; then
6293 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_check_lib_save_LIBS=$LIBS
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (ac_try="$ac_link"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_link") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_l_yywrap=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_lib_l_yywrap=no
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6368 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6369 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6370 if test $ac_cv_lib_l_yywrap = yes; then
6378 if test "x$LEX" != "x:"; then
6379 { echo "$as_me:$LINENO: checking lex output file root" >&5
6380 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6381 if test "${ac_cv_prog_lex_root+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 # The minimal lex program is just a single line: %%. But some broken lexes
6385 # (Solaris, I think it was) want two %% lines, so accommodate them.
6386 cat >conftest.l <<_ACEOF
6390 { (ac_try="$LEX conftest.l"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$LEX conftest.l") 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }
6400 if test -f lex.yy.c; then
6401 ac_cv_prog_lex_root=lex.yy
6402 elif test -f lexyy.c; then
6403 ac_cv_prog_lex_root=lexyy
6405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6406 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6407 { (exit 1); exit 1; }; }
6410 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6411 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6413 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6415 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6416 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 # POSIX says lex can declare yytext either as a pointer or an array; the
6421 # default is implementation-dependent. Figure out which it is, since
6422 # not all implementations provide the %pointer and %array declarations.
6423 ac_cv_prog_lex_yytext_pointer=no
6424 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6426 LIBS="$LIBS $LEXLIB"
6427 cat >conftest.$ac_ext <<_ACEOF
6428 `cat $LEX_OUTPUT_ROOT.c`
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (ac_try="$ac_link"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_link") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_prog_lex_yytext_pointer=yes
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6472 rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6475 rm -f "${LEX_OUTPUT_ROOT}.c"
6478 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6479 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6480 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define YYTEXT_POINTER 1
6491 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6492 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6493 if test "$LEX" != "flex"; then
6494 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6495 echo "$as_me: error: flex not found but required" >&2;}
6496 { (exit 1); exit 1; }; }
6502 { echo "$as_me:$LINENO: checking " >&5
6503 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6504 if test "${llvm_cv_has_bison+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 for ac_prog in 'bison -y' byacc
6509 # Extract the first word of "$ac_prog", so it can be a program name with args.
6510 set dummy $ac_prog; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_YACC+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$YACC"; then
6517 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_YACC="$ac_prog"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 YACC=$ac_cv_prog_YACC
6537 if test -n "$YACC"; then
6538 { echo "$as_me:$LINENO: result: $YACC" >&5
6539 echo "${ECHO_T}$YACC" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 test -n "$YACC" && break
6548 test -n "$YACC" || YACC="yacc"
6551 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6552 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6553 if test "$YACC" != "bison -y"; then
6555 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6556 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6562 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6564 if test "${lt_cv_path_NM+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 if test -n "$NM"; then
6568 # Let the user override the test.
6571 lt_nm_to_check="${ac_tool_prefix}nm"
6572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6573 lt_nm_to_check="$lt_nm_to_check nm"
6575 for lt_tmp_nm in $lt_nm_to_check; do
6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6579 test -z "$ac_dir" && ac_dir=.
6580 tmp_nm="$ac_dir/$lt_tmp_nm"
6581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6582 # Check to see if the nm accepts a BSD-compat flag.
6583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6584 # nm: unknown option "B" ignored
6585 # Tru64's nm complains that /dev/null is an invalid object file
6586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6587 */dev/null* | *'Invalid file or object type'*)
6588 lt_cv_path_NM="$tmp_nm -B"
6592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6594 lt_cv_path_NM="$tmp_nm -p"
6598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599 continue # so that we can try to find one that supports BSD flags
6608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6611 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6612 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617 { echo "$as_me:$LINENO: checking for GNU make" >&5
6618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6619 if test "${llvm_cv_gnu_make_command+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 llvm_cv_gnu_make_command=''
6623 for a in "$MAKE" make gmake gnumake ; do
6624 if test -z "$a" ; then continue ; fi ;
6625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6627 llvm_cv_gnu_make_command=$a ;
6632 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6639 echo "${ECHO_T}\"Not found\"" >&6; };
6643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6646 if test "$LN_S" = "ln -s"; then
6647 { echo "$as_me:$LINENO: result: yes" >&5
6648 echo "${ECHO_T}yes" >&6; }
6650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6651 echo "${ECHO_T}no, using $LN_S" >&6; }
6654 # Extract the first word of "cmp", so it can be a program name with args.
6655 set dummy cmp; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_CMP+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686 if test -n "$CMP"; then
6687 { echo "$as_me:$LINENO: result: $CMP" >&5
6688 echo "${ECHO_T}$CMP" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "cp", so it can be a program name with args.
6696 set dummy cp; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_CP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727 if test -n "$CP"; then
6728 { echo "$as_me:$LINENO: result: $CP" >&5
6729 echo "${ECHO_T}$CP" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 # Extract the first word of "date", so it can be a program name with args.
6737 set dummy date; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_DATE+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6767 DATE=$ac_cv_path_DATE
6768 if test -n "$DATE"; then
6769 { echo "$as_me:$LINENO: result: $DATE" >&5
6770 echo "${ECHO_T}$DATE" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 # Extract the first word of "find", so it can be a program name with args.
6778 set dummy find; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_FIND+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6808 FIND=$ac_cv_path_FIND
6809 if test -n "$FIND"; then
6810 { echo "$as_me:$LINENO: result: $FIND" >&5
6811 echo "${ECHO_T}$FIND" >&6; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6818 # Extract the first word of "grep", so it can be a program name with args.
6819 set dummy grep; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_GREP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6849 GREP=$ac_cv_path_GREP
6850 if test -n "$GREP"; then
6851 { echo "$as_me:$LINENO: result: $GREP" >&5
6852 echo "${ECHO_T}$GREP" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 # Extract the first word of "mkdir", so it can be a program name with args.
6860 set dummy mkdir; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_MKDIR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6890 MKDIR=$ac_cv_path_MKDIR
6891 if test -n "$MKDIR"; then
6892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6893 echo "${ECHO_T}$MKDIR" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6900 # Extract the first word of "mv", so it can be a program name with args.
6901 set dummy mv; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_MV+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932 if test -n "$MV"; then
6933 { echo "$as_me:$LINENO: result: $MV" >&5
6934 echo "${ECHO_T}$MV" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_RANLIB+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test -n "$RANLIB"; then
6950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 RANLIB=$ac_cv_prog_RANLIB
6970 if test -n "$RANLIB"; then
6971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972 echo "${ECHO_T}$RANLIB" >&6; }
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6980 if test -z "$ac_cv_prog_RANLIB"; then
6981 ac_ct_RANLIB=$RANLIB
6982 # Extract the first word of "ranlib", so it can be a program name with args.
6983 set dummy ranlib; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test -n "$ac_ct_RANLIB"; then
6990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_RANLIB="ranlib"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010 if test -n "$ac_ct_RANLIB"; then
7011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7018 if test "x$ac_ct_RANLIB" = x; then
7021 case $cross_compiling:$ac_tool_warned in
7023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet. If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&5
7026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet. If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029 ac_tool_warned=yes ;;
7031 RANLIB=$ac_ct_RANLIB
7034 RANLIB="$ac_cv_prog_RANLIB"
7037 # Extract the first word of "rm", so it can be a program name with args.
7038 set dummy rm; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_RM+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069 if test -n "$RM"; then
7070 { echo "$as_me:$LINENO: result: $RM" >&5
7071 echo "${ECHO_T}$RM" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "sed", so it can be a program name with args.
7079 set dummy sed; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_SED+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110 if test -n "$SED"; then
7111 { echo "$as_me:$LINENO: result: $SED" >&5
7112 echo "${ECHO_T}$SED" >&6; }
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7119 # Extract the first word of "tar", so it can be a program name with args.
7120 set dummy tar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_TAR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151 if test -n "$TAR"; then
7152 { echo "$as_me:$LINENO: result: $TAR" >&5
7153 echo "${ECHO_T}$TAR" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "pwd", so it can be a program name with args.
7161 set dummy pwd; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_BINPWD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7191 BINPWD=$ac_cv_path_BINPWD
7192 if test -n "$BINPWD"; then
7193 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7194 echo "${ECHO_T}$BINPWD" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "Graphviz", so it can be a program name with args.
7203 set dummy Graphviz; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7233 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7234 if test -n "$GRAPHVIZ"; then
7235 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7236 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_GRAPHVIZ 1
7249 if test "$llvm_cv_os_type" = "MingW" ; then
7250 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 cat >>confdefs.h <<_ACEOF
7254 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7258 # Extract the first word of "dot", so it can be a program name with args.
7259 set dummy dot; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_DOT+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290 if test -n "$DOT"; then
7291 { echo "$as_me:$LINENO: result: $DOT" >&5
7292 echo "${ECHO_T}$DOT" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7299 if test "$DOT" != "echo dot" ; then
7301 cat >>confdefs.h <<\_ACEOF
7305 if test "$llvm_cv_os_type" = "MingW" ; then
7306 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7309 cat >>confdefs.h <<_ACEOF
7310 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7314 for ac_prog in gv gsview32
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_GV+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 if test -n "$GV"; then
7348 { echo "$as_me:$LINENO: result: $GV" >&5
7349 echo "${ECHO_T}$GV" >&6; }
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7356 test -n "$GV" && break
7358 test -n "$GV" || GV="echo gv"
7360 if test "$GV" != "echo gv" ; then
7362 cat >>confdefs.h <<\_ACEOF
7366 if test "$llvm_cv_os_type" = "MingW" ; then
7367 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370 cat >>confdefs.h <<_ACEOF
7371 #define LLVM_PATH_GV "$GV${EXEEXT}"
7375 # Extract the first word of "dotty", so it can be a program name with args.
7376 set dummy dotty; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_DOTTY+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7406 DOTTY=$ac_cv_path_DOTTY
7407 if test -n "$DOTTY"; then
7408 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7409 echo "${ECHO_T}$DOTTY" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7416 if test "$DOTTY" != "echo dotty" ; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_DOTTY 1
7422 if test "$llvm_cv_os_type" = "MingW" ; then
7423 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 cat >>confdefs.h <<_ACEOF
7427 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7433 # Extract the first word of "perl", so it can be a program name with args.
7434 set dummy perl; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_PERL+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7464 PERL=$ac_cv_path_PERL
7465 if test -n "$PERL"; then
7466 { echo "$as_me:$LINENO: result: $PERL" >&5
7467 echo "${ECHO_T}$PERL" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 if test "$PERL" != "none"; then
7475 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7476 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7477 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7478 { echo "$as_me:$LINENO: result: yes" >&5
7479 echo "${ECHO_T}yes" >&6; }
7482 { echo "$as_me:$LINENO: result: not found" >&5
7483 echo "${ECHO_T}not found" >&6; }
7488 if test x"$PERL" = xnone; then
7491 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7492 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7493 { (exit 1); exit 1; }; }
7499 # Find a good install program. We prefer a C program (faster),
7500 # so one script is as good as another. But avoid the broken or
7501 # incompatible versions:
7502 # SysV /etc/install, /usr/sbin/install
7503 # SunOS /usr/etc/install
7504 # IRIX /sbin/install
7506 # AmigaOS /C/install, which installs bootblocks on floppy discs
7507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7510 # OS/2's system install, which has a completely different semantic
7511 # ./install, which can be erroneously created by make from ./install.sh.
7512 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7513 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7514 if test -z "$INSTALL"; then
7515 if test "${ac_cv_path_install+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 # Account for people who put trailing slashes in PATH elements.
7525 ./ | .// | /cC/* | \
7526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7530 # OSF1 and SCO ODT 3.0 have their own names for install.
7531 # Don't use installbsd from OSF since it installs stuff as root
7533 for ac_prog in ginstall scoinst install; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7536 if test $ac_prog = install &&
7537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7538 # AIX install. It has an incompatible calling convention.
7540 elif test $ac_prog = install &&
7541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7542 # program-specific install script used by HP pwplus--don't use.
7545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL=$ac_cv_path_install
7561 # As a last resort, use the slow shell script. Don't cache a
7562 # value for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the value is a relative name.
7565 INSTALL=$ac_install_sh
7568 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7569 echo "${ECHO_T}$INSTALL" >&6; }
7571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572 # It thinks the first close brace ends the variable substitution.
7573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7580 # Extract the first word of "bzip2", so it can be a program name with args.
7581 set dummy bzip2; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_BZIP2+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7611 BZIP2=$ac_cv_path_BZIP2
7612 if test -n "$BZIP2"; then
7613 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7614 echo "${ECHO_T}$BZIP2" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 # Extract the first word of "doxygen", so it can be a program name with args.
7622 set dummy doxygen; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7652 DOXYGEN=$ac_cv_path_DOXYGEN
7653 if test -n "$DOXYGEN"; then
7654 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7655 echo "${ECHO_T}$DOXYGEN" >&6; }
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7662 # Extract the first word of "groff", so it can be a program name with args.
7663 set dummy groff; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_GROFF+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7693 GROFF=$ac_cv_path_GROFF
7694 if test -n "$GROFF"; then
7695 { echo "$as_me:$LINENO: result: $GROFF" >&5
7696 echo "${ECHO_T}$GROFF" >&6; }
7698 { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7703 # Extract the first word of "gzip", so it can be a program name with args.
7704 set dummy gzip; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_path_GZIP+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7734 GZIP=$ac_cv_path_GZIP
7735 if test -n "$GZIP"; then
7736 { echo "$as_me:$LINENO: result: $GZIP" >&5
7737 echo "${ECHO_T}$GZIP" >&6; }
7739 { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7744 # Extract the first word of "pod2html", so it can be a program name with args.
7745 set dummy pod2html; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_POD2HTML+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7775 POD2HTML=$ac_cv_path_POD2HTML
7776 if test -n "$POD2HTML"; then
7777 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7778 echo "${ECHO_T}$POD2HTML" >&6; }
7780 { echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6; }
7785 # Extract the first word of "pod2man", so it can be a program name with args.
7786 set dummy pod2man; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_path_POD2MAN+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7816 POD2MAN=$ac_cv_path_POD2MAN
7817 if test -n "$POD2MAN"; then
7818 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7819 echo "${ECHO_T}$POD2MAN" >&6; }
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 # Extract the first word of "runtest", so it can be a program name with args.
7827 set dummy runtest; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_RUNTEST+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7857 RUNTEST=$ac_cv_path_RUNTEST
7858 if test -n "$RUNTEST"; then
7859 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7860 echo "${ECHO_T}$RUNTEST" >&6; }
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7869 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7870 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7872 # Check whether --with-tclinclude was given.
7873 if test "${with_tclinclude+set}" = set; then
7874 withval=$with_tclinclude; with_tclinclude=${withval}
7879 if test "${ac_cv_path_tclsh+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 if test x"${with_tclinclude}" != x ; then
7884 if test -f ${with_tclinclude}/tclsh ; then
7885 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7886 elif test -f ${with_tclinclude}/src/tclsh ; then
7887 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7889 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7890 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7891 { (exit 1); exit 1; }; }
7895 if test x"${ac_cv_path_tclsh}" = x ; then
7896 { echo "$as_me:$LINENO: result: none" >&5
7897 echo "${ECHO_T}none" >&6; }
7898 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
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_TCLSH+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 TCLSH=$ac_cv_path_TCLSH
7931 if test -n "$TCLSH"; then
7932 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7933 echo "${ECHO_T}$TCLSH" >&6; }
7935 { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7940 test -n "$TCLSH" && break
7943 if test x"${TCLSH}" = x ; then
7944 ac_cv_path_tclsh='';
7946 ac_cv_path_tclsh="${TCLSH}";
7949 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7950 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7951 TCLSH="${ac_cv_path_tclsh}"
7957 # Extract the first word of "zip", so it can be a program name with args.
7958 set dummy zip; ac_word=$2
7959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7961 if test "${ac_cv_path_ZIP+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7989 if test -n "$ZIP"; then
7990 { echo "$as_me:$LINENO: result: $ZIP" >&5
7991 echo "${ECHO_T}$ZIP" >&6; }
7993 { echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6; }
7998 # Extract the first word of "ocamlc", so it can be a program name with args.
7999 set dummy ocamlc; ac_word=$2
8000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8002 if test "${ac_cv_path_OCAMLC+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
8029 OCAMLC=$ac_cv_path_OCAMLC
8030 if test -n "$OCAMLC"; then
8031 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8032 echo "${ECHO_T}$OCAMLC" >&6; }
8034 { echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6; }
8039 # Extract the first word of "ocamlopt", so it can be a program name with args.
8040 set dummy ocamlopt; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8070 OCAMLOPT=$ac_cv_path_OCAMLOPT
8071 if test -n "$OCAMLOPT"; then
8072 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8073 echo "${ECHO_T}$OCAMLOPT" >&6; }
8075 { echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6; }
8080 # Extract the first word of "ocamldep", so it can be a program name with args.
8081 set dummy ocamldep; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8111 OCAMLDEP=$ac_cv_path_OCAMLDEP
8112 if test -n "$OCAMLDEP"; then
8113 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8114 echo "${ECHO_T}$OCAMLDEP" >&6; }
8116 { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8122 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8123 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8124 if test "${llvm_cv_link_use_r+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 ac_cpp='$CPP $CPPFLAGS'
8129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134 CFLAGS="$CFLAGS -Wl,-R."
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8145 int main() { return 0; }
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (ac_try="$ac_link"
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_link") 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 llvm_cv_link_use_r=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 llvm_cv_link_use_r=no
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8196 ac_cpp='$CPP $CPPFLAGS'
8197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8204 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8205 if test "$llvm_cv_link_use_r" = yes ; then
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_LINK_R 1
8216 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8218 if test "${ac_cv_c_const+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8231 /* FIXME: Include the comments suggested by Paul. */
8233 /* Ultrix mips cc rejects this. */
8234 typedef int charset[2];
8236 /* SunOS 4.1.1 cc rejects this. */
8237 char const *const *ccp;
8239 /* NEC SVR4.0.2 mips cc rejects this. */
8240 struct point {int x, y;};
8241 static struct point const zero = {0,0};
8242 /* AIX XL C 1.02.0.0 rejects this.
8243 It does not let you subtract one const X* pointer from another in
8244 an arm of an if-expression whose if-part is not a constant
8246 const char *g = "string";
8247 ccp = &g + (g ? g-g : 0);
8248 /* HPUX 7.0 cc rejects these. */
8251 ccp = (char const *const *) p;
8252 { /* SCO 3.2v4 cc rejects this. */
8254 char const *s = 0 ? (char *) 0 : (char const *) 0;
8259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8261 const int *foo = &x[0];
8264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8265 typedef const int *iptr;
8269 { /* AIX XL C 1.02.0.0 rejects this saying
8270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8271 struct s { int j; const int *ap[3]; };
8272 struct s *b; b->j = 5;
8274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8278 return !x[0] && !zero.x;
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8330 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8331 if test $ac_cv_c_const = no; then
8333 cat >>confdefs.h <<\_ACEOF
8345 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8346 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8347 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8348 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <sys/types.h>
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest.$ac_objext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 eval "$as_ac_Header=yes"
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 eval "$as_ac_Header=no"
8412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 ac_res=`eval echo '${'$as_ac_Header'}'`
8415 { echo "$as_me:$LINENO: result: $ac_res" >&5
8416 echo "${ECHO_T}$ac_res" >&6; }
8417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8418 cat >>confdefs.h <<_ACEOF
8419 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8422 ac_header_dirent=$ac_hdr; break
8426 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8427 if test $ac_header_dirent = dirent.h; then
8428 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8429 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8430 if test "${ac_cv_search_opendir+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_func_search_save_LIBS=$LIBS
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8441 /* Override any GCC internal prototype to avoid an error.
8442 Use char because int might match the return type of a GCC
8443 builtin and then its argument prototype would still apply. */
8456 for ac_lib in '' dir; do
8457 if test -z "$ac_lib"; then
8458 ac_res="none required"
8461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (ac_try="$ac_link"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_link") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8478 { (case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_try") 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_try") 2>&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_search_opendir=$ac_res
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8505 rm -f core conftest.err conftest.$ac_objext \
8507 if test "${ac_cv_search_opendir+set}" = set; then
8511 if test "${ac_cv_search_opendir+set}" = set; then
8514 ac_cv_search_opendir=no
8517 LIBS=$ac_func_search_save_LIBS
8519 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8520 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8521 ac_res=$ac_cv_search_opendir
8522 if test "$ac_res" != no; then
8523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8528 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8530 if test "${ac_cv_search_opendir+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 ac_func_search_save_LIBS=$LIBS
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8556 for ac_lib in '' x; do
8557 if test -z "$ac_lib"; then
8558 ac_res="none required"
8561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (ac_try="$ac_link"
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_link") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8578 { (case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_search_opendir=$ac_res
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8605 rm -f core conftest.err conftest.$ac_objext \
8607 if test "${ac_cv_search_opendir+set}" = set; then
8611 if test "${ac_cv_search_opendir+set}" = set; then
8614 ac_cv_search_opendir=no
8617 LIBS=$ac_func_search_save_LIBS
8619 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8620 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8621 ac_res=$ac_cv_search_opendir
8622 if test "$ac_res" != no; then
8623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8630 for ac_header in dlfcn.h
8632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 ac_res=`eval echo '${'$as_ac_Header'}'`
8640 { echo "$as_me:$LINENO: result: $ac_res" >&5
8641 echo "${ECHO_T}$ac_res" >&6; }
8643 # Is the header compilable?
8644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #include <$ac_header>
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_try") 2>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 ac_header_compiler=yes
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 ac_header_compiler=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8699 echo "${ECHO_T}$ac_header_compiler" >&6; }
8701 # Is the header present?
8702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 #include <$ac_header>
8712 if { (ac_try="$ac_cpp conftest.$ac_ext"
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } >/dev/null; then
8725 if test -s conftest.err; then
8726 ac_cpp_err=$ac_c_preproc_warn_flag
8727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8734 if test -z "$ac_cpp_err"; then
8735 ac_header_preproc=yes
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_header_preproc=no
8743 rm -f conftest.err conftest.$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8745 echo "${ECHO_T}$ac_header_preproc" >&6; }
8747 # So? What about this header?
8748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8754 ac_header_preproc=yes
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8770 ## ----------------------------------- ##
8771 ## Report this to llvmbugs@cs.uiuc.edu ##
8772 ## ----------------------------------- ##
8774 ) | sed "s/^/$as_me: WARNING: /" >&2
8777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 eval "$as_ac_Header=\$ac_header_preproc"
8784 ac_res=`eval echo '${'$as_ac_Header'}'`
8785 { echo "$as_me:$LINENO: result: $ac_res" >&5
8786 echo "${ECHO_T}$ac_res" >&6; }
8789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8790 cat >>confdefs.h <<_ACEOF
8791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 # Check whether --enable-ltdl-install was given.
8799 if test "${enable_ltdl_install+set}" = set; then
8800 enableval=$enable_ltdl_install;
8806 if test x"${enable_ltdl_install-no}" != xno; then
8808 INSTALL_LTDL_FALSE='#'
8810 INSTALL_LTDL_TRUE='#'
8816 if test x"${enable_ltdl_convenience-no}" != xno; then
8817 CONVENIENCE_LTDL_TRUE=
8818 CONVENIENCE_LTDL_FALSE='#'
8820 CONVENIENCE_LTDL_TRUE='#'
8821 CONVENIENCE_LTDL_FALSE=
8825 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8826 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8828 libname_spec='lib$name'
8836 shlibpath_overrides_runpath=unknown
8838 dynamic_linker="$host_os ld.so"
8839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8840 if test "$GCC" = yes; then
8841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8842 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8843 # if the path contains ";" then we assume it to be the separator
8844 # otherwise default to the standard path separator (i.e. ":") - it is
8845 # assumed that no part of a normal pathname contains ";" but that should
8846 # okay in the real world where ";" in dirpaths is itself problematic.
8847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8852 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8854 need_lib_prefix=unknown
8855 hardcode_into_libs=no
8857 # when you set need_version to no, make sure it does not cause -set_version
8858 # flags to be left without arguments
8859 need_version=unknown
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8865 shlibpath_var=LIBPATH
8867 # AIX 3 has no versioning support, so we append a major version to the name.
8868 soname_spec='${libname}${release}${shared_ext}$major'
8875 hardcode_into_libs=yes
8876 if test "$host_cpu" = ia64; then
8877 # AIX 5 supports IA64
8878 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8879 shlibpath_var=LD_LIBRARY_PATH
8881 # With GCC up to 2.95.x, collect2 would create an import file
8882 # for dependence libraries. The import file would start with
8883 # the line `#! .'. This would cause the generated library to
8884 # depend on `.', always an invalid library. This was fixed in
8885 # development snapshots of GCC prior to 3.0.
8887 aix4 | aix4.[01] | aix4.[01].*)
8888 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8890 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8897 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8898 # soname into executable. Probably we can add versioning support to
8899 # collect2, so additional links can be useful in future.
8900 if test "$aix_use_runtimelinking" = yes; then
8901 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8902 # instead of lib<name>.a to let people know that these are not
8903 # typical AIX shared libraries.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 # We preserve .a as extension for shared libraries through AIX4.2
8907 # and later when we are not doing run time linking.
8908 library_names_spec='${libname}${release}.a $libname.a'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LIBPATH
8916 library_names_spec='$libname.ixlibrary $libname.a'
8917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8918 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'
8922 library_names_spec='${libname}${shared_ext}'
8923 dynamic_linker="$host_os ld.so"
8924 shlibpath_var=LIBRARY_PATH
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8936 # the default ld.so.conf also contains /usr/contrib/lib and
8937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8938 # libtool to hard-code these into programs
8941 cygwin* | mingw* | pw32*)
8942 version_type=windows
8947 case $GCC,$host_os in
8948 yes,cygwin* | yes,mingw* | yes,pw32*)
8949 library_names_spec='$libname.dll.a'
8950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8951 postinstall_cmds='base_file=`basename \${file}`~
8952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8953 dldir=$destdir/`dirname \$dlpath`~
8954 test -d \$dldir || mkdir -p \$dldir~
8955 $install_prog $dir/$dlname \$dldir/$dlname~
8956 chmod a+x \$dldir/$dlname'
8957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8958 dlpath=$dir/\$dldll~
8960 shlibpath_overrides_runpath=yes
8964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8969 # MinGW DLLs use traditional 'lib' prefix
8970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8973 # It is most probably a Windows format PATH printed by
8974 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8975 # path with ; separators, and with drive letters. We can handle the
8976 # drive letters (cygwin fileutils understands them), so leave them,
8977 # especially as we might pass files found there to a mingw objdump,
8978 # which wouldn't understand a cygwinified path. Ahh.
8979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8985 # pw32 DLLs use 'pw' prefix rather than 'lib'
8986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8995 dynamic_linker='Win32 ld.exe'
8996 # FIXME: first we should search . and the directory the executable is in
9000 darwin* | rhapsody*)
9001 dynamic_linker="$host_os dyld"
9005 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9006 soname_spec='${libname}${release}${major}$shared_ext'
9007 shlibpath_overrides_runpath=yes
9008 shlibpath_var=DYLD_LIBRARY_PATH
9009 shrext_cmds='.dylib'
9010 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9011 if test "$GCC" = yes; then
9012 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"`
9014 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=no
9040 hardcode_into_libs=yes
9041 dynamic_linker='GNU ld.so'
9044 freebsd* | dragonfly*)
9045 # DragonFly does not have aout. When/if they implement a new
9046 # versioning mechanism, adjust this.
9047 if test -x /usr/bin/objformat; then
9048 objformat=`/usr/bin/objformat`
9051 freebsd[123]*) objformat=aout ;;
9055 version_type=freebsd-$objformat
9056 case $version_type in
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9067 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=yes
9072 freebsd3.[01]* | freebsdelf3.[01]*)
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9078 shlibpath_overrides_runpath=no
9079 hardcode_into_libs=yes
9081 freebsd*) # from 4.6 on
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 hardcode_into_libs=yes
9098 hpux9* | hpux10* | hpux11*)
9099 # Give a soname corresponding to the major version so that dld.sl refuses to
9100 # link against other versions.
9107 hardcode_into_libs=yes
9108 dynamic_linker="$host_os dld.so"
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 if test "X$HPUX_IA64_MODE" = X32; then
9114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9122 hardcode_into_libs=yes
9123 dynamic_linker="$host_os dld.sl"
9124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9133 dynamic_linker="$host_os dld.sl"
9134 shlibpath_var=SHLIB_PATH
9135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9140 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9141 postinstall_cmds='chmod 555 $lib'
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 hardcode_into_libs=yes
9156 irix5* | irix6* | nonstopux*)
9158 nonstopux*) version_type=nonstopux ;;
9160 if test "$lt_cv_prog_gnu_ld" = yes; then
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9171 irix5* | nonstopux*)
9175 case $LD in # libtool.m4 will add one of these switches to LD
9176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9177 libsuff= shlibsuff= libmagic=32-bit;;
9178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9179 libsuff=32 shlibsuff=N32 libmagic=N32;;
9180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9182 *) libsuff= shlibsuff= libmagic=never-match;;
9186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9187 shlibpath_overrides_runpath=no
9188 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9189 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9190 hardcode_into_libs=yes
9193 # No shared lib support for Linux oldld, aout, or coff.
9194 linux*oldld* | linux*aout* | linux*coff*)
9198 # This must be Linux ELF.
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=no
9208 # This implies no fast_install, which is unacceptable.
9209 # Some rework will be needed to allow for fast_install
9210 # before this can be enabled.
9211 hardcode_into_libs=yes
9213 # Append ld.so.conf contents to the search path
9214 if test -f /etc/ld.so.conf; then
9215 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' ' '`
9216 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9219 # We used to test for /lib/ld.so.1 and disable shared libraries on
9220 # powerpc, because MkLinux only supported shared libraries with the
9221 # GNU dynamic linker. Since this was broken with cross compilers,
9222 # most powerpc-linux boxes support dynamic linking these days and
9223 # people can always --disable-shared, the test was removed, and we
9224 # assume the GNU/Linux dynamic linker is in use.
9225 dynamic_linker='GNU/Linux ld.so'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=no
9236 hardcode_into_libs=yes
9237 dynamic_linker='GNU ld.so'
9244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9247 dynamic_linker='NetBSD (a.out) ld.so'
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 dynamic_linker='NetBSD ld.elf_so'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 shlibpath_overrides_runpath=yes
9255 hardcode_into_libs=yes
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9277 sys_lib_dlsearch_path_spec="/usr/lib"
9279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9282 *) need_version=no ;;
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9289 openbsd2.[89] | openbsd2.[89].*)
9290 shlibpath_overrides_runpath=no
9293 shlibpath_overrides_runpath=yes
9297 shlibpath_overrides_runpath=yes
9302 libname_spec='$name'
9305 library_names_spec='$libname${shared_ext} $libname.a'
9306 dynamic_linker='OS/2 ld.exe'
9307 shlibpath_var=LIBPATH
9310 osf3* | osf4* | osf5*)
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 hardcode_into_libs=yes
9330 # ldd complains unless libraries are executable
9331 postinstall_cmds='chmod +x $lib'
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes
9340 if test "$with_gnu_ld" = yes; then
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 case $host_vendor in
9353 shlibpath_overrides_runpath=no
9355 export_dynamic_flag_spec='${wl}-Blargedynsym'
9356 runpath_var=LD_RUN_PATH
9364 shlibpath_overrides_runpath=no
9365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9371 if test -d /usr/nec ;then
9373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9374 soname_spec='$libname${shared_ext}.$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9380 version_type=freebsd-elf
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 hardcode_into_libs=yes
9387 if test "$with_gnu_ld" = yes; then
9388 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9389 shlibpath_overrides_runpath=no
9391 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9392 shlibpath_overrides_runpath=yes
9395 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9399 sys_lib_dlsearch_path_spec='/usr/lib'
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9413 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9414 echo "${ECHO_T}$dynamic_linker" >&6; }
9415 test "$dynamic_linker" = no && can_build_shared=no
9417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9418 if test "$GCC" = yes; then
9419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9423 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9424 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9425 if test "${libltdl_cv_shlibext+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 eval libltdl_cv_shlibext=$shrext_cmds
9433 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9434 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9435 if test -n "$libltdl_cv_shlibext"; then
9437 cat >>confdefs.h <<_ACEOF
9438 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9444 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9445 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9446 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 libltdl_cv_shlibpath_var="$shlibpath_var"
9451 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9452 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9453 if test -n "$libltdl_cv_shlibpath_var"; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9462 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9463 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9464 if test "${libltdl_cv_sys_search_path+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9469 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9470 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9471 if test -n "$libltdl_cv_sys_search_path"; then
9473 for dir in $libltdl_cv_sys_search_path; do
9474 if test -z "$sys_search_path"; then
9475 sys_search_path="$dir"
9477 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9481 cat >>confdefs.h <<_ACEOF
9482 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9487 { echo "$as_me:$LINENO: checking for objdir" >&5
9488 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9489 if test "${libltdl_cv_objdir+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 libltdl_cv_objdir="$objdir"
9493 if test -n "$objdir"; then
9496 rm -f .libs 2>/dev/null
9497 mkdir .libs 2>/dev/null
9498 if test -d .libs; then
9499 libltdl_cv_objdir=.libs
9501 # MS-DOS does not allow filenames that begin with a dot.
9502 libltdl_cv_objdir=_libs
9504 rmdir .libs 2>/dev/null
9508 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9509 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9511 cat >>confdefs.h <<_ACEOF
9512 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9520 # Check for command to grab the raw symbol name followed by C symbol from nm.
9521 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9522 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9523 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 # These are sane defaults that work on at least a few old systems.
9528 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9530 # Character class describing NM global symbol codes.
9531 symcode='[BCDEGRST]'
9533 # Regexp to match symbols that can be accessed directly from C.
9534 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9536 # Transform an extracted symbol line into a proper C declaration
9537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9539 # Transform an extracted symbol line into symbol name and symbol address
9540 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'"
9542 # Define system-specific variables.
9547 cygwin* | mingw* | pw32*)
9548 symcode='[ABCDGISTW]'
9550 hpux*) # Its linker distinguishes data from code symbols
9551 if test "$host_cpu" = ia64; then
9552 symcode='[ABCDEGRST]'
9554 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9555 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'"
9558 if test "$host_cpu" = ia64; then
9559 symcode='[ABCDGIRSTW]'
9560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9561 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'"
9565 symcode='[BCDEGRST]'
9568 symcode='[BCDEGQRST]'
9579 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9587 # Handle CRLF in mingw tool chain
9591 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9595 # If we're using GNU nm, then use its standard symbol codes.
9596 case `$NM -V 2>&1` in
9597 *GNU* | *'with BFD'*)
9598 symcode='[ABCDGIRSTW]' ;;
9601 # Try without a prefix undercore, then with it.
9602 for ac_symprfx in "" "_"; do
9604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9605 symxfrm="\\1 $ac_symprfx\\2 \\2"
9607 # Write the raw and C identifiers.
9608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9610 # Check to see that the pipe works correctly.
9614 cat > conftest.$ac_ext <<EOF
9619 void nm_test_func(){}
9623 int main(){nm_test_var='a';nm_test_func();return(0);}
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; then
9631 # Now try to grab the symbols.
9633 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9634 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && test -s "$nlist"; then
9638 # Try sorting and uniquifying the output.
9639 if sort "$nlist" | uniq > "$nlist"T; then
9640 mv -f "$nlist"T "$nlist"
9645 # Make sure that we snagged all the symbols we need.
9646 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9647 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9648 cat <<EOF > conftest.$ac_ext
9654 # Now generate the symbol file.
9655 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9657 cat <<EOF >> conftest.$ac_ext
9658 #if defined (__STDC__) && __STDC__
9659 # define lt_ptr_t void *
9661 # define lt_ptr_t char *
9665 /* The mapping between symbol names and symbols. */
9670 lt_preloaded_symbols[] =
9673 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9674 cat <<\EOF >> conftest.$ac_ext
9682 # Now try linking the two files.
9683 mv conftest.$ac_objext conftstm.$ac_objext
9684 lt_save_LIBS="$LIBS"
9685 lt_save_CFLAGS="$CFLAGS"
9686 LIBS="conftstm.$ac_objext"
9687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9695 LIBS="$lt_save_LIBS"
9696 CFLAGS="$lt_save_CFLAGS"
9698 echo "cannot find nm_test_func in $nlist" >&5
9701 echo "cannot find nm_test_var in $nlist" >&5
9704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9707 echo "$progname: failed program was:" >&5
9708 cat conftest.$ac_ext >&5
9710 rm -f conftest* conftst*
9712 # Do not use the global_symbol_pipe unless it works.
9713 if test "$pipe_works" = yes; then
9716 lt_cv_sys_global_symbol_pipe=
9722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9723 lt_cv_sys_global_symbol_to_cdecl=
9725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9726 { echo "$as_me:$LINENO: result: failed" >&5
9727 echo "${ECHO_T}failed" >&6; }
9729 { echo "$as_me:$LINENO: result: ok" >&5
9730 echo "${ECHO_T}ok" >&6; }
9734 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9735 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9736 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9740 libltdl_cv_preloaded_symbols=yes
9742 libltdl_cv_preloaded_symbols=no
9746 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9747 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9748 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_PRELOADED_SYMBOLS 1
9759 ac_cpp='$CPP $CPPFLAGS'
9760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9765 { echo "$as_me:$LINENO: checking for shl_load" >&5
9766 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9767 if test "${ac_cv_func_shl_load+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778 #define shl_load innocuous_shl_load
9780 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char shl_load (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9786 # include <limits.h>
9788 # include <assert.h>
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined __stub_shl_load || defined __stub___shl_load
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_func_shl_load=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_cv_func_shl_load=no
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9861 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9862 if test $ac_cv_func_shl_load = yes; then
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_SHL_LOAD 1
9869 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9870 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_check_lib_save_LIBS=$LIBS
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_lib_dld_shl_load=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_lib_dld_shl_load=no
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9946 if test $ac_cv_lib_dld_shl_load = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_SHL_LOAD 1
9952 LIBADD_DL="$LIBADD_DL -ldld"
9954 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 ac_check_lib_save_LIBS=$LIBS
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_link") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_try") 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_dl_dlopen=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_cv_lib_dl_dlopen=no
10025 rm -f core conftest.err conftest.$ac_objext \
10026 conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10031 if test $ac_cv_lib_dl_dlopen = yes; then
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_LIBDL 1
10037 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 # include <dlfcn.h>
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_LIBDL 1
10095 libltdl_cv_func_dlopen="yes"
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10101 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-lsvld $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_svld_dlopen=yes
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_cv_lib_svld_dlopen=no
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10176 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10177 if test $ac_cv_lib_svld_dlopen = yes; then
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_LIBDL 1
10183 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10185 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10187 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 ac_check_lib_save_LIBS=$LIBS
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10209 return dld_link ();
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1 >conftest.err
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_try") 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_cv_lib_dld_dld_link=yes
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_cv_lib_dld_dld_link=no
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10261 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10262 if test $ac_cv_lib_dld_dld_link = yes; then
10264 cat >>confdefs.h <<\_ACEOF
10268 LIBADD_DL="$LIBADD_DL -ldld"
10270 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10271 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10272 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10283 #define _dyld_func_lookup innocuous__dyld_func_lookup
10285 /* System header to define __stub macros and hopefully few prototypes,
10286 which can conflict with char _dyld_func_lookup (); below.
10287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10288 <limits.h> exists even on freestanding compilers. */
10291 # include <limits.h>
10293 # include <assert.h>
10296 #undef _dyld_func_lookup
10298 /* Override any GCC internal prototype to avoid an error.
10299 Use char because int might match the return type of a GCC
10300 builtin and then its argument prototype would still apply. */
10304 char _dyld_func_lookup ();
10305 /* The GNU C library defines this for functions which it implements
10306 to always fail with ENOSYS. Some functions are actually named
10307 something starting with __ and the normal name is an alias. */
10308 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10315 return _dyld_func_lookup ();
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_try") 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_func__dyld_func_lookup=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_cv_func__dyld_func_lookup=no
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10366 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10367 if test $ac_cv_func__dyld_func_lookup = yes; then
10369 cat >>confdefs.h <<\_ACEOF
10370 #define HAVE_DYLD 1
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10396 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10398 lt_save_LIBS="$LIBS"
10399 LIBS="$LIBS $LIBADD_DL"
10401 for ac_func in dlerror
10403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10417 #define $ac_func innocuous_$ac_func
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10425 # include <limits.h>
10427 # include <assert.h>
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10439 /* The GNU C library defines this for functions which it implements
10440 to always fail with ENOSYS. Some functions are actually named
10441 something starting with __ and the normal name is an alias. */
10442 #if defined __stub_$ac_func || defined __stub___$ac_func
10449 return $ac_func ();
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_try") 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 eval "$as_ac_var=yes"
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 eval "$as_ac_var=no"
10496 rm -f core conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10499 ac_res=`eval echo '${'$as_ac_var'}'`
10500 { echo "$as_me:$LINENO: result: $ac_res" >&5
10501 echo "${ECHO_T}$ac_res" >&6; }
10502 if test `eval echo '${'$as_ac_var'}'` = yes; then
10503 cat >>confdefs.h <<_ACEOF
10504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 LIBS="$lt_save_LIBS"
10513 ac_cpp='$CPP $CPPFLAGS'
10514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10520 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10521 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10522 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 ac_cv_sys_symbol_underscore=no
10526 cat > conftest.$ac_ext <<EOF
10527 void nm_test_func(){}
10528 int main(){nm_test_func;return 0;}
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; then
10535 # Now try to grab the symbols.
10536 ac_nlist=conftest.nm
10537 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10538 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && test -s "$ac_nlist"; then
10542 # See whether the symbols have a leading underscore.
10543 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10544 ac_cv_sys_symbol_underscore=yes
10546 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10549 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10553 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10556 echo "configure: failed program was:" >&5
10562 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10563 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10566 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10567 if test x"$libltdl_cv_func_dlopen" = xyes ||
10568 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10569 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10570 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10571 if test "${libltdl_cv_need_uscore+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 libltdl_cv_need_uscore=unknown
10576 LIBS="$LIBS $LIBADD_DL"
10577 if test "$cross_compiling" = yes; then :
10578 libltdl_cv_need_uscore=cross
10580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10581 lt_status=$lt_dlunknown
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10583 "configure"
10584 #include "confdefs.h"
10593 # define LT_DLGLOBAL RTLD_GLOBAL
10596 # define LT_DLGLOBAL DL_GLOBAL
10598 # define LT_DLGLOBAL 0
10602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10603 find out it does not work in some platform. */
10604 #ifndef LT_DLLAZY_OR_NOW
10606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10609 # define LT_DLLAZY_OR_NOW DL_LAZY
10612 # define LT_DLLAZY_OR_NOW RTLD_NOW
10615 # define LT_DLLAZY_OR_NOW DL_NOW
10617 # define LT_DLLAZY_OR_NOW 0
10625 extern "C" void exit (int);
10628 void fnord() { int i=42;}
10631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10632 int status = $lt_dlunknown;
10636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10637 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10638 /* dlclose (self); */
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10651 (./conftest; exit; ) >&5 2>/dev/null
10653 case x$lt_status in
10654 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10655 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10656 x$lt_dlunknown|x*) ;;
10659 # compilation failed
10668 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10669 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10673 if test x"$libltdl_cv_need_uscore" = xyes; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define NEED_USCORE 1
10682 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10683 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10684 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 # PORTME does your system automatically load deplibs for dlopen?
10688 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10689 # For now, we just catch OSes we know something about -- in the
10690 # future, we'll try test this programmatically.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10693 aix3*|aix4.1.*|aix4.2.*)
10694 # Unknown whether this is true for these versions of AIX, but
10695 # we want this `case' here to explicitly catch those versions.
10696 libltdl_cv_sys_dlopen_deplibs=unknown
10699 libltdl_cv_sys_dlopen_deplibs=yes
10702 # Assuming the user has installed a libdl from somewhere, this is true
10703 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10704 libltdl_cv_sys_dlopen_deplibs=yes
10706 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10707 # GNU and its variants, using gnu ld.so (Glibc)
10708 libltdl_cv_sys_dlopen_deplibs=yes
10711 libltdl_cv_sys_dlopen_deplibs=yes
10714 libltdl_cv_sys_dlopen_deplibs=yes
10716 irix[12345]*|irix6.[01]*)
10717 # Catch all versions of IRIX before 6.2, and indicate that we don't
10718 # know how it worked for any of those versions.
10719 libltdl_cv_sys_dlopen_deplibs=unknown
10722 # The case above catches anything before 6.2, and it's known that
10723 # at 6.2 and later dlopen does load deplibs.
10724 libltdl_cv_sys_dlopen_deplibs=yes
10727 libltdl_cv_sys_dlopen_deplibs=yes
10730 libltdl_cv_sys_dlopen_deplibs=yes
10733 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10734 # it did *not* use an RPATH in a shared library to find objects the
10735 # library depends on, so we explictly say `no'.
10736 libltdl_cv_sys_dlopen_deplibs=no
10738 osf5.0|osf5.0a|osf5.1)
10739 # dlopen *does* load deplibs and with the right loader patch applied
10740 # it even uses RPATH in a shared library to search for shared objects
10741 # that the library depends on, but there's no easy way to know if that
10742 # patch is installed. Since this is the case, all we can really
10743 # say is unknown -- it depends on the patch being installed. If
10744 # it is, this changes to `yes'. Without it, it would be `no'.
10745 libltdl_cv_sys_dlopen_deplibs=unknown
10748 # the two cases above should catch all versions of osf <= 5.1. Read
10749 # the comments above for what we know about them.
10750 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10751 # is used to find them so we can finally say `yes'.
10752 libltdl_cv_sys_dlopen_deplibs=yes
10755 libltdl_cv_sys_dlopen_deplibs=yes
10757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10758 libltdl_cv_sys_dlopen_deplibs=yes
10763 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10764 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10765 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define LTDL_DLOPEN_DEPLIBS 1
10774 for ac_header in argz.h
10776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 ac_res=`eval echo '${'$as_ac_Header'}'`
10784 { echo "$as_me:$LINENO: result: $ac_res" >&5
10785 echo "${ECHO_T}$ac_res" >&6; }
10787 # Is the header compilable?
10788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10790 cat >conftest.$ac_ext <<_ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10797 #include <$ac_header>
10799 rm -f conftest.$ac_objext
10800 if { (ac_try="$ac_compile"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_header_compiler=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_header_compiler=no
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10843 echo "${ECHO_T}$ac_header_compiler" >&6; }
10845 # Is the header present?
10846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #include <$ac_header>
10856 if { (ac_try="$ac_cpp conftest.$ac_ext"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev/null; then
10869 if test -s conftest.err; then
10870 ac_cpp_err=$ac_c_preproc_warn_flag
10871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10878 if test -z "$ac_cpp_err"; then
10879 ac_header_preproc=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_header_preproc=no
10887 rm -f conftest.err conftest.$ac_ext
10888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10889 echo "${ECHO_T}$ac_header_preproc" >&6; }
10891 # So? What about this header?
10892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10898 ac_header_preproc=yes
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10914 ## ----------------------------------- ##
10915 ## Report this to llvmbugs@cs.uiuc.edu ##
10916 ## ----------------------------------- ##
10918 ) | sed "s/^/$as_me: WARNING: /" >&2
10921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 eval "$as_ac_Header=\$ac_header_preproc"
10928 ac_res=`eval echo '${'$as_ac_Header'}'`
10929 { echo "$as_me:$LINENO: result: $ac_res" >&5
10930 echo "${ECHO_T}$ac_res" >&6; }
10933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10934 cat >>confdefs.h <<_ACEOF
10935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 { echo "$as_me:$LINENO: checking for error_t" >&5
10944 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10945 if test "${ac_cv_type_error_t+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10958 typedef error_t ac__type_new_;
10962 if ((ac__type_new_ *) 0)
10964 if (sizeof (ac__type_new_))
10970 rm -f conftest.$ac_objext
10971 if { (ac_try="$ac_compile"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_compile") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_cv_type_error_t=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_type_error_t=no
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11015 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11016 if test $ac_cv_type_error_t = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_ERROR_T 1
11025 cat >>confdefs.h <<\_ACEOF
11026 #define error_t int
11037 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11053 #define $ac_func innocuous_$ac_func
11055 /* System header to define __stub macros and hopefully few prototypes,
11056 which can conflict with char $ac_func (); below.
11057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11058 <limits.h> exists even on freestanding compilers. */
11061 # include <limits.h>
11063 # include <assert.h>
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11075 /* The GNU C library defines this for functions which it implements
11076 to always fail with ENOSYS. Some functions are actually named
11077 something starting with __ and the normal name is an alias. */
11078 #if defined __stub_$ac_func || defined __stub___$ac_func
11085 return $ac_func ();
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 eval "$as_ac_var=yes"
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 eval "$as_ac_var=no"
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11135 ac_res=`eval echo '${'$as_ac_var'}'`
11136 { echo "$as_me:$LINENO: result: $ac_res" >&5
11137 echo "${ECHO_T}$ac_res" >&6; }
11138 if test `eval echo '${'$as_ac_var'}'` = yes; then
11139 cat >>confdefs.h <<_ACEOF
11140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11173 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_res=`eval echo '${'$as_ac_Header'}'`
11184 { echo "$as_me:$LINENO: result: $ac_res" >&5
11185 echo "${ECHO_T}$ac_res" >&6; }
11187 # Is the header compilable?
11188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 #include <$ac_header>
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_try") 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_header_compiler=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_header_compiler=no
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6; }
11245 # Is the header present?
11246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <$ac_header>
11256 if { (ac_try="$ac_cpp conftest.$ac_ext"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11278 if test -z "$ac_cpp_err"; then
11279 ac_header_preproc=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11287 rm -f conftest.err conftest.$ac_ext
11288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6; }
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ## ----------------------------------- ##
11315 ## Report this to llvmbugs@cs.uiuc.edu ##
11316 ## ----------------------------------- ##
11318 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 eval "$as_ac_Header=\$ac_header_preproc"
11328 ac_res=`eval echo '${'$as_ac_Header'}'`
11329 { echo "$as_me:$LINENO: result: $ac_res" >&5
11330 echo "${ECHO_T}$ac_res" >&6; }
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11346 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_res=`eval echo '${'$as_ac_Header'}'`
11356 { echo "$as_me:$LINENO: result: $ac_res" >&5
11357 echo "${ECHO_T}$ac_res" >&6; }
11359 # Is the header compilable?
11360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11369 #include <$ac_header>
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_header_compiler=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_compiler=no
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415 echo "${ECHO_T}$ac_header_compiler" >&6; }
11417 # Is the header present?
11418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <$ac_header>
11428 if { (ac_try="$ac_cpp conftest.$ac_ext"
11429 case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11436 grep -v '^ *+' conftest.er1 >conftest.err
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null; then
11441 if test -s conftest.err; then
11442 ac_cpp_err=$ac_c_preproc_warn_flag
11443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11450 if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_header_preproc=no
11459 rm -f conftest.err conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461 echo "${ECHO_T}$ac_header_preproc" >&6; }
11463 # So? What about this header?
11464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486 ## ----------------------------------- ##
11487 ## Report this to llvmbugs@cs.uiuc.edu ##
11488 ## ----------------------------------- ##
11490 ) | sed "s/^/$as_me: WARNING: /" >&2
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 eval "$as_ac_Header=\$ac_header_preproc"
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501 { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11516 for ac_header in string.h strings.h
11518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_res=`eval echo '${'$as_ac_Header'}'`
11526 { echo "$as_me:$LINENO: result: $ac_res" >&5
11527 echo "${ECHO_T}$ac_res" >&6; }
11529 # Is the header compilable?
11530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11550 grep -v '^ *+' conftest.er1 >conftest.err
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_header_compiler=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_header_compiler=no
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11585 echo "${ECHO_T}$ac_header_compiler" >&6; }
11587 # Is the header present?
11588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11590 cat >conftest.$ac_ext <<_ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 #include <$ac_header>
11598 if { (ac_try="$ac_cpp conftest.$ac_ext"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } >/dev/null; then
11611 if test -s conftest.err; then
11612 ac_cpp_err=$ac_c_preproc_warn_flag
11613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11620 if test -z "$ac_cpp_err"; then
11621 ac_header_preproc=yes
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ac_header_preproc=no
11629 rm -f conftest.err conftest.$ac_ext
11630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11631 echo "${ECHO_T}$ac_header_preproc" >&6; }
11633 # So? What about this header?
11634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11640 ac_header_preproc=yes
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 ## ----------------------------------- ##
11657 ## Report this to llvmbugs@cs.uiuc.edu ##
11658 ## ----------------------------------- ##
11660 ) | sed "s/^/$as_me: WARNING: /" >&2
11663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 eval "$as_ac_Header=\$ac_header_preproc"
11670 ac_res=`eval echo '${'$as_ac_Header'}'`
11671 { echo "$as_me:$LINENO: result: $ac_res" >&5
11672 echo "${ECHO_T}$ac_res" >&6; }
11675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11676 cat >>confdefs.h <<_ACEOF
11677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11687 for ac_func in strchr index
11689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11711 # include <limits.h>
11713 # include <assert.h>
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11735 return $ac_func ();
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_link") 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; } &&
11764 { ac_try='test -s conftest$ac_exeext'
11765 { (case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_try") 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 eval "$as_ac_var=yes"
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 eval "$as_ac_var=no"
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11785 ac_res=`eval echo '${'$as_ac_var'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 for ac_func in strrchr rindex
11800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814 #define $ac_func innocuous_$ac_func
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char $ac_func (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
11822 # include <limits.h>
11824 # include <assert.h>
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined __stub_$ac_func || defined __stub___$ac_func
11846 return $ac_func ();
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_link") 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_try") 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 eval "$as_ac_var=yes"
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 eval "$as_ac_var=no"
11893 rm -f core conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
11896 ac_res=`eval echo '${'$as_ac_var'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_var'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 for ac_func in memcpy bcopy
11911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 return $ac_func ();
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 eval "$as_ac_var=yes"
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 eval "$as_ac_var=no"
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12007 ac_res=`eval echo '${'$as_ac_var'}'`
12008 { echo "$as_me:$LINENO: result: $ac_res" >&5
12009 echo "${ECHO_T}$ac_res" >&6; }
12010 if test `eval echo '${'$as_ac_var'}'` = yes; then
12011 cat >>confdefs.h <<_ACEOF
12012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12020 for ac_func in memmove strcmp
12022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12036 #define $ac_func innocuous_$ac_func
12038 /* System header to define __stub macros and hopefully few prototypes,
12039 which can conflict with char $ac_func (); below.
12040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12041 <limits.h> exists even on freestanding compilers. */
12044 # include <limits.h>
12046 # include <assert.h>
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12058 /* The GNU C library defines this for functions which it implements
12059 to always fail with ENOSYS. Some functions are actually named
12060 something starting with __ and the normal name is an alias. */
12061 #if defined __stub_$ac_func || defined __stub___$ac_func
12068 return $ac_func ();
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (ac_try="$ac_link"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 eval "$as_ac_var=yes"
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 eval "$as_ac_var=no"
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12118 ac_res=`eval echo '${'$as_ac_var'}'`
12119 { echo "$as_me:$LINENO: result: $ac_res" >&5
12120 echo "${ECHO_T}$ac_res" >&6; }
12121 if test `eval echo '${'$as_ac_var'}'` = yes; then
12122 cat >>confdefs.h <<_ACEOF
12123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 for ac_func in closedir opendir readdir
12134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148 #define $ac_func innocuous_$ac_func
12150 /* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char $ac_func (); below.
12152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153 <limits.h> exists even on freestanding compilers. */
12156 # include <limits.h>
12158 # include <assert.h>
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12170 /* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173 #if defined __stub_$ac_func || defined __stub___$ac_func
12180 return $ac_func ();
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 eval "$as_ac_var=yes"
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 eval "$as_ac_var=no"
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12230 ac_res=`eval echo '${'$as_ac_var'}'`
12231 { echo "$as_me:$LINENO: result: $ac_res" >&5
12232 echo "${ECHO_T}$ac_res" >&6; }
12233 if test `eval echo '${'$as_ac_var'}'` = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 # Check whether --enable-shared was given.
12243 if test "${enable_shared+set}" = set; then
12244 enableval=$enable_shared; p=${PACKAGE-default}
12246 yes) enable_shared=yes ;;
12247 no) enable_shared=no ;;
12250 # Look at the argument we got. We use all the common list separators.
12251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12252 for pkg in $enableval; do
12254 if test "X$pkg" = "X$p"; then
12266 # Check whether --enable-static was given.
12267 if test "${enable_static+set}" = set; then
12268 enableval=$enable_static; p=${PACKAGE-default}
12270 yes) enable_static=yes ;;
12271 no) enable_static=no ;;
12274 # Look at the argument we got. We use all the common list separators.
12275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12276 for pkg in $enableval; do
12278 if test "X$pkg" = "X$p"; then
12290 # Check whether --enable-fast-install was given.
12291 if test "${enable_fast_install+set}" = set; then
12292 enableval=$enable_fast_install; p=${PACKAGE-default}
12294 yes) enable_fast_install=yes ;;
12295 no) enable_fast_install=no ;;
12297 enable_fast_install=no
12298 # Look at the argument we got. We use all the common list separators.
12299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12300 for pkg in $enableval; do
12302 if test "X$pkg" = "X$p"; then
12303 enable_fast_install=yes
12310 enable_fast_install=yes
12314 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12315 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12316 if test "${lt_cv_path_SED+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 # Loop through the user's path and test for sed and gsed.
12320 # Then use that list of sed's as ones to test for truncation.
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 for lt_ac_prog in sed gsed; do
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12329 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12336 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12337 # along with /bin/sed that truncates output.
12338 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12339 test ! -f $lt_ac_sed && continue
12340 cat /dev/null > conftest.in
12342 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12343 # Check for GNU sed and select it if it is found.
12344 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12345 lt_cv_path_SED=$lt_ac_sed
12349 cat conftest.in conftest.in >conftest.tmp
12350 mv conftest.tmp conftest.in
12351 cp conftest.in conftest.nl
12353 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12354 cmp -s conftest.out conftest.nl || break
12355 # 10000 chars as input seems more than enough
12356 test $lt_ac_count -gt 10 && break
12357 lt_ac_count=`expr $lt_ac_count + 1`
12358 if test $lt_ac_count -gt $lt_ac_max; then
12359 lt_ac_max=$lt_ac_count
12360 lt_cv_path_SED=$lt_ac_sed
12367 SED=$lt_cv_path_SED
12368 { echo "$as_me:$LINENO: result: $SED" >&5
12369 echo "${ECHO_T}$SED" >&6; }
12372 # Check whether --with-gnu-ld was given.
12373 if test "${with_gnu_ld+set}" = set; then
12374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12380 if test "$GCC" = yes; then
12381 # Check if gcc -print-prog-name=ld gives a path.
12382 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12383 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12386 # gcc leaves a trailing carriage return which upsets mingw
12387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12392 # Accept absolute paths.
12394 re_direlt='/[^/][^/]*/\.\./'
12395 # Canonicalize the pathname of ld
12396 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12397 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12398 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12400 test -z "$LD" && LD="$ac_prog"
12403 # If it fails, then pretend we aren't using GCC.
12407 # If it is relative, then search for the first ld in PATH.
12408 with_gnu_ld=unknown
12411 elif test "$with_gnu_ld" = yes; then
12412 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12413 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12415 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12416 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12418 if test "${lt_cv_path_LD+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 if test -z "$LD"; then
12422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12423 for ac_dir in $PATH; do
12425 test -z "$ac_dir" && ac_dir=.
12426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12427 lt_cv_path_LD="$ac_dir/$ac_prog"
12428 # Check to see if the program is GNU ld. I'd rather use --version,
12429 # but apparently some variants of GNU ld only accept -v.
12430 # Break only if it was the GNU/non-GNU ld that we prefer.
12431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12432 *GNU* | *'with BFD'*)
12433 test "$with_gnu_ld" != no && break
12436 test "$with_gnu_ld" != yes && break
12443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12447 LD="$lt_cv_path_LD"
12448 if test -n "$LD"; then
12449 { echo "$as_me:$LINENO: result: $LD" >&5
12450 echo "${ECHO_T}$LD" >&6; }
12452 { echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6; }
12455 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12456 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12457 { (exit 1); exit 1; }; }
12458 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12459 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12460 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12464 case `$LD -v 2>&1 </dev/null` in
12465 *GNU* | *'with BFD'*)
12466 lt_cv_prog_gnu_ld=yes
12469 lt_cv_prog_gnu_ld=no
12473 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12474 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12475 with_gnu_ld=$lt_cv_prog_gnu_ld
12478 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12479 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12480 if test "${lt_cv_ld_reload_flag+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 lt_cv_ld_reload_flag='-r'
12485 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12486 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12487 reload_flag=$lt_cv_ld_reload_flag
12488 case $reload_flag in
12490 *) reload_flag=" $reload_flag" ;;
12492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12495 if test "$GCC" = yes; then
12496 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12503 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12504 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12505 if test "${lt_cv_deplibs_check_method+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 lt_cv_file_magic_cmd='$MAGIC_CMD'
12509 lt_cv_file_magic_test_file=
12510 lt_cv_deplibs_check_method='unknown'
12511 # Need to set the preceding variable on all platforms that support
12512 # interlibrary dependencies.
12513 # 'none' -- dependencies not supported.
12514 # `unknown' -- same as none, but documents that we really don't know.
12515 # 'pass_all' -- all dependencies passed with no checks.
12516 # 'test_compile' -- check by making test program.
12517 # 'file_magic [[regex]]' -- check by looking for files in library path
12518 # which responds to the $file_magic_cmd with a given extended regex.
12519 # If you have `file' or equivalent on your system and you're not sure
12520 # whether `pass_all' will *always* work, you probably want this one.
12524 lt_cv_deplibs_check_method=pass_all
12528 lt_cv_deplibs_check_method=pass_all
12532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12533 lt_cv_file_magic_cmd='/usr/bin/file -L'
12534 lt_cv_file_magic_test_file=/shlib/libc.so
12538 # func_win32_libid is a shell function defined in ltmain.sh
12539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12540 lt_cv_file_magic_cmd='func_win32_libid'
12544 # Base MSYS/MinGW do not provide the 'file' command needed by
12545 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12546 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12547 lt_cv_file_magic_cmd='$OBJDUMP -f'
12550 darwin* | rhapsody*)
12551 lt_cv_deplibs_check_method=pass_all
12554 freebsd* | kfreebsd*-gnu | dragonfly*)
12555 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12558 # Not sure whether the presence of OpenBSD here was a mistake.
12559 # Let's accept both of them until this is cleared up.
12560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12561 lt_cv_file_magic_cmd=/usr/bin/file
12562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12566 lt_cv_deplibs_check_method=pass_all
12571 lt_cv_deplibs_check_method=pass_all
12574 hpux10.20* | hpux11*)
12575 lt_cv_file_magic_cmd=/usr/bin/file
12578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12582 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]'
12583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12597 irix5* | irix6* | nonstopux*)
12599 *-32|*"-32 ") libmagic=32-bit;;
12600 *-n32|*"-n32 ") libmagic=N32;;
12601 *-64|*"-64 ") libmagic=64-bit;;
12602 *) libmagic=never-match;;
12604 lt_cv_deplibs_check_method=pass_all
12607 # This must be Linux ELF.
12609 lt_cv_deplibs_check_method=pass_all
12613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12622 lt_cv_file_magic_cmd=/usr/bin/file
12623 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12627 lt_cv_deplibs_check_method=unknown
12631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12638 osf3* | osf4* | osf5*)
12639 lt_cv_deplibs_check_method=pass_all
12643 lt_cv_deplibs_check_method=pass_all
12647 case $host_vendor in
12649 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]'
12650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12653 lt_cv_deplibs_check_method=pass_all
12656 lt_cv_file_magic_cmd='/bin/file'
12657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12660 lt_cv_file_magic_cmd='/bin/file'
12661 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12662 lt_cv_file_magic_test_file=/lib/libc.so
12665 lt_cv_deplibs_check_method=pass_all
12668 lt_cv_deplibs_check_method=pass_all
12673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12674 lt_cv_deplibs_check_method=pass_all
12679 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12680 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12681 file_magic_cmd=$lt_cv_file_magic_cmd
12682 deplibs_check_method=$lt_cv_deplibs_check_method
12683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12687 # If no C compiler was specified, use CC.
12690 # If no C compiler flags were specified, use CFLAGS.
12691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12693 # Allow CC to be a program name with arguments.
12696 # Check whether --enable-libtool-lock was given.
12697 if test "${enable_libtool_lock+set}" = set; then
12698 enableval=$enable_libtool_lock;
12701 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12703 # Some flags need to be propagated to the compiler or linker for good
12707 # Find out which ABI we are using.
12708 echo 'int i;' > conftest.$ac_ext
12709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 case `/usr/bin/file conftest.$ac_objext` in
12716 HPUX_IA64_MODE="32"
12719 HPUX_IA64_MODE="64"
12726 # Find out which ABI we are using.
12727 echo '#line 12727 "configure"' > conftest.$ac_ext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; then
12733 if test "$lt_cv_prog_gnu_ld" = yes; then
12734 case `/usr/bin/file conftest.$ac_objext` in
12736 LD="${LD-ld} -melf32bsmip"
12739 LD="${LD-ld} -melf32bmipn32"
12742 LD="${LD-ld} -melf64bmip"
12746 case `/usr/bin/file conftest.$ac_objext` in
12762 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12763 # Find out which ABI we are using.
12764 echo 'int i;' > conftest.$ac_ext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; then
12770 case `/usr/bin/file conftest.o` in
12774 LD="${LD-ld} -m elf_i386"
12776 ppc64-*linux*|powerpc64-*linux*)
12777 LD="${LD-ld} -m elf32ppclinux"
12780 LD="${LD-ld} -m elf_s390"
12783 LD="${LD-ld} -m elf32_sparc"
12790 LD="${LD-ld} -m elf_x86_64"
12792 ppc*-*linux*|powerpc*-*linux*)
12793 LD="${LD-ld} -m elf64ppc"
12796 LD="${LD-ld} -m elf64_s390"
12799 LD="${LD-ld} -m elf64_sparc"
12809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12810 SAVE_CFLAGS="$CFLAGS"
12811 CFLAGS="$CFLAGS -belf"
12812 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12813 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12814 if test "${lt_cv_cc_needs_belf+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 ac_cpp='$CPP $CPPFLAGS'
12819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 lt_cv_cc_needs_belf=yes
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 lt_cv_cc_needs_belf=no
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12883 ac_cpp='$CPP $CPPFLAGS'
12884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12890 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12893 CFLAGS="$SAVE_CFLAGS"
12897 # Find out which ABI we are using.
12898 echo 'int i;' > conftest.$ac_ext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; then
12904 case `/usr/bin/file conftest.o` in
12906 case $lt_cv_prog_gnu_ld in
12907 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12908 *) LD="${LD-ld} -64" ;;
12919 need_locks="$enable_libtool_lock"
12924 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12925 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12926 (test "X$CXX" != "Xg++"))) ; then
12928 ac_cpp='$CXXCPP $CPPFLAGS'
12929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12932 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12933 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12934 if test -z "$CXXCPP"; then
12935 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 # Double quotes because CXXCPP needs to be expanded
12939 for CXXCPP in "$CXX -E" "/lib/cpp"
12941 ac_preproc_ok=false
12942 for ac_cxx_preproc_warn_flag in '' yes
12944 # Use a header file that comes with gcc, so configuring glibc
12945 # with a fresh cross-compiler works.
12946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12947 # <limits.h> exists even on freestanding compilers.
12948 # On the NeXT, cc -E runs the code through the compiler's parser,
12949 # not just through cpp. "Syntax error" is here to catch this case.
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12957 # include <limits.h>
12959 # include <assert.h>
12963 if { (ac_try="$ac_cpp conftest.$ac_ext"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } >/dev/null; then
12976 if test -s conftest.err; then
12977 ac_cpp_err=$ac_cxx_preproc_warn_flag
12978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12985 if test -z "$ac_cpp_err"; then
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 # Broken: fails on valid input.
12995 rm -f conftest.err conftest.$ac_ext
12997 # OK, works on sane cases. Now check whether nonexistent headers
12998 # can be detected and how.
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <ac_nonexistent.h>
13007 if { (ac_try="$ac_cpp conftest.$ac_ext"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } >/dev/null; then
13020 if test -s conftest.err; then
13021 ac_cpp_err=$ac_cxx_preproc_warn_flag
13022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13029 if test -z "$ac_cpp_err"; then
13030 # Broken: success on invalid input.
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 # Passes both tests.
13041 rm -f conftest.err conftest.$ac_ext
13044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13045 rm -f conftest.err conftest.$ac_ext
13046 if $ac_preproc_ok; then
13051 ac_cv_prog_CXXCPP=$CXXCPP
13054 CXXCPP=$ac_cv_prog_CXXCPP
13056 ac_cv_prog_CXXCPP=$CXXCPP
13058 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13059 echo "${ECHO_T}$CXXCPP" >&6; }
13060 ac_preproc_ok=false
13061 for ac_cxx_preproc_warn_flag in '' yes
13063 # Use a header file that comes with gcc, so configuring glibc
13064 # with a fresh cross-compiler works.
13065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13066 # <limits.h> exists even on freestanding compilers.
13067 # On the NeXT, cc -E runs the code through the compiler's parser,
13068 # not just through cpp. "Syntax error" is here to catch this case.
13069 cat >conftest.$ac_ext <<_ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13076 # include <limits.h>
13078 # include <assert.h>
13082 if { (ac_try="$ac_cpp conftest.$ac_ext"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13090 grep -v '^ *+' conftest.er1 >conftest.err
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } >/dev/null; then
13095 if test -s conftest.err; then
13096 ac_cpp_err=$ac_cxx_preproc_warn_flag
13097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13104 if test -z "$ac_cpp_err"; then
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 # Broken: fails on valid input.
13114 rm -f conftest.err conftest.$ac_ext
13116 # OK, works on sane cases. Now check whether nonexistent headers
13117 # can be detected and how.
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <ac_nonexistent.h>
13126 if { (ac_try="$ac_cpp conftest.$ac_ext"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } >/dev/null; then
13139 if test -s conftest.err; then
13140 ac_cpp_err=$ac_cxx_preproc_warn_flag
13141 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13148 if test -z "$ac_cpp_err"; then
13149 # Broken: success on invalid input.
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 # Passes both tests.
13160 rm -f conftest.err conftest.$ac_ext
13163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13164 rm -f conftest.err conftest.$ac_ext
13165 if $ac_preproc_ok; then
13168 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13169 See \`config.log' for more details." >&5
13170 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13171 See \`config.log' for more details." >&2;}
13172 { (exit 1); exit 1; }; }
13176 ac_cpp='$CXXCPP $CPPFLAGS'
13177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13185 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13186 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13188 if test -n "$ac_tool_prefix"; then
13189 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
13191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13195 if test "${ac_cv_prog_F77+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 if test -n "$F77"; then
13199 ac_cv_prog_F77="$F77" # Let the user override the test.
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 F77=$ac_cv_prog_F77
13219 if test -n "$F77"; then
13220 { echo "$as_me:$LINENO: result: $F77" >&5
13221 echo "${ECHO_T}$F77" >&6; }
13223 { echo "$as_me:$LINENO: result: no" >&5
13224 echo "${ECHO_T}no" >&6; }
13228 test -n "$F77" && break
13231 if test -z "$F77"; then
13233 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
13235 # Extract the first word of "$ac_prog", so it can be a program name with args.
13236 set dummy $ac_prog; ac_word=$2
13237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 if test -n "$ac_ct_F77"; then
13243 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_ac_ct_F77="$ac_prog"
13253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13263 if test -n "$ac_ct_F77"; then
13264 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13265 echo "${ECHO_T}$ac_ct_F77" >&6; }
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13272 test -n "$ac_ct_F77" && break
13275 if test "x$ac_ct_F77" = x; then
13278 case $cross_compiling:$ac_tool_warned in
13280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13281 whose name does not start with the host triplet. If you think this
13282 configuration is useful to you, please write to autoconf@gnu.org." >&5
13283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13284 whose name does not start with the host triplet. If you think this
13285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13286 ac_tool_warned=yes ;;
13293 # Provide some information about the compiler.
13294 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13295 ac_compiler=`set X $ac_compile; echo $2`
13296 { (ac_try="$ac_compiler --version >&5"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler --version >&5") 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
13306 { (ac_try="$ac_compiler -v >&5"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compiler -v >&5") 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }
13316 { (ac_try="$ac_compiler -V >&5"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compiler -V >&5") 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }
13328 # If we don't use `.F' as extension, the preprocessor is not run on the
13329 # input file. (Note that this only needs to work for GNU compilers.)
13330 ac_save_ext=$ac_ext
13332 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13333 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13334 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.$ac_ext <<_ACEOF
13345 rm -f conftest.$ac_objext
13346 if { (ac_try="$ac_compile"
13347 case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13354 grep -v '^ *+' conftest.er1 >conftest.err
13356 cat conftest.err >&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_try") 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 ac_compiler_gnu=yes
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13391 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13392 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13393 ac_ext=$ac_save_ext
13394 ac_test_FFLAGS=${FFLAGS+set}
13395 ac_save_FFLAGS=$FFLAGS
13397 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13398 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13399 if test "${ac_cv_prog_f77_g+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_prog_f77_g=yes
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 ac_cv_prog_f77_g=no
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13454 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13455 if test "$ac_test_FFLAGS" = set; then
13456 FFLAGS=$ac_save_FFLAGS
13457 elif test $ac_cv_prog_f77_g = yes; then
13458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13464 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13471 G77=`test $ac_compiler_gnu = yes && echo yes`
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13480 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13482 # find the maximum length of command line arguments
13483 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13484 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13485 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 # On DJGPP, this test can blow up pretty badly due to problems in libc
13494 # (any single argument exceeding 2000 bytes causes a buffer overrun
13495 # during glob expansion). Even if it were fixed, the result of this
13496 # check would be larger than it should be.
13497 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13501 # Under GNU Hurd, this test is not required because there is
13502 # no limit to the length of command line arguments.
13503 # Libtool will interpret -1 as no limit whatsoever
13504 lt_cv_sys_max_cmd_len=-1;
13508 # On Win9x/ME, this test blows up -- it succeeds, but takes
13509 # about 5 minutes as the teststring grows exponentially.
13510 # Worse, since 9x/ME are not pre-emptively multitasking,
13511 # you end up with a "frozen" computer, even though with patience
13512 # the test eventually succeeds (with a max line length of 256k).
13513 # Instead, let's just punt: use the minimum linelength reported by
13514 # all of the supported platforms: 8192 (on NT/2K/XP).
13515 lt_cv_sys_max_cmd_len=8192;
13519 # On AmigaOS with pdksh, this test takes hours, literally.
13520 # So we just punt and use a minimum line length of 8192.
13521 lt_cv_sys_max_cmd_len=8192;
13524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13525 # This has been around since 386BSD, at least. Likely further.
13526 if test -x /sbin/sysctl; then
13527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13528 elif test -x /usr/sbin/sysctl; then
13529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13531 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13533 # And add a safety zone
13534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13539 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13540 lt_cv_sys_max_cmd_len=196608
13544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13546 # nice to cause kernel panics so lets avoid the loop below.
13547 # First set a reasonable default.
13548 lt_cv_sys_max_cmd_len=16384
13550 if test -x /sbin/sysconfig; then
13551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13552 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13557 lt_cv_sys_max_cmd_len=102400
13559 sysv5* | sco5v6* | sysv4.2uw2*)
13560 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13561 if test -n "$kargmax"; then
13562 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13564 lt_cv_sys_max_cmd_len=32768
13568 # If test is not a shell built-in, we'll probably end up computing a
13569 # maximum length that is only half of the actual maximum length, but
13571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13572 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13573 = "XX$teststring") >/dev/null 2>&1 &&
13574 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13575 lt_cv_sys_max_cmd_len=$new_result &&
13576 test $i != 17 # 1/2 MB should be enough
13579 teststring=$teststring$teststring
13582 # Add a significant safety factor because C++ compilers can tack on massive
13583 # amounts of additional arguments before passing them to the linker.
13584 # It appears as though 1/2 is a usable value.
13585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13591 if test -n $lt_cv_sys_max_cmd_len ; then
13592 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13595 { echo "$as_me:$LINENO: result: none" >&5
13596 echo "${ECHO_T}none" >&6; }
13602 # Check for command to grab the raw symbol name followed by C symbol from nm.
13603 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13604 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13605 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 # These are sane defaults that work on at least a few old systems.
13610 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13612 # Character class describing NM global symbol codes.
13613 symcode='[BCDEGRST]'
13615 # Regexp to match symbols that can be accessed directly from C.
13616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13618 # Transform an extracted symbol line into a proper C declaration
13619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13621 # Transform an extracted symbol line into symbol name and symbol address
13622 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'"
13624 # Define system-specific variables.
13629 cygwin* | mingw* | pw32*)
13630 symcode='[ABCDGISTW]'
13632 hpux*) # Its linker distinguishes data from code symbols
13633 if test "$host_cpu" = ia64; then
13634 symcode='[ABCDEGRST]'
13636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13637 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'"
13640 if test "$host_cpu" = ia64; then
13641 symcode='[ABCDGIRSTW]'
13642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13643 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'"
13646 irix* | nonstopux*)
13647 symcode='[BCDEGRST]'
13650 symcode='[BCDEGQRST]'
13661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13669 # Handle CRLF in mingw tool chain
13673 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13677 # If we're using GNU nm, then use its standard symbol codes.
13678 case `$NM -V 2>&1` in
13679 *GNU* | *'with BFD'*)
13680 symcode='[ABCDGIRSTW]' ;;
13683 # Try without a prefix undercore, then with it.
13684 for ac_symprfx in "" "_"; do
13686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13687 symxfrm="\\1 $ac_symprfx\\2 \\2"
13689 # Write the raw and C identifiers.
13690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13692 # Check to see that the pipe works correctly.
13696 cat > conftest.$ac_ext <<EOF
13701 void nm_test_func(){}
13705 int main(){nm_test_var='a';nm_test_func();return(0);}
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; then
13713 # Now try to grab the symbols.
13715 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13716 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && test -s "$nlist"; then
13720 # Try sorting and uniquifying the output.
13721 if sort "$nlist" | uniq > "$nlist"T; then
13722 mv -f "$nlist"T "$nlist"
13727 # Make sure that we snagged all the symbols we need.
13728 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13729 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13730 cat <<EOF > conftest.$ac_ext
13736 # Now generate the symbol file.
13737 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13739 cat <<EOF >> conftest.$ac_ext
13740 #if defined (__STDC__) && __STDC__
13741 # define lt_ptr_t void *
13743 # define lt_ptr_t char *
13747 /* The mapping between symbol names and symbols. */
13752 lt_preloaded_symbols[] =
13755 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13756 cat <<\EOF >> conftest.$ac_ext
13764 # Now try linking the two files.
13765 mv conftest.$ac_objext conftstm.$ac_objext
13766 lt_save_LIBS="$LIBS"
13767 lt_save_CFLAGS="$CFLAGS"
13768 LIBS="conftstm.$ac_objext"
13769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13777 LIBS="$lt_save_LIBS"
13778 CFLAGS="$lt_save_CFLAGS"
13780 echo "cannot find nm_test_func in $nlist" >&5
13783 echo "cannot find nm_test_var in $nlist" >&5
13786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13789 echo "$progname: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 rm -f conftest* conftst*
13794 # Do not use the global_symbol_pipe unless it works.
13795 if test "$pipe_works" = yes; then
13798 lt_cv_sys_global_symbol_pipe=
13804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13805 lt_cv_sys_global_symbol_to_cdecl=
13807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13808 { echo "$as_me:$LINENO: result: failed" >&5
13809 echo "${ECHO_T}failed" >&6; }
13811 { echo "$as_me:$LINENO: result: ok" >&5
13812 echo "${ECHO_T}ok" >&6; }
13815 { echo "$as_me:$LINENO: checking for objdir" >&5
13816 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13817 if test "${lt_cv_objdir+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 rm -f .libs 2>/dev/null
13821 mkdir .libs 2>/dev/null
13822 if test -d .libs; then
13825 # MS-DOS does not allow filenames that begin with a dot.
13828 rmdir .libs 2>/dev/null
13830 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13831 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13832 objdir=$lt_cv_objdir
13840 # AIX sometimes has problems with the GCC collect2 program. For some
13841 # reason, if we set the COLLECT_NAMES environment variable, the problems
13842 # vanish in a puff of smoke.
13843 if test "X${COLLECT_NAMES+set}" != Xset; then
13845 export COLLECT_NAMES
13850 # Sed substitution that helps us do robust quoting. It backslashifies
13851 # metacharacters that are still active within double-quoted strings.
13852 Xsed='sed -e 1s/^X//'
13853 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13855 # Same as above, but do not quote variable references.
13856 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13858 # Sed substitution to delay expansion of an escaped shell variable in a
13859 # double_quote_subst'ed string.
13860 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13862 # Sed substitution to avoid accidental globbing in evaled expressions
13863 no_glob_subst='s/\*/\\\*/g'
13868 # Global variables:
13869 default_ofile=mklib
13870 can_build_shared=yes
13872 # All known linkers require a `.a' archive for static linking (except MSVC,
13873 # which needs '.lib').
13875 ltmain="$ac_aux_dir/ltmain.sh"
13876 ofile="$default_ofile"
13877 with_gnu_ld="$lt_cv_prog_gnu_ld"
13879 if test -n "$ac_tool_prefix"; then
13880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13881 set dummy ${ac_tool_prefix}ar; ac_word=$2
13882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13884 if test "${ac_cv_prog_AR+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 if test -n "$AR"; then
13888 ac_cv_prog_AR="$AR" # Let the user override the test.
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13894 test -z "$as_dir" && as_dir=.
13895 for ac_exec_ext in '' $ac_executable_extensions; do
13896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13897 ac_cv_prog_AR="${ac_tool_prefix}ar"
13898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13908 if test -n "$AR"; then
13909 { echo "$as_me:$LINENO: result: $AR" >&5
13910 echo "${ECHO_T}$AR" >&6; }
13912 { echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6; }
13918 if test -z "$ac_cv_prog_AR"; then
13920 # Extract the first word of "ar", so it can be a program name with args.
13921 set dummy ar; ac_word=$2
13922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 if test -n "$ac_ct_AR"; then
13928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in $PATH
13934 test -z "$as_dir" && as_dir=.
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13937 ac_cv_prog_ac_ct_AR="ar"
13938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13948 if test -n "$ac_ct_AR"; then
13949 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13950 echo "${ECHO_T}$ac_ct_AR" >&6; }
13952 { echo "$as_me:$LINENO: result: no" >&5
13953 echo "${ECHO_T}no" >&6; }
13956 if test "x$ac_ct_AR" = x; then
13959 case $cross_compiling:$ac_tool_warned in
13961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13962 whose name does not start with the host triplet. If you think this
13963 configuration is useful to you, please write to autoconf@gnu.org." >&5
13964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13965 whose name does not start with the host triplet. If you think this
13966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13967 ac_tool_warned=yes ;;
13972 AR="$ac_cv_prog_AR"
13975 if test -n "$ac_tool_prefix"; then
13976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13980 if test "${ac_cv_prog_RANLIB+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 if test -n "$RANLIB"; then
13984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 RANLIB=$ac_cv_prog_RANLIB
14004 if test -n "$RANLIB"; then
14005 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14006 echo "${ECHO_T}$RANLIB" >&6; }
14008 { echo "$as_me:$LINENO: result: no" >&5
14009 echo "${ECHO_T}no" >&6; }
14014 if test -z "$ac_cv_prog_RANLIB"; then
14015 ac_ct_RANLIB=$RANLIB
14016 # Extract the first word of "ranlib", so it can be a program name with args.
14017 set dummy ranlib; ac_word=$2
14018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14020 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 if test -n "$ac_ct_RANLIB"; then
14024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14030 test -z "$as_dir" && as_dir=.
14031 for ac_exec_ext in '' $ac_executable_extensions; do
14032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14033 ac_cv_prog_ac_ct_RANLIB="ranlib"
14034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14044 if test -n "$ac_ct_RANLIB"; then
14045 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14046 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14048 { echo "$as_me:$LINENO: result: no" >&5
14049 echo "${ECHO_T}no" >&6; }
14052 if test "x$ac_ct_RANLIB" = x; then
14055 case $cross_compiling:$ac_tool_warned in
14057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14058 whose name does not start with the host triplet. If you think this
14059 configuration is useful to you, please write to autoconf@gnu.org." >&5
14060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14061 whose name does not start with the host triplet. If you think this
14062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14063 ac_tool_warned=yes ;;
14065 RANLIB=$ac_ct_RANLIB
14068 RANLIB="$ac_cv_prog_RANLIB"
14071 if test -n "$ac_tool_prefix"; then
14072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14073 set dummy ${ac_tool_prefix}strip; ac_word=$2
14074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14076 if test "${ac_cv_prog_STRIP+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 if test -n "$STRIP"; then
14080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14086 test -z "$as_dir" && as_dir=.
14087 for ac_exec_ext in '' $ac_executable_extensions; do
14088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 STRIP=$ac_cv_prog_STRIP
14100 if test -n "$STRIP"; then
14101 { echo "$as_me:$LINENO: result: $STRIP" >&5
14102 echo "${ECHO_T}$STRIP" >&6; }
14104 { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14110 if test -z "$ac_cv_prog_STRIP"; then
14112 # Extract the first word of "strip", so it can be a program name with args.
14113 set dummy strip; ac_word=$2
14114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 if test -n "$ac_ct_STRIP"; then
14120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14129 ac_cv_prog_ac_ct_STRIP="strip"
14130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14140 if test -n "$ac_ct_STRIP"; then
14141 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14142 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14144 { echo "$as_me:$LINENO: result: no" >&5
14145 echo "${ECHO_T}no" >&6; }
14148 if test "x$ac_ct_STRIP" = x; then
14151 case $cross_compiling:$ac_tool_warned in
14153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14154 whose name does not start with the host triplet. If you think this
14155 configuration is useful to you, please write to autoconf@gnu.org." >&5
14156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14157 whose name does not start with the host triplet. If you think this
14158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14159 ac_tool_warned=yes ;;
14164 STRIP="$ac_cv_prog_STRIP"
14169 old_CFLAGS="$CFLAGS"
14171 # Set sane defaults for various variables
14172 test -z "$AR" && AR=ar
14173 test -z "$AR_FLAGS" && AR_FLAGS=cru
14174 test -z "$AS" && AS=as
14175 test -z "$CC" && CC=cc
14176 test -z "$LTCC" && LTCC=$CC
14177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14178 test -z "$DLLTOOL" && DLLTOOL=dlltool
14179 test -z "$LD" && LD=ld
14180 test -z "$LN_S" && LN_S="ln -s"
14181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14182 test -z "$NM" && NM=nm
14183 test -z "$SED" && SED=sed
14184 test -z "$OBJDUMP" && OBJDUMP=objdump
14185 test -z "$RANLIB" && RANLIB=:
14186 test -z "$STRIP" && STRIP=:
14187 test -z "$ac_objext" && ac_objext=o
14189 # Determine commands to create old-style static archives.
14190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14191 old_postinstall_cmds='chmod 644 $oldlib'
14192 old_postuninstall_cmds=
14194 if test -n "$RANLIB"; then
14197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14206 for cc_temp in $compiler""; do
14208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14217 # Only perform the check for file, if the check method requires it
14218 case $deplibs_check_method in
14220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14221 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14222 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14231 lt_save_MAGIC_CMD="$MAGIC_CMD"
14232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14234 for ac_dir in $ac_dummy; do
14236 test -z "$ac_dir" && ac_dir=.
14237 if test -f $ac_dir/${ac_tool_prefix}file; then
14238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14239 if test -n "$file_magic_test_file"; then
14240 case $deplibs_check_method in
14242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14245 $EGREP "$file_magic_regex" > /dev/null; then
14250 *** Warning: the command libtool uses to detect shared libraries,
14251 *** $file_magic_cmd, produces output that libtool cannot recognize.
14252 *** The result is that libtool may fail to recognize shared libraries
14253 *** as such. This will affect the creation of libtool libraries that
14254 *** depend on shared libraries, but programs linked with such libtool
14255 *** libraries will work regardless of this problem. Nevertheless, you
14256 *** may want to report the problem to your system manager and/or to
14257 *** bug-libtool@gnu.org
14267 MAGIC_CMD="$lt_save_MAGIC_CMD"
14272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14273 if test -n "$MAGIC_CMD"; then
14274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14277 { echo "$as_me:$LINENO: result: no" >&5
14278 echo "${ECHO_T}no" >&6; }
14281 if test -z "$lt_cv_path_MAGIC_CMD"; then
14282 if test -n "$ac_tool_prefix"; then
14283 { echo "$as_me:$LINENO: checking for file" >&5
14284 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14285 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14293 lt_save_MAGIC_CMD="$MAGIC_CMD"
14294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14295 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14296 for ac_dir in $ac_dummy; do
14298 test -z "$ac_dir" && ac_dir=.
14299 if test -f $ac_dir/file; then
14300 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14301 if test -n "$file_magic_test_file"; then
14302 case $deplibs_check_method in
14304 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14306 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14307 $EGREP "$file_magic_regex" > /dev/null; then
14312 *** Warning: the command libtool uses to detect shared libraries,
14313 *** $file_magic_cmd, produces output that libtool cannot recognize.
14314 *** The result is that libtool may fail to recognize shared libraries
14315 *** as such. This will affect the creation of libtool libraries that
14316 *** depend on shared libraries, but programs linked with such libtool
14317 *** libraries will work regardless of this problem. Nevertheless, you
14318 *** may want to report the problem to your system manager and/or to
14319 *** bug-libtool@gnu.org
14329 MAGIC_CMD="$lt_save_MAGIC_CMD"
14334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335 if test -n "$MAGIC_CMD"; then
14336 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14337 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14339 { echo "$as_me:$LINENO: result: no" >&5
14340 echo "${ECHO_T}no" >&6; }
14353 enable_win32_dll=no
14355 # Check whether --enable-libtool-lock was given.
14356 if test "${enable_libtool_lock+set}" = set; then
14357 enableval=$enable_libtool_lock;
14360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14363 # Check whether --with-pic was given.
14364 if test "${with_pic+set}" = set; then
14365 withval=$with_pic; pic_mode="$withval"
14370 test -z "$pic_mode" && pic_mode=default
14372 # Use C for the default configuration in the libtool script
14376 ac_cpp='$CPP $CPPFLAGS'
14377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382 # Source file extension for C test sources.
14385 # Object file extension for compiled C test sources.
14389 # Code to be used in simple compile tests
14390 lt_simple_compile_test_code="int some_variable = 0;\n"
14392 # Code to be used in simple link tests
14393 lt_simple_link_test_code='int main(){return(0);}\n'
14396 # If no C compiler was specified, use CC.
14399 # If no C compiler flags were specified, use CFLAGS.
14400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14402 # Allow CC to be a program name with arguments.
14406 # save warnings/boilerplate of simple test code
14407 ac_outfile=conftest.$ac_objext
14408 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410 _lt_compiler_boilerplate=`cat conftest.err`
14413 ac_outfile=conftest.$ac_objext
14414 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14416 _lt_linker_boilerplate=`cat conftest.err`
14421 lt_prog_compiler_no_builtin_flag=
14423 if test "$GCC" = yes; then
14424 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14427 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14428 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 lt_cv_prog_compiler_rtti_exceptions=no
14433 ac_outfile=conftest.$ac_objext
14434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14435 lt_compiler_flag="-fno-rtti -fno-exceptions"
14436 # Insert the option either (1) after the last *FLAGS variable, or
14437 # (2) before a word containing "conftest.", or (3) at the end.
14438 # Note that $ac_compile itself does not contain backslashes and begins
14439 # with a dollar sign (not a hyphen), so the echo should work correctly.
14440 # The option is referenced via a variable to avoid confusing sed.
14441 lt_compile=`echo "$ac_compile" | $SED \
14442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14444 -e 's:$: $lt_compiler_flag:'`
14445 (eval echo "\"\$as_me:14445: $lt_compile\"" >&5)
14446 (eval "$lt_compile" 2>conftest.err)
14448 cat conftest.err >&5
14449 echo "$as_me:14449: \$? = $ac_status" >&5
14450 if (exit $ac_status) && test -s "$ac_outfile"; then
14451 # The compiler can only warn and ignore the option if not recognized
14452 # So say no if there are warnings other than the usual output.
14453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14456 lt_cv_prog_compiler_rtti_exceptions=yes
14462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14473 lt_prog_compiler_wl=
14474 lt_prog_compiler_pic=
14475 lt_prog_compiler_static=
14477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14480 if test "$GCC" = yes; then
14481 lt_prog_compiler_wl='-Wl,'
14482 lt_prog_compiler_static='-static'
14486 # All AIX code is PIC.
14487 if test "$host_cpu" = ia64; then
14488 # AIX 5 now supports IA64 processor
14489 lt_prog_compiler_static='-Bstatic'
14494 # FIXME: we need at least 68020 code to build shared libraries, but
14495 # adding the `-m68020' flag to GCC prevents building anything better,
14497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14500 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14501 # PIC is the default for these OSes.
14504 mingw* | pw32* | os2*)
14505 # This hack is so that the source file can tell whether it is being
14506 # built for inclusion in a dll (and should export symbols for example).
14507 lt_prog_compiler_pic='-DDLL_EXPORT'
14510 darwin* | rhapsody*)
14511 # PIC is the default on this platform
14512 # Common symbols not allowed in MH_DYLIB files
14513 lt_prog_compiler_pic='-fno-common'
14517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14518 # Instead, we relocate shared libraries at runtime.
14522 # Just because we use GCC doesn't mean we suddenly get shared libraries
14523 # on systems that don't support them.
14524 lt_prog_compiler_can_build_shared=no
14529 if test -d /usr/nec; then
14530 lt_prog_compiler_pic=-Kconform_pic
14535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14536 # not for PA HP-UX.
14542 lt_prog_compiler_pic='-fPIC'
14548 lt_prog_compiler_pic='-fPIC'
14552 # PORTME Check for flag to pass linker flags through the system compiler.
14555 lt_prog_compiler_wl='-Wl,'
14556 if test "$host_cpu" = ia64; then
14557 # AIX 5 now supports IA64 processor
14558 lt_prog_compiler_static='-Bstatic'
14560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14564 # PIC is the default on this platform
14565 # Common symbols not allowed in MH_DYLIB files
14566 case $cc_basename in
14568 lt_prog_compiler_pic='-qnocommon'
14569 lt_prog_compiler_wl='-Wl,'
14574 mingw* | pw32* | os2*)
14575 # This hack is so that the source file can tell whether it is being
14576 # built for inclusion in a dll (and should export symbols for example).
14577 lt_prog_compiler_pic='-DDLL_EXPORT'
14580 hpux9* | hpux10* | hpux11*)
14581 lt_prog_compiler_wl='-Wl,'
14582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14583 # not for PA HP-UX.
14589 lt_prog_compiler_pic='+Z'
14592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14593 lt_prog_compiler_static='${wl}-a ${wl}archive'
14596 irix5* | irix6* | nonstopux*)
14597 lt_prog_compiler_wl='-Wl,'
14598 # PIC (with -KPIC) is the default.
14599 lt_prog_compiler_static='-non_shared'
14603 lt_prog_compiler_pic='-KPIC'
14604 lt_prog_compiler_static='-Bstatic'
14608 case $cc_basename in
14610 lt_prog_compiler_wl='-Wl,'
14611 lt_prog_compiler_pic='-KPIC'
14612 lt_prog_compiler_static='-static'
14614 pgcc* | pgf77* | pgf90* | pgf95*)
14615 # Portland Group compilers (*not* the Pentium gcc compiler,
14616 # which looks to be a dead project)
14617 lt_prog_compiler_wl='-Wl,'
14618 lt_prog_compiler_pic='-fpic'
14619 lt_prog_compiler_static='-Bstatic'
14622 lt_prog_compiler_wl='-Wl,'
14623 # All Alpha code is PIC.
14624 lt_prog_compiler_static='-non_shared'
14629 osf3* | osf4* | osf5*)
14630 lt_prog_compiler_wl='-Wl,'
14631 # All OSF/1 code is PIC.
14632 lt_prog_compiler_static='-non_shared'
14636 lt_prog_compiler_pic='-KPIC'
14637 lt_prog_compiler_static='-Bstatic'
14638 case $cc_basename in
14639 f77* | f90* | f95*)
14640 lt_prog_compiler_wl='-Qoption ld ';;
14642 lt_prog_compiler_wl='-Wl,';;
14647 lt_prog_compiler_wl='-Qoption ld '
14648 lt_prog_compiler_pic='-PIC'
14649 lt_prog_compiler_static='-Bstatic'
14652 sysv4 | sysv4.2uw2* | sysv4.3*)
14653 lt_prog_compiler_wl='-Wl,'
14654 lt_prog_compiler_pic='-KPIC'
14655 lt_prog_compiler_static='-Bstatic'
14659 if test -d /usr/nec ;then
14660 lt_prog_compiler_pic='-Kconform_pic'
14661 lt_prog_compiler_static='-Bstatic'
14665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-Bstatic'
14672 lt_prog_compiler_wl='-Wl,'
14673 lt_prog_compiler_can_build_shared=no
14677 lt_prog_compiler_pic='-pic'
14678 lt_prog_compiler_static='-Bstatic'
14682 lt_prog_compiler_can_build_shared=no
14687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14691 # Check to make sure the PIC flag actually works.
14693 if test -n "$lt_prog_compiler_pic"; then
14695 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14697 if test "${lt_prog_compiler_pic_works+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 lt_prog_compiler_pic_works=no
14701 ac_outfile=conftest.$ac_objext
14702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14703 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14704 # Insert the option either (1) after the last *FLAGS variable, or
14705 # (2) before a word containing "conftest.", or (3) at the end.
14706 # Note that $ac_compile itself does not contain backslashes and begins
14707 # with a dollar sign (not a hyphen), so the echo should work correctly.
14708 # The option is referenced via a variable to avoid confusing sed.
14709 lt_compile=`echo "$ac_compile" | $SED \
14710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14712 -e 's:$: $lt_compiler_flag:'`
14713 (eval echo "\"\$as_me:14713: $lt_compile\"" >&5)
14714 (eval "$lt_compile" 2>conftest.err)
14716 cat conftest.err >&5
14717 echo "$as_me:14717: \$? = $ac_status" >&5
14718 if (exit $ac_status) && test -s "$ac_outfile"; then
14719 # The compiler can only warn and ignore the option if not recognized
14720 # So say no if there are warnings other than the usual output.
14721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14724 lt_prog_compiler_pic_works=yes
14730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14731 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14733 if test x"$lt_prog_compiler_pic_works" = xyes; then
14734 case $lt_prog_compiler_pic in
14736 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14739 lt_prog_compiler_pic=
14740 lt_prog_compiler_can_build_shared=no
14745 # For platforms which do not support PIC, -DPIC is meaningless:
14747 lt_prog_compiler_pic=
14750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14755 # Check to make sure the static flag actually works.
14757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14760 if test "${lt_prog_compiler_static_works+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 lt_prog_compiler_static_works=no
14764 save_LDFLAGS="$LDFLAGS"
14765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14768 # The linker can only warn and ignore the option if not recognized
14769 # So say no if there are warnings
14770 if test -s conftest.err; then
14771 # Append any errors to the config.log.
14772 cat conftest.err 1>&5
14773 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14775 if diff conftest.exp conftest.er2 >/dev/null; then
14776 lt_prog_compiler_static_works=yes
14779 lt_prog_compiler_static_works=yes
14783 LDFLAGS="$save_LDFLAGS"
14786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14787 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14789 if test x"$lt_prog_compiler_static_works" = xyes; then
14792 lt_prog_compiler_static=
14796 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14798 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 lt_cv_prog_compiler_c_o=no
14802 $rm -r conftest 2>/dev/null
14806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14808 lt_compiler_flag="-o out/conftest2.$ac_objext"
14809 # Insert the option either (1) after the last *FLAGS variable, or
14810 # (2) before a word containing "conftest.", or (3) at the end.
14811 # Note that $ac_compile itself does not contain backslashes and begins
14812 # with a dollar sign (not a hyphen), so the echo should work correctly.
14813 lt_compile=`echo "$ac_compile" | $SED \
14814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14816 -e 's:$: $lt_compiler_flag:'`
14817 (eval echo "\"\$as_me:14817: $lt_compile\"" >&5)
14818 (eval "$lt_compile" 2>out/conftest.err)
14820 cat out/conftest.err >&5
14821 echo "$as_me:14821: \$? = $ac_status" >&5
14822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14824 # The compiler can only warn and ignore the option if not recognized
14825 # So say no if there are warnings
14826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14829 lt_cv_prog_compiler_c_o=yes
14834 # SGI C++ compiler will create directory out/ii_files/ for
14835 # template instantiation
14836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14837 $rm out/* && rmdir out
14843 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14847 hard_links="nottested"
14848 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14849 # do not overwrite the value of need_locks provided by the user
14850 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14856 ln conftest.a conftest.b 2>&5 || hard_links=no
14857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14858 { echo "$as_me:$LINENO: result: $hard_links" >&5
14859 echo "${ECHO_T}$hard_links" >&6; }
14860 if test "$hard_links" = no; then
14861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14873 allow_undefined_flag=
14874 enable_shared_with_static_runtimes=no
14876 archive_expsym_cmds=
14877 old_archive_From_new_cmds=
14878 old_archive_from_expsyms_cmds=
14879 export_dynamic_flag_spec=
14880 whole_archive_flag_spec=
14881 thread_safe_flag_spec=
14882 hardcode_libdir_flag_spec=
14883 hardcode_libdir_flag_spec_ld=
14884 hardcode_libdir_separator=
14886 hardcode_minus_L=no
14887 hardcode_shlibpath_var=unsupported
14888 link_all_deplibs=unknown
14889 hardcode_automatic=no
14891 module_expsym_cmds=
14892 always_export_symbols=no
14893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14894 # include_expsyms should be a list of space-separated symbols to be *always*
14895 # included in the symbol list
14897 # exclude_expsyms can be an extended regexp of symbols to exclude
14898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14900 # as well as any symbol that contains `d'.
14901 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14903 # platforms (ab)use it in PIC code, but their linkers get confused if
14904 # the symbol is explicitly referenced. Since portable code cannot
14905 # rely on this symbol name, it's probably fine to never include it in
14906 # preloaded symbol tables.
14907 extract_expsyms_cmds=
14908 # Just being paranoid about ensuring that cc_basename is set.
14909 for cc_temp in $compiler""; do
14911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14920 cygwin* | mingw* | pw32*)
14921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14922 # When not using gcc, we currently assume that we are using
14923 # Microsoft Visual C++.
14924 if test "$GCC" != yes; then
14929 # we just hope/assume this is gcc and not c89 (= MSVC++)
14938 if test "$with_gnu_ld" = yes; then
14939 # If archive_cmds runs LD, not CC, wlarc should be empty
14942 # Set some defaults for GNU ld with shared library support. These
14943 # are reset later if shared libraries are not supported. Putting them
14944 # here allows them to be overridden if necessary.
14945 runpath_var=LD_RUN_PATH
14946 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14947 export_dynamic_flag_spec='${wl}--export-dynamic'
14948 # ancient GNU ld didn't support --whole-archive et. al.
14949 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14950 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14952 whole_archive_flag_spec=
14954 supports_anon_versioning=no
14955 case `$LD -v 2>/dev/null` in
14956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14959 *\ 2.11.*) ;; # other 2.11 versions
14960 *) supports_anon_versioning=yes ;;
14963 # See if GNU ld supports shared libraries.
14965 aix3* | aix4* | aix5*)
14966 # On AIX/PPC, the GNU linker is very broken
14967 if test "$host_cpu" != ia64; then
14971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14972 *** to be unable to reliably create shared libraries on AIX.
14973 *** Therefore, libtool is disabling shared libraries support. If you
14974 *** really care for shared libraries, you may want to modify your PATH
14975 *** so that a non-GNU linker is found, and then restart.
14982 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)'
14983 hardcode_libdir_flag_spec='-L$libdir'
14984 hardcode_minus_L=yes
14986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14987 # that the semantics of dynamic libraries on AmigaOS, at least up
14988 # to version 4, is to share data among multiple programs linked
14989 # with the same dynamic library. Since this doesn't match the
14990 # behavior of shared libraries on other platforms, we can't use
14996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14997 allow_undefined_flag=unsupported
14998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14999 # support --undefined. This deserves some investigation. FIXME
15000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15006 cygwin* | mingw* | pw32*)
15007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15008 # as there is no search path for DLLs.
15009 hardcode_libdir_flag_spec='-L$libdir'
15010 allow_undefined_flag=unsupported
15011 always_export_symbols=no
15012 enable_shared_with_static_runtimes=yes
15013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15017 # If the export-symbols file already is a .def file (1st line
15018 # is EXPORTS), use it as is; otherwise, prepend...
15019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15020 cp $export_symbols $output_objdir/$soname.def;
15022 echo EXPORTS > $output_objdir/$soname.def;
15023 cat $export_symbols >> $output_objdir/$soname.def;
15025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15033 hardcode_shlibpath_var=no
15034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15035 export_dynamic_flag_spec='${wl}-E'
15036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15037 # Instead, shared libraries are loaded at an image base (0x10000000 by
15038 # default) and relocated if they conflict, which is a slow very memory
15039 # consuming and fragmenting process. To avoid this, we pick a random,
15040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15043 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'
15047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15049 case $cc_basename,$host_cpu in
15050 pgcc*) # Portland Group C compiler
15051 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'
15052 tmp_addflag=' $pic_flag'
15054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15055 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'
15056 tmp_addflag=' $pic_flag -Mnomain' ;;
15057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15058 tmp_addflag=' -i_dynamic' ;;
15059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15060 tmp_addflag=' -i_dynamic -nofor_main' ;;
15061 ifc* | ifort*) # Intel Fortran compiler
15062 tmp_addflag=' -nofor_main' ;;
15064 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 if test $supports_anon_versioning = yes; then
15067 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15069 $echo "local: *; };" >> $output_objdir/$libname.ver~
15070 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15093 *** create shared libraries on Solaris systems. Therefore, libtool
15094 *** is disabling shared libraries support. We urge you to upgrade GNU
15095 *** binutils to release 2.9.1 or newer. Another option is to modify
15096 *** your PATH or compiler configuration so that the native linker is
15097 *** used, and then restart.
15100 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15109 case `$LD -v 2>&1` in
15110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15115 *** reliably create shared libraries on SCO systems. Therefore, libtool
15116 *** is disabling shared libraries support. We urge you to upgrade GNU
15117 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15118 *** your PATH or compiler configuration so that the native linker is
15119 *** used, and then restart.
15124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15125 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15136 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_direct=yes
15139 hardcode_shlibpath_var=no
15143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15152 if test "$ld_shlibs" = no; then
15154 hardcode_libdir_flag_spec=
15155 export_dynamic_flag_spec=
15156 whole_archive_flag_spec=
15159 # PORTME fill in a description of your system's linker (not GNU ld)
15162 allow_undefined_flag=unsupported
15163 always_export_symbols=yes
15164 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'
15165 # Note: this linker hardcodes the directories in LIBPATH if there
15166 # are no directories specified by -L.
15167 hardcode_minus_L=yes
15168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15169 # Neither direct hardcoding nor static linking is supported with a
15171 hardcode_direct=unsupported
15176 if test "$host_cpu" = ia64; then
15177 # On IA64, the linker does run time linking by default, so we don't
15178 # have to do anything special.
15179 aix_use_runtimelinking=no
15180 exp_sym_flag='-Bexport'
15183 # If we're using GNU nm, then we don't want the "-C" option.
15184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15185 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15186 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'
15188 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'
15190 aix_use_runtimelinking=no
15192 # Test if we are trying to use run time linking or normal
15193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15194 # need to do runtime linking.
15195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15196 for ld_flag in $LDFLAGS; do
15197 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15198 aix_use_runtimelinking=yes
15205 exp_sym_flag='-bexport'
15206 no_entry_flag='-bnoentry'
15209 # When large executables or shared objects are built, AIX ld can
15210 # have problems creating the table of contents. If linking a library
15211 # or program results in "error TOC overflow" add -mminimal-toc to
15212 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15213 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15216 hardcode_direct=yes
15217 hardcode_libdir_separator=':'
15218 link_all_deplibs=yes
15220 if test "$GCC" = yes; then
15221 case $host_os in aix4.[012]|aix4.[012].*)
15222 # We only want to do this on AIX 4.2 and lower, the check
15223 # below for broken collect2 doesn't work under 4.3+
15224 collect2name=`${CC} -print-prog-name=collect2`
15225 if test -f "$collect2name" && \
15226 strings "$collect2name" | grep resolve_lib_name >/dev/null
15228 # We have reworked collect2
15229 hardcode_direct=yes
15231 # We have old collect2
15232 hardcode_direct=unsupported
15233 # It fails to find uninstalled libraries when the uninstalled
15234 # path is not listed in the libpath. Setting hardcode_minus_L
15235 # to unsupported forces relinking
15236 hardcode_minus_L=yes
15237 hardcode_libdir_flag_spec='-L$libdir'
15238 hardcode_libdir_separator=
15242 shared_flag='-shared'
15243 if test "$aix_use_runtimelinking" = yes; then
15244 shared_flag="$shared_flag "'${wl}-G'
15248 if test "$host_cpu" = ia64; then
15249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15250 # chokes on -Wl,-G. The following line is correct:
15253 if test "$aix_use_runtimelinking" = yes; then
15254 shared_flag='${wl}-G'
15256 shared_flag='${wl}-bM:SRE'
15261 # It seems that -bexpall does not export symbols beginning with
15262 # underscore (_), so it is better to generate a list of symbols to export.
15263 always_export_symbols=yes
15264 if test "$aix_use_runtimelinking" = yes; then
15265 # Warning - without using the other runtime loading flags (-brtl),
15266 # -berok will link without error, but may produce a broken library.
15267 allow_undefined_flag='-berok'
15268 # Determine the default libpath from the value encoded in an empty executable.
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_link") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_try") 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15321 # Check for a 64-bit object if we didn't find anything.
15322 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; }
15325 echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15331 rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15336 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"
15338 if test "$host_cpu" = ia64; then
15339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15340 allow_undefined_flag="-z nodefs"
15341 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"
15343 # Determine the default libpath from the value encoded in an empty executable.
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>conftest.er1
15368 grep -v '^ *+' conftest.er1 >conftest.err
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } &&
15373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15396 # Check for a 64-bit object if we didn't find anything.
15397 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; }
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15411 # Warning - without using the other run time loading flags,
15412 # -berok will link without error, but may produce a broken library.
15413 no_undefined_flag=' ${wl}-bernotok'
15414 allow_undefined_flag=' ${wl}-berok'
15415 # Exported symbols can be pulled into shared objects from archives
15416 whole_archive_flag_spec='$convenience'
15417 archive_cmds_need_lc=yes
15418 # This is similar to how AIX traditionally builds its shared libraries.
15419 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'
15425 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)'
15426 hardcode_libdir_flag_spec='-L$libdir'
15427 hardcode_minus_L=yes
15428 # see comment about different semantics on the GNU ld section
15433 export_dynamic_flag_spec=-rdynamic
15436 cygwin* | mingw* | pw32*)
15437 # When not using gcc, we currently assume that we are using
15438 # Microsoft Visual C++.
15439 # hardcode_libdir_flag_spec is actually meaningless, as there is
15440 # no search path for DLLs.
15441 hardcode_libdir_flag_spec=' '
15442 allow_undefined_flag=unsupported
15443 # Tell ltmain to make .lib files, not .a files.
15445 # Tell ltmain to make .dll files, not .so files.
15447 # FIXME: Setting linknames here is a bad hack.
15448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15449 # The linker will automatically build a .lib file if we build a DLL.
15450 old_archive_From_new_cmds='true'
15451 # FIXME: Should let the user specify the lib program.
15452 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15453 fix_srcfile_path='`cygpath -w "$srcfile"`'
15454 enable_shared_with_static_runtimes=yes
15457 darwin* | rhapsody*)
15459 rhapsody* | darwin1.[012])
15460 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15464 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15466 case ${MACOSX_DEPLOYMENT_TARGET} in
15468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15471 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15477 archive_cmds_need_lc=no
15479 hardcode_automatic=yes
15480 hardcode_shlibpath_var=unsupported
15481 whole_archive_flag_spec=''
15482 link_all_deplibs=yes
15483 if test "$GCC" = yes ; then
15484 output_verbose_link_cmd='echo'
15485 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15486 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15488 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}'
15489 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}'
15491 case $cc_basename in
15493 output_verbose_link_cmd='echo'
15494 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15495 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15497 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}'
15498 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}'
15508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_libdir_flag_spec='-L$libdir'
15510 hardcode_shlibpath_var=no
15517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15518 # support. Future versions do this automatically, but an explicit c++rt0.o
15519 # does not break anything, and helps significantly (at the cost of a little
15522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15523 hardcode_libdir_flag_spec='-R$libdir'
15524 hardcode_direct=yes
15525 hardcode_shlibpath_var=no
15528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_direct=yes
15532 hardcode_minus_L=yes
15533 hardcode_shlibpath_var=no
15536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15537 freebsd* | kfreebsd*-gnu | dragonfly*)
15538 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15539 hardcode_libdir_flag_spec='-R$libdir'
15540 hardcode_direct=yes
15541 hardcode_shlibpath_var=no
15545 if test "$GCC" = yes; then
15546 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'
15548 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'
15550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15551 hardcode_libdir_separator=:
15552 hardcode_direct=yes
15554 # hardcode_minus_L: Not really in the search PATH,
15555 # but as the default location of the library.
15556 hardcode_minus_L=yes
15557 export_dynamic_flag_spec='${wl}-E'
15561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15566 if test "$with_gnu_ld" = no; then
15567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15568 hardcode_libdir_separator=:
15570 hardcode_direct=yes
15571 export_dynamic_flag_spec='${wl}-E'
15573 # hardcode_minus_L: Not really in the search PATH,
15574 # but as the default location of the library.
15575 hardcode_minus_L=yes
15580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15605 if test "$with_gnu_ld" = no; then
15606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15607 hardcode_libdir_separator=:
15611 hardcode_libdir_flag_spec_ld='+b $libdir'
15613 hardcode_shlibpath_var=no
15616 hardcode_direct=yes
15617 export_dynamic_flag_spec='${wl}-E'
15619 # hardcode_minus_L: Not really in the search PATH,
15620 # but as the default location of the library.
15621 hardcode_minus_L=yes
15627 irix5* | irix6* | nonstopux*)
15628 if test "$GCC" = yes; then
15629 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'
15631 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'
15632 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15635 hardcode_libdir_separator=:
15636 link_all_deplibs=yes
15640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15645 hardcode_libdir_flag_spec='-R$libdir'
15646 hardcode_direct=yes
15647 hardcode_shlibpath_var=no
15651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652 hardcode_direct=yes
15653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15654 hardcode_libdir_separator=:
15655 hardcode_shlibpath_var=no
15659 hardcode_direct=yes
15660 hardcode_shlibpath_var=no
15661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15665 export_dynamic_flag_spec='${wl}-E'
15668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15670 hardcode_libdir_flag_spec='-R$libdir'
15673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15681 hardcode_libdir_flag_spec='-L$libdir'
15682 hardcode_minus_L=yes
15683 allow_undefined_flag=unsupported
15684 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'
15685 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15689 if test "$GCC" = yes; then
15690 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15691 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'
15693 allow_undefined_flag=' -expect_unresolved \*'
15694 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'
15696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15697 hardcode_libdir_separator=:
15700 osf4* | osf5*) # as osf3* with the addition of -msym flag
15701 if test "$GCC" = yes; then
15702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15703 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'
15704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15706 allow_undefined_flag=' -expect_unresolved \*'
15707 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'
15708 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15709 $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'
15711 # Both c and cxx compiler support -rpath directly
15712 hardcode_libdir_flag_spec='-rpath $libdir'
15714 hardcode_libdir_separator=:
15718 no_undefined_flag=' -z text'
15719 if test "$GCC" = yes; then
15721 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15730 hardcode_libdir_flag_spec='-R$libdir'
15731 hardcode_shlibpath_var=no
15733 solaris2.[0-5] | solaris2.[0-5].*) ;;
15735 # The compiler driver will combine linker options so we
15736 # cannot just pass the convience library names through
15737 # without $wl, iff we do not link with $LD.
15738 # Luckily, gcc supports the same syntax we need for Sun Studio.
15739 # Supported since Solaris 2.6 (maybe 2.5.1?)
15742 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15744 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' ;;
15747 link_all_deplibs=yes
15751 if test "x$host_vendor" = xsequent; then
15752 # Use $CC to link under sequent, because it throws in some extra .o
15753 # files that make .init and .fini sections work.
15754 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_libdir_flag_spec='-L$libdir'
15759 hardcode_direct=yes
15760 hardcode_minus_L=yes
15761 hardcode_shlibpath_var=no
15765 case $host_vendor in
15767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_direct=yes # is this really true???
15771 ## LD is ld it makes a PLAMLIB
15772 ## CC just makes a GrossModule.
15773 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15774 reload_cmds='$CC -r -o $output$reload_objs'
15778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15782 runpath_var='LD_RUN_PATH'
15783 hardcode_shlibpath_var=no
15787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 hardcode_shlibpath_var=no
15789 export_dynamic_flag_spec='-Bexport'
15793 if test -d /usr/nec; then
15794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795 hardcode_shlibpath_var=no
15796 runpath_var=LD_RUN_PATH
15797 hardcode_runpath_var=yes
15802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15803 no_undefined_flag='${wl}-z,text'
15804 archive_cmds_need_lc=no
15805 hardcode_shlibpath_var=no
15806 runpath_var='LD_RUN_PATH'
15808 if test "$GCC" = yes; then
15809 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 sysv5* | sco3.2v5* | sco5v6*)
15818 # Note: We can NOT use -z defs as we might desire, because we do not
15819 # link with -lc, and that would cause any symbols used from libc to
15820 # always be unresolved, which means just about no library would
15821 # ever link correctly. If we're not using GNU ld we use -z text
15822 # though, which does catch some bad symbols but isn't as heavy-handed
15824 no_undefined_flag='${wl}-z,text'
15825 allow_undefined_flag='${wl}-z,nodefs'
15826 archive_cmds_need_lc=no
15827 hardcode_shlibpath_var=no
15828 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15829 hardcode_libdir_separator=':'
15830 link_all_deplibs=yes
15831 export_dynamic_flag_spec='${wl}-Bexport'
15832 runpath_var='LD_RUN_PATH'
15834 if test "$GCC" = yes; then
15835 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_libdir_flag_spec='-L$libdir'
15846 hardcode_shlibpath_var=no
15855 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15856 echo "${ECHO_T}$ld_shlibs" >&6; }
15857 test "$ld_shlibs" = no && can_build_shared=no
15860 # Do we need to explicitly link libc?
15862 case "x$archive_cmds_need_lc" in
15864 # Assume -lc should be added
15865 archive_cmds_need_lc=yes
15867 if test "$enable_shared" = yes && test "$GCC" = yes; then
15868 case $archive_cmds in
15870 # FIXME: we may have to deal with multi-command sequences.
15873 # Test whether the compiler implicitly links with -lc since on some
15874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15875 # to ld, don't add -lc before -lgcc.
15876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } 2>conftest.err; then
15888 libobjs=conftest.$ac_objext
15890 wl=$lt_prog_compiler_wl
15891 pic_flag=$lt_prog_compiler_pic
15897 lt_save_allow_undefined_flag=$allow_undefined_flag
15898 allow_undefined_flag=
15899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15900 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }
15905 archive_cmds_need_lc=no
15907 archive_cmds_need_lc=yes
15909 allow_undefined_flag=$lt_save_allow_undefined_flag
15911 cat conftest.err 1>&5
15914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15915 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15924 library_names_spec=
15925 libname_spec='lib$name'
15929 postuninstall_cmds=
15933 shlibpath_overrides_runpath=unknown
15935 dynamic_linker="$host_os ld.so"
15936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15937 if test "$GCC" = yes; then
15938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15939 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15940 # if the path contains ";" then we assume it to be the separator
15941 # otherwise default to the standard path separator (i.e. ":") - it is
15942 # assumed that no part of a normal pathname contains ";" but that should
15943 # okay in the real world where ";" in dirpaths is itself problematic.
15944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15951 need_lib_prefix=unknown
15952 hardcode_into_libs=no
15954 # when you set need_version to no, make sure it does not cause -set_version
15955 # flags to be left without arguments
15956 need_version=unknown
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15962 shlibpath_var=LIBPATH
15964 # AIX 3 has no versioning support, so we append a major version to the name.
15965 soname_spec='${libname}${release}${shared_ext}$major'
15972 hardcode_into_libs=yes
15973 if test "$host_cpu" = ia64; then
15974 # AIX 5 supports IA64
15975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15976 shlibpath_var=LD_LIBRARY_PATH
15978 # With GCC up to 2.95.x, collect2 would create an import file
15979 # for dependence libraries. The import file would start with
15980 # the line `#! .'. This would cause the generated library to
15981 # depend on `.', always an invalid library. This was fixed in
15982 # development snapshots of GCC prior to 3.0.
15984 aix4 | aix4.[01] | aix4.[01].*)
15985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15987 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15990 can_build_shared=no
15994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15995 # soname into executable. Probably we can add versioning support to
15996 # collect2, so additional links can be useful in future.
15997 if test "$aix_use_runtimelinking" = yes; then
15998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15999 # instead of lib<name>.a to let people know that these are not
16000 # typical AIX shared libraries.
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 # We preserve .a as extension for shared libraries through AIX4.2
16004 # and later when we are not doing run time linking.
16005 library_names_spec='${libname}${release}.a $libname.a'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16008 shlibpath_var=LIBPATH
16013 library_names_spec='$libname.ixlibrary $libname.a'
16014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16015 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'
16019 library_names_spec='${libname}${shared_ext}'
16020 dynamic_linker="$host_os ld.so"
16021 shlibpath_var=LIBRARY_PATH
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16033 # the default ld.so.conf also contains /usr/contrib/lib and
16034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16035 # libtool to hard-code these into programs
16038 cygwin* | mingw* | pw32*)
16039 version_type=windows
16044 case $GCC,$host_os in
16045 yes,cygwin* | yes,mingw* | yes,pw32*)
16046 library_names_spec='$libname.dll.a'
16047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16048 postinstall_cmds='base_file=`basename \${file}`~
16049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16050 dldir=$destdir/`dirname \$dlpath`~
16051 test -d \$dldir || mkdir -p \$dldir~
16052 $install_prog $dir/$dlname \$dldir/$dlname~
16053 chmod a+x \$dldir/$dlname'
16054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16055 dlpath=$dir/\$dldll~
16057 shlibpath_overrides_runpath=yes
16061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16066 # MinGW DLLs use traditional 'lib' prefix
16067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16070 # It is most probably a Windows format PATH printed by
16071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16072 # path with ; separators, and with drive letters. We can handle the
16073 # drive letters (cygwin fileutils understands them), so leave them,
16074 # especially as we might pass files found there to a mingw objdump,
16075 # which wouldn't understand a cygwinified path. Ahh.
16076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16082 # pw32 DLLs use 'pw' prefix rather than 'lib'
16083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16092 dynamic_linker='Win32 ld.exe'
16093 # FIXME: first we should search . and the directory the executable is in
16097 darwin* | rhapsody*)
16098 dynamic_linker="$host_os dyld"
16099 version_type=darwin
16102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16103 soname_spec='${libname}${release}${major}$shared_ext'
16104 shlibpath_overrides_runpath=yes
16105 shlibpath_var=DYLD_LIBRARY_PATH
16106 shrext_cmds='.dylib'
16107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16108 if test "$GCC" = yes; then
16109 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"`
16111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 shlibpath_var=LD_LIBRARY_PATH
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=no
16137 hardcode_into_libs=yes
16138 dynamic_linker='GNU ld.so'
16141 freebsd* | dragonfly*)
16142 # DragonFly does not have aout. When/if they implement a new
16143 # versioning mechanism, adjust this.
16144 if test -x /usr/bin/objformat; then
16145 objformat=`/usr/bin/objformat`
16148 freebsd[123]*) objformat=aout ;;
16149 *) objformat=elf ;;
16152 version_type=freebsd-$objformat
16153 case $version_type in
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16164 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16169 freebsd3.[01]* | freebsdelf3.[01]*)
16170 shlibpath_overrides_runpath=yes
16171 hardcode_into_libs=yes
16173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16175 shlibpath_overrides_runpath=no
16176 hardcode_into_libs=yes
16178 freebsd*) # from 4.6 on
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 hardcode_into_libs=yes
16195 hpux9* | hpux10* | hpux11*)
16196 # Give a soname corresponding to the major version so that dld.sl refuses to
16197 # link against other versions.
16204 hardcode_into_libs=yes
16205 dynamic_linker="$host_os dld.so"
16206 shlibpath_var=LD_LIBRARY_PATH
16207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 if test "X$HPUX_IA64_MODE" = X32; then
16211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16219 hardcode_into_libs=yes
16220 dynamic_linker="$host_os dld.sl"
16221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16230 dynamic_linker="$host_os dld.sl"
16231 shlibpath_var=SHLIB_PATH
16232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16238 postinstall_cmds='chmod 555 $lib'
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16248 shlibpath_var=LD_LIBRARY_PATH
16249 shlibpath_overrides_runpath=no
16250 hardcode_into_libs=yes
16253 irix5* | irix6* | nonstopux*)
16255 nonstopux*) version_type=nonstopux ;;
16257 if test "$lt_cv_prog_gnu_ld" = yes; then
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16268 irix5* | nonstopux*)
16269 libsuff= shlibsuff=
16272 case $LD in # libtool.m4 will add one of these switches to LD
16273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16274 libsuff= shlibsuff= libmagic=32-bit;;
16275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16276 libsuff=32 shlibsuff=N32 libmagic=N32;;
16277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16279 *) libsuff= shlibsuff= libmagic=never-match;;
16283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16284 shlibpath_overrides_runpath=no
16285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16287 hardcode_into_libs=yes
16290 # No shared lib support for Linux oldld, aout, or coff.
16291 linux*oldld* | linux*aout* | linux*coff*)
16295 # This must be Linux ELF.
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 shlibpath_overrides_runpath=no
16305 # This implies no fast_install, which is unacceptable.
16306 # Some rework will be needed to allow for fast_install
16307 # before this can be enabled.
16308 hardcode_into_libs=yes
16310 # Append ld.so.conf contents to the search path
16311 if test -f /etc/ld.so.conf; then
16312 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' ' '`
16313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16316 # We used to test for /lib/ld.so.1 and disable shared libraries on
16317 # powerpc, because MkLinux only supported shared libraries with the
16318 # GNU dynamic linker. Since this was broken with cross compilers,
16319 # most powerpc-linux boxes support dynamic linking these days and
16320 # people can always --disable-shared, the test was removed, and we
16321 # assume the GNU/Linux dynamic linker is in use.
16322 dynamic_linker='GNU/Linux ld.so'
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=no
16333 hardcode_into_libs=yes
16334 dynamic_linker='GNU ld.so'
16341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344 dynamic_linker='NetBSD (a.out) ld.so'
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 dynamic_linker='NetBSD ld.elf_so'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 shlibpath_overrides_runpath=yes
16352 hardcode_into_libs=yes
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 shlibpath_overrides_runpath=yes
16374 sys_lib_dlsearch_path_spec="/usr/lib"
16376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16379 *) need_version=no ;;
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16386 openbsd2.[89] | openbsd2.[89].*)
16387 shlibpath_overrides_runpath=no
16390 shlibpath_overrides_runpath=yes
16394 shlibpath_overrides_runpath=yes
16399 libname_spec='$name'
16402 library_names_spec='$libname${shared_ext} $libname.a'
16403 dynamic_linker='OS/2 ld.exe'
16404 shlibpath_var=LIBPATH
16407 osf3* | osf4* | osf5*)
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 hardcode_into_libs=yes
16427 # ldd complains unless libraries are executable
16428 postinstall_cmds='chmod +x $lib'
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=yes
16437 if test "$with_gnu_ld" = yes; then
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 case $host_vendor in
16450 shlibpath_overrides_runpath=no
16452 export_dynamic_flag_spec='${wl}-Blargedynsym'
16453 runpath_var=LD_RUN_PATH
16461 shlibpath_overrides_runpath=no
16462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16468 if test -d /usr/nec ;then
16470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16471 soname_spec='$libname${shared_ext}.$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16477 version_type=freebsd-elf
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 hardcode_into_libs=yes
16484 if test "$with_gnu_ld" = yes; then
16485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16486 shlibpath_overrides_runpath=no
16488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16489 shlibpath_overrides_runpath=yes
16492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16496 sys_lib_dlsearch_path_spec='/usr/lib'
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16511 echo "${ECHO_T}$dynamic_linker" >&6; }
16512 test "$dynamic_linker" = no && can_build_shared=no
16514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16515 if test "$GCC" = yes; then
16516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16522 if test -n "$hardcode_libdir_flag_spec" || \
16523 test -n "$runpath_var" || \
16524 test "X$hardcode_automatic" = "Xyes" ; then
16526 # We can hardcode non-existant directories.
16527 if test "$hardcode_direct" != no &&
16528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16529 # have to relink, otherwise we might link with an installed library
16530 # when we should be linking with a yet-to-be-installed one
16531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16532 test "$hardcode_minus_L" != no; then
16533 # Linking always hardcodes the temporary library directory.
16534 hardcode_action=relink
16536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16537 hardcode_action=immediate
16540 # We cannot hardcode anything, or else we can only hardcode existing
16542 hardcode_action=unsupported
16544 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16545 echo "${ECHO_T}$hardcode_action" >&6; }
16547 if test "$hardcode_action" = relink; then
16548 # Fast installation is not supported
16549 enable_fast_install=no
16550 elif test "$shlibpath_overrides_runpath" = yes ||
16551 test "$enable_shared" = no; then
16552 # Fast installation is not necessary
16553 enable_fast_install=needless
16558 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16560 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16563 { echo "$as_me:$LINENO: result: yes" >&5
16564 echo "${ECHO_T}yes" >&6; }
16566 # FIXME - insert some real tests, host_os isn't really good enough
16569 if test -n "$STRIP" ; then
16570 striplib="$STRIP -x"
16571 { echo "$as_me:$LINENO: result: yes" >&5
16572 echo "${ECHO_T}yes" >&6; }
16574 { echo "$as_me:$LINENO: result: no" >&5
16575 echo "${ECHO_T}no" >&6; }
16579 { echo "$as_me:$LINENO: result: no" >&5
16580 echo "${ECHO_T}no" >&6; }
16585 if test "x$enable_dlopen" != xyes; then
16586 enable_dlopen=unknown
16587 enable_dlopen_self=unknown
16588 enable_dlopen_self_static=unknown
16595 lt_cv_dlopen="load_add_on"
16597 lt_cv_dlopen_self=yes
16601 lt_cv_dlopen="LoadLibrary"
16606 lt_cv_dlopen="dlopen"
16611 # if libdl is installed we need to link against it
16612 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16613 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 ac_check_lib_save_LIBS=$LIBS
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any GCC internal prototype to avoid an error.
16627 Use char because int might match the return type of a GCC
16628 builtin and then its argument prototype would still apply. */
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_lib_dl_dlopen=yes
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_cv_lib_dl_dlopen=no
16683 rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16689 if test $ac_cv_lib_dl_dlopen = yes; then
16690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16693 lt_cv_dlopen="dyld"
16695 lt_cv_dlopen_self=yes
16702 { echo "$as_me:$LINENO: checking for shl_load" >&5
16703 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16704 if test "${ac_cv_func_shl_load+set}" = set; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16715 #define shl_load innocuous_shl_load
16717 /* System header to define __stub macros and hopefully few prototypes,
16718 which can conflict with char shl_load (); below.
16719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16720 <limits.h> exists even on freestanding compilers. */
16723 # include <limits.h>
16725 # include <assert.h>
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16737 /* The GNU C library defines this for functions which it implements
16738 to always fail with ENOSYS. Some functions are actually named
16739 something starting with __ and the normal name is an alias. */
16740 #if defined __stub_shl_load || defined __stub___shl_load
16747 return shl_load ();
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_link") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest$ac_exeext'
16777 { (case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_try") 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_func_shl_load=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_cv_func_shl_load=no
16794 rm -f core conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16799 if test $ac_cv_func_shl_load = yes; then
16800 lt_cv_dlopen="shl_load"
16802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 ac_check_lib_save_LIBS=$LIBS
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16816 /* Override any GCC internal prototype to avoid an error.
16817 Use char because int might match the return type of a GCC
16818 builtin and then its argument prototype would still apply. */
16826 return shl_load ();
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (ac_try="$ac_link"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_link") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest$ac_exeext'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_lib_dld_shl_load=yes
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ac_cv_lib_dld_shl_load=no
16873 rm -f core conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16877 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16878 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16879 if test $ac_cv_lib_dld_shl_load = yes; then
16880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16882 { echo "$as_me:$LINENO: checking for dlopen" >&5
16883 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16884 if test "${ac_cv_func_dlopen+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895 #define dlopen innocuous_dlopen
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char dlopen (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16903 # include <limits.h>
16905 # include <assert.h>
16910 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined __stub_dlopen || defined __stub___dlopen
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_link") 2>conftest.er1
16941 grep -v '^ *+' conftest.er1 >conftest.err
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest$ac_exeext'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_func_dlopen=yes
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_func_dlopen=no
16974 rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16977 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16979 if test $ac_cv_func_dlopen = yes; then
16980 lt_cv_dlopen="dlopen"
16982 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 ac_check_lib_save_LIBS=$LIBS
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_dl_dlopen=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_cv_lib_dl_dlopen=no
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17059 if test $ac_cv_lib_dl_dlopen = yes; then
17060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17062 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17063 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17064 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-lsvld $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest$ac_exeext'
17116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_lib_svld_dlopen=yes
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_cv_lib_svld_dlopen=no
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17139 if test $ac_cv_lib_svld_dlopen = yes; then
17140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17142 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 ac_check_lib_save_LIBS=$LIBS
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17166 return dld_link ();
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (ac_try="$ac_link"
17173 case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_link") 2>conftest.er1
17180 grep -v '^ *+' conftest.er1 >conftest.err
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
17185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try='test -s conftest$ac_exeext'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_lib_dld_dld_link=yes
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_dld_dld_link=no
17213 rm -f core conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17219 if test $ac_cv_lib_dld_dld_link = yes; then
17220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17241 if test "x$lt_cv_dlopen" != xno; then
17247 case $lt_cv_dlopen in
17249 save_CPPFLAGS="$CPPFLAGS"
17250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17252 save_LDFLAGS="$LDFLAGS"
17253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17256 LIBS="$lt_cv_dlopen_libs $LIBS"
17258 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17260 if test "${lt_cv_dlopen_self+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 if test "$cross_compiling" = yes; then :
17264 lt_cv_dlopen_self=cross
17266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17267 lt_status=$lt_dlunknown
17268 cat > conftest.$ac_ext <<EOF
17269 #line 17269 "configure"
17270 #include "confdefs.h"
17279 # define LT_DLGLOBAL RTLD_GLOBAL
17282 # define LT_DLGLOBAL DL_GLOBAL
17284 # define LT_DLGLOBAL 0
17288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17289 find out it does not work in some platform. */
17290 #ifndef LT_DLLAZY_OR_NOW
17292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17295 # define LT_DLLAZY_OR_NOW DL_LAZY
17298 # define LT_DLLAZY_OR_NOW RTLD_NOW
17301 # define LT_DLLAZY_OR_NOW DL_NOW
17303 # define LT_DLLAZY_OR_NOW 0
17311 extern "C" void exit (int);
17314 void fnord() { int i=42;}
17317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17318 int status = $lt_dlunknown;
17322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17324 /* dlclose (self); */
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17337 (./conftest; exit; ) >&5 2>/dev/null
17339 case x$lt_status in
17340 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17341 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17342 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17345 # compilation failed
17346 lt_cv_dlopen_self=no
17353 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17354 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17356 if test "x$lt_cv_dlopen_self" = xyes; then
17357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17358 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17359 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17360 if test "${lt_cv_dlopen_self_static+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 if test "$cross_compiling" = yes; then :
17364 lt_cv_dlopen_self_static=cross
17366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17367 lt_status=$lt_dlunknown
17368 cat > conftest.$ac_ext <<EOF
17369 #line 17369 "configure"
17370 #include "confdefs.h"
17379 # define LT_DLGLOBAL RTLD_GLOBAL
17382 # define LT_DLGLOBAL DL_GLOBAL
17384 # define LT_DLGLOBAL 0
17388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17389 find out it does not work in some platform. */
17390 #ifndef LT_DLLAZY_OR_NOW
17392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17395 # define LT_DLLAZY_OR_NOW DL_LAZY
17398 # define LT_DLLAZY_OR_NOW RTLD_NOW
17401 # define LT_DLLAZY_OR_NOW DL_NOW
17403 # define LT_DLLAZY_OR_NOW 0
17411 extern "C" void exit (int);
17414 void fnord() { int i=42;}
17417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17418 int status = $lt_dlunknown;
17422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17424 /* dlclose (self); */
17432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17433 (eval $ac_link) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17437 (./conftest; exit; ) >&5 2>/dev/null
17439 case x$lt_status in
17440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17442 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17445 # compilation failed
17446 lt_cv_dlopen_self_static=no
17453 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17454 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17457 CPPFLAGS="$save_CPPFLAGS"
17458 LDFLAGS="$save_LDFLAGS"
17463 case $lt_cv_dlopen_self in
17464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17465 *) enable_dlopen_self=unknown ;;
17468 case $lt_cv_dlopen_self_static in
17469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17470 *) enable_dlopen_self_static=unknown ;;
17475 # Report which library types will actually be built
17476 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17477 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17478 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17479 echo "${ECHO_T}$can_build_shared" >&6; }
17481 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17482 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17483 test "$can_build_shared" = "no" && enable_shared=no
17485 # On AIX, shared libraries and static libraries use the same namespace, and
17486 # are all built from PIC.
17489 test "$enable_shared" = yes && enable_static=no
17490 if test -n "$RANLIB"; then
17491 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17492 postinstall_cmds='$RANLIB $lib'
17497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17498 test "$enable_shared" = yes && enable_static=no
17502 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17503 echo "${ECHO_T}$enable_shared" >&6; }
17505 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17506 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17507 # Make sure either enable_shared or enable_static is yes.
17508 test "$enable_shared" = yes || enable_static=yes
17509 { echo "$as_me:$LINENO: result: $enable_static" >&5
17510 echo "${ECHO_T}$enable_static" >&6; }
17512 # The else clause should only fire when bootstrapping the
17513 # libtool distribution, otherwise you forgot to ship ltmain.sh
17514 # with your package, and you will get complaints that there are
17515 # no rules to generate ltmain.sh.
17516 if test -f "$ltmain"; then
17517 # See if we are running on zsh, and set the options which allow our commands through
17518 # without removal of \ escapes.
17519 if test -n "${ZSH_VERSION+set}" ; then
17520 setopt NO_GLOB_SUBST
17522 # Now quote all the things that may contain metacharacters while being
17523 # careful not to overquote the AC_SUBSTed values. We take copies of the
17524 # variables and quote the copies for generation of the libtool script.
17525 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17527 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17528 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17529 deplibs_check_method reload_flag reload_cmds need_locks \
17530 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17531 lt_cv_sys_global_symbol_to_c_name_address \
17532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17533 old_postinstall_cmds old_postuninstall_cmds \
17537 lt_prog_compiler_wl \
17538 lt_prog_compiler_pic \
17539 lt_prog_compiler_static \
17540 lt_prog_compiler_no_builtin_flag \
17541 export_dynamic_flag_spec \
17542 thread_safe_flag_spec \
17543 whole_archive_flag_spec \
17544 enable_shared_with_static_runtimes \
17546 old_archive_from_new_cmds \
17551 compiler_lib_search_path \
17553 archive_expsym_cmds \
17555 postuninstall_cmds \
17556 old_archive_from_expsyms_cmds \
17557 allow_undefined_flag \
17558 no_undefined_flag \
17559 export_symbols_cmds \
17560 hardcode_libdir_flag_spec \
17561 hardcode_libdir_flag_spec_ld \
17562 hardcode_libdir_separator \
17563 hardcode_automatic \
17565 module_expsym_cmds \
17566 lt_cv_prog_compiler_c_o \
17568 include_expsyms; do
17571 old_archive_cmds | \
17572 old_archive_from_new_cmds | \
17574 archive_expsym_cmds | \
17576 module_expsym_cmds | \
17577 old_archive_from_expsyms_cmds | \
17578 export_symbols_cmds | \
17579 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17580 postinstall_cmds | postuninstall_cmds | \
17581 old_postinstall_cmds | old_postuninstall_cmds | \
17582 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17583 # Double-quote double-evaled strings.
17584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17587 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17593 *'\$0 --fallback-echo"')
17594 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17598 cfgfile="${ofile}T"
17599 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17601 { echo "$as_me:$LINENO: creating $ofile" >&5
17602 echo "$as_me: creating $ofile" >&6;}
17604 cat <<__EOF__ >> "$cfgfile"
17607 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17608 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17609 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17611 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17612 # Free Software Foundation, Inc.
17614 # This file is part of GNU Libtool:
17615 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17617 # This program is free software; you can redistribute it and/or modify
17618 # it under the terms of the GNU General Public License as published by
17619 # the Free Software Foundation; either version 2 of the License, or
17620 # (at your option) any later version.
17622 # This program is distributed in the hope that it will be useful, but
17623 # WITHOUT ANY WARRANTY; without even the implied warranty of
17624 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17625 # General Public License for more details.
17627 # You should have received a copy of the GNU General Public License
17628 # along with this program; if not, write to the Free Software
17629 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17631 # As a special exception to the GNU General Public License, if you
17632 # distribute this file as part of a program that contains a
17633 # configuration script generated by Autoconf, you may include it under
17634 # the same distribution terms that you use for the rest of that program.
17636 # A sed program that does not truncate output.
17639 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17640 Xsed="$SED -e 1s/^X//"
17642 # The HP-UX ksh and POSIX shell print the target directory to stdout
17643 # if CDPATH is set.
17644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17646 # The names of the tagged configurations supported by this script.
17649 # ### BEGIN LIBTOOL CONFIG
17651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17653 # Shell to use when invoking shell scripts.
17656 # Whether or not to build shared libraries.
17657 build_libtool_libs=$enable_shared
17659 # Whether or not to build static libraries.
17660 build_old_libs=$enable_static
17662 # Whether or not to add -lc for building shared libraries.
17663 build_libtool_need_lc=$archive_cmds_need_lc
17665 # Whether or not to disallow shared libs when runtime libs are static
17666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17668 # Whether or not to optimize for fast installation.
17669 fast_install=$enable_fast_install
17672 host_alias=$host_alias
17676 # The build system.
17677 build_alias=$build_alias
17681 # An echo program that does not interpret backslashes.
17686 AR_FLAGS=$lt_AR_FLAGS
17691 # LTCC compiler flags.
17692 LTCFLAGS=$lt_LTCFLAGS
17694 # A language-specific compiler.
17697 # Is the compiler the GNU C compiler?
17703 # The linker used to build libraries.
17706 # Whether we need hard or soft links.
17709 # A BSD-compatible nm program.
17712 # A symbol stripping program
17715 # Used to examine libraries when file_magic_cmd begins "file"
17716 MAGIC_CMD=$MAGIC_CMD
17718 # Used on cygwin: DLL creation program.
17721 # Used on cygwin: object dumper.
17724 # Used on cygwin: assembler.
17727 # The name of the directory that contains temporary libtool files.
17730 # How to create reloadable object files.
17731 reload_flag=$lt_reload_flag
17732 reload_cmds=$lt_reload_cmds
17734 # How to pass a linker flag through the compiler.
17735 wl=$lt_lt_prog_compiler_wl
17737 # Object file suffix (normally "o").
17738 objext="$ac_objext"
17740 # Old archive suffix (normally "a").
17743 # Shared library suffix (normally ".so").
17744 shrext_cmds='$shrext_cmds'
17746 # Executable file suffix (normally "").
17749 # Additional compiler flags for building library objects.
17750 pic_flag=$lt_lt_prog_compiler_pic
17753 # What is the maximum length of a command?
17754 max_cmd_len=$lt_cv_sys_max_cmd_len
17756 # Does compiler simultaneously support -c and -o options?
17757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17759 # Must we lock files when doing compilation?
17760 need_locks=$lt_need_locks
17762 # Do we need the lib prefix for modules?
17763 need_lib_prefix=$need_lib_prefix
17765 # Do we need a version for libraries?
17766 need_version=$need_version
17768 # Whether dlopen is supported.
17769 dlopen_support=$enable_dlopen
17771 # Whether dlopen of programs is supported.
17772 dlopen_self=$enable_dlopen_self
17774 # Whether dlopen of statically linked programs is supported.
17775 dlopen_self_static=$enable_dlopen_self_static
17777 # Compiler flag to prevent dynamic linking.
17778 link_static_flag=$lt_lt_prog_compiler_static
17780 # Compiler flag to turn off builtin functions.
17781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17783 # Compiler flag to allow reflexive dlopens.
17784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17786 # Compiler flag to generate shared objects directly from archives.
17787 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17789 # Compiler flag to generate thread-safe objects.
17790 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17792 # Library versioning type.
17793 version_type=$version_type
17795 # Format of library name prefix.
17796 libname_spec=$lt_libname_spec
17798 # List of archive names. First name is the real one, the rest are links.
17799 # The last name is the one that the linker finds with -lNAME.
17800 library_names_spec=$lt_library_names_spec
17802 # The coded name of the library, if different from the real name.
17803 soname_spec=$lt_soname_spec
17805 # Commands used to build and install an old-style archive.
17807 old_archive_cmds=$lt_old_archive_cmds
17808 old_postinstall_cmds=$lt_old_postinstall_cmds
17809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17811 # Create an old-style archive from a shared archive.
17812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17814 # Create a temporary old-style archive to link instead of a shared archive.
17815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17817 # Commands used to build and install a shared archive.
17818 archive_cmds=$lt_archive_cmds
17819 archive_expsym_cmds=$lt_archive_expsym_cmds
17820 postinstall_cmds=$lt_postinstall_cmds
17821 postuninstall_cmds=$lt_postuninstall_cmds
17823 # Commands used to build a loadable module (assumed same as above if empty)
17824 module_cmds=$lt_module_cmds
17825 module_expsym_cmds=$lt_module_expsym_cmds
17827 # Commands to strip libraries.
17828 old_striplib=$lt_old_striplib
17829 striplib=$lt_striplib
17831 # Dependencies to place before the objects being linked to create a
17833 predep_objects=$lt_predep_objects
17835 # Dependencies to place after the objects being linked to create a
17837 postdep_objects=$lt_postdep_objects
17839 # Dependencies to place before the objects being linked to create a
17841 predeps=$lt_predeps
17843 # Dependencies to place after the objects being linked to create a
17845 postdeps=$lt_postdeps
17847 # The library search path used internally by the compiler when linking
17848 # a shared library.
17849 compiler_lib_search_path=$lt_compiler_lib_search_path
17851 # Method to check whether dependent libraries are shared objects.
17852 deplibs_check_method=$lt_deplibs_check_method
17854 # Command to use when deplibs_check_method == file_magic.
17855 file_magic_cmd=$lt_file_magic_cmd
17857 # Flag that allows shared libraries with undefined symbols to be built.
17858 allow_undefined_flag=$lt_allow_undefined_flag
17860 # Flag that forces no undefined symbols.
17861 no_undefined_flag=$lt_no_undefined_flag
17863 # Commands used to finish a libtool library installation in a directory.
17864 finish_cmds=$lt_finish_cmds
17866 # Same as above, but a single script fragment to be evaled but not shown.
17867 finish_eval=$lt_finish_eval
17869 # Take the output of nm and produce a listing of raw symbols and C names.
17870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17872 # Transform the output of nm in a proper C declaration
17873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17875 # Transform the output of nm in a C name address pair
17876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17878 # This is the shared library runtime path variable.
17879 runpath_var=$runpath_var
17881 # This is the shared library path variable.
17882 shlibpath_var=$shlibpath_var
17884 # Is shlibpath searched before the hard-coded library search path?
17885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17887 # How to hardcode a shared library path into an executable.
17888 hardcode_action=$hardcode_action
17890 # Whether we should hardcode library paths into libraries.
17891 hardcode_into_libs=$hardcode_into_libs
17893 # Flag to hardcode \$libdir into a binary during linking.
17894 # This must work even if \$libdir does not exist.
17895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17897 # If ld is used when linking, flag to hardcode \$libdir into
17898 # a binary during linking. This must work even if \$libdir does
17900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17902 # Whether we need a single -rpath flag with a separated argument.
17903 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17906 # resulting binary.
17907 hardcode_direct=$hardcode_direct
17909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17910 # resulting binary.
17911 hardcode_minus_L=$hardcode_minus_L
17913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17914 # the resulting binary.
17915 hardcode_shlibpath_var=$hardcode_shlibpath_var
17917 # Set to yes if building a shared library automatically hardcodes DIR into the library
17918 # and all subsequent libraries and executables linked against it.
17919 hardcode_automatic=$hardcode_automatic
17921 # Variables whose values should be saved in libtool wrapper scripts and
17922 # restored at relink time.
17923 variables_saved_for_relink="$variables_saved_for_relink"
17925 # Whether libtool must link a program against all its dependency libraries.
17926 link_all_deplibs=$link_all_deplibs
17928 # Compile-time system search path for libraries
17929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17931 # Run-time system search path for libraries
17932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17934 # Fix the shell variable \$srcfile for the compiler.
17935 fix_srcfile_path="$fix_srcfile_path"
17937 # Set to yes if exported symbols are required.
17938 always_export_symbols=$always_export_symbols
17940 # The commands to list exported symbols.
17941 export_symbols_cmds=$lt_export_symbols_cmds
17943 # The commands to extract the exported symbol list from a shared archive.
17944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17946 # Symbols that should not be listed in the preloaded symbols.
17947 exclude_expsyms=$lt_exclude_expsyms
17949 # Symbols that must always be exported.
17950 include_expsyms=$lt_include_expsyms
17952 # ### END LIBTOOL CONFIG
17959 cat <<\EOF >> "$cfgfile"
17961 # AIX sometimes has problems with the GCC collect2 program. For some
17962 # reason, if we set the COLLECT_NAMES environment variable, the problems
17963 # vanish in a puff of smoke.
17964 if test "X${COLLECT_NAMES+set}" != Xset; then
17966 export COLLECT_NAMES
17972 # We use sed instead of cat because bash on DJGPP gets confused if
17973 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17974 # text mode, it properly converts lines to CR/LF. This bash problem
17975 # is reportedly fixed, but why not run on old versions too?
17976 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17978 mv -f "$cfgfile" "$ofile" || \
17979 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17983 # If there is no Makefile yet, we rely on a make rule to execute
17984 # `config.status --recheck' to rerun these tests and create the
17985 # libtool script then.
17986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17987 if test -f "$ltmain_in"; then
17988 test -f Makefile && make "$ltmain"
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002 # Check whether --with-tags was given.
18003 if test "${with_tags+set}" = set; then
18004 withval=$with_tags; tagnames="$withval"
18008 if test -f "$ltmain" && test -n "$tagnames"; then
18009 if test ! -f "${ofile}"; then
18010 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18011 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18014 if test -z "$LTCC"; then
18015 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18016 if test -z "$LTCC"; then
18017 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18018 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18021 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18024 if test -z "$LTCFLAGS"; then
18025 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18028 # Extract list of available tagged configurations in $ofile.
18029 # Note that this assumes the entire list is on one line.
18030 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18033 for tagname in $tagnames; do
18035 # Check whether tagname contains only valid characters
18036 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18038 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18039 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18040 { (exit 1); exit 1; }; }
18044 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18046 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18047 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18048 { (exit 1); exit 1; }; }
18051 # Update the list of available tags.
18052 if test -n "$tagname"; then
18053 echo appending configuration tag \"$tagname\" to $ofile
18057 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18058 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18059 (test "X$CXX" != "Xg++"))) ; then
18061 ac_cpp='$CXXCPP $CPPFLAGS'
18062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069 archive_cmds_need_lc_CXX=no
18070 allow_undefined_flag_CXX=
18071 always_export_symbols_CXX=no
18072 archive_expsym_cmds_CXX=
18073 export_dynamic_flag_spec_CXX=
18074 hardcode_direct_CXX=no
18075 hardcode_libdir_flag_spec_CXX=
18076 hardcode_libdir_flag_spec_ld_CXX=
18077 hardcode_libdir_separator_CXX=
18078 hardcode_minus_L_CXX=no
18079 hardcode_shlibpath_var_CXX=unsupported
18080 hardcode_automatic_CXX=no
18082 module_expsym_cmds_CXX=
18083 link_all_deplibs_CXX=unknown
18084 old_archive_cmds_CXX=$old_archive_cmds
18085 no_undefined_flag_CXX=
18086 whole_archive_flag_spec_CXX=
18087 enable_shared_with_static_runtimes_CXX=no
18089 # Dependencies to place before and after the object being linked:
18090 predep_objects_CXX=
18091 postdep_objects_CXX=
18094 compiler_lib_search_path_CXX=
18096 # Source file extension for C++ test sources.
18099 # Object file extension for compiled C++ test sources.
18103 # Code to be used in simple compile tests
18104 lt_simple_compile_test_code="int some_variable = 0;\n"
18106 # Code to be used in simple link tests
18107 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18111 # If no C compiler was specified, use CC.
18114 # If no C compiler flags were specified, use CFLAGS.
18115 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18117 # Allow CC to be a program name with arguments.
18121 # save warnings/boilerplate of simple test code
18122 ac_outfile=conftest.$ac_objext
18123 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125 _lt_compiler_boilerplate=`cat conftest.err`
18128 ac_outfile=conftest.$ac_objext
18129 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18131 _lt_linker_boilerplate=`cat conftest.err`
18135 # Allow CC to be a program name with arguments.
18140 lt_save_with_gnu_ld=$with_gnu_ld
18141 lt_save_path_LD=$lt_cv_path_LD
18142 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18143 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18145 $as_unset lt_cv_prog_gnu_ld
18147 if test -n "${lt_cv_path_LDCXX+set}"; then
18148 lt_cv_path_LD=$lt_cv_path_LDCXX
18150 $as_unset lt_cv_path_LD
18152 test -z "${LDCXX+set}" || LD=$LDCXX
18156 for cc_temp in $compiler""; do
18158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18167 # We don't want -fno-exception wen compiling C++ code, so set the
18168 # no_builtin_flag separately
18169 if test "$GXX" = yes; then
18170 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18172 lt_prog_compiler_no_builtin_flag_CXX=
18175 if test "$GXX" = yes; then
18176 # Set up default GNU C++ configuration
18179 # Check whether --with-gnu-ld was given.
18180 if test "${with_gnu_ld+set}" = set; then
18181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18187 if test "$GCC" = yes; then
18188 # Check if gcc -print-prog-name=ld gives a path.
18189 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18190 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18193 # gcc leaves a trailing carriage return which upsets mingw
18194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18199 # Accept absolute paths.
18201 re_direlt='/[^/][^/]*/\.\./'
18202 # Canonicalize the pathname of ld
18203 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18204 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18205 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18207 test -z "$LD" && LD="$ac_prog"
18210 # If it fails, then pretend we aren't using GCC.
18214 # If it is relative, then search for the first ld in PATH.
18215 with_gnu_ld=unknown
18218 elif test "$with_gnu_ld" = yes; then
18219 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18220 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18222 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18223 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18225 if test "${lt_cv_path_LD+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 if test -z "$LD"; then
18229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18230 for ac_dir in $PATH; do
18232 test -z "$ac_dir" && ac_dir=.
18233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18234 lt_cv_path_LD="$ac_dir/$ac_prog"
18235 # Check to see if the program is GNU ld. I'd rather use --version,
18236 # but apparently some variants of GNU ld only accept -v.
18237 # Break only if it was the GNU/non-GNU ld that we prefer.
18238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18239 *GNU* | *'with BFD'*)
18240 test "$with_gnu_ld" != no && break
18243 test "$with_gnu_ld" != yes && break
18250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18254 LD="$lt_cv_path_LD"
18255 if test -n "$LD"; then
18256 { echo "$as_me:$LINENO: result: $LD" >&5
18257 echo "${ECHO_T}$LD" >&6; }
18259 { echo "$as_me:$LINENO: result: no" >&5
18260 echo "${ECHO_T}no" >&6; }
18262 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18263 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18264 { (exit 1); exit 1; }; }
18265 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18266 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18267 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18271 case `$LD -v 2>&1 </dev/null` in
18272 *GNU* | *'with BFD'*)
18273 lt_cv_prog_gnu_ld=yes
18276 lt_cv_prog_gnu_ld=no
18280 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18281 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18282 with_gnu_ld=$lt_cv_prog_gnu_ld
18286 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18287 # archiving commands below assume that GNU ld is being used.
18288 if test "$with_gnu_ld" = yes; then
18289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18290 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'
18292 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18295 # If archive_cmds runs LD, not CC, wlarc should be empty
18296 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18297 # investigate it a little bit more. (MM)
18300 # ancient GNU ld didn't support --whole-archive et. al.
18301 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18302 grep 'no-whole-archive' > /dev/null; then
18303 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18305 whole_archive_flag_spec_CXX=
18311 # A generic and very simple default shared library creation
18312 # command for GNU C++ for the case where it uses the native
18313 # linker, instead of GNU ld. If possible, this setting should
18314 # overridden to take advantage of the native linker features on
18315 # the platform it is being used on.
18316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18319 # Commands to make compiler produce verbose output that lists
18320 # what "hidden" libraries, object files and flags are used when
18321 # linking a shared library.
18322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18330 # PORTME: fill in a description of your system's C++ link characteristics
18331 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18332 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18336 # FIXME: insert proper C++ library support
18340 if test "$host_cpu" = ia64; then
18341 # On IA64, the linker does run time linking by default, so we don't
18342 # have to do anything special.
18343 aix_use_runtimelinking=no
18344 exp_sym_flag='-Bexport'
18347 aix_use_runtimelinking=no
18349 # Test if we are trying to use run time linking or normal
18350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18351 # need to do runtime linking.
18352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18353 for ld_flag in $LDFLAGS; do
18356 aix_use_runtimelinking=yes
18364 exp_sym_flag='-bexport'
18365 no_entry_flag='-bnoentry'
18368 # When large executables or shared objects are built, AIX ld can
18369 # have problems creating the table of contents. If linking a library
18370 # or program results in "error TOC overflow" add -mminimal-toc to
18371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18374 archive_cmds_CXX=''
18375 hardcode_direct_CXX=yes
18376 hardcode_libdir_separator_CXX=':'
18377 link_all_deplibs_CXX=yes
18379 if test "$GXX" = yes; then
18380 case $host_os in aix4.[012]|aix4.[012].*)
18381 # We only want to do this on AIX 4.2 and lower, the check
18382 # below for broken collect2 doesn't work under 4.3+
18383 collect2name=`${CC} -print-prog-name=collect2`
18384 if test -f "$collect2name" && \
18385 strings "$collect2name" | grep resolve_lib_name >/dev/null
18387 # We have reworked collect2
18388 hardcode_direct_CXX=yes
18390 # We have old collect2
18391 hardcode_direct_CXX=unsupported
18392 # It fails to find uninstalled libraries when the uninstalled
18393 # path is not listed in the libpath. Setting hardcode_minus_L
18394 # to unsupported forces relinking
18395 hardcode_minus_L_CXX=yes
18396 hardcode_libdir_flag_spec_CXX='-L$libdir'
18397 hardcode_libdir_separator_CXX=
18401 shared_flag='-shared'
18402 if test "$aix_use_runtimelinking" = yes; then
18403 shared_flag="$shared_flag "'${wl}-G'
18407 if test "$host_cpu" = ia64; then
18408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18409 # chokes on -Wl,-G. The following line is correct:
18412 if test "$aix_use_runtimelinking" = yes; then
18413 shared_flag='${wl}-G'
18415 shared_flag='${wl}-bM:SRE'
18420 # It seems that -bexpall does not export symbols beginning with
18421 # underscore (_), so it is better to generate a list of symbols to export.
18422 always_export_symbols_CXX=yes
18423 if test "$aix_use_runtimelinking" = yes; then
18424 # Warning - without using the other runtime loading flags (-brtl),
18425 # -berok will link without error, but may produce a broken library.
18426 allow_undefined_flag_CXX='-berok'
18427 # Determine the default libpath from the value encoded in an empty executable.
18428 cat >conftest.$ac_ext <<_ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18480 # Check for a 64-bit object if we didn't find anything.
18481 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; }
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18490 rm -f core conftest.err conftest.$ac_objext \
18491 conftest$ac_exeext conftest.$ac_ext
18492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18494 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18496 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"
18498 if test "$host_cpu" = ia64; then
18499 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18500 allow_undefined_flag_CXX="-z nodefs"
18501 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"
18503 # Determine the default libpath from the value encoded in an empty executable.
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18519 rm -f conftest.$ac_objext conftest$ac_exeext
18520 if { (ac_try="$ac_link"
18521 case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_link") 2>conftest.er1
18528 grep -v '^ *+' conftest.er1 >conftest.err
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18556 # Check for a 64-bit object if we didn't find anything.
18557 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; }
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18566 rm -f core conftest.err conftest.$ac_objext \
18567 conftest$ac_exeext conftest.$ac_ext
18568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18570 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18571 # Warning - without using the other run time loading flags,
18572 # -berok will link without error, but may produce a broken library.
18573 no_undefined_flag_CXX=' ${wl}-bernotok'
18574 allow_undefined_flag_CXX=' ${wl}-berok'
18575 # Exported symbols can be pulled into shared objects from archives
18576 whole_archive_flag_spec_CXX='$convenience'
18577 archive_cmds_need_lc_CXX=yes
18578 # This is similar to how AIX traditionally builds its shared libraries.
18579 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'
18585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18586 allow_undefined_flag_CXX=unsupported
18587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18588 # support --undefined. This deserves some investigation. FIXME
18589 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18596 case $cc_basename in
18598 # FIXME: insert proper C++ library support
18604 cygwin* | mingw* | pw32*)
18605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18606 # as there is no search path for DLLs.
18607 hardcode_libdir_flag_spec_CXX='-L$libdir'
18608 allow_undefined_flag_CXX=unsupported
18609 always_export_symbols_CXX=no
18610 enable_shared_with_static_runtimes_CXX=yes
18612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18613 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'
18614 # If the export-symbols file already is a .def file (1st line
18615 # is EXPORTS), use it as is; otherwise, prepend...
18616 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18617 cp $export_symbols $output_objdir/$soname.def;
18619 echo EXPORTS > $output_objdir/$soname.def;
18620 cat $export_symbols >> $output_objdir/$soname.def;
18622 $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'
18627 darwin* | rhapsody*)
18629 rhapsody* | darwin1.[012])
18630 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18634 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18636 case ${MACOSX_DEPLOYMENT_TARGET} in
18638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18641 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18647 archive_cmds_need_lc_CXX=no
18648 hardcode_direct_CXX=no
18649 hardcode_automatic_CXX=yes
18650 hardcode_shlibpath_var_CXX=unsupported
18651 whole_archive_flag_spec_CXX=''
18652 link_all_deplibs_CXX=yes
18654 if test "$GXX" = yes ; then
18655 lt_int_apple_cc_single_mod=no
18656 output_verbose_link_cmd='echo'
18657 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18658 lt_int_apple_cc_single_mod=yes
18660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18661 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18663 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'
18665 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18668 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}'
18670 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}'
18672 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}'
18674 case $cc_basename in
18676 output_verbose_link_cmd='echo'
18677 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'
18678 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18680 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}'
18681 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}'
18691 case $cc_basename in
18693 # FIXME: insert proper C++ library support
18697 # Green Hills C++ Compiler
18698 # FIXME: insert proper C++ library support
18702 # FIXME: insert proper C++ library support
18708 # C++ shared libraries reported to be fairly broken before switch to ELF
18712 archive_cmds_need_lc_CXX=no
18714 freebsd* | kfreebsd*-gnu | dragonfly*)
18715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18723 hardcode_libdir_separator_CXX=:
18724 export_dynamic_flag_spec_CXX='${wl}-E'
18725 hardcode_direct_CXX=yes
18726 hardcode_minus_L_CXX=yes # Not in the search PATH,
18727 # but as the default
18728 # location of the library.
18730 case $cc_basename in
18732 # FIXME: insert proper C++ library support
18736 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'
18737 # Commands to make compiler produce verbose output that lists
18738 # what "hidden" libraries, object files and flags are used when
18739 # linking a shared library.
18741 # There doesn't appear to be a way to prevent this compiler from
18742 # explicitly linking system object files so we need to strip them
18743 # from the output so that they don't get included in the library
18745 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'
18748 if test "$GXX" = yes; then
18749 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'
18751 # FIXME: insert proper C++ library support
18758 if test $with_gnu_ld = no; then
18759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18760 hardcode_libdir_separator_CXX=:
18764 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18767 export_dynamic_flag_spec_CXX='${wl}-E'
18773 hardcode_direct_CXX=no
18774 hardcode_shlibpath_var_CXX=no
18777 hardcode_direct_CXX=yes
18778 hardcode_minus_L_CXX=yes # Not in the search PATH,
18779 # but as the default
18780 # location of the library.
18784 case $cc_basename in
18786 # FIXME: insert proper C++ library support
18792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18801 # Commands to make compiler produce verbose output that lists
18802 # what "hidden" libraries, object files and flags are used when
18803 # linking a shared library.
18805 # There doesn't appear to be a way to prevent this compiler from
18806 # explicitly linking system object files so we need to strip them
18807 # from the output so that they don't get included in the library
18809 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'
18812 if test "$GXX" = yes; then
18813 if test $with_gnu_ld = no; then
18816 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18822 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'
18827 # FIXME: insert proper C++ library support
18834 hardcode_direct_CXX=no
18835 hardcode_shlibpath_var_CXX=no
18836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18837 export_dynamic_flag_spec_CXX='${wl}-E'
18838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18839 # Instead, shared libraries are loaded at an image base (0x10000000 by
18840 # default) and relocated if they conflict, which is a slow very memory
18841 # consuming and fragmenting process. To avoid this, we pick a random,
18842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18844 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'
18845 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'
18848 case $cc_basename in
18851 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'
18853 # Archives containing C++ object files must be created using
18854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18855 # necessary to make sure instantiated templates are included
18857 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18860 if test "$GXX" = yes; then
18861 if test "$with_gnu_ld" = no; then
18862 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'
18864 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'
18867 link_all_deplibs_CXX=yes
18870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18871 hardcode_libdir_separator_CXX=:
18874 case $cc_basename in
18876 # Kuck and Associates, Inc. (KAI) C++ Compiler
18878 # KCC will only create a shared library if the output file
18879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18880 # to its proper name (with version) after linking.
18881 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'
18882 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'
18883 # Commands to make compiler produce verbose output that lists
18884 # what "hidden" libraries, object files and flags are used when
18885 # linking a shared library.
18887 # There doesn't appear to be a way to prevent this compiler from
18888 # explicitly linking system object files so we need to strip them
18889 # from the output so that they don't get included in the library
18891 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'
18893 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18896 # Archives containing C++ object files must be created using
18897 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18898 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18903 # version 8.0 and above of icpc choke on multiply defined symbols
18904 # if we add $predep_objects and $postdep_objects, however 7.1 and
18905 # earlier do not add the objects themselves.
18906 case `$CC -V 2>&1` in
18908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18909 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'
18911 *) # Version 8.0 or newer
18914 ia64*) tmp_idyn=' -i_dynamic';;
18916 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917 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'
18920 archive_cmds_need_lc_CXX=no
18921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18923 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18926 # Portland Group C++ compiler
18927 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18928 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'
18930 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18932 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'
18936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18937 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'
18939 runpath_var=LD_RUN_PATH
18940 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18941 hardcode_libdir_separator_CXX=:
18943 # Commands to make compiler produce verbose output that lists
18944 # what "hidden" libraries, object files and flags are used when
18945 # linking a shared library.
18947 # There doesn't appear to be a way to prevent this compiler from
18948 # explicitly linking system object files so we need to strip them
18949 # from the output so that they don't get included in the library
18951 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'
18956 # FIXME: insert proper C++ library support
18960 # FIXME: insert proper C++ library support
18964 case $cc_basename in
18966 # FIXME: insert proper C++ library support
18970 # FIXME: insert proper C++ library support
18976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18977 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18979 hardcode_libdir_flag_spec_CXX='-R$libdir'
18980 hardcode_direct_CXX=yes
18981 hardcode_shlibpath_var_CXX=no
18983 # Workaround some broken pre-1.5 toolchains
18984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18987 # C++ shared libraries are fairly broken
18991 hardcode_direct_CXX=yes
18992 hardcode_shlibpath_var_CXX=no
18993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18996 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18997 export_dynamic_flag_spec_CXX='${wl}-E'
18998 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19000 output_verbose_link_cmd='echo'
19003 case $cc_basename in
19005 # Kuck and Associates, Inc. (KAI) C++ Compiler
19007 # KCC will only create a shared library if the output file
19008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19009 # to its proper name (with version) after linking.
19010 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'
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19013 hardcode_libdir_separator_CXX=:
19015 # Archives containing C++ object files must be created using
19016 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19017 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19021 # Rational C++ 2.4.1
19022 # FIXME: insert proper C++ library support
19026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19027 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'
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19032 # Commands to make compiler produce verbose output that lists
19033 # what "hidden" libraries, object files and flags are used when
19034 # linking a shared library.
19036 # There doesn't appear to be a way to prevent this compiler from
19037 # explicitly linking system object files so we need to strip them
19038 # from the output so that they don't get included in the library
19040 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'
19043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19044 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19045 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'
19047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19048 hardcode_libdir_separator_CXX=:
19050 # Commands to make compiler produce verbose output that lists
19051 # what "hidden" libraries, object files and flags are used when
19052 # linking a shared library.
19053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19056 # FIXME: insert proper C++ library support
19063 case $cc_basename in
19065 # Kuck and Associates, Inc. (KAI) C++ Compiler
19067 # KCC will only create a shared library if the output file
19068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19069 # to its proper name (with version) after linking.
19070 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'
19072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19073 hardcode_libdir_separator_CXX=:
19075 # Archives containing C++ object files must be created using
19076 # the KAI C++ compiler.
19077 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19080 # Rational C++ 2.4.1
19081 # FIXME: insert proper C++ library support
19085 allow_undefined_flag_CXX=' -expect_unresolved \*'
19086 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'
19087 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19088 echo "-hidden">> $lib.exp~
19089 $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~
19092 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19093 hardcode_libdir_separator_CXX=:
19095 # Commands to make compiler produce verbose output that lists
19096 # what "hidden" libraries, object files and flags are used when
19097 # linking a shared library.
19099 # There doesn't appear to be a way to prevent this compiler from
19100 # explicitly linking system object files so we need to strip them
19101 # from the output so that they don't get included in the library
19103 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'
19106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19108 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'
19110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19111 hardcode_libdir_separator_CXX=:
19113 # Commands to make compiler produce verbose output that lists
19114 # what "hidden" libraries, object files and flags are used when
19115 # linking a shared library.
19116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19119 # FIXME: insert proper C++ library support
19126 # FIXME: insert proper C++ library support
19130 case $cc_basename in
19133 # FIXME: insert proper C++ library support
19138 # FIXME: insert proper C++ library support
19142 # FIXME: insert proper C++ library support
19148 case $cc_basename in
19150 # Sun C++ 4.2, 5.x and Centerline C++
19151 archive_cmds_need_lc_CXX=yes
19152 no_undefined_flag_CXX=' -zdefs'
19153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19155 $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'
19157 hardcode_libdir_flag_spec_CXX='-R$libdir'
19158 hardcode_shlibpath_var_CXX=no
19160 solaris2.[0-5] | solaris2.[0-5].*) ;;
19162 # The C++ compiler is used as linker so we must use $wl
19163 # flag to pass the commands to the underlying system
19164 # linker. We must also pass each convience library through
19165 # to the system linker between allextract/defaultextract.
19166 # The C++ compiler will combine linker options so we
19167 # cannot just pass the convience library names through
19169 # Supported since Solaris 2.6 (maybe 2.5.1?)
19170 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'
19173 link_all_deplibs_CXX=yes
19175 output_verbose_link_cmd='echo'
19177 # Archives containing C++ object files must be created using
19178 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19179 # necessary to make sure instantiated templates are included
19181 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19184 # Green Hills C++ Compiler
19185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19187 # The C++ compiler must be used to create the archive.
19188 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19191 # GNU C++ compiler with Solaris linker
19192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19193 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19194 if $CC --version | grep -v '^2\.7' > /dev/null; then
19195 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19197 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19199 # Commands to make compiler produce verbose output that lists
19200 # what "hidden" libraries, object files and flags are used when
19201 # linking a shared library.
19202 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19204 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19206 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19208 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19210 # Commands to make compiler produce verbose output that lists
19211 # what "hidden" libraries, object files and flags are used when
19212 # linking a shared library.
19213 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19216 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19221 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19222 no_undefined_flag_CXX='${wl}-z,text'
19223 archive_cmds_need_lc_CXX=no
19224 hardcode_shlibpath_var_CXX=no
19225 runpath_var='LD_RUN_PATH'
19227 case $cc_basename in
19229 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 sysv5* | sco3.2v5* | sco5v6*)
19239 # Note: We can NOT use -z defs as we might desire, because we do not
19240 # link with -lc, and that would cause any symbols used from libc to
19241 # always be unresolved, which means just about no library would
19242 # ever link correctly. If we're not using GNU ld we use -z text
19243 # though, which does catch some bad symbols but isn't as heavy-handed
19245 # For security reasons, it is highly recommended that you always
19246 # use absolute paths for naming shared libraries, and exclude the
19247 # DT_RUNPATH tag from executables and libraries. But doing so
19248 # requires that you compile everything twice, which is a pain.
19249 # So that behaviour is only enabled if SCOABSPATH is set to a
19250 # non-empty value in the environment. Most likely only useful for
19251 # creating official distributions of packages.
19252 # This is a hack until libtool officially supports absolute path
19253 # names for shared libraries.
19254 no_undefined_flag_CXX='${wl}-z,text'
19255 allow_undefined_flag_CXX='${wl}-z,nodefs'
19256 archive_cmds_need_lc_CXX=no
19257 hardcode_shlibpath_var_CXX=no
19258 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19259 hardcode_libdir_separator_CXX=':'
19260 link_all_deplibs_CXX=yes
19261 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19262 runpath_var='LD_RUN_PATH'
19264 case $cc_basename in
19266 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19267 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19270 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19271 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19276 case $cc_basename in
19278 # NonStop-UX NCC 3.20
19279 # FIXME: insert proper C++ library support
19283 # FIXME: insert proper C++ library support
19289 # FIXME: insert proper C++ library support
19293 # FIXME: insert proper C++ library support
19297 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19298 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19299 test "$ld_shlibs_CXX" = no && can_build_shared=no
19305 cat > conftest.$ac_ext <<EOF
19309 Foo (void) { a = 0; }
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; then
19320 # Parse the compiler output and extract the necessary
19321 # objects, libraries and library flags.
19323 # Sentinel used to keep track of whether or not we are before
19324 # the conftest object file.
19325 pre_test_object_deps_done=no
19327 # The `*' in the case matches for architectures that use `case' in
19328 # $output_verbose_cmd can trigger glob expansion during the loop
19329 # eval without this substitution.
19330 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19332 for p in `eval $output_verbose_link_cmd`; do
19336 # Some compilers place space between "-{L,R}" and the path.
19337 # Remove the space.
19338 if test $p = "-L" \
19339 || test $p = "-R"; then
19346 if test "$pre_test_object_deps_done" = no; then
19349 # Internal compiler library paths should come after those
19350 # provided the user. The postdeps already come after the
19351 # user supplied libs so there is no need to process them.
19352 if test -z "$compiler_lib_search_path_CXX"; then
19353 compiler_lib_search_path_CXX="${prev}${p}"
19355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19358 # The "-l" case would never come before the object being
19359 # linked, so don't bother handling this case.
19362 if test -z "$postdeps_CXX"; then
19363 postdeps_CXX="${prev}${p}"
19365 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19371 # This assumes that the test object file only shows up
19372 # once in the compiler output.
19373 if test "$p" = "conftest.$objext"; then
19374 pre_test_object_deps_done=yes
19378 if test "$pre_test_object_deps_done" = no; then
19379 if test -z "$predep_objects_CXX"; then
19380 predep_objects_CXX="$p"
19382 predep_objects_CXX="$predep_objects_CXX $p"
19385 if test -z "$postdep_objects_CXX"; then
19386 postdep_objects_CXX="$p"
19388 postdep_objects_CXX="$postdep_objects_CXX $p"
19393 *) ;; # Ignore the rest.
19401 echo "libtool.m4: error: problem compiling CXX test program"
19404 $rm -f confest.$objext
19406 # PORTME: override above test on systems where it is broken
19409 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19410 # hack all around it, let's just trust "g++" to DTRT.
19411 predep_objects_CXX=
19412 postdep_objects_CXX=
19417 case $cc_basename in
19419 # Adding this requires a known-good setup of shared libraries for
19420 # Sun compiler versions before 5.6, else PIC objects from an old
19421 # archive will be linked into the output, leading to subtle bugs.
19422 postdeps_CXX='-lCstd -lCrun'
19429 case " $postdeps_CXX " in
19430 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19433 lt_prog_compiler_wl_CXX=
19434 lt_prog_compiler_pic_CXX=
19435 lt_prog_compiler_static_CXX=
19437 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19440 # C++ specific cases for pic, static, wl, etc.
19441 if test "$GXX" = yes; then
19442 lt_prog_compiler_wl_CXX='-Wl,'
19443 lt_prog_compiler_static_CXX='-static'
19447 # All AIX code is PIC.
19448 if test "$host_cpu" = ia64; then
19449 # AIX 5 now supports IA64 processor
19450 lt_prog_compiler_static_CXX='-Bstatic'
19454 # FIXME: we need at least 68020 code to build shared libraries, but
19455 # adding the `-m68020' flag to GCC prevents building anything better,
19457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19459 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19460 # PIC is the default for these OSes.
19462 mingw* | os2* | pw32*)
19463 # This hack is so that the source file can tell whether it is being
19464 # built for inclusion in a dll (and should export symbols for example).
19465 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19467 darwin* | rhapsody*)
19468 # PIC is the default on this platform
19469 # Common symbols not allowed in MH_DYLIB files
19470 lt_prog_compiler_pic_CXX='-fno-common'
19473 # DJGPP does not support shared libraries at all
19474 lt_prog_compiler_pic_CXX=
19477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19478 # Instead, we relocate shared libraries at runtime.
19481 if test -d /usr/nec; then
19482 lt_prog_compiler_pic_CXX=-Kconform_pic
19486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19487 # not for PA HP-UX.
19492 lt_prog_compiler_pic_CXX='-fPIC'
19497 lt_prog_compiler_pic_CXX='-fPIC'
19503 # All AIX code is PIC.
19504 if test "$host_cpu" = ia64; then
19505 # AIX 5 now supports IA64 processor
19506 lt_prog_compiler_static_CXX='-Bstatic'
19508 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19512 case $cc_basename in
19514 # Green Hills C++ Compiler
19515 # _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"
19520 # PIC is the default on this platform
19521 # Common symbols not allowed in MH_DYLIB files
19522 case $cc_basename in
19524 lt_prog_compiler_pic_CXX='-qnocommon'
19525 lt_prog_compiler_wl_CXX='-Wl,'
19530 case $cc_basename in
19532 lt_prog_compiler_pic_CXX='-KPIC'
19535 # Green Hills C++ Compiler
19536 lt_prog_compiler_pic_CXX='-pic'
19542 freebsd* | kfreebsd*-gnu | dragonfly*)
19543 # FreeBSD uses GNU C++
19545 hpux9* | hpux10* | hpux11*)
19546 case $cc_basename in
19548 lt_prog_compiler_wl_CXX='-Wl,'
19549 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19550 if test "$host_cpu" != ia64; then
19551 lt_prog_compiler_pic_CXX='+Z'
19555 lt_prog_compiler_wl_CXX='-Wl,'
19556 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19562 lt_prog_compiler_pic_CXX='+Z'
19571 # This is c89, which is MS Visual C++ (no shared libs)
19572 # Anyone wants to do a port?
19574 irix5* | irix6* | nonstopux*)
19575 case $cc_basename in
19577 lt_prog_compiler_wl_CXX='-Wl,'
19578 lt_prog_compiler_static_CXX='-non_shared'
19579 # CC pic flag -KPIC is the default.
19586 case $cc_basename in
19589 lt_prog_compiler_wl_CXX='--backend -Wl,'
19590 lt_prog_compiler_pic_CXX='-fPIC'
19594 lt_prog_compiler_wl_CXX='-Wl,'
19595 lt_prog_compiler_pic_CXX='-KPIC'
19596 lt_prog_compiler_static_CXX='-static'
19599 # Portland Group C++ compiler.
19600 lt_prog_compiler_wl_CXX='-Wl,'
19601 lt_prog_compiler_pic_CXX='-fpic'
19602 lt_prog_compiler_static_CXX='-Bstatic'
19606 # Make sure the PIC flag is empty. It appears that all Alpha
19607 # Linux and Compaq Tru64 Unix objects are PIC.
19608 lt_prog_compiler_pic_CXX=
19609 lt_prog_compiler_static_CXX='-non_shared'
19620 case $cc_basename in
19622 lt_prog_compiler_pic_CXX='-W c,exportall'
19630 osf3* | osf4* | osf5*)
19631 case $cc_basename in
19633 lt_prog_compiler_wl_CXX='--backend -Wl,'
19636 # Rational C++ 2.4.1
19637 lt_prog_compiler_pic_CXX='-pic'
19640 # Digital/Compaq C++
19641 lt_prog_compiler_wl_CXX='-Wl,'
19642 # Make sure the PIC flag is empty. It appears that all Alpha
19643 # Linux and Compaq Tru64 Unix objects are PIC.
19644 lt_prog_compiler_pic_CXX=
19645 lt_prog_compiler_static_CXX='-non_shared'
19654 case $cc_basename in
19656 # Sun C++ 4.2, 5.x and Centerline C++
19657 lt_prog_compiler_pic_CXX='-KPIC'
19658 lt_prog_compiler_static_CXX='-Bstatic'
19659 lt_prog_compiler_wl_CXX='-Qoption ld '
19662 # Green Hills C++ Compiler
19663 lt_prog_compiler_pic_CXX='-PIC'
19670 case $cc_basename in
19673 lt_prog_compiler_pic_CXX='-pic'
19674 lt_prog_compiler_static_CXX='-Bstatic'
19678 lt_prog_compiler_pic_CXX='-pic'
19685 case $cc_basename in
19687 # NonStop-UX NCC 3.20
19688 lt_prog_compiler_pic_CXX='-KPIC'
19694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19695 case $cc_basename in
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 lt_prog_compiler_pic_CXX='-KPIC'
19699 lt_prog_compiler_static_CXX='-Bstatic'
19706 lt_prog_compiler_can_build_shared_CXX=no
19711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19712 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19715 # Check to make sure the PIC flag actually works.
19717 if test -n "$lt_prog_compiler_pic_CXX"; then
19719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19721 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 lt_prog_compiler_pic_works_CXX=no
19725 ac_outfile=conftest.$ac_objext
19726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19728 # Insert the option either (1) after the last *FLAGS variable, or
19729 # (2) before a word containing "conftest.", or (3) at the end.
19730 # Note that $ac_compile itself does not contain backslashes and begins
19731 # with a dollar sign (not a hyphen), so the echo should work correctly.
19732 # The option is referenced via a variable to avoid confusing sed.
19733 lt_compile=`echo "$ac_compile" | $SED \
19734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19736 -e 's:$: $lt_compiler_flag:'`
19737 (eval echo "\"\$as_me:19737: $lt_compile\"" >&5)
19738 (eval "$lt_compile" 2>conftest.err)
19740 cat conftest.err >&5
19741 echo "$as_me:19741: \$? = $ac_status" >&5
19742 if (exit $ac_status) && test -s "$ac_outfile"; then
19743 # The compiler can only warn and ignore the option if not recognized
19744 # So say no if there are warnings other than the usual output.
19745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19748 lt_prog_compiler_pic_works_CXX=yes
19754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19755 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19757 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19758 case $lt_prog_compiler_pic_CXX in
19760 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19763 lt_prog_compiler_pic_CXX=
19764 lt_prog_compiler_can_build_shared_CXX=no
19769 # For platforms which do not support PIC, -DPIC is meaningless:
19771 lt_prog_compiler_pic_CXX=
19774 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19779 # Check to make sure the static flag actually works.
19781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19784 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 lt_prog_compiler_static_works_CXX=no
19788 save_LDFLAGS="$LDFLAGS"
19789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19790 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19792 # The linker can only warn and ignore the option if not recognized
19793 # So say no if there are warnings
19794 if test -s conftest.err; then
19795 # Append any errors to the config.log.
19796 cat conftest.err 1>&5
19797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19799 if diff conftest.exp conftest.er2 >/dev/null; then
19800 lt_prog_compiler_static_works_CXX=yes
19803 lt_prog_compiler_static_works_CXX=yes
19807 LDFLAGS="$save_LDFLAGS"
19810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19811 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19813 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19816 lt_prog_compiler_static_CXX=
19820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 lt_cv_prog_compiler_c_o_CXX=no
19826 $rm -r conftest 2>/dev/null
19830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19832 lt_compiler_flag="-o out/conftest2.$ac_objext"
19833 # Insert the option either (1) after the last *FLAGS variable, or
19834 # (2) before a word containing "conftest.", or (3) at the end.
19835 # Note that $ac_compile itself does not contain backslashes and begins
19836 # with a dollar sign (not a hyphen), so the echo should work correctly.
19837 lt_compile=`echo "$ac_compile" | $SED \
19838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19840 -e 's:$: $lt_compiler_flag:'`
19841 (eval echo "\"\$as_me:19841: $lt_compile\"" >&5)
19842 (eval "$lt_compile" 2>out/conftest.err)
19844 cat out/conftest.err >&5
19845 echo "$as_me:19845: \$? = $ac_status" >&5
19846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19848 # The compiler can only warn and ignore the option if not recognized
19849 # So say no if there are warnings
19850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19853 lt_cv_prog_compiler_c_o_CXX=yes
19858 # SGI C++ compiler will create directory out/ii_files/ for
19859 # template instantiation
19860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19861 $rm out/* && rmdir out
19867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19871 hard_links="nottested"
19872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19873 # do not overwrite the value of need_locks provided by the user
19874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19880 ln conftest.a conftest.b 2>&5 || hard_links=no
19881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19882 { echo "$as_me:$LINENO: result: $hard_links" >&5
19883 echo "${ECHO_T}$hard_links" >&6; }
19884 if test "$hard_links" = no; then
19885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19896 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19899 # If we're using GNU nm, then we don't want the "-C" option.
19900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19902 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'
19904 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'
19908 export_symbols_cmds_CXX="$ltdll_cmds"
19911 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'
19914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19918 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19919 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19920 test "$ld_shlibs_CXX" = no && can_build_shared=no
19923 # Do we need to explicitly link libc?
19925 case "x$archive_cmds_need_lc_CXX" in
19927 # Assume -lc should be added
19928 archive_cmds_need_lc_CXX=yes
19930 if test "$enable_shared" = yes && test "$GCC" = yes; then
19931 case $archive_cmds_CXX in
19933 # FIXME: we may have to deal with multi-command sequences.
19936 # Test whether the compiler implicitly links with -lc since on some
19937 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19938 # to ld, don't add -lc before -lgcc.
19939 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19940 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19945 (eval $ac_compile) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } 2>conftest.err; then
19951 libobjs=conftest.$ac_objext
19953 wl=$lt_prog_compiler_wl_CXX
19954 pic_flag=$lt_prog_compiler_pic_CXX
19960 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19961 allow_undefined_flag_CXX=
19962 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19963 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }
19968 archive_cmds_need_lc_CXX=no
19970 archive_cmds_need_lc_CXX=yes
19972 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19974 cat conftest.err 1>&5
19977 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19978 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19985 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19986 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19987 library_names_spec=
19988 libname_spec='lib$name'
19992 postuninstall_cmds=
19996 shlibpath_overrides_runpath=unknown
19998 dynamic_linker="$host_os ld.so"
19999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20000 if test "$GCC" = yes; then
20001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20002 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20003 # if the path contains ";" then we assume it to be the separator
20004 # otherwise default to the standard path separator (i.e. ":") - it is
20005 # assumed that no part of a normal pathname contains ";" but that should
20006 # okay in the real world where ";" in dirpaths is itself problematic.
20007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20012 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20014 need_lib_prefix=unknown
20015 hardcode_into_libs=no
20017 # when you set need_version to no, make sure it does not cause -set_version
20018 # flags to be left without arguments
20019 need_version=unknown
20024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20025 shlibpath_var=LIBPATH
20027 # AIX 3 has no versioning support, so we append a major version to the name.
20028 soname_spec='${libname}${release}${shared_ext}$major'
20035 hardcode_into_libs=yes
20036 if test "$host_cpu" = ia64; then
20037 # AIX 5 supports IA64
20038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20039 shlibpath_var=LD_LIBRARY_PATH
20041 # With GCC up to 2.95.x, collect2 would create an import file
20042 # for dependence libraries. The import file would start with
20043 # the line `#! .'. This would cause the generated library to
20044 # depend on `.', always an invalid library. This was fixed in
20045 # development snapshots of GCC prior to 3.0.
20047 aix4 | aix4.[01] | aix4.[01].*)
20048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20050 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20053 can_build_shared=no
20057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20058 # soname into executable. Probably we can add versioning support to
20059 # collect2, so additional links can be useful in future.
20060 if test "$aix_use_runtimelinking" = yes; then
20061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20062 # instead of lib<name>.a to let people know that these are not
20063 # typical AIX shared libraries.
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20066 # We preserve .a as extension for shared libraries through AIX4.2
20067 # and later when we are not doing run time linking.
20068 library_names_spec='${libname}${release}.a $libname.a'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20071 shlibpath_var=LIBPATH
20076 library_names_spec='$libname.ixlibrary $libname.a'
20077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20078 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'
20082 library_names_spec='${libname}${shared_ext}'
20083 dynamic_linker="$host_os ld.so"
20084 shlibpath_var=LIBRARY_PATH
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20093 shlibpath_var=LD_LIBRARY_PATH
20094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20096 # the default ld.so.conf also contains /usr/contrib/lib and
20097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20098 # libtool to hard-code these into programs
20101 cygwin* | mingw* | pw32*)
20102 version_type=windows
20107 case $GCC,$host_os in
20108 yes,cygwin* | yes,mingw* | yes,pw32*)
20109 library_names_spec='$libname.dll.a'
20110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20111 postinstall_cmds='base_file=`basename \${file}`~
20112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20113 dldir=$destdir/`dirname \$dlpath`~
20114 test -d \$dldir || mkdir -p \$dldir~
20115 $install_prog $dir/$dlname \$dldir/$dlname~
20116 chmod a+x \$dldir/$dlname'
20117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20118 dlpath=$dir/\$dldll~
20120 shlibpath_overrides_runpath=yes
20124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20125 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20126 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20129 # MinGW DLLs use traditional 'lib' prefix
20130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20132 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20133 # It is most probably a Windows format PATH printed by
20134 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20135 # path with ; separators, and with drive letters. We can handle the
20136 # drive letters (cygwin fileutils understands them), so leave them,
20137 # especially as we might pass files found there to a mingw objdump,
20138 # which wouldn't understand a cygwinified path. Ahh.
20139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20145 # pw32 DLLs use 'pw' prefix rather than 'lib'
20146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20155 dynamic_linker='Win32 ld.exe'
20156 # FIXME: first we should search . and the directory the executable is in
20160 darwin* | rhapsody*)
20161 dynamic_linker="$host_os dyld"
20162 version_type=darwin
20165 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20166 soname_spec='${libname}${release}${major}$shared_ext'
20167 shlibpath_overrides_runpath=yes
20168 shlibpath_var=DYLD_LIBRARY_PATH
20169 shrext_cmds='.dylib'
20170 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20171 if test "$GCC" = yes; then
20172 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"`
20174 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 shlibpath_var=LD_LIBRARY_PATH
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20201 dynamic_linker='GNU ld.so'
20204 freebsd* | dragonfly*)
20205 # DragonFly does not have aout. When/if they implement a new
20206 # versioning mechanism, adjust this.
20207 if test -x /usr/bin/objformat; then
20208 objformat=`/usr/bin/objformat`
20211 freebsd[123]*) objformat=aout ;;
20212 *) objformat=elf ;;
20215 version_type=freebsd-$objformat
20216 case $version_type in
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20227 shlibpath_var=LD_LIBRARY_PATH
20230 shlibpath_overrides_runpath=yes
20232 freebsd3.[01]* | freebsdelf3.[01]*)
20233 shlibpath_overrides_runpath=yes
20234 hardcode_into_libs=yes
20236 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20237 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20238 shlibpath_overrides_runpath=no
20239 hardcode_into_libs=yes
20241 freebsd*) # from 4.6 on
20242 shlibpath_overrides_runpath=yes
20243 hardcode_into_libs=yes
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 hardcode_into_libs=yes
20258 hpux9* | hpux10* | hpux11*)
20259 # Give a soname corresponding to the major version so that dld.sl refuses to
20260 # link against other versions.
20267 hardcode_into_libs=yes
20268 dynamic_linker="$host_os dld.so"
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272 soname_spec='${libname}${release}${shared_ext}$major'
20273 if test "X$HPUX_IA64_MODE" = X32; then
20274 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20276 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20282 hardcode_into_libs=yes
20283 dynamic_linker="$host_os dld.sl"
20284 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20293 dynamic_linker="$host_os dld.sl"
20294 shlibpath_var=SHLIB_PATH
20295 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20300 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20301 postinstall_cmds='chmod 555 $lib'
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=no
20313 hardcode_into_libs=yes
20316 irix5* | irix6* | nonstopux*)
20318 nonstopux*) version_type=nonstopux ;;
20320 if test "$lt_cv_prog_gnu_ld" = yes; then
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20331 irix5* | nonstopux*)
20332 libsuff= shlibsuff=
20335 case $LD in # libtool.m4 will add one of these switches to LD
20336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20337 libsuff= shlibsuff= libmagic=32-bit;;
20338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20339 libsuff=32 shlibsuff=N32 libmagic=N32;;
20340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20342 *) libsuff= shlibsuff= libmagic=never-match;;
20346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20347 shlibpath_overrides_runpath=no
20348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20350 hardcode_into_libs=yes
20353 # No shared lib support for Linux oldld, aout, or coff.
20354 linux*oldld* | linux*aout* | linux*coff*)
20358 # This must be Linux ELF.
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath=no
20368 # This implies no fast_install, which is unacceptable.
20369 # Some rework will be needed to allow for fast_install
20370 # before this can be enabled.
20371 hardcode_into_libs=yes
20373 # Append ld.so.conf contents to the search path
20374 if test -f /etc/ld.so.conf; then
20375 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' ' '`
20376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20379 # We used to test for /lib/ld.so.1 and disable shared libraries on
20380 # powerpc, because MkLinux only supported shared libraries with the
20381 # GNU dynamic linker. Since this was broken with cross compilers,
20382 # most powerpc-linux boxes support dynamic linking these days and
20383 # people can always --disable-shared, the test was removed, and we
20384 # assume the GNU/Linux dynamic linker is in use.
20385 dynamic_linker='GNU/Linux ld.so'
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=no
20396 hardcode_into_libs=yes
20397 dynamic_linker='GNU ld.so'
20404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20407 dynamic_linker='NetBSD (a.out) ld.so'
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 dynamic_linker='NetBSD ld.elf_so'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 shlibpath_overrides_runpath=yes
20415 hardcode_into_libs=yes
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 shlibpath_overrides_runpath=yes
20437 sys_lib_dlsearch_path_spec="/usr/lib"
20439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20441 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20442 *) need_version=no ;;
20444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20446 shlibpath_var=LD_LIBRARY_PATH
20447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20449 openbsd2.[89] | openbsd2.[89].*)
20450 shlibpath_overrides_runpath=no
20453 shlibpath_overrides_runpath=yes
20457 shlibpath_overrides_runpath=yes
20462 libname_spec='$name'
20465 library_names_spec='$libname${shared_ext} $libname.a'
20466 dynamic_linker='OS/2 ld.exe'
20467 shlibpath_var=LIBPATH
20470 osf3* | osf4* | osf5*)
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 hardcode_into_libs=yes
20490 # ldd complains unless libraries are executable
20491 postinstall_cmds='chmod +x $lib'
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20500 if test "$with_gnu_ld" = yes; then
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 case $host_vendor in
20513 shlibpath_overrides_runpath=no
20515 export_dynamic_flag_spec='${wl}-Blargedynsym'
20516 runpath_var=LD_RUN_PATH
20524 shlibpath_overrides_runpath=no
20525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20531 if test -d /usr/nec ;then
20533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20534 soname_spec='$libname${shared_ext}.$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20540 version_type=freebsd-elf
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20544 soname_spec='${libname}${release}${shared_ext}$major'
20545 shlibpath_var=LD_LIBRARY_PATH
20546 hardcode_into_libs=yes
20547 if test "$with_gnu_ld" = yes; then
20548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20549 shlibpath_overrides_runpath=no
20551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20552 shlibpath_overrides_runpath=yes
20555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20559 sys_lib_dlsearch_path_spec='/usr/lib'
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 shlibpath_var=LD_LIBRARY_PATH
20573 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20574 echo "${ECHO_T}$dynamic_linker" >&6; }
20575 test "$dynamic_linker" = no && can_build_shared=no
20577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20578 if test "$GCC" = yes; then
20579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20582 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20584 hardcode_action_CXX=
20585 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20586 test -n "$runpath_var_CXX" || \
20587 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20589 # We can hardcode non-existant directories.
20590 if test "$hardcode_direct_CXX" != no &&
20591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20592 # have to relink, otherwise we might link with an installed library
20593 # when we should be linking with a yet-to-be-installed one
20594 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20595 test "$hardcode_minus_L_CXX" != no; then
20596 # Linking always hardcodes the temporary library directory.
20597 hardcode_action_CXX=relink
20599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20600 hardcode_action_CXX=immediate
20603 # We cannot hardcode anything, or else we can only hardcode existing
20605 hardcode_action_CXX=unsupported
20607 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20608 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20610 if test "$hardcode_action_CXX" = relink; then
20611 # Fast installation is not supported
20612 enable_fast_install=no
20613 elif test "$shlibpath_overrides_runpath" = yes ||
20614 test "$enable_shared" = no; then
20615 # Fast installation is not necessary
20616 enable_fast_install=needless
20620 # The else clause should only fire when bootstrapping the
20621 # libtool distribution, otherwise you forgot to ship ltmain.sh
20622 # with your package, and you will get complaints that there are
20623 # no rules to generate ltmain.sh.
20624 if test -f "$ltmain"; then
20625 # See if we are running on zsh, and set the options which allow our commands through
20626 # without removal of \ escapes.
20627 if test -n "${ZSH_VERSION+set}" ; then
20628 setopt NO_GLOB_SUBST
20630 # Now quote all the things that may contain metacharacters while being
20631 # careful not to overquote the AC_SUBSTed values. We take copies of the
20632 # variables and quote the copies for generation of the libtool script.
20633 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20637 deplibs_check_method reload_flag reload_cmds need_locks \
20638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20639 lt_cv_sys_global_symbol_to_c_name_address \
20640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20641 old_postinstall_cmds old_postuninstall_cmds \
20645 lt_prog_compiler_wl_CXX \
20646 lt_prog_compiler_pic_CXX \
20647 lt_prog_compiler_static_CXX \
20648 lt_prog_compiler_no_builtin_flag_CXX \
20649 export_dynamic_flag_spec_CXX \
20650 thread_safe_flag_spec_CXX \
20651 whole_archive_flag_spec_CXX \
20652 enable_shared_with_static_runtimes_CXX \
20653 old_archive_cmds_CXX \
20654 old_archive_from_new_cmds_CXX \
20655 predep_objects_CXX \
20656 postdep_objects_CXX \
20659 compiler_lib_search_path_CXX \
20661 archive_expsym_cmds_CXX \
20662 postinstall_cmds_CXX \
20663 postuninstall_cmds_CXX \
20664 old_archive_from_expsyms_cmds_CXX \
20665 allow_undefined_flag_CXX \
20666 no_undefined_flag_CXX \
20667 export_symbols_cmds_CXX \
20668 hardcode_libdir_flag_spec_CXX \
20669 hardcode_libdir_flag_spec_ld_CXX \
20670 hardcode_libdir_separator_CXX \
20671 hardcode_automatic_CXX \
20673 module_expsym_cmds_CXX \
20674 lt_cv_prog_compiler_c_o_CXX \
20675 exclude_expsyms_CXX \
20676 include_expsyms_CXX; do
20679 old_archive_cmds_CXX | \
20680 old_archive_from_new_cmds_CXX | \
20681 archive_cmds_CXX | \
20682 archive_expsym_cmds_CXX | \
20683 module_cmds_CXX | \
20684 module_expsym_cmds_CXX | \
20685 old_archive_from_expsyms_cmds_CXX | \
20686 export_symbols_cmds_CXX | \
20687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20688 postinstall_cmds | postuninstall_cmds | \
20689 old_postinstall_cmds | old_postuninstall_cmds | \
20690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20691 # Double-quote double-evaled strings.
20692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20701 *'\$0 --fallback-echo"')
20702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20708 cat <<__EOF__ >> "$cfgfile"
20709 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20713 # Shell to use when invoking shell scripts.
20716 # Whether or not to build shared libraries.
20717 build_libtool_libs=$enable_shared
20719 # Whether or not to build static libraries.
20720 build_old_libs=$enable_static
20722 # Whether or not to add -lc for building shared libraries.
20723 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20725 # Whether or not to disallow shared libs when runtime libs are static
20726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20728 # Whether or not to optimize for fast installation.
20729 fast_install=$enable_fast_install
20732 host_alias=$host_alias
20736 # The build system.
20737 build_alias=$build_alias
20741 # An echo program that does not interpret backslashes.
20746 AR_FLAGS=$lt_AR_FLAGS
20751 # LTCC compiler flags.
20752 LTCFLAGS=$lt_LTCFLAGS
20754 # A language-specific compiler.
20755 CC=$lt_compiler_CXX
20757 # Is the compiler the GNU C compiler?
20763 # The linker used to build libraries.
20766 # Whether we need hard or soft links.
20769 # A BSD-compatible nm program.
20772 # A symbol stripping program
20775 # Used to examine libraries when file_magic_cmd begins "file"
20776 MAGIC_CMD=$MAGIC_CMD
20778 # Used on cygwin: DLL creation program.
20781 # Used on cygwin: object dumper.
20784 # Used on cygwin: assembler.
20787 # The name of the directory that contains temporary libtool files.
20790 # How to create reloadable object files.
20791 reload_flag=$lt_reload_flag
20792 reload_cmds=$lt_reload_cmds
20794 # How to pass a linker flag through the compiler.
20795 wl=$lt_lt_prog_compiler_wl_CXX
20797 # Object file suffix (normally "o").
20798 objext="$ac_objext"
20800 # Old archive suffix (normally "a").
20803 # Shared library suffix (normally ".so").
20804 shrext_cmds='$shrext_cmds'
20806 # Executable file suffix (normally "").
20809 # Additional compiler flags for building library objects.
20810 pic_flag=$lt_lt_prog_compiler_pic_CXX
20813 # What is the maximum length of a command?
20814 max_cmd_len=$lt_cv_sys_max_cmd_len
20816 # Does compiler simultaneously support -c and -o options?
20817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20819 # Must we lock files when doing compilation?
20820 need_locks=$lt_need_locks
20822 # Do we need the lib prefix for modules?
20823 need_lib_prefix=$need_lib_prefix
20825 # Do we need a version for libraries?
20826 need_version=$need_version
20828 # Whether dlopen is supported.
20829 dlopen_support=$enable_dlopen
20831 # Whether dlopen of programs is supported.
20832 dlopen_self=$enable_dlopen_self
20834 # Whether dlopen of statically linked programs is supported.
20835 dlopen_self_static=$enable_dlopen_self_static
20837 # Compiler flag to prevent dynamic linking.
20838 link_static_flag=$lt_lt_prog_compiler_static_CXX
20840 # Compiler flag to turn off builtin functions.
20841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20843 # Compiler flag to allow reflexive dlopens.
20844 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20846 # Compiler flag to generate shared objects directly from archives.
20847 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20849 # Compiler flag to generate thread-safe objects.
20850 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20852 # Library versioning type.
20853 version_type=$version_type
20855 # Format of library name prefix.
20856 libname_spec=$lt_libname_spec
20858 # List of archive names. First name is the real one, the rest are links.
20859 # The last name is the one that the linker finds with -lNAME.
20860 library_names_spec=$lt_library_names_spec
20862 # The coded name of the library, if different from the real name.
20863 soname_spec=$lt_soname_spec
20865 # Commands used to build and install an old-style archive.
20867 old_archive_cmds=$lt_old_archive_cmds_CXX
20868 old_postinstall_cmds=$lt_old_postinstall_cmds
20869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20871 # Create an old-style archive from a shared archive.
20872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20874 # Create a temporary old-style archive to link instead of a shared archive.
20875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20877 # Commands used to build and install a shared archive.
20878 archive_cmds=$lt_archive_cmds_CXX
20879 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20880 postinstall_cmds=$lt_postinstall_cmds
20881 postuninstall_cmds=$lt_postuninstall_cmds
20883 # Commands used to build a loadable module (assumed same as above if empty)
20884 module_cmds=$lt_module_cmds_CXX
20885 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20887 # Commands to strip libraries.
20888 old_striplib=$lt_old_striplib
20889 striplib=$lt_striplib
20891 # Dependencies to place before the objects being linked to create a
20893 predep_objects=$lt_predep_objects_CXX
20895 # Dependencies to place after the objects being linked to create a
20897 postdep_objects=$lt_postdep_objects_CXX
20899 # Dependencies to place before the objects being linked to create a
20901 predeps=$lt_predeps_CXX
20903 # Dependencies to place after the objects being linked to create a
20905 postdeps=$lt_postdeps_CXX
20907 # The library search path used internally by the compiler when linking
20908 # a shared library.
20909 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20911 # Method to check whether dependent libraries are shared objects.
20912 deplibs_check_method=$lt_deplibs_check_method
20914 # Command to use when deplibs_check_method == file_magic.
20915 file_magic_cmd=$lt_file_magic_cmd
20917 # Flag that allows shared libraries with undefined symbols to be built.
20918 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20920 # Flag that forces no undefined symbols.
20921 no_undefined_flag=$lt_no_undefined_flag_CXX
20923 # Commands used to finish a libtool library installation in a directory.
20924 finish_cmds=$lt_finish_cmds
20926 # Same as above, but a single script fragment to be evaled but not shown.
20927 finish_eval=$lt_finish_eval
20929 # Take the output of nm and produce a listing of raw symbols and C names.
20930 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20932 # Transform the output of nm in a proper C declaration
20933 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20935 # Transform the output of nm in a C name address pair
20936 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20938 # This is the shared library runtime path variable.
20939 runpath_var=$runpath_var
20941 # This is the shared library path variable.
20942 shlibpath_var=$shlibpath_var
20944 # Is shlibpath searched before the hard-coded library search path?
20945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20947 # How to hardcode a shared library path into an executable.
20948 hardcode_action=$hardcode_action_CXX
20950 # Whether we should hardcode library paths into libraries.
20951 hardcode_into_libs=$hardcode_into_libs
20953 # Flag to hardcode \$libdir into a binary during linking.
20954 # This must work even if \$libdir does not exist.
20955 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20957 # If ld is used when linking, flag to hardcode \$libdir into
20958 # a binary during linking. This must work even if \$libdir does
20960 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20962 # Whether we need a single -rpath flag with a separated argument.
20963 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20965 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20966 # resulting binary.
20967 hardcode_direct=$hardcode_direct_CXX
20969 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20970 # resulting binary.
20971 hardcode_minus_L=$hardcode_minus_L_CXX
20973 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20974 # the resulting binary.
20975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20977 # Set to yes if building a shared library automatically hardcodes DIR into the library
20978 # and all subsequent libraries and executables linked against it.
20979 hardcode_automatic=$hardcode_automatic_CXX
20981 # Variables whose values should be saved in libtool wrapper scripts and
20982 # restored at relink time.
20983 variables_saved_for_relink="$variables_saved_for_relink"
20985 # Whether libtool must link a program against all its dependency libraries.
20986 link_all_deplibs=$link_all_deplibs_CXX
20988 # Compile-time system search path for libraries
20989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20991 # Run-time system search path for libraries
20992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20994 # Fix the shell variable \$srcfile for the compiler.
20995 fix_srcfile_path="$fix_srcfile_path_CXX"
20997 # Set to yes if exported symbols are required.
20998 always_export_symbols=$always_export_symbols_CXX
21000 # The commands to list exported symbols.
21001 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21003 # The commands to extract the exported symbol list from a shared archive.
21004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21006 # Symbols that should not be listed in the preloaded symbols.
21007 exclude_expsyms=$lt_exclude_expsyms_CXX
21009 # Symbols that must always be exported.
21010 include_expsyms=$lt_include_expsyms_CXX
21012 # ### END LIBTOOL TAG CONFIG: $tagname
21018 # If there is no Makefile yet, we rely on a make rule to execute
21019 # `config.status --recheck' to rerun these tests and create the
21020 # libtool script then.
21021 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21022 if test -f "$ltmain_in"; then
21023 test -f Makefile && make "$ltmain"
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21038 with_gnu_ldcxx=$with_gnu_ld
21039 with_gnu_ld=$lt_save_with_gnu_ld
21040 lt_cv_path_LDCXX=$lt_cv_path_LD
21041 lt_cv_path_LD=$lt_save_path_LD
21042 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21043 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21051 if test -n "$F77" && test "X$F77" != "Xno"; then
21054 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21055 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21056 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21059 archive_cmds_need_lc_F77=no
21060 allow_undefined_flag_F77=
21061 always_export_symbols_F77=no
21062 archive_expsym_cmds_F77=
21063 export_dynamic_flag_spec_F77=
21064 hardcode_direct_F77=no
21065 hardcode_libdir_flag_spec_F77=
21066 hardcode_libdir_flag_spec_ld_F77=
21067 hardcode_libdir_separator_F77=
21068 hardcode_minus_L_F77=no
21069 hardcode_automatic_F77=no
21071 module_expsym_cmds_F77=
21072 link_all_deplibs_F77=unknown
21073 old_archive_cmds_F77=$old_archive_cmds
21074 no_undefined_flag_F77=
21075 whole_archive_flag_spec_F77=
21076 enable_shared_with_static_runtimes_F77=no
21078 # Source file extension for f77 test sources.
21081 # Object file extension for compiled f77 test sources.
21085 # Code to be used in simple compile tests
21086 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21088 # Code to be used in simple link tests
21089 lt_simple_link_test_code=" program t\n end\n"
21091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21093 # If no C compiler was specified, use CC.
21096 # If no C compiler flags were specified, use CFLAGS.
21097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21099 # Allow CC to be a program name with arguments.
21103 # save warnings/boilerplate of simple test code
21104 ac_outfile=conftest.$ac_objext
21105 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21107 _lt_compiler_boilerplate=`cat conftest.err`
21110 ac_outfile=conftest.$ac_objext
21111 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21113 _lt_linker_boilerplate=`cat conftest.err`
21117 # Allow CC to be a program name with arguments.
21122 for cc_temp in $compiler""; do
21124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21133 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21134 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21135 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21136 echo "${ECHO_T}$can_build_shared" >&6; }
21138 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21139 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21140 test "$can_build_shared" = "no" && enable_shared=no
21142 # On AIX, shared libraries and static libraries use the same namespace, and
21143 # are all built from PIC.
21146 test "$enable_shared" = yes && enable_static=no
21147 if test -n "$RANLIB"; then
21148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21149 postinstall_cmds='$RANLIB $lib'
21153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21154 test "$enable_shared" = yes && enable_static=no
21158 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21159 echo "${ECHO_T}$enable_shared" >&6; }
21161 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21162 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21163 # Make sure either enable_shared or enable_static is yes.
21164 test "$enable_shared" = yes || enable_static=yes
21165 { echo "$as_me:$LINENO: result: $enable_static" >&5
21166 echo "${ECHO_T}$enable_static" >&6; }
21171 lt_prog_compiler_wl_F77=
21172 lt_prog_compiler_pic_F77=
21173 lt_prog_compiler_static_F77=
21175 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21178 if test "$GCC" = yes; then
21179 lt_prog_compiler_wl_F77='-Wl,'
21180 lt_prog_compiler_static_F77='-static'
21184 # All AIX code is PIC.
21185 if test "$host_cpu" = ia64; then
21186 # AIX 5 now supports IA64 processor
21187 lt_prog_compiler_static_F77='-Bstatic'
21192 # FIXME: we need at least 68020 code to build shared libraries, but
21193 # adding the `-m68020' flag to GCC prevents building anything better,
21195 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21198 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21199 # PIC is the default for these OSes.
21202 mingw* | pw32* | os2*)
21203 # This hack is so that the source file can tell whether it is being
21204 # built for inclusion in a dll (and should export symbols for example).
21205 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21208 darwin* | rhapsody*)
21209 # PIC is the default on this platform
21210 # Common symbols not allowed in MH_DYLIB files
21211 lt_prog_compiler_pic_F77='-fno-common'
21215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21216 # Instead, we relocate shared libraries at runtime.
21220 # Just because we use GCC doesn't mean we suddenly get shared libraries
21221 # on systems that don't support them.
21222 lt_prog_compiler_can_build_shared_F77=no
21227 if test -d /usr/nec; then
21228 lt_prog_compiler_pic_F77=-Kconform_pic
21233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21234 # not for PA HP-UX.
21240 lt_prog_compiler_pic_F77='-fPIC'
21246 lt_prog_compiler_pic_F77='-fPIC'
21250 # PORTME Check for flag to pass linker flags through the system compiler.
21253 lt_prog_compiler_wl_F77='-Wl,'
21254 if test "$host_cpu" = ia64; then
21255 # AIX 5 now supports IA64 processor
21256 lt_prog_compiler_static_F77='-Bstatic'
21258 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21262 # PIC is the default on this platform
21263 # Common symbols not allowed in MH_DYLIB files
21264 case $cc_basename in
21266 lt_prog_compiler_pic_F77='-qnocommon'
21267 lt_prog_compiler_wl_F77='-Wl,'
21272 mingw* | pw32* | os2*)
21273 # This hack is so that the source file can tell whether it is being
21274 # built for inclusion in a dll (and should export symbols for example).
21275 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21278 hpux9* | hpux10* | hpux11*)
21279 lt_prog_compiler_wl_F77='-Wl,'
21280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21281 # not for PA HP-UX.
21287 lt_prog_compiler_pic_F77='+Z'
21290 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21291 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21294 irix5* | irix6* | nonstopux*)
21295 lt_prog_compiler_wl_F77='-Wl,'
21296 # PIC (with -KPIC) is the default.
21297 lt_prog_compiler_static_F77='-non_shared'
21301 lt_prog_compiler_pic_F77='-KPIC'
21302 lt_prog_compiler_static_F77='-Bstatic'
21306 case $cc_basename in
21308 lt_prog_compiler_wl_F77='-Wl,'
21309 lt_prog_compiler_pic_F77='-KPIC'
21310 lt_prog_compiler_static_F77='-static'
21312 pgcc* | pgf77* | pgf90* | pgf95*)
21313 # Portland Group compilers (*not* the Pentium gcc compiler,
21314 # which looks to be a dead project)
21315 lt_prog_compiler_wl_F77='-Wl,'
21316 lt_prog_compiler_pic_F77='-fpic'
21317 lt_prog_compiler_static_F77='-Bstatic'
21320 lt_prog_compiler_wl_F77='-Wl,'
21321 # All Alpha code is PIC.
21322 lt_prog_compiler_static_F77='-non_shared'
21327 osf3* | osf4* | osf5*)
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 # All OSF/1 code is PIC.
21330 lt_prog_compiler_static_F77='-non_shared'
21334 lt_prog_compiler_pic_F77='-KPIC'
21335 lt_prog_compiler_static_F77='-Bstatic'
21336 case $cc_basename in
21337 f77* | f90* | f95*)
21338 lt_prog_compiler_wl_F77='-Qoption ld ';;
21340 lt_prog_compiler_wl_F77='-Wl,';;
21345 lt_prog_compiler_wl_F77='-Qoption ld '
21346 lt_prog_compiler_pic_F77='-PIC'
21347 lt_prog_compiler_static_F77='-Bstatic'
21350 sysv4 | sysv4.2uw2* | sysv4.3*)
21351 lt_prog_compiler_wl_F77='-Wl,'
21352 lt_prog_compiler_pic_F77='-KPIC'
21353 lt_prog_compiler_static_F77='-Bstatic'
21357 if test -d /usr/nec ;then
21358 lt_prog_compiler_pic_F77='-Kconform_pic'
21359 lt_prog_compiler_static_F77='-Bstatic'
21363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_pic_F77='-KPIC'
21366 lt_prog_compiler_static_F77='-Bstatic'
21370 lt_prog_compiler_wl_F77='-Wl,'
21371 lt_prog_compiler_can_build_shared_F77=no
21375 lt_prog_compiler_pic_F77='-pic'
21376 lt_prog_compiler_static_F77='-Bstatic'
21380 lt_prog_compiler_can_build_shared_F77=no
21385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21386 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21389 # Check to make sure the PIC flag actually works.
21391 if test -n "$lt_prog_compiler_pic_F77"; then
21393 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21394 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21395 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 lt_prog_compiler_pic_works_F77=no
21399 ac_outfile=conftest.$ac_objext
21400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21401 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21402 # Insert the option either (1) after the last *FLAGS variable, or
21403 # (2) before a word containing "conftest.", or (3) at the end.
21404 # Note that $ac_compile itself does not contain backslashes and begins
21405 # with a dollar sign (not a hyphen), so the echo should work correctly.
21406 # The option is referenced via a variable to avoid confusing sed.
21407 lt_compile=`echo "$ac_compile" | $SED \
21408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21410 -e 's:$: $lt_compiler_flag:'`
21411 (eval echo "\"\$as_me:21411: $lt_compile\"" >&5)
21412 (eval "$lt_compile" 2>conftest.err)
21414 cat conftest.err >&5
21415 echo "$as_me:21415: \$? = $ac_status" >&5
21416 if (exit $ac_status) && test -s "$ac_outfile"; then
21417 # The compiler can only warn and ignore the option if not recognized
21418 # So say no if there are warnings other than the usual output.
21419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21422 lt_prog_compiler_pic_works_F77=yes
21428 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21429 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21431 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21432 case $lt_prog_compiler_pic_F77 in
21434 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21437 lt_prog_compiler_pic_F77=
21438 lt_prog_compiler_can_build_shared_F77=no
21443 # For platforms which do not support PIC, -DPIC is meaningless:
21445 lt_prog_compiler_pic_F77=
21448 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21453 # Check to make sure the static flag actually works.
21455 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21456 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21457 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21458 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 lt_prog_compiler_static_works_F77=no
21462 save_LDFLAGS="$LDFLAGS"
21463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21464 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21466 # The linker can only warn and ignore the option if not recognized
21467 # So say no if there are warnings
21468 if test -s conftest.err; then
21469 # Append any errors to the config.log.
21470 cat conftest.err 1>&5
21471 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21473 if diff conftest.exp conftest.er2 >/dev/null; then
21474 lt_prog_compiler_static_works_F77=yes
21477 lt_prog_compiler_static_works_F77=yes
21481 LDFLAGS="$save_LDFLAGS"
21484 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21485 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21487 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21490 lt_prog_compiler_static_F77=
21494 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21496 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 lt_cv_prog_compiler_c_o_F77=no
21500 $rm -r conftest 2>/dev/null
21504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21506 lt_compiler_flag="-o out/conftest2.$ac_objext"
21507 # Insert the option either (1) after the last *FLAGS variable, or
21508 # (2) before a word containing "conftest.", or (3) at the end.
21509 # Note that $ac_compile itself does not contain backslashes and begins
21510 # with a dollar sign (not a hyphen), so the echo should work correctly.
21511 lt_compile=`echo "$ac_compile" | $SED \
21512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21514 -e 's:$: $lt_compiler_flag:'`
21515 (eval echo "\"\$as_me:21515: $lt_compile\"" >&5)
21516 (eval "$lt_compile" 2>out/conftest.err)
21518 cat out/conftest.err >&5
21519 echo "$as_me:21519: \$? = $ac_status" >&5
21520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21522 # The compiler can only warn and ignore the option if not recognized
21523 # So say no if there are warnings
21524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21527 lt_cv_prog_compiler_c_o_F77=yes
21532 # SGI C++ compiler will create directory out/ii_files/ for
21533 # template instantiation
21534 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21535 $rm out/* && rmdir out
21541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21545 hard_links="nottested"
21546 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21547 # do not overwrite the value of need_locks provided by the user
21548 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21549 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21554 ln conftest.a conftest.b 2>&5 || hard_links=no
21555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21556 { echo "$as_me:$LINENO: result: $hard_links" >&5
21557 echo "${ECHO_T}$hard_links" >&6; }
21558 if test "$hard_links" = no; then
21559 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21560 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21567 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21568 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21571 allow_undefined_flag_F77=
21572 enable_shared_with_static_runtimes_F77=no
21574 archive_expsym_cmds_F77=
21575 old_archive_From_new_cmds_F77=
21576 old_archive_from_expsyms_cmds_F77=
21577 export_dynamic_flag_spec_F77=
21578 whole_archive_flag_spec_F77=
21579 thread_safe_flag_spec_F77=
21580 hardcode_libdir_flag_spec_F77=
21581 hardcode_libdir_flag_spec_ld_F77=
21582 hardcode_libdir_separator_F77=
21583 hardcode_direct_F77=no
21584 hardcode_minus_L_F77=no
21585 hardcode_shlibpath_var_F77=unsupported
21586 link_all_deplibs_F77=unknown
21587 hardcode_automatic_F77=no
21589 module_expsym_cmds_F77=
21590 always_export_symbols_F77=no
21591 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21592 # include_expsyms should be a list of space-separated symbols to be *always*
21593 # included in the symbol list
21594 include_expsyms_F77=
21595 # exclude_expsyms can be an extended regexp of symbols to exclude
21596 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21597 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21598 # as well as any symbol that contains `d'.
21599 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21601 # platforms (ab)use it in PIC code, but their linkers get confused if
21602 # the symbol is explicitly referenced. Since portable code cannot
21603 # rely on this symbol name, it's probably fine to never include it in
21604 # preloaded symbol tables.
21605 extract_expsyms_cmds=
21606 # Just being paranoid about ensuring that cc_basename is set.
21607 for cc_temp in $compiler""; do
21609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21615 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21618 cygwin* | mingw* | pw32*)
21619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21620 # When not using gcc, we currently assume that we are using
21621 # Microsoft Visual C++.
21622 if test "$GCC" != yes; then
21627 # we just hope/assume this is gcc and not c89 (= MSVC++)
21636 if test "$with_gnu_ld" = yes; then
21637 # If archive_cmds runs LD, not CC, wlarc should be empty
21640 # Set some defaults for GNU ld with shared library support. These
21641 # are reset later if shared libraries are not supported. Putting them
21642 # here allows them to be overridden if necessary.
21643 runpath_var=LD_RUN_PATH
21644 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21645 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21646 # ancient GNU ld didn't support --whole-archive et. al.
21647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21648 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21650 whole_archive_flag_spec_F77=
21652 supports_anon_versioning=no
21653 case `$LD -v 2>/dev/null` in
21654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21657 *\ 2.11.*) ;; # other 2.11 versions
21658 *) supports_anon_versioning=yes ;;
21661 # See if GNU ld supports shared libraries.
21663 aix3* | aix4* | aix5*)
21664 # On AIX/PPC, the GNU linker is very broken
21665 if test "$host_cpu" != ia64; then
21669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21670 *** to be unable to reliably create shared libraries on AIX.
21671 *** Therefore, libtool is disabling shared libraries support. If you
21672 *** really care for shared libraries, you may want to modify your PATH
21673 *** so that a non-GNU linker is found, and then restart.
21680 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)'
21681 hardcode_libdir_flag_spec_F77='-L$libdir'
21682 hardcode_minus_L_F77=yes
21684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21685 # that the semantics of dynamic libraries on AmigaOS, at least up
21686 # to version 4, is to share data among multiple programs linked
21687 # with the same dynamic library. Since this doesn't match the
21688 # behavior of shared libraries on other platforms, we can't use
21694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21695 allow_undefined_flag_F77=unsupported
21696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21697 # support --undefined. This deserves some investigation. FIXME
21698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21704 cygwin* | mingw* | pw32*)
21705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21706 # as there is no search path for DLLs.
21707 hardcode_libdir_flag_spec_F77='-L$libdir'
21708 allow_undefined_flag_F77=unsupported
21709 always_export_symbols_F77=no
21710 enable_shared_with_static_runtimes_F77=yes
21711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21715 # If the export-symbols file already is a .def file (1st line
21716 # is EXPORTS), use it as is; otherwise, prepend...
21717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21718 cp $export_symbols $output_objdir/$soname.def;
21720 echo EXPORTS > $output_objdir/$soname.def;
21721 cat $export_symbols >> $output_objdir/$soname.def;
21723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21730 hardcode_direct_F77=no
21731 hardcode_shlibpath_var_F77=no
21732 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21733 export_dynamic_flag_spec_F77='${wl}-E'
21734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21735 # Instead, shared libraries are loaded at an image base (0x10000000 by
21736 # default) and relocated if they conflict, which is a slow very memory
21737 # consuming and fragmenting process. To avoid this, we pick a random,
21738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21740 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'
21741 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'
21745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21747 case $cc_basename,$host_cpu in
21748 pgcc*) # Portland Group C compiler
21749 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'
21750 tmp_addflag=' $pic_flag'
21752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21753 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'
21754 tmp_addflag=' $pic_flag -Mnomain' ;;
21755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21756 tmp_addflag=' -i_dynamic' ;;
21757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21758 tmp_addflag=' -i_dynamic -nofor_main' ;;
21759 ifc* | ifort*) # Intel Fortran compiler
21760 tmp_addflag=' -nofor_main' ;;
21762 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21764 if test $supports_anon_versioning = yes; then
21765 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21767 $echo "local: *; };" >> $output_objdir/$libname.ver~
21768 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21777 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21786 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21791 *** create shared libraries on Solaris systems. Therefore, libtool
21792 *** is disabling shared libraries support. We urge you to upgrade GNU
21793 *** binutils to release 2.9.1 or newer. Another option is to modify
21794 *** your PATH or compiler configuration so that the native linker is
21795 *** used, and then restart.
21798 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21799 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21800 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21807 case `$LD -v 2>&1` in
21808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21813 *** reliably create shared libraries on SCO systems. Therefore, libtool
21814 *** is disabling shared libraries support. We urge you to upgrade GNU
21815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21816 *** your PATH or compiler configuration so that the native linker is
21817 *** used, and then restart.
21822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21823 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21824 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21825 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21834 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21836 hardcode_direct_F77=yes
21837 hardcode_shlibpath_var_F77=no
21841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21843 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21850 if test "$ld_shlibs_F77" = no; then
21852 hardcode_libdir_flag_spec_F77=
21853 export_dynamic_flag_spec_F77=
21854 whole_archive_flag_spec_F77=
21857 # PORTME fill in a description of your system's linker (not GNU ld)
21860 allow_undefined_flag_F77=unsupported
21861 always_export_symbols_F77=yes
21862 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'
21863 # Note: this linker hardcodes the directories in LIBPATH if there
21864 # are no directories specified by -L.
21865 hardcode_minus_L_F77=yes
21866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21867 # Neither direct hardcoding nor static linking is supported with a
21869 hardcode_direct_F77=unsupported
21874 if test "$host_cpu" = ia64; then
21875 # On IA64, the linker does run time linking by default, so we don't
21876 # have to do anything special.
21877 aix_use_runtimelinking=no
21878 exp_sym_flag='-Bexport'
21881 # If we're using GNU nm, then we don't want the "-C" option.
21882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21884 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'
21886 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'
21888 aix_use_runtimelinking=no
21890 # Test if we are trying to use run time linking or normal
21891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21892 # need to do runtime linking.
21893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21894 for ld_flag in $LDFLAGS; do
21895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21896 aix_use_runtimelinking=yes
21903 exp_sym_flag='-bexport'
21904 no_entry_flag='-bnoentry'
21907 # When large executables or shared objects are built, AIX ld can
21908 # have problems creating the table of contents. If linking a library
21909 # or program results in "error TOC overflow" add -mminimal-toc to
21910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21913 archive_cmds_F77=''
21914 hardcode_direct_F77=yes
21915 hardcode_libdir_separator_F77=':'
21916 link_all_deplibs_F77=yes
21918 if test "$GCC" = yes; then
21919 case $host_os in aix4.[012]|aix4.[012].*)
21920 # We only want to do this on AIX 4.2 and lower, the check
21921 # below for broken collect2 doesn't work under 4.3+
21922 collect2name=`${CC} -print-prog-name=collect2`
21923 if test -f "$collect2name" && \
21924 strings "$collect2name" | grep resolve_lib_name >/dev/null
21926 # We have reworked collect2
21927 hardcode_direct_F77=yes
21929 # We have old collect2
21930 hardcode_direct_F77=unsupported
21931 # It fails to find uninstalled libraries when the uninstalled
21932 # path is not listed in the libpath. Setting hardcode_minus_L
21933 # to unsupported forces relinking
21934 hardcode_minus_L_F77=yes
21935 hardcode_libdir_flag_spec_F77='-L$libdir'
21936 hardcode_libdir_separator_F77=
21940 shared_flag='-shared'
21941 if test "$aix_use_runtimelinking" = yes; then
21942 shared_flag="$shared_flag "'${wl}-G'
21946 if test "$host_cpu" = ia64; then
21947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21948 # chokes on -Wl,-G. The following line is correct:
21951 if test "$aix_use_runtimelinking" = yes; then
21952 shared_flag='${wl}-G'
21954 shared_flag='${wl}-bM:SRE'
21959 # It seems that -bexpall does not export symbols beginning with
21960 # underscore (_), so it is better to generate a list of symbols to export.
21961 always_export_symbols_F77=yes
21962 if test "$aix_use_runtimelinking" = yes; then
21963 # Warning - without using the other runtime loading flags (-brtl),
21964 # -berok will link without error, but may produce a broken library.
21965 allow_undefined_flag_F77='-berok'
21966 # Determine the default libpath from the value encoded in an empty executable.
21967 cat >conftest.$ac_ext <<_ACEOF
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_link") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
21986 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21987 { (case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_try") 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; } &&
21996 { ac_try='test -s conftest$ac_exeext'
21997 { (case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_try") 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22009 # Check for a 64-bit object if we didn't find anything.
22010 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; }
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22019 rm -f core conftest.err conftest.$ac_objext \
22020 conftest$ac_exeext conftest.$ac_ext
22021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22023 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22024 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"
22026 if test "$host_cpu" = ia64; then
22027 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22028 allow_undefined_flag_F77="-z nodefs"
22029 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"
22031 # Determine the default libpath from the value encoded in an empty executable.
22032 cat >conftest.$ac_ext <<_ACEOF
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_link") 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22052 { (case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_try") 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest$ac_exeext'
22062 { (case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_try") 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }; then
22072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22074 # Check for a 64-bit object if we didn't find anything.
22075 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; }
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22084 rm -f core conftest.err conftest.$ac_objext \
22085 conftest$ac_exeext conftest.$ac_ext
22086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22089 # Warning - without using the other run time loading flags,
22090 # -berok will link without error, but may produce a broken library.
22091 no_undefined_flag_F77=' ${wl}-bernotok'
22092 allow_undefined_flag_F77=' ${wl}-berok'
22093 # Exported symbols can be pulled into shared objects from archives
22094 whole_archive_flag_spec_F77='$convenience'
22095 archive_cmds_need_lc_F77=yes
22096 # This is similar to how AIX traditionally builds its shared libraries.
22097 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'
22103 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)'
22104 hardcode_libdir_flag_spec_F77='-L$libdir'
22105 hardcode_minus_L_F77=yes
22106 # see comment about different semantics on the GNU ld section
22111 export_dynamic_flag_spec_F77=-rdynamic
22114 cygwin* | mingw* | pw32*)
22115 # When not using gcc, we currently assume that we are using
22116 # Microsoft Visual C++.
22117 # hardcode_libdir_flag_spec is actually meaningless, as there is
22118 # no search path for DLLs.
22119 hardcode_libdir_flag_spec_F77=' '
22120 allow_undefined_flag_F77=unsupported
22121 # Tell ltmain to make .lib files, not .a files.
22123 # Tell ltmain to make .dll files, not .so files.
22125 # FIXME: Setting linknames here is a bad hack.
22126 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22127 # The linker will automatically build a .lib file if we build a DLL.
22128 old_archive_From_new_cmds_F77='true'
22129 # FIXME: Should let the user specify the lib program.
22130 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22131 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22132 enable_shared_with_static_runtimes_F77=yes
22135 darwin* | rhapsody*)
22137 rhapsody* | darwin1.[012])
22138 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22142 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22144 case ${MACOSX_DEPLOYMENT_TARGET} in
22146 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22149 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22155 archive_cmds_need_lc_F77=no
22156 hardcode_direct_F77=no
22157 hardcode_automatic_F77=yes
22158 hardcode_shlibpath_var_F77=unsupported
22159 whole_archive_flag_spec_F77=''
22160 link_all_deplibs_F77=yes
22161 if test "$GCC" = yes ; then
22162 output_verbose_link_cmd='echo'
22163 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22164 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22165 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22166 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}'
22167 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}'
22169 case $cc_basename in
22171 output_verbose_link_cmd='echo'
22172 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22173 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22175 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}'
22176 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}'
22186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187 hardcode_libdir_flag_spec_F77='-L$libdir'
22188 hardcode_shlibpath_var_F77=no
22195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22196 # support. Future versions do this automatically, but an explicit c++rt0.o
22197 # does not break anything, and helps significantly (at the cost of a little
22200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22201 hardcode_libdir_flag_spec_F77='-R$libdir'
22202 hardcode_direct_F77=yes
22203 hardcode_shlibpath_var_F77=no
22206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22208 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22209 hardcode_direct_F77=yes
22210 hardcode_minus_L_F77=yes
22211 hardcode_shlibpath_var_F77=no
22214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22215 freebsd* | kfreebsd*-gnu | dragonfly*)
22216 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22217 hardcode_libdir_flag_spec_F77='-R$libdir'
22218 hardcode_direct_F77=yes
22219 hardcode_shlibpath_var_F77=no
22223 if test "$GCC" = yes; then
22224 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'
22226 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'
22228 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22229 hardcode_libdir_separator_F77=:
22230 hardcode_direct_F77=yes
22232 # hardcode_minus_L: Not really in the search PATH,
22233 # but as the default location of the library.
22234 hardcode_minus_L_F77=yes
22235 export_dynamic_flag_spec_F77='${wl}-E'
22239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22240 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22242 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22244 if test "$with_gnu_ld" = no; then
22245 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22246 hardcode_libdir_separator_F77=:
22248 hardcode_direct_F77=yes
22249 export_dynamic_flag_spec_F77='${wl}-E'
22251 # hardcode_minus_L: Not really in the search PATH,
22252 # but as the default location of the library.
22253 hardcode_minus_L_F77=yes
22258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22261 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22267 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22279 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22283 if test "$with_gnu_ld" = no; then
22284 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22285 hardcode_libdir_separator_F77=:
22289 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22290 hardcode_direct_F77=no
22291 hardcode_shlibpath_var_F77=no
22294 hardcode_direct_F77=yes
22295 export_dynamic_flag_spec_F77='${wl}-E'
22297 # hardcode_minus_L: Not really in the search PATH,
22298 # but as the default location of the library.
22299 hardcode_minus_L_F77=yes
22305 irix5* | irix6* | nonstopux*)
22306 if test "$GCC" = yes; then
22307 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'
22309 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'
22310 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22312 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22313 hardcode_libdir_separator_F77=:
22314 link_all_deplibs_F77=yes
22318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22319 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22321 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22323 hardcode_libdir_flag_spec_F77='-R$libdir'
22324 hardcode_direct_F77=yes
22325 hardcode_shlibpath_var_F77=no
22329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330 hardcode_direct_F77=yes
22331 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22332 hardcode_libdir_separator_F77=:
22333 hardcode_shlibpath_var_F77=no
22337 hardcode_direct_F77=yes
22338 hardcode_shlibpath_var_F77=no
22339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22340 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22341 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22343 export_dynamic_flag_spec_F77='${wl}-E'
22346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22347 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22348 hardcode_libdir_flag_spec_F77='-R$libdir'
22351 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22352 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22359 hardcode_libdir_flag_spec_F77='-L$libdir'
22360 hardcode_minus_L_F77=yes
22361 allow_undefined_flag_F77=unsupported
22362 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'
22363 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22367 if test "$GCC" = yes; then
22368 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22369 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'
22371 allow_undefined_flag_F77=' -expect_unresolved \*'
22372 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'
22374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22375 hardcode_libdir_separator_F77=:
22378 osf4* | osf5*) # as osf3* with the addition of -msym flag
22379 if test "$GCC" = yes; then
22380 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22381 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'
22382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22384 allow_undefined_flag_F77=' -expect_unresolved \*'
22385 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'
22386 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~
22387 $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'
22389 # Both c and cxx compiler support -rpath directly
22390 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22392 hardcode_libdir_separator_F77=:
22396 no_undefined_flag_F77=' -z text'
22397 if test "$GCC" = yes; then
22399 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22400 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22404 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22405 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22408 hardcode_libdir_flag_spec_F77='-R$libdir'
22409 hardcode_shlibpath_var_F77=no
22411 solaris2.[0-5] | solaris2.[0-5].*) ;;
22413 # The compiler driver will combine linker options so we
22414 # cannot just pass the convience library names through
22415 # without $wl, iff we do not link with $LD.
22416 # Luckily, gcc supports the same syntax we need for Sun Studio.
22417 # Supported since Solaris 2.6 (maybe 2.5.1?)
22420 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22422 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' ;;
22425 link_all_deplibs_F77=yes
22429 if test "x$host_vendor" = xsequent; then
22430 # Use $CC to link under sequent, because it throws in some extra .o
22431 # files that make .init and .fini sections work.
22432 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22434 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_libdir_flag_spec_F77='-L$libdir'
22437 hardcode_direct_F77=yes
22438 hardcode_minus_L_F77=yes
22439 hardcode_shlibpath_var_F77=no
22443 case $host_vendor in
22445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22446 hardcode_direct_F77=yes # is this really true???
22449 ## LD is ld it makes a PLAMLIB
22450 ## CC just makes a GrossModule.
22451 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22452 reload_cmds_F77='$CC -r -o $output$reload_objs'
22453 hardcode_direct_F77=no
22456 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22457 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22460 runpath_var='LD_RUN_PATH'
22461 hardcode_shlibpath_var_F77=no
22465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22466 hardcode_shlibpath_var_F77=no
22467 export_dynamic_flag_spec_F77='-Bexport'
22471 if test -d /usr/nec; then
22472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22473 hardcode_shlibpath_var_F77=no
22474 runpath_var=LD_RUN_PATH
22475 hardcode_runpath_var=yes
22480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22481 no_undefined_flag_F77='${wl}-z,text'
22482 archive_cmds_need_lc_F77=no
22483 hardcode_shlibpath_var_F77=no
22484 runpath_var='LD_RUN_PATH'
22486 if test "$GCC" = yes; then
22487 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22488 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22490 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22491 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22495 sysv5* | sco3.2v5* | sco5v6*)
22496 # Note: We can NOT use -z defs as we might desire, because we do not
22497 # link with -lc, and that would cause any symbols used from libc to
22498 # always be unresolved, which means just about no library would
22499 # ever link correctly. If we're not using GNU ld we use -z text
22500 # though, which does catch some bad symbols but isn't as heavy-handed
22502 no_undefined_flag_F77='${wl}-z,text'
22503 allow_undefined_flag_F77='${wl}-z,nodefs'
22504 archive_cmds_need_lc_F77=no
22505 hardcode_shlibpath_var_F77=no
22506 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22507 hardcode_libdir_separator_F77=':'
22508 link_all_deplibs_F77=yes
22509 export_dynamic_flag_spec_F77='${wl}-Bexport'
22510 runpath_var='LD_RUN_PATH'
22512 if test "$GCC" = yes; then
22513 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22516 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22517 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523 hardcode_libdir_flag_spec_F77='-L$libdir'
22524 hardcode_shlibpath_var_F77=no
22533 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22534 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22535 test "$ld_shlibs_F77" = no && can_build_shared=no
22538 # Do we need to explicitly link libc?
22540 case "x$archive_cmds_need_lc_F77" in
22542 # Assume -lc should be added
22543 archive_cmds_need_lc_F77=yes
22545 if test "$enable_shared" = yes && test "$GCC" = yes; then
22546 case $archive_cmds_F77 in
22548 # FIXME: we may have to deal with multi-command sequences.
22551 # Test whether the compiler implicitly links with -lc since on some
22552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22553 # to ld, don't add -lc before -lgcc.
22554 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22555 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560 (eval $ac_compile) 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } 2>conftest.err; then
22566 libobjs=conftest.$ac_objext
22568 wl=$lt_prog_compiler_wl_F77
22569 pic_flag=$lt_prog_compiler_pic_F77
22575 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22576 allow_undefined_flag_F77=
22577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22578 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }
22583 archive_cmds_need_lc_F77=no
22585 archive_cmds_need_lc_F77=yes
22587 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22589 cat conftest.err 1>&5
22592 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22593 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22600 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22602 library_names_spec=
22603 libname_spec='lib$name'
22607 postuninstall_cmds=
22611 shlibpath_overrides_runpath=unknown
22613 dynamic_linker="$host_os ld.so"
22614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22615 if test "$GCC" = yes; then
22616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22618 # if the path contains ";" then we assume it to be the separator
22619 # otherwise default to the standard path separator (i.e. ":") - it is
22620 # assumed that no part of a normal pathname contains ";" but that should
22621 # okay in the real world where ";" in dirpaths is itself problematic.
22622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22629 need_lib_prefix=unknown
22630 hardcode_into_libs=no
22632 # when you set need_version to no, make sure it does not cause -set_version
22633 # flags to be left without arguments
22634 need_version=unknown
22639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22640 shlibpath_var=LIBPATH
22642 # AIX 3 has no versioning support, so we append a major version to the name.
22643 soname_spec='${libname}${release}${shared_ext}$major'
22650 hardcode_into_libs=yes
22651 if test "$host_cpu" = ia64; then
22652 # AIX 5 supports IA64
22653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22654 shlibpath_var=LD_LIBRARY_PATH
22656 # With GCC up to 2.95.x, collect2 would create an import file
22657 # for dependence libraries. The import file would start with
22658 # the line `#! .'. This would cause the generated library to
22659 # depend on `.', always an invalid library. This was fixed in
22660 # development snapshots of GCC prior to 3.0.
22662 aix4 | aix4.[01] | aix4.[01].*)
22663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22668 can_build_shared=no
22672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22673 # soname into executable. Probably we can add versioning support to
22674 # collect2, so additional links can be useful in future.
22675 if test "$aix_use_runtimelinking" = yes; then
22676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22677 # instead of lib<name>.a to let people know that these are not
22678 # typical AIX shared libraries.
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 # We preserve .a as extension for shared libraries through AIX4.2
22682 # and later when we are not doing run time linking.
22683 library_names_spec='${libname}${release}.a $libname.a'
22684 soname_spec='${libname}${release}${shared_ext}$major'
22686 shlibpath_var=LIBPATH
22691 library_names_spec='$libname.ixlibrary $libname.a'
22692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22693 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'
22697 library_names_spec='${libname}${shared_ext}'
22698 dynamic_linker="$host_os ld.so"
22699 shlibpath_var=LIBRARY_PATH
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22708 shlibpath_var=LD_LIBRARY_PATH
22709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22711 # the default ld.so.conf also contains /usr/contrib/lib and
22712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22713 # libtool to hard-code these into programs
22716 cygwin* | mingw* | pw32*)
22717 version_type=windows
22722 case $GCC,$host_os in
22723 yes,cygwin* | yes,mingw* | yes,pw32*)
22724 library_names_spec='$libname.dll.a'
22725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22726 postinstall_cmds='base_file=`basename \${file}`~
22727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22728 dldir=$destdir/`dirname \$dlpath`~
22729 test -d \$dldir || mkdir -p \$dldir~
22730 $install_prog $dir/$dlname \$dldir/$dlname~
22731 chmod a+x \$dldir/$dlname'
22732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22733 dlpath=$dir/\$dldll~
22735 shlibpath_overrides_runpath=yes
22739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22744 # MinGW DLLs use traditional 'lib' prefix
22745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22748 # It is most probably a Windows format PATH printed by
22749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22750 # path with ; separators, and with drive letters. We can handle the
22751 # drive letters (cygwin fileutils understands them), so leave them,
22752 # especially as we might pass files found there to a mingw objdump,
22753 # which wouldn't understand a cygwinified path. Ahh.
22754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22760 # pw32 DLLs use 'pw' prefix rather than 'lib'
22761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22770 dynamic_linker='Win32 ld.exe'
22771 # FIXME: first we should search . and the directory the executable is in
22775 darwin* | rhapsody*)
22776 dynamic_linker="$host_os dyld"
22777 version_type=darwin
22780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22781 soname_spec='${libname}${release}${major}$shared_ext'
22782 shlibpath_overrides_runpath=yes
22783 shlibpath_var=DYLD_LIBRARY_PATH
22784 shrext_cmds='.dylib'
22785 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22786 if test "$GCC" = yes; then
22787 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"`
22789 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22799 soname_spec='${libname}${release}${shared_ext}$major'
22800 shlibpath_var=LD_LIBRARY_PATH
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 shlibpath_overrides_runpath=no
22815 hardcode_into_libs=yes
22816 dynamic_linker='GNU ld.so'
22819 freebsd* | dragonfly*)
22820 # DragonFly does not have aout. When/if they implement a new
22821 # versioning mechanism, adjust this.
22822 if test -x /usr/bin/objformat; then
22823 objformat=`/usr/bin/objformat`
22826 freebsd[123]*) objformat=aout ;;
22827 *) objformat=elf ;;
22830 version_type=freebsd-$objformat
22831 case $version_type in
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22842 shlibpath_var=LD_LIBRARY_PATH
22845 shlibpath_overrides_runpath=yes
22847 freebsd3.[01]* | freebsdelf3.[01]*)
22848 shlibpath_overrides_runpath=yes
22849 hardcode_into_libs=yes
22851 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22852 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22853 shlibpath_overrides_runpath=no
22854 hardcode_into_libs=yes
22856 freebsd*) # from 4.6 on
22857 shlibpath_overrides_runpath=yes
22858 hardcode_into_libs=yes
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22868 soname_spec='${libname}${release}${shared_ext}$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22870 hardcode_into_libs=yes
22873 hpux9* | hpux10* | hpux11*)
22874 # Give a soname corresponding to the major version so that dld.sl refuses to
22875 # link against other versions.
22882 hardcode_into_libs=yes
22883 dynamic_linker="$host_os dld.so"
22884 shlibpath_var=LD_LIBRARY_PATH
22885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 if test "X$HPUX_IA64_MODE" = X32; then
22889 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22891 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22897 hardcode_into_libs=yes
22898 dynamic_linker="$host_os dld.sl"
22899 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec='${libname}${release}${shared_ext}$major'
22903 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22908 dynamic_linker="$host_os dld.sl"
22909 shlibpath_var=SHLIB_PATH
22910 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22912 soname_spec='${libname}${release}${shared_ext}$major'
22915 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22916 postinstall_cmds='chmod 555 $lib'
22923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22924 soname_spec='${libname}${release}${shared_ext}$major'
22925 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22926 shlibpath_var=LD_LIBRARY_PATH
22927 shlibpath_overrides_runpath=no
22928 hardcode_into_libs=yes
22931 irix5* | irix6* | nonstopux*)
22933 nonstopux*) version_type=nonstopux ;;
22935 if test "$lt_cv_prog_gnu_ld" = yes; then
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22946 irix5* | nonstopux*)
22947 libsuff= shlibsuff=
22950 case $LD in # libtool.m4 will add one of these switches to LD
22951 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22952 libsuff= shlibsuff= libmagic=32-bit;;
22953 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22954 libsuff=32 shlibsuff=N32 libmagic=N32;;
22955 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22956 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22957 *) libsuff= shlibsuff= libmagic=never-match;;
22961 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22962 shlibpath_overrides_runpath=no
22963 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22964 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22965 hardcode_into_libs=yes
22968 # No shared lib support for Linux oldld, aout, or coff.
22969 linux*oldld* | linux*aout* | linux*coff*)
22973 # This must be Linux ELF.
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979 soname_spec='${libname}${release}${shared_ext}$major'
22980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22981 shlibpath_var=LD_LIBRARY_PATH
22982 shlibpath_overrides_runpath=no
22983 # This implies no fast_install, which is unacceptable.
22984 # Some rework will be needed to allow for fast_install
22985 # before this can be enabled.
22986 hardcode_into_libs=yes
22988 # Append ld.so.conf contents to the search path
22989 if test -f /etc/ld.so.conf; then
22990 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' ' '`
22991 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22994 # We used to test for /lib/ld.so.1 and disable shared libraries on
22995 # powerpc, because MkLinux only supported shared libraries with the
22996 # GNU dynamic linker. Since this was broken with cross compilers,
22997 # most powerpc-linux boxes support dynamic linking these days and
22998 # people can always --disable-shared, the test was removed, and we
22999 # assume the GNU/Linux dynamic linker is in use.
23000 dynamic_linker='GNU/Linux ld.so'
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 shlibpath_var=LD_LIBRARY_PATH
23010 shlibpath_overrides_runpath=no
23011 hardcode_into_libs=yes
23012 dynamic_linker='GNU ld.so'
23019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23022 dynamic_linker='NetBSD (a.out) ld.so'
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23025 soname_spec='${libname}${release}${shared_ext}$major'
23026 dynamic_linker='NetBSD ld.elf_so'
23028 shlibpath_var=LD_LIBRARY_PATH
23029 shlibpath_overrides_runpath=yes
23030 hardcode_into_libs=yes
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 shlibpath_overrides_runpath=yes
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 shlibpath_overrides_runpath=yes
23052 sys_lib_dlsearch_path_spec="/usr/lib"
23054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23056 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23057 *) need_version=no ;;
23059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23061 shlibpath_var=LD_LIBRARY_PATH
23062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23064 openbsd2.[89] | openbsd2.[89].*)
23065 shlibpath_overrides_runpath=no
23068 shlibpath_overrides_runpath=yes
23072 shlibpath_overrides_runpath=yes
23077 libname_spec='$name'
23080 library_names_spec='$libname${shared_ext} $libname.a'
23081 dynamic_linker='OS/2 ld.exe'
23082 shlibpath_var=LIBPATH
23085 osf3* | osf4* | osf5*)
23089 soname_spec='${libname}${release}${shared_ext}$major'
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 shlibpath_var=LD_LIBRARY_PATH
23092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101 soname_spec='${libname}${release}${shared_ext}$major'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 hardcode_into_libs=yes
23105 # ldd complains unless libraries are executable
23106 postinstall_cmds='chmod +x $lib'
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 shlibpath_overrides_runpath=yes
23115 if test "$with_gnu_ld" = yes; then
23123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23124 soname_spec='${libname}${release}${shared_ext}$major'
23125 shlibpath_var=LD_LIBRARY_PATH
23126 case $host_vendor in
23128 shlibpath_overrides_runpath=no
23130 export_dynamic_flag_spec='${wl}-Blargedynsym'
23131 runpath_var=LD_RUN_PATH
23139 shlibpath_overrides_runpath=no
23140 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23146 if test -d /usr/nec ;then
23148 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23149 soname_spec='$libname${shared_ext}.$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23155 version_type=freebsd-elf
23158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23159 soname_spec='${libname}${release}${shared_ext}$major'
23160 shlibpath_var=LD_LIBRARY_PATH
23161 hardcode_into_libs=yes
23162 if test "$with_gnu_ld" = yes; then
23163 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23164 shlibpath_overrides_runpath=no
23166 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23167 shlibpath_overrides_runpath=yes
23170 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23174 sys_lib_dlsearch_path_spec='/usr/lib'
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 shlibpath_var=LD_LIBRARY_PATH
23188 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23189 echo "${ECHO_T}$dynamic_linker" >&6; }
23190 test "$dynamic_linker" = no && can_build_shared=no
23192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23193 if test "$GCC" = yes; then
23194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23197 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23198 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23199 hardcode_action_F77=
23200 if test -n "$hardcode_libdir_flag_spec_F77" || \
23201 test -n "$runpath_var_F77" || \
23202 test "X$hardcode_automatic_F77" = "Xyes" ; then
23204 # We can hardcode non-existant directories.
23205 if test "$hardcode_direct_F77" != no &&
23206 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23207 # have to relink, otherwise we might link with an installed library
23208 # when we should be linking with a yet-to-be-installed one
23209 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23210 test "$hardcode_minus_L_F77" != no; then
23211 # Linking always hardcodes the temporary library directory.
23212 hardcode_action_F77=relink
23214 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23215 hardcode_action_F77=immediate
23218 # We cannot hardcode anything, or else we can only hardcode existing
23220 hardcode_action_F77=unsupported
23222 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23223 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23225 if test "$hardcode_action_F77" = relink; then
23226 # Fast installation is not supported
23227 enable_fast_install=no
23228 elif test "$shlibpath_overrides_runpath" = yes ||
23229 test "$enable_shared" = no; then
23230 # Fast installation is not necessary
23231 enable_fast_install=needless
23235 # The else clause should only fire when bootstrapping the
23236 # libtool distribution, otherwise you forgot to ship ltmain.sh
23237 # with your package, and you will get complaints that there are
23238 # no rules to generate ltmain.sh.
23239 if test -f "$ltmain"; then
23240 # See if we are running on zsh, and set the options which allow our commands through
23241 # without removal of \ escapes.
23242 if test -n "${ZSH_VERSION+set}" ; then
23243 setopt NO_GLOB_SUBST
23245 # Now quote all the things that may contain metacharacters while being
23246 # careful not to overquote the AC_SUBSTed values. We take copies of the
23247 # variables and quote the copies for generation of the libtool script.
23248 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23252 deplibs_check_method reload_flag reload_cmds need_locks \
23253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23254 lt_cv_sys_global_symbol_to_c_name_address \
23255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23256 old_postinstall_cmds old_postuninstall_cmds \
23260 lt_prog_compiler_wl_F77 \
23261 lt_prog_compiler_pic_F77 \
23262 lt_prog_compiler_static_F77 \
23263 lt_prog_compiler_no_builtin_flag_F77 \
23264 export_dynamic_flag_spec_F77 \
23265 thread_safe_flag_spec_F77 \
23266 whole_archive_flag_spec_F77 \
23267 enable_shared_with_static_runtimes_F77 \
23268 old_archive_cmds_F77 \
23269 old_archive_from_new_cmds_F77 \
23270 predep_objects_F77 \
23271 postdep_objects_F77 \
23274 compiler_lib_search_path_F77 \
23276 archive_expsym_cmds_F77 \
23277 postinstall_cmds_F77 \
23278 postuninstall_cmds_F77 \
23279 old_archive_from_expsyms_cmds_F77 \
23280 allow_undefined_flag_F77 \
23281 no_undefined_flag_F77 \
23282 export_symbols_cmds_F77 \
23283 hardcode_libdir_flag_spec_F77 \
23284 hardcode_libdir_flag_spec_ld_F77 \
23285 hardcode_libdir_separator_F77 \
23286 hardcode_automatic_F77 \
23288 module_expsym_cmds_F77 \
23289 lt_cv_prog_compiler_c_o_F77 \
23290 exclude_expsyms_F77 \
23291 include_expsyms_F77; do
23294 old_archive_cmds_F77 | \
23295 old_archive_from_new_cmds_F77 | \
23296 archive_cmds_F77 | \
23297 archive_expsym_cmds_F77 | \
23298 module_cmds_F77 | \
23299 module_expsym_cmds_F77 | \
23300 old_archive_from_expsyms_cmds_F77 | \
23301 export_symbols_cmds_F77 | \
23302 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23303 postinstall_cmds | postuninstall_cmds | \
23304 old_postinstall_cmds | old_postuninstall_cmds | \
23305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23306 # Double-quote double-evaled strings.
23307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23316 *'\$0 --fallback-echo"')
23317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23323 cat <<__EOF__ >> "$cfgfile"
23324 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23328 # Shell to use when invoking shell scripts.
23331 # Whether or not to build shared libraries.
23332 build_libtool_libs=$enable_shared
23334 # Whether or not to build static libraries.
23335 build_old_libs=$enable_static
23337 # Whether or not to add -lc for building shared libraries.
23338 build_libtool_need_lc=$archive_cmds_need_lc_F77
23340 # Whether or not to disallow shared libs when runtime libs are static
23341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23343 # Whether or not to optimize for fast installation.
23344 fast_install=$enable_fast_install
23347 host_alias=$host_alias
23351 # The build system.
23352 build_alias=$build_alias
23356 # An echo program that does not interpret backslashes.
23361 AR_FLAGS=$lt_AR_FLAGS
23366 # LTCC compiler flags.
23367 LTCFLAGS=$lt_LTCFLAGS
23369 # A language-specific compiler.
23370 CC=$lt_compiler_F77
23372 # Is the compiler the GNU C compiler?
23378 # The linker used to build libraries.
23381 # Whether we need hard or soft links.
23384 # A BSD-compatible nm program.
23387 # A symbol stripping program
23390 # Used to examine libraries when file_magic_cmd begins "file"
23391 MAGIC_CMD=$MAGIC_CMD
23393 # Used on cygwin: DLL creation program.
23396 # Used on cygwin: object dumper.
23399 # Used on cygwin: assembler.
23402 # The name of the directory that contains temporary libtool files.
23405 # How to create reloadable object files.
23406 reload_flag=$lt_reload_flag
23407 reload_cmds=$lt_reload_cmds
23409 # How to pass a linker flag through the compiler.
23410 wl=$lt_lt_prog_compiler_wl_F77
23412 # Object file suffix (normally "o").
23413 objext="$ac_objext"
23415 # Old archive suffix (normally "a").
23418 # Shared library suffix (normally ".so").
23419 shrext_cmds='$shrext_cmds'
23421 # Executable file suffix (normally "").
23424 # Additional compiler flags for building library objects.
23425 pic_flag=$lt_lt_prog_compiler_pic_F77
23428 # What is the maximum length of a command?
23429 max_cmd_len=$lt_cv_sys_max_cmd_len
23431 # Does compiler simultaneously support -c and -o options?
23432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23434 # Must we lock files when doing compilation?
23435 need_locks=$lt_need_locks
23437 # Do we need the lib prefix for modules?
23438 need_lib_prefix=$need_lib_prefix
23440 # Do we need a version for libraries?
23441 need_version=$need_version
23443 # Whether dlopen is supported.
23444 dlopen_support=$enable_dlopen
23446 # Whether dlopen of programs is supported.
23447 dlopen_self=$enable_dlopen_self
23449 # Whether dlopen of statically linked programs is supported.
23450 dlopen_self_static=$enable_dlopen_self_static
23452 # Compiler flag to prevent dynamic linking.
23453 link_static_flag=$lt_lt_prog_compiler_static_F77
23455 # Compiler flag to turn off builtin functions.
23456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23458 # Compiler flag to allow reflexive dlopens.
23459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23461 # Compiler flag to generate shared objects directly from archives.
23462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23464 # Compiler flag to generate thread-safe objects.
23465 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23467 # Library versioning type.
23468 version_type=$version_type
23470 # Format of library name prefix.
23471 libname_spec=$lt_libname_spec
23473 # List of archive names. First name is the real one, the rest are links.
23474 # The last name is the one that the linker finds with -lNAME.
23475 library_names_spec=$lt_library_names_spec
23477 # The coded name of the library, if different from the real name.
23478 soname_spec=$lt_soname_spec
23480 # Commands used to build and install an old-style archive.
23482 old_archive_cmds=$lt_old_archive_cmds_F77
23483 old_postinstall_cmds=$lt_old_postinstall_cmds
23484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23486 # Create an old-style archive from a shared archive.
23487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23489 # Create a temporary old-style archive to link instead of a shared archive.
23490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23492 # Commands used to build and install a shared archive.
23493 archive_cmds=$lt_archive_cmds_F77
23494 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23495 postinstall_cmds=$lt_postinstall_cmds
23496 postuninstall_cmds=$lt_postuninstall_cmds
23498 # Commands used to build a loadable module (assumed same as above if empty)
23499 module_cmds=$lt_module_cmds_F77
23500 module_expsym_cmds=$lt_module_expsym_cmds_F77
23502 # Commands to strip libraries.
23503 old_striplib=$lt_old_striplib
23504 striplib=$lt_striplib
23506 # Dependencies to place before the objects being linked to create a
23508 predep_objects=$lt_predep_objects_F77
23510 # Dependencies to place after the objects being linked to create a
23512 postdep_objects=$lt_postdep_objects_F77
23514 # Dependencies to place before the objects being linked to create a
23516 predeps=$lt_predeps_F77
23518 # Dependencies to place after the objects being linked to create a
23520 postdeps=$lt_postdeps_F77
23522 # The library search path used internally by the compiler when linking
23523 # a shared library.
23524 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23526 # Method to check whether dependent libraries are shared objects.
23527 deplibs_check_method=$lt_deplibs_check_method
23529 # Command to use when deplibs_check_method == file_magic.
23530 file_magic_cmd=$lt_file_magic_cmd
23532 # Flag that allows shared libraries with undefined symbols to be built.
23533 allow_undefined_flag=$lt_allow_undefined_flag_F77
23535 # Flag that forces no undefined symbols.
23536 no_undefined_flag=$lt_no_undefined_flag_F77
23538 # Commands used to finish a libtool library installation in a directory.
23539 finish_cmds=$lt_finish_cmds
23541 # Same as above, but a single script fragment to be evaled but not shown.
23542 finish_eval=$lt_finish_eval
23544 # Take the output of nm and produce a listing of raw symbols and C names.
23545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23547 # Transform the output of nm in a proper C declaration
23548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23550 # Transform the output of nm in a C name address pair
23551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23553 # This is the shared library runtime path variable.
23554 runpath_var=$runpath_var
23556 # This is the shared library path variable.
23557 shlibpath_var=$shlibpath_var
23559 # Is shlibpath searched before the hard-coded library search path?
23560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23562 # How to hardcode a shared library path into an executable.
23563 hardcode_action=$hardcode_action_F77
23565 # Whether we should hardcode library paths into libraries.
23566 hardcode_into_libs=$hardcode_into_libs
23568 # Flag to hardcode \$libdir into a binary during linking.
23569 # This must work even if \$libdir does not exist.
23570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23572 # If ld is used when linking, flag to hardcode \$libdir into
23573 # a binary during linking. This must work even if \$libdir does
23575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23577 # Whether we need a single -rpath flag with a separated argument.
23578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23581 # resulting binary.
23582 hardcode_direct=$hardcode_direct_F77
23584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23585 # resulting binary.
23586 hardcode_minus_L=$hardcode_minus_L_F77
23588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23589 # the resulting binary.
23590 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23592 # Set to yes if building a shared library automatically hardcodes DIR into the library
23593 # and all subsequent libraries and executables linked against it.
23594 hardcode_automatic=$hardcode_automatic_F77
23596 # Variables whose values should be saved in libtool wrapper scripts and
23597 # restored at relink time.
23598 variables_saved_for_relink="$variables_saved_for_relink"
23600 # Whether libtool must link a program against all its dependency libraries.
23601 link_all_deplibs=$link_all_deplibs_F77
23603 # Compile-time system search path for libraries
23604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23606 # Run-time system search path for libraries
23607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23609 # Fix the shell variable \$srcfile for the compiler.
23610 fix_srcfile_path="$fix_srcfile_path_F77"
23612 # Set to yes if exported symbols are required.
23613 always_export_symbols=$always_export_symbols_F77
23615 # The commands to list exported symbols.
23616 export_symbols_cmds=$lt_export_symbols_cmds_F77
23618 # The commands to extract the exported symbol list from a shared archive.
23619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23621 # Symbols that should not be listed in the preloaded symbols.
23622 exclude_expsyms=$lt_exclude_expsyms_F77
23624 # Symbols that must always be exported.
23625 include_expsyms=$lt_include_expsyms_F77
23627 # ### END LIBTOOL TAG CONFIG: $tagname
23633 # If there is no Makefile yet, we rely on a make rule to execute
23634 # `config.status --recheck' to rerun these tests and create the
23635 # libtool script then.
23636 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23637 if test -f "$ltmain_in"; then
23638 test -f Makefile && make "$ltmain"
23644 ac_cpp='$CPP $CPPFLAGS'
23645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23657 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23659 ac_cpp='$CPP $CPPFLAGS'
23660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23665 # Source file extension for Java test sources.
23668 # Object file extension for compiled Java test sources.
23672 # Code to be used in simple compile tests
23673 lt_simple_compile_test_code="class foo {}\n"
23675 # Code to be used in simple link tests
23676 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23680 # If no C compiler was specified, use CC.
23683 # If no C compiler flags were specified, use CFLAGS.
23684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23686 # Allow CC to be a program name with arguments.
23690 # save warnings/boilerplate of simple test code
23691 ac_outfile=conftest.$ac_objext
23692 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23694 _lt_compiler_boilerplate=`cat conftest.err`
23697 ac_outfile=conftest.$ac_objext
23698 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23700 _lt_linker_boilerplate=`cat conftest.err`
23704 # Allow CC to be a program name with arguments.
23709 for cc_temp in $compiler""; do
23711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23720 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23721 archive_cmds_need_lc_GCJ=no
23723 old_archive_cmds_GCJ=$old_archive_cmds
23726 lt_prog_compiler_no_builtin_flag_GCJ=
23728 if test "$GCC" = yes; then
23729 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23732 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23733 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23734 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 lt_cv_prog_compiler_rtti_exceptions=no
23738 ac_outfile=conftest.$ac_objext
23739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23740 lt_compiler_flag="-fno-rtti -fno-exceptions"
23741 # Insert the option either (1) after the last *FLAGS variable, or
23742 # (2) before a word containing "conftest.", or (3) at the end.
23743 # Note that $ac_compile itself does not contain backslashes and begins
23744 # with a dollar sign (not a hyphen), so the echo should work correctly.
23745 # The option is referenced via a variable to avoid confusing sed.
23746 lt_compile=`echo "$ac_compile" | $SED \
23747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23749 -e 's:$: $lt_compiler_flag:'`
23750 (eval echo "\"\$as_me:23750: $lt_compile\"" >&5)
23751 (eval "$lt_compile" 2>conftest.err)
23753 cat conftest.err >&5
23754 echo "$as_me:23754: \$? = $ac_status" >&5
23755 if (exit $ac_status) && test -s "$ac_outfile"; then
23756 # The compiler can only warn and ignore the option if not recognized
23757 # So say no if there are warnings other than the usual output.
23758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23761 lt_cv_prog_compiler_rtti_exceptions=yes
23767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23768 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23771 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23778 lt_prog_compiler_wl_GCJ=
23779 lt_prog_compiler_pic_GCJ=
23780 lt_prog_compiler_static_GCJ=
23782 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23785 if test "$GCC" = yes; then
23786 lt_prog_compiler_wl_GCJ='-Wl,'
23787 lt_prog_compiler_static_GCJ='-static'
23791 # All AIX code is PIC.
23792 if test "$host_cpu" = ia64; then
23793 # AIX 5 now supports IA64 processor
23794 lt_prog_compiler_static_GCJ='-Bstatic'
23799 # FIXME: we need at least 68020 code to build shared libraries, but
23800 # adding the `-m68020' flag to GCC prevents building anything better,
23802 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23805 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23806 # PIC is the default for these OSes.
23809 mingw* | pw32* | os2*)
23810 # This hack is so that the source file can tell whether it is being
23811 # built for inclusion in a dll (and should export symbols for example).
23812 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23815 darwin* | rhapsody*)
23816 # PIC is the default on this platform
23817 # Common symbols not allowed in MH_DYLIB files
23818 lt_prog_compiler_pic_GCJ='-fno-common'
23822 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23823 # Instead, we relocate shared libraries at runtime.
23827 # Just because we use GCC doesn't mean we suddenly get shared libraries
23828 # on systems that don't support them.
23829 lt_prog_compiler_can_build_shared_GCJ=no
23834 if test -d /usr/nec; then
23835 lt_prog_compiler_pic_GCJ=-Kconform_pic
23840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23841 # not for PA HP-UX.
23847 lt_prog_compiler_pic_GCJ='-fPIC'
23853 lt_prog_compiler_pic_GCJ='-fPIC'
23857 # PORTME Check for flag to pass linker flags through the system compiler.
23860 lt_prog_compiler_wl_GCJ='-Wl,'
23861 if test "$host_cpu" = ia64; then
23862 # AIX 5 now supports IA64 processor
23863 lt_prog_compiler_static_GCJ='-Bstatic'
23865 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23869 # PIC is the default on this platform
23870 # Common symbols not allowed in MH_DYLIB files
23871 case $cc_basename in
23873 lt_prog_compiler_pic_GCJ='-qnocommon'
23874 lt_prog_compiler_wl_GCJ='-Wl,'
23879 mingw* | pw32* | os2*)
23880 # This hack is so that the source file can tell whether it is being
23881 # built for inclusion in a dll (and should export symbols for example).
23882 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23885 hpux9* | hpux10* | hpux11*)
23886 lt_prog_compiler_wl_GCJ='-Wl,'
23887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23888 # not for PA HP-UX.
23894 lt_prog_compiler_pic_GCJ='+Z'
23897 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23898 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23901 irix5* | irix6* | nonstopux*)
23902 lt_prog_compiler_wl_GCJ='-Wl,'
23903 # PIC (with -KPIC) is the default.
23904 lt_prog_compiler_static_GCJ='-non_shared'
23908 lt_prog_compiler_pic_GCJ='-KPIC'
23909 lt_prog_compiler_static_GCJ='-Bstatic'
23913 case $cc_basename in
23915 lt_prog_compiler_wl_GCJ='-Wl,'
23916 lt_prog_compiler_pic_GCJ='-KPIC'
23917 lt_prog_compiler_static_GCJ='-static'
23919 pgcc* | pgf77* | pgf90* | pgf95*)
23920 # Portland Group compilers (*not* the Pentium gcc compiler,
23921 # which looks to be a dead project)
23922 lt_prog_compiler_wl_GCJ='-Wl,'
23923 lt_prog_compiler_pic_GCJ='-fpic'
23924 lt_prog_compiler_static_GCJ='-Bstatic'
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23928 # All Alpha code is PIC.
23929 lt_prog_compiler_static_GCJ='-non_shared'
23934 osf3* | osf4* | osf5*)
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 # All OSF/1 code is PIC.
23937 lt_prog_compiler_static_GCJ='-non_shared'
23941 lt_prog_compiler_pic_GCJ='-KPIC'
23942 lt_prog_compiler_static_GCJ='-Bstatic'
23943 case $cc_basename in
23944 f77* | f90* | f95*)
23945 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23947 lt_prog_compiler_wl_GCJ='-Wl,';;
23952 lt_prog_compiler_wl_GCJ='-Qoption ld '
23953 lt_prog_compiler_pic_GCJ='-PIC'
23954 lt_prog_compiler_static_GCJ='-Bstatic'
23957 sysv4 | sysv4.2uw2* | sysv4.3*)
23958 lt_prog_compiler_wl_GCJ='-Wl,'
23959 lt_prog_compiler_pic_GCJ='-KPIC'
23960 lt_prog_compiler_static_GCJ='-Bstatic'
23964 if test -d /usr/nec ;then
23965 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23966 lt_prog_compiler_static_GCJ='-Bstatic'
23970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_pic_GCJ='-KPIC'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23977 lt_prog_compiler_wl_GCJ='-Wl,'
23978 lt_prog_compiler_can_build_shared_GCJ=no
23982 lt_prog_compiler_pic_GCJ='-pic'
23983 lt_prog_compiler_static_GCJ='-Bstatic'
23987 lt_prog_compiler_can_build_shared_GCJ=no
23992 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23993 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23996 # Check to make sure the PIC flag actually works.
23998 if test -n "$lt_prog_compiler_pic_GCJ"; then
24000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24002 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 lt_prog_compiler_pic_works_GCJ=no
24006 ac_outfile=conftest.$ac_objext
24007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24008 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24009 # Insert the option either (1) after the last *FLAGS variable, or
24010 # (2) before a word containing "conftest.", or (3) at the end.
24011 # Note that $ac_compile itself does not contain backslashes and begins
24012 # with a dollar sign (not a hyphen), so the echo should work correctly.
24013 # The option is referenced via a variable to avoid confusing sed.
24014 lt_compile=`echo "$ac_compile" | $SED \
24015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24017 -e 's:$: $lt_compiler_flag:'`
24018 (eval echo "\"\$as_me:24018: $lt_compile\"" >&5)
24019 (eval "$lt_compile" 2>conftest.err)
24021 cat conftest.err >&5
24022 echo "$as_me:24022: \$? = $ac_status" >&5
24023 if (exit $ac_status) && test -s "$ac_outfile"; then
24024 # The compiler can only warn and ignore the option if not recognized
24025 # So say no if there are warnings other than the usual output.
24026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24029 lt_prog_compiler_pic_works_GCJ=yes
24035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24036 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24038 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24039 case $lt_prog_compiler_pic_GCJ in
24041 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24044 lt_prog_compiler_pic_GCJ=
24045 lt_prog_compiler_can_build_shared_GCJ=no
24050 # For platforms which do not support PIC, -DPIC is meaningless:
24052 lt_prog_compiler_pic_GCJ=
24055 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24060 # Check to make sure the static flag actually works.
24062 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24063 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24064 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24065 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24066 echo $ECHO_N "(cached) $ECHO_C" >&6
24068 lt_prog_compiler_static_works_GCJ=no
24069 save_LDFLAGS="$LDFLAGS"
24070 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24071 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24073 # The linker can only warn and ignore the option if not recognized
24074 # So say no if there are warnings
24075 if test -s conftest.err; then
24076 # Append any errors to the config.log.
24077 cat conftest.err 1>&5
24078 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24080 if diff conftest.exp conftest.er2 >/dev/null; then
24081 lt_prog_compiler_static_works_GCJ=yes
24084 lt_prog_compiler_static_works_GCJ=yes
24088 LDFLAGS="$save_LDFLAGS"
24091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24092 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24094 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24097 lt_prog_compiler_static_GCJ=
24101 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24103 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24106 lt_cv_prog_compiler_c_o_GCJ=no
24107 $rm -r conftest 2>/dev/null
24111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24113 lt_compiler_flag="-o out/conftest2.$ac_objext"
24114 # Insert the option either (1) after the last *FLAGS variable, or
24115 # (2) before a word containing "conftest.", or (3) at the end.
24116 # Note that $ac_compile itself does not contain backslashes and begins
24117 # with a dollar sign (not a hyphen), so the echo should work correctly.
24118 lt_compile=`echo "$ac_compile" | $SED \
24119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24121 -e 's:$: $lt_compiler_flag:'`
24122 (eval echo "\"\$as_me:24122: $lt_compile\"" >&5)
24123 (eval "$lt_compile" 2>out/conftest.err)
24125 cat out/conftest.err >&5
24126 echo "$as_me:24126: \$? = $ac_status" >&5
24127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24129 # The compiler can only warn and ignore the option if not recognized
24130 # So say no if there are warnings
24131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24134 lt_cv_prog_compiler_c_o_GCJ=yes
24139 # SGI C++ compiler will create directory out/ii_files/ for
24140 # template instantiation
24141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24142 $rm out/* && rmdir out
24148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24152 hard_links="nottested"
24153 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24154 # do not overwrite the value of need_locks provided by the user
24155 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24161 ln conftest.a conftest.b 2>&5 || hard_links=no
24162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24163 { echo "$as_me:$LINENO: result: $hard_links" >&5
24164 echo "${ECHO_T}$hard_links" >&6; }
24165 if test "$hard_links" = no; then
24166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24178 allow_undefined_flag_GCJ=
24179 enable_shared_with_static_runtimes_GCJ=no
24181 archive_expsym_cmds_GCJ=
24182 old_archive_From_new_cmds_GCJ=
24183 old_archive_from_expsyms_cmds_GCJ=
24184 export_dynamic_flag_spec_GCJ=
24185 whole_archive_flag_spec_GCJ=
24186 thread_safe_flag_spec_GCJ=
24187 hardcode_libdir_flag_spec_GCJ=
24188 hardcode_libdir_flag_spec_ld_GCJ=
24189 hardcode_libdir_separator_GCJ=
24190 hardcode_direct_GCJ=no
24191 hardcode_minus_L_GCJ=no
24192 hardcode_shlibpath_var_GCJ=unsupported
24193 link_all_deplibs_GCJ=unknown
24194 hardcode_automatic_GCJ=no
24196 module_expsym_cmds_GCJ=
24197 always_export_symbols_GCJ=no
24198 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24199 # include_expsyms should be a list of space-separated symbols to be *always*
24200 # included in the symbol list
24201 include_expsyms_GCJ=
24202 # exclude_expsyms can be an extended regexp of symbols to exclude
24203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24205 # as well as any symbol that contains `d'.
24206 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24208 # platforms (ab)use it in PIC code, but their linkers get confused if
24209 # the symbol is explicitly referenced. Since portable code cannot
24210 # rely on this symbol name, it's probably fine to never include it in
24211 # preloaded symbol tables.
24212 extract_expsyms_cmds=
24213 # Just being paranoid about ensuring that cc_basename is set.
24214 for cc_temp in $compiler""; do
24216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24222 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24225 cygwin* | mingw* | pw32*)
24226 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24227 # When not using gcc, we currently assume that we are using
24228 # Microsoft Visual C++.
24229 if test "$GCC" != yes; then
24234 # we just hope/assume this is gcc and not c89 (= MSVC++)
24243 if test "$with_gnu_ld" = yes; then
24244 # If archive_cmds runs LD, not CC, wlarc should be empty
24247 # Set some defaults for GNU ld with shared library support. These
24248 # are reset later if shared libraries are not supported. Putting them
24249 # here allows them to be overridden if necessary.
24250 runpath_var=LD_RUN_PATH
24251 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24252 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24253 # ancient GNU ld didn't support --whole-archive et. al.
24254 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24255 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24257 whole_archive_flag_spec_GCJ=
24259 supports_anon_versioning=no
24260 case `$LD -v 2>/dev/null` in
24261 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24262 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24263 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24264 *\ 2.11.*) ;; # other 2.11 versions
24265 *) supports_anon_versioning=yes ;;
24268 # See if GNU ld supports shared libraries.
24270 aix3* | aix4* | aix5*)
24271 # On AIX/PPC, the GNU linker is very broken
24272 if test "$host_cpu" != ia64; then
24276 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24277 *** to be unable to reliably create shared libraries on AIX.
24278 *** Therefore, libtool is disabling shared libraries support. If you
24279 *** really care for shared libraries, you may want to modify your PATH
24280 *** so that a non-GNU linker is found, and then restart.
24287 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)'
24288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24289 hardcode_minus_L_GCJ=yes
24291 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24292 # that the semantics of dynamic libraries on AmigaOS, at least up
24293 # to version 4, is to share data among multiple programs linked
24294 # with the same dynamic library. Since this doesn't match the
24295 # behavior of shared libraries on other platforms, we can't use
24301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24302 allow_undefined_flag_GCJ=unsupported
24303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24304 # support --undefined. This deserves some investigation. FIXME
24305 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24311 cygwin* | mingw* | pw32*)
24312 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24313 # as there is no search path for DLLs.
24314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24315 allow_undefined_flag_GCJ=unsupported
24316 always_export_symbols_GCJ=no
24317 enable_shared_with_static_runtimes_GCJ=yes
24318 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24320 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24321 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24322 # If the export-symbols file already is a .def file (1st line
24323 # is EXPORTS), use it as is; otherwise, prepend...
24324 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24325 cp $export_symbols $output_objdir/$soname.def;
24327 echo EXPORTS > $output_objdir/$soname.def;
24328 cat $export_symbols >> $output_objdir/$soname.def;
24330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24337 hardcode_direct_GCJ=no
24338 hardcode_shlibpath_var_GCJ=no
24339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24340 export_dynamic_flag_spec_GCJ='${wl}-E'
24341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24342 # Instead, shared libraries are loaded at an image base (0x10000000 by
24343 # default) and relocated if they conflict, which is a slow very memory
24344 # consuming and fragmenting process. To avoid this, we pick a random,
24345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24347 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'
24348 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'
24352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24354 case $cc_basename,$host_cpu in
24355 pgcc*) # Portland Group C compiler
24356 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'
24357 tmp_addflag=' $pic_flag'
24359 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24360 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'
24361 tmp_addflag=' $pic_flag -Mnomain' ;;
24362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24363 tmp_addflag=' -i_dynamic' ;;
24364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24365 tmp_addflag=' -i_dynamic -nofor_main' ;;
24366 ifc* | ifort*) # Intel Fortran compiler
24367 tmp_addflag=' -nofor_main' ;;
24369 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24371 if test $supports_anon_versioning = yes; then
24372 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24374 $echo "local: *; };" >> $output_objdir/$libname.ver~
24375 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24384 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24388 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24393 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24397 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24398 *** create shared libraries on Solaris systems. Therefore, libtool
24399 *** is disabling shared libraries support. We urge you to upgrade GNU
24400 *** binutils to release 2.9.1 or newer. Another option is to modify
24401 *** your PATH or compiler configuration so that the native linker is
24402 *** used, and then restart.
24405 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24406 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24407 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24414 case `$LD -v 2>&1` in
24415 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24419 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24420 *** reliably create shared libraries on SCO systems. Therefore, libtool
24421 *** is disabling shared libraries support. We urge you to upgrade GNU
24422 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24423 *** your PATH or compiler configuration so that the native linker is
24424 *** used, and then restart.
24429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24430 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24432 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24441 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24443 hardcode_direct_GCJ=yes
24444 hardcode_shlibpath_var_GCJ=no
24448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24449 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24450 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24457 if test "$ld_shlibs_GCJ" = no; then
24459 hardcode_libdir_flag_spec_GCJ=
24460 export_dynamic_flag_spec_GCJ=
24461 whole_archive_flag_spec_GCJ=
24464 # PORTME fill in a description of your system's linker (not GNU ld)
24467 allow_undefined_flag_GCJ=unsupported
24468 always_export_symbols_GCJ=yes
24469 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'
24470 # Note: this linker hardcodes the directories in LIBPATH if there
24471 # are no directories specified by -L.
24472 hardcode_minus_L_GCJ=yes
24473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24474 # Neither direct hardcoding nor static linking is supported with a
24476 hardcode_direct_GCJ=unsupported
24481 if test "$host_cpu" = ia64; then
24482 # On IA64, the linker does run time linking by default, so we don't
24483 # have to do anything special.
24484 aix_use_runtimelinking=no
24485 exp_sym_flag='-Bexport'
24488 # If we're using GNU nm, then we don't want the "-C" option.
24489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24490 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24491 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'
24493 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'
24495 aix_use_runtimelinking=no
24497 # Test if we are trying to use run time linking or normal
24498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24499 # need to do runtime linking.
24500 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24501 for ld_flag in $LDFLAGS; do
24502 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24503 aix_use_runtimelinking=yes
24510 exp_sym_flag='-bexport'
24511 no_entry_flag='-bnoentry'
24514 # When large executables or shared objects are built, AIX ld can
24515 # have problems creating the table of contents. If linking a library
24516 # or program results in "error TOC overflow" add -mminimal-toc to
24517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24520 archive_cmds_GCJ=''
24521 hardcode_direct_GCJ=yes
24522 hardcode_libdir_separator_GCJ=':'
24523 link_all_deplibs_GCJ=yes
24525 if test "$GCC" = yes; then
24526 case $host_os in aix4.[012]|aix4.[012].*)
24527 # We only want to do this on AIX 4.2 and lower, the check
24528 # below for broken collect2 doesn't work under 4.3+
24529 collect2name=`${CC} -print-prog-name=collect2`
24530 if test -f "$collect2name" && \
24531 strings "$collect2name" | grep resolve_lib_name >/dev/null
24533 # We have reworked collect2
24534 hardcode_direct_GCJ=yes
24536 # We have old collect2
24537 hardcode_direct_GCJ=unsupported
24538 # It fails to find uninstalled libraries when the uninstalled
24539 # path is not listed in the libpath. Setting hardcode_minus_L
24540 # to unsupported forces relinking
24541 hardcode_minus_L_GCJ=yes
24542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24543 hardcode_libdir_separator_GCJ=
24547 shared_flag='-shared'
24548 if test "$aix_use_runtimelinking" = yes; then
24549 shared_flag="$shared_flag "'${wl}-G'
24553 if test "$host_cpu" = ia64; then
24554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24555 # chokes on -Wl,-G. The following line is correct:
24558 if test "$aix_use_runtimelinking" = yes; then
24559 shared_flag='${wl}-G'
24561 shared_flag='${wl}-bM:SRE'
24566 # It seems that -bexpall does not export symbols beginning with
24567 # underscore (_), so it is better to generate a list of symbols to export.
24568 always_export_symbols_GCJ=yes
24569 if test "$aix_use_runtimelinking" = yes; then
24570 # Warning - without using the other runtime loading flags (-brtl),
24571 # -berok will link without error, but may produce a broken library.
24572 allow_undefined_flag_GCJ='-berok'
24573 # Determine the default libpath from the value encoded in an empty executable.
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24589 rm -f conftest.$ac_objext conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_link") 2>conftest.er1
24598 grep -v '^ *+' conftest.er1 >conftest.err
24600 cat conftest.err >&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } &&
24603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24604 { (case "(($ac_try" in
24605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606 *) ac_try_echo=$ac_try;;
24608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24609 (eval "$ac_try") 2>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; } &&
24613 { ac_try='test -s conftest$ac_exeext'
24614 { (case "(($ac_try" in
24615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616 *) ac_try_echo=$ac_try;;
24618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619 (eval "$ac_try") 2>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24626 # Check for a 64-bit object if we didn't find anything.
24627 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; }
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24636 rm -f core conftest.err conftest.$ac_objext \
24637 conftest$ac_exeext conftest.$ac_ext
24638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24640 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24641 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"
24643 if test "$host_cpu" = ia64; then
24644 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24645 allow_undefined_flag_GCJ="-z nodefs"
24646 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"
24648 # Determine the default libpath from the value encoded in an empty executable.
24649 cat >conftest.$ac_ext <<_ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24664 rm -f conftest.$ac_objext conftest$ac_exeext
24665 if { (ac_try="$ac_link"
24666 case "(($ac_try" in
24667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671 (eval "$ac_link") 2>conftest.er1
24673 grep -v '^ *+' conftest.er1 >conftest.err
24675 cat conftest.err >&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24679 { (case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_try") 2>&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; } &&
24688 { ac_try='test -s conftest$ac_exeext'
24689 { (case "(($ac_try" in
24690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691 *) ac_try_echo=$ac_try;;
24693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694 (eval "$ac_try") 2>&5
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; }; then
24699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24701 # Check for a 64-bit object if we didn't find anything.
24702 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; }
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24711 rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
24713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24716 # Warning - without using the other run time loading flags,
24717 # -berok will link without error, but may produce a broken library.
24718 no_undefined_flag_GCJ=' ${wl}-bernotok'
24719 allow_undefined_flag_GCJ=' ${wl}-berok'
24720 # Exported symbols can be pulled into shared objects from archives
24721 whole_archive_flag_spec_GCJ='$convenience'
24722 archive_cmds_need_lc_GCJ=yes
24723 # This is similar to how AIX traditionally builds its shared libraries.
24724 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'
24730 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)'
24731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24732 hardcode_minus_L_GCJ=yes
24733 # see comment about different semantics on the GNU ld section
24738 export_dynamic_flag_spec_GCJ=-rdynamic
24741 cygwin* | mingw* | pw32*)
24742 # When not using gcc, we currently assume that we are using
24743 # Microsoft Visual C++.
24744 # hardcode_libdir_flag_spec is actually meaningless, as there is
24745 # no search path for DLLs.
24746 hardcode_libdir_flag_spec_GCJ=' '
24747 allow_undefined_flag_GCJ=unsupported
24748 # Tell ltmain to make .lib files, not .a files.
24750 # Tell ltmain to make .dll files, not .so files.
24752 # FIXME: Setting linknames here is a bad hack.
24753 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24754 # The linker will automatically build a .lib file if we build a DLL.
24755 old_archive_From_new_cmds_GCJ='true'
24756 # FIXME: Should let the user specify the lib program.
24757 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24758 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24759 enable_shared_with_static_runtimes_GCJ=yes
24762 darwin* | rhapsody*)
24764 rhapsody* | darwin1.[012])
24765 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24768 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24769 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24771 case ${MACOSX_DEPLOYMENT_TARGET} in
24773 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24776 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24782 archive_cmds_need_lc_GCJ=no
24783 hardcode_direct_GCJ=no
24784 hardcode_automatic_GCJ=yes
24785 hardcode_shlibpath_var_GCJ=unsupported
24786 whole_archive_flag_spec_GCJ=''
24787 link_all_deplibs_GCJ=yes
24788 if test "$GCC" = yes ; then
24789 output_verbose_link_cmd='echo'
24790 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24791 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24792 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24793 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}'
24794 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}'
24796 case $cc_basename in
24798 output_verbose_link_cmd='echo'
24799 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24800 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24802 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}'
24803 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}'
24813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24815 hardcode_shlibpath_var_GCJ=no
24822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24823 # support. Future versions do this automatically, but an explicit c++rt0.o
24824 # does not break anything, and helps significantly (at the cost of a little
24827 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24828 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24829 hardcode_direct_GCJ=yes
24830 hardcode_shlibpath_var_GCJ=no
24833 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24835 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24836 hardcode_direct_GCJ=yes
24837 hardcode_minus_L_GCJ=yes
24838 hardcode_shlibpath_var_GCJ=no
24841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24842 freebsd* | kfreebsd*-gnu | dragonfly*)
24843 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24844 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24845 hardcode_direct_GCJ=yes
24846 hardcode_shlibpath_var_GCJ=no
24850 if test "$GCC" = yes; then
24851 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'
24853 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'
24855 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24856 hardcode_libdir_separator_GCJ=:
24857 hardcode_direct_GCJ=yes
24859 # hardcode_minus_L: Not really in the search PATH,
24860 # but as the default location of the library.
24861 hardcode_minus_L_GCJ=yes
24862 export_dynamic_flag_spec_GCJ='${wl}-E'
24866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24867 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24869 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24871 if test "$with_gnu_ld" = no; then
24872 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24873 hardcode_libdir_separator_GCJ=:
24875 hardcode_direct_GCJ=yes
24876 export_dynamic_flag_spec_GCJ='${wl}-E'
24878 # hardcode_minus_L: Not really in the search PATH,
24879 # but as the default location of the library.
24880 hardcode_minus_L_GCJ=yes
24885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24894 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24906 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24910 if test "$with_gnu_ld" = no; then
24911 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24912 hardcode_libdir_separator_GCJ=:
24916 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24917 hardcode_direct_GCJ=no
24918 hardcode_shlibpath_var_GCJ=no
24921 hardcode_direct_GCJ=yes
24922 export_dynamic_flag_spec_GCJ='${wl}-E'
24924 # hardcode_minus_L: Not really in the search PATH,
24925 # but as the default location of the library.
24926 hardcode_minus_L_GCJ=yes
24932 irix5* | irix6* | nonstopux*)
24933 if test "$GCC" = yes; then
24934 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'
24936 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'
24937 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24940 hardcode_libdir_separator_GCJ=:
24941 link_all_deplibs_GCJ=yes
24945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24946 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24948 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24950 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24951 hardcode_direct_GCJ=yes
24952 hardcode_shlibpath_var_GCJ=no
24956 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24957 hardcode_direct_GCJ=yes
24958 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24959 hardcode_libdir_separator_GCJ=:
24960 hardcode_shlibpath_var_GCJ=no
24964 hardcode_direct_GCJ=yes
24965 hardcode_shlibpath_var_GCJ=no
24966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24967 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24968 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24970 export_dynamic_flag_spec_GCJ='${wl}-E'
24973 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24974 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24975 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24978 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24987 hardcode_minus_L_GCJ=yes
24988 allow_undefined_flag_GCJ=unsupported
24989 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'
24990 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24994 if test "$GCC" = yes; then
24995 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24996 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'
24998 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24999 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'
25001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25002 hardcode_libdir_separator_GCJ=:
25005 osf4* | osf5*) # as osf3* with the addition of -msym flag
25006 if test "$GCC" = yes; then
25007 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25008 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'
25009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25011 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25012 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'
25013 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~
25014 $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'
25016 # Both c and cxx compiler support -rpath directly
25017 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25019 hardcode_libdir_separator_GCJ=:
25023 no_undefined_flag_GCJ=' -z text'
25024 if test "$GCC" = yes; then
25026 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25027 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25028 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25031 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25032 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25036 hardcode_shlibpath_var_GCJ=no
25038 solaris2.[0-5] | solaris2.[0-5].*) ;;
25040 # The compiler driver will combine linker options so we
25041 # cannot just pass the convience library names through
25042 # without $wl, iff we do not link with $LD.
25043 # Luckily, gcc supports the same syntax we need for Sun Studio.
25044 # Supported since Solaris 2.6 (maybe 2.5.1?)
25047 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25049 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' ;;
25052 link_all_deplibs_GCJ=yes
25056 if test "x$host_vendor" = xsequent; then
25057 # Use $CC to link under sequent, because it throws in some extra .o
25058 # files that make .init and .fini sections work.
25059 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25061 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25064 hardcode_direct_GCJ=yes
25065 hardcode_minus_L_GCJ=yes
25066 hardcode_shlibpath_var_GCJ=no
25070 case $host_vendor in
25072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25073 hardcode_direct_GCJ=yes # is this really true???
25076 ## LD is ld it makes a PLAMLIB
25077 ## CC just makes a GrossModule.
25078 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25079 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25080 hardcode_direct_GCJ=no
25083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25084 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25087 runpath_var='LD_RUN_PATH'
25088 hardcode_shlibpath_var_GCJ=no
25092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25093 hardcode_shlibpath_var_GCJ=no
25094 export_dynamic_flag_spec_GCJ='-Bexport'
25098 if test -d /usr/nec; then
25099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25100 hardcode_shlibpath_var_GCJ=no
25101 runpath_var=LD_RUN_PATH
25102 hardcode_runpath_var=yes
25107 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25108 no_undefined_flag_GCJ='${wl}-z,text'
25109 archive_cmds_need_lc_GCJ=no
25110 hardcode_shlibpath_var_GCJ=no
25111 runpath_var='LD_RUN_PATH'
25113 if test "$GCC" = yes; then
25114 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25115 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25117 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25118 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25122 sysv5* | sco3.2v5* | sco5v6*)
25123 # Note: We can NOT use -z defs as we might desire, because we do not
25124 # link with -lc, and that would cause any symbols used from libc to
25125 # always be unresolved, which means just about no library would
25126 # ever link correctly. If we're not using GNU ld we use -z text
25127 # though, which does catch some bad symbols but isn't as heavy-handed
25129 no_undefined_flag_GCJ='${wl}-z,text'
25130 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25131 archive_cmds_need_lc_GCJ=no
25132 hardcode_shlibpath_var_GCJ=no
25133 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25134 hardcode_libdir_separator_GCJ=':'
25135 link_all_deplibs_GCJ=yes
25136 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25137 runpath_var='LD_RUN_PATH'
25139 if test "$GCC" = yes; then
25140 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25141 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25143 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25144 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25151 hardcode_shlibpath_var_GCJ=no
25160 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25161 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25162 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25165 # Do we need to explicitly link libc?
25167 case "x$archive_cmds_need_lc_GCJ" in
25169 # Assume -lc should be added
25170 archive_cmds_need_lc_GCJ=yes
25172 if test "$enable_shared" = yes && test "$GCC" = yes; then
25173 case $archive_cmds_GCJ in
25175 # FIXME: we may have to deal with multi-command sequences.
25178 # Test whether the compiler implicitly links with -lc since on some
25179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25180 # to ld, don't add -lc before -lgcc.
25181 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25187 (eval $ac_compile) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } 2>conftest.err; then
25193 libobjs=conftest.$ac_objext
25195 wl=$lt_prog_compiler_wl_GCJ
25196 pic_flag=$lt_prog_compiler_pic_GCJ
25202 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25203 allow_undefined_flag_GCJ=
25204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25205 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }
25210 archive_cmds_need_lc_GCJ=no
25212 archive_cmds_need_lc_GCJ=yes
25214 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25216 cat conftest.err 1>&5
25219 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25220 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25229 library_names_spec=
25230 libname_spec='lib$name'
25234 postuninstall_cmds=
25238 shlibpath_overrides_runpath=unknown
25240 dynamic_linker="$host_os ld.so"
25241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25242 if test "$GCC" = yes; then
25243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25244 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25245 # if the path contains ";" then we assume it to be the separator
25246 # otherwise default to the standard path separator (i.e. ":") - it is
25247 # assumed that no part of a normal pathname contains ";" but that should
25248 # okay in the real world where ";" in dirpaths is itself problematic.
25249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25256 need_lib_prefix=unknown
25257 hardcode_into_libs=no
25259 # when you set need_version to no, make sure it does not cause -set_version
25260 # flags to be left without arguments
25261 need_version=unknown
25266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25267 shlibpath_var=LIBPATH
25269 # AIX 3 has no versioning support, so we append a major version to the name.
25270 soname_spec='${libname}${release}${shared_ext}$major'
25277 hardcode_into_libs=yes
25278 if test "$host_cpu" = ia64; then
25279 # AIX 5 supports IA64
25280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25281 shlibpath_var=LD_LIBRARY_PATH
25283 # With GCC up to 2.95.x, collect2 would create an import file
25284 # for dependence libraries. The import file would start with
25285 # the line `#! .'. This would cause the generated library to
25286 # depend on `.', always an invalid library. This was fixed in
25287 # development snapshots of GCC prior to 3.0.
25289 aix4 | aix4.[01] | aix4.[01].*)
25290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25292 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25295 can_build_shared=no
25299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25300 # soname into executable. Probably we can add versioning support to
25301 # collect2, so additional links can be useful in future.
25302 if test "$aix_use_runtimelinking" = yes; then
25303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25304 # instead of lib<name>.a to let people know that these are not
25305 # typical AIX shared libraries.
25306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25308 # We preserve .a as extension for shared libraries through AIX4.2
25309 # and later when we are not doing run time linking.
25310 library_names_spec='${libname}${release}.a $libname.a'
25311 soname_spec='${libname}${release}${shared_ext}$major'
25313 shlibpath_var=LIBPATH
25318 library_names_spec='$libname.ixlibrary $libname.a'
25319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25320 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'
25324 library_names_spec='${libname}${shared_ext}'
25325 dynamic_linker="$host_os ld.so"
25326 shlibpath_var=LIBRARY_PATH
25332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25333 soname_spec='${libname}${release}${shared_ext}$major'
25334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25335 shlibpath_var=LD_LIBRARY_PATH
25336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25338 # the default ld.so.conf also contains /usr/contrib/lib and
25339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25340 # libtool to hard-code these into programs
25343 cygwin* | mingw* | pw32*)
25344 version_type=windows
25349 case $GCC,$host_os in
25350 yes,cygwin* | yes,mingw* | yes,pw32*)
25351 library_names_spec='$libname.dll.a'
25352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25353 postinstall_cmds='base_file=`basename \${file}`~
25354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25355 dldir=$destdir/`dirname \$dlpath`~
25356 test -d \$dldir || mkdir -p \$dldir~
25357 $install_prog $dir/$dlname \$dldir/$dlname~
25358 chmod a+x \$dldir/$dlname'
25359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25360 dlpath=$dir/\$dldll~
25362 shlibpath_overrides_runpath=yes
25366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25371 # MinGW DLLs use traditional 'lib' prefix
25372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25373 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25374 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25375 # It is most probably a Windows format PATH printed by
25376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25377 # path with ; separators, and with drive letters. We can handle the
25378 # drive letters (cygwin fileutils understands them), so leave them,
25379 # especially as we might pass files found there to a mingw objdump,
25380 # which wouldn't understand a cygwinified path. Ahh.
25381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25387 # pw32 DLLs use 'pw' prefix rather than 'lib'
25388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25397 dynamic_linker='Win32 ld.exe'
25398 # FIXME: first we should search . and the directory the executable is in
25402 darwin* | rhapsody*)
25403 dynamic_linker="$host_os dyld"
25404 version_type=darwin
25407 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25408 soname_spec='${libname}${release}${major}$shared_ext'
25409 shlibpath_overrides_runpath=yes
25410 shlibpath_var=DYLD_LIBRARY_PATH
25411 shrext_cmds='.dylib'
25412 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25413 if test "$GCC" = yes; then
25414 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"`
25416 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25426 soname_spec='${libname}${release}${shared_ext}$major'
25427 shlibpath_var=LD_LIBRARY_PATH
25438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25439 soname_spec='${libname}${release}${shared_ext}$major'
25440 shlibpath_var=LD_LIBRARY_PATH
25441 shlibpath_overrides_runpath=no
25442 hardcode_into_libs=yes
25443 dynamic_linker='GNU ld.so'
25446 freebsd* | dragonfly*)
25447 # DragonFly does not have aout. When/if they implement a new
25448 # versioning mechanism, adjust this.
25449 if test -x /usr/bin/objformat; then
25450 objformat=`/usr/bin/objformat`
25453 freebsd[123]*) objformat=aout ;;
25454 *) objformat=elf ;;
25457 version_type=freebsd-$objformat
25458 case $version_type in
25460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25469 shlibpath_var=LD_LIBRARY_PATH
25472 shlibpath_overrides_runpath=yes
25474 freebsd3.[01]* | freebsdelf3.[01]*)
25475 shlibpath_overrides_runpath=yes
25476 hardcode_into_libs=yes
25478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25480 shlibpath_overrides_runpath=no
25481 hardcode_into_libs=yes
25483 freebsd*) # from 4.6 on
25484 shlibpath_overrides_runpath=yes
25485 hardcode_into_libs=yes
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25495 soname_spec='${libname}${release}${shared_ext}$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 hardcode_into_libs=yes
25500 hpux9* | hpux10* | hpux11*)
25501 # Give a soname corresponding to the major version so that dld.sl refuses to
25502 # link against other versions.
25509 hardcode_into_libs=yes
25510 dynamic_linker="$host_os dld.so"
25511 shlibpath_var=LD_LIBRARY_PATH
25512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25514 soname_spec='${libname}${release}${shared_ext}$major'
25515 if test "X$HPUX_IA64_MODE" = X32; then
25516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25524 hardcode_into_libs=yes
25525 dynamic_linker="$host_os dld.sl"
25526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25529 soname_spec='${libname}${release}${shared_ext}$major'
25530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25535 dynamic_linker="$host_os dld.sl"
25536 shlibpath_var=SHLIB_PATH
25537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25539 soname_spec='${libname}${release}${shared_ext}$major'
25542 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25543 postinstall_cmds='chmod 555 $lib'
25550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25551 soname_spec='${libname}${release}${shared_ext}$major'
25552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25553 shlibpath_var=LD_LIBRARY_PATH
25554 shlibpath_overrides_runpath=no
25555 hardcode_into_libs=yes
25558 irix5* | irix6* | nonstopux*)
25560 nonstopux*) version_type=nonstopux ;;
25562 if test "$lt_cv_prog_gnu_ld" = yes; then
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25573 irix5* | nonstopux*)
25574 libsuff= shlibsuff=
25577 case $LD in # libtool.m4 will add one of these switches to LD
25578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25579 libsuff= shlibsuff= libmagic=32-bit;;
25580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25581 libsuff=32 shlibsuff=N32 libmagic=N32;;
25582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25584 *) libsuff= shlibsuff= libmagic=never-match;;
25588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25589 shlibpath_overrides_runpath=no
25590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25592 hardcode_into_libs=yes
25595 # No shared lib support for Linux oldld, aout, or coff.
25596 linux*oldld* | linux*aout* | linux*coff*)
25600 # This must be Linux ELF.
25605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606 soname_spec='${libname}${release}${shared_ext}$major'
25607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25608 shlibpath_var=LD_LIBRARY_PATH
25609 shlibpath_overrides_runpath=no
25610 # This implies no fast_install, which is unacceptable.
25611 # Some rework will be needed to allow for fast_install
25612 # before this can be enabled.
25613 hardcode_into_libs=yes
25615 # Append ld.so.conf contents to the search path
25616 if test -f /etc/ld.so.conf; then
25617 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' ' '`
25618 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25621 # We used to test for /lib/ld.so.1 and disable shared libraries on
25622 # powerpc, because MkLinux only supported shared libraries with the
25623 # GNU dynamic linker. Since this was broken with cross compilers,
25624 # most powerpc-linux boxes support dynamic linking these days and
25625 # people can always --disable-shared, the test was removed, and we
25626 # assume the GNU/Linux dynamic linker is in use.
25627 dynamic_linker='GNU/Linux ld.so'
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 shlibpath_var=LD_LIBRARY_PATH
25637 shlibpath_overrides_runpath=no
25638 hardcode_into_libs=yes
25639 dynamic_linker='GNU ld.so'
25646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25649 dynamic_linker='NetBSD (a.out) ld.so'
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25652 soname_spec='${libname}${release}${shared_ext}$major'
25653 dynamic_linker='NetBSD ld.elf_so'
25655 shlibpath_var=LD_LIBRARY_PATH
25656 shlibpath_overrides_runpath=yes
25657 hardcode_into_libs=yes
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 shlibpath_overrides_runpath=yes
25671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25672 soname_spec='${libname}${release}${shared_ext}$major'
25673 shlibpath_var=LD_LIBRARY_PATH
25674 shlibpath_overrides_runpath=yes
25679 sys_lib_dlsearch_path_spec="/usr/lib"
25681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25684 *) need_version=no ;;
25686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25688 shlibpath_var=LD_LIBRARY_PATH
25689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25691 openbsd2.[89] | openbsd2.[89].*)
25692 shlibpath_overrides_runpath=no
25695 shlibpath_overrides_runpath=yes
25699 shlibpath_overrides_runpath=yes
25704 libname_spec='$name'
25707 library_names_spec='$libname${shared_ext} $libname.a'
25708 dynamic_linker='OS/2 ld.exe'
25709 shlibpath_var=LIBPATH
25712 osf3* | osf4* | osf5*)
25716 soname_spec='${libname}${release}${shared_ext}$major'
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718 shlibpath_var=LD_LIBRARY_PATH
25719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728 soname_spec='${libname}${release}${shared_ext}$major'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25731 hardcode_into_libs=yes
25732 # ldd complains unless libraries are executable
25733 postinstall_cmds='chmod +x $lib'
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25740 shlibpath_var=LD_LIBRARY_PATH
25741 shlibpath_overrides_runpath=yes
25742 if test "$with_gnu_ld" = yes; then
25750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25751 soname_spec='${libname}${release}${shared_ext}$major'
25752 shlibpath_var=LD_LIBRARY_PATH
25753 case $host_vendor in
25755 shlibpath_overrides_runpath=no
25757 export_dynamic_flag_spec='${wl}-Blargedynsym'
25758 runpath_var=LD_RUN_PATH
25766 shlibpath_overrides_runpath=no
25767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25773 if test -d /usr/nec ;then
25775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25776 soname_spec='$libname${shared_ext}.$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25782 version_type=freebsd-elf
25785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25786 soname_spec='${libname}${release}${shared_ext}$major'
25787 shlibpath_var=LD_LIBRARY_PATH
25788 hardcode_into_libs=yes
25789 if test "$with_gnu_ld" = yes; then
25790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25791 shlibpath_overrides_runpath=no
25793 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25794 shlibpath_overrides_runpath=yes
25797 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25801 sys_lib_dlsearch_path_spec='/usr/lib'
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 shlibpath_var=LD_LIBRARY_PATH
25815 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25816 echo "${ECHO_T}$dynamic_linker" >&6; }
25817 test "$dynamic_linker" = no && can_build_shared=no
25819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25820 if test "$GCC" = yes; then
25821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25824 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25825 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25826 hardcode_action_GCJ=
25827 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25828 test -n "$runpath_var_GCJ" || \
25829 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25831 # We can hardcode non-existant directories.
25832 if test "$hardcode_direct_GCJ" != no &&
25833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25834 # have to relink, otherwise we might link with an installed library
25835 # when we should be linking with a yet-to-be-installed one
25836 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25837 test "$hardcode_minus_L_GCJ" != no; then
25838 # Linking always hardcodes the temporary library directory.
25839 hardcode_action_GCJ=relink
25841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25842 hardcode_action_GCJ=immediate
25845 # We cannot hardcode anything, or else we can only hardcode existing
25847 hardcode_action_GCJ=unsupported
25849 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25850 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25852 if test "$hardcode_action_GCJ" = relink; then
25853 # Fast installation is not supported
25854 enable_fast_install=no
25855 elif test "$shlibpath_overrides_runpath" = yes ||
25856 test "$enable_shared" = no; then
25857 # Fast installation is not necessary
25858 enable_fast_install=needless
25862 # The else clause should only fire when bootstrapping the
25863 # libtool distribution, otherwise you forgot to ship ltmain.sh
25864 # with your package, and you will get complaints that there are
25865 # no rules to generate ltmain.sh.
25866 if test -f "$ltmain"; then
25867 # See if we are running on zsh, and set the options which allow our commands through
25868 # without removal of \ escapes.
25869 if test -n "${ZSH_VERSION+set}" ; then
25870 setopt NO_GLOB_SUBST
25872 # Now quote all the things that may contain metacharacters while being
25873 # careful not to overquote the AC_SUBSTed values. We take copies of the
25874 # variables and quote the copies for generation of the libtool script.
25875 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25877 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25878 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25879 deplibs_check_method reload_flag reload_cmds need_locks \
25880 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25881 lt_cv_sys_global_symbol_to_c_name_address \
25882 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25883 old_postinstall_cmds old_postuninstall_cmds \
25887 lt_prog_compiler_wl_GCJ \
25888 lt_prog_compiler_pic_GCJ \
25889 lt_prog_compiler_static_GCJ \
25890 lt_prog_compiler_no_builtin_flag_GCJ \
25891 export_dynamic_flag_spec_GCJ \
25892 thread_safe_flag_spec_GCJ \
25893 whole_archive_flag_spec_GCJ \
25894 enable_shared_with_static_runtimes_GCJ \
25895 old_archive_cmds_GCJ \
25896 old_archive_from_new_cmds_GCJ \
25897 predep_objects_GCJ \
25898 postdep_objects_GCJ \
25901 compiler_lib_search_path_GCJ \
25903 archive_expsym_cmds_GCJ \
25904 postinstall_cmds_GCJ \
25905 postuninstall_cmds_GCJ \
25906 old_archive_from_expsyms_cmds_GCJ \
25907 allow_undefined_flag_GCJ \
25908 no_undefined_flag_GCJ \
25909 export_symbols_cmds_GCJ \
25910 hardcode_libdir_flag_spec_GCJ \
25911 hardcode_libdir_flag_spec_ld_GCJ \
25912 hardcode_libdir_separator_GCJ \
25913 hardcode_automatic_GCJ \
25915 module_expsym_cmds_GCJ \
25916 lt_cv_prog_compiler_c_o_GCJ \
25917 exclude_expsyms_GCJ \
25918 include_expsyms_GCJ; do
25921 old_archive_cmds_GCJ | \
25922 old_archive_from_new_cmds_GCJ | \
25923 archive_cmds_GCJ | \
25924 archive_expsym_cmds_GCJ | \
25925 module_cmds_GCJ | \
25926 module_expsym_cmds_GCJ | \
25927 old_archive_from_expsyms_cmds_GCJ | \
25928 export_symbols_cmds_GCJ | \
25929 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25930 postinstall_cmds | postuninstall_cmds | \
25931 old_postinstall_cmds | old_postuninstall_cmds | \
25932 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25933 # Double-quote double-evaled strings.
25934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25943 *'\$0 --fallback-echo"')
25944 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25950 cat <<__EOF__ >> "$cfgfile"
25951 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25953 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25955 # Shell to use when invoking shell scripts.
25958 # Whether or not to build shared libraries.
25959 build_libtool_libs=$enable_shared
25961 # Whether or not to build static libraries.
25962 build_old_libs=$enable_static
25964 # Whether or not to add -lc for building shared libraries.
25965 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25967 # Whether or not to disallow shared libs when runtime libs are static
25968 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25970 # Whether or not to optimize for fast installation.
25971 fast_install=$enable_fast_install
25974 host_alias=$host_alias
25978 # The build system.
25979 build_alias=$build_alias
25983 # An echo program that does not interpret backslashes.
25988 AR_FLAGS=$lt_AR_FLAGS
25993 # LTCC compiler flags.
25994 LTCFLAGS=$lt_LTCFLAGS
25996 # A language-specific compiler.
25997 CC=$lt_compiler_GCJ
25999 # Is the compiler the GNU C compiler?
26005 # The linker used to build libraries.
26008 # Whether we need hard or soft links.
26011 # A BSD-compatible nm program.
26014 # A symbol stripping program
26017 # Used to examine libraries when file_magic_cmd begins "file"
26018 MAGIC_CMD=$MAGIC_CMD
26020 # Used on cygwin: DLL creation program.
26023 # Used on cygwin: object dumper.
26026 # Used on cygwin: assembler.
26029 # The name of the directory that contains temporary libtool files.
26032 # How to create reloadable object files.
26033 reload_flag=$lt_reload_flag
26034 reload_cmds=$lt_reload_cmds
26036 # How to pass a linker flag through the compiler.
26037 wl=$lt_lt_prog_compiler_wl_GCJ
26039 # Object file suffix (normally "o").
26040 objext="$ac_objext"
26042 # Old archive suffix (normally "a").
26045 # Shared library suffix (normally ".so").
26046 shrext_cmds='$shrext_cmds'
26048 # Executable file suffix (normally "").
26051 # Additional compiler flags for building library objects.
26052 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26055 # What is the maximum length of a command?
26056 max_cmd_len=$lt_cv_sys_max_cmd_len
26058 # Does compiler simultaneously support -c and -o options?
26059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26061 # Must we lock files when doing compilation?
26062 need_locks=$lt_need_locks
26064 # Do we need the lib prefix for modules?
26065 need_lib_prefix=$need_lib_prefix
26067 # Do we need a version for libraries?
26068 need_version=$need_version
26070 # Whether dlopen is supported.
26071 dlopen_support=$enable_dlopen
26073 # Whether dlopen of programs is supported.
26074 dlopen_self=$enable_dlopen_self
26076 # Whether dlopen of statically linked programs is supported.
26077 dlopen_self_static=$enable_dlopen_self_static
26079 # Compiler flag to prevent dynamic linking.
26080 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26082 # Compiler flag to turn off builtin functions.
26083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26085 # Compiler flag to allow reflexive dlopens.
26086 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26088 # Compiler flag to generate shared objects directly from archives.
26089 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26091 # Compiler flag to generate thread-safe objects.
26092 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26094 # Library versioning type.
26095 version_type=$version_type
26097 # Format of library name prefix.
26098 libname_spec=$lt_libname_spec
26100 # List of archive names. First name is the real one, the rest are links.
26101 # The last name is the one that the linker finds with -lNAME.
26102 library_names_spec=$lt_library_names_spec
26104 # The coded name of the library, if different from the real name.
26105 soname_spec=$lt_soname_spec
26107 # Commands used to build and install an old-style archive.
26109 old_archive_cmds=$lt_old_archive_cmds_GCJ
26110 old_postinstall_cmds=$lt_old_postinstall_cmds
26111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26113 # Create an old-style archive from a shared archive.
26114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26116 # Create a temporary old-style archive to link instead of a shared archive.
26117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26119 # Commands used to build and install a shared archive.
26120 archive_cmds=$lt_archive_cmds_GCJ
26121 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26122 postinstall_cmds=$lt_postinstall_cmds
26123 postuninstall_cmds=$lt_postuninstall_cmds
26125 # Commands used to build a loadable module (assumed same as above if empty)
26126 module_cmds=$lt_module_cmds_GCJ
26127 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26129 # Commands to strip libraries.
26130 old_striplib=$lt_old_striplib
26131 striplib=$lt_striplib
26133 # Dependencies to place before the objects being linked to create a
26135 predep_objects=$lt_predep_objects_GCJ
26137 # Dependencies to place after the objects being linked to create a
26139 postdep_objects=$lt_postdep_objects_GCJ
26141 # Dependencies to place before the objects being linked to create a
26143 predeps=$lt_predeps_GCJ
26145 # Dependencies to place after the objects being linked to create a
26147 postdeps=$lt_postdeps_GCJ
26149 # The library search path used internally by the compiler when linking
26150 # a shared library.
26151 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26153 # Method to check whether dependent libraries are shared objects.
26154 deplibs_check_method=$lt_deplibs_check_method
26156 # Command to use when deplibs_check_method == file_magic.
26157 file_magic_cmd=$lt_file_magic_cmd
26159 # Flag that allows shared libraries with undefined symbols to be built.
26160 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26162 # Flag that forces no undefined symbols.
26163 no_undefined_flag=$lt_no_undefined_flag_GCJ
26165 # Commands used to finish a libtool library installation in a directory.
26166 finish_cmds=$lt_finish_cmds
26168 # Same as above, but a single script fragment to be evaled but not shown.
26169 finish_eval=$lt_finish_eval
26171 # Take the output of nm and produce a listing of raw symbols and C names.
26172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26174 # Transform the output of nm in a proper C declaration
26175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26177 # Transform the output of nm in a C name address pair
26178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26180 # This is the shared library runtime path variable.
26181 runpath_var=$runpath_var
26183 # This is the shared library path variable.
26184 shlibpath_var=$shlibpath_var
26186 # Is shlibpath searched before the hard-coded library search path?
26187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26189 # How to hardcode a shared library path into an executable.
26190 hardcode_action=$hardcode_action_GCJ
26192 # Whether we should hardcode library paths into libraries.
26193 hardcode_into_libs=$hardcode_into_libs
26195 # Flag to hardcode \$libdir into a binary during linking.
26196 # This must work even if \$libdir does not exist.
26197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26199 # If ld is used when linking, flag to hardcode \$libdir into
26200 # a binary during linking. This must work even if \$libdir does
26202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26204 # Whether we need a single -rpath flag with a separated argument.
26205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26208 # resulting binary.
26209 hardcode_direct=$hardcode_direct_GCJ
26211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26212 # resulting binary.
26213 hardcode_minus_L=$hardcode_minus_L_GCJ
26215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26216 # the resulting binary.
26217 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26219 # Set to yes if building a shared library automatically hardcodes DIR into the library
26220 # and all subsequent libraries and executables linked against it.
26221 hardcode_automatic=$hardcode_automatic_GCJ
26223 # Variables whose values should be saved in libtool wrapper scripts and
26224 # restored at relink time.
26225 variables_saved_for_relink="$variables_saved_for_relink"
26227 # Whether libtool must link a program against all its dependency libraries.
26228 link_all_deplibs=$link_all_deplibs_GCJ
26230 # Compile-time system search path for libraries
26231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26233 # Run-time system search path for libraries
26234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26236 # Fix the shell variable \$srcfile for the compiler.
26237 fix_srcfile_path="$fix_srcfile_path_GCJ"
26239 # Set to yes if exported symbols are required.
26240 always_export_symbols=$always_export_symbols_GCJ
26242 # The commands to list exported symbols.
26243 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26245 # The commands to extract the exported symbol list from a shared archive.
26246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26248 # Symbols that should not be listed in the preloaded symbols.
26249 exclude_expsyms=$lt_exclude_expsyms_GCJ
26251 # Symbols that must always be exported.
26252 include_expsyms=$lt_include_expsyms_GCJ
26254 # ### END LIBTOOL TAG CONFIG: $tagname
26260 # If there is no Makefile yet, we rely on a make rule to execute
26261 # `config.status --recheck' to rerun these tests and create the
26262 # libtool script then.
26263 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26264 if test -f "$ltmain_in"; then
26265 test -f Makefile && make "$ltmain"
26271 ac_cpp='$CPP $CPPFLAGS'
26272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26285 ac_cpp='$CPP $CPPFLAGS'
26286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26291 # Source file extension for RC test sources.
26294 # Object file extension for compiled RC test sources.
26298 # Code to be used in simple compile tests
26299 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26301 # Code to be used in simple link tests
26302 lt_simple_link_test_code="$lt_simple_compile_test_code"
26304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26306 # If no C compiler was specified, use CC.
26309 # If no C compiler flags were specified, use CFLAGS.
26310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26312 # Allow CC to be a program name with arguments.
26316 # save warnings/boilerplate of simple test code
26317 ac_outfile=conftest.$ac_objext
26318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26320 _lt_compiler_boilerplate=`cat conftest.err`
26323 ac_outfile=conftest.$ac_objext
26324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26326 _lt_linker_boilerplate=`cat conftest.err`
26330 # Allow CC to be a program name with arguments.
26335 for cc_temp in $compiler""; do
26337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26345 lt_cv_prog_compiler_c_o_RC=yes
26347 # The else clause should only fire when bootstrapping the
26348 # libtool distribution, otherwise you forgot to ship ltmain.sh
26349 # with your package, and you will get complaints that there are
26350 # no rules to generate ltmain.sh.
26351 if test -f "$ltmain"; then
26352 # See if we are running on zsh, and set the options which allow our commands through
26353 # without removal of \ escapes.
26354 if test -n "${ZSH_VERSION+set}" ; then
26355 setopt NO_GLOB_SUBST
26357 # Now quote all the things that may contain metacharacters while being
26358 # careful not to overquote the AC_SUBSTed values. We take copies of the
26359 # variables and quote the copies for generation of the libtool script.
26360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26364 deplibs_check_method reload_flag reload_cmds need_locks \
26365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26366 lt_cv_sys_global_symbol_to_c_name_address \
26367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26368 old_postinstall_cmds old_postuninstall_cmds \
26372 lt_prog_compiler_wl_RC \
26373 lt_prog_compiler_pic_RC \
26374 lt_prog_compiler_static_RC \
26375 lt_prog_compiler_no_builtin_flag_RC \
26376 export_dynamic_flag_spec_RC \
26377 thread_safe_flag_spec_RC \
26378 whole_archive_flag_spec_RC \
26379 enable_shared_with_static_runtimes_RC \
26380 old_archive_cmds_RC \
26381 old_archive_from_new_cmds_RC \
26382 predep_objects_RC \
26383 postdep_objects_RC \
26386 compiler_lib_search_path_RC \
26388 archive_expsym_cmds_RC \
26389 postinstall_cmds_RC \
26390 postuninstall_cmds_RC \
26391 old_archive_from_expsyms_cmds_RC \
26392 allow_undefined_flag_RC \
26393 no_undefined_flag_RC \
26394 export_symbols_cmds_RC \
26395 hardcode_libdir_flag_spec_RC \
26396 hardcode_libdir_flag_spec_ld_RC \
26397 hardcode_libdir_separator_RC \
26398 hardcode_automatic_RC \
26400 module_expsym_cmds_RC \
26401 lt_cv_prog_compiler_c_o_RC \
26402 exclude_expsyms_RC \
26403 include_expsyms_RC; do
26406 old_archive_cmds_RC | \
26407 old_archive_from_new_cmds_RC | \
26408 archive_cmds_RC | \
26409 archive_expsym_cmds_RC | \
26411 module_expsym_cmds_RC | \
26412 old_archive_from_expsyms_cmds_RC | \
26413 export_symbols_cmds_RC | \
26414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26415 postinstall_cmds | postuninstall_cmds | \
26416 old_postinstall_cmds | old_postuninstall_cmds | \
26417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26418 # Double-quote double-evaled strings.
26419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26428 *'\$0 --fallback-echo"')
26429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26435 cat <<__EOF__ >> "$cfgfile"
26436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26440 # Shell to use when invoking shell scripts.
26443 # Whether or not to build shared libraries.
26444 build_libtool_libs=$enable_shared
26446 # Whether or not to build static libraries.
26447 build_old_libs=$enable_static
26449 # Whether or not to add -lc for building shared libraries.
26450 build_libtool_need_lc=$archive_cmds_need_lc_RC
26452 # Whether or not to disallow shared libs when runtime libs are static
26453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26455 # Whether or not to optimize for fast installation.
26456 fast_install=$enable_fast_install
26459 host_alias=$host_alias
26463 # The build system.
26464 build_alias=$build_alias
26468 # An echo program that does not interpret backslashes.
26473 AR_FLAGS=$lt_AR_FLAGS
26478 # LTCC compiler flags.
26479 LTCFLAGS=$lt_LTCFLAGS
26481 # A language-specific compiler.
26484 # Is the compiler the GNU C compiler?
26490 # The linker used to build libraries.
26493 # Whether we need hard or soft links.
26496 # A BSD-compatible nm program.
26499 # A symbol stripping program
26502 # Used to examine libraries when file_magic_cmd begins "file"
26503 MAGIC_CMD=$MAGIC_CMD
26505 # Used on cygwin: DLL creation program.
26508 # Used on cygwin: object dumper.
26511 # Used on cygwin: assembler.
26514 # The name of the directory that contains temporary libtool files.
26517 # How to create reloadable object files.
26518 reload_flag=$lt_reload_flag
26519 reload_cmds=$lt_reload_cmds
26521 # How to pass a linker flag through the compiler.
26522 wl=$lt_lt_prog_compiler_wl_RC
26524 # Object file suffix (normally "o").
26525 objext="$ac_objext"
26527 # Old archive suffix (normally "a").
26530 # Shared library suffix (normally ".so").
26531 shrext_cmds='$shrext_cmds'
26533 # Executable file suffix (normally "").
26536 # Additional compiler flags for building library objects.
26537 pic_flag=$lt_lt_prog_compiler_pic_RC
26540 # What is the maximum length of a command?
26541 max_cmd_len=$lt_cv_sys_max_cmd_len
26543 # Does compiler simultaneously support -c and -o options?
26544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26546 # Must we lock files when doing compilation?
26547 need_locks=$lt_need_locks
26549 # Do we need the lib prefix for modules?
26550 need_lib_prefix=$need_lib_prefix
26552 # Do we need a version for libraries?
26553 need_version=$need_version
26555 # Whether dlopen is supported.
26556 dlopen_support=$enable_dlopen
26558 # Whether dlopen of programs is supported.
26559 dlopen_self=$enable_dlopen_self
26561 # Whether dlopen of statically linked programs is supported.
26562 dlopen_self_static=$enable_dlopen_self_static
26564 # Compiler flag to prevent dynamic linking.
26565 link_static_flag=$lt_lt_prog_compiler_static_RC
26567 # Compiler flag to turn off builtin functions.
26568 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26570 # Compiler flag to allow reflexive dlopens.
26571 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26573 # Compiler flag to generate shared objects directly from archives.
26574 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26576 # Compiler flag to generate thread-safe objects.
26577 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26579 # Library versioning type.
26580 version_type=$version_type
26582 # Format of library name prefix.
26583 libname_spec=$lt_libname_spec
26585 # List of archive names. First name is the real one, the rest are links.
26586 # The last name is the one that the linker finds with -lNAME.
26587 library_names_spec=$lt_library_names_spec
26589 # The coded name of the library, if different from the real name.
26590 soname_spec=$lt_soname_spec
26592 # Commands used to build and install an old-style archive.
26594 old_archive_cmds=$lt_old_archive_cmds_RC
26595 old_postinstall_cmds=$lt_old_postinstall_cmds
26596 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26598 # Create an old-style archive from a shared archive.
26599 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26601 # Create a temporary old-style archive to link instead of a shared archive.
26602 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26604 # Commands used to build and install a shared archive.
26605 archive_cmds=$lt_archive_cmds_RC
26606 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26607 postinstall_cmds=$lt_postinstall_cmds
26608 postuninstall_cmds=$lt_postuninstall_cmds
26610 # Commands used to build a loadable module (assumed same as above if empty)
26611 module_cmds=$lt_module_cmds_RC
26612 module_expsym_cmds=$lt_module_expsym_cmds_RC
26614 # Commands to strip libraries.
26615 old_striplib=$lt_old_striplib
26616 striplib=$lt_striplib
26618 # Dependencies to place before the objects being linked to create a
26620 predep_objects=$lt_predep_objects_RC
26622 # Dependencies to place after the objects being linked to create a
26624 postdep_objects=$lt_postdep_objects_RC
26626 # Dependencies to place before the objects being linked to create a
26628 predeps=$lt_predeps_RC
26630 # Dependencies to place after the objects being linked to create a
26632 postdeps=$lt_postdeps_RC
26634 # The library search path used internally by the compiler when linking
26635 # a shared library.
26636 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26638 # Method to check whether dependent libraries are shared objects.
26639 deplibs_check_method=$lt_deplibs_check_method
26641 # Command to use when deplibs_check_method == file_magic.
26642 file_magic_cmd=$lt_file_magic_cmd
26644 # Flag that allows shared libraries with undefined symbols to be built.
26645 allow_undefined_flag=$lt_allow_undefined_flag_RC
26647 # Flag that forces no undefined symbols.
26648 no_undefined_flag=$lt_no_undefined_flag_RC
26650 # Commands used to finish a libtool library installation in a directory.
26651 finish_cmds=$lt_finish_cmds
26653 # Same as above, but a single script fragment to be evaled but not shown.
26654 finish_eval=$lt_finish_eval
26656 # Take the output of nm and produce a listing of raw symbols and C names.
26657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26659 # Transform the output of nm in a proper C declaration
26660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26662 # Transform the output of nm in a C name address pair
26663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26665 # This is the shared library runtime path variable.
26666 runpath_var=$runpath_var
26668 # This is the shared library path variable.
26669 shlibpath_var=$shlibpath_var
26671 # Is shlibpath searched before the hard-coded library search path?
26672 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26674 # How to hardcode a shared library path into an executable.
26675 hardcode_action=$hardcode_action_RC
26677 # Whether we should hardcode library paths into libraries.
26678 hardcode_into_libs=$hardcode_into_libs
26680 # Flag to hardcode \$libdir into a binary during linking.
26681 # This must work even if \$libdir does not exist.
26682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26684 # If ld is used when linking, flag to hardcode \$libdir into
26685 # a binary during linking. This must work even if \$libdir does
26687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26689 # Whether we need a single -rpath flag with a separated argument.
26690 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26692 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26693 # resulting binary.
26694 hardcode_direct=$hardcode_direct_RC
26696 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26697 # resulting binary.
26698 hardcode_minus_L=$hardcode_minus_L_RC
26700 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26701 # the resulting binary.
26702 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26704 # Set to yes if building a shared library automatically hardcodes DIR into the library
26705 # and all subsequent libraries and executables linked against it.
26706 hardcode_automatic=$hardcode_automatic_RC
26708 # Variables whose values should be saved in libtool wrapper scripts and
26709 # restored at relink time.
26710 variables_saved_for_relink="$variables_saved_for_relink"
26712 # Whether libtool must link a program against all its dependency libraries.
26713 link_all_deplibs=$link_all_deplibs_RC
26715 # Compile-time system search path for libraries
26716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26718 # Run-time system search path for libraries
26719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26721 # Fix the shell variable \$srcfile for the compiler.
26722 fix_srcfile_path="$fix_srcfile_path_RC"
26724 # Set to yes if exported symbols are required.
26725 always_export_symbols=$always_export_symbols_RC
26727 # The commands to list exported symbols.
26728 export_symbols_cmds=$lt_export_symbols_cmds_RC
26730 # The commands to extract the exported symbol list from a shared archive.
26731 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26733 # Symbols that should not be listed in the preloaded symbols.
26734 exclude_expsyms=$lt_exclude_expsyms_RC
26736 # Symbols that must always be exported.
26737 include_expsyms=$lt_include_expsyms_RC
26739 # ### END LIBTOOL TAG CONFIG: $tagname
26745 # If there is no Makefile yet, we rely on a make rule to execute
26746 # `config.status --recheck' to rerun these tests and create the
26747 # libtool script then.
26748 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26749 if test -f "$ltmain_in"; then
26750 test -f Makefile && make "$ltmain"
26756 ac_cpp='$CPP $CPPFLAGS'
26757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26766 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26767 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26768 { (exit 1); exit 1; }; }
26772 # Append the new tag name to the list of available tags.
26773 if test -n "$tagname" ; then
26774 available_tags="$available_tags $tagname"
26780 # Now substitute the updated list of available tags.
26781 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26782 mv "${ofile}T" "$ofile"
26786 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26787 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26788 { (exit 1); exit 1; }; }
26794 # This can be used to rebuild libtool when needed
26795 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26797 # Always use our own libtool.
26798 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26800 # Prevent multiple expansion
26822 if test "$lt_cv_dlopen_self" = "yes" ; then
26824 cat >>confdefs.h <<\_ACEOF
26825 #define CAN_DLOPEN_SELF 1
26830 if test "$WITH_LLVMGCCDIR" = "default" ; then
26831 LLVMGCC="llvm-gcc${EXEEXT}"
26832 LLVMGXX="llvm-g++${EXEEXT}"
26833 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26834 set dummy $LLVMGCC; ac_word=$2
26835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26837 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26842 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26846 for as_dir in $PATH
26849 test -z "$as_dir" && as_dir=.
26850 for ac_exec_ext in '' $ac_executable_extensions; do
26851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26852 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26863 LLVMGCC=$ac_cv_path_LLVMGCC
26864 if test -n "$LLVMGCC"; then
26865 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26866 echo "${ECHO_T}$LLVMGCC" >&6; }
26868 { echo "$as_me:$LINENO: result: no" >&5
26869 echo "${ECHO_T}no" >&6; }
26873 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26874 set dummy $LLVMGXX; ac_word=$2
26875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26877 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26886 for as_dir in $PATH
26889 test -z "$as_dir" && as_dir=.
26890 for ac_exec_ext in '' $ac_executable_extensions; do
26891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26892 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26903 LLVMGXX=$ac_cv_path_LLVMGXX
26904 if test -n "$LLVMGXX"; then
26905 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26906 echo "${ECHO_T}$LLVMGXX" >&6; }
26908 { echo "$as_me:$LINENO: result: no" >&5
26909 echo "${ECHO_T}no" >&6; }
26914 if test -z "$LLVMGCC"; then
26915 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26917 if test -z "$LLVMGXX"; then
26918 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26926 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26927 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26940 if test "$GCC" != "yes" && test "$ICC" != "yes"
26942 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26943 echo "$as_me: error: gcc|icc required but not found" >&2;}
26944 { (exit 1); exit 1; }; }
26947 if test "$GXX" != "yes" && test "$IXX" != "yes"
26949 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26950 echo "$as_me: error: g++|icc required but not found" >&2;}
26951 { (exit 1); exit 1; }; }
26954 if test "$GCC" = "yes"
26956 cat >conftest.$ac_ext <<_ACEOF
26957 #if !defined(__GNUC__) || __GNUC__ < 3
26958 #error Unsupported GCC version
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_compile") 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
26976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26977 { (case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982 (eval "$ac_try") 2>&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest.$ac_objext'
26987 { (case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_try") 2>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; }; then
26998 echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27001 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27002 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27003 { (exit 1); exit 1; }; }
27006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27009 if test -z "$llvm_cv_gnu_make_command"
27011 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27012 echo "$as_me: error: GNU Make required but not found" >&2;}
27013 { (exit 1); exit 1; }; }
27016 { echo "$as_me:$LINENO: result: ok" >&5
27017 echo "${ECHO_T}ok" >&6; }
27021 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27022 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27023 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27026 ac_check_lib_save_LIBS=$LIBS
27028 cat >conftest.$ac_ext <<_ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27035 /* Override any GCC internal prototype to avoid an error.
27036 Use char because int might match the return type of a GCC
27037 builtin and then its argument prototype would still apply. */
27045 return elf_begin ();
27050 rm -f conftest.$ac_objext conftest$ac_exeext
27051 if { (ac_try="$ac_link"
27052 case "(($ac_try" in
27053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057 (eval "$ac_link") 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
27064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27065 { (case "(($ac_try" in
27066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067 *) ac_try_echo=$ac_try;;
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070 (eval "$ac_try") 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
27075 { (case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_try") 2>&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
27084 ac_cv_lib_elf_elf_begin=yes
27086 echo "$as_me: failed program was:" >&5
27087 sed 's/^/| /' conftest.$ac_ext >&5
27089 ac_cv_lib_elf_elf_begin=no
27092 rm -f core conftest.err conftest.$ac_objext \
27093 conftest$ac_exeext conftest.$ac_ext
27094 LIBS=$ac_check_lib_save_LIBS
27096 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27097 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27098 if test $ac_cv_lib_elf_elf_begin = yes; then
27099 cat >>confdefs.h <<_ACEOF
27100 #define HAVE_LIBELF 1
27108 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27109 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27110 if test "${ac_cv_lib_m_sin+set}" = set; then
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
27113 ac_check_lib_save_LIBS=$LIBS
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27122 /* Override any GCC internal prototype to avoid an error.
27123 Use char because int might match the return type of a GCC
27124 builtin and then its argument prototype would still apply. */
27137 rm -f conftest.$ac_objext conftest$ac_exeext
27138 if { (ac_try="$ac_link"
27139 case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_link") 2>conftest.er1
27146 grep -v '^ *+' conftest.er1 >conftest.err
27148 cat conftest.err >&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } &&
27151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27152 { (case "(($ac_try" in
27153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27154 *) ac_try_echo=$ac_try;;
27156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27157 (eval "$ac_try") 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; } &&
27161 { ac_try='test -s conftest$ac_exeext'
27162 { (case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_try") 2>&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; }; then
27171 ac_cv_lib_m_sin=yes
27173 echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27179 rm -f core conftest.err conftest.$ac_objext \
27180 conftest$ac_exeext conftest.$ac_ext
27181 LIBS=$ac_check_lib_save_LIBS
27183 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27184 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27185 if test $ac_cv_lib_m_sin = yes; then
27186 cat >>confdefs.h <<_ACEOF
27187 #define HAVE_LIBM 1
27194 if test "$llvm_cv_os_type" = "MingW" ; then
27196 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27197 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27198 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27201 ac_check_lib_save_LIBS=$LIBS
27202 LIBS="-limagehlp $LIBS"
27203 cat >conftest.$ac_ext <<_ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (ac_try="$ac_link"
27221 case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226 (eval "$ac_link") 2>conftest.er1
27228 grep -v '^ *+' conftest.er1 >conftest.err
27230 cat conftest.err >&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
27233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27234 { (case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_try") 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; } &&
27243 { ac_try='test -s conftest$ac_exeext'
27244 { (case "(($ac_try" in
27245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246 *) ac_try_echo=$ac_try;;
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249 (eval "$ac_try") 2>&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
27253 ac_cv_lib_imagehlp_main=yes
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27258 ac_cv_lib_imagehlp_main=no
27261 rm -f core conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
27263 LIBS=$ac_check_lib_save_LIBS
27265 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27266 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27267 if test $ac_cv_lib_imagehlp_main = yes; then
27268 cat >>confdefs.h <<_ACEOF
27269 #define HAVE_LIBIMAGEHLP 1
27272 LIBS="-limagehlp $LIBS"
27277 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27278 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27279 if test "${ac_cv_lib_psapi_main+set}" = set; then
27280 echo $ECHO_N "(cached) $ECHO_C" >&6
27282 ac_check_lib_save_LIBS=$LIBS
27283 LIBS="-lpsapi $LIBS"
27284 cat >conftest.$ac_ext <<_ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27300 rm -f conftest.$ac_objext conftest$ac_exeext
27301 if { (ac_try="$ac_link"
27302 case "(($ac_try" in
27303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304 *) ac_try_echo=$ac_try;;
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307 (eval "$ac_link") 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
27314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27315 { (case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_try") 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; } &&
27324 { ac_try='test -s conftest$ac_exeext'
27325 { (case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330 (eval "$ac_try") 2>&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 ac_cv_lib_psapi_main=yes
27336 echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ac_cv_lib_psapi_main=no
27342 rm -f core conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
27344 LIBS=$ac_check_lib_save_LIBS
27346 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27347 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27348 if test $ac_cv_lib_psapi_main = yes; then
27349 cat >>confdefs.h <<_ACEOF
27350 #define HAVE_LIBPSAPI 1
27353 LIBS="-lpsapi $LIBS"
27359 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27360 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27361 if test "${ac_cv_search_dlopen+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 ac_func_search_save_LIBS=$LIBS
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27372 /* Override any GCC internal prototype to avoid an error.
27373 Use char because int might match the return type of a GCC
27374 builtin and then its argument prototype would still apply. */
27387 for ac_lib in '' dl; do
27388 if test -z "$ac_lib"; then
27389 ac_res="none required"
27392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27394 rm -f conftest.$ac_objext conftest$ac_exeext
27395 if { (ac_try="$ac_link"
27396 case "(($ac_try" in
27397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398 *) ac_try_echo=$ac_try;;
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401 (eval "$ac_link") 2>conftest.er1
27403 grep -v '^ *+' conftest.er1 >conftest.err
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } &&
27408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; } &&
27418 { ac_try='test -s conftest$ac_exeext'
27419 { (case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_try") 2>&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
27428 ac_cv_search_dlopen=$ac_res
27430 echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27436 rm -f core conftest.err conftest.$ac_objext \
27438 if test "${ac_cv_search_dlopen+set}" = set; then
27442 if test "${ac_cv_search_dlopen+set}" = set; then
27445 ac_cv_search_dlopen=no
27447 rm conftest.$ac_ext
27448 LIBS=$ac_func_search_save_LIBS
27450 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27451 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27452 ac_res=$ac_cv_search_dlopen
27453 if test "$ac_res" != no; then
27454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27456 cat >>confdefs.h <<\_ACEOF
27457 #define HAVE_DLOPEN 1
27461 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27462 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27466 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27467 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27468 if test "${ac_cv_search_mallinfo+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 ac_func_search_save_LIBS=$LIBS
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27479 /* Override any GCC internal prototype to avoid an error.
27480 Use char because int might match the return type of a GCC
27481 builtin and then its argument prototype would still apply. */
27489 return mallinfo ();
27494 for ac_lib in '' malloc; do
27495 if test -z "$ac_lib"; then
27496 ac_res="none required"
27499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_link") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27535 ac_cv_search_mallinfo=$ac_res
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27543 rm -f core conftest.err conftest.$ac_objext \
27545 if test "${ac_cv_search_mallinfo+set}" = set; then
27549 if test "${ac_cv_search_mallinfo+set}" = set; then
27552 ac_cv_search_mallinfo=no
27554 rm conftest.$ac_ext
27555 LIBS=$ac_func_search_save_LIBS
27557 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27558 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27559 ac_res=$ac_cv_search_mallinfo
27560 if test "$ac_res" != no; then
27561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27563 cat >>confdefs.h <<\_ACEOF
27564 #define HAVE_MALLINFO 1
27570 if test "$ENABLE_THREADS" -eq 1 ; then
27572 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27573 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27574 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27575 echo $ECHO_N "(cached) $ECHO_C" >&6
27577 ac_check_lib_save_LIBS=$LIBS
27578 LIBS="-lpthread $LIBS"
27579 cat >conftest.$ac_ext <<_ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h. */
27586 /* Override any GCC internal prototype to avoid an error.
27587 Use char because int might match the return type of a GCC
27588 builtin and then its argument prototype would still apply. */
27592 char pthread_mutex_init ();
27596 return pthread_mutex_init ();
27601 rm -f conftest.$ac_objext conftest$ac_exeext
27602 if { (ac_try="$ac_link"
27603 case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608 (eval "$ac_link") 2>conftest.er1
27610 grep -v '^ *+' conftest.er1 >conftest.err
27612 cat conftest.err >&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); } &&
27615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; } &&
27625 { ac_try='test -s conftest$ac_exeext'
27626 { (case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_try") 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; }; then
27635 ac_cv_lib_pthread_pthread_mutex_init=yes
27637 echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27640 ac_cv_lib_pthread_pthread_mutex_init=no
27643 rm -f core conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
27645 LIBS=$ac_check_lib_save_LIBS
27647 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27648 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27649 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27650 cat >>confdefs.h <<_ACEOF
27651 #define HAVE_LIBPTHREAD 1
27654 LIBS="-lpthread $LIBS"
27658 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27659 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27660 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27661 echo $ECHO_N "(cached) $ECHO_C" >&6
27663 ac_func_search_save_LIBS=$LIBS
27664 cat >conftest.$ac_ext <<_ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h. */
27671 /* Override any GCC internal prototype to avoid an error.
27672 Use char because int might match the return type of a GCC
27673 builtin and then its argument prototype would still apply. */
27677 char pthread_mutex_lock ();
27681 return pthread_mutex_lock ();
27686 for ac_lib in '' pthread; do
27687 if test -z "$ac_lib"; then
27688 ac_res="none required"
27691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27693 rm -f conftest.$ac_objext conftest$ac_exeext
27694 if { (ac_try="$ac_link"
27695 case "(($ac_try" in
27696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697 *) ac_try_echo=$ac_try;;
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700 (eval "$ac_link") 2>conftest.er1
27702 grep -v '^ *+' conftest.er1 >conftest.err
27704 cat conftest.err >&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); } &&
27707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27708 { (case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; } &&
27717 { ac_try='test -s conftest$ac_exeext'
27718 { (case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_try") 2>&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; }; then
27727 ac_cv_search_pthread_mutex_lock=$ac_res
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27735 rm -f core conftest.err conftest.$ac_objext \
27737 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27741 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27744 ac_cv_search_pthread_mutex_lock=no
27746 rm conftest.$ac_ext
27747 LIBS=$ac_func_search_save_LIBS
27749 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27750 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27751 ac_res=$ac_cv_search_pthread_mutex_lock
27752 if test "$ac_res" != no; then
27753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27755 cat >>confdefs.h <<\_ACEOF
27756 #define HAVE_PTHREAD_MUTEX_LOCK 1
27764 # Check whether --with-udis86 was given.
27765 if test "${with_udis86+set}" = set; then
27766 withval=$with_udis86;
27771 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27774 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27775 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27776 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27777 echo $ECHO_N "(cached) $ECHO_C" >&6
27779 ac_check_lib_save_LIBS=$LIBS
27780 LIBS="-ludis86 $LIBS"
27781 cat >conftest.$ac_ext <<_ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27788 /* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27803 rm -f conftest.$ac_objext conftest$ac_exeext
27804 if { (ac_try="$ac_link"
27805 case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_link") 2>conftest.er1
27812 grep -v '^ *+' conftest.er1 >conftest.err
27814 cat conftest.err >&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } &&
27817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_try") 2>&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
27837 ac_cv_lib_udis86_ud_init=yes
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27842 ac_cv_lib_udis86_ud_init=no
27845 rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
27847 LIBS=$ac_check_lib_save_LIBS
27849 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27850 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27851 if test $ac_cv_lib_udis86_ud_init = yes; then
27852 cat >>confdefs.h <<_ACEOF
27853 #define HAVE_LIBUDIS86 1
27856 LIBS="-ludis86 $LIBS"
27860 echo "Error! You need to have libudis86 around."
27872 cat >>confdefs.h <<_ACEOF
27873 #define USE_UDIS86 $USE_UDIS86
27883 ac_header_dirent=no
27884 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27885 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27886 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27887 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 cat >conftest.$ac_ext <<_ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h. */
27897 #include <sys/types.h>
27909 rm -f conftest.$ac_objext
27910 if { (ac_try="$ac_compile"
27911 case "(($ac_try" in
27912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27913 *) ac_try_echo=$ac_try;;
27915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27916 (eval "$ac_compile") 2>conftest.er1
27918 grep -v '^ *+' conftest.er1 >conftest.err
27920 cat conftest.err >&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } &&
27923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27924 { (case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_try") 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest.$ac_objext'
27934 { (case "(($ac_try" in
27935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_try") 2>&5
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27943 eval "$as_ac_Header=yes"
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 eval "$as_ac_Header=no"
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953 ac_res=`eval echo '${'$as_ac_Header'}'`
27954 { echo "$as_me:$LINENO: result: $ac_res" >&5
27955 echo "${ECHO_T}$ac_res" >&6; }
27956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27957 cat >>confdefs.h <<_ACEOF
27958 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27961 ac_header_dirent=$ac_hdr; break
27965 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27966 if test $ac_header_dirent = dirent.h; then
27967 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27969 if test "${ac_cv_search_opendir+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 ac_func_search_save_LIBS=$LIBS
27973 cat >conftest.$ac_ext <<_ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27980 /* Override any GCC internal prototype to avoid an error.
27981 Use char because int might match the return type of a GCC
27982 builtin and then its argument prototype would still apply. */
27995 for ac_lib in '' dir; do
27996 if test -z "$ac_lib"; then
27997 ac_res="none required"
28000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28002 rm -f conftest.$ac_objext conftest$ac_exeext
28003 if { (ac_try="$ac_link"
28004 case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_link") 2>conftest.er1
28011 grep -v '^ *+' conftest.er1 >conftest.err
28013 cat conftest.err >&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); } &&
28016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28017 { (case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_try") 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; } &&
28026 { ac_try='test -s conftest$ac_exeext'
28027 { (case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_try") 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; }; then
28036 ac_cv_search_opendir=$ac_res
28038 echo "$as_me: failed program was:" >&5
28039 sed 's/^/| /' conftest.$ac_ext >&5
28044 rm -f core conftest.err conftest.$ac_objext \
28046 if test "${ac_cv_search_opendir+set}" = set; then
28050 if test "${ac_cv_search_opendir+set}" = set; then
28053 ac_cv_search_opendir=no
28055 rm conftest.$ac_ext
28056 LIBS=$ac_func_search_save_LIBS
28058 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28059 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28060 ac_res=$ac_cv_search_opendir
28061 if test "$ac_res" != no; then
28062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28067 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28069 if test "${ac_cv_search_opendir+set}" = set; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28072 ac_func_search_save_LIBS=$LIBS
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28080 /* Override any GCC internal prototype to avoid an error.
28081 Use char because int might match the return type of a GCC
28082 builtin and then its argument prototype would still apply. */
28095 for ac_lib in '' x; do
28096 if test -z "$ac_lib"; then
28097 ac_res="none required"
28100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_link") 2>conftest.er1
28111 grep -v '^ *+' conftest.er1 >conftest.err
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
28116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28117 { (case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_try") 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; } &&
28126 { ac_try='test -s conftest$ac_exeext'
28127 { (case "(($ac_try" in
28128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28129 *) ac_try_echo=$ac_try;;
28131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28132 (eval "$ac_try") 2>&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; }; then
28136 ac_cv_search_opendir=$ac_res
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28144 rm -f core conftest.err conftest.$ac_objext \
28146 if test "${ac_cv_search_opendir+set}" = set; then
28150 if test "${ac_cv_search_opendir+set}" = set; then
28153 ac_cv_search_opendir=no
28155 rm conftest.$ac_ext
28156 LIBS=$ac_func_search_save_LIBS
28158 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28159 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28160 ac_res=$ac_cv_search_opendir
28161 if test "$ac_res" != no; then
28162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28168 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28169 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28170 if test "${ac_cv_header_mmap_anon+set}" = set; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28174 ac_cpp='$CPP $CPPFLAGS'
28175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 #include <sys/mman.h>
28186 #include <unistd.h>
28191 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28196 rm -f conftest.$ac_objext
28197 if { (ac_try="$ac_compile"
28198 case "(($ac_try" in
28199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200 *) ac_try_echo=$ac_try;;
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203 (eval "$ac_compile") 2>conftest.er1
28205 grep -v '^ *+' conftest.er1 >conftest.err
28207 cat conftest.err >&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); } &&
28210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28211 { (case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_try") 2>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; } &&
28220 { ac_try='test -s conftest.$ac_objext'
28221 { (case "(($ac_try" in
28222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 (eval "$ac_try") 2>&5
28228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; }; then
28230 ac_cv_header_mmap_anon=yes
28232 echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28235 ac_cv_header_mmap_anon=no
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 ac_cpp='$CPP $CPPFLAGS'
28241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28247 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28248 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28249 if test "$ac_cv_header_mmap_anon" = yes; then
28251 cat >>confdefs.h <<\_ACEOF
28252 #define HAVE_MMAP_ANONYMOUS 1
28257 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28258 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28259 if test "${ac_cv_header_stat_broken+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28262 cat >conftest.$ac_ext <<_ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28268 #include <sys/types.h>
28269 #include <sys/stat.h>
28271 #if defined S_ISBLK && defined S_IFDIR
28272 # if S_ISBLK (S_IFDIR)
28277 #if defined S_ISBLK && defined S_IFCHR
28278 # if S_ISBLK (S_IFCHR)
28283 #if defined S_ISLNK && defined S_IFREG
28284 # if S_ISLNK (S_IFREG)
28289 #if defined S_ISSOCK && defined S_IFREG
28290 # if S_ISSOCK (S_IFREG)
28296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28297 $EGREP "You lose" >/dev/null 2>&1; then
28298 ac_cv_header_stat_broken=yes
28300 ac_cv_header_stat_broken=no
28305 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28306 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28307 if test $ac_cv_header_stat_broken = yes; then
28309 cat >>confdefs.h <<\_ACEOF
28310 #define STAT_MACROS_BROKEN 1
28315 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28317 if test "${ac_cv_header_stdc+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28320 cat >conftest.$ac_ext <<_ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h. */
28326 #include <stdlib.h>
28327 #include <stdarg.h>
28328 #include <string.h>
28339 rm -f conftest.$ac_objext
28340 if { (ac_try="$ac_compile"
28341 case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_compile") 2>conftest.er1
28348 grep -v '^ *+' conftest.er1 >conftest.err
28350 cat conftest.err >&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } &&
28353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28354 { (case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_try") 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_try") 2>&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; }; then
28373 ac_cv_header_stdc=yes
28375 echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28378 ac_cv_header_stdc=no
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28383 if test $ac_cv_header_stdc = yes; then
28384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28385 cat >conftest.$ac_ext <<_ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391 #include <string.h>
28394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28395 $EGREP "memchr" >/dev/null 2>&1; then
28398 ac_cv_header_stdc=no
28404 if test $ac_cv_header_stdc = yes; then
28405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28406 cat >conftest.$ac_ext <<_ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 #include <stdlib.h>
28415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28416 $EGREP "free" >/dev/null 2>&1; then
28419 ac_cv_header_stdc=no
28425 if test $ac_cv_header_stdc = yes; then
28426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28427 if test "$cross_compiling" = yes; then
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28437 #include <stdlib.h>
28438 #if ((' ' & 0x0FF) == 0x020)
28439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28442 # define ISLOWER(c) \
28443 (('a' <= (c) && (c) <= 'i') \
28444 || ('j' <= (c) && (c) <= 'r') \
28445 || ('s' <= (c) && (c) <= 'z'))
28446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28454 for (i = 0; i < 256; i++)
28455 if (XOR (islower (i), ISLOWER (i))
28456 || toupper (i) != TOUPPER (i))
28461 rm -f conftest$ac_exeext
28462 if { (ac_try="$ac_link"
28463 case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_link") 2>&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28472 { (case "(($ac_try" in
28473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474 *) ac_try_echo=$ac_try;;
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477 (eval "$ac_try") 2>&5
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28483 echo "$as_me: program exited with status $ac_status" >&5
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28487 ( exit $ac_status )
28488 ac_cv_header_stdc=no
28490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28496 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28497 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28498 if test $ac_cv_header_stdc = yes; then
28500 cat >>confdefs.h <<\_ACEOF
28501 #define STDC_HEADERS 1
28506 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28507 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28508 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28509 echo $ECHO_N "(cached) $ECHO_C" >&6
28511 cat >conftest.$ac_ext <<_ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h. */
28517 #include <sys/types.h>
28518 #include <sys/wait.h>
28519 #ifndef WEXITSTATUS
28520 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28523 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28531 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28536 rm -f conftest.$ac_objext
28537 if { (ac_try="$ac_compile"
28538 case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_compile") 2>conftest.er1
28545 grep -v '^ *+' conftest.er1 >conftest.err
28547 cat conftest.err >&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } &&
28550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
28561 { (case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_try") 2>&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 ac_cv_header_sys_wait_h=yes
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 ac_cv_header_sys_wait_h=no
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28581 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28582 if test $ac_cv_header_sys_wait_h = yes; then
28584 cat >>confdefs.h <<\_ACEOF
28585 #define HAVE_SYS_WAIT_H 1
28590 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28591 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28592 if test "${ac_cv_header_time+set}" = set; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28595 cat >conftest.$ac_ext <<_ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601 #include <sys/types.h>
28602 #include <sys/time.h>
28608 if ((struct tm *) 0)
28614 rm -f conftest.$ac_objext
28615 if { (ac_try="$ac_compile"
28616 case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_compile") 2>conftest.er1
28623 grep -v '^ *+' conftest.er1 >conftest.err
28625 cat conftest.err >&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
28628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634 (eval "$ac_try") 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest.$ac_objext'
28639 { (case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_try") 2>&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648 ac_cv_header_time=yes
28650 echo "$as_me: failed program was:" >&5
28651 sed 's/^/| /' conftest.$ac_ext >&5
28653 ac_cv_header_time=no
28656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28658 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28659 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28660 if test $ac_cv_header_time = yes; then
28662 cat >>confdefs.h <<\_ACEOF
28663 #define TIME_WITH_SYS_TIME 1
28675 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
28684 ac_res=`eval echo '${'$as_ac_Header'}'`
28685 { echo "$as_me:$LINENO: result: $ac_res" >&5
28686 echo "${ECHO_T}$ac_res" >&6; }
28688 # Is the header compilable?
28689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28691 cat >conftest.$ac_ext <<_ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h. */
28697 $ac_includes_default
28698 #include <$ac_header>
28700 rm -f conftest.$ac_objext
28701 if { (ac_try="$ac_compile"
28702 case "(($ac_try" in
28703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28704 *) ac_try_echo=$ac_try;;
28706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28707 (eval "$ac_compile") 2>conftest.er1
28709 grep -v '^ *+' conftest.er1 >conftest.err
28711 cat conftest.err >&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); } &&
28714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28715 { (case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_try") 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; } &&
28724 { ac_try='test -s conftest.$ac_objext'
28725 { (case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730 (eval "$ac_try") 2>&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; }; then
28734 ac_header_compiler=yes
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 ac_header_compiler=no
28742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28744 echo "${ECHO_T}$ac_header_compiler" >&6; }
28746 # Is the header present?
28747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28749 cat >conftest.$ac_ext <<_ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h. */
28755 #include <$ac_header>
28757 if { (ac_try="$ac_cpp conftest.$ac_ext"
28758 case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } >/dev/null; then
28770 if test -s conftest.err; then
28771 ac_cpp_err=$ac_c_preproc_warn_flag
28772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28779 if test -z "$ac_cpp_err"; then
28780 ac_header_preproc=yes
28782 echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28785 ac_header_preproc=no
28788 rm -f conftest.err conftest.$ac_ext
28789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28790 echo "${ECHO_T}$ac_header_preproc" >&6; }
28792 # So? What about this header?
28793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28799 ac_header_preproc=yes
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28815 ## ----------------------------------- ##
28816 ## Report this to llvmbugs@cs.uiuc.edu ##
28817 ## ----------------------------------- ##
28819 ) | sed "s/^/$as_me: WARNING: /" >&2
28822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28827 eval "$as_ac_Header=\$ac_header_preproc"
28829 ac_res=`eval echo '${'$as_ac_Header'}'`
28830 { echo "$as_me:$LINENO: result: $ac_res" >&5
28831 echo "${ECHO_T}$ac_res" >&6; }
28834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28835 cat >>confdefs.h <<_ACEOF
28836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28849 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28858 ac_res=`eval echo '${'$as_ac_Header'}'`
28859 { echo "$as_me:$LINENO: result: $ac_res" >&5
28860 echo "${ECHO_T}$ac_res" >&6; }
28862 # Is the header compilable?
28863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28865 cat >conftest.$ac_ext <<_ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h. */
28871 $ac_includes_default
28872 #include <$ac_header>
28874 rm -f conftest.$ac_objext
28875 if { (ac_try="$ac_compile"
28876 case "(($ac_try" in
28877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878 *) ac_try_echo=$ac_try;;
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881 (eval "$ac_compile") 2>conftest.er1
28883 grep -v '^ *+' conftest.er1 >conftest.err
28885 cat conftest.err >&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); } &&
28888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28889 { (case "(($ac_try" in
28890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891 *) ac_try_echo=$ac_try;;
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894 (eval "$ac_try") 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } &&
28898 { ac_try='test -s conftest.$ac_objext'
28899 { (case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_try") 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; }; then
28908 ac_header_compiler=yes
28910 echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28913 ac_header_compiler=no
28916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28918 echo "${ECHO_T}$ac_header_compiler" >&6; }
28920 # Is the header present?
28921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28923 cat >conftest.$ac_ext <<_ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h. */
28929 #include <$ac_header>
28931 if { (ac_try="$ac_cpp conftest.$ac_ext"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28939 grep -v '^ *+' conftest.er1 >conftest.err
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } >/dev/null; then
28944 if test -s conftest.err; then
28945 ac_cpp_err=$ac_c_preproc_warn_flag
28946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28953 if test -z "$ac_cpp_err"; then
28954 ac_header_preproc=yes
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_header_preproc=no
28962 rm -f conftest.err conftest.$ac_ext
28963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28964 echo "${ECHO_T}$ac_header_preproc" >&6; }
28966 # So? What about this header?
28967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28973 ac_header_preproc=yes
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28989 ## ----------------------------------- ##
28990 ## Report this to llvmbugs@cs.uiuc.edu ##
28991 ## ----------------------------------- ##
28993 ) | sed "s/^/$as_me: WARNING: /" >&2
28996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 eval "$as_ac_Header=\$ac_header_preproc"
29003 ac_res=`eval echo '${'$as_ac_Header'}'`
29004 { echo "$as_me:$LINENO: result: $ac_res" >&5
29005 echo "${ECHO_T}$ac_res" >&6; }
29008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29009 cat >>confdefs.h <<_ACEOF
29010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29018 for ac_header in windows.h
29020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 ac_res=`eval echo '${'$as_ac_Header'}'`
29028 { echo "$as_me:$LINENO: result: $ac_res" >&5
29029 echo "${ECHO_T}$ac_res" >&6; }
29031 # Is the header compilable?
29032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29034 cat >conftest.$ac_ext <<_ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h. */
29040 $ac_includes_default
29041 #include <$ac_header>
29043 rm -f conftest.$ac_objext
29044 if { (ac_try="$ac_compile"
29045 case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_compile") 2>conftest.er1
29052 grep -v '^ *+' conftest.er1 >conftest.err
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
29057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; } &&
29067 { ac_try='test -s conftest.$ac_objext'
29068 { (case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_try") 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 ac_header_compiler=yes
29079 echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29082 ac_header_compiler=no
29085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29087 echo "${ECHO_T}$ac_header_compiler" >&6; }
29089 # Is the header present?
29090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29092 cat >conftest.$ac_ext <<_ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h. */
29098 #include <$ac_header>
29100 if { (ac_try="$ac_cpp conftest.$ac_ext"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } >/dev/null; then
29113 if test -s conftest.err; then
29114 ac_cpp_err=$ac_c_preproc_warn_flag
29115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29122 if test -z "$ac_cpp_err"; then
29123 ac_header_preproc=yes
29125 echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29128 ac_header_preproc=no
29131 rm -f conftest.err conftest.$ac_ext
29132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29133 echo "${ECHO_T}$ac_header_preproc" >&6; }
29135 # So? What about this header?
29136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29142 ac_header_preproc=yes
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29158 ## ----------------------------------- ##
29159 ## Report this to llvmbugs@cs.uiuc.edu ##
29160 ## ----------------------------------- ##
29162 ) | sed "s/^/$as_me: WARNING: /" >&2
29165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 eval "$as_ac_Header=\$ac_header_preproc"
29172 ac_res=`eval echo '${'$as_ac_Header'}'`
29173 { echo "$as_me:$LINENO: result: $ac_res" >&5
29174 echo "${ECHO_T}$ac_res" >&6; }
29177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29178 cat >>confdefs.h <<_ACEOF
29179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29190 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29199 ac_res=`eval echo '${'$as_ac_Header'}'`
29200 { echo "$as_me:$LINENO: result: $ac_res" >&5
29201 echo "${ECHO_T}$ac_res" >&6; }
29203 # Is the header compilable?
29204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29206 cat >conftest.$ac_ext <<_ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h. */
29212 $ac_includes_default
29213 #include <$ac_header>
29215 rm -f conftest.$ac_objext
29216 if { (ac_try="$ac_compile"
29217 case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_compile") 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29230 { (case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_try") 2>&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; } &&
29239 { ac_try='test -s conftest.$ac_objext'
29240 { (case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_try") 2>&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; }; then
29249 ac_header_compiler=yes
29251 echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29254 ac_header_compiler=no
29257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29259 echo "${ECHO_T}$ac_header_compiler" >&6; }
29261 # Is the header present?
29262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270 #include <$ac_header>
29272 if { (ac_try="$ac_cpp conftest.$ac_ext"
29273 case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } >/dev/null; then
29285 if test -s conftest.err; then
29286 ac_cpp_err=$ac_c_preproc_warn_flag
29287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29294 if test -z "$ac_cpp_err"; then
29295 ac_header_preproc=yes
29297 echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29300 ac_header_preproc=no
29303 rm -f conftest.err conftest.$ac_ext
29304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29305 echo "${ECHO_T}$ac_header_preproc" >&6; }
29307 # So? What about this header?
29308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29314 ac_header_preproc=yes
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29330 ## ----------------------------------- ##
29331 ## Report this to llvmbugs@cs.uiuc.edu ##
29332 ## ----------------------------------- ##
29334 ) | sed "s/^/$as_me: WARNING: /" >&2
29337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 eval "$as_ac_Header=\$ac_header_preproc"
29344 ac_res=`eval echo '${'$as_ac_Header'}'`
29345 { echo "$as_me:$LINENO: result: $ac_res" >&5
29346 echo "${ECHO_T}$ac_res" >&6; }
29349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29350 cat >>confdefs.h <<_ACEOF
29351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29361 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372 echo "${ECHO_T}$ac_res" >&6; }
29374 # Is the header compilable?
29375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 $ac_includes_default
29384 #include <$ac_header>
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 ac_header_compiler=yes
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29425 ac_header_compiler=no
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29430 echo "${ECHO_T}$ac_header_compiler" >&6; }
29432 # Is the header present?
29433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29435 cat >conftest.$ac_ext <<_ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h. */
29441 #include <$ac_header>
29443 if { (ac_try="$ac_cpp conftest.$ac_ext"
29444 case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29451 grep -v '^ *+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } >/dev/null; then
29456 if test -s conftest.err; then
29457 ac_cpp_err=$ac_c_preproc_warn_flag
29458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29465 if test -z "$ac_cpp_err"; then
29466 ac_header_preproc=yes
29468 echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29471 ac_header_preproc=no
29474 rm -f conftest.err conftest.$ac_ext
29475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29476 echo "${ECHO_T}$ac_header_preproc" >&6; }
29478 # So? What about this header?
29479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29485 ac_header_preproc=yes
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29501 ## ----------------------------------- ##
29502 ## Report this to llvmbugs@cs.uiuc.edu ##
29503 ## ----------------------------------- ##
29505 ) | sed "s/^/$as_me: WARNING: /" >&2
29508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29513 eval "$as_ac_Header=\$ac_header_preproc"
29515 ac_res=`eval echo '${'$as_ac_Header'}'`
29516 { echo "$as_me:$LINENO: result: $ac_res" >&5
29517 echo "${ECHO_T}$ac_res" >&6; }
29520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29521 cat >>confdefs.h <<_ACEOF
29522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29529 if test "$ENABLE_THREADS" -eq 1 ; then
29531 for ac_header in pthread.h
29533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 ac_res=`eval echo '${'$as_ac_Header'}'`
29541 { echo "$as_me:$LINENO: result: $ac_res" >&5
29542 echo "${ECHO_T}$ac_res" >&6; }
29544 # Is the header compilable?
29545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29553 $ac_includes_default
29554 #include <$ac_header>
29556 rm -f conftest.$ac_objext
29557 if { (ac_try="$ac_compile"
29558 case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_compile") 2>conftest.er1
29565 grep -v '^ *+' conftest.er1 >conftest.err
29567 cat conftest.err >&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); } &&
29570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29571 { (case "(($ac_try" in
29572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573 *) ac_try_echo=$ac_try;;
29575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576 (eval "$ac_try") 2>&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; } &&
29580 { ac_try='test -s conftest.$ac_objext'
29581 { (case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586 (eval "$ac_try") 2>&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 ac_header_compiler=yes
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29595 ac_header_compiler=no
29598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29600 echo "${ECHO_T}$ac_header_compiler" >&6; }
29602 # Is the header present?
29603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29605 cat >conftest.$ac_ext <<_ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h. */
29611 #include <$ac_header>
29613 if { (ac_try="$ac_cpp conftest.$ac_ext"
29614 case "(($ac_try" in
29615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29621 grep -v '^ *+' conftest.er1 >conftest.err
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } >/dev/null; then
29626 if test -s conftest.err; then
29627 ac_cpp_err=$ac_c_preproc_warn_flag
29628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29635 if test -z "$ac_cpp_err"; then
29636 ac_header_preproc=yes
29638 echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29641 ac_header_preproc=no
29644 rm -f conftest.err conftest.$ac_ext
29645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29646 echo "${ECHO_T}$ac_header_preproc" >&6; }
29648 # So? What about this header?
29649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29655 ac_header_preproc=yes
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29671 ## ----------------------------------- ##
29672 ## Report this to llvmbugs@cs.uiuc.edu ##
29673 ## ----------------------------------- ##
29675 ) | sed "s/^/$as_me: WARNING: /" >&2
29678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29681 echo $ECHO_N "(cached) $ECHO_C" >&6
29683 eval "$as_ac_Header=\$ac_header_preproc"
29685 ac_res=`eval echo '${'$as_ac_Header'}'`
29686 { echo "$as_me:$LINENO: result: $ac_res" >&5
29687 echo "${ECHO_T}$ac_res" >&6; }
29690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29691 cat >>confdefs.h <<_ACEOF
29692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29710 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29711 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29712 if test "${ac_cv_huge_val_sanity+set}" = set; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
29717 ac_cpp='$CXXCPP $CPPFLAGS'
29718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29723 if test "$cross_compiling" = yes; then
29724 ac_cv_huge_val_sanity=yes
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29736 double x = HUGE_VAL; return x != x;
29741 rm -f conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_link") 2>&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29752 { (case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_try") 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; }; then
29761 ac_cv_huge_val_sanity=yes
29763 echo "$as_me: program exited with status $ac_status" >&5
29764 echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29767 ( exit $ac_status )
29768 ac_cv_huge_val_sanity=no
29770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29775 ac_cpp='$CPP $CPPFLAGS'
29776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29782 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29783 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29784 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29787 { echo "$as_me:$LINENO: checking for pid_t" >&5
29788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29789 if test "${ac_cv_type_pid_t+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 $ac_includes_default
29799 typedef pid_t ac__type_new_;
29803 if ((ac__type_new_ *) 0)
29805 if (sizeof (ac__type_new_))
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29826 { (case "(($ac_try" in
29827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828 *) ac_try_echo=$ac_try;;
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831 (eval "$ac_try") 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; } &&
29835 { ac_try='test -s conftest.$ac_objext'
29836 { (case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_try") 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; }; then
29845 ac_cv_type_pid_t=yes
29847 echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29850 ac_cv_type_pid_t=no
29853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29855 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29856 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29857 if test $ac_cv_type_pid_t = yes; then
29861 cat >>confdefs.h <<_ACEOF
29867 { echo "$as_me:$LINENO: checking for size_t" >&5
29868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29869 if test "${ac_cv_type_size_t+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29872 cat >conftest.$ac_ext <<_ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h. */
29878 $ac_includes_default
29879 typedef size_t ac__type_new_;
29883 if ((ac__type_new_ *) 0)
29885 if (sizeof (ac__type_new_))
29891 rm -f conftest.$ac_objext
29892 if { (ac_try="$ac_compile"
29893 case "(($ac_try" in
29894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29895 *) ac_try_echo=$ac_try;;
29897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29898 (eval "$ac_compile") 2>conftest.er1
29900 grep -v '^ *+' conftest.er1 >conftest.err
29902 cat conftest.err >&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
29905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29906 { (case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_try") 2>&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; } &&
29915 { ac_try='test -s conftest.$ac_objext'
29916 { (case "(($ac_try" in
29917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918 *) ac_try_echo=$ac_try;;
29920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29921 (eval "$ac_try") 2>&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; }; then
29925 ac_cv_type_size_t=yes
29927 echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29930 ac_cv_type_size_t=no
29933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29935 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29936 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29937 if test $ac_cv_type_size_t = yes; then
29941 cat >>confdefs.h <<_ACEOF
29942 #define size_t unsigned int
29947 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29948 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29949 if test "${ac_cv_type_signal+set}" = set; then
29950 echo $ECHO_N "(cached) $ECHO_C" >&6
29952 cat >conftest.$ac_ext <<_ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h. */
29958 #include <sys/types.h>
29959 #include <signal.h>
29964 return *(signal (0, 0)) (0) == 1;
29969 rm -f conftest.$ac_objext
29970 if { (ac_try="$ac_compile"
29971 case "(($ac_try" in
29972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973 *) ac_try_echo=$ac_try;;
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29978 grep -v '^ *+' conftest.er1 >conftest.err
29980 cat conftest.err >&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } &&
29983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29984 { (case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_try") 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; } &&
29993 { ac_try='test -s conftest.$ac_objext'
29994 { (case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_try") 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; }; then
30003 ac_cv_type_signal=int
30005 echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30008 ac_cv_type_signal=void
30011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30013 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30014 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30016 cat >>confdefs.h <<_ACEOF
30017 #define RETSIGTYPE $ac_cv_type_signal
30021 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30022 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30023 if test "${ac_cv_struct_tm+set}" = set; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30026 cat >conftest.$ac_ext <<_ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h. */
30032 #include <sys/types.h>
30038 struct tm *tp; tp->tm_sec;
30043 rm -f conftest.$ac_objext
30044 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30052 grep -v '^ *+' conftest.er1 >conftest.err
30054 cat conftest.err >&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
30057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30058 { (case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_try") 2>&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; } &&
30067 { ac_try='test -s conftest.$ac_objext'
30068 { (case "(($ac_try" in
30069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30070 *) ac_try_echo=$ac_try;;
30072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30073 (eval "$ac_try") 2>&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; }; then
30077 ac_cv_struct_tm=time.h
30079 echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.$ac_ext >&5
30082 ac_cv_struct_tm=sys/time.h
30085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30087 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30088 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30089 if test $ac_cv_struct_tm = sys/time.h; then
30091 cat >>confdefs.h <<\_ACEOF
30092 #define TM_IN_SYS_TIME 1
30097 { echo "$as_me:$LINENO: checking for int64_t" >&5
30098 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30099 if test "${ac_cv_type_int64_t+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30108 $ac_includes_default
30109 typedef int64_t ac__type_new_;
30113 if ((ac__type_new_ *) 0)
30115 if (sizeof (ac__type_new_))
30121 rm -f conftest.$ac_objext
30122 if { (ac_try="$ac_compile"
30123 case "(($ac_try" in
30124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125 *) ac_try_echo=$ac_try;;
30127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128 (eval "$ac_compile") 2>conftest.er1
30130 grep -v '^ *+' conftest.er1 >conftest.err
30132 cat conftest.err >&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); } &&
30135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30136 { (case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141 (eval "$ac_try") 2>&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; } &&
30145 { ac_try='test -s conftest.$ac_objext'
30146 { (case "(($ac_try" in
30147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30148 *) ac_try_echo=$ac_try;;
30150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30151 (eval "$ac_try") 2>&5
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); }; }; then
30155 ac_cv_type_int64_t=yes
30157 echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 ac_cv_type_int64_t=no
30163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30166 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30167 if test $ac_cv_type_int64_t = yes; then
30169 cat >>confdefs.h <<_ACEOF
30170 #define HAVE_INT64_T 1
30175 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30176 echo "$as_me: error: Type int64_t required but not found" >&2;}
30177 { (exit 1); exit 1; }; }
30180 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30181 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30182 if test "${ac_cv_type_uint64_t+set}" = set; then
30183 echo $ECHO_N "(cached) $ECHO_C" >&6
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 $ac_includes_default
30192 typedef uint64_t ac__type_new_;
30196 if ((ac__type_new_ *) 0)
30198 if (sizeof (ac__type_new_))
30204 rm -f conftest.$ac_objext
30205 if { (ac_try="$ac_compile"
30206 case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_compile") 2>conftest.er1
30213 grep -v '^ *+' conftest.er1 >conftest.err
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
30218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30219 { (case "(($ac_try" in
30220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30221 *) ac_try_echo=$ac_try;;
30223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30224 (eval "$ac_try") 2>&5
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; } &&
30228 { ac_try='test -s conftest.$ac_objext'
30229 { (case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_try") 2>&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; }; then
30238 ac_cv_type_uint64_t=yes
30240 echo "$as_me: failed program was:" >&5
30241 sed 's/^/| /' conftest.$ac_ext >&5
30243 ac_cv_type_uint64_t=no
30246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30248 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30249 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30250 if test $ac_cv_type_uint64_t = yes; then
30252 cat >>confdefs.h <<_ACEOF
30253 #define HAVE_UINT64_T 1
30258 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30259 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30260 if test "${ac_cv_type_u_int64_t+set}" = set; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 $ac_includes_default
30270 typedef u_int64_t ac__type_new_;
30274 if ((ac__type_new_ *) 0)
30276 if (sizeof (ac__type_new_))
30282 rm -f conftest.$ac_objext
30283 if { (ac_try="$ac_compile"
30284 case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_compile") 2>conftest.er1
30291 grep -v '^ *+' conftest.er1 >conftest.err
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
30296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; } &&
30306 { ac_try='test -s conftest.$ac_objext'
30307 { (case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312 (eval "$ac_try") 2>&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 ac_cv_type_u_int64_t=yes
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 ac_cv_type_u_int64_t=no
30324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30326 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30327 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30328 if test $ac_cv_type_u_int64_t = yes; then
30330 cat >>confdefs.h <<_ACEOF
30331 #define HAVE_U_INT64_T 1
30336 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30337 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30338 { (exit 1); exit 1; }; }
30352 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 cat >conftest.$ac_ext <<_ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h. */
30366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30368 #define $ac_func innocuous_$ac_func
30370 /* System header to define __stub macros and hopefully few prototypes,
30371 which can conflict with char $ac_func (); below.
30372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30373 <limits.h> exists even on freestanding compilers. */
30376 # include <limits.h>
30378 # include <assert.h>
30383 /* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30390 /* The GNU C library defines this for functions which it implements
30391 to always fail with ENOSYS. Some functions are actually named
30392 something starting with __ and the normal name is an alias. */
30393 #if defined __stub_$ac_func || defined __stub___$ac_func
30400 return $ac_func ();
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_link") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } &&
30419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest$ac_exeext'
30430 { (case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_try") 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 eval "$as_ac_var=yes"
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 eval "$as_ac_var=no"
30447 rm -f core conftest.err conftest.$ac_objext \
30448 conftest$ac_exeext conftest.$ac_ext
30450 ac_res=`eval echo '${'$as_ac_var'}'`
30451 { echo "$as_me:$LINENO: result: $ac_res" >&5
30452 echo "${ECHO_T}$ac_res" >&6; }
30453 if test `eval echo '${'$as_ac_var'}'` = yes; then
30454 cat >>confdefs.h <<_ACEOF
30455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30465 for ac_func in powf fmodf strtof round
30467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30471 echo $ECHO_N "(cached) $ECHO_C" >&6
30473 cat >conftest.$ac_ext <<_ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h. */
30479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30481 #define $ac_func innocuous_$ac_func
30483 /* System header to define __stub macros and hopefully few prototypes,
30484 which can conflict with char $ac_func (); below.
30485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30486 <limits.h> exists even on freestanding compilers. */
30489 # include <limits.h>
30491 # include <assert.h>
30496 /* Override any GCC internal prototype to avoid an error.
30497 Use char because int might match the return type of a GCC
30498 builtin and then its argument prototype would still apply. */
30503 /* The GNU C library defines this for functions which it implements
30504 to always fail with ENOSYS. Some functions are actually named
30505 something starting with __ and the normal name is an alias. */
30506 #if defined __stub_$ac_func || defined __stub___$ac_func
30513 return $ac_func ();
30518 rm -f conftest.$ac_objext conftest$ac_exeext
30519 if { (ac_try="$ac_link"
30520 case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525 (eval "$ac_link") 2>conftest.er1
30527 grep -v '^ *+' conftest.er1 >conftest.err
30529 cat conftest.err >&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); } &&
30532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30533 { (case "(($ac_try" in
30534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535 *) ac_try_echo=$ac_try;;
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538 (eval "$ac_try") 2>&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
30543 { (case "(($ac_try" in
30544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545 *) ac_try_echo=$ac_try;;
30547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30548 (eval "$ac_try") 2>&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; }; then
30552 eval "$as_ac_var=yes"
30554 echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30557 eval "$as_ac_var=no"
30560 rm -f core conftest.err conftest.$ac_objext \
30561 conftest$ac_exeext conftest.$ac_ext
30563 ac_res=`eval echo '${'$as_ac_var'}'`
30564 { echo "$as_me:$LINENO: result: $ac_res" >&5
30565 echo "${ECHO_T}$ac_res" >&6; }
30566 if test `eval echo '${'$as_ac_var'}'` = yes; then
30567 cat >>confdefs.h <<_ACEOF
30568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30579 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 cat >conftest.$ac_ext <<_ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30595 #define $ac_func innocuous_$ac_func
30597 /* System header to define __stub macros and hopefully few prototypes,
30598 which can conflict with char $ac_func (); below.
30599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30600 <limits.h> exists even on freestanding compilers. */
30603 # include <limits.h>
30605 # include <assert.h>
30610 /* Override any GCC internal prototype to avoid an error.
30611 Use char because int might match the return type of a GCC
30612 builtin and then its argument prototype would still apply. */
30617 /* The GNU C library defines this for functions which it implements
30618 to always fail with ENOSYS. Some functions are actually named
30619 something starting with __ and the normal name is an alias. */
30620 #if defined __stub_$ac_func || defined __stub___$ac_func
30627 return $ac_func ();
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (ac_try="$ac_link"
30634 case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_link") 2>conftest.er1
30641 grep -v '^ *+' conftest.er1 >conftest.err
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
30657 { (case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_try") 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 eval "$as_ac_var=yes"
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 eval "$as_ac_var=no"
30674 rm -f core conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30677 ac_res=`eval echo '${'$as_ac_var'}'`
30678 { echo "$as_me:$LINENO: result: $ac_res" >&5
30679 echo "${ECHO_T}$ac_res" >&6; }
30680 if test `eval echo '${'$as_ac_var'}'` = yes; then
30681 cat >>confdefs.h <<_ACEOF
30682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30691 for ac_func in isatty mkdtemp mkstemp
30693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30707 #define $ac_func innocuous_$ac_func
30709 /* System header to define __stub macros and hopefully few prototypes,
30710 which can conflict with char $ac_func (); below.
30711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712 <limits.h> exists even on freestanding compilers. */
30715 # include <limits.h>
30717 # include <assert.h>
30722 /* Override any GCC internal prototype to avoid an error.
30723 Use char because int might match the return type of a GCC
30724 builtin and then its argument prototype would still apply. */
30729 /* The GNU C library defines this for functions which it implements
30730 to always fail with ENOSYS. Some functions are actually named
30731 something starting with __ and the normal name is an alias. */
30732 #if defined __stub_$ac_func || defined __stub___$ac_func
30739 return $ac_func ();
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (ac_try="$ac_link"
30746 case "(($ac_try" in
30747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748 *) ac_try_echo=$ac_try;;
30750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30751 (eval "$ac_link") 2>conftest.er1
30753 grep -v '^ *+' conftest.er1 >conftest.err
30755 cat conftest.err >&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } &&
30758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30759 { (case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_try") 2>&5
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; } &&
30768 { ac_try='test -s conftest$ac_exeext'
30769 { (case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_try") 2>&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 eval "$as_ac_var=yes"
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 eval "$as_ac_var=no"
30786 rm -f core conftest.err conftest.$ac_objext \
30787 conftest$ac_exeext conftest.$ac_ext
30789 ac_res=`eval echo '${'$as_ac_var'}'`
30790 { echo "$as_me:$LINENO: result: $ac_res" >&5
30791 echo "${ECHO_T}$ac_res" >&6; }
30792 if test `eval echo '${'$as_ac_var'}'` = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30807 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30813 echo $ECHO_N "(cached) $ECHO_C" >&6
30815 cat >conftest.$ac_ext <<_ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30823 #define $ac_func innocuous_$ac_func
30825 /* System header to define __stub macros and hopefully few prototypes,
30826 which can conflict with char $ac_func (); below.
30827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30828 <limits.h> exists even on freestanding compilers. */
30831 # include <limits.h>
30833 # include <assert.h>
30838 /* Override any GCC internal prototype to avoid an error.
30839 Use char because int might match the return type of a GCC
30840 builtin and then its argument prototype would still apply. */
30845 /* The GNU C library defines this for functions which it implements
30846 to always fail with ENOSYS. Some functions are actually named
30847 something starting with __ and the normal name is an alias. */
30848 #if defined __stub_$ac_func || defined __stub___$ac_func
30855 return $ac_func ();
30860 rm -f conftest.$ac_objext conftest$ac_exeext
30861 if { (ac_try="$ac_link"
30862 case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_link") 2>conftest.er1
30869 grep -v '^ *+' conftest.er1 >conftest.err
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_try") 2>&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; } &&
30884 { ac_try='test -s conftest$ac_exeext'
30885 { (case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_try") 2>&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 eval "$as_ac_var=yes"
30896 echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30899 eval "$as_ac_var=no"
30902 rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
30905 ac_res=`eval echo '${'$as_ac_var'}'`
30906 { echo "$as_me:$LINENO: result: $ac_res" >&5
30907 echo "${ECHO_T}$ac_res" >&6; }
30908 if test `eval echo '${'$as_ac_var'}'` = yes; then
30909 cat >>confdefs.h <<_ACEOF
30910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30920 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30926 echo $ECHO_N "(cached) $ECHO_C" >&6
30928 cat >conftest.$ac_ext <<_ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30936 #define $ac_func innocuous_$ac_func
30938 /* System header to define __stub macros and hopefully few prototypes,
30939 which can conflict with char $ac_func (); below.
30940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30941 <limits.h> exists even on freestanding compilers. */
30944 # include <limits.h>
30946 # include <assert.h>
30951 /* Override any GCC internal prototype to avoid an error.
30952 Use char because int might match the return type of a GCC
30953 builtin and then its argument prototype would still apply. */
30958 /* The GNU C library defines this for functions which it implements
30959 to always fail with ENOSYS. Some functions are actually named
30960 something starting with __ and the normal name is an alias. */
30961 #if defined __stub_$ac_func || defined __stub___$ac_func
30968 return $ac_func ();
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (ac_try="$ac_link"
30975 case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_link") 2>conftest.er1
30982 grep -v '^ *+' conftest.er1 >conftest.err
30984 cat conftest.err >&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
30987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30988 { (case "(($ac_try" in
30989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_try") 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest$ac_exeext'
30998 { (case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_try") 2>&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); }; }; then
31007 eval "$as_ac_var=yes"
31009 echo "$as_me: failed program was:" >&5
31010 sed 's/^/| /' conftest.$ac_ext >&5
31012 eval "$as_ac_var=no"
31015 rm -f core conftest.err conftest.$ac_objext \
31016 conftest$ac_exeext conftest.$ac_ext
31018 ac_res=`eval echo '${'$as_ac_var'}'`
31019 { echo "$as_me:$LINENO: result: $ac_res" >&5
31020 echo "${ECHO_T}$ac_res" >&6; }
31021 if test `eval echo '${'$as_ac_var'}'` = yes; then
31022 cat >>confdefs.h <<_ACEOF
31023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31033 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31039 echo $ECHO_N "(cached) $ECHO_C" >&6
31041 cat >conftest.$ac_ext <<_ACEOF
31044 cat confdefs.h >>conftest.$ac_ext
31045 cat >>conftest.$ac_ext <<_ACEOF
31046 /* end confdefs.h. */
31047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31049 #define $ac_func innocuous_$ac_func
31051 /* System header to define __stub macros and hopefully few prototypes,
31052 which can conflict with char $ac_func (); below.
31053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31054 <limits.h> exists even on freestanding compilers. */
31057 # include <limits.h>
31059 # include <assert.h>
31064 /* Override any GCC internal prototype to avoid an error.
31065 Use char because int might match the return type of a GCC
31066 builtin and then its argument prototype would still apply. */
31071 /* The GNU C library defines this for functions which it implements
31072 to always fail with ENOSYS. Some functions are actually named
31073 something starting with __ and the normal name is an alias. */
31074 #if defined __stub_$ac_func || defined __stub___$ac_func
31081 return $ac_func ();
31086 rm -f conftest.$ac_objext conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_link") 2>conftest.er1
31095 grep -v '^ *+' conftest.er1 >conftest.err
31097 cat conftest.err >&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
31100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31101 { (case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_try") 2>&5
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; } &&
31110 { ac_try='test -s conftest$ac_exeext'
31111 { (case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_try") 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 eval "$as_ac_var=yes"
31122 echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31125 eval "$as_ac_var=no"
31128 rm -f core conftest.err conftest.$ac_objext \
31129 conftest$ac_exeext conftest.$ac_ext
31131 ac_res=`eval echo '${'$as_ac_var'}'`
31132 { echo "$as_me:$LINENO: result: $ac_res" >&5
31133 echo "${ECHO_T}$ac_res" >&6; }
31134 if test `eval echo '${'$as_ac_var'}'` = yes; then
31135 cat >>confdefs.h <<_ACEOF
31136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31142 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31143 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31144 if test "${llvm_cv_c_printf_a+set}" = set; then
31145 echo $ECHO_N "(cached) $ECHO_C" >&6
31148 ac_cpp='$CPP $CPPFLAGS'
31149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31153 if test "$cross_compiling" = yes; then
31154 llvmac_cv_c_printf_a=no
31156 cat >conftest.$ac_ext <<_ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31165 #include <stdlib.h>
31171 volatile double A, B;
31175 sprintf(Buffer, "%a", A);
31179 if (A != 0x1.999999999999ap-4)
31186 rm -f conftest$ac_exeext
31187 if { (ac_try="$ac_link"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_link") 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
31206 llvm_cv_c_printf_a=yes
31208 echo "$as_me: program exited with status $ac_status" >&5
31209 echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31212 ( exit $ac_status )
31213 llvmac_cv_c_printf_a=no
31215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31220 ac_cpp='$CPP $CPPFLAGS'
31221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31226 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31227 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31228 if test "$llvm_cv_c_printf_a" = "yes"; then
31230 cat >>confdefs.h <<\_ACEOF
31231 #define HAVE_PRINTF_A 1
31236 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31237 # for constant arguments. Useless!
31238 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31239 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31240 if test "${ac_cv_working_alloca_h+set}" = set; then
31241 echo $ECHO_N "(cached) $ECHO_C" >&6
31243 cat >conftest.$ac_ext <<_ACEOF
31246 cat confdefs.h >>conftest.$ac_ext
31247 cat >>conftest.$ac_ext <<_ACEOF
31248 /* end confdefs.h. */
31249 #include <alloca.h>
31253 char *p = (char *) alloca (2 * sizeof (int));
31259 rm -f conftest.$ac_objext conftest$ac_exeext
31260 if { (ac_try="$ac_link"
31261 case "(($ac_try" in
31262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263 *) ac_try_echo=$ac_try;;
31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266 (eval "$ac_link") 2>conftest.er1
31268 grep -v '^ *+' conftest.er1 >conftest.err
31270 cat conftest.err >&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); } &&
31273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31274 { (case "(($ac_try" in
31275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276 *) ac_try_echo=$ac_try;;
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279 (eval "$ac_try") 2>&5
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); }; } &&
31283 { ac_try='test -s conftest$ac_exeext'
31284 { (case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_try") 2>&5
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); }; }; then
31293 ac_cv_working_alloca_h=yes
31295 echo "$as_me: failed program was:" >&5
31296 sed 's/^/| /' conftest.$ac_ext >&5
31298 ac_cv_working_alloca_h=no
31301 rm -f core conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
31304 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31305 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31306 if test $ac_cv_working_alloca_h = yes; then
31308 cat >>confdefs.h <<\_ACEOF
31309 #define HAVE_ALLOCA_H 1
31314 { echo "$as_me:$LINENO: checking for alloca" >&5
31315 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31316 if test "${ac_cv_func_alloca_works+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31319 cat >conftest.$ac_ext <<_ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h. */
31326 # define alloca __builtin_alloca
31329 # include <malloc.h>
31330 # define alloca _alloca
31333 # include <alloca.h>
31338 # ifndef alloca /* predefined by HP cc +Olibcalls */
31349 char *p = (char *) alloca (1);
31355 rm -f conftest.$ac_objext conftest$ac_exeext
31356 if { (ac_try="$ac_link"
31357 case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_link") 2>conftest.er1
31364 grep -v '^ *+' conftest.er1 >conftest.err
31366 cat conftest.err >&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); } &&
31369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31370 { (case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_try") 2>&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; } &&
31379 { ac_try='test -s conftest$ac_exeext'
31380 { (case "(($ac_try" in
31381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31382 *) ac_try_echo=$ac_try;;
31384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31385 (eval "$ac_try") 2>&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); }; }; then
31389 ac_cv_func_alloca_works=yes
31391 echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31394 ac_cv_func_alloca_works=no
31397 rm -f core conftest.err conftest.$ac_objext \
31398 conftest$ac_exeext conftest.$ac_ext
31400 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31401 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31403 if test $ac_cv_func_alloca_works = yes; then
31405 cat >>confdefs.h <<\_ACEOF
31406 #define HAVE_ALLOCA 1
31410 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31411 # that cause trouble. Some versions do not even contain alloca or
31412 # contain a buggy version. If you still want to use their alloca,
31413 # use ar to extract alloca.o from them instead of compiling alloca.c.
31415 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31417 cat >>confdefs.h <<\_ACEOF
31422 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31423 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31424 if test "${ac_cv_os_cray+set}" = set; then
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
31427 cat >conftest.$ac_ext <<_ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h. */
31433 #if defined CRAY && ! defined CRAY2
31440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31441 $EGREP "webecray" >/dev/null 2>&1; then
31449 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31450 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31451 if test $ac_cv_os_cray = yes; then
31452 for ac_func in _getb67 GETB67 getb67; do
31453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31459 cat >conftest.$ac_ext <<_ACEOF
31462 cat confdefs.h >>conftest.$ac_ext
31463 cat >>conftest.$ac_ext <<_ACEOF
31464 /* end confdefs.h. */
31465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31467 #define $ac_func innocuous_$ac_func
31469 /* System header to define __stub macros and hopefully few prototypes,
31470 which can conflict with char $ac_func (); below.
31471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31472 <limits.h> exists even on freestanding compilers. */
31475 # include <limits.h>
31477 # include <assert.h>
31482 /* Override any GCC internal prototype to avoid an error.
31483 Use char because int might match the return type of a GCC
31484 builtin and then its argument prototype would still apply. */
31489 /* The GNU C library defines this for functions which it implements
31490 to always fail with ENOSYS. Some functions are actually named
31491 something starting with __ and the normal name is an alias. */
31492 #if defined __stub_$ac_func || defined __stub___$ac_func
31499 return $ac_func ();
31504 rm -f conftest.$ac_objext conftest$ac_exeext
31505 if { (ac_try="$ac_link"
31506 case "(($ac_try" in
31507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31508 *) ac_try_echo=$ac_try;;
31510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31511 (eval "$ac_link") 2>conftest.er1
31513 grep -v '^ *+' conftest.er1 >conftest.err
31515 cat conftest.err >&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); } &&
31518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; } &&
31528 { ac_try='test -s conftest$ac_exeext'
31529 { (case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_try") 2>&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; }; then
31538 eval "$as_ac_var=yes"
31540 echo "$as_me: failed program was:" >&5
31541 sed 's/^/| /' conftest.$ac_ext >&5
31543 eval "$as_ac_var=no"
31546 rm -f core conftest.err conftest.$ac_objext \
31547 conftest$ac_exeext conftest.$ac_ext
31549 ac_res=`eval echo '${'$as_ac_var'}'`
31550 { echo "$as_me:$LINENO: result: $ac_res" >&5
31551 echo "${ECHO_T}$ac_res" >&6; }
31552 if test `eval echo '${'$as_ac_var'}'` = yes; then
31554 cat >>confdefs.h <<_ACEOF
31555 #define CRAY_STACKSEG_END $ac_func
31564 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31565 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31566 if test "${ac_cv_c_stack_direction+set}" = set; then
31567 echo $ECHO_N "(cached) $ECHO_C" >&6
31569 if test "$cross_compiling" = yes; then
31570 ac_cv_c_stack_direction=0
31572 cat >conftest.$ac_ext <<_ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h. */
31578 $ac_includes_default
31580 find_stack_direction ()
31582 static char *addr = 0;
31587 return find_stack_direction ();
31590 return (&dummy > addr) ? 1 : -1;
31596 return find_stack_direction () < 0;
31599 rm -f conftest$ac_exeext
31600 if { (ac_try="$ac_link"
31601 case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_link") 2>&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31610 { (case "(($ac_try" in
31611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31612 *) ac_try_echo=$ac_try;;
31614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31615 (eval "$ac_try") 2>&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); }; }; then
31619 ac_cv_c_stack_direction=1
31621 echo "$as_me: program exited with status $ac_status" >&5
31622 echo "$as_me: failed program was:" >&5
31623 sed 's/^/| /' conftest.$ac_ext >&5
31625 ( exit $ac_status )
31626 ac_cv_c_stack_direction=-1
31628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31633 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31634 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31636 cat >>confdefs.h <<_ACEOF
31637 #define STACK_DIRECTION $ac_cv_c_stack_direction
31644 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31645 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31646 if test "${ac_cv_func_rand48+set}" = set; then
31647 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 ac_cpp='$CXXCPP $CPPFLAGS'
31651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31655 cat >conftest.$ac_ext <<_ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h. */
31661 #include <stdlib.h>
31665 srand48(0);lrand48();drand48();
31670 rm -f conftest.$ac_objext
31671 if { (ac_try="$ac_compile"
31672 case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_compile") 2>conftest.er1
31679 grep -v '^ *+' conftest.er1 >conftest.err
31681 cat conftest.err >&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); } &&
31684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; } &&
31694 { ac_try='test -s conftest.$ac_objext'
31695 { (case "(($ac_try" in
31696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697 *) ac_try_echo=$ac_try;;
31699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700 (eval "$ac_try") 2>&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); }; }; then
31704 ac_cv_func_rand48=yes
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ac_cv_func_rand48=no
31712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31714 ac_cpp='$CPP $CPPFLAGS'
31715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31720 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31721 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31723 if test "$ac_cv_func_rand48" = "yes" ; then
31725 cat >>confdefs.h <<\_ACEOF
31726 #define HAVE_RAND48 1
31732 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31733 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31734 if test "${ac_cv_cxx_namespaces+set}" = set; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31738 ac_cpp='$CXXCPP $CPPFLAGS'
31739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31743 cat >conftest.$ac_ext <<_ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31749 namespace Outer { namespace Inner { int i = 0; }}
31753 using namespace Outer::Inner; return i;
31758 rm -f conftest.$ac_objext
31759 if { (ac_try="$ac_compile"
31760 case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_compile") 2>conftest.er1
31767 grep -v '^ *+' conftest.er1 >conftest.err
31769 cat conftest.err >&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } &&
31772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31773 { (case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_try") 2>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; } &&
31782 { ac_try='test -s conftest.$ac_objext'
31783 { (case "(($ac_try" in
31784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31785 *) ac_try_echo=$ac_try;;
31787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31788 (eval "$ac_try") 2>&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; }; then
31792 ac_cv_cxx_namespaces=yes
31794 echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31797 ac_cv_cxx_namespaces=no
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31802 ac_cpp='$CPP $CPPFLAGS'
31803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31809 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31810 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31811 if test "$ac_cv_cxx_namespaces" = yes; then
31813 cat >>confdefs.h <<\_ACEOF
31814 #define HAVE_NAMESPACES
31819 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31820 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31821 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31822 echo $ECHO_N "(cached) $ECHO_C" >&6
31826 ac_cpp='$CXXCPP $CPPFLAGS'
31827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31831 cat >conftest.$ac_ext <<_ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31837 #include <ext/hash_map>
31838 #ifdef HAVE_NAMESPACES
31839 using namespace std;
31844 hash_map<int, int> t;
31849 rm -f conftest.$ac_objext
31850 if { (ac_try="$ac_compile"
31851 case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_compile") 2>conftest.er1
31858 grep -v '^ *+' conftest.er1 >conftest.err
31860 cat conftest.err >&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
31863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31864 { (case "(($ac_try" in
31865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866 *) ac_try_echo=$ac_try;;
31868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869 (eval "$ac_try") 2>&5
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; } &&
31873 { ac_try='test -s conftest.$ac_objext'
31874 { (case "(($ac_try" in
31875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31876 *) ac_try_echo=$ac_try;;
31878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31879 (eval "$ac_try") 2>&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; }; then
31883 ac_cv_cxx_have_std_ext_hash_map=yes
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31888 ac_cv_cxx_have_std_ext_hash_map=no
31891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31893 ac_cpp='$CPP $CPPFLAGS'
31894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31899 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31900 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31901 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31904 cat >>confdefs.h <<\_ACEOF
31905 #define HAVE_STD_EXT_HASH_MAP 1
31910 cat >>confdefs.h <<\_ACEOF
31911 #define HAVE_STD_EXT_HASH_MAP 0
31916 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31917 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31918 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31923 ac_cpp='$CXXCPP $CPPFLAGS'
31924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31928 cat >conftest.$ac_ext <<_ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 #include <ext/hash_map>
31935 #ifdef HAVE_NAMESPACES
31936 using namespace __gnu_cxx;
31941 hash_map<int,int> t;
31946 rm -f conftest.$ac_objext
31947 if { (ac_try="$ac_compile"
31948 case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_compile") 2>conftest.er1
31955 grep -v '^ *+' conftest.er1 >conftest.err
31957 cat conftest.err >&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } &&
31960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; } &&
31970 { ac_try='test -s conftest.$ac_objext'
31971 { (case "(($ac_try" in
31972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31973 *) ac_try_echo=$ac_try;;
31975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31976 (eval "$ac_try") 2>&5
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; }; then
31980 ac_cv_cxx_have_gnu_ext_hash_map=yes
31982 echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31985 ac_cv_cxx_have_gnu_ext_hash_map=no
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31990 ac_cpp='$CPP $CPPFLAGS'
31991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31997 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31998 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32001 cat >>confdefs.h <<\_ACEOF
32002 #define HAVE_GNU_EXT_HASH_MAP 1
32007 cat >>confdefs.h <<\_ACEOF
32008 #define HAVE_GNU_EXT_HASH_MAP 0
32013 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32014 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32015 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32020 ac_cpp='$CXXCPP $CPPFLAGS'
32021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32025 cat >conftest.$ac_ext <<_ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h. */
32031 #include <hash_map>
32035 hash_map<int,int> t;
32040 rm -f conftest.$ac_objext
32041 if { (ac_try="$ac_compile"
32042 case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_compile") 2>conftest.er1
32049 grep -v '^ *+' conftest.er1 >conftest.err
32051 cat conftest.err >&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); } &&
32054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32055 { (case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_try") 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest.$ac_objext'
32065 { (case "(($ac_try" in
32066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 ac_cv_cxx_have_global_hash_map=yes
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32079 ac_cv_cxx_have_global_hash_map=no
32082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32084 ac_cpp='$CPP $CPPFLAGS'
32085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32090 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32091 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32092 if test "$ac_cv_cxx_have_global_hash_map" = yes
32095 cat >>confdefs.h <<\_ACEOF
32096 #define HAVE_GLOBAL_HASH_MAP 1
32101 cat >>confdefs.h <<\_ACEOF
32102 #define HAVE_GLOBAL_HASH_MAP 0
32107 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32108 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32109 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32114 ac_cpp='$CXXCPP $CPPFLAGS'
32115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32119 cat >conftest.$ac_ext <<_ACEOF
32122 cat confdefs.h >>conftest.$ac_ext
32123 cat >>conftest.$ac_ext <<_ACEOF
32124 /* end confdefs.h. */
32125 #include <ext/hash_set>
32126 #ifdef HAVE_NAMESPACES
32127 using namespace std;
32137 rm -f conftest.$ac_objext
32138 if { (ac_try="$ac_compile"
32139 case "(($ac_try" in
32140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32141 *) ac_try_echo=$ac_try;;
32143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32144 (eval "$ac_compile") 2>conftest.er1
32146 grep -v '^ *+' conftest.er1 >conftest.err
32148 cat conftest.err >&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } &&
32151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32152 { (case "(($ac_try" in
32153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32154 *) ac_try_echo=$ac_try;;
32156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32157 (eval "$ac_try") 2>&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); }; } &&
32161 { ac_try='test -s conftest.$ac_objext'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; }; then
32171 ac_cv_cxx_have_std_ext_hash_set=yes
32173 echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32176 ac_cv_cxx_have_std_ext_hash_set=no
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32181 ac_cpp='$CPP $CPPFLAGS'
32182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32187 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32188 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32189 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32192 cat >>confdefs.h <<\_ACEOF
32193 #define HAVE_STD_EXT_HASH_SET 1
32198 cat >>confdefs.h <<\_ACEOF
32199 #define HAVE_STD_EXT_HASH_SET 0
32204 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32205 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32206 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32211 ac_cpp='$CXXCPP $CPPFLAGS'
32212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32222 #include <ext/hash_set>
32223 #ifdef HAVE_NAMESPACES
32224 using namespace __gnu_cxx;
32234 rm -f conftest.$ac_objext
32235 if { (ac_try="$ac_compile"
32236 case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
32243 grep -v '^ *+' conftest.er1 >conftest.err
32245 cat conftest.err >&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
32248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
32259 { (case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_try") 2>&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 ac_cv_cxx_have_gnu_ext_hash_set=yes
32270 echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32273 ac_cv_cxx_have_gnu_ext_hash_set=no
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32278 ac_cpp='$CPP $CPPFLAGS'
32279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32284 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32285 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32286 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32289 cat >>confdefs.h <<\_ACEOF
32290 #define HAVE_GNU_EXT_HASH_SET 1
32295 cat >>confdefs.h <<\_ACEOF
32296 #define HAVE_GNU_EXT_HASH_SET 0
32301 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32302 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32303 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32304 echo $ECHO_N "(cached) $ECHO_C" >&6
32308 ac_cpp='$CXXCPP $CPPFLAGS'
32309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32313 cat >conftest.$ac_ext <<_ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h. */
32319 #include <hash_set>
32323 hash_set<int> t; return 0;
32328 rm -f conftest.$ac_objext
32329 if { (ac_try="$ac_compile"
32330 case "(($ac_try" in
32331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32332 *) ac_try_echo=$ac_try;;
32334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32335 (eval "$ac_compile") 2>conftest.er1
32337 grep -v '^ *+' conftest.er1 >conftest.err
32339 cat conftest.err >&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); } &&
32342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32343 { (case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_try") 2>&5
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; } &&
32352 { ac_try='test -s conftest.$ac_objext'
32353 { (case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_try") 2>&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; }; then
32362 ac_cv_cxx_have_global_hash_set=yes
32364 echo "$as_me: failed program was:" >&5
32365 sed 's/^/| /' conftest.$ac_ext >&5
32367 ac_cv_cxx_have_global_hash_set=no
32370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32372 ac_cpp='$CPP $CPPFLAGS'
32373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32378 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32379 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32380 if test "$ac_cv_cxx_have_global_hash_set" = yes
32383 cat >>confdefs.h <<\_ACEOF
32384 #define HAVE_GLOBAL_HASH_SET 1
32389 cat >>confdefs.h <<\_ACEOF
32390 #define HAVE_GLOBAL_HASH_SET 0
32395 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32396 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32397 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 ac_cpp='$CXXCPP $CPPFLAGS'
32403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32407 cat >conftest.$ac_ext <<_ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32413 #include <iterator>
32414 #ifdef HAVE_NAMESPACES
32415 using namespace std;
32420 iterator<int,int,int> t; return 0;
32425 rm -f conftest.$ac_objext
32426 if { (ac_try="$ac_compile"
32427 case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_compile") 2>conftest.er1
32434 grep -v '^ *+' conftest.er1 >conftest.err
32436 cat conftest.err >&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } &&
32439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; } &&
32449 { ac_try='test -s conftest.$ac_objext'
32450 { (case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_try") 2>&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 ac_cv_cxx_have_std_iterator=yes
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ac_cv_cxx_have_std_iterator=no
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32469 ac_cpp='$CPP $CPPFLAGS'
32470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32476 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32477 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32478 if test "$ac_cv_cxx_have_std_iterator" = yes
32481 cat >>confdefs.h <<\_ACEOF
32482 #define HAVE_STD_ITERATOR 1
32487 cat >>confdefs.h <<\_ACEOF
32488 #define HAVE_STD_ITERATOR 0
32493 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32494 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32495 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32500 ac_cpp='$CXXCPP $CPPFLAGS'
32501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32505 cat >conftest.$ac_ext <<_ACEOF
32508 cat confdefs.h >>conftest.$ac_ext
32509 cat >>conftest.$ac_ext <<_ACEOF
32510 /* end confdefs.h. */
32511 #include <iterator>
32512 #ifdef HAVE_NAMESPACES
32513 using namespace std;
32518 bidirectional_iterator<int,int> t; return 0;
32523 rm -f conftest.$ac_objext
32524 if { (ac_try="$ac_compile"
32525 case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_compile") 2>conftest.er1
32532 grep -v '^ *+' conftest.er1 >conftest.err
32534 cat conftest.err >&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } &&
32537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; } &&
32547 { ac_try='test -s conftest.$ac_objext'
32548 { (case "(($ac_try" in
32549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32550 *) ac_try_echo=$ac_try;;
32552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32553 (eval "$ac_try") 2>&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32557 ac_cv_cxx_have_bi_iterator=yes
32559 echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32562 ac_cv_cxx_have_bi_iterator=no
32565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32567 ac_cpp='$CPP $CPPFLAGS'
32568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32574 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32575 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32576 if test "$ac_cv_cxx_have_bi_iterator" = yes
32579 cat >>confdefs.h <<\_ACEOF
32580 #define HAVE_BI_ITERATOR 1
32585 cat >>confdefs.h <<\_ACEOF
32586 #define HAVE_BI_ITERATOR 0
32591 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32592 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32593 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32598 ac_cpp='$CXXCPP $CPPFLAGS'
32599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32603 cat >conftest.$ac_ext <<_ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h. */
32609 #include <iterator>
32610 #ifdef HAVE_NAMESPACES
32611 using namespace std;
32616 forward_iterator<int,int> t; return 0;
32621 rm -f conftest.$ac_objext
32622 if { (ac_try="$ac_compile"
32623 case "(($ac_try" in
32624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625 *) ac_try_echo=$ac_try;;
32627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628 (eval "$ac_compile") 2>conftest.er1
32630 grep -v '^ *+' conftest.er1 >conftest.err
32632 cat conftest.err >&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } &&
32635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32636 { (case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_try") 2>&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; } &&
32645 { ac_try='test -s conftest.$ac_objext'
32646 { (case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_try") 2>&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; }; then
32655 ac_cv_cxx_have_fwd_iterator=yes
32657 echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32660 ac_cv_cxx_have_fwd_iterator=no
32663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32665 ac_cpp='$CPP $CPPFLAGS'
32666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32672 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32673 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32674 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32677 cat >>confdefs.h <<\_ACEOF
32678 #define HAVE_FWD_ITERATOR 1
32683 cat >>confdefs.h <<\_ACEOF
32684 #define HAVE_FWD_ITERATOR 0
32690 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32691 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32692 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32696 ac_cpp='$CXXCPP $CPPFLAGS'
32697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32701 cat >conftest.$ac_ext <<_ACEOF
32704 cat confdefs.h >>conftest.$ac_ext
32705 cat >>conftest.$ac_ext <<_ACEOF
32706 /* end confdefs.h. */
32716 rm -f conftest.$ac_objext
32717 if { (ac_try="$ac_compile"
32718 case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 (eval "$ac_compile") 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } &&
32730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; } &&
32740 { ac_try='test -s conftest.$ac_objext'
32741 { (case "(($ac_try" in
32742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32743 *) ac_try_echo=$ac_try;;
32745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32746 (eval "$ac_try") 2>&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); }; }; then
32750 ac_cv_func_isnan_in_math_h=yes
32752 echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32755 ac_cv_func_isnan_in_math_h=no
32758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32760 ac_cpp='$CPP $CPPFLAGS'
32761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32766 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32767 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32770 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32772 cat >>confdefs.h <<\_ACEOF
32773 #define HAVE_ISNAN_IN_MATH_H 1
32778 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32779 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32780 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32784 ac_cpp='$CXXCPP $CPPFLAGS'
32785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32789 cat >conftest.$ac_ext <<_ACEOF
32792 cat confdefs.h >>conftest.$ac_ext
32793 cat >>conftest.$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32804 rm -f conftest.$ac_objext
32805 if { (ac_try="$ac_compile"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_compile") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 ac_cv_func_isnan_in_cmath=yes
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 ac_cv_func_isnan_in_cmath=no
32846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 ac_cpp='$CPP $CPPFLAGS'
32849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32855 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32857 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32859 cat >>confdefs.h <<\_ACEOF
32860 #define HAVE_ISNAN_IN_CMATH 1
32865 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32866 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32867 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32868 echo $ECHO_N "(cached) $ECHO_C" >&6
32871 ac_cpp='$CXXCPP $CPPFLAGS'
32872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32876 cat >conftest.$ac_ext <<_ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h. */
32886 float f; std::isnan(f);
32891 rm -f conftest.$ac_objext
32892 if { (ac_try="$ac_compile"
32893 case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_compile") 2>conftest.er1
32900 grep -v '^ *+' conftest.er1 >conftest.err
32902 cat conftest.err >&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); } &&
32905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; } &&
32915 { ac_try='test -s conftest.$ac_objext'
32916 { (case "(($ac_try" in
32917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32918 *) ac_try_echo=$ac_try;;
32920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32921 (eval "$ac_try") 2>&5
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; }; then
32925 ac_cv_func_std_isnan_in_cmath=yes
32927 echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32930 ac_cv_func_std_isnan_in_cmath=no
32933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32935 ac_cpp='$CPP $CPPFLAGS'
32936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32941 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32942 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32944 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32946 cat >>confdefs.h <<\_ACEOF
32947 #define HAVE_STD_ISNAN_IN_CMATH 1
32953 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32954 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32955 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 ac_cpp='$CXXCPP $CPPFLAGS'
32960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32979 rm -f conftest.$ac_objext
32980 if { (ac_try="$ac_compile"
32981 case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_compile") 2>conftest.er1
32988 grep -v '^ *+' conftest.er1 >conftest.err
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; } &&
33003 { ac_try='test -s conftest.$ac_objext'
33004 { (case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_try") 2>&5
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
33013 ac_cv_func_isinf_in_math_h=yes
33015 echo "$as_me: failed program was:" >&5
33016 sed 's/^/| /' conftest.$ac_ext >&5
33018 ac_cv_func_isinf_in_math_h=no
33021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023 ac_cpp='$CPP $CPPFLAGS'
33024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33029 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33030 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33032 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33034 cat >>confdefs.h <<\_ACEOF
33035 #define HAVE_ISINF_IN_MATH_H 1
33040 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33041 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33042 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33046 ac_cpp='$CXXCPP $CPPFLAGS'
33047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33051 cat >conftest.$ac_ext <<_ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h. */
33066 rm -f conftest.$ac_objext
33067 if { (ac_try="$ac_compile"
33068 case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_compile") 2>conftest.er1
33075 grep -v '^ *+' conftest.er1 >conftest.err
33077 cat conftest.err >&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } &&
33080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; } &&
33090 { ac_try='test -s conftest.$ac_objext'
33091 { (case "(($ac_try" in
33092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093 *) ac_try_echo=$ac_try;;
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_try") 2>&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; }; then
33100 ac_cv_func_isinf_in_cmath=yes
33102 echo "$as_me: failed program was:" >&5
33103 sed 's/^/| /' conftest.$ac_ext >&5
33105 ac_cv_func_isinf_in_cmath=no
33108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33110 ac_cpp='$CPP $CPPFLAGS'
33111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33116 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33117 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33119 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33121 cat >>confdefs.h <<\_ACEOF
33122 #define HAVE_ISINF_IN_CMATH 1
33127 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33128 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33129 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33133 ac_cpp='$CXXCPP $CPPFLAGS'
33134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33138 cat >conftest.$ac_ext <<_ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33148 float f; std::isinf(f)}
33153 rm -f conftest.$ac_objext
33154 if { (ac_try="$ac_compile"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_compile") 2>conftest.er1
33162 grep -v '^ *+' conftest.er1 >conftest.err
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
33167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_try") 2>&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_func_std_isinf_in_cmath=yes
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33192 ac_cv_func_std_isinf_in_cmath=no
33195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33197 ac_cpp='$CPP $CPPFLAGS'
33198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33203 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33204 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33206 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33208 cat >>confdefs.h <<\_ACEOF
33209 #define HAVE_STD_ISINF_IN_CMATH 1
33214 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33215 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33216 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33220 ac_cpp='$CXXCPP $CPPFLAGS'
33221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33225 cat >conftest.$ac_ext <<_ACEOF
33228 cat confdefs.h >>conftest.$ac_ext
33229 cat >>conftest.$ac_ext <<_ACEOF
33230 /* end confdefs.h. */
33231 #include <ieeefp.h>
33235 float f; finite(f);
33240 rm -f conftest.$ac_objext
33241 if { (ac_try="$ac_compile"
33242 case "(($ac_try" in
33243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 *) ac_try_echo=$ac_try;;
33246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247 (eval "$ac_compile") 2>conftest.er1
33249 grep -v '^ *+' conftest.er1 >conftest.err
33251 cat conftest.err >&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); } &&
33254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33255 { (case "(($ac_try" in
33256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257 *) ac_try_echo=$ac_try;;
33259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260 (eval "$ac_try") 2>&5
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; } &&
33264 { ac_try='test -s conftest.$ac_objext'
33265 { (case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_try") 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274 ac_cv_func_finite_in_ieeefp_h=yes
33276 echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33279 ac_cv_func_finite_in_ieeefp_h=no
33282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33284 ac_cpp='$CPP $CPPFLAGS'
33285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33290 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33291 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33293 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33295 cat >>confdefs.h <<\_ACEOF
33296 #define HAVE_FINITE_IN_IEEEFP_H 1
33303 if test "$llvm_cv_platform_type" = "Unix" ; then
33306 for ac_header in stdlib.h unistd.h
33308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33313 echo $ECHO_N "(cached) $ECHO_C" >&6
33315 ac_res=`eval echo '${'$as_ac_Header'}'`
33316 { echo "$as_me:$LINENO: result: $ac_res" >&5
33317 echo "${ECHO_T}$ac_res" >&6; }
33319 # Is the header compilable?
33320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33322 cat >conftest.$ac_ext <<_ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h. */
33328 $ac_includes_default
33329 #include <$ac_header>
33331 rm -f conftest.$ac_objext
33332 if { (ac_try="$ac_compile"
33333 case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_compile") 2>conftest.er1
33340 grep -v '^ *+' conftest.er1 >conftest.err
33342 cat conftest.err >&5
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); } &&
33345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33346 { (case "(($ac_try" in
33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348 *) ac_try_echo=$ac_try;;
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351 (eval "$ac_try") 2>&5
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); }; } &&
33355 { ac_try='test -s conftest.$ac_objext'
33356 { (case "(($ac_try" in
33357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33358 *) ac_try_echo=$ac_try;;
33360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33361 (eval "$ac_try") 2>&5
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; }; then
33365 ac_header_compiler=yes
33367 echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33370 ac_header_compiler=no
33373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33375 echo "${ECHO_T}$ac_header_compiler" >&6; }
33377 # Is the header present?
33378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33380 cat >conftest.$ac_ext <<_ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h. */
33386 #include <$ac_header>
33388 if { (ac_try="$ac_cpp conftest.$ac_ext"
33389 case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33396 grep -v '^ *+' conftest.er1 >conftest.err
33398 cat conftest.err >&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } >/dev/null; then
33401 if test -s conftest.err; then
33402 ac_cpp_err=$ac_c_preproc_warn_flag
33403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33410 if test -z "$ac_cpp_err"; then
33411 ac_header_preproc=yes
33413 echo "$as_me: failed program was:" >&5
33414 sed 's/^/| /' conftest.$ac_ext >&5
33416 ac_header_preproc=no
33419 rm -f conftest.err conftest.$ac_ext
33420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33421 echo "${ECHO_T}$ac_header_preproc" >&6; }
33423 # So? What about this header?
33424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33430 ac_header_preproc=yes
33433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33446 ## ----------------------------------- ##
33447 ## Report this to llvmbugs@cs.uiuc.edu ##
33448 ## ----------------------------------- ##
33450 ) | sed "s/^/$as_me: WARNING: /" >&2
33453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33458 eval "$as_ac_Header=\$ac_header_preproc"
33460 ac_res=`eval echo '${'$as_ac_Header'}'`
33461 { echo "$as_me:$LINENO: result: $ac_res" >&5
33462 echo "${ECHO_T}$ac_res" >&6; }
33465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33466 cat >>confdefs.h <<_ACEOF
33467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33475 for ac_func in getpagesize
33477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
33483 cat >conftest.$ac_ext <<_ACEOF
33486 cat confdefs.h >>conftest.$ac_ext
33487 cat >>conftest.$ac_ext <<_ACEOF
33488 /* end confdefs.h. */
33489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33491 #define $ac_func innocuous_$ac_func
33493 /* System header to define __stub macros and hopefully few prototypes,
33494 which can conflict with char $ac_func (); below.
33495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33496 <limits.h> exists even on freestanding compilers. */
33499 # include <limits.h>
33501 # include <assert.h>
33506 /* Override any GCC internal prototype to avoid an error.
33507 Use char because int might match the return type of a GCC
33508 builtin and then its argument prototype would still apply. */
33513 /* The GNU C library defines this for functions which it implements
33514 to always fail with ENOSYS. Some functions are actually named
33515 something starting with __ and the normal name is an alias. */
33516 #if defined __stub_$ac_func || defined __stub___$ac_func
33523 return $ac_func ();
33528 rm -f conftest.$ac_objext conftest$ac_exeext
33529 if { (ac_try="$ac_link"
33530 case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_link") 2>conftest.er1
33537 grep -v '^ *+' conftest.er1 >conftest.err
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest$ac_exeext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 eval "$as_ac_var=yes"
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33567 eval "$as_ac_var=no"
33570 rm -f core conftest.err conftest.$ac_objext \
33571 conftest$ac_exeext conftest.$ac_ext
33573 ac_res=`eval echo '${'$as_ac_var'}'`
33574 { echo "$as_me:$LINENO: result: $ac_res" >&5
33575 echo "${ECHO_T}$ac_res" >&6; }
33576 if test `eval echo '${'$as_ac_var'}'` = yes; then
33577 cat >>confdefs.h <<_ACEOF
33578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33584 { echo "$as_me:$LINENO: checking for working mmap" >&5
33585 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33586 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33587 echo $ECHO_N "(cached) $ECHO_C" >&6
33589 if test "$cross_compiling" = yes; then
33590 ac_cv_func_mmap_fixed_mapped=no
33592 cat >conftest.$ac_ext <<_ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33598 $ac_includes_default
33599 /* malloc might have been renamed as rpl_malloc. */
33602 /* Thanks to Mike Haertel and Jim Avera for this test.
33603 Here is a matrix of mmap possibilities:
33604 mmap private not fixed
33605 mmap private fixed at somewhere currently unmapped
33606 mmap private fixed at somewhere already mapped
33607 mmap shared not fixed
33608 mmap shared fixed at somewhere currently unmapped
33609 mmap shared fixed at somewhere already mapped
33610 For private mappings, we should verify that changes cannot be read()
33611 back from the file, nor mmap's back from the file at a different
33612 address. (There have been systems where private was not correctly
33613 implemented like the infamous i386 svr4.0, and systems where the
33614 VM page cache was not coherent with the file system buffer cache
33615 like early versions of FreeBSD and possibly contemporary NetBSD.)
33616 For shared mappings, we should conversely verify that changes get
33617 propagated back to all the places they're supposed to be.
33619 Grep wants private fixed already mapped.
33620 The main things grep needs to know about mmap are:
33621 * does it exist and is it safe to write into the mmap'd area
33622 * how to use it (BSD variants) */
33625 #include <sys/mman.h>
33627 #if !STDC_HEADERS && !HAVE_STDLIB_H
33631 /* This mess was copied from the GNU getpagesize.h. */
33632 #if !HAVE_GETPAGESIZE
33633 /* Assume that all systems that can run configure have sys/param.h. */
33634 # if !HAVE_SYS_PARAM_H
33635 # define HAVE_SYS_PARAM_H 1
33638 # ifdef _SC_PAGESIZE
33639 # define getpagesize() sysconf(_SC_PAGESIZE)
33640 # else /* no _SC_PAGESIZE */
33641 # if HAVE_SYS_PARAM_H
33642 # include <sys/param.h>
33643 # ifdef EXEC_PAGESIZE
33644 # define getpagesize() EXEC_PAGESIZE
33645 # else /* no EXEC_PAGESIZE */
33647 # define getpagesize() NBPG * CLSIZE
33650 # endif /* no CLSIZE */
33651 # else /* no NBPG */
33653 # define getpagesize() NBPC
33654 # else /* no NBPC */
33656 # define getpagesize() PAGESIZE
33657 # endif /* PAGESIZE */
33658 # endif /* no NBPC */
33659 # endif /* no NBPG */
33660 # endif /* no EXEC_PAGESIZE */
33661 # else /* no HAVE_SYS_PARAM_H */
33662 # define getpagesize() 8192 /* punt totally */
33663 # endif /* no HAVE_SYS_PARAM_H */
33664 # endif /* no _SC_PAGESIZE */
33666 #endif /* no HAVE_GETPAGESIZE */
33671 char *data, *data2, *data3;
33675 pagesize = getpagesize ();
33677 /* First, make a file with some known garbage in it. */
33678 data = (char *) malloc (pagesize);
33681 for (i = 0; i < pagesize; ++i)
33682 *(data + i) = rand ();
33684 fd = creat ("conftest.mmap", 0600);
33687 if (write (fd, data, pagesize) != pagesize)
33691 /* Next, try to mmap the file at a fixed address which already has
33692 something else allocated at it. If we can, also make sure that
33693 we see the same garbage. */
33694 fd = open ("conftest.mmap", O_RDWR);
33697 data2 = (char *) malloc (2 * pagesize);
33700 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33701 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33702 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33704 for (i = 0; i < pagesize; ++i)
33705 if (*(data + i) != *(data2 + i))
33708 /* Finally, make sure that changes to the mapped area do not
33709 percolate back to the file as seen by read(). (This is a bug on
33710 some variants of i386 svr4.0.) */
33711 for (i = 0; i < pagesize; ++i)
33712 *(data2 + i) = *(data2 + i) + 1;
33713 data3 = (char *) malloc (pagesize);
33716 if (read (fd, data3, pagesize) != pagesize)
33718 for (i = 0; i < pagesize; ++i)
33719 if (*(data + i) != *(data3 + i))
33725 rm -f conftest$ac_exeext
33726 if { (ac_try="$ac_link"
33727 case "(($ac_try" in
33728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729 *) ac_try_echo=$ac_try;;
33731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33732 (eval "$ac_link") 2>&5
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33736 { (case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_try") 2>&5
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 ac_cv_func_mmap_fixed_mapped=yes
33747 echo "$as_me: program exited with status $ac_status" >&5
33748 echo "$as_me: failed program was:" >&5
33749 sed 's/^/| /' conftest.$ac_ext >&5
33751 ( exit $ac_status )
33752 ac_cv_func_mmap_fixed_mapped=no
33754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33759 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33760 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33761 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33763 cat >>confdefs.h <<\_ACEOF
33764 #define HAVE_MMAP 1
33768 rm -f conftest.mmap
33770 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33771 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33772 if test "${ac_cv_func_mmap_file+set}" = set; then
33773 echo $ECHO_N "(cached) $ECHO_C" >&6
33776 ac_cpp='$CPP $CPPFLAGS'
33777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33781 if test "$cross_compiling" = yes; then
33782 ac_cv_func_mmap_file=no
33784 cat >conftest.$ac_ext <<_ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h. */
33792 #include <sys/types.h>
33793 #include <sys/mman.h>
33801 fd = creat ("foo",0777);
33802 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33804 return (fd != (int) MAP_FAILED);
33809 rm -f conftest$ac_exeext
33810 if { (ac_try="$ac_link"
33811 case "(($ac_try" in
33812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33813 *) ac_try_echo=$ac_try;;
33815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33816 (eval "$ac_link") 2>&5
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33820 { (case "(($ac_try" in
33821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822 *) ac_try_echo=$ac_try;;
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_try") 2>&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
33829 ac_cv_func_mmap_file=yes
33831 echo "$as_me: program exited with status $ac_status" >&5
33832 echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 ( exit $ac_status )
33836 ac_cv_func_mmap_file=no
33838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33843 ac_cpp='$CPP $CPPFLAGS'
33844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33850 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33851 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33852 if test "$ac_cv_func_mmap_file" = yes; then
33854 cat >>confdefs.h <<\_ACEOF
33855 #define HAVE_MMAP_FILE
33862 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33863 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33864 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33865 echo $ECHO_N "(cached) $ECHO_C" >&6
33867 if test "$llvm_cv_os_type" = "Interix" ; then
33868 ac_cv_need_dev_zero_for_mmap=yes
33870 ac_cv_need_dev_zero_for_mmap=no
33874 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33875 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33876 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33878 cat >>confdefs.h <<\_ACEOF
33879 #define NEED_DEV_ZERO_FOR_MMAP 1
33884 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33886 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33887 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33889 if test "$ac_cv_func_mmap_file" = "no"
33891 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33892 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33898 for ac_func in __dso_handle
33900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33906 cat >conftest.$ac_ext <<_ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h. */
33912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33914 #define $ac_func innocuous_$ac_func
33916 /* System header to define __stub macros and hopefully few prototypes,
33917 which can conflict with char $ac_func (); below.
33918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33919 <limits.h> exists even on freestanding compilers. */
33922 # include <limits.h>
33924 # include <assert.h>
33929 /* Override any GCC internal prototype to avoid an error.
33930 Use char because int might match the return type of a GCC
33931 builtin and then its argument prototype would still apply. */
33936 /* The GNU C library defines this for functions which it implements
33937 to always fail with ENOSYS. Some functions are actually named
33938 something starting with __ and the normal name is an alias. */
33939 #if defined __stub_$ac_func || defined __stub___$ac_func
33946 return $ac_func ();
33951 rm -f conftest.$ac_objext conftest$ac_exeext
33952 if { (ac_try="$ac_link"
33953 case "(($ac_try" in
33954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955 *) ac_try_echo=$ac_try;;
33957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33958 (eval "$ac_link") 2>conftest.er1
33960 grep -v '^ *+' conftest.er1 >conftest.err
33962 cat conftest.err >&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } &&
33965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33966 { (case "(($ac_try" in
33967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968 *) ac_try_echo=$ac_try;;
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971 (eval "$ac_try") 2>&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; } &&
33975 { ac_try='test -s conftest$ac_exeext'
33976 { (case "(($ac_try" in
33977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33978 *) ac_try_echo=$ac_try;;
33980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33981 (eval "$ac_try") 2>&5
33983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984 (exit $ac_status); }; }; then
33985 eval "$as_ac_var=yes"
33987 echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.$ac_ext >&5
33990 eval "$as_ac_var=no"
33993 rm -f core conftest.err conftest.$ac_objext \
33994 conftest$ac_exeext conftest.$ac_ext
33996 ac_res=`eval echo '${'$as_ac_var'}'`
33997 { echo "$as_me:$LINENO: result: $ac_res" >&5
33998 echo "${ECHO_T}$ac_res" >&6; }
33999 if test `eval echo '${'$as_ac_var'}'` = yes; then
34000 cat >>confdefs.h <<_ACEOF
34001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34008 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34009 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34010 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34011 echo $ECHO_N "(cached) $ECHO_C" >&6
34013 llvm_cv_llvmgcc_sanity="no"
34014 if test -x "$LLVMGCC" ; then
34015 cp /dev/null conftest.c
34016 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34017 grep 'target datalayout =' > /dev/null 2>&1
34018 if test $? -eq 0 ; then
34019 llvm_cv_llvmgcc_sanity="yes"
34024 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34025 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34027 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34028 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34029 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34030 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34031 LLVMCC1=$llvmcc1path
34033 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34034 LLVMCC1PLUS=$llvmcc1pluspath
34036 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34037 LLVMGCCDIR=$llvmgccdir
34039 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34040 LLVMGCCLIBEXEC=$llvmgcclibexec
34042 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34043 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34044 LLVMGCC_VERSION=$llvmgccversion
34046 LLVMGCC_MAJVERS=$llvmgccmajvers
34048 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34049 LLVMGCC_LANGS=$llvmgcclangs
34051 { echo "$as_me:$LINENO: result: ok" >&5
34052 echo "${ECHO_T}ok" >&6; }
34055 SHLIBEXT=$libltdl_cv_shlibext
34058 # Translate the various configuration directories and other basic
34059 # information into substitutions that will end up in Makefile.config.in
34060 # that these configured values can be used by the makefiles
34061 if test "${prefix}" = "NONE" ; then
34062 prefix="/usr/local"
34064 eval LLVM_PREFIX="${prefix}";
34065 eval LLVM_BINDIR="${prefix}/bin";
34066 eval LLVM_LIBDIR="${prefix}/lib";
34067 eval LLVM_DATADIR="${prefix}/share/llvm";
34068 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34069 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34070 eval LLVM_INCLUDEDIR="${prefix}/include";
34071 eval LLVM_INFODIR="${prefix}/info";
34072 eval LLVM_MANDIR="${prefix}/man";
34073 LLVM_CONFIGTIME=`date`
34085 # Place the various directores into the config.h file as #defines so that we
34086 # can know about the installation paths within LLVM.
34088 cat >>confdefs.h <<_ACEOF
34089 #define LLVM_PREFIX "$LLVM_PREFIX"
34093 cat >>confdefs.h <<_ACEOF
34094 #define LLVM_BINDIR "$LLVM_BINDIR"
34098 cat >>confdefs.h <<_ACEOF
34099 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34103 cat >>confdefs.h <<_ACEOF
34104 #define LLVM_DATADIR "$LLVM_DATADIR"
34108 cat >>confdefs.h <<_ACEOF
34109 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34113 cat >>confdefs.h <<_ACEOF
34114 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34118 cat >>confdefs.h <<_ACEOF
34119 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34123 cat >>confdefs.h <<_ACEOF
34124 #define LLVM_INFODIR "$LLVM_INFODIR"
34128 cat >>confdefs.h <<_ACEOF
34129 #define LLVM_MANDIR "$LLVM_MANDIR"
34133 cat >>confdefs.h <<_ACEOF
34134 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34138 cat >>confdefs.h <<_ACEOF
34139 #define LLVM_HOSTTRIPLE "$host"
34143 # Determine which bindings to build.
34144 if test "$BINDINGS_TO_BUILD" = auto ; then
34145 BINDINGS_TO_BUILD=""
34146 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34147 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34150 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34153 # This isn't really configurey, but it avoids having to repeat the list in
34158 # Do any work necessary to ensure that bindings have what they need.
34159 binding_prereqs_failed=0
34160 for a_binding in $BINDINGS_TO_BUILD ; do
34161 case "$a_binding" in
34163 if test "x$OCAMLC" = x ; then
34164 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34165 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34166 binding_prereqs_failed=1
34168 if test "x$OCAMLDEP" = x ; then
34169 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34170 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34171 binding_prereqs_failed=1
34173 if test "x$OCAMLOPT" = x ; then
34174 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34175 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34177 if test "x$with_ocaml_libdir" != xauto ; then
34178 OCAML_LIBDIR=$with_ocaml_libdir
34181 ocaml_stdlib="`"$OCAMLC" -where`"
34182 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34184 # ocaml stdlib is beneath our prefix; use stdlib
34185 OCAML_LIBDIR=$ocaml_stdlib
34188 # ocaml stdlib is outside our prefix; use libdir/ocaml
34189 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34196 if test "$binding_prereqs_failed" = 1 ; then
34197 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34198 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34199 { (exit 1); exit 1; }; }
34204 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34206 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34208 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34210 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34212 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34215 ac_config_files="$ac_config_files Makefile.config"
34218 ac_config_files="$ac_config_files llvm.spec"
34221 ac_config_files="$ac_config_files docs/doxygen.cfg"
34224 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34227 ac_config_commands="$ac_config_commands setup"
34229 ac_config_commands="$ac_config_commands Makefile"
34232 ac_config_commands="$ac_config_commands Makefile.common"
34235 ac_config_commands="$ac_config_commands examples/Makefile"
34238 ac_config_commands="$ac_config_commands lib/Makefile"
34241 ac_config_commands="$ac_config_commands runtime/Makefile"
34244 ac_config_commands="$ac_config_commands test/Makefile"
34247 ac_config_commands="$ac_config_commands test/Makefile.tests"
34250 ac_config_commands="$ac_config_commands tools/Makefile"
34253 ac_config_commands="$ac_config_commands utils/Makefile"
34256 ac_config_commands="$ac_config_commands projects/Makefile"
34259 ac_config_commands="$ac_config_commands bindings/Makefile"
34262 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34266 cat >confcache <<\_ACEOF
34267 # This file is a shell script that caches the results of configure
34268 # tests run on this system so they can be shared between configure
34269 # scripts and configure runs, see configure's option --config-cache.
34270 # It is not useful on other systems. If it contains results you don't
34271 # want to keep, you may remove or edit it.
34273 # config.status only pays attention to the cache file if you give it
34274 # the --recheck option to rerun configure.
34276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34278 # following values.
34282 # The following way of writing the cache mishandles newlines in values,
34283 # but we know of no workaround that is simple, portable, and efficient.
34284 # So, we kill variables containing newlines.
34285 # Ultrix sh set writes to stderr and can't be redirected directly,
34286 # and sets the high bit in the cache file unless we assign to the vars.
34288 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34289 eval ac_val=\$$ac_var
34293 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34294 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34297 _ | IFS | as_nl) ;; #(
34298 *) $as_unset $ac_var ;;
34304 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34305 *${as_nl}ac_space=\ *)
34306 # `set' does not quote correctly, so add quotes (double-quote
34307 # substitution turns \\\\ into \\, and sed turns \\ into \).
34310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34313 # `set' quotes correctly as required by POSIX, so do not add quotes.
34314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34325 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34327 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34328 if test -w "$cache_file"; then
34329 test "x$cache_file" != "x/dev/null" &&
34330 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34331 echo "$as_me: updating cache $cache_file" >&6;}
34332 cat confcache >$cache_file
34334 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34335 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34340 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34341 # Let make expand exec_prefix.
34342 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34344 DEFS=-DHAVE_CONFIG_H
34348 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34349 # 1. Remove the extension, and $U if already installed.
34350 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34351 ac_i=`echo "$ac_i" | sed "$ac_script"`
34352 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34353 # will be set to the directory where LIBOBJS objects are built.
34354 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34355 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34357 LIBOBJS=$ac_libobjs
34359 LTLIBOBJS=$ac_ltlibobjs
34362 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34363 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34364 Usually this means the macro was only invoked conditionally." >&5
34365 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34366 Usually this means the macro was only invoked conditionally." >&2;}
34367 { (exit 1); exit 1; }; }
34369 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34370 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34371 Usually this means the macro was only invoked conditionally." >&5
34372 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34373 Usually this means the macro was only invoked conditionally." >&2;}
34374 { (exit 1); exit 1; }; }
34377 : ${CONFIG_STATUS=./config.status}
34378 ac_clean_files_save=$ac_clean_files
34379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34380 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34381 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34382 cat >$CONFIG_STATUS <<_ACEOF
34384 # Generated by $as_me.
34385 # Run this file to recreate the current configuration.
34386 # Compiler output produced by configure, useful for debugging
34387 # configure, is in config.log if it exists.
34390 ac_cs_recheck=false
34392 SHELL=\${CONFIG_SHELL-$SHELL}
34395 cat >>$CONFIG_STATUS <<\_ACEOF
34396 ## --------------------- ##
34397 ## M4sh Initialization. ##
34398 ## --------------------- ##
34400 # Be Bourne compatible
34401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34404 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34405 # is contrary to our usage. Disable this feature.
34406 alias -g '${1+"$@"}'='"$@"'
34407 setopt NO_GLOB_SUBST
34409 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34411 BIN_SH=xpg4; export BIN_SH # for Tru64
34412 DUALCASE=1; export DUALCASE # for MKS sh
34416 # Avoid depending upon Character Ranges.
34417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34420 as_cr_digits='0123456789'
34421 as_cr_alnum=$as_cr_Letters$as_cr_digits
34423 # The user is always right.
34424 if test "${PATH_SEPARATOR+set}" != set; then
34425 echo "#! /bin/sh" >conf$$.sh
34426 echo "exit 0" >>conf$$.sh
34428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34436 # Support unset when possible.
34437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34445 # We need space, tab and new line, in precisely that order. Quoting is
34446 # there to prevent editors from complaining about space-tab.
34447 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34448 # splitting by setting IFS to empty value.)
34453 # Find who we are. Look in the path if we contain no directory separator.
34455 *[\\/]* ) as_myself=$0 ;;
34456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34457 for as_dir in $PATH
34460 test -z "$as_dir" && as_dir=.
34461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34467 # We did not find ourselves, most probably we were run as `sh COMMAND'
34468 # in which case we are not to be found in the path.
34469 if test "x$as_myself" = x; then
34472 if test ! -f "$as_myself"; then
34473 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34474 { (exit 1); exit 1; }
34477 # Work around bugs in pre-3.0 UWIN ksh.
34478 for as_var in ENV MAIL MAILPATH
34479 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34487 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34488 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34489 LC_TELEPHONE LC_TIME
34491 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34492 eval $as_var=C; export $as_var
34494 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34498 # Required to use basename.
34499 if expr a : '\(a\)' >/dev/null 2>&1 &&
34500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34507 as_basename=basename
34513 # Name of the executable.
34514 as_me=`$as_basename -- "$0" ||
34515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34516 X"$0" : 'X\(//\)$' \| \
34517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34519 sed '/^.*\/\([^/][^/]*\)\/*$/{
34538 as_lineno_1=$LINENO
34539 as_lineno_2=$LINENO
34540 test "x$as_lineno_1" != "x$as_lineno_2" &&
34541 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34544 # uniformly replaced by the line number. The first 'sed' inserts a
34545 # line-number line after each line using $LINENO; the second 'sed'
34546 # does the real work. The second script uses 'N' to pair each
34547 # line-number line with the line containing $LINENO, and appends
34548 # trailing '-' during substitution so that $LINENO is not a special
34549 # case at line end.
34550 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34551 # scripts with optimization help from Paolo Bonzini. Blame Lee
34552 # E. McMahon (1931-1989) for sed's syntax. :-)
34564 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34567 ' >$as_me.lineno &&
34568 chmod +x "$as_me.lineno" ||
34569 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34570 { (exit 1); exit 1; }; }
34572 # Don't try to exec as it changes $[0], causing all sort of problems
34573 # (the dirname of $[0] is not the place where we might find the
34574 # original and so on. Autoconf is especially sensitive to this).
34575 . "./$as_me.lineno"
34576 # Exit status is that of the last command.
34581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34587 ECHO_C= ECHO_N= ECHO_T=
34588 case `echo -n x` in
34590 case `echo 'x\c'` in
34591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34598 if expr a : '\(a\)' >/dev/null 2>&1 &&
34599 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34605 rm -f conf$$ conf$$.exe conf$$.file
34606 if test -d conf$$.dir; then
34607 rm -f conf$$.dir/conf$$.file
34613 if ln -s conf$$.file conf$$ 2>/dev/null; then
34615 # ... but there are two gotchas:
34616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34618 # In both cases, we have to default to `cp -p'.
34619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34621 elif ln conf$$.file conf$$ 2>/dev/null; then
34626 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34627 rmdir conf$$.dir 2>/dev/null
34629 if mkdir -p . 2>/dev/null; then
34632 test -d ./-p && rmdir ./-p
34636 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34637 # systems may use methods other than mode bits to determine executability.
34638 cat >conf$$.file <<_ASEOF
34642 chmod +x conf$$.file
34643 if test -x conf$$.file >/dev/null 2>&1; then
34644 as_executable_p="test -x"
34650 # Sed expression to map a string onto a valid CPP name.
34651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34653 # Sed expression to map a string onto a valid variable name.
34654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34659 # Save the log message, to keep $[0] and so on meaningful, and to
34660 # report actual input values of CONFIG_FILES etc. instead of their
34661 # values after options handling.
34663 This file was extended by llvm $as_me 2.3svn, which was
34664 generated by GNU Autoconf 2.60. Invocation command line was
34666 CONFIG_FILES = $CONFIG_FILES
34667 CONFIG_HEADERS = $CONFIG_HEADERS
34668 CONFIG_LINKS = $CONFIG_LINKS
34669 CONFIG_COMMANDS = $CONFIG_COMMANDS
34672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34677 cat >>$CONFIG_STATUS <<_ACEOF
34678 # Files that config.status was made for.
34679 config_files="$ac_config_files"
34680 config_headers="$ac_config_headers"
34681 config_commands="$ac_config_commands"
34685 cat >>$CONFIG_STATUS <<\_ACEOF
34687 \`$as_me' instantiates files from templates according to the
34688 current configuration.
34690 Usage: $0 [OPTIONS] [FILE]...
34692 -h, --help print this help, then exit
34693 -V, --version print version number, then exit
34694 -q, --quiet do not print progress messages
34695 -d, --debug don't remove temporary files
34696 --recheck update $as_me by reconfiguring in the same conditions
34697 --file=FILE[:TEMPLATE]
34698 instantiate the configuration file FILE
34699 --header=FILE[:TEMPLATE]
34700 instantiate the configuration header FILE
34702 Configuration files:
34705 Configuration headers:
34708 Configuration commands:
34711 Report bugs to <bug-autoconf@gnu.org>."
34714 cat >>$CONFIG_STATUS <<_ACEOF
34716 llvm config.status 2.3svn
34717 configured by $0, generated by GNU Autoconf 2.60,
34718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34720 Copyright (C) 2006 Free Software Foundation, Inc.
34721 This config.status script is free software; the Free Software Foundation
34722 gives unlimited permission to copy, distribute and modify it."
34729 cat >>$CONFIG_STATUS <<\_ACEOF
34730 # If no file are specified by the user, then we need to provide default
34731 # value. By we need to know if files were specified by the user.
34737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34749 # Handling of the options.
34750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34753 echo "$ac_cs_version"; exit ;;
34754 --debug | --debu | --deb | --de | --d | -d )
34756 --file | --fil | --fi | --f )
34758 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34759 ac_need_defaults=false;;
34760 --header | --heade | --head | --hea )
34762 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34763 ac_need_defaults=false;;
34765 # Conflict between --help and --header
34766 { echo "$as_me: error: ambiguous option: $1
34767 Try \`$0 --help' for more information." >&2
34768 { (exit 1); exit 1; }; };;
34769 --help | --hel | -h )
34770 echo "$ac_cs_usage"; exit ;;
34771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34775 # This is an error.
34776 -*) { echo "$as_me: error: unrecognized option: $1
34777 Try \`$0 --help' for more information." >&2
34778 { (exit 1); exit 1; }; } ;;
34780 *) ac_config_targets="$ac_config_targets $1"
34781 ac_need_defaults=false ;;
34787 ac_configure_extra_args=
34789 if $ac_cs_silent; then
34791 ac_configure_extra_args="$ac_configure_extra_args --silent"
34795 cat >>$CONFIG_STATUS <<_ACEOF
34796 if \$ac_cs_recheck; then
34797 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34798 CONFIG_SHELL=$SHELL
34799 export CONFIG_SHELL
34800 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34804 cat >>$CONFIG_STATUS <<\_ACEOF
34808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34809 ## Running $as_me. ##
34815 cat >>$CONFIG_STATUS <<_ACEOF
34819 llvm_src="${srcdir}"
34823 cat >>$CONFIG_STATUS <<\_ACEOF
34825 # Handling of arguments.
34826 for ac_config_target in $ac_config_targets
34828 case $ac_config_target in
34829 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34830 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34831 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34832 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34833 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34834 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34835 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34836 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34837 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34838 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34839 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34840 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34841 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34842 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34843 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34844 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34845 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34846 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34847 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34848 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34849 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34850 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34852 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34853 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34854 { (exit 1); exit 1; }; };;
34859 # If the user did not use the arguments to specify the items to instantiate,
34860 # then the envvar interface is used. Set only those that are not.
34861 # We use the long form for the default assignment because of an extremely
34862 # bizarre bug on SunOS 4.1.3.
34863 if $ac_need_defaults; then
34864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34869 # Have a temporary directory for convenience. Make it in the build tree
34870 # simply because there is no reason against having it here, and in addition,
34871 # creating and moving files from /tmp can sometimes cause problems.
34872 # Hook for its removal unless debugging.
34873 # Note that there is a small window in which the directory will not be cleaned:
34874 # after its creation but before its name has been assigned to `$tmp'.
34878 trap 'exit_status=$?
34879 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34881 trap '{ (exit 1); exit 1; }' 1 2 13 15
34883 # Create a (secure) tmp directory for tmp files.
34886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34887 test -n "$tmp" && test -d "$tmp"
34890 tmp=./conf$$-$RANDOM
34891 (umask 077 && mkdir "$tmp")
34894 echo "$me: cannot create a temporary directory in ." >&2
34895 { (exit 1); exit 1; }
34899 # Set up the sed scripts for CONFIG_FILES section.
34902 # No need to generate the scripts if there are no CONFIG_FILES.
34903 # This happens for instance when ./config.status config.h
34904 if test -n "$CONFIG_FILES"; then
34911 for ac_last_try in false false false false false :; do
34912 cat >conf$$subs.sed <<_ACEOF
34913 SHELL!$SHELL$ac_delim
34914 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34915 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34916 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34917 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34918 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34919 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34920 exec_prefix!$exec_prefix$ac_delim
34921 prefix!$prefix$ac_delim
34922 program_transform_name!$program_transform_name$ac_delim
34923 bindir!$bindir$ac_delim
34924 sbindir!$sbindir$ac_delim
34925 libexecdir!$libexecdir$ac_delim
34926 datarootdir!$datarootdir$ac_delim
34927 datadir!$datadir$ac_delim
34928 sysconfdir!$sysconfdir$ac_delim
34929 sharedstatedir!$sharedstatedir$ac_delim
34930 localstatedir!$localstatedir$ac_delim
34931 includedir!$includedir$ac_delim
34932 oldincludedir!$oldincludedir$ac_delim
34933 docdir!$docdir$ac_delim
34934 infodir!$infodir$ac_delim
34935 htmldir!$htmldir$ac_delim
34936 dvidir!$dvidir$ac_delim
34937 pdfdir!$pdfdir$ac_delim
34938 psdir!$psdir$ac_delim
34939 libdir!$libdir$ac_delim
34940 localedir!$localedir$ac_delim
34941 mandir!$mandir$ac_delim
34942 DEFS!$DEFS$ac_delim
34943 ECHO_C!$ECHO_C$ac_delim
34944 ECHO_N!$ECHO_N$ac_delim
34945 ECHO_T!$ECHO_T$ac_delim
34946 LIBS!$LIBS$ac_delim
34947 build_alias!$build_alias$ac_delim
34948 host_alias!$host_alias$ac_delim
34949 target_alias!$target_alias$ac_delim
34950 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34951 subdirs!$subdirs$ac_delim
34952 build!$build$ac_delim
34953 build_cpu!$build_cpu$ac_delim
34954 build_vendor!$build_vendor$ac_delim
34955 build_os!$build_os$ac_delim
34956 host!$host$ac_delim
34957 host_cpu!$host_cpu$ac_delim
34958 host_vendor!$host_vendor$ac_delim
34959 host_os!$host_os$ac_delim
34960 target!$target$ac_delim
34961 target_cpu!$target_cpu$ac_delim
34962 target_vendor!$target_vendor$ac_delim
34963 target_os!$target_os$ac_delim
34965 LINKALL!$LINKALL$ac_delim
34966 NOLINKALL!$NOLINKALL$ac_delim
34967 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34968 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34969 ARCH!$ARCH$ac_delim
34970 ENDIAN!$ENDIAN$ac_delim
34972 CFLAGS!$CFLAGS$ac_delim
34973 LDFLAGS!$LDFLAGS$ac_delim
34974 CPPFLAGS!$CPPFLAGS$ac_delim
34975 ac_ct_CC!$ac_ct_CC$ac_delim
34976 EXEEXT!$EXEEXT$ac_delim
34977 OBJEXT!$OBJEXT$ac_delim
34979 GREP!$GREP$ac_delim
34980 EGREP!$EGREP$ac_delim
34981 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34982 BUILD_CC!$BUILD_CC$ac_delim
34983 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34984 CVSBUILD!$CVSBUILD$ac_delim
34985 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34986 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34987 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34988 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34989 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34991 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34992 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34993 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34994 ENABLE_PIC!$ENABLE_PIC$ac_delim
34995 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34996 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34997 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34999 CXXFLAGS!$CXXFLAGS$ac_delim
35000 ac_ct_CXX!$ac_ct_CXX$ac_delim
35002 LEXLIB!$LEXLIB$ac_delim
35003 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35004 FLEX!$FLEX$ac_delim
35005 YACC!$YACC$ac_delim
35006 YFLAGS!$YFLAGS$ac_delim
35007 BISON!$BISON$ac_delim
35009 ifGNUmake!$ifGNUmake$ac_delim
35012 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35014 elif $ac_last_try; then
35015 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35017 { (exit 1); exit 1; }; }
35019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35024 if test -n "$ac_eof"; then
35025 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35026 ac_eof=`expr $ac_eof + 1`
35029 cat >>$CONFIG_STATUS <<_ACEOF
35030 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35034 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35035 s/^/s,@/; s/!/@,|#_!!_#|/
35038 s/'"$ac_delim"'$/,g/; t
35040 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35041 ' >>$CONFIG_STATUS <conf$$subs.sed
35042 rm -f conf$$subs.sed
35043 cat >>$CONFIG_STATUS <<_ACEOF
35049 for ac_last_try in false false false false false :; do
35050 cat >conf$$subs.sed <<_ACEOF
35051 LN_S!$LN_S$ac_delim
35054 DATE!$DATE$ac_delim
35055 FIND!$FIND$ac_delim
35056 MKDIR!$MKDIR$ac_delim
35058 RANLIB!$RANLIB$ac_delim
35062 BINPWD!$BINPWD$ac_delim
35063 GRAPHVIZ!$GRAPHVIZ$ac_delim
35066 DOTTY!$DOTTY$ac_delim
35067 PERL!$PERL$ac_delim
35068 HAVE_PERL!$HAVE_PERL$ac_delim
35069 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35070 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35071 INSTALL_DATA!$INSTALL_DATA$ac_delim
35072 BZIP2!$BZIP2$ac_delim
35073 DOXYGEN!$DOXYGEN$ac_delim
35074 GROFF!$GROFF$ac_delim
35075 GZIP!$GZIP$ac_delim
35076 POD2HTML!$POD2HTML$ac_delim
35077 POD2MAN!$POD2MAN$ac_delim
35078 RUNTEST!$RUNTEST$ac_delim
35079 TCLSH!$TCLSH$ac_delim
35081 OCAMLC!$OCAMLC$ac_delim
35082 OCAMLOPT!$OCAMLOPT$ac_delim
35083 OCAMLDEP!$OCAMLDEP$ac_delim
35084 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35085 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35086 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35087 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35088 LIBADD_DL!$LIBADD_DL$ac_delim
35089 ECHO!$ECHO$ac_delim
35091 STRIP!$STRIP$ac_delim
35092 CXXCPP!$CXXCPP$ac_delim
35094 FFLAGS!$FFLAGS$ac_delim
35095 ac_ct_F77!$ac_ct_F77$ac_delim
35096 LIBTOOL!$LIBTOOL$ac_delim
35097 LLVMGCC!$LLVMGCC$ac_delim
35098 LLVMGXX!$LLVMGXX$ac_delim
35099 USE_UDIS86!$USE_UDIS86$ac_delim
35100 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35101 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35102 ALLOCA!$ALLOCA$ac_delim
35103 MMAP_FILE!$MMAP_FILE$ac_delim
35104 LLVMCC1!$LLVMCC1$ac_delim
35105 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35106 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35107 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35108 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35109 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35110 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35111 SHLIBEXT!$SHLIBEXT$ac_delim
35112 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35113 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35114 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35115 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35116 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35117 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35118 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35119 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35120 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35121 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35122 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35123 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35124 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35125 LIBOBJS!$LIBOBJS$ac_delim
35126 LTLIBOBJS!$LTLIBOBJS$ac_delim
35129 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35131 elif $ac_last_try; then
35132 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35133 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35134 { (exit 1); exit 1; }; }
35136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35140 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35141 if test -n "$ac_eof"; then
35142 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35143 ac_eof=`expr $ac_eof + 1`
35146 cat >>$CONFIG_STATUS <<_ACEOF
35147 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35151 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35152 s/^/s,@/; s/!/@,|#_!!_#|/
35155 s/'"$ac_delim"'$/,g/; t
35157 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35158 ' >>$CONFIG_STATUS <conf$$subs.sed
35159 rm -f conf$$subs.sed
35160 cat >>$CONFIG_STATUS <<_ACEOF
35167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35169 # trailing colons and then remove the whole line if VPATH becomes empty
35170 # (actually we leave an empty line to preserve line numbers).
35171 if test "x$srcdir" = x.; then
35172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35173 s/:*\$(srcdir):*/:/
35174 s/:*\${srcdir}:*/:/
35176 s/^\([^=]*=[ ]*\):*/\1/
35182 cat >>$CONFIG_STATUS <<\_ACEOF
35183 fi # test -n "$CONFIG_FILES"
35186 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35189 :[FHLC]) ac_mode=$ac_tag; continue;;
35191 case $ac_mode$ac_tag in
35193 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35194 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35195 { (exit 1); exit 1; }; };;
35196 :[FH]-) ac_tag=-:-;;
35197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35214 -) ac_f="$tmp/stdin";;
35215 *) # Look for the file first in the build tree, then in the source tree
35216 # (if the path is not absolute). The absolute path cannot be DOS-style,
35217 # because $ac_f cannot contain `:'.
35221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35223 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35224 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35225 { (exit 1); exit 1; }; };;
35227 ac_file_inputs="$ac_file_inputs $ac_f"
35230 # Let's still pretend it is `configure' which instantiates (i.e., don't
35231 # use $as_me), people would be surprised to read:
35232 # /* config.h. Generated by config.status. */
35233 configure_input="Generated from "`IFS=:
35234 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35235 if test x"$ac_file" != x-; then
35236 configure_input="$ac_file. $configure_input"
35237 { echo "$as_me:$LINENO: creating $ac_file" >&5
35238 echo "$as_me: creating $ac_file" >&6;}
35242 *:-:* | *:-) cat >"$tmp/stdin";;
35247 ac_dir=`$as_dirname -- "$ac_file" ||
35248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35249 X"$ac_file" : 'X\(//\)[^/]' \| \
35250 X"$ac_file" : 'X\(//\)$' \| \
35251 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35257 /^X\(\/\/\)[^/].*/{
35272 -*) as_dir=./$as_dir;;
35274 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35278 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35279 *) as_qdir=$as_dir;;
35281 as_dirs="'$as_qdir' $as_dirs"
35282 as_dir=`$as_dirname -- "$as_dir" ||
35283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35284 X"$as_dir" : 'X\(//\)[^/]' \| \
35285 X"$as_dir" : 'X\(//\)$' \| \
35286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35292 /^X\(\/\/\)[^/].*/{
35305 test -d "$as_dir" && break
35307 test -z "$as_dirs" || eval "mkdir $as_dirs"
35308 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35309 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35310 { (exit 1); exit 1; }; }; }
35314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35317 # A ".." for each directory in $ac_dir_suffix.
35318 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35319 case $ac_top_builddir_sub in
35320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35324 ac_abs_top_builddir=$ac_pwd
35325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35326 # for backward compatibility:
35327 ac_top_builddir=$ac_top_build_prefix
35330 .) # We are building in place.
35332 ac_top_srcdir=$ac_top_builddir_sub
35333 ac_abs_top_srcdir=$ac_pwd ;;
35334 [\\/]* | ?:[\\/]* ) # Absolute name.
35335 ac_srcdir=$srcdir$ac_dir_suffix;
35336 ac_top_srcdir=$srcdir
35337 ac_abs_top_srcdir=$srcdir ;;
35338 *) # Relative name.
35339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35340 ac_top_srcdir=$ac_top_build_prefix$srcdir
35341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35354 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35358 cat >>$CONFIG_STATUS <<\_ACEOF
35359 # If the template does not know about datarootdir, expand it.
35360 # FIXME: This hack should be removed a few years after 2.60.
35361 ac_datarootdir_hack=; ac_datarootdir_seen=
35363 case `sed -n '/datarootdir/ {
35372 ' $ac_file_inputs` in
35373 *datarootdir*) ac_datarootdir_seen=yes;;
35374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35375 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35376 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35378 cat >>$CONFIG_STATUS <<_ACEOF
35379 ac_datarootdir_hack='
35380 s&@datadir@&$datadir&g
35381 s&@docdir@&$docdir&g
35382 s&@infodir@&$infodir&g
35383 s&@localedir@&$localedir&g
35384 s&@mandir@&$mandir&g
35385 s&\\\${datarootdir}&$datarootdir&g' ;;
35389 # Neutralize VPATH when `$srcdir' = `.'.
35390 # Shell code in configure.ac might set extrasub.
35391 # FIXME: do we really want to maintain this feature?
35392 cat >>$CONFIG_STATUS <<_ACEOF
35396 cat >>$CONFIG_STATUS <<\_ACEOF
35398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35399 s&@configure_input@&$configure_input&;t t
35400 s&@top_builddir@&$ac_top_builddir_sub&;t t
35401 s&@srcdir@&$ac_srcdir&;t t
35402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35403 s&@top_srcdir@&$ac_top_srcdir&;t t
35404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35405 s&@builddir@&$ac_builddir&;t t
35406 s&@abs_builddir@&$ac_abs_builddir&;t t
35407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35408 s&@INSTALL@&$ac_INSTALL&;t t
35409 $ac_datarootdir_hack
35410 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35413 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35415 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35416 which seems to be undefined. Please make sure it is defined." >&5
35417 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35418 which seems to be undefined. Please make sure it is defined." >&2;}
35422 -) cat "$tmp/out"; rm -f "$tmp/out";;
35423 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35432 # Transform confdefs.h into a sed script `conftest.defines', that
35433 # substitutes the proper values into config.h.in to produce config.h.
35434 rm -f conftest.defines conftest.tail
35435 # First, append a space to every undef/define line, to ease matching.
35436 echo 's/$/ /' >conftest.defines
35437 # Then, protect against being on the right side of a sed subst, or in
35438 # an unquoted here document, in config.status. If some macros were
35439 # called several times there might be several #defines for the same
35440 # symbol, which is useless. But do not sort them, since the last
35441 # AC_DEFINE must be honored.
35442 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35443 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35444 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35445 # PARAMS is the parameter list in the macro definition--in most cases, it's
35446 # just an empty string.
35447 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35448 ac_dB='\\)[ (].*,\\1define\\2'
35456 s/^[ ]*#[ ]*define[ ][ ]*//
35461 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35462 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35463 ' >>conftest.defines
35465 # Remove the space that was appended to ease matching.
35466 # Then replace #undef with comments. This is necessary, for
35467 # example, in the case of _POSIX_SOURCE, which is predefined and required
35468 # on some systems where configure will not decide to define it.
35469 # (The regexp can be short, since the line contains either #define or #undef.)
35471 s,^[ #]*u.*,/* & */,' >>conftest.defines
35473 # Break up conftest.defines:
35474 ac_max_sed_lines=50
35476 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35477 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35478 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35480 ac_in='$ac_file_inputs'
35481 ac_out='"$tmp/out1"'
35482 ac_nxt='"$tmp/out2"'
35486 # Write a here document:
35487 cat >>$CONFIG_STATUS <<_ACEOF
35488 # First, check the format of the line:
35489 cat >"\$tmp/defines.sed" <<\\CEOF
35490 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35491 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35495 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35497 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35498 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35499 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35500 grep . conftest.tail >/dev/null || break
35501 rm -f conftest.defines
35502 mv conftest.tail conftest.defines
35504 rm -f conftest.defines conftest.tail
35506 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35507 cat >>$CONFIG_STATUS <<\_ACEOF
35508 if test x"$ac_file" != x-; then
35509 echo "/* $configure_input */" >"$tmp/config.h"
35510 cat "$ac_result" >>"$tmp/config.h"
35511 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35512 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35513 echo "$as_me: $ac_file is unchanged" >&6;}
35516 mv "$tmp/config.h" $ac_file
35519 echo "/* $configure_input */"
35525 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35526 echo "$as_me: executing $ac_file commands" >&6;}
35531 case $ac_file$ac_mode in
35532 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35533 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35534 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35535 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35536 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35537 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35538 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35539 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35540 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35541 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35542 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35543 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35544 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35545 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35546 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35547 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35548 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35549 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35550 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35551 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35552 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35553 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35554 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35555 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35561 { (exit 0); exit 0; }
35563 chmod +x $CONFIG_STATUS
35564 ac_clean_files=$ac_clean_files_save
35567 # configure is writing to config.log, and then calls config.status.
35568 # config.status does its own redirection, appending to config.log.
35569 # Unfortunately, on DOS this fails, as config.log is still kept open
35570 # by configure, so config.status won't be able to write to it; its
35571 # output is simply discarded. So we exec the FD to /dev/null,
35572 # effectively closing config.log, so it can be properly (re)opened and
35573 # appended to by config.status. When coming back to configure, we
35574 # need to make the FD available again.
35575 if test "$no_create" != yes; then
35577 ac_config_status_args=
35578 test "$silent" = yes &&
35579 ac_config_status_args="$ac_config_status_args --quiet"
35581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35584 # would make configure fail if this is the last instruction.
35585 $ac_cs_success || { (exit 1); exit 1; }
35589 # CONFIG_SUBDIRS section.
35591 if test "$no_recursion" != yes; then
35593 # Remove --cache-file and --srcdir arguments so they do not pile up.
35594 ac_sub_configure_args=
35596 eval "set x $ac_configure_args"
35600 if test -n "$ac_prev"; then
35605 -cache-file | --cache-file | --cache-fil | --cache-fi \
35606 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35607 ac_prev=cache_file ;;
35608 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35609 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35612 --config-cache | -C)
35614 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35616 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35618 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35620 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35624 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35626 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35630 # Always prepend --prefix to ensure using the same prefix
35631 # in subdir configurations.
35632 ac_arg="--prefix=$prefix"
35634 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35636 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35639 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35641 # Do not complain, so a configure script can configure whichever
35642 # parts of a large source tree are present.
35643 test -d "$srcdir/$ac_dir" || continue
35645 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35646 echo "$as_me:$LINENO: $ac_msg" >&5
35650 -*) as_dir=./$as_dir;;
35652 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35656 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35657 *) as_qdir=$as_dir;;
35659 as_dirs="'$as_qdir' $as_dirs"
35660 as_dir=`$as_dirname -- "$as_dir" ||
35661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35662 X"$as_dir" : 'X\(//\)[^/]' \| \
35663 X"$as_dir" : 'X\(//\)$' \| \
35664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35670 /^X\(\/\/\)[^/].*/{
35683 test -d "$as_dir" && break
35685 test -z "$as_dirs" || eval "mkdir $as_dirs"
35686 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35687 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35688 { (exit 1); exit 1; }; }; }
35692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35695 # A ".." for each directory in $ac_dir_suffix.
35696 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35697 case $ac_top_builddir_sub in
35698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35702 ac_abs_top_builddir=$ac_pwd
35703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35704 # for backward compatibility:
35705 ac_top_builddir=$ac_top_build_prefix
35708 .) # We are building in place.
35710 ac_top_srcdir=$ac_top_builddir_sub
35711 ac_abs_top_srcdir=$ac_pwd ;;
35712 [\\/]* | ?:[\\/]* ) # Absolute name.
35713 ac_srcdir=$srcdir$ac_dir_suffix;
35714 ac_top_srcdir=$srcdir
35715 ac_abs_top_srcdir=$srcdir ;;
35716 *) # Relative name.
35717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35718 ac_top_srcdir=$ac_top_build_prefix$srcdir
35719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35726 # Check for guested configure; otherwise get Cygnus style configure.
35727 if test -f "$ac_srcdir/configure.gnu"; then
35728 ac_sub_configure=$ac_srcdir/configure.gnu
35729 elif test -f "$ac_srcdir/configure"; then
35730 ac_sub_configure=$ac_srcdir/configure
35731 elif test -f "$ac_srcdir/configure.in"; then
35732 # This should be Cygnus configure.
35733 ac_sub_configure=$ac_aux_dir/configure
35735 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35736 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35740 # The recursion is here.
35741 if test -n "$ac_sub_configure"; then
35742 # Make the cache file name correct relative to the subdirectory.
35743 case $cache_file in
35744 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35745 *) # Relative name.
35746 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35749 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35750 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35751 # The eval makes quoting arguments work.
35752 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35753 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35754 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35755 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35756 { (exit 1); exit 1; }; }